2023-11-01

This commit is contained in:
2023-11-01 23:12:52 +08:00
parent 8d25d69061
commit 32c893fdc3
20 changed files with 496 additions and 203 deletions
@@ -29,6 +29,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
this.DropContractCode.DataSource = BLL.PHTGL_ContractReviewService.GetContractReview_CompleteData(this.CurrUser.LoginProjectId);
this.DropContractCode.DataBind();
Funs.FineUIPleaseSelect(this.DropContractCode);
PHTGL_QuantityService.IniGetMajorItems3DownList(drpMajorItems,true);
DropMainContractCode_SelectedIndexChanged(null, null);
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
// 绑定表格
@@ -48,12 +49,18 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
table.ContractId = this.ContractId;
table.ProjectCode = this.txtProjectCode.Text.Trim();
table.ProjectName = this.txtProjectName.Text.Trim();
table.MainItemName=this.txtMainItemName.Text.Trim();
if (drpMajorItems.SelectedValue!=Const._Null)
{
table.MajorName=drpMajorItems.SelectedValue;
}
var tb = BLL.PhtglContractTrackService.GetPHTGL_ContractTrackByModle(table);
Grid1.RecordCount = PhtglContractTrackService.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
Grid1.DataSource = tb;
Grid1.DataSource = PhtglContractTrackService.GetListData(table,Grid1);
Grid1.RecordCount = PhtglContractTrackService.Count;
Grid1.DataBind();
var sumTotalPricea = tb.Select(x =>Funs.GetNewDecimalOrZero(x.TotalPrice) ).ToList().Sum();
var sumTotalPricea = tb.Select(x => x.TotalPrice).ToList().Sum();
lbTotalPrice.Text = sumTotalPricea.ToString();
}
@@ -468,9 +475,9 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
model.ProjectDescription = ProjectDescription;
model.UnitOfMeasurement = UnitOfMeasurement;
model.Quantity = Quantity;
model.TotalCostFixedComprehensiveUnitPrice = TotalCostFixedComprehensiveUnitPrice;
model.MainMaterialCost = MainMaterialCost;
model.TotalPrice = TotalPrice;
model.TotalCostFixedComprehensiveUnitPrice =Funs.GetNewDecimalOrZero( TotalCostFixedComprehensiveUnitPrice);
model.MainMaterialCost = Funs.GetNewDecimalOrZero(MainMaterialCost);
model.TotalPrice = Funs.GetNewDecimalOrZero(TotalPrice);
model.CalculationRule = CalculationRule;
model.WorkContent = WorkContent;
model.Remarks = Remarks;