数据穿透新增页面

This commit is contained in:
2023-06-09 10:20:38 +08:00
parent 857a427be6
commit 72f0109f93
132 changed files with 15962 additions and 205 deletions
@@ -86,11 +86,6 @@ namespace FineUIPro.Web.HSSE.InApproveManager
////自动生成编码
this.txtGeneralEquipmentInCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.GeneralEquipmentInMenuId, this.ProjectId, this.CurrUser.UnitId);
}
///初始化审核菜单
this.ctlAuditFlow.MenuId = BLL.Const.GeneralEquipmentInMenuId;
this.ctlAuditFlow.DataId = this.GeneralEquipmentInId;
this.ctlAuditFlow.ProjectId = this.ProjectId;
this.ctlAuditFlow.UnitId = this.CurrUser.UnitId;
}
}
@@ -99,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);
//this.drpUnitId.DataValueField = "UnitId";
//this.drpUnitId.DataTextField = "UnitName";
@@ -260,27 +251,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>
@@ -300,11 +270,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
generalEquipmentIn.SubProjectName = this.txtSubProjectName.Text.Trim();
generalEquipmentIn.ContentDef = this.txtContentDef.Text.Trim();
generalEquipmentIn.OtherDef = this.txtOtherDef.Text.Trim();
generalEquipmentIn.State = BLL.Const.State_0;
if (type==BLL.Const.BtnSubmit)
{
generalEquipmentIn.State = this.ctlAuditFlow.NextStep;
}
generalEquipmentIn.State = BLL.Const.State_2;
generalEquipmentIn.CompileMan = this.CurrUser.UserId;
generalEquipmentIn.CompileDate = DateTime.Now;
if (!string.IsNullOrEmpty(this.GeneralEquipmentInId))
@@ -320,8 +286,7 @@ namespace FineUIPro.Web.HSSE.InApproveManager
BLL.GeneralEquipmentInService.AddGeneralEquipmentIn(generalEquipmentIn);
BLL.LogService.AddSys_Log(this.CurrUser, generalEquipmentIn.GeneralEquipmentInCode, generalEquipmentIn.GeneralEquipmentInId,BLL.Const.GeneralEquipmentInMenuId,BLL.Const.BtnAdd);
}
////保存流程审核数据
this.ctlAuditFlow.btnSaveData(this.ProjectId, BLL.Const.GeneralEquipmentInMenuId, this.GeneralEquipmentInId, (type == BLL.Const.BtnSubmit ? true : false), (generalEquipmentIn.CarNumber + generalEquipmentIn.SubProjectName), "../InApproveManager/GeneralEquipmentInView.aspx?GeneralEquipmentInId={0}");
Project_HSSEData_HSSEService.StatisticalData(this.CurrUser.LoginProjectId, Project_HSSEData_HSSEService.HSSEDateType.ConstructionEquipment);
}
#endregion