2023-10-27
This commit is contained in:
parent
81d0edb9e7
commit
bf856b7ab7
|
|
@ -506,5 +506,17 @@ namespace BLL
|
|||
}
|
||||
return Convert.ToDouble(size) * n;
|
||||
}
|
||||
|
||||
public static string GetWPQCodeByWeldJointId(object WeldJointId)
|
||||
{
|
||||
string result = "";
|
||||
if (WeldJointId != null)
|
||||
{
|
||||
var model = GetViewWeldJointById(WeldJointId.ToString());
|
||||
result = model?.WPQCode;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ using System.Collections.Generic;
|
|||
using System.Data;
|
||||
using System.Linq;
|
||||
using EmitMapper;
|
||||
using EmitMapper.MappingConfiguration;
|
||||
using FineUIPro;
|
||||
using MiniExcelLibs;
|
||||
using MiniExcelLibs.Attributes;
|
||||
|
|
@ -322,6 +323,7 @@ namespace BLL
|
|||
var mapper =
|
||||
ObjectMapperManager.DefaultInstance.GetMapper<List<PHTGL_ContractTrackDtoIn>, List<PHTGL_ContractTrack>>();
|
||||
var modeList = mapper.Map(rows);
|
||||
|
||||
if (modeList.Count == 0)
|
||||
{
|
||||
responeData.code = 0;
|
||||
|
|
@ -1265,7 +1267,7 @@ namespace BLL
|
|||
|
||||
}
|
||||
public class PHTGL_ContractTrackDtoIn
|
||||
{
|
||||
{
|
||||
/// <summary>
|
||||
/// 序号
|
||||
/// </summary>
|
||||
|
|
@ -1338,5 +1340,34 @@ namespace BLL
|
|||
/// 备注
|
||||
/// </summary>
|
||||
[ExcelColumnIndex("R")] public string Remarks { get; set; }
|
||||
/// <summary>
|
||||
/// 施工分包商
|
||||
/// </summary>
|
||||
[ExcelColumnIndex("S")] public string ConstructionSubcontractor { get; set; }
|
||||
/// <summary>
|
||||
/// 主材供应方
|
||||
/// </summary>
|
||||
[ExcelColumnIndex("T")] public string MaterialSupplier { get; set; }
|
||||
/// <summary>
|
||||
/// 是否总包合同范围内
|
||||
/// </summary>
|
||||
[ExcelColumnIndex("U")]
|
||||
public string IsWithinGeneralContractScope { get; set; }
|
||||
/// <summary>
|
||||
/// 概算工程量
|
||||
/// </summary>
|
||||
[ExcelColumnIndex("V")] public string EstimatedQuantity { get; set; }
|
||||
/// <summary>
|
||||
/// 概算金额
|
||||
/// </summary>
|
||||
[ExcelColumnIndex("W")] public decimal EstimatedAmount { get; set; }
|
||||
/// <summary>
|
||||
/// 预算工程量
|
||||
/// </summary>
|
||||
[ExcelColumnIndex("X")] public string SettledQuantity { get; set; }
|
||||
/// <summary>
|
||||
/// 预算金额
|
||||
/// </summary>
|
||||
[ExcelColumnIndex("Y")] public decimal SettledAmount { get; set; }
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
|
@ -60,7 +60,7 @@
|
|||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar4" Position="Top" runat="server" ToolbarAlign="right">
|
||||
<Items>
|
||||
<f:Label ID="lbSinglePreRate" CssClass="customlabel" runat="server" Label="图纸预制率"></f:Label>
|
||||
<f:Label ID="lbSinglePreRate" CssClass="customlabel" runat="server" Label="图纸预制率" Hidden="True"></f:Label>
|
||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSetShop" ToolTip="工厂预制" Text="工厂预制" Icon="ApplicationEdit"
|
||||
EnablePostBack="true" OnClick="btnSetShop_Click" runat="server">
|
||||
|
|
|
|||
|
|
@ -24,6 +24,10 @@
|
|||
<f:TextBox runat="server" Label="评定编号" ID="txtWeldingProcedureCode" EmptyText="输入查询条件"
|
||||
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="300px" LabelAlign="right">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpUnit" runat="server" Required="true" ShowRedStar="true" OnSelectedIndexChanged="TextBox_TextChanged"
|
||||
Label="工艺规程编制单位" LabelAlign="Right" LabelWidth="180px">
|
||||
</f:DropDownList>
|
||||
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:Button ID="btnNew" Text="增加" Icon="Add" runat="server" OnClick="btnNew_Click">
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ namespace FineUIPro.Web.HJGL.WPQ
|
|||
if (!IsPostBack)
|
||||
{
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(drpUnit, this.CurrUser.LoginProjectId, Const.ProjectUnitType_2, true);
|
||||
// 绑定表格
|
||||
BindGrid();
|
||||
}
|
||||
|
|
@ -39,6 +40,12 @@ namespace FineUIPro.Web.HJGL.WPQ
|
|||
strSql += " AND WPQCode LIKE @WPQCode";
|
||||
listStr.Add(new SqlParameter("@WPQCode", "%" + this.txtWeldingProcedureCode.Text.Trim() + "%"));
|
||||
}
|
||||
|
||||
if (drpUnit.SelectedValue!=Const._Null)
|
||||
{
|
||||
strSql += " AND UnitId =@UnitId";
|
||||
listStr.Add(new SqlParameter("@UnitId", drpUnit.SelectedValue));
|
||||
}
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
|
|
|
|||
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.HJGL.WPQ {
|
||||
|
||||
|
||||
public partial class WPQList {
|
||||
|
||||
namespace FineUIPro.Web.HJGL.WPQ
|
||||
{
|
||||
|
||||
|
||||
public partial class WPQList
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
|
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtWeldingProcedureCode 控件。
|
||||
/// </summary>
|
||||
|
|
@ -65,7 +67,16 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtWeldingProcedureCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -74,7 +85,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnNew 控件。
|
||||
/// </summary>
|
||||
|
|
@ -83,7 +94,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnImport 控件。
|
||||
/// </summary>
|
||||
|
|
@ -92,7 +103,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnImport;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnExport 控件。
|
||||
/// </summary>
|
||||
|
|
@ -101,7 +112,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnExport;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblNumber 控件。
|
||||
/// </summary>
|
||||
|
|
@ -110,7 +121,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumber;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -119,7 +130,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label41 控件。
|
||||
/// </summary>
|
||||
|
|
@ -128,7 +139,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label41;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -137,7 +148,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -146,7 +157,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
|
|
@ -155,7 +166,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -164,7 +175,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Window2 控件。
|
||||
/// </summary>
|
||||
|
|
@ -173,7 +184,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
|
|
@ -182,7 +193,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
|
|
@ -191,7 +202,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuView 控件。
|
||||
/// </summary>
|
||||
|
|
@ -200,7 +211,7 @@ namespace FineUIPro.Web.HJGL.WPQ {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuView;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete 控件。
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -132,6 +132,11 @@
|
|||
<f:RenderField HeaderText="公称直径" ColumnID="DNDia" DataField="DNDia" SortField="DNDia"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="120px" >
|
||||
</f:RenderField>
|
||||
<f:TemplateField ColumnID="WPQCode" Width="120px" HeaderText="评定编号" HeaderTextAlign="Center" TextAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label2" runat="server" Text='<%# BLL.WeldJointService.GetWPQCodeByWeldJointId(Eval("WeldJointId")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField HeaderText="壁厚" ColumnID="Thickness"
|
||||
DataField="Thickness" SortField="Thickness" FieldType="Double" HeaderTextAlign="Center"
|
||||
TextAlign="Left" Width="120px" Hidden="true">
|
||||
|
|
|
|||
|
|
@ -220,5 +220,14 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAccept;
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@
|
|||
<asp:Label ID="Label2" runat="server" Text='<%# BLL.PhtglContractTrackService.GetQuantityOffset(Eval("Id")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnID="AmountOffset" Width="120px" HeaderText="费用偏差" HeaderTextAlign="Center" TextAlign="Right">
|
||||
<f:TemplateField ColumnID="AmountOffset" Width="120px" HeaderText="费用偏差(元)" HeaderTextAlign="Center" TextAlign="Right">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label1" runat="server" Text='<%# BLL.PhtglContractTrackService.GetAmountOffset(Eval("Id")) %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
|
|
|
|||
|
|
@ -22,6 +22,10 @@
|
|||
.f-grid-row.red {
|
||||
background-color: Yellow;
|
||||
}
|
||||
.f-grid-cell[data-color=color1] {
|
||||
background-color: Yellow;
|
||||
color: #000000;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
|
@ -36,7 +40,7 @@
|
|||
runat="server" BoxFlex="1" DataKeyNames="Id" AllowCellEditing="true"
|
||||
ClicksToEdit="1" DataIDField="Id" AllowSorting="true" SortField="Id"
|
||||
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true"
|
||||
AllowPaging="False" IsDatabasePaging="true" PageSize="10"
|
||||
AllowPaging="False" IsDatabasePaging="true" PageSize="10" OnRowDataBound="Grid1_OnRowDataBound"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableRowClickEvent="True">
|
||||
<Toolbars>
|
||||
|
||||
|
|
|
|||
|
|
@ -332,6 +332,47 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
|
|||
|
||||
|
||||
}
|
||||
protected void Grid1_OnRowDataBound(object sender, GridRowEventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(ContractId))
|
||||
{
|
||||
Model.PHTGL_ContractTrack queryContractTrack = new Model.PHTGL_ContractTrack();
|
||||
queryContractTrack.ProjectId = this.CurrUser.LoginProjectId;
|
||||
queryContractTrack.ContractId = this.ContractId;
|
||||
var modelContractTracks = BLL.PhtglContractTrackService.GetPHTGL_ContractTrackByModle(queryContractTrack);
|
||||
foreach (var item in modelContractTracks)
|
||||
{
|
||||
|
||||
|
||||
Model.PHTGL_ContractTrackProgress qContractTrackProgress = new Model.PHTGL_ContractTrackProgress();
|
||||
qContractTrackProgress.ContractTrackId = item.Id;
|
||||
var modelContractTrackProgresses = BLL.PhtglContracttrackprogressService.GetPHTGL_ContractTrackProgressByModle(qContractTrackProgress);
|
||||
foreach (var detail in modelContractTrackProgresses)
|
||||
{
|
||||
|
||||
var date = detail.Date + "#";
|
||||
RenderField rfRenderField1 = Grid1.FindColumn(date + "BCWS_Quantity") as RenderField;
|
||||
BoundField bf1 = Grid1.FindColumn(date + "BCWS_OutputValue") as BoundField;
|
||||
BoundField bf2 = Grid1.FindColumn(date + "BCWS_Percentage") as BoundField;
|
||||
|
||||
e.CellAttributes[rfRenderField1.ColumnIndex]["data-color"] = "color1";
|
||||
e.CellAttributes[bf1.ColumnIndex]["data-color"] = "color1";
|
||||
e.CellAttributes[bf2.ColumnIndex]["data-color"] = "color1";
|
||||
|
||||
RenderField rfRenderField2 = Grid1.FindColumn(date + "SumBCWS_Quantity") as RenderField;
|
||||
BoundField bf3 = Grid1.FindColumn(date + "SumBCWS_OutputValue") as BoundField;
|
||||
BoundField bf4 = Grid1.FindColumn(date + "SumBCWS_Percentage") as BoundField;
|
||||
|
||||
e.CellAttributes[rfRenderField2.ColumnIndex]["data-color"] = "color1";
|
||||
e.CellAttributes[bf3.ColumnIndex]["data-color"] = "color1";
|
||||
e.CellAttributes[bf4.ColumnIndex]["data-color"] = "color1";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region GV 数据操作
|
||||
|
|
@ -600,5 +641,6 @@ namespace FineUIPro.Web.PHTGL.ContractCompile
|
|||
#endregion
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue