From 3c3c531016bd3d119a84ce07ff9a0a68e3c6000d Mon Sep 17 00:00:00 2001 From: yhw0507 Date: Sun, 8 Oct 2023 10:59:38 +0800 Subject: [PATCH 1/4] =?UTF-8?q?20231008=E9=A1=B9=E7=9B=AE=E5=90=88?= =?UTF-8?q?=E5=90=8C=E5=A4=A7=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA=E3=80=81?= =?UTF-8?q?=E8=B4=B9=E7=94=A8=E8=AE=A1=E5=88=92=E5=8A=A0=E5=90=88=E8=AE=A1?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/BLL/DigData/HTGLDataDWService.cs | 23 ++++++++++- SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx | 6 +-- SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.cs | 3 +- .../DigData/HTGLDataDW.aspx.designer.cs | 18 --------- SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx | 37 ++++++++++++++---- .../DigData/ProjectDataDW.aspx.cs | 20 ++++++++++ .../DigData/ProjectDataDW.aspx.designer.cs | 39 ++++++++++++------- .../HSSE/CostGoods/Expense.aspx.cs | 23 +++++++++++ 8 files changed, 122 insertions(+), 47 deletions(-) diff --git a/SGGL/BLL/DigData/HTGLDataDWService.cs b/SGGL/BLL/DigData/HTGLDataDWService.cs index 9d980c22..592f7e2a 100644 --- a/SGGL/BLL/DigData/HTGLDataDWService.cs +++ b/SGGL/BLL/DigData/HTGLDataDWService.cs @@ -36,7 +36,7 @@ namespace BLL /// /// /// - public static IEnumerable getDataDWList( string projectId, DateTime? startTime, DateTime? endTime, Grid Grid1) + public static IEnumerable getDataDWList( string projectId, Grid Grid1) { var getDataList = from x in Funs.DB.Base_Project select x; if (!string.IsNullOrEmpty(projectId) && projectId != Const._Null) @@ -56,10 +56,29 @@ namespace BLL x.ProjectId, x.ProjectName, x.ProjectCode, - Count1=0, + Count1= getTotalProfit(x.ProjectId), }; } #endregion + public static string getTotalProfit(string projectId) + { + decimal contractAmount = 0; + var getContract = Funs.DB.PHTGL_Contract.Where(x => x.ProjectId == projectId); + if (getContract.Count() > 0) + { + contractAmount = getContract.Sum(x => x.ContractAmount ?? 0); + } + + decimal estimatedAmount = 0; + var getContractTrack = Funs.DB.PHTGL_ContractTrack.Where(x => x.ProjectId == projectId); + if (getContractTrack.Count() > 0) + { + estimatedAmount = getContractTrack.Sum(x => x.EstimatedAmount ?? 0); + } + + return estimatedAmount > 0 ? Math.Round(contractAmount / estimatedAmount).ToString() + "%" : "0%"; + + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx index ef607b73..b74cfbd3 100644 --- a/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx +++ b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx @@ -20,12 +20,12 @@ OnSelectedIndexChanged="btSearch_Click" Width="500px" EmptyText="请选择项目" EnableEdit="true"> - + --%> @@ -54,7 +54,7 @@ FieldType="String" HeaderText="项目名称" HeaderTextAlign="Center" TextAlign="Left"> + FieldType="String" HeaderText="项目总体毛利" HeaderTextAlign="Center" TextAlign="Right"> diff --git a/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.cs b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.cs index 75c79984..4120f1f9 100644 --- a/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.cs +++ b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.cs @@ -33,8 +33,7 @@ namespace FineUIPro.Web.DigData /// private void BindGrid() { - var getData = HTGLDataDWService.getDataDWList( this.drpProject.SelectedValue, - Funs.GetNewDateTime(this.txtStartTime.Text), Funs.GetNewDateTime(this.txtEndTime.Text),this.Grid1); + var getData = HTGLDataDWService.getDataDWList( this.drpProject.SelectedValue,this.Grid1); Grid1.RecordCount = HTGLDataDWService.count; Grid1.DataSource = getData; Grid1.DataBind(); diff --git a/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.designer.cs b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.designer.cs index 83094669..5e45f235 100644 --- a/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/DigData/HTGLDataDW.aspx.designer.cs @@ -59,24 +59,6 @@ namespace FineUIPro.Web.DigData /// protected global::FineUIPro.DropDownList drpProject; - /// - /// txtStartTime 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker txtStartTime; - - /// - /// txtEndTime 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DatePicker txtEndTime; - /// /// ToolbarFill2 控件。 /// diff --git a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx index 24f0e66e..688aac3c 100644 --- a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx +++ b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx @@ -110,17 +110,17 @@ - + - + - - - +<%-- + --%> + - + - + + + + + + + + + + + + + + + + + + diff --git a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs index 76ab76ec..762f7fde 100644 --- a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs +++ b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.cs @@ -116,6 +116,26 @@ namespace FineUIPro.Web.DigData if (item == "HTGL") { this.gpHTGL.Hidden = false; + decimal contractAmount = 0; + var getContract = Funs.DB.PHTGL_Contract.Where(x => x.ProjectId == this.ProjectId); + if (getContract.Count() > 0) + { + contractAmount = getContract.Sum(x => x.ContractAmount ?? 0); + } + this.lbContractAmount.Text = contractAmount.ToString(); + + decimal estimatedAmount = 0; + var getContractTrack = Funs.DB.PHTGL_ContractTrack.Where(x => x.ProjectId == this.ProjectId); + if (getContractTrack.Count() > 0) + { + estimatedAmount = getContractTrack.Sum(x => x.EstimatedAmount ?? 0); + + } + this.lbEstimatedAmount.Text= estimatedAmount.ToString(); + + this.lbTotalProfit.Text = estimatedAmount > 0 ? Math.Round(contractAmount / estimatedAmount ).ToString() + "%" : "0%"; + + } if (item == "LW") { diff --git a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs index e6515584..ff9e9930 100644 --- a/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/DigData/ProjectDataDW.aspx.designer.cs @@ -240,40 +240,31 @@ namespace FineUIPro.Web.DigData protected global::FineUIPro.Form Form4; /// - /// Label4 控件。 + /// lbContractAmount 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Label Label4; + protected global::FineUIPro.Label lbContractAmount; /// - /// Label1 控件。 + /// lbEstimatedAmount 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Label Label1; + protected global::FineUIPro.Label lbEstimatedAmount; /// - /// Label11 控件。 + /// lbTotalProfit 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Label Label11; - - /// - /// Label6 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Label Label6; + protected global::FineUIPro.Label lbTotalProfit; /// /// Label12 控件。 @@ -347,6 +338,24 @@ namespace FineUIPro.Web.DigData /// protected global::FineUIPro.Label Label19; + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// labNumber 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label labNumber; + /// /// gpLW 控件。 /// diff --git a/SGGL/FineUIPro.Web/HSSE/CostGoods/Expense.aspx.cs b/SGGL/FineUIPro.Web/HSSE/CostGoods/Expense.aspx.cs index 41ac41aa..95ea6f0d 100644 --- a/SGGL/FineUIPro.Web/HSSE/CostGoods/Expense.aspx.cs +++ b/SGGL/FineUIPro.Web/HSSE/CostGoods/Expense.aspx.cs @@ -182,6 +182,7 @@ namespace FineUIPro.Web.HSSE.CostGoods orderby y.Year, x.SupSortIndex, x.SortIndex select new { x.ExpenseDetailId, x.ExpenseId, y.Year, x.SupCostTypeId, x.SupCostTypeName, x.SupSortIndex, x.CostType, x.CostTypeName, x.SortIndex, x.CostMoney }; var getType = (from x in getDetail select new { x.SupSortIndex, x.SortIndex, x.CostType }).Distinct(); + int j = 1; foreach (var item in getType) { var getD = getDetail.FirstOrDefault(x => x.CostType == item.CostType); @@ -208,8 +209,30 @@ namespace FineUIPro.Web.HSSE.CostGoods } row[r] = getDetail.Where(x => x.CostType == item.CostType).Sum(x => x.CostMoney ?? 0); table.Rows.Add(row); + j = r + 1; } } + + DataRow rowSum = table.NewRow(); + rowSum[0] = SQLHelper.GetNewID(); + rowSum[1] = ""; + rowSum[2] = "合计"; + int rSum = 3; + for (int i = 0; sDate + i <= eDate; i++) + { + var getV = getDetail.Where(x => x.Year == sDate + i ); + if (getV.Count() > 0) + { + rowSum[rSum] = getV.Sum(x => x.CostMoney ?? 0); + } + else + { + rowSum[rSum] = 0.00; + } + + rSum = rSum + 1; + } + table.Rows.Add(rowSum); } From f285d8e3d02dbbeff494bc8fc5c37a2d23015c45 Mon Sep 17 00:00:00 2001 From: fly-l <1420031550@qq.com> Date: Mon, 9 Oct 2023 12:00:54 +0800 Subject: [PATCH 2/4] 2023-10-09 --- .vs/SGGL_SeDin/v17/.wsuo | Bin 263680 -> 264192 bytes DataBase/版本日志/SGGLDB_V2023-09-27.sql | 7 ++ SGGL/BLL/Common/Funs.cs | 4 +- .../BillOfQuantities/PhtglQuantityService.cs | 67 ++++++++++-------- .../HJGL/PreDesign/PackagingManage.aspx | 2 +- .../HJGL/WeldingManage/WeldJointEdit.aspx | 8 +++ .../HJGL/WeldingManage/WeldJointEdit.aspx.cs | 37 ++++++++-- .../WeldJointEdit.aspx.designer.cs | 18 +++++ .../BillOfQuantities/TemQuantityList.aspx | 6 +- SGGL/Model/Model.cs | 32 +++++++-- 10 files changed, 136 insertions(+), 45 deletions(-) create mode 100644 DataBase/版本日志/SGGLDB_V2023-09-27.sql diff --git a/.vs/SGGL_SeDin/v17/.wsuo b/.vs/SGGL_SeDin/v17/.wsuo index 8a1ade310213944590ccfcab54451d66e7b5da16..286ad1ec80191e52f665a7be1a0fa5ab0b65cae5 100644 GIT binary patch delta 1680 zcma)5Z%kWN6z~1>fU;L8Q2wlJ-DnAJ*s|A_mcnELZ3ya8IwZzKr;O3fFtZ_45=k`G z59mxkjNZvbqlVR_F@B>@eSVn95;1|9xo$B!7eAP|7+t~=W1~VQcy3F#lFV!;`MrDI z@1Aqs{hfPWG-iyRF`jt@mCkh5>T7j6T^+#84$<0$u^5WugGgcxcvn$Z{jTHZSJ^ne zDi=XSC13-LRa7*x2zH9-Ti z0%t4WS*B*NBri2LF14{lC5|`w#n7-wYg#r!yy%t)%Y}GiadSWx<05b2%^|rA2r&rx zU^QcwQM?YSc{*8CtWY&m7n1c5R9_ItBHQ~7NTitxSZNqu4ydc${fPDT+SQ07hWY3k zu`<_0fL+68HL65Ws@YGN-~VNza+8Xb%xL;j=$+PJP(bo_}DLCRh_d_|oZ*oWA{;TdpFp~TZP@f=P(g%c5+ z8oF3!8*X!sxSe6gu~uK3qt&hW9KMk@r{jp*qxjm7ggs%eqOP2*A|G8iisR!;sE1#n zw3$C9(K7z^8reup#*!3a-jgH&K6M^@wJD6I(R2|?7Ga}$A#5$utX8~?Ov{gV@0}Zc z;^QCYUmsZi;uGkLPRIZF8`X2=5|Op08hjniHsXsm#ToXEgpWErVHX_9>vK7L&SUM4 z5x3W+v^$4eUEUFGr4d&Zv!7q7)GAx>EtK4iF&{XEr{0`Wur{TT=?{3C)omiQ^aPySANwCV52YlzR^B5!H2Yb3IbrB+=0Jv)eb z;Wsi@&Vwh=vwZ9{vhywpDxAGdUPSEbxdE2`#>~goiA8(+2AM?3HG)51C)Y6>{>;Kc zX*-YpLiX^38{|`-cm~z*=xMYgTY?|>hrF-8qckDDxJrCHP3gngp0YzqHGfs2A%2_C uQGQ9HZniK{$0jG96pS@VDP}jv`$R@iF#GvAO80S#M4xBN6K%6=Wb{8Sn`xN< delta 1659 zcmbtUZD?C%6wZ0yn>O8UnsiCl?{rH`H@l?fNxBTDQ*4#u_CsrLn$)3!QLZ09 zMkzz4%z$lP^&JCYi5r!8Y-mmkV zbDneF_s-3`=d$kk5pXUXYHnz=*=(JN4iRy9E@!?6=n)rPd+hJJFRb4Xud=ViRbN;b zd`w*NMVx80d=WukqX4BlO$O8!o=Dx;n8DGptBt{o=xLO78d;paKc@EGP<(4mV^@++S6+wZn=Cdt6MEMTF0C~ zudcSZcDj)^^Hx_qTkJ`2Dzb^5n7q7?waB8P9FPa{t9KVi z7>CQD>2LLKK8b9;m*qxQ#ELIymPS;_9X6D+tK=J`AvH-FiAYFcXW0^pqA0X;Cc|8VaX|Let5ZHmDD!Q<_!|S6{f! zS)q?HQTXhnoLU0!+o$@Ob*i7g^^pub%Vw?FB0p`H#Yf>`nfZywtux>9S+JBZ_y)+E zIS9&dAAdx;*LjPTUE{`1IrTNXBr_Y_Z=L;vzYZe&WyZ>U!{#*`WP16KmluPCk7 JMMZfI{sB(kbix1t diff --git a/DataBase/版本日志/SGGLDB_V2023-09-27.sql b/DataBase/版本日志/SGGLDB_V2023-09-27.sql new file mode 100644 index 00000000..deda119e --- /dev/null +++ b/DataBase/版本日志/SGGLDB_V2023-09-27.sql @@ -0,0 +1,7 @@ +alter table dbo.PHTGL_Quantity + add SerialNumber nvarchar(50) +go + +exec sp_addextendedproperty 'MS_Description', N'', 'SCHEMA', 'dbo', 'TABLE', 'PHTGL_Quantity', 'COLUMN', + 'SerialNumber' +go diff --git a/SGGL/BLL/Common/Funs.cs b/SGGL/BLL/Common/Funs.cs index 0b7c7911..b017a205 100644 --- a/SGGL/BLL/Common/Funs.cs +++ b/SGGL/BLL/Common/Funs.cs @@ -1396,6 +1396,8 @@ namespace BLL client.Timeout = -1; var request = new RestRequest(Method.GET); request.AddHeader("token", Token); + request.AddHeader("ClientId", SysConstSetService.ClientId); + request.AddHeader("OperationCode", Baseurl.Substring(Baseurl.LastIndexOf("/", StringComparison.Ordinal) + 1)); IRestResponse response = client.Execute(request); Console.WriteLine(response.Content); return response.Content; @@ -1409,7 +1411,7 @@ namespace BLL var request = new RestRequest(Method.POST); request.AddHeader("token", Token); request.AddHeader("ClientId", SysConstSetService.ClientId); - request.AddHeader("OperationCode", Baseurl.Substring(Baseurl.LastIndexOf("/", StringComparison.Ordinal)+1)); + request.AddHeader("OperationCode", Baseurl.Substring(Baseurl.LastIndexOf("/", StringComparison.Ordinal) + 1)); if (!string.IsNullOrEmpty(JsonBody)) { request.AddJsonBody(JsonBody); diff --git a/SGGL/BLL/PHTGL/BillOfQuantities/PhtglQuantityService.cs b/SGGL/BLL/PHTGL/BillOfQuantities/PhtglQuantityService.cs index 1ca3d30d..0e6a5cd1 100644 --- a/SGGL/BLL/PHTGL/BillOfQuantities/PhtglQuantityService.cs +++ b/SGGL/BLL/PHTGL/BillOfQuantities/PhtglQuantityService.cs @@ -38,7 +38,8 @@ namespace BLL WorkContent = newtable.WorkContent, Remarks = newtable.Remarks, IsTemplate = newtable.IsTemplate, - ParentId = newtable.ParentId + ParentId = newtable.ParentId, + SerialNumber = newtable.SerialNumber }; Funs.DB.PHTGL_Quantity.InsertOnSubmit(table); Funs.DB.SubmitChanges(); @@ -68,7 +69,8 @@ namespace BLL WorkContent = newtable.WorkContent, Remarks = newtable.Remarks, IsTemplate = false, - ParentId = parentId + ParentId = parentId, + SerialNumber = newtable.SerialNumber }; Funs.DB.PHTGL_Quantity.InsertOnSubmit(table); Funs.DB.SubmitChanges(); @@ -96,6 +98,7 @@ namespace BLL table.Remarks = newtable.Remarks; table.IsTemplate = newtable.IsTemplate; table.ParentId = newtable.ParentId; + table.SerialNumber = newtable.SerialNumber; Funs.DB.SubmitChanges(); } } @@ -278,34 +281,37 @@ namespace BLL public static List GetPHTGL_QuantityByModle(PHTGL_Quantity table) { var q = from x in Funs.DB.PHTGL_Quantity - where - (string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) && - (string.IsNullOrEmpty(table.Major) || x.Major.Contains(table.Major)) && - (string.IsNullOrEmpty(table.SubProject) || x.SubProject.Contains(table.SubProject)) && - (string.IsNullOrEmpty(table.SubItemProject) || - x.SubItemProject.Contains(table.SubItemProject)) && - (string.IsNullOrEmpty(table.ProjectCode) || x.ProjectCode.Contains(table.ProjectCode)) && - (string.IsNullOrEmpty(table.ProjectName) || x.ProjectName.Contains(table.ProjectName)) && - (string.IsNullOrEmpty(table.ProjectDescription) || - x.ProjectDescription.Contains(table.ProjectDescription)) && - (string.IsNullOrEmpty(table.UnitOfMeasurement) || - x.UnitOfMeasurement.Contains(table.UnitOfMeasurement)) && - (string.IsNullOrEmpty(table.Quantity) || x.Quantity.Contains(table.Quantity)) && - (string.IsNullOrEmpty(table.TotalCostFixedComprehensiveUnitPrice) || - x.TotalCostFixedComprehensiveUnitPrice.Contains(table.TotalCostFixedComprehensiveUnitPrice)) && - (string.IsNullOrEmpty(table.MainMaterialCost) || - x.MainMaterialCost.Contains(table.MainMaterialCost)) && - (string.IsNullOrEmpty(table.TotalPrice) || x.TotalPrice.Contains(table.TotalPrice)) && - (string.IsNullOrEmpty(table.CalculationRule) || - x.CalculationRule.Contains(table.CalculationRule)) && - (string.IsNullOrEmpty(table.WorkContent) || x.WorkContent.Contains(table.WorkContent)) && - (string.IsNullOrEmpty(table.Remarks) || x.Remarks.Contains(table.Remarks)) && - x.IsTemplate == table.IsTemplate && - (string.IsNullOrEmpty(table.ParentId) || x.ParentId.Contains(table.ParentId)) - select x - ; + where + (string.IsNullOrEmpty(table.Id) || x.Id.Contains(table.Id)) && + (string.IsNullOrEmpty(table.Major) || x.Major.Contains(table.Major)) && + (string.IsNullOrEmpty(table.SubProject) || x.SubProject.Contains(table.SubProject)) && + (string.IsNullOrEmpty(table.SubItemProject) || + x.SubItemProject.Contains(table.SubItemProject)) && + (string.IsNullOrEmpty(table.ProjectCode) || x.ProjectCode.Contains(table.ProjectCode)) && + (string.IsNullOrEmpty(table.ProjectName) || x.ProjectName.Contains(table.ProjectName)) && + (string.IsNullOrEmpty(table.ProjectDescription) || + x.ProjectDescription.Contains(table.ProjectDescription)) && + (string.IsNullOrEmpty(table.UnitOfMeasurement) || + x.UnitOfMeasurement.Contains(table.UnitOfMeasurement)) && + (string.IsNullOrEmpty(table.Quantity) || x.Quantity.Contains(table.Quantity)) && + (string.IsNullOrEmpty(table.TotalCostFixedComprehensiveUnitPrice) || + x.TotalCostFixedComprehensiveUnitPrice.Contains(table.TotalCostFixedComprehensiveUnitPrice)) && + (string.IsNullOrEmpty(table.MainMaterialCost) || + x.MainMaterialCost.Contains(table.MainMaterialCost)) && + (string.IsNullOrEmpty(table.TotalPrice) || x.TotalPrice.Contains(table.TotalPrice)) && + (string.IsNullOrEmpty(table.CalculationRule) || + x.CalculationRule.Contains(table.CalculationRule)) && + (string.IsNullOrEmpty(table.WorkContent) || x.WorkContent.Contains(table.WorkContent)) && + (string.IsNullOrEmpty(table.Remarks) || x.Remarks.Contains(table.Remarks)) && + x.IsTemplate == table.IsTemplate && + (string.IsNullOrEmpty(table.ParentId) || x.ParentId.Contains(table.ParentId)) + + select new { x ,IntSerialNumber= Funs.GetNewIntOrZero(x.SerialNumber.Replace(".", "")) + } - return q.ToList(); + ; + var model = q.ToList().OrderBy(x => x.IntSerialNumber).Select(itemx => itemx.x).ToList(); + return model; } /// 获取分页列表 @@ -324,6 +330,7 @@ namespace BLL select new { x.Id, + x.SerialNumber, x.Major, x.SubProject, x.SubItemProject, @@ -348,7 +355,7 @@ namespace BLL public class PHTGL_QuantityDtoIn { - [ExcelColumnIndex("A")] public string Major { get; set; } + [ExcelColumnIndex("A")] public string SerialNumber { get; set; } [ExcelColumnIndex("B")] public string SubProject { get; set; } [ExcelColumnIndex("C")] public string SubItemProject { get; set; } diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx index 1b52865d..3ac2eeed 100644 --- a/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx +++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/PackagingManage.aspx @@ -62,7 +62,7 @@ - + + + @@ -185,6 +189,10 @@ EnableMaximize="true" Target="Top" EnableResize="false" runat="server" IsModal="true" Width="1200px" Height="620px" OnClose="Window1_Close"> + diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointEdit.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointEdit.aspx.cs index 399944b1..e0c37828 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointEdit.aspx.cs @@ -1,4 +1,5 @@ using BLL; +using FineUIPro.Web.HSSE.Meeting; using System; using System.Collections.Generic; using System.Linq; @@ -22,7 +23,18 @@ namespace FineUIPro.Web.HJGL.WeldingManage ViewState["PipelineId"] = value; } } - + public string WeldJointId + { + get + { + return (string)ViewState["WeldJointId"]; + } + set + { + ViewState["WeldJointId"] = value; + } + } + protected void Page_Load(object sender, EventArgs e) { @@ -52,7 +64,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage this.drpDetectionTypeId.DataTextField = "DetectionTypeCode"; //Funs.FineUIPleaseSelect(this.drpDetectionTypeId); string flag = Request.Params["flag"]; - string weldJointId = Request.Params["WeldJointId"]; + WeldJointId = Request.Params["WeldJointId"]; string isTwoJoint = Request.Params["IsTwoJoint"]; @@ -66,9 +78,9 @@ namespace FineUIPro.Web.HJGL.WeldingManage GroupPanel2.Hidden = true; IsReadOnly(false); } - if (!string.IsNullOrEmpty(weldJointId)) + if (!string.IsNullOrEmpty(WeldJointId)) { - Model.HJGL_WeldJoint joint = BLL.WeldJointService.GetWeldJointByWeldJointId(weldJointId); + Model.HJGL_WeldJoint joint = BLL.WeldJointService.GetWeldJointByWeldJointId(WeldJointId); Model.WPQ_WPQList list = BLL.WPQListServiceService.GetWPQById(joint.WPQId); this.txtWpqId.Text = joint.WPQId; @@ -82,7 +94,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage } if (Request.Params["Type"] == "add") //插入焊口 { - var baseWeldJoints = BLL.WeldJointService.GetBaseWeldJointsByWeldJointId(weldJointId); + var baseWeldJoints = BLL.WeldJointService.GetBaseWeldJointsByWeldJointId(WeldJointId); this.txtWeldJointCode.Text = joint.WeldJointCode + "Z-" + (baseWeldJoints.Count + 1).ToString(); } else @@ -287,7 +299,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage weldJointCode = this.txtWeldJointCode.Text; } - if (BLL.WeldJointService.IsExistWeldJointCode(weldJointCode, this.PipelineId, Request.Params["WeldJointId"])) + if (BLL.WeldJointService.IsExistWeldJointCode(weldJointCode, this.PipelineId, WeldJointId)) { Alert.ShowInTop("该管线焊口已存在!", MessageBoxIcon.Warning); return; @@ -318,7 +330,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage return; } Model.HJGL_WeldJoint joint = new Model.HJGL_WeldJoint(); - string weldJointId = Request.Params["WeldJointId"]; + string weldJointId = WeldJointId; joint.PipelineId = this.PipelineId; joint.PipelineCode = txtPipelineCode.Text.Trim(); joint.ProjectId = this.CurrUser.LoginProjectId; @@ -435,6 +447,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage string newId = SQLHelper.GetNewID(typeof(Model.HJGL_WeldJoint)); joint.WeldJointId = newId; joint.BaseWeldJointId = weldJointId; + WeldJointId = joint.WeldJointId; BLL.WeldJointService.AddWeldJoint(joint); } } @@ -442,6 +455,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { string newId = SQLHelper.GetNewID(typeof(Model.HJGL_WeldJoint)); joint.WeldJointId = newId; + WeldJointId = joint.WeldJointId; if (Request.Params["IsTwoJoint"] == "1") { joint.IsTwoJoint = true; @@ -854,5 +868,14 @@ namespace FineUIPro.Web.HJGL.WeldingManage // } // } //} + + protected void btnAttachUrl_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.WeldJointId)) + { + SaveData(); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/WeldJoint&menuId={1}", WeldJointId, BLL.Const.HJGL_WeldJointMenuId))); + } } } \ No newline at end of file diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointEdit.aspx.designer.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointEdit.aspx.designer.cs index f09a67cb..fb4c5f4b 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointEdit.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointEdit.aspx.designer.cs @@ -50,6 +50,15 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// protected global::FineUIPro.Toolbar Toolbar1; + /// + /// btnAttachUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttachUrl; + /// /// btnSave 控件。 /// @@ -382,5 +391,14 @@ namespace FineUIPro.Web.HJGL.WeldingManage /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; } } diff --git a/SGGL/FineUIPro.Web/PHTGL/BillOfQuantities/TemQuantityList.aspx b/SGGL/FineUIPro.Web/PHTGL/BillOfQuantities/TemQuantityList.aspx index 3d6a3813..a09ceb99 100644 --- a/SGGL/FineUIPro.Web/PHTGL/BillOfQuantities/TemQuantityList.aspx +++ b/SGGL/FineUIPro.Web/PHTGL/BillOfQuantities/TemQuantityList.aspx @@ -34,7 +34,7 @@ @@ -66,7 +66,9 @@ - + + diff --git a/SGGL/Model/Model.cs b/SGGL/Model/Model.cs index 1961cba2..cc805fcb 100644 --- a/SGGL/Model/Model.cs +++ b/SGGL/Model/Model.cs @@ -11708,7 +11708,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(2000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApproveIdea", DbType="NVarChar(200)")] public string ApproveIdea { get @@ -151035,7 +151035,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(3000)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttentPerson", DbType="NVarChar(500)")] public string AttentPerson { get @@ -182430,7 +182430,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageEstimate", DbType="Decimal(18,3)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WorkPackageEstimate", DbType="Decimal(18,2)")] public System.Nullable WorkPackageEstimate { get @@ -182899,6 +182899,8 @@ namespace Model private string _ParentId; + private string _SerialNumber; + #region 可扩展性方法定义 partial void OnLoaded(); partial void OnValidate(System.Data.Linq.ChangeAction action); @@ -182937,6 +182939,8 @@ namespace Model partial void OnIsTemplateChanged(); partial void OnParentIdChanging(string value); partial void OnParentIdChanged(); + partial void OnSerialNumberChanging(string value); + partial void OnSerialNumberChanged(); #endregion public PHTGL_Quantity() @@ -183284,6 +183288,26 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SerialNumber", DbType="NVarChar(50)")] + public string SerialNumber + { + get + { + return this._SerialNumber; + } + set + { + if ((this._SerialNumber != value)) + { + this.OnSerialNumberChanging(value); + this.SendPropertyChanging(); + this._SerialNumber = value; + this.SendPropertyChanged("SerialNumber"); + this.OnSerialNumberChanged(); + } + } + } + public event PropertyChangingEventHandler PropertyChanging; public event PropertyChangedEventHandler PropertyChanged; @@ -292128,7 +292152,7 @@ namespace Model } } - [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(50)")] + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Name", DbType="NVarChar(81)")] public string Name { get From 1a1a49559f9774d5759507badca8e296d7143d50 Mon Sep 17 00:00:00 2001 From: yhw0507 Date: Tue, 10 Oct 2023 10:17:56 +0800 Subject: [PATCH 3/4] =?UTF-8?q?20231010=E5=BF=BD=E7=95=A5errlog.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + SGGL/FineUIPro.Web/ErrLog.txt | 284 ---------------------------------- 2 files changed, 1 insertion(+), 284 deletions(-) delete mode 100644 SGGL/FineUIPro.Web/ErrLog.txt diff --git a/.gitignore b/.gitignore index 6116d731..590b4793 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,4 @@ SGGL/.svn /SGGL/FineUIPro.Web/FileUpload/ /DataBase/版本日志/SGGLDB_V2023-07-28.sql /SGGL/BLLTests +/SGGL/FineUIPro.Web/ErrLog.txt diff --git a/SGGL/FineUIPro.Web/ErrLog.txt b/SGGL/FineUIPro.Web/ErrLog.txt deleted file mode 100644 index 91eccac6..00000000 --- a/SGGL/FineUIPro.Web/ErrLog.txt +++ /dev/null @@ -1,284 +0,0 @@ - -错误信息开始=====> -错误类型:ArgumentNullException -错误信息:值不能为 null。 -参数名: text -错误堆栈: - 在 System.Data.Linq.SqlClient.SqlHelpers.GetStringContainsPattern(String text, Char escape, Boolean& usedEscapeChar) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.TranslateStringMethod(SqlMethodCall mc) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitMethodCall(SqlMethodCall mc) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitExpression(SqlExpression exp) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitBinaryOperator(SqlBinary bo) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitBinaryOperator(SqlBinary bo) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitExpression(SqlExpression exp) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSelectCore(SqlSelect select) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitSelect(SqlSelect select) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitAlias(SqlAlias a) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSource(SqlSource source) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSelectCore(SqlSelect select) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitSelect(SqlSelect select) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitAlias(SqlAlias a) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSource(SqlSource source) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSelectCore(SqlSelect select) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitSelect(SqlSelect select) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Convert(SqlNode node, SqlFactory sql, ProviderMode providerMode) - 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(ResultShape resultShape, Type resultType, SqlNode node, ReadOnlyCollection`1 parentParameters, SqlNodeAnnotations annotations) - 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) - 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) - 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) - 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) - 在 BLL.WBSAnalysisService.getWBSExpertArgumentCount(String projectId, String workPackageId) 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\BLL\DigData\WBSAnalysisService.cs:行号 117 - 在 lambda_method(Closure , WBS_WorkPackage ) - 在 System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() - 在 (IEnumerator ) - 在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean ) - 在 (Grid , IEnumerable , Boolean ) - 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData) - 在 (Grid , Boolean ) - 在 FineUIPro.Grid.DataBind() - 在 FineUIPro.Web.DigData.ProjectWBSAnalysis.BindGrid() 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\DigData\ProjectWBSAnalysis.aspx.cs:行号 58 - 在 FineUIPro.Web.DigData.ProjectWBSAnalysis.changeTree(Object sender, EventArgs e) 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\DigData\ProjectWBSAnalysis.aspx.cs:行号 46 - 在 FineUIPro.Web.Controls.ProjectWBSControl.trWBS_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\Controls\ProjectWBSControl.ascx.cs:行号 78 - 在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e) - 在 (Tree , TreeCommandEventArgs ) - 在 FineUIPro.Tree.RaisePostBackEvent(String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) - 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) -出错时间:09/25/2023 09:52:02 -出错文件:http://localhost:2325/DigData/ProjectWBSAnalysis.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/25/2023 09:52:02 - - -错误信息开始=====> -错误类型:IOException -错误信息:句柄无效。 - -错误堆栈: - 在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) - 在 System.IO.__Error.WinIOError() - 在 System.Threading.EventWaitHandle.Set() - 在 System.Net.TimerThread.Prod() - 在 System.Net.TimerThread.TimerQueue.CreateTimer(Callback callback, Object context) - 在 System.Net.HttpWebRequest.SubmitRequest(ServicePoint servicePoint) - 在 System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) - 在 System.Net.HttpWebRequest.GetRequestStream() - 在 Microsoft.WebTools.BrowserLink.Runtime.Tracing.DataDispatchExecutionListener.Initialize(HttpWebRequest request) - 在 Microsoft.WebTools.BrowserLink.Runtime.Tracing.PageInspectorHttpModule.OnPreRequestHandlerExecute(Object sender, EventArgs e) - 在 System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() - 在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) - 在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) -出错时间:09/25/2023 09:53:44 -出错文件:http://localhost:2325/indexProject.aspx?projectId=7b691ed0-6bad-468f-9e54-f0f5ba4df21f -IP地址:::1 -操作人员:JT - -出错时间:09/25/2023 09:53:45 - - -错误信息开始=====> -错误类型:ArgumentNullException -错误信息:值不能为 null。 -参数名: text -错误堆栈: - 在 System.Data.Linq.SqlClient.SqlHelpers.GetStringContainsPattern(String text, Char escape, Boolean& usedEscapeChar) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.TranslateStringMethod(SqlMethodCall mc) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitMethodCall(SqlMethodCall mc) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitExpression(SqlExpression exp) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitBinaryOperator(SqlBinary bo) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitBinaryOperator(SqlBinary bo) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitExpression(SqlExpression exp) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSelectCore(SqlSelect select) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitSelect(SqlSelect select) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitAlias(SqlAlias a) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSource(SqlSource source) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSelectCore(SqlSelect select) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitSelect(SqlSelect select) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitAlias(SqlAlias a) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSource(SqlSource source) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSelectCore(SqlSelect select) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitSelect(SqlSelect select) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Convert(SqlNode node, SqlFactory sql, ProviderMode providerMode) - 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(ResultShape resultShape, Type resultType, SqlNode node, ReadOnlyCollection`1 parentParameters, SqlNodeAnnotations annotations) - 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) - 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) - 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) - 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) - 在 BLL.WBSAnalysisService.getWBSExpertArgumentCount(String projectId, String workPackageId) 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\BLL\DigData\WBSAnalysisService.cs:行号 114 - 在 lambda_method(Closure , WBS_WorkPackage ) - 在 System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() - 在 (IEnumerator ) - 在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean ) - 在 (Grid , IEnumerable , Boolean ) - 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData) - 在 (Grid , Boolean ) - 在 FineUIPro.Grid.DataBind() - 在 FineUIPro.Web.DigData.ProjectWBSAnalysis.BindGrid() 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\DigData\ProjectWBSAnalysis.aspx.cs:行号 58 - 在 FineUIPro.Web.DigData.ProjectWBSAnalysis.changeTree(Object sender, EventArgs e) 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\DigData\ProjectWBSAnalysis.aspx.cs:行号 46 - 在 FineUIPro.Web.Controls.ProjectWBSControl.trWBS_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\Controls\ProjectWBSControl.ascx.cs:行号 78 - 在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e) - 在 (Tree , TreeCommandEventArgs ) - 在 FineUIPro.Tree.RaisePostBackEvent(String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) - 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) -出错时间:09/25/2023 09:57:30 -出错文件:http://localhost:2325/DigData/ProjectWBSAnalysis.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/25/2023 09:57:30 - - -错误信息开始=====> -错误类型:ArgumentNullException -错误信息:值不能为 null。 -参数名: text -错误堆栈: - 在 System.Data.Linq.SqlClient.SqlHelpers.GetStringContainsPattern(String text, Char escape, Boolean& usedEscapeChar) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.TranslateStringMethod(SqlMethodCall mc) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitMethodCall(SqlMethodCall mc) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitExpression(SqlExpression exp) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitBinaryOperator(SqlBinary bo) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitBinaryOperator(SqlBinary bo) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitExpression(SqlExpression exp) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSelectCore(SqlSelect select) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitSelect(SqlSelect select) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitAlias(SqlAlias a) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSource(SqlSource source) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSelectCore(SqlSelect select) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitSelect(SqlSelect select) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitAlias(SqlAlias a) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSource(SqlSource source) - 在 System.Data.Linq.SqlClient.SqlVisitor.VisitSelectCore(SqlSelect select) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitSelect(SqlSelect select) - 在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) - 在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Convert(SqlNode node, SqlFactory sql, ProviderMode providerMode) - 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(ResultShape resultShape, Type resultType, SqlNode node, ReadOnlyCollection`1 parentParameters, SqlNodeAnnotations annotations) - 在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) - 在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) - 在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression) - 在 System.Linq.Queryable.Count[TSource](IQueryable`1 source) - 在 BLL.WBSAnalysisService.getWBSExpertArgumentCount(String projectId, String workPackageId) 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\BLL\DigData\WBSAnalysisService.cs:行号 114 - 在 lambda_method(Closure , WBS_WorkPackage ) - 在 System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() - 在 (IEnumerator ) - 在 FineUIPro.Grid.CRTRkdQFrrBRFQuCddjZPswlTORP(IEnumerable , Boolean ) - 在 (Grid , IEnumerable , Boolean ) - 在 FineUIPro.Grid.DataBind(Boolean keepCurrentData) - 在 (Grid , Boolean ) - 在 FineUIPro.Grid.DataBind() - 在 FineUIPro.Web.DigData.ProjectWBSAnalysis.BindGrid() 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\DigData\ProjectWBSAnalysis.aspx.cs:行号 58 - 在 FineUIPro.Web.DigData.ProjectWBSAnalysis.changeTree(Object sender, EventArgs e) 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\DigData\ProjectWBSAnalysis.aspx.cs:行号 46 - 在 FineUIPro.Web.Controls.ProjectWBSControl.trWBS_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\Controls\ProjectWBSControl.ascx.cs:行号 78 - 在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e) - 在 (Tree , TreeCommandEventArgs ) - 在 FineUIPro.Tree.RaisePostBackEvent(String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) - 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) -出错时间:09/25/2023 10:02:17 -出错文件:http://localhost:2325/DigData/ProjectWBSAnalysis.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/25/2023 10:02:17 - - -错误信息开始=====> -错误类型:NullReferenceException -错误信息:未将对象引用设置到对象的实例。 -错误堆栈: - 在 (TreeNode ) - 在 FineUIPro.TreeCommandEventArgs..ctor(TreeNode node, String commandName, String commandArgument) - 在 (TreeNode , String , String ) - 在 FineUIPro.Tree.RaisePostBackEvent(String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) - 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) -出错时间:09/25/2023 10:05:00 -出错文件:http://localhost:2325/DigData/ProjectWBSAnalysis.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/25/2023 10:05:00 - - -错误信息开始=====> -错误类型:NullReferenceException -错误信息:未将对象引用设置到对象的实例。 -错误堆栈: - 在 (TreeNode ) - 在 FineUIPro.TreeCommandEventArgs..ctor(TreeNode node, String commandName, String commandArgument) - 在 (TreeNode , String , String ) - 在 FineUIPro.Tree.RaisePostBackEvent(String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) - 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) -出错时间:09/25/2023 10:05:02 -出错文件:http://localhost:2325/DigData/ProjectWBSAnalysis.aspx -IP地址:::1 -操作人员:JT - -出错时间:09/25/2023 10:05:02 - - -错误信息开始=====> -错误类型:NullReferenceException -错误信息:未将对象引用设置到对象的实例。 -错误堆栈: - 在 FineUIPro.Web.indexProject.MenuSwitchMethod(String type) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 595 - 在 FineUIPro.Web.indexProject.btnPHTGL_Click(Object sender, EventArgs e) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 697 - 在 FineUIPro.Button.OnClick(EventArgs e) - 在 (Button , EventArgs ) - 在 FineUIPro.Button.RaisePostBackEvent(String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) - 在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) - 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) -出错时间:09/26/2023 16:04:25 -出错文件:http://localhost:2325/indexProject.aspx?projectId=7b691ed0-6bad-468f-9e54-f0f5ba4df21f -IP地址:::1 - -出错时间:09/26/2023 16:04:25 - - -错误信息开始=====> -错误类型:InvalidCastException -错误信息:无法将类型为“FineUIPro.RenderField”的对象强制转换为类型“FineUIPro.GroupField”。 -错误堆栈: - 在 FineUIPro.Web.PZHGL.InformationProject.ConstructionLogWorkEfficiency.Page_Load(Object sender, EventArgs e) 位置 E:\工作\赛鼎施工平台\SGGL_SeDin(New)\SGGL_SeDin_New\SGGL\FineUIPro.Web\PZHGL\InformationProject\ConstructionLogWorkEfficiency.aspx.cs:行号 141 - 在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) - 在 System.EventHandler.Invoke(Object sender, EventArgs e) - 在 System.Web.UI.Control.OnLoad(EventArgs e) - 在 System.Web.UI.Control.LoadRecursive() - 在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) -出错时间:09/28/2023 09:26:08 -出错文件:http://localhost:2325/PZHGL/InformationProject/ConstructionLogWorkEfficiency.aspx?ConstructionLogId=09043ee7-93ec-4705-93bb-d49b44148d3c&contractNo=03348581-d016-4ee8-b5a7-d61ace761c3c,23a86756-402f-4c77-a452-b36231bb7b4f&professional=0,1&WorkPostId=41EF8B02-2852-495E-A2BE-2EF19BA70A4F,2E71A650-6D40-459A-AAC1-5FB5E00D247C,558124BF-B678-48EB-B7DB-22211951747B&MachineId=0cefba88-c16a-4508-a642-1ffb079dbf58,5d6ccd22-5072-4bbd-847e-e1b7c06adc3b,f29fa0ad-b834-4198-a543-8e3deef0d340 -IP地址:::1 -操作人员:JT - -出错时间:09/28/2023 09:26:08 - From c0dd1a20b974c16a546adb16be01ff06d0e92f50 Mon Sep 17 00:00:00 2001 From: fly-l <1420031550@qq.com> Date: Tue, 10 Oct 2023 19:13:59 +0800 Subject: [PATCH 4/4] 2023-10-10 --- .vs/SGGL_SeDin/v17/.wsuo | Bin 264192 -> 264192 bytes .../HJGL/PreDesign/PackagingManageService .cs | 5 ++++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.vs/SGGL_SeDin/v17/.wsuo b/.vs/SGGL_SeDin/v17/.wsuo index 286ad1ec80191e52f665a7be1a0fa5ab0b65cae5..1261326e19e8a0a1a723af7550cb66d640766925 100644 GIT binary patch delta 4054 zcmeI#eNr@}(h(jeyY3!5?DhV>_p<}{~T6MUZHBCc40yHogA|VexLR%WrXkh(5 zWG5Ws>3Cj6^Of=aPUQl20Xt&D7tBOD3ucGQtSu&-&q11TRlN@R(#wI=ipiMXAxjcw z*BxE-DJK_|`8hT@1xyPM%$J4&yAe^qM$cx)Qa0f6+1!pg6hBT4r!3Fz2up8fVhQ2C z*O?f9otdes1Jw$WLhIua4%xO7|25^qF%ltJ)HB7bWXr(@5n92~DX%D}OsI&FuiGzH zQnDGP0CmQtso50RTCkL%`{HWopB1`L1FKjPZlpO8GDel8a)m24un=eBC6x*p0nj-# z7(S6uZ^C`#Q971Tr(#bIe^o2lOFdJ45qsE0^kS^z)(+>kLDEe zPZ=dnI+o%i4(ge1rqv5_h&?zq-ApFlGU<*TG{5x-ZE2~c70pI!N*|#nR|9SE<_UQ4 z=w@%ZaQEp+fwR0~9$#EaWp7qiSCg(4--QG46dZ&@a2SH{JvahS!!UdwegMzFv+x`|4@cn`j1V8k z{ScYs@B+LDKY|~_OYjr;DV%_x!AW=-PQht7183nJ{2X3^U%;#IOLz@lhhM>Y_%&RB z-@tF-cX>Gd9^QaIz?<+EybEj*uRh*GUB4xzTWJsM&_4eV25k+Sb3%O@f`{!@1w>XTp^B*X2H0@EQC?tnB%2Mx@C z444VCAQQ4+Hq3!+_VDB&qlH{xw^9fBFc%6y4~0+!#ZUsJPzLkB0OeqW`Cx(tPyv-t z1q)#j+zHjN7?!|Y?BS_FrWTe$9n?buECVw%!g6SW6>v9v9=-r8p&43W6|9CGsDUztKS}z}*CUlPQi3V7-Xwm*iz>ETVcRqI)4(ERvn>G1q2o?Ya z=S=FU^hK~wt_fb85yc-~BJ;k#K6}hCe|>jXnpbqWJ013NO@6LUlP21&4qK;vO}WM+ zwQEZ>^Nj|p!`|Mx#^bU`=w>vyMM**jqrqiE||rx`6dVtb0VO#KJ6cxVkN&+{Az@!+lyjqh z;fb1j)gwg@G?!7iriMP>I-9oCOjZ>%nc0hkTUcqXrzcnF2kI3AX0qSZNNCTBoxz<= zJrUP#5rvxQE{zP)1KAl$#r=AerAawAZMFHoZ z1k>==*M#2ap_2k1FkaxD!_HTQKFsjQ+`yhwLeX%?AB9Jv>AC&O=$V(31I|lA>hMGF z3tkc!xFE>G@~9vS0eQQC>n`ECL4|^xqh~*ODRAmNqKb55jM#t6nS55DH&T(ZD@w6? K_}&P`X8zwS^QW)? delta 2219 zcmd6oe{54#6vumiv>mnGx~>~zgKjGW#@w(gWo!dxp(6pduu9GRLmh0afCyXBwv!6% zArXx5$JP_M2#Fz;EXMc`dz$AT{!x*CGy{wo1n|$6m z@7#0ld-r=!UzL8V(r@keTXySox~WJZQUo9Kna4v4i5s?Bic2KCBmIWbOsdX0S z&qidI$?k)rwic@tQqqV4Y2hwrKA@5O&}FjYQhf1-bmk_s&!v4?`A?0Oc?z7#3!BTa zh$2{XZ!>g}4x;v5BnByatC^)|GP7hmMDqLevQ-(3=Jq^X+nIWdbU>uAkF0|fULS|Z zwEc0X&qCxULbiKm8*12jfW(VNNEf7v`p9~S6bG{G6B0Y7BU4fAvuU#Z{okl&Djj#+tVCN3;HX_AcflV#L*qNa`N=mH}h2ytRd@9_djH1Nb? zI@Hia;AF82!i!qrll&UJ?BX^U^|ekCo-{(FsgEpy6khS?w|oz2QAd47iZTzaQYd&^ zTcE7nW1im@@Z%fmmiq#JFb6#GK+=-Ym!ZyMxcQ$*!q1_`@r63j_85U}jsbLf^pJEY zs<&MsiFT?cJ1YrP2HU_zIVeH{^;&C zV;{aN>vZDIC@B`M^USQxE~Q@+k#tfo6ohQBCe&Nr>8c6Vbp_W~F9^C9R(ope+|_k8 z8|tgO=GVGi^);OycWsw?GnB^;mSdGS`kJ`NxD&3G7Kj1^cME3)Z4&z#4~Vr!zHo3J z<${(lyJoMVH;6dVOk(?DZmPxHZ0`~A*(F*e{AHADjxX7FM0k%7lV-ZiekOybSr)iX zg|yHW)=waDu}O4aXUnv`7g)>!L$}=G@M%`7ZMwz|Ss*!V67PM>qMGt6Qy83mdkvg9 zRU|@V%%Q#h3yTtQ(8xE7VIz0Qzj)m;L5#c(Nbfit?zIUU<+J%yzJ_N8#~6iWBkiJ{ x^BvHsIlzCmN+{p63aw?Fz0YB|)Gf@6dop{ri(v!atuXM__=L6EPCeg4{{WQq^sfK_ diff --git a/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs b/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs index 20b0e391..0172d0a1 100644 --- a/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs +++ b/SGGL/BLL/HJGL/PreDesign/PackagingManageService .cs @@ -105,7 +105,10 @@ namespace BLL public static Model.HJGL_PackagingManage GetHJGL_PackagingManageById(string PackagingManageId) { - return db.HJGL_PackagingManage.FirstOrDefault(x => x.PackagingManageId == PackagingManageId); + using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) + { + return db.HJGL_PackagingManage.FirstOrDefault(x => x.PackagingManageId == PackagingManageId); + } } public static string GetMinPlanStartDate(string PackagingManageId) {