11
This commit is contained in:
@@ -23,7 +23,12 @@ namespace BLL
|
||||
return Funs.DB.View_EMC_Punishment.FirstOrDefault(e => e.PunishmentId == punishmentId);
|
||||
}
|
||||
|
||||
|
||||
public static Model.View_EMC_Que_Punishment GetQuePunishmentViewById(string punishmentId)
|
||||
{
|
||||
return Funs.DB.View_EMC_Que_Punishment.FirstOrDefault(e => e.PunishmentId == punishmentId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 添加扣款项
|
||||
@@ -34,6 +39,7 @@ namespace BLL
|
||||
Model.EMC_Punishment newPunishment = new Model.EMC_Punishment();
|
||||
newPunishment.PunishmentId = punishment.PunishmentId;
|
||||
newPunishment.FO_NO = punishment.FO_NO;
|
||||
newPunishment.ItemNo = punishment.ItemNo;
|
||||
newPunishment.SES_No = punishment.SES_No;
|
||||
newPunishment.PunishDate = punishment.PunishDate;
|
||||
newPunishment.Location = punishment.Location;
|
||||
@@ -50,6 +56,15 @@ namespace BLL
|
||||
newPunishment.Def=punishment.Def;
|
||||
newPunishment.CreateDate = punishment.CreateDate;
|
||||
|
||||
newPunishment.Contractor= punishment.Contractor;
|
||||
newPunishment.Discipline=punishment.Discipline;
|
||||
newPunishment.ViolationClauseId= punishment.ViolationClauseId;
|
||||
newPunishment.IsFrame= punishment.IsFrame;
|
||||
newPunishment.ViolationPerson =punishment.ViolationPerson;
|
||||
newPunishment.BYC_Person= punishment.BYC_Person;
|
||||
newPunishment.Requisitioner=punishment.Requisitioner;
|
||||
newPunishment.AttachUrl = punishment.AttachUrl;
|
||||
|
||||
Funs.DB.EMC_Punishment.InsertOnSubmit(newPunishment);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
@@ -64,6 +79,7 @@ namespace BLL
|
||||
if (newPunishment != null)
|
||||
{
|
||||
newPunishment.FO_NO = punishment.FO_NO;
|
||||
newPunishment.ItemNo = punishment.ItemNo;
|
||||
newPunishment.SES_No = punishment.SES_No;
|
||||
newPunishment.PunishDate = punishment.PunishDate;
|
||||
newPunishment.Location = punishment.Location;
|
||||
@@ -77,6 +93,16 @@ namespace BLL
|
||||
newPunishment.ViolationRelatedSes = punishment.ViolationRelatedSes;
|
||||
newPunishment.SelectYesNo = punishment.SelectYesNo;
|
||||
newPunishment.Def = punishment.Def;
|
||||
|
||||
newPunishment.Contractor = punishment.Contractor;
|
||||
newPunishment.Discipline = punishment.Discipline;
|
||||
newPunishment.ViolationClauseId = punishment.ViolationClauseId;
|
||||
newPunishment.IsFrame = punishment.IsFrame;
|
||||
newPunishment.ViolationPerson = punishment.ViolationPerson;
|
||||
newPunishment.BYC_Person = punishment.BYC_Person;
|
||||
newPunishment.Requisitioner = punishment.Requisitioner;
|
||||
newPunishment.AttachUrl = punishment.AttachUrl;
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user