From 56fe58fe544f7cc72818361fa6b2b01ee6772bdd Mon Sep 17 00:00:00 2001 From: gaofei1985 <181547018@qq.com> Date: Thu, 23 Nov 2023 18:52:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PersonManage/WelderManageEdit.aspx.cs | 2 +- SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx | 11 +- SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs | 19 ++- .../HJGL/NDT/NDTBatch.aspx.designer.cs | 18 +++ .../PersonManage/WelderManageEdit.aspx.cs | 2 +- .../HJGL/PointTrust/PointBatch.aspx | 7 ++ .../HJGL/PointTrust/PointBatch.aspx.cs | 28 +++-- .../PointTrust/PointBatch.aspx.designer.cs | 116 ++++++++++-------- .../HJGL/PointTrust/TrustBatch.aspx | 7 ++ .../HJGL/PointTrust/TrustBatch.aspx.cs | 48 ++++---- .../PointTrust/TrustBatch.aspx.designer.cs | 90 ++++++++------ .../HJGL/RepairAndExpand/RepairAndExpand.aspx | 7 ++ .../RepairAndExpand/RepairAndExpand.aspx.cs | 11 +- .../RepairAndExpand.aspx.designer.cs | 18 +++ .../HJGL/RepairAndExpand/RepairTrust.aspx | 7 ++ .../HJGL/RepairAndExpand/RepairTrust.aspx.cs | 9 +- .../RepairTrust.aspx.designer.cs | 86 +++++++------ .../HJGL/WeldingManage/JotTwoDesign.aspx.cs | 5 + .../HJGL/WeldingManage/WeldingConDate.aspx.cs | 5 + 19 files changed, 326 insertions(+), 170 deletions(-) diff --git a/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManageEdit.aspx.cs b/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManageEdit.aspx.cs index e5bf755e..e72eadea 100644 --- a/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManageEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/CQMS/PersonManage/WelderManageEdit.aspx.cs @@ -139,7 +139,7 @@ namespace FineUIPro.Web.CQMS.PersonManage { string PersonId = Request.Params["PersonId"]; var q = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.WelderCode == this.txtWelderCode.Text.Trim() - && (x.PersonId != PersonId || (PersonId == null && PersonId != null))); + && (x.PersonId != PersonId || (PersonId == null && PersonId != null)) && x.ProjectId == this.CurrUser.LoginProjectId); if (q != null) { Alert.ShowInTop("焊工号已经存在!", MessageBoxIcon.Warning); diff --git a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx index f43c9037..e7f6b12f 100644 --- a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx +++ b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx @@ -25,14 +25,21 @@ + Width="265px" LabelWidth="90px" DisplayType="Month" DateFormatString="yyyy-MM" LabelAlign="Right"> + + + + + + diff --git a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs index 382b59c3..09846a9b 100644 --- a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.cs @@ -53,6 +53,7 @@ namespace FineUIPro.Web.HJGL.NDT { GetButtonPower(); this.Type = Request.Params["Type"]; + BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, true); this.txtNDEDateMonth.Text = string.Format("{0:yyyy-MM}", DateTime.Now); this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); this.TrustBatchId = string.Empty; @@ -148,8 +149,8 @@ namespace FineUIPro.Web.HJGL.NDT //} //else //{ - unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList(); - unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList(); + unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList(); + unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList(); //} if (unitWork1.Count() > 0) @@ -195,7 +196,7 @@ namespace FineUIPro.Web.HJGL.NDT private void BindNodes(TreeNode node) { ///&& x.TrustType == (this.Type == "R" ? "R" : null) var p = from x in Funs.DB.HJGL_Batch_BatchTrust - where x.UnitWorkId == node.NodeID && Equals(x.TrustType, (this.Type == "R" ? "R" : null)) + where x.UnitWorkId == node.NodeID && Equals(x.TrustType, (this.Type == "R" ? "R" : null)) && x.TrustDate < Convert.ToDateTime(this.txtNDEDateMonth.Text.Trim() + "-01").AddMonths(1) && x.TrustDate >= Convert.ToDateTime(this.txtNDEDateMonth.Text.Trim() + "-01") select x; @@ -264,6 +265,10 @@ namespace FineUIPro.Web.HJGL.NDT && x.DetectionTypeId == ndtTypeId && x.DetectionRateId == item.DetectionRateId orderby x.TrustBatchCode descending select x; + if (this.drpUnit.SelectedValue != BLL.Const._Null) + { + trusts = trusts.Where(x => x.UnitId == this.drpUnit.SelectedValue).OrderBy(x => x.TrustBatchCode); + } if (item.DetectionRateValue > 0) //探伤比例为0的批不显示 { TreeNode newNode = new TreeNode(); @@ -300,6 +305,10 @@ namespace FineUIPro.Web.HJGL.NDT && x.DetectionTypeId == ndtTypeId && x.DetectionRateId == ndtRateId orderby x.TrustBatchCode descending select x; + if (this.drpUnit.SelectedValue != BLL.Const._Null) + { + trusts = trusts.Where(x => x.UnitId == this.drpUnit.SelectedValue).OrderBy(x => x.TrustBatchCode); + } foreach (var trust in trusts) { TreeNode newNode = new TreeNode(); @@ -318,11 +327,11 @@ namespace FineUIPro.Web.HJGL.NDT Model.HJGL_Batch_PointBatch batch = BLL.PointBatchService.GetPointBatchById(trust.PointBatchId); if (batch != null && batch.IsClosed == true) { - newNode.Text = code; + newNode.Text = code + "【" + BLL.UnitService.GetUnitNameByUnitId(trust.UnitId) + "】"; } else { - newNode.Text = "" + code + ""; + newNode.Text = "" + code + "【" + BLL.UnitService.GetUnitNameByUnitId(trust.UnitId) + "】" + ""; } } else diff --git a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.designer.cs index b4a991e5..ae94f6b0 100644 --- a/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/NDT/NDTBatch.aspx.designer.cs @@ -66,6 +66,24 @@ namespace FineUIPro.Web.HJGL.NDT { /// protected global::FineUIPro.DatePicker txtNDEDateMonth; + /// + /// Toolbar3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar3; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + /// /// Toolbar5 控件。 /// diff --git a/SGGL/FineUIPro.Web/HJGL/PersonManage/WelderManageEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PersonManage/WelderManageEdit.aspx.cs index 43af1acc..d1c7bb54 100644 --- a/SGGL/FineUIPro.Web/HJGL/PersonManage/WelderManageEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/PersonManage/WelderManageEdit.aspx.cs @@ -130,7 +130,7 @@ namespace FineUIPro.Web.HJGL.PersonManage { string PersonId = Request.Params["PersonId"]; var q = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.WelderCode == this.txtWelderCode.Text.Trim() - && (x.PersonId != PersonId || (PersonId == null && PersonId != null))); + && (x.PersonId != PersonId || (PersonId == null && PersonId != null)) && x.ProjectId == this.CurrUser.LoginProjectId); if (q != null) { Alert.ShowInTop("焊工号已经存在!", MessageBoxIcon.Warning); diff --git a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx index cf072bbc..bb60c63b 100644 --- a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx +++ b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx @@ -29,6 +29,13 @@ EnableCollapse="true" Width="300px" Title="点口管理" ShowBorder="true" Layout="VBox" ShowHeader="false" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft"> + + + + + + protected void Page_Load(object sender, EventArgs e) { - // ctlAuditFlow.Url = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId); + // ctlAuditFlow.Url = BLL.Project_SysSetService.GetAvevaNetUrl(this.CurrUser.LoginProjectId); if (!IsPostBack) { + BLL.UnitService.InitUnitByProjectIdUnitTypeDropDownList(this.drpUnit, this.CurrUser.LoginProjectId, BLL.Const.ProjectUnitType_2, true); this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); this.txtStartTime.Text = string.Format("{0:yyyy-MM}", DateTime.Now); this.InitTreeMenu();//加载树 @@ -92,8 +93,8 @@ namespace FineUIPro.Web.HJGL.PointTrust //} //else //{ - unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList(); - unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList(); + unitWork1 = (from x in unitWorkList where x.ProjectType == "1" select x).ToList(); + unitWork2 = (from x in unitWorkList where x.ProjectType == "2" select x).ToList(); //} if (unitWork1.Count() > 0) @@ -245,7 +246,10 @@ namespace FineUIPro.Web.HJGL.PointTrust { pointManages = pointManages.Where(x => x.WelderCode.Contains(this.txtWelderCode.Text.Trim())); } - + if (this.drpUnit.SelectedValue != BLL.Const._Null) + { + pointManages = pointManages.Where(x => x.UnitId == this.drpUnit.SelectedValue); + } foreach (var item in pointManages) @@ -257,7 +261,7 @@ namespace FineUIPro.Web.HJGL.PointTrust ToolTip = "批", EnableClickEvent = true, }; - var pipeline= PointBatchService.GetPointBatchById(item.PointBatchId); + var pipeline = PointBatchService.GetPointBatchById(item.PointBatchId); string startdate = string.Format("{0:yyyy-MM-dd}", pipeline.StartDate); string PipeArea = ""; if (!string.IsNullOrEmpty(pipeline.PipelineId)) @@ -272,22 +276,22 @@ namespace FineUIPro.Web.HJGL.PointTrust break; } } - string code = "DK-" + item.PointBatchCode.Substring(item.PointBatchCode.Length - 4)+ PipeArea; + string code = "DK-" + item.PointBatchCode.Substring(item.PointBatchCode.Length - 4) + PipeArea; if (!item.EndDate.HasValue) ////批 没有关闭 粉色 { - newNode.Text = "" + code +"【"+startdate + "】"+""; + newNode.Text = "" + code + "【" + startdate + "】" + "【" + item.UnitName + "】" + ""; newNode.ToolTip = "批尚未关闭"; } // 当天批 else if (string.Format("{0:yyyy-MM-dd}", item.StartDate) == string.Format("{0:yyyy-MM-dd}", System.DateTime.Now) || string.Format("{0:yyyy-MM-dd}", item.EndDate) == string.Format("{0:yyyy-MM-dd}", System.DateTime.Now)) { - newNode.Text = "" + code + "【" + startdate + "】" + ""; + newNode.Text = "" + code + "【" + startdate + "】" + "【" + item.UnitName + "】" + ""; newNode.ToolTip = "当天批"; } else { - newNode.Text = code+ "【" + startdate + "】"; + newNode.Text = code + "【" + startdate + "】" + "【" + item.UnitName + "】"; } e.Node.Nodes.Add(newNode); @@ -454,7 +458,7 @@ namespace FineUIPro.Web.HJGL.PointTrust if (!string.IsNullOrEmpty(txtpipelinecode.Text.Trim())) { strSql += " and PipelineCode like @PipelineCode "; - listStr.Add(new SqlParameter("@PipelineCode", "%"+ txtpipelinecode.Text.Trim() + "%")); + listStr.Add(new SqlParameter("@PipelineCode", "%" + txtpipelinecode.Text.Trim() + "%")); } SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); @@ -641,7 +645,7 @@ namespace FineUIPro.Web.HJGL.PointTrust var batch = BLL.PointBatchService.GetPointBatchById(this.PointBatchId); if (!batch.EndDate.HasValue) { - if (!string.IsNullOrEmpty(Grid1.SelectedRowID) ) + if (!string.IsNullOrEmpty(Grid1.SelectedRowID)) { PointBatchDetailService.UpdatePointBatchDetail(Grid1.SelectedRowID, "1", System.DateTime.Now); this.BindGrid(); @@ -652,7 +656,7 @@ namespace FineUIPro.Web.HJGL.PointTrust Alert.ShowInTop("请选择点口!", MessageBoxIcon.Warning); } - + } else { diff --git a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.designer.cs index cc1b5d5f..00266dd5 100644 --- a/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/PointTrust/PointBatch.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.PointTrust -{ - - - public partial class PointBatch - { - +namespace FineUIPro.Web.HJGL.PointTrust { + + + public partial class PointBatch { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelLeftRegion 控件。 /// @@ -49,7 +47,25 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelLeftRegion; - + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + /// /// Toolbar4 控件。 /// @@ -58,7 +74,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar4; - + /// /// txtWelderCode 控件。 /// @@ -67,7 +83,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtWelderCode; - + /// /// Toolbar5 控件。 /// @@ -76,7 +92,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar5; - + /// /// txtStartTime 控件。 /// @@ -85,7 +101,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtStartTime; - + /// /// tvControlItem 控件。 /// @@ -94,7 +110,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree tvControlItem; - + /// /// Panel2 控件。 /// @@ -103,7 +119,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel2; - + /// /// panelCenterRegion 控件。 /// @@ -112,7 +128,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Toolbar3 控件。 /// @@ -121,7 +137,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar3; - + /// /// txtpipelinecode 控件。 /// @@ -130,7 +146,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtpipelinecode; - + /// /// btnQuery 控件。 /// @@ -139,7 +155,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnQuery; - + /// /// btnManual 控件。 /// @@ -148,7 +164,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnManual; - + /// /// btnAutoPoint 控件。 /// @@ -157,7 +173,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnAutoPoint; - + /// /// btnClose 控件。 /// @@ -166,7 +182,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnClose; - + /// /// btnbtnOpenResetPoint 控件。 /// @@ -175,7 +191,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnbtnOpenResetPoint; - + /// /// btnPointAudit 控件。 /// @@ -184,7 +200,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPointAudit; - + /// /// btnGenerate 控件。 /// @@ -193,7 +209,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnGenerate; - + /// /// btnSelectExpandPoint 控件。 /// @@ -202,7 +218,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSelectExpandPoint; - + /// /// btnPrint 控件。 /// @@ -211,7 +227,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPrint; - + /// /// TbPipeline 控件。 /// @@ -220,7 +236,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar TbPipeline; - + /// /// lbPipelineCode 控件。 /// @@ -229,7 +245,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbPipelineCode; - + /// /// lbRate 控件。 /// @@ -238,7 +254,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbRate; - + /// /// lbNeedJointNum 控件。 /// @@ -247,7 +263,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbNeedJointNum; - + /// /// lbPointJointNum 控件。 /// @@ -256,7 +272,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbPointJointNum; - + /// /// lbLastJointNum 控件。 /// @@ -265,7 +281,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbLastJointNum; - + /// /// TbNotPipeline 控件。 /// @@ -274,7 +290,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar TbNotPipeline; - + /// /// lbTotalJointNum 控件。 /// @@ -283,7 +299,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbTotalJointNum; - + /// /// lbNeedJointNum2 控件。 /// @@ -292,7 +308,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbNeedJointNum2; - + /// /// lbPointJointNum2 控件。 /// @@ -301,7 +317,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbPointJointNum2; - + /// /// lbLastJointNum2 控件。 /// @@ -310,7 +326,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbLastJointNum2; - + /// /// Toolbar2 控件。 /// @@ -319,7 +335,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// txtPointBatchCode 控件。 /// @@ -328,7 +344,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtPointBatchCode; - + /// /// txtStartDate 控件。 /// @@ -337,7 +353,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtStartDate; - + /// /// txtEndDate 控件。 /// @@ -346,7 +362,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtEndDate; - + /// /// txtState 控件。 /// @@ -355,7 +371,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtState; - + /// /// txtPointState 控件。 /// @@ -364,7 +380,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtPointState; - + /// /// Grid1 控件。 /// @@ -373,7 +389,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// ToolbarSeparator1 控件。 /// @@ -382,7 +398,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -391,7 +407,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -400,7 +416,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// diff --git a/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx b/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx index 82903cbe..469afc47 100644 --- a/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx +++ b/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx @@ -16,6 +16,13 @@ ShowBorder="true" Layout="VBox" ShowHeader="false" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft"> + + + + + + 0) @@ -220,7 +221,10 @@ namespace FineUIPro.Web.HJGL.PointTrust { pointManages = pointManages.Where(x => x.WelderCode.Contains(this.txtWelderCode.Text.Trim())); } - + if (this.drpUnit.SelectedValue != BLL.Const._Null) + { + pointManages = pointManages.Where(x => x.UnitId == this.drpUnit.SelectedValue); + } foreach (var item in pointManages) @@ -236,12 +240,12 @@ namespace FineUIPro.Web.HJGL.PointTrust // 未委托批次红色显示 if (BLL.Batch_BatchTrustService.GetBatchTrustViewByPointBatchId(item.PointBatchId) == null) { - newNode.Text = "" + code + ""; + newNode.Text = "" + code + "【" + item.UnitName + "】" + ""; newNode.ToolTip = "未委托"; } else { - newNode.Text = code; + newNode.Text = code + "【" + item.UnitName + "】"; } e.Node.Nodes.Add(newNode); @@ -619,8 +623,8 @@ namespace FineUIPro.Web.HJGL.PointTrust return; } string reportId = this.tvControlItem.SelectedNode.NodeID; - // Model.View_Batch_BatchTrust trust = BLL.Batch_BatchTrustService.GetBatchTrustViewByPointBatchId(this.tvControlItem.SelectedNodeID); - // Model.HJGL_Batch_PointBatch batch = BLL.PointBatchService.GetPointBatchById(this.tvControlItem.SelectedNodeID); + // Model.View_Batch_BatchTrust trust = BLL.Batch_BatchTrustService.GetBatchTrustViewByPointBatchId(this.tvControlItem.SelectedNodeID); + // Model.HJGL_Batch_PointBatch batch = BLL.PointBatchService.GetPointBatchById(this.tvControlItem.SelectedNodeID); var trust = BLL.Batch_BatchTrustService.GetBatchTrustViewByPointBatchId(reportId); if (trust != null) { @@ -633,16 +637,16 @@ namespace FineUIPro.Web.HJGL.PointTrust dr["CH_CheckUnit"] = BLL.UnitService.GetUnitNameByUnitId(trust.NDEUnit).ToString(); } - + if (!string.IsNullOrEmpty(trust.TrustBatchCode)) { dr["CH_TrustCode"] = trust.TrustBatchCode; } - /* if (!string.IsNullOrEmpty(trust.CH_NDTCriteria)) - { - dr["CH_NDTCriteria"] = trust.CH_NDTCriteria; - }*/ + /* if (!string.IsNullOrEmpty(trust.CH_NDTCriteria)) + { + dr["CH_NDTCriteria"] = trust.CH_NDTCriteria; + }*/ if (!string.IsNullOrEmpty(trust.DetectionTypeCode)) { dr["CH_NDTMethod"] = trust.DetectionTypeCode; @@ -680,17 +684,17 @@ namespace FineUIPro.Web.HJGL.PointTrust { keyValuePairs.Add("supUnit", BLL.UnitService.GetUnitNameByUnitId(unitcheck.UnitId).ToString()); } - /* if (!string.IsNullOrEmpty(trust.CH_CheckUnit)) - { - keyValuePairs.Add("CheckUnit", BLL.UnitService.GetUnitNameByUnitId(trust.CH_CheckUnit).ToString()); + /* if (!string.IsNullOrEmpty(trust.CH_CheckUnit)) + { + keyValuePairs.Add("CheckUnit", BLL.UnitService.GetUnitNameByUnitId(trust.CH_CheckUnit).ToString()); - } - if (!string.IsNullOrEmpty(trust.CH_TrustUnit)) - { - keyValuePairs.Add("ConUnit", BLL.UnitService.GetUnitNameByUnitId(trust.CH_TrustUnit).ToString()); + } + if (!string.IsNullOrEmpty(trust.CH_TrustUnit)) + { + keyValuePairs.Add("ConUnit", BLL.UnitService.GetUnitNameByUnitId(trust.CH_TrustUnit).ToString()); - } -*/ + } + */ BLL.FastReportService.ResetData(); BLL.FastReportService.AddFastreportTable(dt); @@ -701,7 +705,7 @@ namespace FineUIPro.Web.HJGL.PointTrust string initTemplatePath = ""; string rootPath = Server.MapPath("~/"); initTemplatePath = "File\\Fastreport\\管道焊口检测委托单NoPic.frx"; - + if (File.Exists(rootPath + initTemplatePath)) { PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("../../Controls/Fastreport.aspx?ReportPath={0}", rootPath + initTemplatePath))); diff --git a/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.designer.cs index 77dca21f..1b5a6891 100644 --- a/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/PointTrust/TrustBatch.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.PointTrust -{ - - - public partial class TrustBatch - { - +namespace FineUIPro.Web.HJGL.PointTrust { + + + public partial class TrustBatch { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelLeftRegion 控件。 /// @@ -49,7 +47,25 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelLeftRegion; - + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + /// /// Toolbar4 控件。 /// @@ -58,7 +74,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar4; - + /// /// txtWelderCode 控件。 /// @@ -67,7 +83,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtWelderCode; - + /// /// Toolbar1 控件。 /// @@ -76,7 +92,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// txtTrustDateMonth 控件。 /// @@ -85,7 +101,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtTrustDateMonth; - + /// /// tvControlItem 控件。 /// @@ -94,7 +110,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree tvControlItem; - + /// /// panelCenterRegion 控件。 /// @@ -103,7 +119,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Toolbar3 控件。 /// @@ -112,7 +128,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar3; - + /// /// ToolbarFill1 控件。 /// @@ -121,7 +137,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnAudit 控件。 /// @@ -130,7 +146,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnAudit; - + /// /// btnDelete 控件。 /// @@ -139,7 +155,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnDelete; - + /// /// btnPrint 控件。 /// @@ -148,7 +164,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPrint; - + /// /// SimpleForm1 控件。 /// @@ -157,7 +173,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// txtTrustBatchCode 控件。 /// @@ -166,7 +182,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtTrustBatchCode; - + /// /// txtTrustDate 控件。 /// @@ -175,7 +191,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtTrustDate; - + /// /// txtDetectionTypeCode 控件。 /// @@ -184,7 +200,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtDetectionTypeCode; - + /// /// lbNDEUnit 控件。 /// @@ -193,7 +209,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbNDEUnit; - + /// /// lbIsTrust 控件。 /// @@ -202,7 +218,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbIsTrust; - + /// /// lbIsAudit 控件。 /// @@ -211,7 +227,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbIsAudit; - + /// /// Button1 控件。 /// @@ -220,7 +236,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button Button1; - + /// /// Grid1 控件。 /// @@ -229,7 +245,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// ToolbarSeparator1 控件。 /// @@ -238,7 +254,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -247,7 +263,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -256,7 +272,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -265,7 +281,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Window2 控件。 /// @@ -274,7 +290,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window2; - + /// /// Menu1 控件。 /// @@ -283,7 +299,7 @@ namespace FineUIPro.Web.HJGL.PointTrust /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnPointAudit 控件。 /// diff --git a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx index f1bcc2c9..6d0d135a 100644 --- a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx +++ b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx @@ -39,6 +39,13 @@ + + + + + + x.UnitId == this.drpUnit.SelectedValue).OrderBy(x => x.RepairRecordCode); + } foreach (var r in repairs) { var jot = BLL.WeldJointService.GetWeldJointByWeldJointId(r.WeldJointId); @@ -287,16 +292,16 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand } if (b) { - newNode.Text = iso.PipelineCode + "-" + jot.WeldJointCode + r.RepairMark; + newNode.Text = iso.PipelineCode + "-" + jot.WeldJointCode + r.RepairMark + "【" + BLL.UnitService.GetUnitNameByUnitId(r.UnitId) + "】"; } else { - newNode.Text = "" + iso.PipelineCode + "-" + jot.WeldJointCode + r.RepairMark + ""; + newNode.Text = "" + iso.PipelineCode + "-" + jot.WeldJointCode + r.RepairMark + "【" + BLL.UnitService.GetUnitNameByUnitId(r.UnitId) + "】" + ""; } } else { - newNode.Text = iso.PipelineCode + "-" + jot.WeldJointCode + r.RepairMark; + newNode.Text = iso.PipelineCode + "-" + jot.WeldJointCode + r.RepairMark + "【" + BLL.UnitService.GetUnitNameByUnitId(r.UnitId) + "】"; } newNode.NodeID = r.RepairRecordId; newNode.ToolTip = "返修单"; diff --git a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx.designer.cs index e8ffe2e5..9098c2dc 100644 --- a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairAndExpand.aspx.designer.cs @@ -66,6 +66,24 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand { /// protected global::FineUIPro.DatePicker txtRepairMonth; + /// + /// Toolbar4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar4; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + /// /// Toolbar5 控件。 /// diff --git a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx index 56cd9dbc..eac45b19 100644 --- a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx +++ b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx @@ -25,6 +25,13 @@ + + + + + + x.UnitId == this.drpUnit.SelectedValue).OrderBy(x => x.TrustBatchCode); + } foreach (var trust in trusts) { TreeNode newNode = new TreeNode(); string code = "FXWT-" + trust.TrustBatchCode.Substring(trust.TrustBatchCode.Length - 4); if (string.Format("{0:yyyy-MM-dd}", trust.TrustDate) == string.Format("{0:yyyy-MM-dd}", System.DateTime.Now)) { - newNode.Text = "" + code + ""; + newNode.Text = "" + code + "【" + BLL.UnitService.GetUnitNameByUnitId(trust.UnitId) + "】" + ""; newNode.ToolTip = "当天委托单"; } else { - newNode.Text = code; + newNode.Text = code + "【" + BLL.UnitService.GetUnitNameByUnitId(trust.UnitId) + "】"; newNode.ToolTip = "非当天委托单"; } newNode.NodeID = trust.TrustBatchId; diff --git a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx.designer.cs index f6eeb648..2de61a8b 100644 --- a/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/RepairAndExpand/RepairTrust.aspx.designer.cs @@ -7,13 +7,11 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.HJGL.RepairAndExpand -{ - - - public partial class RepairTrust - { - +namespace FineUIPro.Web.HJGL.RepairAndExpand { + + + public partial class RepairTrust { + /// /// form1 控件。 /// @@ -22,7 +20,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -31,7 +29,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -40,7 +38,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// panelLeftRegion 控件。 /// @@ -49,7 +47,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelLeftRegion; - + /// /// Toolbar1 控件。 /// @@ -58,7 +56,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + /// /// txtTrustDateMonth 控件。 /// @@ -67,7 +65,25 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtTrustDateMonth; - + + /// + /// Toolbar4 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar4; + + /// + /// drpUnit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnit; + /// /// Toolbar5 控件。 /// @@ -76,7 +92,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar5; - + /// /// txtSearchCode 控件。 /// @@ -85,7 +101,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtSearchCode; - + /// /// tvControlItem 控件。 /// @@ -94,7 +110,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Tree tvControlItem; - + /// /// panelCenterRegion 控件。 /// @@ -103,7 +119,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel panelCenterRegion; - + /// /// Toolbar3 控件。 /// @@ -112,7 +128,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar3; - + /// /// ToolbarFill1 控件。 /// @@ -121,7 +137,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnAudit 控件。 /// @@ -130,7 +146,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnAudit; - + /// /// btnPointAudit 控件。 /// @@ -139,7 +155,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPointAudit; - + /// /// btnDelete 控件。 /// @@ -148,7 +164,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnDelete; - + /// /// btnPrint 控件。 /// @@ -157,7 +173,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnPrint; - + /// /// SimpleForm1 控件。 /// @@ -166,7 +182,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// txtTrustBatchCode 控件。 /// @@ -175,7 +191,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtTrustBatchCode; - + /// /// txtTrustDate 控件。 /// @@ -184,7 +200,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtTrustDate; - + /// /// txtDetectionTypeCode 控件。 /// @@ -193,7 +209,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label txtDetectionTypeCode; - + /// /// lbNDEUnit 控件。 /// @@ -202,7 +218,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbNDEUnit; - + /// /// lbIsCheck 控件。 /// @@ -211,7 +227,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbIsCheck; - + /// /// lbIsAudit 控件。 /// @@ -220,7 +236,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Label lbIsAudit; - + /// /// Grid1 控件。 /// @@ -229,7 +245,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// ToolbarSeparator1 控件。 /// @@ -238,7 +254,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -247,7 +263,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -256,7 +272,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -265,7 +281,7 @@ namespace FineUIPro.Web.HJGL.RepairAndExpand /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Window2 控件。 /// diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs index d92292ea..7317da8d 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/JotTwoDesign.aspx.cs @@ -468,6 +468,11 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// protected void btnAutoInput_Click(object sender, EventArgs e) { + if (this.drpUnit.SelectedValue == BLL.Const._Null) + { + ShowNotify("请选择工艺规程编制单位!", MessageBoxIcon.Warning); + return; + } if (!string.IsNullOrEmpty(tvControlItem.SelectedNodeID)) { var jotList = from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == tvControlItem.SelectedNodeID && x.WPQId == null select x; diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs index 7b46f9c4..91bfb84b 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldingConDate.aspx.cs @@ -399,6 +399,11 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// protected void btnAutoInput_Click(object sender, EventArgs e) { + if (this.drpUnit.SelectedValue == BLL.Const._Null) + { + ShowNotify("请选择工艺规程编制单位!", MessageBoxIcon.Warning); + return; + } if (!string.IsNullOrEmpty(tvControlItem.SelectedNodeID)) { var jotList = from x in Funs.DB.HJGL_WeldJoint where x.PipelineId == tvControlItem.SelectedNodeID && x.JointAttribute == drpJointAttribute.SelectedValue select x;