diff --git a/.vs/SGGL_SeDin/v17/.wsuo b/.vs/SGGL_SeDin/v17/.wsuo index c22ec423..d27c0509 100644 Binary files a/.vs/SGGL_SeDin/v17/.wsuo and b/.vs/SGGL_SeDin/v17/.wsuo differ diff --git a/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs b/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs index 3749f6d1..5c8e25a8 100644 --- a/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/InfoQuery/JointQuery.aspx.cs @@ -294,8 +294,9 @@ namespace FineUIPro.Web.HJGL.InfoQuery } else if (this.tvControlItem.SelectedNode.CommandName == "管线") { + model.PipelineId = this.tvControlItem.SelectedNodeID; + } - model.PipelineId= this.tvControlItem.SelectedNodeID; model.WeldJointCode = this.txtWeldJointCode.Text; var list= BLL.WeldJointService.GetViewWeldJointsBymodel(model); View_HJGL_WeldJoint = list; diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs index 0cc563eb..1232d844 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldJointList.aspx.cs @@ -444,26 +444,30 @@ namespace FineUIPro.Web.HJGL.WeldingManage var q = from x in db.View_HJGL_WeldJoint where x.PipelineId == pipelineid select x; if (q != null && q.Count() > 0) { - var proSum = (from x in q + var proSumModel= (from x in q where x.JointAttribute == "预制口" group x by x.PipelineId into g select new { SizeSum = g.Sum(x => x.Size) - }).FirstOrDefault().SizeSum; - var FieldSum = (from x in q + }).FirstOrDefault(); + var proSum= (proSumModel !=null) ? proSumModel.SizeSum : 0; + var FieldSumModel = (from x in q where x.JointAttribute == "安装口" group x by x.PipelineId into g select new { SizeSum = g.Sum(x => x.Size) - }).FirstOrDefault().SizeSum; - var AllSum = (from x in q + }).FirstOrDefault(); + var FieldSum= (FieldSumModel != null) ? FieldSumModel.SizeSum : 0; + var AllSumModel = (from x in q group x by x.PipelineId into g select new { SizeSum = g.Sum(x => x.Size) - }).FirstOrDefault().SizeSum; + }).FirstOrDefault(); + var AllSum = (AllSumModel != null) ? AllSumModel.SizeSum : 0; + proSum = (proSum != null) ? proSum : 0; FieldSum = (FieldSum != null) ? FieldSum : 0; ShopSumSize = proSum.ToString(); diff --git a/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/BidDocumentsReviewEdit.aspx.cs b/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/BidDocumentsReviewEdit.aspx.cs index d4225329..2438289f 100644 --- a/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/BidDocumentsReviewEdit.aspx.cs +++ b/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/BidDocumentsReviewEdit.aspx.cs @@ -112,7 +112,7 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement } } } - + #region 数据绑定 /// /// 数据绑定 diff --git a/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx b/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx index b215cd61..96f6cfae 100644 --- a/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx +++ b/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx @@ -61,6 +61,8 @@ + diff --git a/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx.cs b/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx.cs index 8eacdc53..a2faacc1 100644 --- a/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx.cs +++ b/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx.cs @@ -36,7 +36,7 @@ namespace FineUIPro.Web.PHTGL.Filing if (!IsPostBack) { ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); - // btnNew.OnClientClick = Window1.GetShowReference("ContractFormationEdit.aspx", "基本信息") + "return false;"; + btnNew.OnClientClick = Window1.GetShowReference("BidDocumentsStandingBookEdit.aspx", "基本信息") + "return false;"; BLL.DepartService.InitDepartDropDownList(this.drpDepartId, false); GetButtonPower(); @@ -62,7 +62,63 @@ namespace FineUIPro.Web.PHTGL.Filing /// private void BindGrid() { - + string strSql = @"select + BidBook.BidDocumentsStandingBookId + ,ActPlan.EPCCode + ,Project.ShortName + ,Project.ProjectCode + ,(case IsOnLine + when '1' then '线上' + when '0'then '线下' end )as IsOnLine + ,BidDoc.BidType + ,ActPlan.ActionPlanCode + ,BidDoc.BidDocumentsCode + ,ActPlan.BidProject + ,BidBook.ShortListApprovalCode + ,BidBook.ProposedInviter + ,BidDoc.Bidding_SendTime + ,BidDoc.Bidding_StartTime + ,BidBook.ApprovePersonFormCode + ,BidBook.BidWinner + ,SetSub.SetSubReviewCode + from PHTGL_BidDocumentsStandingBook as BidBook + left join PHTGL_SetSubReview as SetSub on SetSub.SetSubReviewCode=BidBook.SetSubReviewCode + left join PHTGL_BidApproveUserReview as BidUser on BidUser.ApproveUserReviewID =SetSub.ApproveUserReviewID + left join PHTGL_BidDocumentsReview as BidDoc on BidDoc.BidDocumentsReviewId= BidUser.BidDocumentsReviewId + left join PHTGL_ActionPlanFormation as ActPlan on ActPlan.ActionPlanID =BidDoc.ActionPlanID + left join Base_Project as Project on Project.ProjectId=ActPlan.ProjectID where 1=1 "; + + List listStr = new List(); + + if (!(this.CurrUser.PersonId == Const.sysglyId || this.CurrUser.PersonId == Const.hfnbdId)) + { + strSql += " and ActPlan.ProjectId =@ProjectId"; + + listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); + } + if (!string.IsNullOrEmpty(drpDepartId.SelectedValue) ) + { + + + } + if (!string.IsNullOrEmpty(txtProjectCode.Text)) + { + + } + if (!string.IsNullOrEmpty(txtShortName.Text)) + { + + } + if (!string.IsNullOrEmpty(txtContractNum.Text)) + { + + } + if (!string.IsNullOrEmpty(txtContractName.Text)) + { + + } + + } #endregion @@ -257,7 +313,7 @@ namespace FineUIPro.Web.PHTGL.Filing { if (buttonList.Contains(Const.BtnAdd)) { - //btnNew.Hidden = false; + btnNew.Hidden = false; } if (buttonList.Contains(Const.BtnModify)) { diff --git a/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx.designer.cs b/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx.designer.cs index 242b407b..cf9270dd 100644 --- a/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx.designer.cs +++ b/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBook.aspx.designer.cs @@ -131,6 +131,15 @@ namespace FineUIPro.Web.PHTGL.Filing /// protected global::FineUIPro.Button Button1; + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + /// /// btnOut 控件。 /// diff --git a/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBookEdit.aspx b/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBookEdit.aspx index be39f9dd..9906e505 100644 --- a/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBookEdit.aspx +++ b/SGGL/FineUIPro.Web/PHTGL/Filing/BidDocumentsStandingBookEdit.aspx @@ -5,7 +5,7 @@ - + @@ -15,109 +15,97 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + - +