2023-10-24
This commit is contained in:
@@ -129,23 +129,6 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
|
||||
#endregion
|
||||
|
||||
#region 数据编辑事件
|
||||
/// <summary>
|
||||
/// 新增
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnNew_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ContractId))
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ContractTrackEdit.aspx?Id={0}", string.Empty, "增加 - ")));
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请选择施工分包合同!", MessageBoxIcon.Information);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 编辑按钮
|
||||
@@ -307,6 +290,15 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
|
||||
PhtglContractTrackService.UpdatePHTGL_ContractTrack(model);
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(ContractId))
|
||||
{
|
||||
BLL.PhtglContractTrackService.CheckContractWeightByContractId(ContractId, this.CurrUser.LoginProjectId);
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("计算合同权重失败,请选择施工分包合同后重新保存", MessageBoxIcon.Question);
|
||||
}
|
||||
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
@@ -315,22 +307,6 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
protected void btnGetChart_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ContractId))
|
||||
{
|
||||
var model = ContractService.GetContractByContractNum(DropContractCode.SelectedValue);
|
||||
if (model != null)
|
||||
{
|
||||
PageContext.RegisterStartupScript(
|
||||
Window2.GetShowReference(string.Format("ContractTrackProgressChart.aspx?ContractId={0}", model.ContractId, "图表 - ")));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请选择施工分包合同", MessageBoxIcon.Question);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 关闭弹出窗
|
||||
@@ -356,10 +332,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.PHTGL_ContractTrackComparisonMenuId);
|
||||
if (buttonList.Count > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
this.btnNew.Hidden = false;
|
||||
}
|
||||
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
{
|
||||
this.btnMenuEdit.Hidden = false;
|
||||
@@ -448,23 +421,6 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
protected void btnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ContractId))
|
||||
{
|
||||
var model = ContractService.GetContractByContractNum(DropContractCode.SelectedValue);
|
||||
if (model != null)
|
||||
{
|
||||
PageContext.RegisterStartupScript(
|
||||
Window2.GetShowReference(string.Format("ContractTrackIn.aspx?ContractId={0}", model.ContractId, "导入 - ")));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
ShowNotify("请选择施工分包合同", MessageBoxIcon.Question);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected void Window3_OnClose(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user