diff --git a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs index 10038a26..cfd95d31 100644 --- a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs +++ b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs @@ -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; + } } } diff --git a/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackService .cs b/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackService .cs index f377bf23..6e94061e 100644 --- a/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackService .cs +++ b/SGGL/BLL/PHTGL/ContractCompile/PhtglContracttrackService .cs @@ -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>(); var modeList = mapper.Map(rows); + if (modeList.Count == 0) { responeData.code = 0; @@ -1265,7 +1267,7 @@ namespace BLL } public class PHTGL_ContractTrackDtoIn - { + { /// /// 序号 /// @@ -1338,5 +1340,34 @@ namespace BLL /// 备注 /// [ExcelColumnIndex("R")] public string Remarks { get; set; } + /// + /// 施工分包商 + /// + [ExcelColumnIndex("S")] public string ConstructionSubcontractor { get; set; } + /// + /// 主材供应方 + /// + [ExcelColumnIndex("T")] public string MaterialSupplier { get; set; } + /// + /// 是否总包合同范围内 + /// + [ExcelColumnIndex("U")] + public string IsWithinGeneralContractScope { get; set; } + /// + /// 概算工程量 + /// + [ExcelColumnIndex("V")] public string EstimatedQuantity { get; set; } + /// + /// 概算金额 + /// + [ExcelColumnIndex("W")] public decimal EstimatedAmount { get; set; } + /// + /// 预算工程量 + /// + [ExcelColumnIndex("X")] public string SettledQuantity { get; set; } + /// + /// 预算金额 + /// + [ExcelColumnIndex("Y")] public decimal SettledAmount { get; set; } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/File/Excel/DataIn/合同执行跟踪导入模板.xlsx b/SGGL/FineUIPro.Web/File/Excel/DataIn/合同执行跟踪导入模板.xlsx index 43003440..22236e62 100644 Binary files a/SGGL/FineUIPro.Web/File/Excel/DataIn/合同执行跟踪导入模板.xlsx and b/SGGL/FineUIPro.Web/File/Excel/DataIn/合同执行跟踪导入模板.xlsx differ diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx index eb2631ee..5292f6b1 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PipelingDivide.aspx @@ -60,7 +60,7 @@ - + diff --git a/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx b/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx index d8098147..662e10a2 100644 --- a/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx +++ b/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx @@ -24,6 +24,10 @@ + + + diff --git a/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx.cs index 421a7e01..e12eded6 100644 --- a/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx.cs @@ -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); diff --git a/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx.designer.cs index 80df370b..d71ea2fb 100644 --- a/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/WPQ/WPQList.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.WPQ { - - - public partial class WPQList { - +namespace FineUIPro.Web.HJGL.WPQ +{ + + + public partial class WPQList + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar2 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// txtWeldingProcedureCode 控件。 /// @@ -65,7 +67,16 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtWeldingProcedureCode; - + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + /// /// ToolbarFill1 控件。 /// @@ -74,7 +85,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnNew 控件。 /// @@ -83,7 +94,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnNew; - + /// /// btnImport 控件。 /// @@ -92,7 +103,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnImport; - + /// /// btnExport 控件。 /// @@ -101,7 +112,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnExport; - + /// /// lblNumber 控件。 /// @@ -110,7 +121,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblNumber; - + /// /// Label1 控件。 /// @@ -119,7 +130,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label1; - + /// /// Label41 控件。 /// @@ -128,7 +139,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label41; - + /// /// ToolbarSeparator1 控件。 /// @@ -137,7 +148,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -146,7 +157,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -155,7 +166,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -164,7 +175,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Window2 控件。 /// @@ -173,7 +184,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window2; - + /// /// Menu1 控件。 /// @@ -182,7 +193,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuEdit 控件。 /// @@ -191,7 +202,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuEdit; - + /// /// btnMenuView 控件。 /// @@ -200,7 +211,7 @@ namespace FineUIPro.Web.HJGL.WPQ { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuView; - + /// /// btnMenuDelete 控件。 /// diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx b/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx index d15d72fb..e357bfc3 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/SelectTaskWeldJoint.aspx @@ -132,6 +132,11 @@ + + + + +