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

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
@@ -1,16 +1,12 @@
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Net.Configuration;
using BLL;
using FineUIPro.Web.PHTGL.BiddingManagement;
using BLL;
using Model;
using Newtonsoft.Json.Linq;
using System;
using System.Linq;
namespace FineUIPro.Web.PHTGL.ContractCompile
{
public partial class ContractTrackEdit: PageBase
public partial class ContractTrackEdit : PageBase
{
#region
@@ -44,7 +40,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
var model = PhtglContractTrackService.GetPHTGL_ContractTrackById(Id);
if (model != null)
{
DropContractCode.SelectedValue = ContractService.GetContractById(model.ContractId).ContractNum;
txtSerialNumber.Text = model.SerialNumber;
txtMainItemCode.Text = model.MainItemCode;
@@ -58,7 +54,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
txtProjectDescription.Text = model.ProjectDescription;
txtUnitOfMeasurement.Text = model.UnitOfMeasurement;
txtQuantity.Text = model.Quantity;
txtTotalCostFixedComprehensiveUnitPrice.Text = model.TotalCostFixedComprehensiveUnitPrice.HasValue?model.TotalCostFixedComprehensiveUnitPrice.ToString():"";
txtTotalCostFixedComprehensiveUnitPrice.Text = model.TotalCostFixedComprehensiveUnitPrice.HasValue ? model.TotalCostFixedComprehensiveUnitPrice.ToString() : "";
txtMainMaterialCost.Text = model.MainMaterialCost.HasValue ? model.MainMaterialCost.ToString() : "";
txtTotalPrice.Text = model.TotalPrice.HasValue ? model.TotalPrice.ToString() : "";
txtCalculationRule.Text = model.CalculationRule;
@@ -67,7 +63,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
txtConstructionSubcontractor.Text = model.ConstructionSubcontractor;
txtContractWeight.Text = model.ContractWeight;
txtMaterialSupplier.Text = model.MaterialSupplier;
cbIsWithinGeneralContractScope.Checked = model.IsWithinGeneralContractScope ??false;
cbIsWithinGeneralContractScope.Checked = model.IsWithinGeneralContractScope ?? false;
txtEstimatedQuantity.Text = model.EstimatedQuantity;
txtEstimatedAmount.Text =
model.EstimatedAmount.HasValue ? model.EstimatedAmount.ToString() : "";
@@ -87,11 +83,11 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
{
Model.PHTGL_ContractTrackProgress queryProgress = new PHTGL_ContractTrackProgress();
queryProgress.ContractTrackProgressId = ID;
var tb= PhtglContracttrackprogressService.GetListData(queryProgress, Grid1);
Grid1.RecordCount = PhtglContracttrackprogressService.Count;
Grid1.DataSource = tb;
Grid1.DataBind();
#region Grid1
var tb = PhtglContracttrackprogressService.GetListData(queryProgress, Grid1);
Grid1.RecordCount = PhtglContracttrackprogressService.Count;
Grid1.DataSource = tb;
Grid1.DataBind();
#region Grid1
// 删除选中单元格的客户端脚本
string deleteScript = GetDeleteScript();
@@ -151,10 +147,10 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
var table = new PHTGL_ContractTrack();
if (string.IsNullOrEmpty(DropContractCode.SelectedValue))
{
ShowNotify("请选择施工分包合同",MessageBoxIcon.Question);
ShowNotify("请选择施工分包合同", MessageBoxIcon.Question);
return;
}
table.ContractId =ContractService.GetContractByContractNum(DropContractCode.SelectedValue).ContractId;
table.ContractId = ContractService.GetContractByContractNum(DropContractCode.SelectedValue).ContractId;
table.SerialNumber = txtSerialNumber.Text;
table.MainItemCode = txtMainItemCode.Text;
table.MainItemName = txtMainItemName.Text;
@@ -175,10 +171,10 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
table.Remarks = txtRemarks.Text;
table.ConstructionSubcontractor = txtConstructionSubcontractor.Text;
table.ContractWeight = txtContractWeight.Text;
table.MaterialSupplier = txtMaterialSupplier.Text;
table.MaterialSupplier = txtMaterialSupplier.Text;
table.IsWithinGeneralContractScope = cbIsWithinGeneralContractScope.Checked;
table.EstimatedQuantity = txtEstimatedQuantity.Text;
table.EstimatedAmount = Funs.GetNewDecimalOrZero(txtEstimatedAmount.Text);
table.EstimatedAmount = Funs.GetNewDecimalOrZero(txtEstimatedAmount.Text);
table.SettledQuantity = txtSettledQuantity.Text;
table.SettledAmount = Funs.GetNewDecimalOrZero(txtSettledAmount.Text);
table.ContractNum = DropContractCode.SelectedValue;