小程序接口修改
This commit is contained in:
@@ -162,13 +162,45 @@ namespace BLL
|
||||
db.Check_IncentiveNotice.InsertOnSubmit(newIncentiveNotice);
|
||||
db.SubmitChanges();
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitId(Const.ProjectIncentiveNoticeMenuId, incentiveNotice.ProjectId, null, incentiveNotice.IncentiveNoticeId, incentiveNotice.CompileDate);
|
||||
}
|
||||
}
|
||||
public static void AddIncentiveNoticeForApi(Model.Check_IncentiveNotice incentiveNotice)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
Model.Check_IncentiveNotice newIncentiveNotice = new Model.Check_IncentiveNotice
|
||||
{
|
||||
IncentiveNoticeId = incentiveNotice.IncentiveNoticeId,
|
||||
ProjectId = incentiveNotice.ProjectId,
|
||||
IncentiveNoticeCode = incentiveNotice.IncentiveNoticeCode,
|
||||
UnitId = incentiveNotice.UnitId,
|
||||
TeamGroupId = incentiveNotice.TeamGroupId,
|
||||
IncentiveDate = incentiveNotice.IncentiveDate,
|
||||
PersonId = incentiveNotice.PersonId,
|
||||
BasicItem = incentiveNotice.BasicItem,
|
||||
IncentiveMoney = incentiveNotice.IncentiveMoney,
|
||||
TitleReward = incentiveNotice.TitleReward,
|
||||
MattleReward = incentiveNotice.MattleReward,
|
||||
FileContents = incentiveNotice.FileContents,
|
||||
AttachUrl = incentiveNotice.AttachUrl,
|
||||
CompileMan = incentiveNotice.CompileMan,
|
||||
CompileDate = incentiveNotice.CompileDate,
|
||||
States = incentiveNotice.States,
|
||||
SignMan = incentiveNotice.SignMan,
|
||||
ApproveMan = incentiveNotice.ApproveMan,
|
||||
RewardType = incentiveNotice.RewardType,
|
||||
Currency = incentiveNotice.Currency
|
||||
};
|
||||
db.Check_IncentiveNotice.InsertOnSubmit(newIncentiveNotice);
|
||||
db.SubmitChanges();
|
||||
CodeRecordsService.InsertCodeRecordsByMenuIdProjectIdUnitIdForApi(Const.ProjectIncentiveNoticeMenuId, incentiveNotice.ProjectId, null, incentiveNotice.IncentiveNoticeId, incentiveNotice.CompileDate);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改奖励通知单
|
||||
/// </summary>
|
||||
/// <param name="incentiveNotice"></param>
|
||||
public static void UpdateIncentiveNotice(Model.Check_IncentiveNotice incentiveNotice)
|
||||
/// <summary>
|
||||
/// 修改奖励通知单
|
||||
/// </summary>
|
||||
/// <param name="incentiveNotice"></param>
|
||||
public static void UpdateIncentiveNotice(Model.Check_IncentiveNotice incentiveNotice)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.Check_IncentiveNotice newIncentiveNotice = db.Check_IncentiveNotice.FirstOrDefault(e => e.IncentiveNoticeId == incentiveNotice.IncentiveNoticeId);
|
||||
|
||||
Reference in New Issue
Block a user