diff --git a/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx b/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx index 84a569a..65e8225 100644 --- a/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx +++ b/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx @@ -77,7 +77,8 @@ - + + diff --git a/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.cs b/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.cs index 2cb0010..06ee3a7 100644 --- a/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.cs @@ -19,6 +19,11 @@ namespace FineUIPro.Web.ContinuousPrint { if (!IsPostBack) { + this.drpIsoId.DataTextField = "ISO_IsoNo"; + this.drpIsoId.DataValueField = "ISO_ID"; + Funs.FineUIPleaseSelect(this.drpIsoId); + this.drpIsoId.SelectedValue = BLL.Const._Null; + BindGrid(); } } @@ -86,6 +91,11 @@ namespace FineUIPro.Web.ContinuousPrint LEFT JOIN dbo.HJGL_BS_NDTRate rate ON rate.NDTR_ID = batch.NDTR_ID where batch.ProjectId=@ProjectId "; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", ProjectId)); + if (this.drpIsoId.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpIsoId.SelectedValue)) + { + strSql += " AND isoInfo.ISO_ID=@isoId"; + listStr.Add(new SqlParameter("@isoId", this.drpIsoId.SelectedValue)); + } if (!string.IsNullOrEmpty(this.txtWeldingDate.Text.Trim())) { strSql += " AND weldReport.JOT_WeldDate=@weldingDate"; @@ -142,6 +152,12 @@ namespace FineUIPro.Web.ContinuousPrint /// protected void Grid1_RowClick(object sender, GridRowClickEventArgs e) { + this.drpIsoId.Items.Clear(); + this.drpIsoId.DataSource = from x in Funs.DB.HJGL_PW_IsoInfo where x.ProjectId == this.Grid1.SelectedRowID orderby x.ISO_IsoNo select x; + this.drpIsoId.DataBind(); + Funs.FineUIPleaseSelect(this.drpIsoId); + this.drpIsoId.SelectedValue = BLL.Const._Null; + BindGrid1(this.Grid1.SelectedRowID); } #endregion @@ -270,7 +286,16 @@ namespace FineUIPro.Web.ContinuousPrint Dictionary keyValuePairs = new Dictionary(); keyValuePairs.Add("ProjectName", hidProjectName.Value); keyValuePairs.Add("InspectionCount", tb.Rows.Count.ToString()); - keyValuePairs.Add("NDTRName", "100%"); + string nderName = string.Empty; + if (!string.IsNullOrEmpty(hidNDTR_ID.Value)) + { + var rate = BLL.HJGL_DetectionService.GetNDTRateByNDTRID(hidNDTR_ID.Value); + if (rate != null) + { + nderName = rate.NDTR_Name; + } + } + keyValuePairs.Add("NDTRName", nderName); if (hidJOTY_Group.Value=="1") { keyValuePairs.Add("NDTType", "RT"); diff --git a/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.designer.cs index 91c304a..3697665 100644 --- a/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/ContinuousPrint/WeldingJointInspection.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.ContinuousPrint -{ - - - public partial class WeldingJointInspection - { - +namespace FineUIPro.Web.ContinuousPrint { + + + public partial class WeldingJointInspection { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel2 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel2; - + /// /// panelTopRegion 控件。 /// @@ -49,7 +47,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelTopRegion; - + /// /// Grid1 控件。 /// @@ -58,7 +56,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar2 控件。 /// @@ -67,7 +65,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// txtProjectCode 控件。 /// @@ -76,7 +74,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtProjectCode; - + /// /// btnSubmit 控件。 /// @@ -85,7 +83,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSubmit; - + /// /// Label1 控件。 /// @@ -94,7 +92,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label Label1; - + /// /// ToolbarSeparator1 控件。 /// @@ -103,7 +101,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -112,7 +110,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -121,7 +119,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// panelBottomRegion 控件。 /// @@ -130,7 +128,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelBottomRegion; - + /// /// Grid2 控件。 /// @@ -139,7 +137,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid2; - + /// /// Toolbar3 控件。 /// @@ -148,7 +146,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar3; - + /// /// btnWeldingRecord 控件。 /// @@ -157,7 +155,16 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnWeldingRecord; - + + /// + /// drpIsoId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpIsoId; + /// /// txtWeldingDate 控件。 /// @@ -166,7 +173,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtWeldingDate; - + /// /// labNumber 控件。 /// @@ -175,7 +182,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label labNumber; - + /// /// hidProjectId 控件。 /// @@ -184,7 +191,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.HiddenField hidProjectId; - + /// /// hidNDTR_ID 控件。 /// @@ -193,7 +200,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.HiddenField hidNDTR_ID; - + /// /// hidJOTY_Group 控件。 /// @@ -202,7 +209,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.HiddenField hidJOTY_Group; - + /// /// hidJOT_WeldDate 控件。 /// @@ -211,7 +218,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.HiddenField hidJOT_WeldDate; - + /// /// hidProjectName 控件。 /// @@ -220,7 +227,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.HiddenField hidProjectName; - + /// /// hidISO_ID 控件。 /// @@ -229,7 +236,7 @@ namespace FineUIPro.Web.ContinuousPrint /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.HiddenField hidISO_ID; - + /// /// Window1 控件。 /// diff --git a/HJGL_DS/FineUIPro.Web/File/Fastreport/管道焊接接头报检检查记录.frx b/HJGL_DS/FineUIPro.Web/File/Fastreport/管道焊接接头报检检查记录.frx index 34d0baf..b39a8c5 100644 --- a/HJGL_DS/FineUIPro.Web/File/Fastreport/管道焊接接头报检检查记录.frx +++ b/HJGL_DS/FineUIPro.Web/File/Fastreport/管道焊接接头报检检查记录.frx @@ -1,5 +1,5 @@  - + using System; using System.Collections; using System.Collections.Generic; @@ -42,7 +42,7 @@ namespace FastReport } - +