2023-03-21
This commit is contained in:
Binary file not shown.
@@ -294,8 +294,9 @@ namespace FineUIPro.Web.HJGL.InfoQuery
|
|||||||
}
|
}
|
||||||
else if (this.tvControlItem.SelectedNode.CommandName == "管线")
|
else if (this.tvControlItem.SelectedNode.CommandName == "管线")
|
||||||
{
|
{
|
||||||
|
model.PipelineId = this.tvControlItem.SelectedNodeID;
|
||||||
|
|
||||||
}
|
}
|
||||||
model.PipelineId= this.tvControlItem.SelectedNodeID;
|
|
||||||
model.WeldJointCode = this.txtWeldJointCode.Text;
|
model.WeldJointCode = this.txtWeldJointCode.Text;
|
||||||
var list= BLL.WeldJointService.GetViewWeldJointsBymodel(model);
|
var list= BLL.WeldJointService.GetViewWeldJointsBymodel(model);
|
||||||
View_HJGL_WeldJoint = list;
|
View_HJGL_WeldJoint = list;
|
||||||
|
|||||||
@@ -444,26 +444,30 @@ namespace FineUIPro.Web.HJGL.WeldingManage
|
|||||||
var q = from x in db.View_HJGL_WeldJoint where x.PipelineId == pipelineid select x;
|
var q = from x in db.View_HJGL_WeldJoint where x.PipelineId == pipelineid select x;
|
||||||
if (q != null && q.Count() > 0)
|
if (q != null && q.Count() > 0)
|
||||||
{
|
{
|
||||||
var proSum = (from x in q
|
var proSumModel= (from x in q
|
||||||
where x.JointAttribute == "预制口"
|
where x.JointAttribute == "预制口"
|
||||||
group x by x.PipelineId into g
|
group x by x.PipelineId into g
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
SizeSum = g.Sum(x => x.Size)
|
SizeSum = g.Sum(x => x.Size)
|
||||||
}).FirstOrDefault().SizeSum;
|
}).FirstOrDefault();
|
||||||
var FieldSum = (from x in q
|
var proSum= (proSumModel !=null) ? proSumModel.SizeSum : 0;
|
||||||
|
var FieldSumModel = (from x in q
|
||||||
where x.JointAttribute == "安装口"
|
where x.JointAttribute == "安装口"
|
||||||
group x by x.PipelineId into g
|
group x by x.PipelineId into g
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
SizeSum = g.Sum(x => x.Size)
|
SizeSum = g.Sum(x => x.Size)
|
||||||
}).FirstOrDefault().SizeSum;
|
}).FirstOrDefault();
|
||||||
var AllSum = (from x in q
|
var FieldSum= (FieldSumModel != null) ? FieldSumModel.SizeSum : 0;
|
||||||
|
var AllSumModel = (from x in q
|
||||||
group x by x.PipelineId into g
|
group x by x.PipelineId into g
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
SizeSum = g.Sum(x => x.Size)
|
SizeSum = g.Sum(x => x.Size)
|
||||||
}).FirstOrDefault().SizeSum;
|
}).FirstOrDefault();
|
||||||
|
var AllSum = (AllSumModel != null) ? AllSumModel.SizeSum : 0;
|
||||||
|
|
||||||
proSum = (proSum != null) ? proSum : 0;
|
proSum = (proSum != null) ? proSum : 0;
|
||||||
FieldSum = (FieldSum != null) ? FieldSum : 0;
|
FieldSum = (FieldSum != null) ? FieldSum : 0;
|
||||||
ShopSumSize = proSum.ToString();
|
ShopSumSize = proSum.ToString();
|
||||||
|
|||||||
@@ -61,6 +61,8 @@
|
|||||||
<f:Button ID="Button1" ToolTip="重置" Icon="ArrowUndo" runat="server" OnClick="btnReset_Click" Text="重置">
|
<f:Button ID="Button1" ToolTip="重置" Icon="ArrowUndo" runat="server" OnClick="btnReset_Click" Text="重置">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||||
|
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" runat="server" Text="新增"
|
||||||
|
></f:Button>
|
||||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp" Text="导出"
|
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp" Text="导出"
|
||||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
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);
|
BLL.DepartService.InitDepartDropDownList(this.drpDepartId, false);
|
||||||
|
|
||||||
GetButtonPower();
|
GetButtonPower();
|
||||||
@@ -62,6 +62,62 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void BindGrid()
|
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<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
|
||||||
|
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
|
#endregion
|
||||||
@@ -257,7 +313,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
{
|
{
|
||||||
if (buttonList.Contains(Const.BtnAdd))
|
if (buttonList.Contains(Const.BtnAdd))
|
||||||
{
|
{
|
||||||
//btnNew.Hidden = false;
|
btnNew.Hidden = false;
|
||||||
}
|
}
|
||||||
if (buttonList.Contains(Const.BtnModify))
|
if (buttonList.Contains(Const.BtnModify))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -131,6 +131,15 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Button Button1;
|
protected global::FineUIPro.Button Button1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnNew 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnNew;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnOut 控件。
|
/// btnOut 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head runat="server">
|
<head runat="server">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<title></title>
|
<title></title>
|
||||||
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
|
||||||
</head>
|
</head>
|
||||||
@@ -15,95 +15,83 @@
|
|||||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||||
<Rows>
|
<Rows>
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtEPCCode" runat="server" Label="总承包合同编号" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtProjectShortName" runat="server" Label="项目名称" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtProjectCode" runat="server" Label="项目代码" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:NumberBox ID="txtIsOnLine" runat="server" Label="线上或线下" NoDecimal="true" NoNegative="true" >
|
|
||||||
</f:NumberBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtBidType" runat="server" Label="招标方式" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtActionPlanCode" runat="server" Label="实施计划编号" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtBidDocumentsCode" runat="server" Label="招标文件编号" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtBidProject" runat="server" Label="招标工程" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtShortListApprovalCode" runat="server" Label="短名单审批表" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtProposedInviter" runat="server" Label="拟邀请单位" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:DatePicker runat="server" Label="发标时间" ID="txtBidding_SendTime"></f:DatePicker>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:DatePicker runat="server" Label="开标时间" ID="txtBidding_StartTime"></f:DatePicker>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtApprovePersonFormCode" runat="server" Label="评委名单审批表编号" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtBidWinner" runat="server" Label="中标单位" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
<f:FormRow>
|
|
||||||
<Items>
|
|
||||||
<f:TextBox ID="txtSetSubReviewCode" runat="server" Label="确定中标人审批表编号" MaxLength="200" >
|
|
||||||
</f:TextBox>
|
|
||||||
</Items>
|
|
||||||
</f:FormRow>
|
|
||||||
|
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="DropSetSubReviewCode" runat="server" Label="确定中标人审批表编号" ShowRedStar="true"
|
||||||
|
Required="true" AutoSelectFirstItem="false" OnSelectedIndexChanged="DropSetSubReviewCode_SelectedIndexChanged" LabelAlign="Right" AutoPostBack="true" LabelWidth="140px">
|
||||||
|
</f:DropDownList>
|
||||||
|
<f:CheckBox ID="cbIsOnLine" ShowLabel="false" runat="server" Text="线上或线下" DisplayType="Switch" Checked="true">
|
||||||
|
</f:CheckBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtEPCCode" runat="server" Label="总承包合同编号" Readonly="true" Enabled="false">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtProjectShortName" runat="server" Label="项目名称" Readonly="true" Enabled="false">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox ID="txtProjectCode" runat="server" Label="项目代码" Readonly="true" Enabled="false">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtActionPlanCode" runat="server" Label="实施计划编号" Readonly="true" Enabled="false">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox ID="txtBidDocumentsCode" runat="server" Label="招标文件编号" Readonly="true" Enabled="false">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtBidType" runat="server" Label="招标方式" Readonly="true" Enabled="false">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox ID="txtBidProject" runat="server" Label="招标工程" Readonly="true" Enabled="false">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox runat="server" Label="发标时间" ID="txtBidding_SendTime" Readonly="true" Enabled="false"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox runat="server" Label="开标时间" ID="txtBidding_StartTime" Readonly="true" Enabled="false"></f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtApprovePersonFormCode" runat="server" Label="评委名单审批表编号">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:TextBox ID="txtBidWinner" runat="server" Label="中标单位">
|
||||||
|
</f:TextBox>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtShortListApprovalCode" runat="server" Label="短名单审批表">
|
||||||
|
</f:TextBox>
|
||||||
|
|
||||||
|
<f:Button ID="btnAttachUrl_Remark" Text="中标通知书" ToolTip="附件" Icon="TableCell" runat="server"
|
||||||
|
OnClick="btnAttachUrl_Remark_Click" ValidateForms="SimpleForm1">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtProposedInviter" runat="server" Label="拟邀请单位">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:Button ID="btnAttachUrl" Text="中标单位投标文件" ToolTip="附件" Icon="TableCell" runat="server"
|
||||||
|
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
</Rows>
|
</Rows>
|
||||||
<Toolbars>
|
<Toolbars>
|
||||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||||
@@ -112,7 +100,7 @@
|
|||||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ValidateForms="SimpleForm1"
|
||||||
OnClick="btnSave_Click">
|
OnClick="btnSave_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose">
|
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
</Items>
|
</Items>
|
||||||
</f:Toolbar>
|
</f:Toolbar>
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
if (!IsPostBack)
|
if (!IsPostBack)
|
||||||
{
|
{
|
||||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||||
|
BLL.PHTGL_SetSubReviewService.InitGetSetSubCompleteDropDownList(DropSetSubReviewCode, this.CurrUser.PersonId, this.CurrUser.LoginProjectId, false);
|
||||||
////权限按钮方法
|
////权限按钮方法
|
||||||
this.GetButtonPower();
|
this.GetButtonPower();
|
||||||
this.BidDocumentsStandingBookId = Request.Params["BidDocumentsStandingBookId"];
|
this.BidDocumentsStandingBookId = Request.Params["BidDocumentsStandingBookId"];
|
||||||
@@ -41,31 +42,13 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
Model.PHTGL_BidDocumentsStandingBook model = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(this.BidDocumentsStandingBookId);
|
Model.PHTGL_BidDocumentsStandingBook model = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(this.BidDocumentsStandingBookId);
|
||||||
if (model != null)
|
if (model != null)
|
||||||
{
|
{
|
||||||
this.txtEPCCode.Text = model.EPCCode;
|
DropSetSubReviewCode.SelectedValue = model.SetSubReviewCode;
|
||||||
this.txtProjectShortName.Text = model.ProjectShortName;
|
cbIsOnLine.Checked = model.IsOnLine==1?true:false;
|
||||||
this.txtProjectCode.Text = model.ProjectCode;
|
txtShortListApprovalCode.Text= model.ShortListApprovalCode;
|
||||||
if (model.IsOnLine.HasValue)
|
txtProposedInviter.Text=model.ProposedInviter;
|
||||||
{
|
txtApprovePersonFormCode.Text= model.ApprovePersonFormCode;
|
||||||
this.txtIsOnLine.Text = model.IsOnLine.Value.ToString();
|
txtBidWinner.Text= model.BidWinner;
|
||||||
}
|
DropSetSubReviewCode_SelectedIndexChanged(null,null);
|
||||||
this.txtBidType.Text = model.BidType;
|
|
||||||
this.txtActionPlanCode.Text = model.ActionPlanCode;
|
|
||||||
this.txtBidDocumentsCode.Text = model.BidDocumentsCode;
|
|
||||||
this.txtBidProject.Text = model.BidProject;
|
|
||||||
this.txtShortListApprovalCode.Text = model.ShortListApprovalCode;
|
|
||||||
this.txtProposedInviter.Text = model.ProposedInviter;
|
|
||||||
if (model.Bidding_SendTime != null)
|
|
||||||
{
|
|
||||||
this.txtBidding_SendTime.Text = string.Format("{0:yyyy-MM-dd}", model.Bidding_SendTime);
|
|
||||||
}
|
|
||||||
if (model.Bidding_StartTime != null)
|
|
||||||
{
|
|
||||||
this.txtBidding_StartTime.Text = string.Format("{0:yyyy-MM-dd}", model.Bidding_StartTime);
|
|
||||||
}
|
|
||||||
this.txtApprovePersonFormCode.Text = model.ApprovePersonFormCode;
|
|
||||||
this.txtBidWinner.Text = model.BidWinner;
|
|
||||||
this.txtSetSubReviewCode.Text = model.SetSubReviewCode;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -79,31 +62,33 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
protected void btnSave_Click(object sender, EventArgs e)
|
protected void btnSave_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Model.PHTGL_BidDocumentsStandingBook table = new Model.PHTGL_BidDocumentsStandingBook();
|
Model.PHTGL_BidDocumentsStandingBook table = new Model.PHTGL_BidDocumentsStandingBook();
|
||||||
table.EPCCode = this.txtEPCCode.Text;
|
table.IsOnLine = cbIsOnLine.Checked ? 1 : 0 ;
|
||||||
table.ProjectShortName = this.txtProjectShortName.Text;
|
table.SetSubReviewCode = this.DropSetSubReviewCode.SelectedValue;
|
||||||
table.ProjectCode = this.txtProjectCode.Text;
|
|
||||||
table.IsOnLine = Funs.GetNewInt(this.txtIsOnLine.Text);
|
|
||||||
table.BidType = this.txtBidType.Text;
|
|
||||||
table.ActionPlanCode = this.txtActionPlanCode.Text;
|
|
||||||
table.BidDocumentsCode = this.txtBidDocumentsCode.Text;
|
|
||||||
table.BidProject = this.txtBidProject.Text;
|
|
||||||
table.ShortListApprovalCode = this.txtShortListApprovalCode.Text;
|
table.ShortListApprovalCode = this.txtShortListApprovalCode.Text;
|
||||||
table.ProposedInviter = this.txtProposedInviter.Text;
|
table.ProposedInviter = this.txtProposedInviter.Text;
|
||||||
table.Bidding_SendTime = this.txtBidding_SendTime.SelectedDate;
|
|
||||||
table.Bidding_StartTime = this.txtBidding_StartTime.SelectedDate;
|
|
||||||
table.ApprovePersonFormCode = this.txtApprovePersonFormCode.Text;
|
table.ApprovePersonFormCode = this.txtApprovePersonFormCode.Text;
|
||||||
table.BidWinner = this.txtBidWinner.Text;
|
table.BidWinner = this.txtBidWinner.Text;
|
||||||
table.SetSubReviewCode = this.txtSetSubReviewCode.Text;
|
|
||||||
if (string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
|
if (string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
|
||||||
{
|
{
|
||||||
table.BidDocumentsStandingBookId = SQLHelper.GetNewID(typeof(Model.PHTGL_BidDocumentsStandingBook));
|
table.BidDocumentsStandingBookId = SQLHelper.GetNewID(typeof(Model.PHTGL_BidDocumentsStandingBook));
|
||||||
|
BidDocumentsStandingBookId = table.BidDocumentsStandingBookId;
|
||||||
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
|
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
|
var model= BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(BidDocumentsStandingBookId);
|
||||||
BLL.BidDocStandingBookService.UpdatePHTGL_BidDocumentsStandingBook(table);
|
if (model!=null)
|
||||||
|
{
|
||||||
|
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
|
||||||
|
BLL.BidDocStandingBookService.UpdatePHTGL_BidDocumentsStandingBook(table);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
|
||||||
|
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
|
||||||
}
|
}
|
||||||
@@ -127,5 +112,59 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region 附件上传
|
||||||
|
/// <summary>
|
||||||
|
/// 上传附件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnAttachUrl_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
|
||||||
|
{
|
||||||
|
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}", this.BidDocumentsStandingBookId+ "-Notice", BLL.Const.BidDocumentsStandingBookMenuId)));
|
||||||
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 情况说明附件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnAttachUrl_Remark_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
|
||||||
|
{
|
||||||
|
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
|
||||||
|
}
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}", this.BidDocumentsStandingBookId+ "-Bidder", BLL.Const.BidDocumentsStandingBookMenuId)));
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
protected void DropSetSubReviewCode_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
var _SetSub= BLL.PHTGL_SetSubReviewService.GetPHTGL_SetSubReviewBySetSubReviewCode(DropSetSubReviewCode.SelectedValue);
|
||||||
|
var _BidApprove= PHTGL_BidApproveUserReviewService.GetPHTGL_BidApproveUserReviewById(_SetSub.ApproveUserReviewID);
|
||||||
|
var _BidDoc = BLL.PHTGL_BidDocumentsReviewService.GetPHTGL_BidDocumentsReviewById(_BidApprove.BidDocumentsReviewId);
|
||||||
|
var _ActPlan = BLL.PHTGL_ActionPlanFormationService.GetPHTGL_ActionPlanFormationById(_BidDoc.ActionPlanID);
|
||||||
|
var _Project=BLL.ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
|
||||||
|
|
||||||
|
|
||||||
|
this.txtEPCCode.Text = _ActPlan.EPCCode;
|
||||||
|
this.txtProjectShortName.Text = _Project.ShortName;
|
||||||
|
this.txtProjectCode.Text = _Project.ProjectCode;
|
||||||
|
this.txtBidType.Text = _BidDoc.BidType;
|
||||||
|
this.txtBidProject.Text = _ActPlan.BidProject;
|
||||||
|
this.txtActionPlanCode.Text = _ActPlan.ActionPlanCode;
|
||||||
|
this.txtBidDocumentsCode.Text = _BidDoc.BidDocumentsCode;
|
||||||
|
if (_BidDoc.Bidding_SendTime != null)
|
||||||
|
{
|
||||||
|
this.txtBidding_SendTime.Text = string.Format("{0:yyyy-MM-dd}", _BidDoc.Bidding_SendTime);
|
||||||
|
}
|
||||||
|
if (_BidDoc.Bidding_StartTime != null)
|
||||||
|
{
|
||||||
|
this.txtBidding_StartTime.Text = string.Format("{0:yyyy-MM-dd}", _BidDoc.Bidding_StartTime);
|
||||||
|
}
|
||||||
|
//this.txtApprovePersonFormCode.Text = model.ApprovePersonFormCode;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+58
-40
@@ -41,6 +41,24 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Form SimpleForm1;
|
protected global::FineUIPro.Form SimpleForm1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// DropSetSubReviewCode 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList DropSetSubReviewCode;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// cbIsOnLine 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.CheckBox cbIsOnLine;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtEPCCode 控件。
|
/// txtEPCCode 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -68,24 +86,6 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.TextBox txtProjectCode;
|
protected global::FineUIPro.TextBox txtProjectCode;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// txtIsOnLine 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.NumberBox txtIsOnLine;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// txtBidType 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.TextBox txtBidType;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtActionPlanCode 控件。
|
/// txtActionPlanCode 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -104,6 +104,15 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.TextBox txtBidDocumentsCode;
|
protected global::FineUIPro.TextBox txtBidDocumentsCode;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtBidType 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtBidType;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtBidProject 控件。
|
/// txtBidProject 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -113,24 +122,6 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.TextBox txtBidProject;
|
protected global::FineUIPro.TextBox txtBidProject;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// txtShortListApprovalCode 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.TextBox txtShortListApprovalCode;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// txtProposedInviter 控件。
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// 自动生成的字段。
|
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
|
||||||
/// </remarks>
|
|
||||||
protected global::FineUIPro.TextBox txtProposedInviter;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtBidding_SendTime 控件。
|
/// txtBidding_SendTime 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -138,7 +129,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.DatePicker txtBidding_SendTime;
|
protected global::FineUIPro.TextBox txtBidding_SendTime;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtBidding_StartTime 控件。
|
/// txtBidding_StartTime 控件。
|
||||||
@@ -147,7 +138,7 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.DatePicker txtBidding_StartTime;
|
protected global::FineUIPro.TextBox txtBidding_StartTime;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtApprovePersonFormCode 控件。
|
/// txtApprovePersonFormCode 控件。
|
||||||
@@ -168,13 +159,40 @@ namespace FineUIPro.Web.PHTGL.Filing
|
|||||||
protected global::FineUIPro.TextBox txtBidWinner;
|
protected global::FineUIPro.TextBox txtBidWinner;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtSetSubReviewCode 控件。
|
/// txtShortListApprovalCode 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.TextBox txtSetSubReviewCode;
|
protected global::FineUIPro.TextBox txtShortListApprovalCode;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnAttachUrl_Remark 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnAttachUrl_Remark;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtProposedInviter 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtProposedInviter;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnAttachUrl 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnAttachUrl;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Toolbar1 控件。
|
/// Toolbar1 控件。
|
||||||
|
|||||||
Reference in New Issue
Block a user