提交代码
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
<f:FormRow ColumnWidths="66% 34%">
|
||||
<Items>
|
||||
<f:TextBox runat="server" ID="txtConstructionContent" LabelWidth="140px" Label="施工内容" ShowRedStar="true" Required="true"></f:TextBox>
|
||||
<f:DropDownList ID="DropDownList1" runat="server" EnableEdit="true" Label="施工单位" LabelWidth="140px"
|
||||
<f:DropDownList ID="drpSubUnitDutyPerson" runat="server" EnableEdit="true" Label="施工单位责任人" LabelWidth="140px"
|
||||
>
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -76,13 +76,13 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
||||
protected global::FineUIPro.TextBox txtConstructionContent;
|
||||
|
||||
/// <summary>
|
||||
/// DropDownList1 控件。
|
||||
/// drpSubUnitDutyPerson 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList DropDownList1;
|
||||
protected global::FineUIPro.DropDownList drpSubUnitDutyPerson;
|
||||
|
||||
/// <summary>
|
||||
/// drpWorkArea 控件。
|
||||
|
||||
@@ -35,10 +35,12 @@
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="15% 85%">
|
||||
<f:FormRow ColumnWidths="66% 34%">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="txtC" LabelWidth="140px" Label="施工内容" ShowRedStar="true"></f:Label>
|
||||
<f:Label runat="server" ID="txtConstructionContent"></f:Label>
|
||||
<f:TextBox runat="server" ID="txtConstructionContent" LabelWidth="140px" Label="施工内容" ShowRedStar="true" Required="true"></f:TextBox>
|
||||
<f:DropDownList ID="drpSubUnitDutyPerson" runat="server" EnableEdit="true" Label="施工单位责任人" LabelWidth="140px" Readonly="true"
|
||||
>
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
|
||||
@@ -88,6 +88,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))
|
||||
{
|
||||
|
||||
@@ -66,15 +66,6 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker dpDateZ;
|
||||
|
||||
/// <summary>
|
||||
/// txtC 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtC;
|
||||
|
||||
/// <summary>
|
||||
/// txtConstructionContent 控件。
|
||||
/// </summary>
|
||||
@@ -82,7 +73,16 @@ namespace FineUIPro.Web.HSSE.Hazard {
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtConstructionContent;
|
||||
protected global::FineUIPro.TextBox txtConstructionContent;
|
||||
|
||||
/// <summary>
|
||||
/// drpSubUnitDutyPerson 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpSubUnitDutyPerson;
|
||||
|
||||
/// <summary>
|
||||
/// drpWorkArea 控件。
|
||||
|
||||
Reference in New Issue
Block a user