修改专项检查
This commit is contained in:
@@ -58,6 +58,9 @@ namespace BLL
|
||||
WorkArea = checkSpecialDetail.WorkArea,
|
||||
CheckContent = checkSpecialDetail.CheckContent,
|
||||
HiddenHazardType=checkSpecialDetail.HiddenHazardType,
|
||||
CheckItemSetId= checkSpecialDetail.CheckItemSetId,
|
||||
CheckItemSetContent= checkSpecialDetail.CheckItemSetContent,
|
||||
Rectification_Date= checkSpecialDetail.Rectification_Date
|
||||
};
|
||||
db.Check_CheckSpecialDetail.InsertOnSubmit(newCheckSpecialDetail);
|
||||
db.SubmitChanges();
|
||||
@@ -87,6 +90,10 @@ namespace BLL
|
||||
newCheckSpecialDetail.Suggestions = CheckSpecialDetail.Suggestions;
|
||||
newCheckSpecialDetail.WorkArea = CheckSpecialDetail.WorkArea;
|
||||
newCheckSpecialDetail.CheckContent = CheckSpecialDetail.CheckContent;
|
||||
|
||||
newCheckSpecialDetail.CheckItemSetId = CheckSpecialDetail.CheckItemSetId;
|
||||
newCheckSpecialDetail.CheckItemSetContent = CheckSpecialDetail.CheckItemSetContent;
|
||||
newCheckSpecialDetail.Rectification_Date = CheckSpecialDetail.Rectification_Date;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,5 +155,26 @@ namespace BLL
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 检查项明细下拉框
|
||||
/// </summary>
|
||||
/// <param name="dropName">下拉框名字</param>
|
||||
/// <param name="isShowPlease">是否显示请选择</param>
|
||||
public static void InitCheckItemDetailDropDownList(FineUIPro.DropDownList dropName, string checkItemSetId, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "CheckContent";
|
||||
dropName.DataTextField = "CheckContent";
|
||||
dropName.DataSource = (from x in Funs.DB.Technique_CheckItemDetail
|
||||
where x.CheckItemSetId == checkItemSetId
|
||||
orderby x.SortIndex
|
||||
select x).ToList();
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user