增加数据穿透界面

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
@@ -3,6 +3,7 @@ using System;
using System.Collections.Generic;
using System.Text;
using AspNet = System.Web.UI.WebControls;
using System.Linq;
namespace FineUIPro.Web.HSSE.InApproveManager
{
@@ -85,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;
}
}
@@ -98,11 +94,13 @@ namespace FineUIPro.Web.HSSE.InApproveManager
/// </summary>
private void InitDropDownList()
{
this.drpUnitId.DataValueField = "UnitId";
this.drpUnitId.DataTextField = "UnitName";
this.drpUnitId.DataSource = BLL.UnitService.GetUnitByProjectIdList(this.ProjectId);
this.drpUnitId.DataBind();
Funs.FineUIPleaseSelect(this.drpUnitId);
UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
//this.drpUnitId.DataValueField = "UnitId";
//this.drpUnitId.DataTextField = "UnitName";
//this.drpUnitId.DataSource = BLL.UnitService.GetUnitByProjectIdList(this.ProjectId);
//this.drpUnitId.DataBind();
//Funs.FineUIPleaseSelect(this.drpUnitId);
}
/// <summary>
@@ -253,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>
@@ -293,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))
@@ -313,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