数据穿透新增页面

This commit is contained in:
2023-06-09 10:20:38 +08:00
parent 857a427be6
commit 72f0109f93
132 changed files with 15962 additions and 205 deletions
@@ -50,6 +50,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
///机具设备下拉框
BLL.SpecialEquipmentService.InitSpecialEquipmentDropDownList(this.drpSpecialEquipmentId, false, true);
this.cbIsUsed.Checked = true;
this.GeneralEquipmentInId = Request.Params["GeneralEquipmentInId"];
this.GeneralEquipmentInItemId = Request.Params["GeneralEquipmentInItemId"];
if (!string.IsNullOrEmpty(this.GeneralEquipmentInItemId))
@@ -65,6 +66,10 @@ namespace FineUIPro.Web.HSSE.InApproveManager
this.txtSizeModel.Text = generalEquipmentInItem.SizeModel;
this.txtOwnerCheck.Text = generalEquipmentInItem.OwnerCheck;
this.txtCertificateNum.Text = generalEquipmentInItem.CertificateNum;
if (generalEquipmentInItem.IsUsed != true)
{
this.cbIsUsed.Checked = false;
}
}
}
}
@@ -90,6 +95,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
generalEquipmentInItem.SizeModel = this.txtSizeModel.Text.Trim();
generalEquipmentInItem.OwnerCheck = this.txtOwnerCheck.Text.Trim();
generalEquipmentInItem.CertificateNum = this.txtCertificateNum.Text.Trim();
generalEquipmentInItem.IsUsed = Convert.ToBoolean(this.cbIsUsed.Checked);
if (!string.IsNullOrEmpty(this.GeneralEquipmentInItemId))
{
generalEquipmentInItem.GeneralEquipmentInItemId = this.GeneralEquipmentInItemId;
@@ -101,6 +107,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
generalEquipmentInItem.GeneralEquipmentInItemId = this.GeneralEquipmentInItemId;
BLL.GeneralEquipmentInItemService.AddGeneralEquipmentInItem(generalEquipmentInItem);
}
Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.ConstructionEquipment);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
#endregion