提交集团数据穿透修改

This commit is contained in:
2023-06-19 09:04:34 +08:00
parent efed3c7f6f
commit 1e709abb1a
184 changed files with 10777 additions and 3631 deletions
@@ -86,12 +86,6 @@ namespace FineUIPro.Web.HSSE.InApproveManager
////自动生成编码
this.txtEquipmentInCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.EquipmentInMenuId, this.ProjectId, this.CurrUser.UnitId);
}
///初始化审核菜单
this.ctlAuditFlow.MenuId = BLL.Const.EquipmentInMenuId;
this.ctlAuditFlow.DataId = this.EquipmentInId;
this.ctlAuditFlow.ProjectId = this.ProjectId;
this.ctlAuditFlow.UnitId = this.CurrUser.UnitId;
}
}
@@ -100,11 +94,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
/// </summary>
private void InitDropDownList()
{
drpUnitId.DataValueField = "UnitId";
drpUnitId.DataTextField = "UnitName";
drpUnitId.DataSource = Funs.DB.Base_Unit.Where(x => x.UnitId == this.CurrUser.UnitId).ToList();
drpUnitId.DataBind();
drpUnitId.SelectedValue = this.CurrUser.UnitId;
UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
// UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnitId, this.ProjectId, Const.ProjectUnitType_2, true);
// this.drpUnitId.Enabled = false;
@@ -258,27 +248,6 @@ namespace FineUIPro.Web.HSSE.InApproveManager
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
/// <summary>
/// 提交按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (this.drpUnitId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择单位名称!", MessageBoxIcon.Warning);
return;
}
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>
@@ -298,11 +267,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
equipmentIn.SubProjectName = this.txtSubProjectName.Text.Trim();
equipmentIn.ContentDef = this.txtContentDef.Text.Trim();
equipmentIn.OtherDef = this.txtOtherDef.Text.Trim();
equipmentIn.State = BLL.Const.State_0;
if (type == BLL.Const.BtnSubmit)
{
equipmentIn.State = this.ctlAuditFlow.NextStep;
}
equipmentIn.State = BLL.Const.State_2;
equipmentIn.CompileMan = this.CurrUser.UserId;
equipmentIn.CompileDate = DateTime.Now;
if (!string.IsNullOrEmpty(this.EquipmentInId))
@@ -318,8 +283,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
BLL.EquipmentInService.AddEquipmentIn(equipmentIn);
BLL.LogService.AddSys_Log(this.CurrUser, equipmentIn.EquipmentInCode, equipmentIn.EquipmentInId, BLL.Const.EquipmentInMenuId, BLL.Const.BtnAdd);
}
////保存流程审核数据
this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.EquipmentInMenuId, this.EquipmentInId, (type == BLL.Const.BtnSubmit ? true : false), (equipmentIn.CarNumber + equipmentIn.SubProjectName), "../InApproveManager/EquipmentInView.aspx?EquipmentInId={0}");
Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.ConstructionEquipment);
}
#endregion