增加数据穿透界面

This commit is contained in:
2023-06-07 18:55:33 +08:00
parent e66750312e
commit b592ccfe5e
358 changed files with 30974 additions and 2388 deletions
@@ -1,6 +1,7 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AspNet = System.Web.UI.WebControls;
@@ -85,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;
}
}
@@ -99,7 +94,10 @@ namespace FineUIPro.Web.HSSE.InApproveManager
/// </summary>
private void InitDropDownList()
{
UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnitId, this.ProjectId, Const.ProjectUnitType_2, true);
UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
// UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnitId, this.ProjectId, Const.ProjectUnitType_2, true);
// this.drpUnitId.Enabled = false;
}
/// <summary>
@@ -250,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>
@@ -290,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))
@@ -310,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