20240305 开车HSE管理
This commit is contained in:
@@ -15,7 +15,7 @@ namespace FineUIPro.Web.TestRun.DriverHse
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkId, this.CurrUser.LoginProjectId, true);
|
||||
//BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkId, this.CurrUser.LoginProjectId, true);
|
||||
|
||||
string id = Request.Params["id"];
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
@@ -24,18 +24,10 @@ namespace FineUIPro.Web.TestRun.DriverHse
|
||||
if (data != null)
|
||||
{
|
||||
this.hdId.Text = id;
|
||||
this.txtCode.Text = data.Code;
|
||||
if (!string.IsNullOrEmpty(data.UnitWorkId))
|
||||
{
|
||||
this.drpUnitWorkId.SelectedValue = data.UnitWorkId;
|
||||
}
|
||||
this.txtCode.Text = data.Code;
|
||||
this.txtWorkArea.Text = data.WorkArea;
|
||||
this.txtUnitHead.Text = data.UnitHead;
|
||||
this.txtSupervisor.Text = data.Supervisor;
|
||||
this.txtHazards.Text = data.Hazards;
|
||||
this.txtHarm.Text = data.Harm;
|
||||
this.txtPreventiveMeasures.Text = data.PreventiveMeasures;
|
||||
this.txtDarificaiton.Text = data.Darificaiton;
|
||||
this.txtIdentificationDate.Text = data.IdentificationDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.IdentificationDate) : "";
|
||||
this.txtControlHeaderMan.Text = data.ControlHeaderMan;
|
||||
this.txtRemark.Text = data.Remark;
|
||||
}
|
||||
}
|
||||
@@ -67,22 +59,12 @@ namespace FineUIPro.Web.TestRun.DriverHse
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.drpUnitWorkId.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("请选择装置/工序!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string id = Request.Params["id"];
|
||||
Model.DriverHse_HseHazard newData = new Model.DriverHse_HseHazard();
|
||||
newData.Code = this.txtCode.Text.Trim();
|
||||
newData.WorkArea = this.txtWorkArea.Text.Trim();
|
||||
newData.UnitHead = this.txtUnitHead.Text.Trim();
|
||||
newData.UnitWorkId = this.drpUnitWorkId.SelectedValue;
|
||||
newData.Supervisor = this.txtSupervisor.Text.Trim();
|
||||
newData.Hazards = this.txtHazards.Text.Trim();
|
||||
newData.Harm = this.txtHarm.Text.Trim();
|
||||
newData.PreventiveMeasures = this.txtPreventiveMeasures.Text.Trim();
|
||||
newData.Darificaiton = this.txtDarificaiton.Text.Trim();
|
||||
newData.IdentificationDate =Funs.GetNewDateTime(this.txtIdentificationDate.Text.Trim());
|
||||
newData.ControlHeaderMan = this.txtControlHeaderMan.Text.Trim();
|
||||
newData.Remark = this.txtRemark.Text.Trim();
|
||||
newData.ProjectId = this.CurrUser.LoginProjectId;
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
|
||||
Reference in New Issue
Block a user