diff --git a/HJGL_ZH/BLL/Common/Const.cs b/HJGL_ZH/BLL/Common/Const.cs index b092fcd..b340e64 100644 --- a/HJGL_ZH/BLL/Common/Const.cs +++ b/HJGL_ZH/BLL/Common/Const.cs @@ -1991,6 +1991,11 @@ namespace BLL /// public const string HJGL_SubUnitRepairReportId = "47"; + /// + /// 管道焊口检测委托单 + /// + public const string HJGL_TrustReport3Id = "99"; + /// /// 材料标签 /// diff --git a/HJGL_ZH/BLL/Common/ReportPrint/Common_ReportPrintService.cs b/HJGL_ZH/BLL/Common/ReportPrint/Common_ReportPrintService.cs index a12fbfe..bfc663b 100644 --- a/HJGL_ZH/BLL/Common/ReportPrint/Common_ReportPrintService.cs +++ b/HJGL_ZH/BLL/Common/ReportPrint/Common_ReportPrintService.cs @@ -46,6 +46,7 @@ namespace BLL dic.Add("焊接系统_管线硬度检验报告(一)", BLL.Const.HJGL_IsoHardTestReportId1); dic.Add("焊接系统_管线硬度检验报告(二)", BLL.Const.HJGL_IsoHardTestReportId2); dic.Add("焊接系统_焊缝检测委托单", BLL.Const.HJGL_TrustReportId); + dic.Add("焊接系统_管道焊口检测委托单", BLL.Const.HJGL_TrustReport3Id); dic.Add("焊接系统_返修焊缝检测委托单", BLL.Const.HJGL_RepairReportId); dic.Add("焊接系统_无损检测委托单(承包商)", BLL.Const.HJGL_SubUnitTrustReportId); dic.Add("焊接系统_返修检测委托单(承包商)", BLL.Const.HJGL_SubUnitRepairReportId); diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx index 1bacafd..67df708 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx @@ -72,8 +72,8 @@ Title="底部面板" ShowBorder="false" ShowHeader="false" Layout="Fit"> + DataKeyNames="ISO_ID" AllowSorting="true" SortField="CH_TrustDate" OnSort="Grid2_Sort" + SortDirection="DESC" EnableCheckBoxSelect="true"> diff --git a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx.cs b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx.cs index b0204a9..187f14e 100644 --- a/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/ContinuousPrint/TestOrderPrint.aspx.cs @@ -67,8 +67,15 @@ namespace FineUIPro.Web.ContinuousPrint { str += " and isnull(a.CH_PrintDate,'')=''"; } + } - string strSql = @"select a.CH_TrustID,a.CH_TrustCode,a.CH_TrustDate,a.CH_Printer,a.CH_PrintDate,b.ProjectCode,b.ProjectName,b.ShortName,b.StartDate,b.EndDate from HJGL_CH_Trust as a inner join Base_Project as b on a.ProjectId=b.ProjectId where 1=1 and a.ProjectId= @ProjectId" + str; + str += " ORDER BY a.CH_TrustDate DESC"; + + string strSql = @"select a.CH_TrustID,a.CH_TrustCode,a.CH_TrustDate,a.CH_Printer, + a.CH_PrintDate,b.ProjectCode,b.ProjectName,b.ShortName,b.StartDate,b.EndDate + from HJGL_CH_Trust as a + inner join Base_Project as b on a.ProjectId=b.ProjectId + where 1=1 and a.ProjectId= @ProjectId" + str; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", ProjectId)); SqlParameter[] parameter = listStr.ToArray(); @@ -112,6 +119,11 @@ namespace FineUIPro.Web.ContinuousPrint Grid1.SortField = e.SortField; BindGrid(); } + + protected void Grid2_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + BindGrid1(this.Grid1.SelectedRowID); + } #endregion #region 选择加载 diff --git a/HJGL_ZH/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_ZH/FineUIPro.Web/FineUIPro.Web.csproj.user index 8ba20cd..ac1e608 100644 --- a/HJGL_ZH/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/HJGL_ZH/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -2,7 +2,7 @@ ProjectFiles - Debug|Any CPU + Release|Any CPU true diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx b/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx index 2464591..290acea 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx +++ b/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx @@ -72,6 +72,8 @@ + + diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx.cs b/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx.cs index 31a77fa..6b95303 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx.cs @@ -681,6 +681,37 @@ namespace FineUIPro.Web.HJGL.TrustManage return; } } + + protected void btnPrint3_Click(object sender, EventArgs e) + { + if (!string.IsNullOrEmpty(this.tvControlItem.SelectedNodeID)) + { + Model.HJGL_CH_Trust trust = BLL.HJGL_TrustManageEditService.GetCH_TrustByID(this.CH_TrustID); + trust.CH_PrintDate = DateTime.Now.Date; + trust.CH_Printer = this.CurrUser.UserName; + BLL.HJGL_TrustManageEditService.PrintCH_Trust(trust); + this.SetTextTemp(); + this.PageInfoLoad(); + + string projectId = string.Empty; + string project = tvControlItem.SelectedNode.ParentNode.NodeID; + if (!string.IsNullOrEmpty(project)) + { + string[] ps = project.Split('|'); + if (ps.Count() > 1) + { + projectId = ps[1]; + } + } + + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../../Common/ReportPrint/ExReportPrint.aspx?ispop=1&reportId={0}&replaceParameter={1}&varValue={2}&projectId=0", BLL.Const.HJGL_TrustReport3Id, this.tvControlItem.SelectedNodeID, null, "打印 - "))); + } + else + { + Alert.ShowInTop("请选择委托单", MessageBoxIcon.Information); + return; + } + } #endregion } } \ No newline at end of file diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx.designer.cs b/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx.designer.cs index 174acbf..b75a552 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx.designer.cs +++ b/HJGL_ZH/FineUIPro.Web/HJGL/TrustManage/TrustManageEdit.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.TrustManage { - - - public partial class TrustManageEdit { - +namespace FineUIPro.Web.HJGL.TrustManage +{ + + + public partial class TrustManageEdit + { + /// /// Head1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlHead Head1; - + /// /// form1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelLeftRegion 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelLeftRegion; - + /// /// Toolbar1 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// drpIsProjectClosed 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpIsProjectClosed; - + /// /// drpProjectId 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpProjectId; - + /// /// drpNdtType 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpNdtType; - + /// /// drpIsPrint 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpIsPrint; - + /// /// tvControlItem 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree tvControlItem; - + /// /// PanelTree 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel PanelTree; - + /// /// panelCenterRegion 控件。 /// @@ -128,7 +130,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Toolbar2 控件。 /// @@ -137,7 +139,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// ToolbarFill1 控件。 /// @@ -146,7 +148,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnPrint 控件。 /// @@ -155,7 +157,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPrint; - + /// /// btnPrint2 控件。 /// @@ -164,7 +166,16 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPrint2; - + + /// + /// Button1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button Button1; + /// /// btnEdit 控件。 /// @@ -173,7 +184,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnEdit; - + /// /// btnDelete 控件。 /// @@ -182,7 +193,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnDelete; - + /// /// SimpleForm1 控件。 /// @@ -191,7 +202,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// txtCH_TrustCode 控件。 /// @@ -200,7 +211,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtCH_TrustCode; - + /// /// drpCH_TrustUnit 控件。 /// @@ -209,7 +220,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label drpCH_TrustUnit; - + /// /// drpInstallationId 控件。 /// @@ -218,7 +229,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label drpInstallationId; - + /// /// txtCH_TrustDate 控件。 /// @@ -227,7 +238,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtCH_TrustDate; - + /// /// txtCH_TrustType 控件。 /// @@ -236,7 +247,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtCH_TrustType; - + /// /// drpCH_TrustMan 控件。 /// @@ -245,7 +256,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label drpCH_TrustMan; - + /// /// drpCH_NDTMethod 控件。 /// @@ -254,7 +265,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label drpCH_NDTMethod; - + /// /// drpCH_CheckUnit 控件。 /// @@ -263,7 +274,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label drpCH_CheckUnit; - + /// /// drpCH_NDTRate 控件。 /// @@ -272,7 +283,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label drpCH_NDTRate; - + /// /// drpCH_AcceptGrade 控件。 /// @@ -281,7 +292,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label drpCH_AcceptGrade; - + /// /// txtCH_NDTCriteria 控件。 /// @@ -290,7 +301,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtCH_NDTCriteria; - + /// /// drpCH_SlopeType 控件。 /// @@ -299,7 +310,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label drpCH_SlopeType; - + /// /// drpCH_WeldMethod 控件。 /// @@ -308,7 +319,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label drpCH_WeldMethod; - + /// /// txtCH_Remark 控件。 /// @@ -317,7 +328,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtCH_Remark; - + /// /// ckbIsPrint 控件。 /// @@ -326,7 +337,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.CheckBox ckbIsPrint; - + /// /// lbPrinter 控件。 /// @@ -335,7 +346,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbPrinter; - + /// /// lbPrintDate 控件。 /// @@ -344,7 +355,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbPrintDate; - + /// /// Grid1 控件。 /// @@ -353,7 +364,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// ToolbarSeparator1 控件。 /// @@ -362,7 +373,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -371,7 +382,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -380,7 +391,7 @@ namespace FineUIPro.Web.HJGL.TrustManage { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// diff --git a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/FeedbackResultSelect.aspx b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/FeedbackResultSelect.aspx index 4314d61..9894d48 100644 --- a/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/FeedbackResultSelect.aspx +++ b/HJGL_ZH/FineUIPro.Web/HJGL/WeldingReport/FeedbackResultSelect.aspx @@ -31,7 +31,7 @@ - + diff --git a/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/UsingtMatSelect.aspx b/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/UsingtMatSelect.aspx index 1891561..5a8f8b9 100644 --- a/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/UsingtMatSelect.aspx +++ b/HJGL_ZH/FineUIPro.Web/WeldMat/UsingSentMat/UsingtMatSelect.aspx @@ -82,8 +82,8 @@ - + diff --git a/HJGL_ZH/WebAPI/WebAPI.csproj b/HJGL_ZH/WebAPI/WebAPI.csproj index 0d11219..bae35f2 100644 --- a/HJGL_ZH/WebAPI/WebAPI.csproj +++ b/HJGL_ZH/WebAPI/WebAPI.csproj @@ -14,7 +14,7 @@ Properties WebAPI WebAPI - v4.6.1 + v4.8 false true @@ -25,6 +25,7 @@ + true @@ -48,14 +49,14 @@ + + - - - + @@ -109,6 +110,7 @@ True ..\packages\Microsoft.AspNet.WebPages.3.2.4\lib\net45\System.Web.WebPages.Razor.dll + True ..\packages\WebGrease.1.6.0\lib\WebGrease.dll diff --git a/HJGL_ZH/WebAPI/WebAPI.csproj.user b/HJGL_ZH/WebAPI/WebAPI.csproj.user index ca0d73e..643f3e5 100644 --- a/HJGL_ZH/WebAPI/WebAPI.csproj.user +++ b/HJGL_ZH/WebAPI/WebAPI.csproj.user @@ -8,7 +8,7 @@ - Debug|Any CPU + Release|Any CPU