2023-03-24

This commit is contained in:
2023-03-24 15:57:37 +08:00
parent b1bdd30665
commit 06afe1aca0
22 changed files with 1373 additions and 273 deletions
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,17 @@
alter table PHTGL_BidDocumentsStandingBook alter column IsOnLine nvarchar(100)
alter table PHTGL_BidDocumentsStandingBook alter column Bidding_SendTime nvarchar(100)
alter table PHTGL_BidDocumentsStandingBook alter column Bidding_StartTime nvarchar(100)
alter table PHTGL_BidDocumentsStandingBook ADD ProjectId nvarchar(100)
alter table PHTGL_BidDocumentsStandingBook ADD State int
alter table AttachFile alter column ToKeyId nvarchar(100)
alter table AttachFile alter column AttachPath nvarchar(100)
GO
INSERT [Sys_ButtonToMenu] ([ButtonToMenuId],[MenuId],[ButtonName],[SortIndex])
VALUES ( N'024F85B5-E19C-4AE9-9605-4779B61F7CF4',N'11f4f882-28a9-4610-a657-6a58336097d2',N'ÐÞ¸Ä',2)
INSERT [Sys_ButtonToMenu] ([ButtonToMenuId],[MenuId],[ButtonName],[SortIndex])
VALUES ( N'BF0DC6A6-ED3B-4CCA-8BBD-A107B98807BA',N'11f4f882-28a9-4610-a657-6a58336097d2',N'ɾ³ý',3)
INSERT [Sys_ButtonToMenu] ([ButtonToMenuId],[MenuId],[ButtonName],[SortIndex])
VALUES ( N'26C1682B-67AC-4E7D-BEEF-0458668F4AC2',N'11f4f882-28a9-4610-a657-6a58336097d2',N'±£´æ',4)
INSERT [Sys_ButtonToMenu] ([ButtonToMenuId],[MenuId],[ButtonName],[SortIndex])
VALUES ( N'D2024122-FDB2-49A8-9128-35DB4B25A29B',N'11f4f882-28a9-4610-a657-6a58336097d2',N'Ôö¼Ó',1)
@@ -0,0 +1,7 @@
alter table PHTGL_BidDocumentsStandingBook alter column IsOnLine nvarchar(100)
alter table PHTGL_BidDocumentsStandingBook alter column Bidding_SendTime nvarchar(100)
alter table PHTGL_BidDocumentsStandingBook alter column Bidding_StartTime nvarchar(100)
alter table PHTGL_BidDocumentsStandingBook ADD ProjectId nvarchar(100)
alter table PHTGL_BidDocumentsStandingBook ADD State int
alter table AttachFile alter column ToKeyId nvarchar(100)
alter table AttachFile alter column AttachPath nvarchar(100)
@@ -137,6 +137,16 @@ INSERT [Sys_Menu] ([MenuId],[MenuName],[SortIndex],[SuperMenu],[MenuType],[IsOff
INSERT [Sys_Menu] ([MenuId],[MenuName],[Url],[SortIndex],[SuperMenu],[MenuType],[IsOffice],[IsEnd],[IsUsed])
VALUES ( N'11f4f882-28a9-4610-a657-6a58336097d2',N'招标工作台账',N'PHTGL/Filing/BidDocumentsStandingBook.aspx',30,N'79A6D6B1-E29F-4921-8867-142CEED7997B',N'Menu_PHTGL',0,1,1)
GO
INSERT [Sys_ButtonToMenu] ([ButtonToMenuId],[MenuId],[ButtonName],[SortIndex])
VALUES ( N'024F85B5-E19C-4AE9-9605-4779B61F7CF4',N'11f4f882-28a9-4610-a657-6a58336097d2',N'修改',2)
INSERT [Sys_ButtonToMenu] ([ButtonToMenuId],[MenuId],[ButtonName],[SortIndex])
VALUES ( N'BF0DC6A6-ED3B-4CCA-8BBD-A107B98807BA',N'11f4f882-28a9-4610-a657-6a58336097d2',N'删除',3)
INSERT [Sys_ButtonToMenu] ([ButtonToMenuId],[MenuId],[ButtonName],[SortIndex])
VALUES ( N'26C1682B-67AC-4E7D-BEEF-0458668F4AC2',N'11f4f882-28a9-4610-a657-6a58336097d2',N'保存',4)
INSERT [Sys_ButtonToMenu] ([ButtonToMenuId],[MenuId],[ButtonName],[SortIndex])
VALUES ( N'D2024122-FDB2-49A8-9128-35DB4B25A29B',N'11f4f882-28a9-4610-a657-6a58336097d2',N'增加',1)
GO
INSERT [Sys_Menu] ([MenuId],[MenuName],[Url],[SortIndex],[SuperMenu],[MenuType],[IsOffice],[IsEnd],[IsUsed])
VALUES ( N'dedaf6f6-af14-4e4e-9fc6-164aa808cab9',N'合同台账',N'PHTGL/Filing/ContractFile.aspx',40,N'79A6D6B1-E29F-4921-8867-142CEED7997B',N'Menu_PHTGL',0,1,1)
INSERT [Sys_Menu] ([MenuId],[MenuName],[Url],[SortIndex],[SuperMenu],[MenuType],[IsOffice],[IsEnd],[IsUsed])
+6
View File
@@ -4276,6 +4276,7 @@
/// </summary>
public const string Pipeline_ComponentPath = "File\\Excel\\DataIn\\组件管理二维码信息导入.xlsx";
#region
/// <summary>
/// 管道焊接工作记录
@@ -4354,6 +4355,11 @@
#endregion
#region Id
/// <summary>
/// 招标文件台账模板
/// </summary>
public const string BidDocumentsStandingBookIn = "File\\Excel\\DataIn\\BidDocumentsStandingBookIn.xlsx";
/// <summary>
/// 附件1
/// </summary>
@@ -1,4 +1,5 @@
using FineUIPro;
using MiniExcelLibs.Attributes;
using System;
using System.Collections;
using System.Collections.Generic;
@@ -39,8 +40,10 @@ namespace BLL
(string.IsNullOrEmpty(table.ProposedInviter) || x.ProposedInviter.Contains(table.ProposedInviter)) &&
(string.IsNullOrEmpty(table.ApprovePersonFormCode) || x.ApprovePersonFormCode.Contains(table.ApprovePersonFormCode)) &&
(string.IsNullOrEmpty(table.BidWinner) || x.BidWinner.Contains(table.BidWinner)) &&
(string.IsNullOrEmpty(table.SetSubReviewCode) || x.SetSubReviewCode.Contains(table.SetSubReviewCode))
select x
(string.IsNullOrEmpty(table.SetSubReviewCode) || x.SetSubReviewCode.Contains(table.SetSubReviewCode)) &&
(string.IsNullOrEmpty(table.ProjectId) || x.ProjectId.Contains(table.ProjectId))&&
(table.State == null||x.State==table.State)
select x
;
return q.ToList();
@@ -80,6 +83,8 @@ namespace BLL
x.ApprovePersonFormCode,
x.BidWinner,
x.SetSubReviewCode,
x.ProjectId,
x.State
};
}
@@ -112,6 +117,8 @@ namespace BLL
ApprovePersonFormCode = newtable.ApprovePersonFormCode,
BidWinner = newtable.BidWinner,
SetSubReviewCode = newtable.SetSubReviewCode,
ProjectId= newtable.ProjectId,
State=newtable.State,
};
db.PHTGL_BidDocumentsStandingBook.InsertOnSubmit(table);
db.SubmitChanges();
@@ -147,6 +154,8 @@ namespace BLL
table.ApprovePersonFormCode = newtable.ApprovePersonFormCode;
table.BidWinner = newtable.BidWinner;
table.SetSubReviewCode = newtable.SetSubReviewCode;
table.ProjectId=newtable.ProjectId;
table.State=newtable.State;
db.SubmitChanges();
}
@@ -173,4 +182,5 @@ namespace BLL
}
}
}
+8
View File
@@ -1158,6 +1158,7 @@
<Content Include="PHTGL\Filing\BidDocumentsFile.aspx" />
<Content Include="PHTGL\Filing\BidDocumentsStandingBook.aspx" />
<Content Include="PHTGL\Filing\BidDocumentsStandingBookEdit.aspx" />
<Content Include="PHTGL\Filing\BidDocumentsStandingBookIn.aspx" />
<Content Include="PHTGL\Filing\ContractFile.aspx" />
<Content Include="PHTGL\Filing\ContractStandingBook.aspx" />
<Content Include="PHTGL\Filing\Files.aspx" />
@@ -11736,6 +11737,13 @@
<Compile Include="PHTGL\Filing\BidDocumentsStandingBookEdit.aspx.designer.cs">
<DependentUpon>BidDocumentsStandingBookEdit.aspx</DependentUpon>
</Compile>
<Compile Include="PHTGL\Filing\BidDocumentsStandingBookIn.aspx.cs">
<DependentUpon>BidDocumentsStandingBookIn.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="PHTGL\Filing\BidDocumentsStandingBookIn.aspx.designer.cs">
<DependentUpon>BidDocumentsStandingBookIn.aspx</DependentUpon>
</Compile>
<Compile Include="PHTGL\Filing\ContractFile.aspx.cs">
<DependentUpon>ContractFile.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
@@ -112,13 +112,13 @@
DataField="WeldJointCode" SortField="WeldJointCode" FieldType="String" HeaderTextAlign="Center"
TextAlign="Left" Width="180px">
</f:RenderField>
<f:RenderField HeaderText="可焊焊工号" ColumnID="CanWelderCode"
<f:RenderField HeaderText="可焊焊工号" ColumnID="CanWelderCode" Hidden="true"
DataField="CanWelderCode" SortField="CanWelderCode" FieldType="String" HeaderTextAlign="Center"
TextAlign="Left" Width="300px">
</f:RenderField>
<f:RenderField HeaderText="可焊焊工ID" ColumnID="CanWelderId"
<%--<f:RenderField HeaderText="可焊焊工ID" ColumnID="CanWelderId"
DataField="CanWelderId" FieldType="String" Hidden="true">
</f:RenderField>
</f:RenderField>--%>
<f:RenderField HeaderText="盖面焊工" ColumnID="CoverWelderCode"
DataField="CoverWelderCode" FieldType="String" HeaderTextAlign="Center"
TextAlign="Left" Width="150px">
@@ -68,7 +68,7 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
{
List<Model.SpWeldingDailyItem> GetWeldingDailyItem = BLL.WeldingDailyService.GetWeldingDailyItem(this.WeldingDailyId);
this.BindGrid(GetWeldingDailyItem); // 初始化页面
}
}
else
{
this.BindGrid(null);
@@ -196,17 +196,17 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
private void BindGrid(List<Model.SpWeldingDailyItem> weldingDailyItem)
{
var aw = this.Grid1.SelectedRowIDArray;
DataTable dt = null;
var task = new List<Model.View_HJGL_WeldingTask>();
var list = from x in Funs.DB.View_HJGL_WeldingTask where x.ProjectId == this.CurrUser.LoginProjectId && x.UnitWorkId == this.UnitWorkId select x;
if (weldingDailyItem != null)
{
var weldJointIds = (from x in list
where ( x.TaskDate.Value.Date <= Convert.ToDateTime(txtWeldingDate.Text)
where (x.TaskDate.Value.Date <= Convert.ToDateTime(txtWeldingDate.Text)
&& x.WeldingDailyId == null /*&& x.CoverWelderId != null && x.BackingWelderId != null*/) || x.WeldingDailyId == this.WeldingDailyId
select x).GroupBy(x => x.WeldJointId, (key, group) => group.First()).ToList();
select x).ToList();
weldJointIds= weldJointIds.GroupBy(x => x.WeldJointId, (key, group) => group.First()).ToList();
task = weldJointIds;
//foreach (var weldJointId in weldJointIds)
//{
@@ -224,10 +224,11 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
}
else
{
var weldJointIds = (from x in list
var weldJointIds = (from x in list
where x.UnitWorkId == this.UnitWorkId && x.TaskDate.Value.Date <= Convert.ToDateTime(txtWeldingDate.Text)
&& x.WeldingDailyId == null /*&& x.CoverWelderId != null && x.BackingWelderId != null*/
select x).GroupBy(x => x.WeldJointId, (key, group) => group.First()).ToList();
select x).ToList();
weldJointIds = weldJointIds.GroupBy(x => x.WeldJointId, (key, group) => group.First()).ToList();
task = weldJointIds;
//foreach (var weldJointId in weldJointIds)
//{
@@ -269,8 +270,12 @@ namespace FineUIPro.Web.WeldingProcess.WeldingManage
if (weldingDailyItem != null)
{
var Dailytask = (from x in Funs.DB.View_HJGL_WeldingTask
where x.WeldingDailyId == this.WeldingDailyId
select x).ToList();
where x.WeldingDailyId == this.WeldingDailyId
select new
{
x.PipelineCode,
x.WeldTaskId
}).Distinct().ToList();
if (!string.IsNullOrEmpty(this.txtPipelineCode.Text.Trim()))
{
Dailytask = Dailytask.Where(x => x.PipelineCode.Contains(this.txtPipelineCode.Text.Trim())).ToList();
@@ -298,10 +298,10 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
}
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
}
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (Save())
@@ -10,7 +10,7 @@
word-break: break-all;
}
.f-grid-colheader-text {
.f-grid-colheader-text {
white-space: normal;
word-break: break-all;
}
@@ -23,51 +23,64 @@
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="台账" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ContractId" AllowCellEditing="true"
ClicksToEdit="2" DataIDField="ContractId" AllowSorting="true" SortField="ContractId" OnSort="Grid1_Sort"
runat="server" BoxFlex="1" DataKeyNames="BidDocumentsStandingBookId" AllowCellEditing="true"
ClicksToEdit="2" DataIDField="BidDocumentsStandingBookId" AllowSorting="true" SortField="BidDocumentsStandingBookId" OnSort="Grid1_Sort"
SortDirection="DESC" EnableColumnLines="true" OnPageIndexChange="Grid1_PageIndexChange"
AllowPaging="true" IsDatabasePaging="true" PageSize="10"
EnableRowDoubleClickEvent="true"
AllowPaging="true" IsDatabasePaging="true" PageSize="15"
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick"
EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpDepartId" runat="server" Label="主办部门" LabelAlign="Right" LabelWidth="140px"></f:DropDownList>
<f:DropDownList ID="drpDepartId" runat="server" Label="主办部门" Hidden="true" LabelAlign="Right" LabelWidth="140px"></f:DropDownList>
<f:TextBox runat="server" Label="总承包合同编号" ID="txtProjectCode" EmptyText="输入查询条件" Width="300px" LabelWidth="120px"
<f:TextBox runat="server" Label="总承包合同编号" ID="txtProjectCode" EmptyText="输入查询条件" Width="250px" LabelWidth="120px"
LabelAlign="left">
</f:TextBox>
<f:TextBox runat="server" Label="项目简称" ID="txtShortName" EmptyText="输入查询条件" Width="300px" LabelWidth="90px"
<f:TextBox runat="server" Label="项目简称" ID="txtShortName" EmptyText="输入查询条件" Width="250px" LabelWidth="90px"
LabelAlign="left">
</f:TextBox>
<%-- <f:TextBox runat="server" Label="项目代码" ID="txtProjectCode2" EmptyText="输入查询条件" Width="300px" LabelWidth="90px"
LabelAlign="right">
</f:TextBox>--%>
<f:TextBox runat="server" Label="合同编号" ID="txtContractNum" EmptyText="输入查询条件" Width="300px" LabelWidth="90px"
<f:TextBox runat="server" Label="合同编号" ID="txtContractNum" EmptyText="输入查询条件" Width="250px" LabelWidth="90px"
LabelAlign="left">
</f:TextBox>
<f:TextBox runat="server" Label="施工合同名称" ID="txtContractName" EmptyText="输入查询条件" Width="300px" LabelWidth="110px"
<f:TextBox runat="server" Label="施工合同名称" ID="txtContractName" EmptyText="输入查询条件" Width="250px" LabelWidth="110px"
LabelAlign="left">
</f:TextBox>
<f:TextBox runat="server" Label="施工分包商" ID="txtSubConstruction" EmptyText="输入查询条件" Width="300px" LabelWidth="90px"
<%-- <f:TextBox runat="server" Label="施工分包商" ID="txtSubConstruction" EmptyText="输入查询条件" Width="300px" LabelWidth="90px"
LabelAlign="left">
</f:TextBox>
</f:TextBox>--%>
<%-- <f:DropDownList ID="drpStates" runat="server" Label="状态" AutoPostBack="true" OnSelectedIndexChanged="btnSearch_Click"
LabelWidth="70px" LabelAlign="Right" Width="170px">
</f:DropDownList>--%>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnSearch" ToolTip="查询" Icon="SystemSearch" runat="server" OnClick="btnSearch_Click" Text="查询">
</f:Button>
<f:Button ID="Button1" ToolTip="重置" Icon="ArrowUndo" runat="server" OnClick="btnReset_Click" Text="重置">
</f:Button>
<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="btnImport" Text="导入" ToolTip="导入" Icon="PackageIn" runat="server" OnClick="btnImport_Click">
</f:Button>
</Items>
</f:Toolbar>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="right">
<Items>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" runat="server" Text="新增">
</f:Button>
<f:Button ID="btnEdit" EnablePostBack="true" runat="server" Hidden="true" Text="编辑" Icon="Pencil"
OnClick="btnEdit_Click">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp" Text="导出" Hidden="true"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
<f:Button ID="btnImport" Text="导入" ToolTip="导入" Icon="PackageIn" runat="server" >
</f:Button>
<f:Button ID="btnDelete" Text="删除" ToolTip="删除" Icon="Delete" runat="server" OnClick="btnDelete_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
@@ -78,6 +91,12 @@
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField ColumnID="State" Width="180px" HeaderText="状态" HeaderTextAlign="Center"
TextAlign="Left">
<ItemTemplate>
<asp:Label ID="lbImageUrl" runat="server" Text='<%# ConvertState(Eval("State")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField ColumnID="EPCCode" DataField="EPCCode" Width="120px" FieldType="String" HeaderText="总承包合同编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
@@ -93,7 +112,7 @@
<f:RenderField ColumnID="BidType" DataField="BidType" Width="180px" FieldType="String" HeaderText="招标方式" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="ActionPlanCode" DataField="ContractType" Width="150px" FieldType="String" HeaderText="实施计划编号" TextAlign="Center"
<f:RenderField ColumnID="ActionPlanCode" DataField="ActionPlanCode" Width="150px" FieldType="String" HeaderText="实施计划编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="BidDocumentsCode" DataField="BidDocumentsCode" Width="120px" FieldType="String" HeaderText="招标文件编号" TextAlign="Center"
@@ -114,7 +133,7 @@
<f:RenderField ColumnID="Bidding_StartTime" DataField="Bidding_StartTime" Width="120px" FieldType="String" HeaderText="开标时间" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="ApprovePersonFormCode" DataField="Account1" Width="150px" FieldType="String" HeaderText="评委名单审批表编号" TextAlign="Center"
<f:RenderField ColumnID="ApprovePersonFormCode" DataField="ApprovePersonFormCode" Width="150px" FieldType="String" HeaderText="评委名单审批表编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="BidWinner" DataField="BidWinner" Width="150px" FieldType="String" HeaderText="中标单位" TextAlign="Center"
@@ -123,13 +142,12 @@
<f:RenderField ColumnID="SetSubReviewCode" DataField="SetSubReviewCode" Width="150px" FieldType="String" HeaderText="确定中标人审批表编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="BidWinningNotice" DataField="BidWinningNotice" Width="150px" FieldType="String" HeaderText="中标通知书" TextAlign="Center"
<%-- <f:RenderField ColumnID="BidWinningNotice" DataField="BidWinningNotice" Width="150px" FieldType="String" HeaderText="中标通知书" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="ContractAmountExcludingTax" DataField="ContractAmountExcludingTax" Width="150px" FieldType="String" HeaderText="中标单位投标文件" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
</f:RenderField>--%>
</Columns>
<%-- <Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
@@ -155,6 +173,10 @@
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
Width="1000px" Height="420px">
</f:Window>
<f:Window ID="Window2" Title="附件上传" Hidden="true" EnableIFrame="true"
EnableMaximize="true" Target="Top" EnableResize="false" runat="server"
IsModal="true" Width="1010px" Height="660px">
</f:Window>
<%--<f:Menu ID="Menu1" runat="server">
<Items>
<f:MenuButton ID="btnMenuEdit" EnablePostBack="true" runat="server" Hidden="true" Text="重新提交" Icon="Pencil"
@@ -176,4 +198,4 @@
}--%>
</script>
</body>
</html>
</html>
@@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web.UI.DataVisualization.Charting;
namespace FineUIPro.Web.PHTGL.Filing
{
@@ -62,39 +63,11 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </summary>
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>();
Model.PHTGL_BidDocumentsStandingBook _BidDocumentsStandingBook = new Model.PHTGL_BidDocumentsStandingBook();
if (!(this.CurrUser.PersonId == Const.sysglyId || this.CurrUser.PersonId == Const.hfnbdId))
{
strSql += " and ActPlan.ProjectId =@ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
_BidDocumentsStandingBook.ProjectId = this.CurrUser.LoginProjectId;
}
if (!string.IsNullOrEmpty(drpDepartId.SelectedValue) )
{
@@ -103,21 +76,21 @@ namespace FineUIPro.Web.PHTGL.Filing
}
if (!string.IsNullOrEmpty(txtProjectCode.Text))
{
_BidDocumentsStandingBook.ProjectCode= txtProjectCode.Text;
}
if (!string.IsNullOrEmpty(txtShortName.Text))
{
_BidDocumentsStandingBook.ProjectShortName= txtShortName.Text;
}
if (!string.IsNullOrEmpty(txtContractNum.Text))
{
_BidDocumentsStandingBook.EPCCode= txtContractNum.Text;
}
if (!string.IsNullOrEmpty(txtContractName.Text))
{
}
var q= BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookByModle(_BidDocumentsStandingBook);
Grid1.RecordCount = q.Count;
Grid1.DataSource=q;
Grid1.DataBind();
}
#endregion
@@ -184,7 +157,7 @@ namespace FineUIPro.Web.PHTGL.Filing
txtShortName.Text = string.Empty;
txtContractNum.Text = string.Empty;
txtContractName.Text = string.Empty;
txtSubConstruction.Text = string.Empty;
//txtSubConstruction.Text = string.Empty;
}
#region
@@ -213,20 +186,21 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </summary>
private void EditData()
{
//if (Grid1.SelectedRowIndexArray.Length == 0)
//{
// Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
// return;
//}
//string id = Grid1.SelectedRowID;
//var contract = BLL.ContractService.GetContractById(id);
//Model.PHTGL_Contract _Contract = BLL.ContractService.GetContractById(id);
//_Contract.ApproveState = 0;
//ContractService.UpdateContract(_Contract);
//if (contract != null)
//{
// PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ContractFormationEdit.aspx?ContractId={0}", id, "编辑 - ")));
//}
if (Grid1.SelectedRowIndexArray.Length == 0)
{
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
return;
}
string id = Grid1.SelectedRowID;
var model=BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(id);
if (model != null)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("BidDocumentsStandingBookEdit.aspx?BidDocumentsStandingBookId={0}", id, "编辑 - ")));
}
}
protected void btnEdit_Click(object sender, EventArgs e)
{
EditData();
}
#endregion
@@ -318,10 +292,12 @@ namespace FineUIPro.Web.PHTGL.Filing
if (buttonList.Contains(Const.BtnModify))
{
// btnMenuEdit.Hidden = false;
btnEdit.Hidden = false;
}
if (buttonList.Contains(Const.BtnDelete))
{
// btnMenuDelete.Hidden = false;
btnDelete.Hidden = false;
}
}
}
@@ -388,5 +364,78 @@ namespace FineUIPro.Web.PHTGL.Filing
// return sb.ToString();
// }
#endregion
protected void btnImport_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("BidDocumentsStandingBookIn.aspx?", "导入 - ")));
}
public string ConvertState(object State)
{
string StateName = string.Empty;
if (State!=null&&!string.IsNullOrEmpty(State.ToString()))
{
switch (State.ToString())
{
case "0":
StateName = "未提交";
break;
case "1":
StateName = "已提交";
break;
default:
StateName = "未提交";
break;
}
}
else
{
StateName = "未提交";
}
return StateName;
}
protected void btnDelete_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length > 0)
{
bool isShow = false;
if (Grid1.SelectedRowIndexArray.Length == 1)
{
isShow = true;
}
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
if (this.judgementDelete(rowID, isShow))
{
var p = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(rowID);
if (p != null)
{
if (p.State==1)
{
ShowNotify(message: "已提交,删除失败!", MessageBoxIcon.Error);
return;
}
// 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);
}
}
}
BindGrid();
ShowNotify("删除数据成功!", MessageBoxIcon.Success);
}
}
}
}
@@ -104,15 +104,6 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </remarks>
protected global::FineUIPro.TextBox txtContractName;
/// <summary>
/// txtSubConstruction 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtSubConstruction;
/// <summary>
/// btnSearch 控件。
/// </summary>
@@ -131,6 +122,24 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </remarks>
protected global::FineUIPro.Button Button1;
/// <summary>
/// btnImport 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnImport;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// btnNew 控件。
/// </summary>
@@ -140,6 +149,15 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// btnEdit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnEdit;
/// <summary>
/// btnOut 控件。
/// </summary>
@@ -150,13 +168,13 @@ namespace FineUIPro.Web.PHTGL.Filing
protected global::FineUIPro.Button btnOut;
/// <summary>
/// btnImport 控件。
/// btnDelete 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnImport;
protected global::FineUIPro.Button btnDelete;
/// <summary>
/// lblPageIndex 控件。
@@ -167,6 +185,15 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPageIndex;
/// <summary>
/// lbImageUrl 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lbImageUrl;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@@ -202,5 +229,14 @@ namespace FineUIPro.Web.PHTGL.Filing
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Window2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
}
}
@@ -15,91 +15,116 @@
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<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>
<f:TextBox ID="txtEPCCode" runat="server" Label="总承包合同编号" Required="true" >
</f:TextBox>
<f:TextBox ID="txtProjectShortName" runat="server" Label="项目名称" Required="true" >
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtEPCCode" runat="server" Label="总承包合同编号" Readonly="true" Enabled="false">
<Items>
<f:TextBox ID="txtProjectCode" runat="server" Label="项目代码" Required="true" >
</f:TextBox>
<f:TextBox ID="txtIsOnLine" runat="server" Label="线上或线下" Required="true" >
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtProjectShortName" runat="server" Label="项目名称" Readonly="true" Enabled="false">
<f:TextBox ID="txtBidType" runat="server" Label="招标方式" Required="true" >
</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 ID="txtBidProject" runat="server" Label="招标工程" Required="true" >
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtBidType" runat="server" Label="招标方式" Readonly="true" Enabled="false">
<f:TextBox ID="txtActionPlanCode" runat="server" Label="实施计划编号" Required="true" >
</f:TextBox>
<f:TextBox ID="txtBidProject" runat="server" Label="招标工程" Readonly="true" Enabled="false">
<f:Button ID="btnAttachUrl_ActionPlanCode" Text="实施计划文件" ToolTip="附件" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_ActionPlanCode_Click" ValidateForms="SimpleForm1">
</f:Button>
<f:TextBox ID="txtBidDocumentsCode" runat="server" Label="招标文件编号" Required="true" >
</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 ID="btnAttachUrl_BidDocumentsCode" Text="招标文件" ToolTip="附件" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_BidDocumentsCode_Click" ValidateForms="SimpleForm1">
</f:Button>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtProposedInviter" runat="server" Label="拟邀请单位">
<f:TextBox ID="txtProposedInviter" runat="server" Label="拟邀请单位" Required="true" >
</f:TextBox>
<f:Button ID="btnAttachUrl" Text="中标单位投标文件" ToolTip="附件" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1">
</f:Button>
<f:TextBox ID="txtBidWinner" runat="server" Label="中标单位" Required="true" >
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox runat="server" Label="发标时间" ID="txtBidding_SendTime" Required="true" ></f:TextBox>
</Items>
<Items>
<f:TextBox runat="server" Label="开标时间" ID="txtBidding_StartTime" Required="true" ></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtApprovePersonFormCode" runat="server" Label="评委名单审批表编号" Required="true" >
</f:TextBox>
<f:Button ID="btnAttachUrl_ApprovePersonFormCode" Text="评委名单审批表文件" ToolTip="附件" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_ApprovePersonFormCode_Click" ValidateForms="SimpleForm1">
</f:Button>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSetSubReviewCode" runat="server" Label="确定中标人审批表编号" Required="true" >
</f:TextBox>
<f:Button ID="btnAttachUrl_SetSubReviewCode" Text="确定中标人审批表文件" ToolTip="附件" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_SetSubReviewCode_Click" ValidateForms="SimpleForm1">
</f:Button>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtShortListApprovalCode" runat="server" Label="短名单审批表" Required="true" >
</f:TextBox>
<f:Button ID="btnAttachUrl_ShortListApprovalCode" Text="短名单审批表文件" ToolTip="附件" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_ShortListApprovalCode_Click" ValidateForms="SimpleForm1">
</f:Button>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
</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="保存" ValidateForms="SimpleForm1"
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" Text="提交" ValidateForms="SimpleForm1"
OnClick="btnSubmit_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
</Items>
@@ -6,6 +6,7 @@ using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using FineUIPro.Web.PHTGL.BiddingManagement;
namespace FineUIPro.Web.PHTGL.Filing
{
@@ -33,27 +34,37 @@ namespace FineUIPro.Web.PHTGL.Filing
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
BLL.PHTGL_SetSubReviewService.InitGetSetSubCompleteDropDownList(DropSetSubReviewCode, this.CurrUser.PersonId, this.CurrUser.LoginProjectId, false);
//BLL.PHTGL_SetSubReviewService.InitGetSetSubCompleteDropDownList(DropSetSubReviewCode, this.CurrUser.PersonId, this.CurrUser.LoginProjectId, false);
////权限按钮方法
this.GetButtonPower();
this.BidDocumentsStandingBookId = Request.Params["BidDocumentsStandingBookId"];
this.GetButtonPower();
if (!string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
{
Model.PHTGL_BidDocumentsStandingBook model = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(this.BidDocumentsStandingBookId);
if (model != null)
{
DropSetSubReviewCode.SelectedValue = model.SetSubReviewCode;
cbIsOnLine.Checked = model.IsOnLine==1?true:false;
txtShortListApprovalCode.Text= model.ShortListApprovalCode;
txtProposedInviter.Text=model.ProposedInviter;
txtApprovePersonFormCode.Text= model.ApprovePersonFormCode;
txtBidWinner.Text= model.BidWinner;
DropSetSubReviewCode_SelectedIndexChanged(null,null);
this.txtEPCCode.Text = model.EPCCode;
this.txtProjectShortName.Text = model.ProjectShortName;
this.txtProjectCode.Text = model.ProjectCode;
this.txtIsOnLine.Text = model.IsOnLine;
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;
this.txtBidding_SendTime.Text = model.Bidding_SendTime;
this.txtBidding_StartTime.Text = model.Bidding_StartTime;
this.txtApprovePersonFormCode.Text = model.ApprovePersonFormCode;
this.txtBidWinner.Text = model.BidWinner;
this.txtSetSubReviewCode.Text = model.SetSubReviewCode;
}
}
}
}
#region
/// <summary>
/// 保存按钮
/// </summary>
@@ -62,30 +73,119 @@ namespace FineUIPro.Web.PHTGL.Filing
protected void btnSave_Click(object sender, EventArgs e)
{
Model.PHTGL_BidDocumentsStandingBook table = new Model.PHTGL_BidDocumentsStandingBook();
table.IsOnLine = cbIsOnLine.Checked ? 1 : 0 ;
table.SetSubReviewCode = this.DropSetSubReviewCode.SelectedValue;
table.EPCCode = this.txtEPCCode.Text;
table.ProjectShortName = this.txtProjectShortName.Text;
table.ProjectCode = this.txtProjectCode.Text;
table.IsOnLine = 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.ProposedInviter = this.txtProposedInviter.Text;
table.Bidding_SendTime = this.txtBidding_SendTime.Text;
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.State = 0;
if (string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
{
table.BidDocumentsStandingBookId = SQLHelper.GetNewID(typeof(Model.PHTGL_BidDocumentsStandingBook));
BidDocumentsStandingBookId = table.BidDocumentsStandingBookId;
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
}
else
{
var model= BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(BidDocumentsStandingBookId);
if (model!=null)
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
var q = BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(table.BidDocumentsStandingBookId);
if (q != null)
{
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
BLL.BidDocStandingBookService.UpdatePHTGL_BidDocumentsStandingBook(table);
}
else
{
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
}
}
// PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidUnit", BLL.Const.BidDocumentsStandingBookMenuId))
{
ShowNotify("未上传中标单位投标文件,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidNotice", BLL.Const.BidDocumentsStandingBookMenuId))
{
ShowNotify("未上传中标通知书,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ActionPlan", BLL.Const.BidDocumentsStandingBookMenuId))
{
ShowNotify("未上传实施计划文件,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-BidDocuments", BLL.Const.BidDocumentsStandingBookMenuId))
{
ShowNotify("未上传招标文件,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ApprovePersonForm", BLL.Const.BidDocumentsStandingBookMenuId))
{
ShowNotify("未上传评委名单审批表文件,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-SetSubReview", BLL.Const.BidDocumentsStandingBookMenuId))
{
ShowNotify("未上传确定中标人审批表文件,无法提交!", MessageBoxIcon.Warning);
return;
}
if (!BLL.AttachFileService.Getfile(BidDocumentsStandingBookId + "-ShortListApproval", BLL.Const.BidDocumentsStandingBookMenuId))
{
ShowNotify("未上传短名单审批表文件,无法提交!", MessageBoxIcon.Warning);
return;
}
Model.PHTGL_BidDocumentsStandingBook table = new Model.PHTGL_BidDocumentsStandingBook();
table.EPCCode = this.txtEPCCode.Text;
table.ProjectShortName = this.txtProjectShortName.Text;
table.ProjectCode = this.txtProjectCode.Text;
table.IsOnLine = 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.ProposedInviter = this.txtProposedInviter.Text;
table.Bidding_SendTime = this.txtBidding_SendTime.Text;
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.State = 1;
if (string.IsNullOrEmpty(this.BidDocumentsStandingBookId))
{
table.BidDocumentsStandingBookId = SQLHelper.GetNewID(typeof(Model.PHTGL_BidDocumentsStandingBook));
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
}
else
{
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
var q = BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(table.BidDocumentsStandingBookId);
if (q != null)
{
BLL.BidDocStandingBookService.UpdatePHTGL_BidDocumentsStandingBook(table);
}
else
{
table.BidDocumentsStandingBookId = this.BidDocumentsStandingBookId;
BLL.BidDocStandingBookService.AddPHTGL_BidDocumentsStandingBook(table);
}
@@ -93,6 +193,8 @@ namespace FineUIPro.Web.PHTGL.Filing
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
#endregion
#region
/// <summary>
/// 获取按钮权限
@@ -101,12 +203,13 @@ namespace FineUIPro.Web.PHTGL.Filing
/// <returns></returns>
private void GetButtonPower()
{
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.BidDocumentsStandingBookMenuId);
if (buttonList.Count() > 0)
if (!string .IsNullOrEmpty(BidDocumentsStandingBookId))
{
if (buttonList.Contains(BLL.Const.BtnSave))
var q = BLL.BidDocStandingBookService.GetPHTGL_BidDocumentsStandingBookById(BidDocumentsStandingBookId);
if (q != null&& q.State==1)
{
this.btnSave.Hidden = false;
btnSave.Hidden = true;
btnSubmit.Hidden=true;
}
}
}
@@ -114,57 +217,136 @@ namespace FineUIPro.Web.PHTGL.Filing
#region
/// <summary>
/// 上传附
/// 中标单位投标文
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttachUrl_Click(object sender, EventArgs e)
protected void btnAttachUrl_BidUnit_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)));
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
this.BidDocumentsStandingBookId+ "-BidUnit", BLL.Const.BidDocumentsStandingBookMenuId)));
}
/// <summary>
/// 情况说明附件
/// 中标通知书
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttachUrl_Remark_Click(object sender, EventArgs e)
protected void btnAttachUrl_BidNotice_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)));
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/BidDocumentsStandingBook&menuId={1}",
this.BidDocumentsStandingBookId+ "-BidNotice", BLL.Const.BidDocumentsStandingBookMenuId)));
}
/// <summary>
/// 实施计划文件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttachUrl_ActionPlanCode_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
{
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)));
}
/// <summary>
/// 招标文件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttachUrl_BidDocumentsCode_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
{
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)));
}
/// <summary>
/// 评委名单审批表文件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttachUrl_ApprovePersonFormCode_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
{
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)));
}
/// <summary>
/// 确定中标人审批表文件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttachUrl_SetSubReviewCode_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
{
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)));
}
/// <summary>
/// 短名单审批表文件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttachUrl_ShortListApprovalCode_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(BidDocumentsStandingBookId))
{
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)));
}
#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);
//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;
}
// 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;
// }
}
}
@@ -41,24 +41,6 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </remarks>
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>
/// txtEPCCode 控件。
/// </summary>
@@ -87,22 +69,13 @@ namespace FineUIPro.Web.PHTGL.Filing
protected global::FineUIPro.TextBox txtProjectCode;
/// <summary>
/// txtActionPlanCode 控件。
/// txtIsOnLine 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtActionPlanCode;
/// <summary>
/// txtBidDocumentsCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtBidDocumentsCode;
protected global::FineUIPro.TextBox txtIsOnLine;
/// <summary>
/// txtBidType 控件。
@@ -122,6 +95,60 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </remarks>
protected global::FineUIPro.TextBox txtBidProject;
/// <summary>
/// txtActionPlanCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtActionPlanCode;
/// <summary>
/// btnAttachUrl_ActionPlanCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttachUrl_ActionPlanCode;
/// <summary>
/// txtBidDocumentsCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtBidDocumentsCode;
/// <summary>
/// btnAttachUrl_BidDocumentsCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttachUrl_BidDocumentsCode;
/// <summary>
/// txtProposedInviter 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtProposedInviter;
/// <summary>
/// txtBidWinner 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtBidWinner;
/// <summary>
/// txtBidding_SendTime 控件。
/// </summary>
@@ -150,13 +177,31 @@ namespace FineUIPro.Web.PHTGL.Filing
protected global::FineUIPro.TextBox txtApprovePersonFormCode;
/// <summary>
/// txtBidWinner 控件。
/// btnAttachUrl_ApprovePersonFormCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtBidWinner;
protected global::FineUIPro.Button btnAttachUrl_ApprovePersonFormCode;
/// <summary>
/// txtSetSubReviewCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtSetSubReviewCode;
/// <summary>
/// btnAttachUrl_SetSubReviewCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttachUrl_SetSubReviewCode;
/// <summary>
/// txtShortListApprovalCode 控件。
@@ -168,31 +213,13 @@ namespace FineUIPro.Web.PHTGL.Filing
protected global::FineUIPro.TextBox txtShortListApprovalCode;
/// <summary>
/// btnAttachUrl_Remark 控件。
/// btnAttachUrl_ShortListApprovalCode 控件。
/// </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;
protected global::FineUIPro.Button btnAttachUrl_ShortListApprovalCode;
/// <summary>
/// Toolbar1 控件。
@@ -203,6 +230,24 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// btnAttachUrl_BidNotice 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttachUrl_BidNotice;
/// <summary>
/// btnAttachUrl_BidUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttachUrl_BidUnit;
/// <summary>
/// btnSave 控件。
/// </summary>
@@ -212,6 +257,15 @@ namespace FineUIPro.Web.PHTGL.Filing
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnSubmit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSubmit;
/// <summary>
/// btnClose 控件。
/// </summary>
@@ -0,0 +1,123 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BidDocumentsStandingBookIn.aspx.cs" Inherits="FineUIPro.Web.PHTGL.Filing.BidDocumentsStandingBookIn" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" ToolbarAlign="Right" runat="server">
<Items>
<f:HiddenField ID="hdFileName" runat="server">
</f:HiddenField>
<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"
OnClick="btnAudit_Click">
</f:Button>
<f:Button ID="btnImport" Icon="ApplicationGet" runat="server" ToolTip="导入" Text="导入" ValidateForms="SimpleForm1"
OnClick="btnImport_Click">
</f:Button>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="提交" Text="提交" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Rows>
<f:FormRow>
<Items>
<f:FileUpload runat="server" ID="fuAttachUrl" EmptyText="选择要导入的文件" Label="选择要导入的文件"
LabelWidth="150px">
</f:FileUpload>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="组件信息"
EnableCollapse="true" runat="server" BoxFlex="1" DataKeyNames="BidDocumentsStandingBookId" AllowCellEditing="true"
AllowColumnLocking="true" EnableColumnLines="true" ClicksToEdit="2" DataIDField="BidDocumentsStandingBookId"
AllowSorting="true" SortField="BidDocumentsStandingBookId" SortDirection="ASC"
AllowPaging="true" IsDatabasePaging="true" PageSize="30"
EnableTextSelection="True">
<Columns>
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号"
Width="60px" HeaderTextAlign="Center" TextAlign="Center" />
<f:RenderField ColumnID="EPCCode" DataField="EPCCode" Width="120px" FieldType="String" HeaderText="总承包合同编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="ProjectShortName" DataField="ProjectShortName" Width="180px" FieldType="String" HeaderText="项目名称" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="ProjectCode" DataField="ProjectCode" Width="180px" FieldType="String" HeaderText="项目代码" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="IsOnLine" DataField="IsOnLine" Width="180px" FieldType="String" HeaderText="线上或线下" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="BidType" DataField="BidType" Width="180px" FieldType="String" HeaderText="招标方式" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="ActionPlanCode" DataField="ActionPlanCode" Width="150px" FieldType="String" HeaderText="实施计划编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="BidDocumentsCode" DataField="BidDocumentsCode" Width="120px" FieldType="String" HeaderText="招标文件编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="BidProject" DataField="BidProject" Width="150px" FieldType="String" HeaderText="招标工程" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="ShortListApprovalCode" DataField="ShortListApprovalCode" Width="150px" FieldType="String" HeaderText="短名单审批表" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="ProposedInviter" DataField="ProposedInviter" Width="150px" FieldType="String" HeaderText="拟邀请单位" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="Bidding_SendTime" DataField="Bidding_SendTime" Width="120px" FieldType="String" HeaderText="发标时间" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="Bidding_StartTime" DataField="Bidding_StartTime" Width="120px" FieldType="String" HeaderText="开标时间" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="ApprovePersonFormCode" DataField="ApprovePersonFormCode" Width="150px" FieldType="String" HeaderText="评委名单审批表编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="BidWinner" DataField="BidWinner" Width="150px" FieldType="String" HeaderText="中标单位" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="SetSubReviewCode" DataField="SetSubReviewCode" Width="150px" FieldType="String" HeaderText="确定中标人审批表编号" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
</Columns>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
<f:ListItem Text="所有行" Value="10000" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</form>
</body>
</html>
@@ -0,0 +1,355 @@
using BLL;
using FineUIPro.Web.HJGL.WeldingManage;
using MiniExcelLibs;
using Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
using System.IO;
using System.Linq;
namespace FineUIPro.Web.PHTGL.Filing
{
public partial class BidDocumentsStandingBookIn : PageBase
{
#region
/// <summary>
/// 上传预设的虚拟路径
/// </summary>
private string initPath = Const.ExcelUrl;
/// <summary>
/// 安装组件集合
/// </summary>
public static List<Model.PHTGL_BidDocumentsStandingBook> BidDocStandingBookList = new List<Model.PHTGL_BidDocumentsStandingBook>();
/// <summary>
/// 错误集合
/// </summary>
public static string errorInfos = string.Empty;
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.hdFileName.Text = string.Empty;
if (BidDocStandingBookList != null)
{
BidDocStandingBookList.Clear();
}
errorInfos = string.Empty;
}
}
#endregion
#region
/// <summary>
/// 审核
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAudit_Click(object sender, EventArgs e)
{
try
{
if (this.fuAttachUrl.HasFile == false)
{
ShowNotify("请您选择Excel文件!", MessageBoxIcon.Warning);
return;
}
string IsXls = Path.GetExtension(this.fuAttachUrl.FileName).ToString().Trim().ToLower();
if (IsXls != ".xlsx")
{
ShowNotify("只可以选择Excel文件!", MessageBoxIcon.Warning);
return;
}
if (BidDocStandingBookList != null)
{
BidDocStandingBookList.Clear();
}
if (!string.IsNullOrEmpty(errorInfos))
{
errorInfos = string.Empty;
}
string rootPath = Server.MapPath("~/");
string initFullPath = rootPath + initPath;
if (!Directory.Exists(initFullPath))
{
Directory.CreateDirectory(initFullPath);
}
this.hdFileName.Text = BLL.Funs.GetNewFileName() + IsXls;
string filePath = initFullPath + this.hdFileName.Text;
this.fuAttachUrl.PostedFile.SaveAs(filePath);
ImportXlsToData(rootPath + initPath + this.hdFileName.Text);
}
catch (Exception ex)
{
Alert alert = new Alert
{
Message = "'" + ex.Message + "'",
Target = Target.Self
};
alert.Show();
//ShowNotify("'" + ex.Message + "'", MessageBoxIcon.Warning);
}
}
#region Excel提取数据
/// <summary>
/// 从Excel提取数据--》Dataset
/// </summary>
/// <param name="filename">Excel文件路径名</param>
private void ImportXlsToData(string fileName)
{
// var rows =Funs.LINQToDataTable(MiniExcel.Query(fileName).ToList()) ;
var ds = MiniExcel.Query(fileName).ToList();
var columns = MiniExcel.GetColumns(fileName);
var cnt = columns.Count;
var reposedata = AddDatasetToSQL(ds, cnt);
if (reposedata.code == 1)
{
ShowNotify("审核完成,请点击导入!", MessageBoxIcon.Success);
}
else
{
Alert alert = new Alert
{
Message = reposedata.message,
Target = Target.Self
};
alert.Show();
//ShowNotify(responeData.message, MessageBoxIcon.Success);
}
}
#endregion
#region Dataset的数据导入数据库
/// <summary>
/// 将Dataset的数据导入数据库
/// </summary>
/// <param name="pds">数据集</param>
/// <param name="Cols">数据集行数</param>
/// <returns></returns>
private Model.ResponeData AddDatasetToSQL(List<dynamic> pds, int count)
{
Model.ResponeData responeData = new Model.ResponeData();
// string result = string.Empty;
List<string> result = new List<string>();
//pds = BLL.Funs.FilterBlankLines(pds);
if (count < 15)
{
responeData.code = 0;
responeData.message = "导入Excel格式错误!Excel只有" + count.ToString().Trim() + "列";
return responeData;
}
if (pds.Count > 0 && pds != null)
{
for (int i = 1; i < pds.Count; i++)
{
Model.PHTGL_BidDocumentsStandingBook _BidDocumentsStandingBook = new PHTGL_BidDocumentsStandingBook();
_BidDocumentsStandingBook.BidDocumentsStandingBookId = SQLHelper.GetNewID();
_BidDocumentsStandingBook.State = 0;
_BidDocumentsStandingBook.ProjectId = this.CurrUser.LoginProjectId;
_BidDocumentsStandingBook.EPCCode = pds[i].A;
_BidDocumentsStandingBook.ProjectShortName = pds[i].B;
_BidDocumentsStandingBook.ProjectCode = pds[i].C;
_BidDocumentsStandingBook.IsOnLine = pds[i].D;
_BidDocumentsStandingBook.BidType = pds[i].E;
_BidDocumentsStandingBook.ActionPlanCode = pds[i].F;
_BidDocumentsStandingBook.BidDocumentsCode = pds[i].G;
_BidDocumentsStandingBook.BidProject = pds[i].H;
_BidDocumentsStandingBook.ShortListApprovalCode = pds[i].I;
_BidDocumentsStandingBook.ProposedInviter = pds[i].J;
_BidDocumentsStandingBook.Bidding_SendTime = pds[i].K;
_BidDocumentsStandingBook.Bidding_StartTime = pds[i].L;
_BidDocumentsStandingBook.ApprovePersonFormCode = pds[i].M;
_BidDocumentsStandingBook.BidWinner = pds[i].N;
_BidDocumentsStandingBook.SetSubReviewCode = pds[i].O;
BidDocStandingBookList.Add(_BidDocumentsStandingBook);
//if (col24 != null)
//{
//}
//else
//{
// result.Add("第" + (i + 1).ToString() + "行," + "壁厚" + "," + "此项为必填项!" + "|");
//}
}
if (result.Count > 0)
{
BidDocStandingBookList.Clear();
// result = result.Substring(0, result.LastIndexOf("|"));
errorInfos = string.Join("|", result.Distinct());
//Alert alert = new Alert();
//alert.Message = result;
//alert.Target = Target.Self;
//alert.Show();
responeData.code = 0;
responeData.message = errorInfos;
}
else
{
errorInfos = string.Empty;
}
}
else
{
responeData.code = 0;
responeData.message = "导入数据为空!";
}
return responeData;
}
#endregion
#endregion
#region
/// <summary>
/// 导入
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnImport_Click(object sender, EventArgs e)
{
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);
}
}
#endregion
#region
/// <summary>
/// 提交
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(errorInfos))
{
if (BidDocStandingBookList.Count > 0)
{
BidDocStandingBookService.AddBulkPHTGL_BidDocumentsStandingBook(BidDocStandingBookList);
}
int a = BidDocStandingBookList.Count();
string rootPath = Server.MapPath("~/");
string initFullPath = rootPath + initPath;
string filePath = initFullPath + this.hdFileName.Text;
if (filePath != string.Empty && System.IO.File.Exists(filePath))
{
System.IO.File.Delete(filePath);//删除上传的XLS文件
}
ShowNotify("导入成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
else
{
ShowNotify("请先将错误数据修正,再重新导入提交!", MessageBoxIcon.Warning);
}
}
#endregion
#region
public string ConvertPipelineId(object PipelineId)
{
string StateName = string.Empty;
if (!string.IsNullOrEmpty(PipelineId.ToString()))
{
if (PipelineId != null)
{
string txt = PipelineService.GetPipelineByPipelineId(PipelineId.ToString()).PipelineCode;
return txt;
}
return "";
}
return StateName;
}
#endregion
#region
/// <summary>
/// 下载模板按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnDownLoad_Click(object sender, EventArgs e)
{
string rootPath = Server.MapPath("~/");
string uploadfilepath = rootPath + Const.BidDocumentsStandingBookIn;
string filePath = Const.BidDocumentsStandingBookIn;
string fileName = Path.GetFileName(filePath);
FileInfo info = new FileInfo(uploadfilepath);
long fileSize = info.Length;
Response.ClearContent();
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
Response.ContentType = "excel/plain";
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.AddHeader("Content-Length", fileSize.ToString().Trim());
Response.TransmitFile(uploadfilepath, 0, fileSize);
Response.End();
}
#endregion
#region
/// <summary>
/// 分页选择下拉改变事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
this.Grid1.DataSource = BidDocStandingBookList;
this.Grid1.DataBind();
Grid1.RecordCount = BidDocStandingBookList.Count;
}
#endregion
}
}
@@ -0,0 +1,143 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.PHTGL.Filing
{
public partial class BidDocumentsStandingBookIn
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// hdFileName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdFileName;
/// <summary>
/// btnDownLoad 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnDownLoad;
/// <summary>
/// btnAudit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAudit;
/// <summary>
/// btnImport 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnImport;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// fuAttachUrl 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FileUpload fuAttachUrl;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
}
}
+64 -16
View File
@@ -83399,7 +83399,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(200)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(2000)")]
public string CanWelderCode
{
get
@@ -83419,7 +83419,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(3000)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(4000)")]
public string CanWelderId
{
get
@@ -151267,7 +151267,7 @@ namespace Model
private string _ProjectCode;
private System.Nullable<int> _IsOnLine;
private string _IsOnLine;
private string _BidType;
@@ -151281,9 +151281,9 @@ namespace Model
private string _ProposedInviter;
private System.Nullable<System.DateTime> _Bidding_SendTime;
private string _Bidding_SendTime;
private System.Nullable<System.DateTime> _Bidding_StartTime;
private string _Bidding_StartTime;
private string _ApprovePersonFormCode;
@@ -151291,6 +151291,10 @@ namespace Model
private string _SetSubReviewCode;
private string _ProjectId;
private System.Nullable<int> _State;
#region
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
@@ -151303,7 +151307,7 @@ namespace Model
partial void OnProjectShortNameChanged();
partial void OnProjectCodeChanging(string value);
partial void OnProjectCodeChanged();
partial void OnIsOnLineChanging(System.Nullable<int> value);
partial void OnIsOnLineChanging(string value);
partial void OnIsOnLineChanged();
partial void OnBidTypeChanging(string value);
partial void OnBidTypeChanged();
@@ -151317,9 +151321,9 @@ namespace Model
partial void OnShortListApprovalCodeChanged();
partial void OnProposedInviterChanging(string value);
partial void OnProposedInviterChanged();
partial void OnBidding_SendTimeChanging(System.Nullable<System.DateTime> value);
partial void OnBidding_SendTimeChanging(string value);
partial void OnBidding_SendTimeChanged();
partial void OnBidding_StartTimeChanging(System.Nullable<System.DateTime> value);
partial void OnBidding_StartTimeChanging(string value);
partial void OnBidding_StartTimeChanged();
partial void OnApprovePersonFormCodeChanging(string value);
partial void OnApprovePersonFormCodeChanged();
@@ -151327,6 +151331,10 @@ namespace Model
partial void OnBidWinnerChanged();
partial void OnSetSubReviewCodeChanging(string value);
partial void OnSetSubReviewCodeChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnStateChanging(System.Nullable<int> value);
partial void OnStateChanged();
#endregion
public PHTGL_BidDocumentsStandingBook()
@@ -151414,8 +151422,8 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOnLine", DbType="Int")]
public System.Nullable<int> IsOnLine
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsOnLine", DbType="NVarChar(100)")]
public string IsOnLine
{
get
{
@@ -151554,8 +151562,8 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Bidding_SendTime", DbType="DateTime")]
public System.Nullable<System.DateTime> Bidding_SendTime
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Bidding_SendTime", DbType="NVarChar(100)")]
public string Bidding_SendTime
{
get
{
@@ -151574,8 +151582,8 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Bidding_StartTime", DbType="DateTime")]
public System.Nullable<System.DateTime> Bidding_StartTime
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Bidding_StartTime", DbType="NVarChar(100)")]
public string Bidding_StartTime
{
get
{
@@ -151654,6 +151662,46 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(100)")]
public string ProjectId
{
get
{
return this._ProjectId;
}
set
{
if ((this._ProjectId != value))
{
this.OnProjectIdChanging(value);
this.SendPropertyChanging();
this._ProjectId = value;
this.SendPropertyChanged("ProjectId");
this.OnProjectIdChanged();
}
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_State", DbType="Int")]
public System.Nullable<int> State
{
get
{
return this._State;
}
set
{
if ((this._State != value))
{
this.OnStateChanging(value);
this.SendPropertyChanging();
this._State = value;
this.SendPropertyChanged("State");
this.OnStateChanged();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
@@ -236474,7 +236522,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(200)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderCode", DbType="NVarChar(2000)")]
public string CanWelderCode
{
get
@@ -236490,7 +236538,7 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(3000)")]
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CanWelderId", DbType="NVarChar(4000)")]
public string CanWelderId
{
get