2023-03-29 001 合同招标文件台账修改

This commit is contained in:
2023-03-29 16:51:16 +08:00
parent 8b0c9fdef0
commit eb3a6ac1fa
20 changed files with 334 additions and 77 deletions
@@ -142,6 +142,12 @@
<f:RenderField ColumnID="SetSubReviewCode" DataField="SetSubReviewCode" Width="150px" FieldType="String" HeaderText="确定中标人审批表编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="BidNoticeCode" DataField="BidNoticeCode" Width="150px" FieldType="String" HeaderText="中标通知书编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="BidUnitFileCode" DataField="BidUnitFileCode" Width="150px" FieldType="String" HeaderText="投标文件编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<%-- <f:RenderField ColumnID="BidWinningNotice" DataField="BidWinningNotice" Width="150px" FieldType="String" HeaderText="中标通知书" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
@@ -26,6 +26,20 @@ namespace FineUIPro.Web.PHTGL.Filing
}
}
#endregion
/// <summary>
/// 级别,1 为项目级
/// </summary>
public string Type
{
get
{
return (string)ViewState["Type"];
}
set
{
ViewState["Type"] = value;
}
}
#region
/// <summary>
/// 加载页面
@@ -37,22 +51,24 @@ namespace FineUIPro.Web.PHTGL.Filing
if (!IsPostBack)
{
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
btnNew.OnClientClick = Window1.GetShowReference("BidDocumentsStandingBookEdit.aspx", "基本信息") + "return false;";
BLL.DepartService.InitDepartDropDownList(this.drpDepartId, false);
Type = Request.Params["Type"];
GetButtonPower();
this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
if (Type=="1")
{
this.ProjectId = Request.Params["projectId"];
btnNew.OnClientClick = Window1.GetShowReference("BidDocumentsStandingBookEdit.aspx?Type=1", "基本信息") + "return false;";
this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{
this.ProjectId = Request.Params["projectId"];
}
}
else
{
btnNew.OnClientClick = Window1.GetShowReference("BidDocumentsStandingBookEdit.aspx", "基本信息") + "return false;";
//this.drpStates.DataValueField = "Value";
//drpStates.DataTextField = "Text";
//drpStates.DataSource = BLL.DropListService.GetState();
//drpStates.DataBind();
//Funs.FineUIPleaseSelect(drpStates);
}
BindGrid();
}
@@ -64,11 +80,15 @@ namespace FineUIPro.Web.PHTGL.Filing
private void BindGrid()
{
Model.PHTGL_BidDocumentsStandingBook _BidDocumentsStandingBook = new Model.PHTGL_BidDocumentsStandingBook();
if (!(this.CurrUser.PersonId == Const.sysglyId || this.CurrUser.PersonId == Const.hfnbdId))
if (Type=="1")
{
_BidDocumentsStandingBook.ProjectId = this.CurrUser.LoginProjectId;
if (!(this.CurrUser.PersonId == Const.sysglyId || this.CurrUser.PersonId == Const.hfnbdId))
{
_BidDocumentsStandingBook.ProjectId = this.CurrUser.LoginProjectId;
}
}
if (!string.IsNullOrEmpty(drpDepartId.SelectedValue) )
{
@@ -195,7 +215,16 @@ namespace FineUIPro.Web.PHTGL.Filing
var model=BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(id);
if (model != null)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BidDocumentsStandingBookEdit.aspx?BidDocumentsStandingBookId={0}", id, "编辑 - ")));
if (Type=="1")
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BidDocumentsStandingBookEdit.aspx?BidDocumentsStandingBookId={0}?Type=1", id, "编辑 - ")));
}
else
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BidDocumentsStandingBookEdit.aspx?BidDocumentsStandingBookId={0}", id, "编辑 - ")));
}
}
}
protected void btnEdit_Click(object sender, EventArgs e)
@@ -282,7 +311,7 @@ namespace FineUIPro.Web.PHTGL.Filing
{
return;
}
var buttonList = CommonService.GetAllButtonList(CurrUser.LoginProjectId, CurrUser.PersonId, Const.BidDocumentsStandingBookMenuId);
var buttonList = CommonService.GetAllButtonList(CurrUser.LoginProjectId, CurrUser.PersonId, Const.ProjectBidDocumentsStandingBookMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(Const.BtnAdd))
@@ -367,7 +396,16 @@ namespace FineUIPro.Web.PHTGL.Filing
protected void btnImport_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("BidDocumentsStandingBookIn.aspx?", "导入 - ")));
if (Type=="1")
{
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("BidDocumentsStandingBookIn.aspx?Type=1", "导入 - ")));
}
else
{
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("BidDocumentsStandingBookIn.aspx", "导入 - ")));
}
}
public string ConvertState(object State)
@@ -421,13 +459,13 @@ namespace FineUIPro.Web.PHTGL.Filing
}
// BLL.LogService.AddSys_Log(this.CurrUser, p.ContractName, p.ContractId, BLL.Const.ContractMenuId, BLL.Const.BtnDelete);
BLL.BidDocStandingBookService.DeletePHTGL_BidDocumentsStandingBookById(rowID);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidUnit", Const.BidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidNotice", Const.BidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ActionPlan", Const.BidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidDocuments", Const.BidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ApprovePersonForm", Const.BidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-SetSubReview", Const.BidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID +"-ShortListApproval", Const.BidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidUnit", Const.ProjectBidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidNotice", Const.ProjectBidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ActionPlan", Const.ProjectBidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-BidDocuments", Const.ProjectBidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-ApprovePersonForm", Const.ProjectBidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID + "-SetSubReview", Const.ProjectBidDocumentsStandingBookMenuId);
AttachFileService.DeleteAttachFile(Funs.RootPath, rowID +"-ShortListApproval", Const.ProjectBidDocumentsStandingBookMenuId);
}
}
}
@@ -56,8 +56,9 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtProposedInviter" runat="server" Label="拟邀请单位" Required="true" >
</f:TextBox>
<f:TextArea ID="txtProposedInviter" runat="server" Label="拟邀请单位" Required="true"
AutoGrowHeight="true" AutoGrowHeightMin="100" AutoGrowHeightMax="600">
</f:TextArea>
<f:TextBox ID="txtBidWinner" runat="server" Label="中标单位" Required="true" >
</f:TextBox>
</Items>
@@ -84,7 +85,7 @@
<Items>
<f:TextBox ID="txtSetSubReviewCode" runat="server" Label="确定中标人审批表编号" Required="true" >
</f:TextBox>
<f:Button ID="btnAttachUrl_SetSubReviewCode" Text="确定中标人审批文件" ToolTip="附件" Icon="TableCell" runat="server"
<f:Button ID="btnAttachUrl_SetSubReviewCode" Text="确定中标人审批文件及评标报告" ToolTip="附件" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_SetSubReviewCode_Click" ValidateForms="SimpleForm1">
</f:Button>
</Items>
@@ -100,24 +101,28 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtBidNoticeCode" runat="server" Label="中标通知书编号" Required="true" >
</f:TextBox>
<f:Button ID="btnAttachUrl_BidNotice" Text="中标通知书" ToolTip="附件" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_BidNotice_Click" ValidateForms="SimpleForm1">
</f:Button>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtBidUnitFileCode" runat="server" Label="投标文件编号" Required="true" >
</f:TextBox>
<f:Button ID="btnAttachUrl_BidUnit" Text="中标单位投标及澄清文件" ToolTip="附件" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_BidUnit_Click" ValidateForms="SimpleForm1">
</f:Button>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnAttachUrl_BidNotice" Text="中标通知书" ToolTip="附件" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_BidNotice_Click" ValidateForms="SimpleForm1">
</f:Button>
<f:Button ID="btnAttachUrl_BidUnit" Text="中标单位投标文件" ToolTip="附件" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_BidUnit_Click" ValidateForms="SimpleForm1">
</f:Button>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存"
OnClick="btnSave_Click">
@@ -27,6 +27,17 @@ namespace FineUIPro.Web.PHTGL.Filing
ViewState["BidDocumentsStandingBookId"] = value;
}
}
public string Type
{
get
{
return (string)ViewState["Type"];
}
set
{
ViewState["Type"] = value;
}
}
#endregion
protected void Page_Load(object sender, EventArgs e)
@@ -37,6 +48,8 @@ namespace FineUIPro.Web.PHTGL.Filing
//BLL.PHTGL_SetSubReviewService.InitGetSetSubCompleteDropDownList(DropSetSubReviewCode, this.CurrUser.PersonId, this.CurrUser.LoginProjectId, false);
////权限按钮方法
this.BidDocumentsStandingBookId = Request.Params["BidDocumentsStandingBookId"];
Type = Request.Params["Type"];
this.GetButtonPower();
if (!string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
@@ -59,6 +72,8 @@ namespace FineUIPro.Web.PHTGL.Filing
this.txtApprovePersonFormCode.Text = model.ApprovePersonFormCode;
this.txtBidWinner.Text = model.BidWinner;
this.txtSetSubReviewCode.Text = model.SetSubReviewCode;
this.txtBidNoticeCode.Text=model.BidNoticeCode;
this.txtBidUnitFileCode.Text = model.BidUnitFileCode;
}
}
}
@@ -87,9 +102,15 @@ namespace FineUIPro.Web.PHTGL.Filing
table.Bidding_StartTime = this.txtBidding_StartTime.Text;
table.ApprovePersonFormCode = this.txtApprovePersonFormCode.Text;
table.BidWinner = this.txtBidWinner.Text;
table.SetSubReviewCode = this.txtSetSubReviewCode.Text;
table.ProjectId = this.CurrUser.LoginProjectId;
table.SetSubReviewCode = this.txtSetSubReviewCode.Text;
table.State = 0;
table.BidNoticeCode=this.txtBidNoticeCode.Text;
table.BidUnitFileCode=this.txtBidUnitFileCode.Text;
if (Type == "1")
{
table.ProjectId = this.CurrUser.LoginProjectId;
}
if (string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
{
table.BidDocumentsStandingBookId = SQLHelper.GetNewID(typeof(Model.PHTGL_BidDocumentsStandingBook));
@@ -116,37 +137,37 @@ namespace FineUIPro.Web.PHTGL.Filing
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidUnit", BLL.Const.BidDocumentsStandingBookMenuId))
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidUnit", BLL.Const.ProjectBidDocumentsStandingBookMenuId))
{
ShowNotify("未上传中标单位投标文件,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidNotice", BLL.Const.BidDocumentsStandingBookMenuId))
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidNotice", BLL.Const.ProjectBidDocumentsStandingBookMenuId))
{
ShowNotify("未上传中标通知书,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ActionPlan", BLL.Const.BidDocumentsStandingBookMenuId))
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ActionPlan", BLL.Const.ProjectBidDocumentsStandingBookMenuId))
{
ShowNotify("未上传实施计划文件,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidDocuments", BLL.Const.BidDocumentsStandingBookMenuId))
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidDocuments", BLL.Const.ProjectBidDocumentsStandingBookMenuId))
{
ShowNotify("未上传招标文件,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ApprovePersonForm", BLL.Const.BidDocumentsStandingBookMenuId))
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ApprovePersonForm", BLL.Const.ProjectBidDocumentsStandingBookMenuId))
{
ShowNotify("未上传评委名单审批表文件,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-SetSubReview", BLL.Const.BidDocumentsStandingBookMenuId))
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-SetSubReview", BLL.Const.ProjectBidDocumentsStandingBookMenuId))
{
ShowNotify("未上传确定中标人审批表文件,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ShortListApproval", BLL.Const.BidDocumentsStandingBookMenuId))
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ShortListApproval", BLL.Const.ProjectBidDocumentsStandingBookMenuId))
{
ShowNotify("未上传短名单审批表文件,无法提交!", MessageBoxIcon.Warning);
return;
@@ -167,8 +188,14 @@ namespace FineUIPro.Web.PHTGL.Filing
table.ApprovePersonFormCode = this.txtApprovePersonFormCode.Text;
table.BidWinner = this.txtBidWinner.Text;
table.SetSubReviewCode = this.txtSetSubReviewCode.Text;
table.ProjectId = this.CurrUser.LoginProjectId;
table.State = 1;
table.BidNoticeCode = this.txtBidNoticeCode.Text;
table.BidUnitFileCode = this.txtBidUnitFileCode.Text;
if (Type == "1")
{
table.ProjectId = this.CurrUser.LoginProjectId;
}
if (string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
{
table.BidDocumentsStandingBookId = SQLHelper.GetNewID(typeof(Model.PHTGL_BidDocumentsStandingBook));
@@ -228,7 +255,7 @@ namespace FineUIPro.Web.PHTGL.Filing
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
this.BidDocumentsStandingBookId+ "-BidUnit", BLL.Const.BidDocumentsStandingBookMenuId)));
this.BidDocumentsStandingBookId+ "-BidUnit", BLL.Const.ProjectBidDocumentsStandingBookMenuId)));
}
/// <summary>
/// 中标通知书
@@ -242,7 +269,7 @@ namespace FineUIPro.Web.PHTGL.Filing
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
this.BidDocumentsStandingBookId+ "-BidNotice", BLL.Const.BidDocumentsStandingBookMenuId)));
this.BidDocumentsStandingBookId+ "-BidNotice", BLL.Const.ProjectBidDocumentsStandingBookMenuId)));
}
/// <summary>
/// 实施计划文件
@@ -256,7 +283,7 @@ namespace FineUIPro.Web.PHTGL.Filing
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
this.BidDocumentsStandingBookId + "-ActionPlan", BLL.Const.BidDocumentsStandingBookMenuId)));
this.BidDocumentsStandingBookId + "-ActionPlan", BLL.Const.ProjectBidDocumentsStandingBookMenuId)));
}
/// <summary>
@@ -272,7 +299,7 @@ namespace FineUIPro.Web.PHTGL.Filing
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
this.BidDocumentsStandingBookId + "-BidDocuments", BLL.Const.BidDocumentsStandingBookMenuId)));
this.BidDocumentsStandingBookId + "-BidDocuments", BLL.Const.ProjectBidDocumentsStandingBookMenuId)));
}
/// <summary>
/// 评委名单审批表文件
@@ -287,7 +314,7 @@ namespace FineUIPro.Web.PHTGL.Filing
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
this.BidDocumentsStandingBookId + "-ApprovePersonForm", BLL.Const.BidDocumentsStandingBookMenuId)));
this.BidDocumentsStandingBookId + "-ApprovePersonForm", BLL.Const.ProjectBidDocumentsStandingBookMenuId)));
}
/// <summary>
/// 确定中标人审批表文件
@@ -302,7 +329,7 @@ namespace FineUIPro.Web.PHTGL.Filing
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
this.BidDocumentsStandingBookId + "-SetSubReview", BLL.Const.BidDocumentsStandingBookMenuId)));
this.BidDocumentsStandingBookId + "-SetSubReview", BLL.Const.ProjectBidDocumentsStandingBookMenuId)));
}
/// <summary>
/// 短名单审批表文件
@@ -316,7 +343,7 @@ namespace FineUIPro.Web.PHTGL.Filing
BidDocumentsStandingBookId = Guid.NewGuid().ToString();
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
this.BidDocumentsStandingBookId + "-ShortListApproval", BLL.Const.BidDocumentsStandingBookMenuId)));
this.BidDocumentsStandingBookId + "-ShortListApproval", BLL.Const.ProjectBidDocumentsStandingBookMenuId)));
}
#endregion
@@ -138,7 +138,7 @@ namespace FineUIPro.Web.PHTGL.Filing
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtProposedInviter;
protected global::FineUIPro.TextArea txtProposedInviter;
/// <summary>
/// txtBidWinner 控件。
@@ -222,13 +222,13 @@ namespace FineUIPro.Web.PHTGL.Filing
protected global::FineUIPro.Button btnAttachUrl_ShortListApprovalCode;
/// <summary>
/// Toolbar1 控件。
/// txtBidNoticeCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
protected global::FineUIPro.TextBox txtBidNoticeCode;
/// <summary>
/// btnAttachUrl_BidNotice 控件。
@@ -239,6 +239,15 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </remarks>
protected global::FineUIPro.Button btnAttachUrl_BidNotice;
/// <summary>
/// txtBidUnitFileCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtBidUnitFileCode;
/// <summary>
/// btnAttachUrl_BidUnit 控件。
/// </summary>
@@ -248,6 +257,15 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </remarks>
protected global::FineUIPro.Button btnAttachUrl_BidUnit;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// btnSave 控件。
/// </summary>
@@ -20,10 +20,10 @@
<f:Button ID="btnDownLoad" runat="server" Icon="ApplicationGo" ToolTip="下载模板" Text="下载模板" OnClick="btnDownLoad_Click" EnablePostBack="true" EnableAjax="false">
</f:Button>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnAudit" Icon="ApplicationEdit" runat="server" ToolTip="审核" Text="审核" ValidateForms="SimpleForm1"
<f:Button ID="btnAudit" Icon="ApplicationEdit" runat="server" ToolTip="导入" Text="导入" ValidateForms="SimpleForm1"
OnClick="btnAudit_Click">
</f:Button>
<f:Button ID="btnImport" Icon="ApplicationGet" runat="server" ToolTip="导入" Text="导入" ValidateForms="SimpleForm1"
<f:Button ID="btnImport" Icon="ApplicationGet" runat="server" ToolTip="导入" Text="导入" ValidateForms="SimpleForm1" Hidden="true"
OnClick="btnImport_Click">
</f:Button>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="提交" Text="提交" ValidateForms="SimpleForm1"
@@ -97,6 +97,13 @@
<f:RenderField ColumnID="SetSubReviewCode" DataField="SetSubReviewCode" Width="150px" FieldType="String" HeaderText="确定中标人审批表编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="BidNoticeCode" DataField="BidNoticeCode" Width="150px" FieldType="String" HeaderText="中标通知书编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="BidUnitFileCode" DataField="BidUnitFileCode" Width="150px" FieldType="String" HeaderText="投标文件编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
</Columns>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
@@ -29,7 +29,17 @@ namespace FineUIPro.Web.PHTGL.Filing
/// 错误集合
/// </summary>
public static string errorInfos = string.Empty;
public string Type
{
get
{
return (string)ViewState["Type"];
}
set
{
ViewState["Type"] = value;
}
}
#endregion
#region
@@ -48,6 +58,7 @@ namespace FineUIPro.Web.PHTGL.Filing
BidDocStandingBookList.Clear();
}
errorInfos = string.Empty;
Type = Request.Params["Type"];
}
}
@@ -63,6 +74,8 @@ namespace FineUIPro.Web.PHTGL.Filing
{
try
{
Grid1.DataSource = null;
Grid1.DataBind();
if (this.fuAttachUrl.HasFile == false)
{
ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning);
@@ -93,6 +106,30 @@ namespace FineUIPro.Web.PHTGL.Filing
string filePath = initFullPath + this.hdFileName.Text;
this.fuAttachUrl.PostedFile.SaveAs(filePath);
ImportXlsToData(rootPath + initPath + this.hdFileName.Text);
if (string.IsNullOrEmpty(errorInfos))
{
if (!string.IsNullOrEmpty(this.hdFileName.Text))
{
if (BidDocStandingBookList.Count > 0)
{
this.Grid1.Hidden = false;
this.Grid1.DataIDField = "BidDocumentsStandingBookId";
this.Grid1.DataSource = BidDocStandingBookList;
this.Grid1.DataBind();
Grid1.RecordCount = BidDocStandingBookList.Count;
}
}
else
{
ShowNotify("请先审核要导入的文件!", MessageBoxIcon.Warning);
}
}
else
{
ShowNotify("请先将错误数据修正,再重新导入提交!", MessageBoxIcon.Warning);
}
}
catch (Exception ex)
{
@@ -163,7 +200,10 @@ namespace FineUIPro.Web.PHTGL.Filing
Model.PHTGL_BidDocumentsStandingBook _BidDocumentsStandingBook = new PHTGL_BidDocumentsStandingBook();
_BidDocumentsStandingBook.BidDocumentsStandingBookId = SQLHelper.GetNewID();
_BidDocumentsStandingBook.State = 0;
_BidDocumentsStandingBook.ProjectId = this.CurrUser.LoginProjectId;
if (Type=="1")
{
_BidDocumentsStandingBook.ProjectId = this.CurrUser.LoginProjectId;
}
_BidDocumentsStandingBook.EPCCode = pds[i].A;
_BidDocumentsStandingBook.ProjectShortName = pds[i].B;
_BidDocumentsStandingBook.ProjectCode = pds[i].C;
@@ -179,6 +219,8 @@ namespace FineUIPro.Web.PHTGL.Filing
_BidDocumentsStandingBook.ApprovePersonFormCode = pds[i].M;
_BidDocumentsStandingBook.BidWinner = pds[i].N;
_BidDocumentsStandingBook.SetSubReviewCode = pds[i].O;
_BidDocumentsStandingBook.BidNoticeCode= pds[i].P;
_BidDocumentsStandingBook.BidUnitFileCode= pds[i].Q;
BidDocStandingBookList.Add(_BidDocumentsStandingBook);
//if (col24 != null)