提交代码
This commit is contained in:
@@ -94,6 +94,8 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
if (!string.IsNullOrEmpty(constructionRisk.UnitId))
|
||||
{
|
||||
drpUnit.SelectedValue = constructionRisk.UnitId;
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(drpSubUnitDutyPerson, CurrUser.LoginProjectId, drpUnit.SelectedValue, null, true);
|
||||
this.drpSubUnitDutyPerson.SelectedValue = constructionRisk.SubUnitDutyPerson;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(constructionRisk.RefLicense))
|
||||
{
|
||||
@@ -166,6 +168,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
drpHandleType.DataSource = BLL.ConstructionRiskListService.GetDHandleTypeByState(BLL.Const.ConstructionRisk_Compile);
|
||||
drpHandleType.DataBind();
|
||||
this.drpUnit.SelectedValue = this.CurrUser.UnitId;
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(drpSubUnitDutyPerson, CurrUser.LoginProjectId, drpUnit.SelectedValue, null, true);
|
||||
}
|
||||
drpHandleType_SelectedIndexChanged(null, null);
|
||||
Grid1.DataSource = constructionRiskControls;
|
||||
@@ -207,6 +210,11 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
/// <param name="e"></param>
|
||||
protected void btnSubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.drpSubUnitDutyPerson.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择施工单位责任人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpWorkArea.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择主项!", MessageBoxIcon.Warning);
|
||||
@@ -240,6 +248,11 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.drpSubUnitDutyPerson.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择施工单位责任人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.drpWorkArea.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择主项!", MessageBoxIcon.Warning);
|
||||
@@ -312,6 +325,10 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
{
|
||||
newConstructionRisk.UnitId = drpUnit.SelectedValue;
|
||||
}
|
||||
if (this.drpSubUnitDutyPerson.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newConstructionRisk.SubUnitDutyPerson = this.drpSubUnitDutyPerson.SelectedValue;
|
||||
}
|
||||
newConstructionRisk.DateA = Funs.GetNewDateTime(this.dpDateA.Text.Trim());
|
||||
newConstructionRisk.DateZ = Funs.GetNewDateTime(this.dpDateZ.Text.Trim());
|
||||
if (this.drpLicenseDes.SelectedValueArray.Length == 1 && this.drpLicenseDes.SelectedValue == BLL.Const._Null)
|
||||
@@ -652,7 +669,8 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
|
||||
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
Person_PersonsService.InitUserProjectIdUnitIdRoleIdDropDownList(drpSubUnitDutyPerson, CurrUser.LoginProjectId, drpUnit.SelectedValue, null, true);
|
||||
this.drpSubUnitDutyPerson.SelectedValue = BLL.Const._Null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user