代码无效引用清理,试压包资料界面看板修改

This commit is contained in:
2025-10-10 14:33:21 +08:00
parent 87fb529521
commit 55b798135c
933 changed files with 5897 additions and 7541 deletions
@@ -60,27 +60,27 @@ namespace FineUIPro.Web.HSSE.CostGoods
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideRefreshReference();
this.ProjectId = this.CurrUser.LoginProjectId;
this.ProjectId = this.CurrUser.LoginProjectId;
this.CostManageId = Request.Params["CostManageId"];
var costManage = BLL.CostManageService.GetCostManageById(this.CostManageId);
if (costManage != null)
{
this.ProjectId = costManage.ProjectId;
this.drpUnit.Text = UnitService.GetUnitNameByUnitId(costManage.UnitId);
this.txtContractNum.Text = costManage.ContractNum;
this.txtCostManageDate.Text = string.Format("{0:yyyy-MM-dd}", costManage.CostManageDate);
BindGrid();
this.txtProjectName.Text = ProjectService.GetProjectNameByProjectId(this.ProjectId);
this.txtHseCost.Text = ProjectUnitService.GetSumHSECost(this.ProjectId, costManage.UnitId).ToString();
this.txtGetCost.Text = CostManageService.GetSumHSECost(this.ProjectId, costManage.UnitId , this.CostManageId).ToString();
this.txtGetCost.Text = CostManageService.GetSumHSECost(this.ProjectId, costManage.UnitId, this.CostManageId).ToString();
NowFlow = CostManageService.getNowCostManageFlowOperateList(costManage.CostManageId);
if (NowFlow != null)
{
this.txtOpinion.Text = NowFlow.Opinion;
}
NextFlow = CostManageService.getNextCostManageFlowOperateList(costManage.CostManageId,this.CurrUser.PersonId);
NextFlow = CostManageService.getNextCostManageFlowOperateList(costManage.CostManageId, this.CurrUser.PersonId);
if (NextFlow != null)
{
Person_PersonsService.InitFlowOperateControlUserDropDownList(this.drpNextMan, this.ProjectId, NextFlow.UnitId, true);
@@ -120,7 +120,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
{
JObject summary = new JObject();
summary.Add("InvestCostProject", "本次申请合计金额(元)");
summary.Add("PriceMoney", getItem.Sum(x=>x.PriceMoney ?? 0));
summary.Add("PriceMoney", getItem.Sum(x => x.PriceMoney ?? 0));
Grid1.SummaryData = summary;
}
@@ -132,7 +132,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
protected void Window1_Close(object sender, EventArgs e)
{
BindGrid();
}
}
#endregion
#region BindGrid2
@@ -142,7 +142,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
private void BindGrid2()
{
var FlowOperates = from x in Funs.DB.CostGoods_CostManageFlowOperate
where x.CostManageId == this.CostManageId
where x.CostManageId == this.CostManageId
select new
{
x.FlowOperateId,
@@ -150,9 +150,9 @@ namespace FineUIPro.Web.HSSE.CostGoods
x.AuditFlowName,
x.SortIndex,
x.UnitId,
UnitName=Funs.DB.Base_Unit.First(u=>u.UnitId == x.UnitId).UnitName,
UnitName = Funs.DB.Base_Unit.First(u => u.UnitId == x.UnitId).UnitName,
x.OperaterId,
OperaterName= Funs.DB.Person_Persons.First(u => u.PersonId == x.OperaterId).PersonName,
OperaterName = Funs.DB.Person_Persons.First(u => u.PersonId == x.OperaterId).PersonName,
x.OperaterTime,
x.IsAgree,
x.Opinion,
@@ -172,14 +172,14 @@ namespace FineUIPro.Web.HSSE.CostGoods
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSubmit_Click(object sender, EventArgs e)
{
{
if (this.drpNextMan.SelectedValue == BLL.Const._Null && this.rblIsAgree.SelectedValue == "1" && NextFlow != null)
{
Alert.ShowInTop("请选择" + this.drpNextMan.Label + "!", MessageBoxIcon.Warning);
return;
}
this.SaveData();
}
/// <summary>
@@ -187,7 +187,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
/// </summary>
/// <param name="type"></param>
private void SaveData()
{
{
var getCost = CostManageService.GetCostManageById(this.CostManageId);
if (getCost != null)
{
@@ -195,7 +195,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
if (this.rblIsAgree.SelectedValue == "0") ///不同意 直接打回编制人
{
isAgree = false;
NowFlow.Opinion = this.rblIsAgree.SelectedItem.Text + ""+ this.txtOpinion.Text;
NowFlow.Opinion = this.rblIsAgree.SelectedItem.Text + "" + this.txtOpinion.Text;
getCost.States = BLL.Const.State_0;
getCost.NextManId = getCost.CompileMan;
BLL.CostManageService.UpdateCostManage(getCost);
@@ -203,7 +203,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
}
else
{
NowFlow.Opinion = this.rblIsAgree.SelectedItem.Text+"。";
NowFlow.Opinion = this.rblIsAgree.SelectedItem.Text + "。";
NowFlow.IsClosed = true;
if (NextFlow != null)
{
@@ -211,7 +211,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
BLL.CostManageService.updateCostManageFlowOperate(NextFlow);
getCost.NextManId = this.drpNextMan.SelectedValue;
BLL.CostManageService.UpdateCostManage(getCost);
BLL.CostManageService.UpdateCostManage(getCost);
}
else
{
@@ -222,12 +222,12 @@ namespace FineUIPro.Web.HSSE.CostGoods
}
NowFlow.IsAgree = isAgree;
NowFlow.OperaterTime = DateTime.Now;
NowFlow.OperaterTime = DateTime.Now;
BLL.CostManageService.updateCostManageFlowOperate(NowFlow);
}
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
}
#endregion
#region
@@ -241,7 +241,7 @@ namespace FineUIPro.Web.HSSE.CostGoods
if (!string.IsNullOrEmpty(this.CostManageId))
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/CostManageAttachUrl&menuId={1}&type=-1", this.CostManageId, BLL.Const.ProjectCostManageMenuId)));
}
}
}
#endregion