增加数据穿透界面
This commit is contained in:
@@ -67,10 +67,6 @@ namespace FineUIPro.Web.HSSE.License
|
||||
{
|
||||
this.drpUnitId.SelectedValue = licenseManager.UnitId;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(licenseManager.CNProfessionalId))
|
||||
{
|
||||
this.drpCNProfessionalId.SelectedValue = licenseManager.CNProfessionalId;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(licenseManager.LicenseTypeId))
|
||||
{
|
||||
this.drpLicenseTypeId.SelectedValue = licenseManager.LicenseTypeId;
|
||||
@@ -85,6 +81,10 @@ namespace FineUIPro.Web.HSSE.License
|
||||
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", licenseManager.StartDate);
|
||||
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", licenseManager.EndDate);
|
||||
this.drpStates.SelectedValue = licenseManager.WorkStates;
|
||||
if (licenseManager.IsHighRisk == true)
|
||||
{
|
||||
this.cbIsHighRisk.Checked = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -102,12 +102,6 @@ namespace FineUIPro.Web.HSSE.License
|
||||
////自动生成编码
|
||||
this.txtLicenseManagerCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.ProjectLicenseManagerMenuId, this.ProjectId, this.CurrUser.UnitId);
|
||||
}
|
||||
|
||||
///初始化审核菜单
|
||||
this.ctlAuditFlow.MenuId = BLL.Const.ProjectLicenseManagerMenuId;
|
||||
this.ctlAuditFlow.DataId = this.LicenseManagerId;
|
||||
this.ctlAuditFlow.ProjectId = this.ProjectId;
|
||||
this.ctlAuditFlow.UnitId = this.CurrUser.UnitId;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -118,7 +112,6 @@ namespace FineUIPro.Web.HSSE.License
|
||||
private void InitDropDownList()
|
||||
{
|
||||
UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
|
||||
BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true);
|
||||
LicenseTypeService.InitLicenseTypeDropDownList(this.drpLicenseTypeId, true);
|
||||
UnitWorkService.InitUnitWorkDownList(this.drpWorkAreaId, this.ProjectId, false);
|
||||
}
|
||||
@@ -130,27 +123,11 @@ namespace FineUIPro.Web.HSSE.License
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
{
|
||||
this.SaveData(BLL.Const.BtnSave);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 提交按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.ctlAuditFlow.NextStep == BLL.Const.State_1 && this.ctlAuditFlow.NextPerson == BLL.Const._Null)
|
||||
{
|
||||
ShowNotify("请选择下一步办理人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
this.SaveData(BLL.Const.BtnSubmit);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存数据
|
||||
/// </summary>
|
||||
@@ -182,10 +159,7 @@ namespace FineUIPro.Web.HSSE.License
|
||||
{
|
||||
licenseManager.UnitId = this.drpUnitId.SelectedValue;
|
||||
}
|
||||
if (this.drpCNProfessionalId.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
licenseManager.CNProfessionalId = this.drpCNProfessionalId.SelectedValue;
|
||||
}
|
||||
licenseManager.IsHighRisk = Convert.ToBoolean(this.cbIsHighRisk.Checked);
|
||||
licenseManager.ApplicantMan = this.txtApplicantMan.Text.Trim();
|
||||
if (!string.IsNullOrEmpty(this.drpWorkAreaId.SelectedValue))
|
||||
{
|
||||
@@ -201,22 +175,14 @@ namespace FineUIPro.Web.HSSE.License
|
||||
licenseManager.EndDate = Funs.GetNewDateTime(this.txtEndDate.Text);
|
||||
licenseManager.CompileDate = Funs.GetNewDateTime(this.txtCompileDate.Text.Trim());
|
||||
licenseManager.LicenseManageContents = HttpUtility.HtmlEncode(this.txtLicenseManageContents.Text);
|
||||
licenseManager.States = BLL.Const.State_0;
|
||||
licenseManager.States = BLL.Const.State_2;
|
||||
if (!string.IsNullOrEmpty(this.drpStates.SelectedValue))
|
||||
{
|
||||
licenseManager.WorkStates = this.drpStates.SelectedValue;
|
||||
}
|
||||
else
|
||||
{
|
||||
licenseManager.WorkStates =null;
|
||||
}
|
||||
if (type == BLL.Const.BtnSubmit)
|
||||
{
|
||||
licenseManager.States = this.ctlAuditFlow.NextStep;
|
||||
//if (licenseManager.States == Const.State_2 && licenseManager.WorkStates != Const.State_R)
|
||||
//{
|
||||
// licenseManager.WorkStates = Const.State_3;
|
||||
//}
|
||||
licenseManager.WorkStates = null;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.LicenseManagerId))
|
||||
{
|
||||
@@ -232,8 +198,7 @@ namespace FineUIPro.Web.HSSE.License
|
||||
BLL.LicenseManagerService.AddLicenseManager(licenseManager);
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, licenseManager.LicenseManagerCode, licenseManager.LicenseManagerId, BLL.Const.ProjectLicenseManagerMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
////保存流程审核数据
|
||||
this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.ProjectLicenseManagerMenuId, this.LicenseManagerId, (type == BLL.Const.BtnSubmit ? true : false), licenseManager.LicenseManageName, "../License/LicenseManagerView.aspx?LicenseManagerId={0}");
|
||||
Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.WorkPermit);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user