代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,12 +1,8 @@
|
||||
using BLL;
|
||||
using Microsoft.Vbe.Interop;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.PHTGL.ContractCompile
|
||||
@@ -29,7 +25,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);
|
||||
PHTGL_QuantityService.IniGetMajorItems3DownList(drpMajorItems, true);
|
||||
DropMainContractCode_SelectedIndexChanged(null, null);
|
||||
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
@@ -49,21 +45,21 @@ 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.MainItemName = this.txtMainItemName.Text.Trim();
|
||||
if (drpMajorItems.SelectedValue != Const._Null)
|
||||
{
|
||||
table.MajorName=drpMajorItems.SelectedValue;
|
||||
table.MajorName = drpMajorItems.SelectedValue;
|
||||
}
|
||||
var tb = BLL.PhtglContractTrackService.GetPHTGL_ContractTrackByModle(table);
|
||||
|
||||
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
Grid1.DataSource = PhtglContractTrackService.GetListData(table,Grid1);
|
||||
Grid1.DataSource = PhtglContractTrackService.GetListData(table, Grid1);
|
||||
Grid1.RecordCount = PhtglContractTrackService.Count;
|
||||
Grid1.DataBind();
|
||||
var sumTotalPricea = tb.Select(x => x.TotalPrice).ToList().Sum();
|
||||
lbTotalPrice.Text = sumTotalPricea.ToString();
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region GV 数据操作
|
||||
@@ -156,7 +152,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid行双击事件
|
||||
@@ -468,17 +464,17 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
|
||||
model.MainItemName = MainItemName;
|
||||
model.MajorName = MajorName;
|
||||
model.MajorCode = MajorCode;
|
||||
model.SubProject= SubProject;
|
||||
model.SubItemProject= SubItemProject;
|
||||
model.SubProject = SubProject;
|
||||
model.SubItemProject = SubItemProject;
|
||||
// model.ProjectCode = ProjectCode;
|
||||
model.ProjectName = ProjectName;
|
||||
model.ProjectDescription = ProjectDescription;
|
||||
model.UnitOfMeasurement = UnitOfMeasurement;
|
||||
model.Quantity = Quantity;
|
||||
model.TotalCostFixedComprehensiveUnitPrice =Funs.GetNewDecimalOrZero( TotalCostFixedComprehensiveUnitPrice);
|
||||
model.TotalCostFixedComprehensiveUnitPrice = Funs.GetNewDecimalOrZero(TotalCostFixedComprehensiveUnitPrice);
|
||||
model.MainMaterialCost = Funs.GetNewDecimalOrZero(MainMaterialCost);
|
||||
// model.TotalPrice = Funs.GetNewDecimalOrZero(TotalPrice);
|
||||
model.TotalPrice = (Funs.GetNewDecimalOrZero(Quantity)* model.TotalCostFixedComprehensiveUnitPrice);
|
||||
// model.TotalPrice = Funs.GetNewDecimalOrZero(TotalPrice);
|
||||
model.TotalPrice = (Funs.GetNewDecimalOrZero(Quantity) * model.TotalCostFixedComprehensiveUnitPrice);
|
||||
model.CalculationRule = CalculationRule;
|
||||
model.WorkContent = WorkContent;
|
||||
model.Remarks = Remarks;
|
||||
@@ -493,7 +489,7 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
|
||||
|
||||
PhtglContractTrackService.UpdatePHTGL_ContractTrack(model);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
ShowNotify("保存成功", MessageBoxIcon.Success);
|
||||
BindGrid();
|
||||
|
||||
Reference in New Issue
Block a user