2023-08-31

This commit is contained in:
2023-08-31 11:02:23 +08:00
parent 6ea5ca4ebe
commit 0fc844f107
24 changed files with 2260 additions and 238 deletions
@@ -41,7 +41,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
Id = Request.Params["Id"];
if (!string.IsNullOrEmpty(Id))
{
var model = PHTGL_ContractTrackService.GetPHTGL_ContractTrackById(Id);
var model = PhtglContractTrackService.GetPHTGL_ContractTrackById(Id);
if (model != null)
{
@@ -101,6 +101,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
defaultObj.Add("ACWP_Quantity", "");
defaultObj.Add("ACWP_OutputValue", "");
defaultObj.Add("ACWP_Percentage", "");
defaultObj.Add("Date", "");
// 在第一行新增一条数据
btnNew.OnClientClick = Grid1.GetAddNewRecordReference(defaultObj, true);
@@ -129,6 +130,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
model.ACWP_Quantity = objects["values"]["ACWP_Quantity"].ToString();
model.ACWP_OutputValue = objects["values"]["ACWP_OutputValue"].ToString();
model.ACWP_Percentage = objects["values"]["ACWP_Percentage"].ToString();
model.Date = objects["values"]["Date"].ToString();
BLL.PhtglContracttrackprogressService.AddPHTGL_ContractTrackProgress(model);
}
}
@@ -177,20 +179,20 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
table.EstimatedAmount = Funs.GetNewDecimalOrZero(txtEstimatedAmount.Text);
table.SettledQuantity = txtSettledQuantity.Text;
table.SettledAmount = Funs.GetNewDecimalOrZero(txtSettledAmount.Text);
table.ContractId = txtContractId.Text;
table.ProjectId = txtProjectId.Text;
table.ContractNum = DropContractCode.SelectedValue;
table.ProjectId = this.CurrUser.LoginProjectId;
if (string.IsNullOrEmpty(Id))
{
table.Id = SQLHelper.GetNewID(typeof(PHTGL_ContractTrack));
PHTGL_ContractTrackService.AddPHTGL_ContractTrack(table);
PhtglContractTrackService.AddPHTGL_ContractTrack(table);
}
else
{
table.Id = Id;
PHTGL_ContractTrackService.UpdatePHTGL_ContractTrack(table);
PhtglContractTrackService.UpdatePHTGL_ContractTrack(table);
}
SaveGrid1();
//SaveGrid1();
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}