20241023 合同管理
This commit is contained in:
parent
592238bd07
commit
80e534050e
|
@ -62,6 +62,21 @@
|
|||
return lis;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 审计结果下拉选项
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static ListItem[] getAuditResultDropList()
|
||||
{
|
||||
ListItem [] lis = new ListItem[5];
|
||||
lis[0] = new ListItem("红", "红");
|
||||
lis[1] = new ListItem("红黄", "红黄");
|
||||
lis[2] = new ListItem("黄", "黄");
|
||||
lis[3] = new ListItem("黄绿", "黄绿");
|
||||
lis[4] = new ListItem("绿", "绿");
|
||||
return lis;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
|
|
@ -35,6 +35,12 @@ namespace BLL
|
|||
newContractManagement.UploadDate = contractManagement.UploadDate;
|
||||
newContractManagement.Remark = contractManagement.Remark;
|
||||
newContractManagement.AttachUrl = contractManagement.AttachUrl;
|
||||
newContractManagement.SupplementedBudget = contractManagement.SupplementedBudget;
|
||||
newContractManagement.TotalBudget = contractManagement.TotalBudget;
|
||||
newContractManagement.StartDate = contractManagement.StartDate;
|
||||
newContractManagement.EndDate = contractManagement.EndDate;
|
||||
newContractManagement.AuditDate = contractManagement.AuditDate;
|
||||
newContractManagement.AuditResult = contractManagement.AuditResult;
|
||||
Funs.DB.FC_ContractManagement.InsertOnSubmit(newContractManagement);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
@ -57,6 +63,12 @@ namespace BLL
|
|||
newContractManagement.UploadDate = contractManagement.UploadDate;
|
||||
newContractManagement.Remark = contractManagement.Remark;
|
||||
newContractManagement.AttachUrl = contractManagement.AttachUrl;
|
||||
newContractManagement.SupplementedBudget = contractManagement.SupplementedBudget;
|
||||
newContractManagement.TotalBudget = contractManagement.TotalBudget;
|
||||
newContractManagement.StartDate = contractManagement.StartDate;
|
||||
newContractManagement.EndDate = contractManagement.EndDate;
|
||||
newContractManagement.AuditDate = contractManagement.AuditDate;
|
||||
newContractManagement.AuditResult = contractManagement.AuditResult;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -104,6 +104,10 @@ namespace BLL
|
|||
newSESRelatedData.ExceedLimit = SESRelatedData.ExceedLimit;
|
||||
newSESRelatedData.CreateDate = SESRelatedData.CreateDate;
|
||||
newSESRelatedData.CreatePerson = SESRelatedData.CreatePerson;
|
||||
newSESRelatedData.InitialBudget = SESRelatedData.InitialBudget;
|
||||
newSESRelatedData.IfExtend = SESRelatedData.IfExtend;
|
||||
newSESRelatedData.PreviousFO = SESRelatedData.PreviousFO;
|
||||
newSESRelatedData.InitialAllocation = SESRelatedData.InitialAllocation;
|
||||
|
||||
Funs.DB.FC_SESRelatedData.InsertOnSubmit(newSESRelatedData);
|
||||
Funs.DB.SubmitChanges();
|
||||
|
@ -167,6 +171,10 @@ namespace BLL
|
|||
newSESRelatedData.ExceedLimit = SESRelatedData.ExceedLimit;
|
||||
newSESRelatedData.ModifyDate = SESRelatedData.ModifyDate;
|
||||
newSESRelatedData.ModifyPerson = SESRelatedData.ModifyPerson;
|
||||
newSESRelatedData.InitialBudget = SESRelatedData.InitialBudget;
|
||||
newSESRelatedData.IfExtend = SESRelatedData.IfExtend;
|
||||
newSESRelatedData.PreviousFO = SESRelatedData.PreviousFO;
|
||||
newSESRelatedData.InitialAllocation = SESRelatedData.InitialAllocation;
|
||||
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2651,6 +2651,10 @@
|
|||
<Content Include="SES\SESEvaluateList.aspx" />
|
||||
<Content Include="SES\SESRelatedData.aspx" />
|
||||
<Content Include="SES\SESRelatedDataContractManage.aspx" />
|
||||
<Content Include="SES\SESRelatedDataContractManage2.aspx" />
|
||||
<Content Include="SES\SESRelatedDataContractManage3.aspx" />
|
||||
<Content Include="SES\SESRelatedDataContractManage4.aspx" />
|
||||
<Content Include="SES\SESRelatedDataContractManage5.aspx" />
|
||||
<Content Include="SES\SESRelatedDataEdit.aspx" />
|
||||
<Content Include="SES\SESRelatedDataSearch.aspx" />
|
||||
<Content Include="SES\SESRelatedDataSigned.aspx" />
|
||||
|
@ -3421,6 +3425,34 @@
|
|||
<Compile Include="SES\SESRelatedDataContractManage.aspx.designer.cs">
|
||||
<DependentUpon>SESRelatedDataContractManage.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SES\SESRelatedDataContractManage2.aspx.cs">
|
||||
<DependentUpon>SESRelatedDataContractManage2.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SES\SESRelatedDataContractManage2.aspx.designer.cs">
|
||||
<DependentUpon>SESRelatedDataContractManage2.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SES\SESRelatedDataContractManage3.aspx.cs">
|
||||
<DependentUpon>SESRelatedDataContractManage3.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SES\SESRelatedDataContractManage3.aspx.designer.cs">
|
||||
<DependentUpon>SESRelatedDataContractManage3.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SES\SESRelatedDataContractManage4.aspx.cs">
|
||||
<DependentUpon>SESRelatedDataContractManage4.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SES\SESRelatedDataContractManage4.aspx.designer.cs">
|
||||
<DependentUpon>SESRelatedDataContractManage4.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SES\SESRelatedDataContractManage5.aspx.cs">
|
||||
<DependentUpon>SESRelatedDataContractManage5.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SES\SESRelatedDataContractManage5.aspx.designer.cs">
|
||||
<DependentUpon>SESRelatedDataContractManage5.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SES\SESRelatedDataEdit.aspx.cs">
|
||||
<DependentUpon>SESRelatedDataEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<ProjectView>ShowAllFiles</ProjectView>
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
<UseIISExpress>true</UseIISExpress>
|
||||
<Use64BitIISExpress>
|
||||
</Use64BitIISExpress>
|
||||
|
|
|
@ -374,7 +374,7 @@
|
|||
</Filter>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="130px" ColumnID="StrVolumeAllocation" DataField="StrVolumeAllocation"
|
||||
FieldType="String" HeaderText="Volume Allocation" HeaderTextAlign="Center" EnableFilter="true">
|
||||
FieldType="String" HeaderText="Current Allocation" HeaderTextAlign="Center" EnableFilter="true">
|
||||
<Filter EnableMultiFilter="true" ShowMatcher="true">
|
||||
<Operator>
|
||||
<f:DropDownList ID="DropDownList24" runat="server">
|
||||
|
@ -659,21 +659,18 @@
|
|||
</Items>
|
||||
</f:Tab>
|
||||
<f:Tab ID="TabManagement" Title="Contract Management" BodyPadding="1px" Layout="VBox" runat="server" AutoScroll="true">
|
||||
<Items>
|
||||
<Items>
|
||||
<f:TabStrip ID="TabStrip2" ShowBorder="false" TabPosition="Top"
|
||||
EnableTabCloseMenu="false" ActiveTabIndex="0" runat="server">
|
||||
EnableTabCloseMenu="false" ActiveTabIndex="0" runat="server" AutoPostBack="true" OnTabIndexChanged="TabStrip2_TabIndexChanged">
|
||||
<Tabs>
|
||||
<f:Tab ID="Tab1" Title="合同续签" BodyPadding="1px" Layout="VBox" runat="server" AutoScroll="true">
|
||||
<Items>
|
||||
<f:Grid ID="Grid3" ShowBorder="true" ShowHeader="false" Title="Contract Management" EnableCollapse="true"
|
||||
<f:Grid ID="Grid3" ShowBorder="true" ShowHeader="false" Title="合同续签" EnableCollapse="true" Height="200px"
|
||||
runat="server" BoxFlex="1" DataKeyNames="FileId" AllowCellEditing="true" EnableColumnLines="true"
|
||||
ClicksToEdit="2" DataIDField="FileId" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid3_RowDoubleClick">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" runat="server">
|
||||
<Items>
|
||||
<%--<f:DropDownList ID="drpFileType3" runat="server" Label="FileType Select" LabelWidth="150px"
|
||||
LabelAlign="Right" AutoPostBack="true" OnSelectedIndexChanged="drpFileType3_OnSelectedIndexChanged">
|
||||
</f:DropDownList>--%>
|
||||
<f:ToolbarFill ID="ToolbarFill3" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnAddFile3" ToolTip="Upload" Text="Add" Icon="Add" OnClick="btnAddFile3_Click" runat="server">
|
||||
</f:Button>
|
||||
|
@ -686,19 +683,20 @@
|
|||
<asp:Label ID="Label2" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="400px" ColumnID="FileName" DataField="FileName" FieldType="String" HeaderText="文件编号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<f:RenderField Width="90px" ColumnID="FileTypeId" DataField="FileTypeId" FieldType="String" HeaderText="文件类型" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="FileType" DataField="FileType" FieldType="String" HeaderText="文件类型" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<f:RenderField Width="200px" ColumnID="FileName" DataField="FileName" FieldType="String" HeaderText="文件编号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<%--<f:RenderField Width="150px" ColumnID="FileTypeCode" DataField="FileTypeCode" FieldType="String" HeaderText="文件类型编号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>--%>
|
||||
<f:RenderField Width="150px" ColumnID="UploadManName" DataField="UploadManName" FieldType="String" HeaderText="上传人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<f:RenderField Width="120px" ColumnID="UploadManName" DataField="UploadManName" FieldType="String" HeaderText="上传人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="UploadDate" DataField="UploadDate" FieldType="Date" Renderer="Date" HeaderText="上传日期" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<f:RenderField Width="180px" ColumnID="Contractor" DataField="Contractor" FieldType="String" HeaderText="承包商名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="110px" ColumnID="PreviousFO" DataField="PreviousFO" FieldType="String" HeaderText="上一轮合同号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="FO_NO" DataField="FO_NO" FieldType="String" HeaderText="合同号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Remark" DataField="Remark" FieldType="String" HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<%--<f:RenderField Width="200px" ColumnID="Remark" DataField="Remark"
|
||||
FieldType="String" HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left" >
|
||||
</f:RenderField>--%>
|
||||
<f:TemplateField HeaderText="附件查看" Width="500px" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtnUrl2" runat="server" CommandArgument='<%# Bind("AttachUrl") %>'
|
||||
|
@ -713,16 +711,204 @@
|
|||
</Items>
|
||||
</f:Tab>
|
||||
<f:Tab ID="Tab2" Title="费用增补" BodyPadding="1px" Layout="VBox" runat="server" AutoScroll="true">
|
||||
<Items></Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid4" ShowBorder="true" ShowHeader="false" Title="费用增补" EnableCollapse="true" Height="200px"
|
||||
runat="server" BoxFlex="1" DataKeyNames="FileId" AllowCellEditing="true" EnableColumnLines="true"
|
||||
ClicksToEdit="2" DataIDField="FileId" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid4_RowDoubleClick">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar4" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill5" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnAddFile4" ToolTip="Upload" Text="Add" Icon="Add" OnClick="btnAddFile4_Click" runat="server">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField Width="50px" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label3" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="90px" ColumnID="FileTypeId" DataField="FileTypeId" FieldType="String" HeaderText="文件类型" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="FileName" DataField="FileName" FieldType="String" HeaderText="文件编号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="UploadManName" DataField="UploadManName" FieldType="String" HeaderText="上传人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="180px" ColumnID="Contractor" DataField="Contractor" FieldType="String" HeaderText="承包商名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="FO_NO" DataField="FO_NO" FieldType="String" HeaderText="合同号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="InitialBudget" DataField="InitialBudget" FieldType="String" HeaderText="Initial budget" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="SupplementedBudget" DataField="SupplementedBudget" FieldType="String" HeaderText="Supplemented Budget" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="TotalBudget" DataField="TotalBudget" FieldType="String" HeaderText="Total Budget" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Remark" DataField="Remark" FieldType="String" HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:TemplateField HeaderText="附件查看" Width="200px" HeaderTextAlign="Center" TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtnUrl3" runat="server" CommandArgument='<%# Bind("AttachUrl") %>'
|
||||
ToolTip="附件查看" EnableAjax="false" Height="20px"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu4" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Tab>
|
||||
<f:Tab ID="Tab3" Title="份额变更" BodyPadding="1px" Layout="VBox" runat="server" AutoScroll="true">
|
||||
<Items></Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid5" ShowBorder="true" ShowHeader="false" Title="份额变更" EnableCollapse="true" Height="200px"
|
||||
runat="server" BoxFlex="1" DataKeyNames="FileId" AllowCellEditing="true" EnableColumnLines="true"
|
||||
ClicksToEdit="2" DataIDField="FileId" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid5_RowDoubleClick">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar5" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill6" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnAddFile5" ToolTip="Upload" Text="Add" Icon="Add" OnClick="btnAddFile5_Click" runat="server">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField Width="50px" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="90px" ColumnID="FileTypeId" DataField="FileTypeId" FieldType="String" HeaderText="文件类型" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="FileName" DataField="FileName" FieldType="String" HeaderText="文件编号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="UploadManName" DataField="UploadManName" FieldType="String" HeaderText="上传人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="180px" ColumnID="Contractor" DataField="Contractor" FieldType="String" HeaderText="承包商名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="FO_NO" DataField="FO_NO" FieldType="String" HeaderText="合同号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="InitialBudget" DataField="InitialBudget" FieldType="String" HeaderText="Initial budget" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="CurrentAllocation" DataField="CurrentAllocation" FieldType="String" HeaderText="Current allocation(%)" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Remark" DataField="Remark" FieldType="String" HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:TemplateField HeaderText="附件查看" Width="200px" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtnUrl4" runat="server" CommandArgument='<%# Bind("AttachUrl") %>'
|
||||
ToolTip="附件查看" EnableAjax="false" Height="20px"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu5" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Tab>
|
||||
<f:Tab ID="Tab4" Title="短期续延" BodyPadding="1px" Layout="VBox" runat="server" AutoScroll="true">
|
||||
<Items></Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid6" ShowBorder="true" ShowHeader="false" Title="短期续延" EnableCollapse="true" Height="200px"
|
||||
runat="server" BoxFlex="1" DataKeyNames="FileId" AllowCellEditing="true" EnableColumnLines="true"
|
||||
ClicksToEdit="2" DataIDField="FileId" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid6_RowDoubleClick">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar7" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill7" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnAddFile6" ToolTip="Upload" Text="Add" Icon="Add" OnClick="btnAddFile6_Click" runat="server">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField Width="50px" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label5" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:RenderField Width="90px" ColumnID="FileTypeId" DataField="FileTypeId" FieldType="String" HeaderText="文件类型" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="200px" ColumnID="FileName" DataField="FileName" FieldType="String" HeaderText="文件编号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="UploadManName" DataField="UploadManName" FieldType="String" HeaderText="上传人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="180px" ColumnID="Contractor" DataField="Contractor" FieldType="String" HeaderText="承包商名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="FO_NO" DataField="FO_NO" FieldType="String" HeaderText="合同号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="110px" ColumnID="StartDate" DataField="StartDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="开始时间" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="110px" ColumnID="EndDate" DataField="EndDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="结束时间" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="Remark" DataField="Remark" FieldType="String" HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:TemplateField HeaderText="附件查看" Width="200px" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtnUrl5" runat="server" CommandArgument='<%# Bind("AttachUrl") %>'
|
||||
ToolTip="附件查看" EnableAjax="false" Height="20px"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu6" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Tab>
|
||||
<f:Tab ID="Tab5" Title="承包商EHSQ审计报告" BodyPadding="1px" Layout="VBox" runat="server" AutoScroll="true">
|
||||
<Items></Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid7" ShowBorder="true" ShowHeader="false" Title="承包商EHSQ审计报告" EnableCollapse="true" Height="200px"
|
||||
runat="server" BoxFlex="1" DataKeyNames="FileId" AllowCellEditing="true" EnableColumnLines="true"
|
||||
ClicksToEdit="2" DataIDField="FileId" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid7_RowDoubleClick">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar8" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:ToolbarFill ID="ToolbarFill8" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnAddFile7" ToolTip="Upload" Text="Add" Icon="Add" OnClick="btnAddFile7_Click" runat="server">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField Width="50px" TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label6" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<%--<f:RenderField Width="90px" ColumnID="FileTypeId" DataField="FileTypeId" FieldType="String" HeaderText="文件类型" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>--%>
|
||||
<f:RenderField Width="250px" ColumnID="FileName" DataField="FileName" FieldType="String" HeaderText="审计编号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="FO_NO" DataField="FO_NO" FieldType="String" HeaderText="合同号" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="ContractorType" DataField="ContractorType" FieldType="String" HeaderText="承包商类型" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="180px" ColumnID="Contractor" DataField="Contractor" FieldType="String" HeaderText="承包商名称" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="110px" ColumnID="AuditDate" DataField="AuditDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="审计日期" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="110px" ColumnID="AuditResult" DataField="AuditResult" FieldType="String" HeaderText="审计结果" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="UploadManName" DataField="UploadManName" FieldType="String" HeaderText="上传人" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<%--<f:RenderField Width="100px" ColumnID="Remark" DataField="Remark" FieldType="String" HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>--%>
|
||||
<f:TemplateField HeaderText="附件查看" Width="200px" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<ItemTemplate>
|
||||
<asp:LinkButton ID="lbtnUrl6" runat="server" CommandArgument='<%# Bind("AttachUrl") %>'
|
||||
ToolTip="附件查看" EnableAjax="false" Height="20px"></asp:LinkButton>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu7" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Tab>
|
||||
</Tabs>
|
||||
</f:TabStrip>
|
||||
|
@ -737,7 +923,7 @@
|
|||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="FC List" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
|
||||
Width="1400px" Height="660px">
|
||||
Width="1400px" Height="700px">
|
||||
</f:Window>
|
||||
<f:Window ID="Window2" Title="Print" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Top" EnableResize="true" runat="server"
|
||||
|
@ -792,6 +978,38 @@
|
|||
Icon="Delete" ConfirmText="Delete selected row ?" ConfirmTarget="Top" runat="server" Text="Delete" Hidden="true">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
<f:Menu ID="Menu4" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit4" OnClick="btnMenuEdit4_Click" EnablePostBack="true"
|
||||
Icon="BulletEdit" runat="server" Text="Modify" Hidden="true">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete4" OnClick="btnMenuDelete4_Click" EnablePostBack="true"
|
||||
Icon="Delete" ConfirmText="Delete selected row ?" ConfirmTarget="Top" runat="server" Text="Delete" Hidden="true">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
<f:Menu ID="Menu5" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit5" OnClick="btnMenuEdit5_Click" EnablePostBack="true"
|
||||
Icon="BulletEdit" runat="server" Text="Modify" Hidden="true">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete5" OnClick="btnMenuDelete5_Click" EnablePostBack="true"
|
||||
Icon="Delete" ConfirmText="Delete selected row ?" ConfirmTarget="Top" runat="server" Text="Delete" Hidden="true">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
<f:Menu ID="Menu6" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit6" OnClick="btnMenuEdit6_Click" EnablePostBack="true"
|
||||
Icon="BulletEdit" runat="server" Text="Modify" Hidden="true">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete6" OnClick="btnMenuDelete6_Click" EnablePostBack="true"
|
||||
Icon="Delete" ConfirmText="Delete selected row ?" ConfirmTarget="Top" runat="server" Text="Delete" Hidden="true">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
<f:Menu ID="Menu7" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit7" OnClick="btnMenuEdit7_Click" EnablePostBack="true"
|
||||
Icon="BulletEdit" runat="server" Text="Modify" Hidden="true">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete7" OnClick="btnMenuDelete7_Click" EnablePostBack="true"
|
||||
Icon="Delete" ConfirmText="Delete selected row ?" ConfirmTarget="Top" runat="server" Text="Delete" Hidden="true">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
|
@ -810,6 +1028,26 @@
|
|||
F(menuID3).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
var menuID4 = '<%= Menu4.ClientID %>';
|
||||
function onRowContextMenu4(event, rowId) {
|
||||
F(menuID4).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
var menuID5 = '<%= Menu5.ClientID %>';
|
||||
function onRowContextMenu5(event, rowId) {
|
||||
F(menuID5).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
var menuID6 = '<%= Menu6.ClientID %>';
|
||||
function onRowContextMenu6(event, rowId) {
|
||||
F(menuID6).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
var menuID7 = '<%= Menu7.ClientID %>';
|
||||
function onRowContextMenu7(event, rowId) {
|
||||
F(menuID7).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
|
|
|
@ -2008,20 +2008,40 @@ namespace FineUIPro.Web.SES
|
|||
if (buttonList.Contains(BLL.Const.BtnManageAdd))
|
||||
{
|
||||
this.btnAddFile3.Hidden = false;
|
||||
this.btnAddFile4.Hidden = false;
|
||||
this.btnAddFile5.Hidden = false;
|
||||
this.btnAddFile6.Hidden = false;
|
||||
this.btnAddFile7.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnManageModify))
|
||||
{
|
||||
this.btnMenuEdit3.Hidden = false;
|
||||
this.Grid3.EnableRowDoubleClickEvent = true;
|
||||
this.btnMenuEdit4.Hidden = false;
|
||||
this.Grid4.EnableRowDoubleClickEvent = true;
|
||||
this.btnMenuEdit5.Hidden = false;
|
||||
this.Grid5.EnableRowDoubleClickEvent = true;
|
||||
this.btnMenuEdit6.Hidden = false;
|
||||
this.Grid6.EnableRowDoubleClickEvent = true;
|
||||
this.btnMenuEdit7.Hidden = false;
|
||||
this.Grid7.EnableRowDoubleClickEvent = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Grid3.EnableRowDoubleClickEvent = false;
|
||||
this.Grid4.EnableRowDoubleClickEvent = false;
|
||||
this.Grid5.EnableRowDoubleClickEvent = false;
|
||||
this.Grid6.EnableRowDoubleClickEvent = false;
|
||||
this.Grid7.EnableRowDoubleClickEvent = false;
|
||||
}
|
||||
|
||||
if (buttonList.Contains(BLL.Const.BtnManageDelete))
|
||||
{
|
||||
this.btnMenuDelete3.Hidden = false;
|
||||
this.btnMenuDelete4.Hidden = false;
|
||||
this.btnMenuDelete5.Hidden = false;
|
||||
this.btnMenuDelete6.Hidden = false;
|
||||
this.btnMenuDelete7.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnManageView))
|
||||
{
|
||||
|
@ -2328,31 +2348,36 @@ namespace FineUIPro.Web.SES
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 合同续签
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
private void BindGrid3(string id)
|
||||
{
|
||||
string strSql = @"SELECT con.FileId,
|
||||
con.FC_ID,
|
||||
con.FileName,
|
||||
con.FileTypeId,
|
||||
con.FileTypeCode,
|
||||
'合同续签' as FileTypeId,
|
||||
con.UploadMan,
|
||||
con.UploadDate,
|
||||
con.Remark,
|
||||
con.AttachUrl,
|
||||
U.UserName AS UploadManName,
|
||||
F.FileType
|
||||
(case when contractor.Contractor is not null
|
||||
then (case when contractor.ContractorCN is not null
|
||||
then contractor.Contractor+' '+contractor.ContractorCN
|
||||
else contractor.Contractor end)
|
||||
else contractor.ContractorCN end) as Contractor,
|
||||
fc.PreviousFO,
|
||||
fc.FO_NO
|
||||
FROM FC_ContractManagement AS con
|
||||
LEFT JOIN Base_FileType AS F ON F.FileTypeId=con.FileTypeId
|
||||
LEFT JOIN Sys_User AS U ON U.UserId = con.UploadMan
|
||||
WHERE con.FC_ID=@id ";
|
||||
LEFT JOIN FC_SESRelatedData AS fc on fc.ID = con.FC_ID
|
||||
left join Base_Contractor as contractor on contractor.ContractorId = fc.Contractor
|
||||
WHERE con.FileTypeId='1' and con.FC_ID=@id ";
|
||||
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@id", id));
|
||||
//if (drpFileType3.SelectedValue != Const._Null)
|
||||
//{
|
||||
// strSql += " AND con.FileTypeId=@FileType";
|
||||
// listStr.Add(new SqlParameter("@FileType", drpFileType3.SelectedValue));
|
||||
//}
|
||||
strSql += " ORDER BY con.UploadDate DESC";
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
|
||||
|
@ -2373,6 +2398,221 @@ namespace FineUIPro.Web.SES
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 费用增补
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
private void BindGrid4(string id)
|
||||
{
|
||||
string strSql = @"SELECT con.FileId,
|
||||
con.FC_ID,
|
||||
con.FileName,
|
||||
'费用增补' as FileTypeId,
|
||||
con.UploadMan,
|
||||
con.UploadDate,
|
||||
con.Remark,
|
||||
con.AttachUrl,
|
||||
U.UserName AS UploadManName,
|
||||
SupplementedBudget,
|
||||
TotalBudget,
|
||||
(case when contractor.Contractor is not null
|
||||
then (case when contractor.ContractorCN is not null
|
||||
then contractor.Contractor+' '+contractor.ContractorCN
|
||||
else contractor.Contractor end)
|
||||
else contractor.ContractorCN end) as Contractor,
|
||||
fc.FO_NO,
|
||||
fc.InitialBudget
|
||||
FROM FC_ContractManagement AS con
|
||||
LEFT JOIN Sys_User AS U ON U.UserId = con.UploadMan
|
||||
LEFT JOIN FC_SESRelatedData AS fc on fc.ID = con.FC_ID
|
||||
left join Base_Contractor as contractor on contractor.ContractorId = fc.Contractor
|
||||
WHERE con.FileTypeId='2' and con.FC_ID=@id ";
|
||||
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@id", id));
|
||||
strSql += " ORDER BY con.UploadDate DESC";
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid4.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid4, tb);
|
||||
Grid4.DataSource = table;
|
||||
Grid4.DataBind();
|
||||
|
||||
for (int i = 0; i < Grid4.Rows.Count; i++)
|
||||
{
|
||||
System.Web.UI.WebControls.LinkButton lbtnUrl = ((System.Web.UI.WebControls.LinkButton)(this.Grid4.Rows[i].FindControl("lbtnUrl3")));
|
||||
string url = lbtnUrl.CommandArgument.ToString();
|
||||
if (!string.IsNullOrEmpty(url))
|
||||
{
|
||||
url = url.Replace('\\', '/');
|
||||
lbtnUrl.Text = BLL.UploadAttachmentService.ShowAttachment("../", url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 份额变更
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
private void BindGrid5(string id)
|
||||
{
|
||||
string strSql = @"SELECT con.FileId,
|
||||
con.FC_ID,
|
||||
con.FileName,
|
||||
'份额变更' as FileTypeId,
|
||||
con.UploadMan,
|
||||
con.UploadDate,
|
||||
con.Remark,
|
||||
con.AttachUrl,
|
||||
U.UserName AS UploadManName,
|
||||
SupplementedBudget,
|
||||
TotalBudget,
|
||||
(case when contractor.Contractor is not null
|
||||
then (case when contractor.ContractorCN is not null
|
||||
then contractor.Contractor+' '+contractor.ContractorCN
|
||||
else contractor.Contractor end)
|
||||
else contractor.ContractorCN end) as Contractor,
|
||||
fc.FO_NO,
|
||||
fc.InitialBudget,
|
||||
(fc.Proportion_of_FC_Definition*100.0) as CurrentAllocation
|
||||
FROM FC_ContractManagement AS con
|
||||
LEFT JOIN Sys_User AS U ON U.UserId = con.UploadMan
|
||||
LEFT JOIN FC_SESRelatedData AS fc on fc.ID = con.FC_ID
|
||||
left join Base_Contractor as contractor on contractor.ContractorId = fc.Contractor
|
||||
WHERE con.FileTypeId='3' and con.FC_ID=@id ";
|
||||
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@id", id));
|
||||
strSql += " ORDER BY con.UploadDate DESC";
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid5.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid5, tb);
|
||||
Grid5.DataSource = table;
|
||||
Grid5.DataBind();
|
||||
|
||||
for (int i = 0; i < Grid5.Rows.Count; i++)
|
||||
{
|
||||
System.Web.UI.WebControls.LinkButton lbtnUrl = ((System.Web.UI.WebControls.LinkButton)(this.Grid5.Rows[i].FindControl("lbtnUrl4")));
|
||||
string url = lbtnUrl.CommandArgument.ToString();
|
||||
if (!string.IsNullOrEmpty(url))
|
||||
{
|
||||
url = url.Replace('\\', '/');
|
||||
lbtnUrl.Text = BLL.UploadAttachmentService.ShowAttachment("../", url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 短期续延
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
private void BindGrid6(string id)
|
||||
{
|
||||
string strSql = @"SELECT con.FileId,
|
||||
con.FC_ID,
|
||||
con.FileName,
|
||||
'短期续延' as FileTypeId,
|
||||
con.UploadMan,
|
||||
con.UploadDate,
|
||||
con.Remark,
|
||||
con.AttachUrl,
|
||||
U.UserName AS UploadManName,
|
||||
SupplementedBudget,
|
||||
TotalBudget,
|
||||
(case when contractor.Contractor is not null
|
||||
then (case when contractor.ContractorCN is not null
|
||||
then contractor.Contractor+' '+contractor.ContractorCN
|
||||
else contractor.Contractor end)
|
||||
else contractor.ContractorCN end) as Contractor,
|
||||
fc.FO_NO,
|
||||
StartDate,
|
||||
EndDate
|
||||
FROM FC_ContractManagement AS con
|
||||
LEFT JOIN Sys_User AS U ON U.UserId = con.UploadMan
|
||||
LEFT JOIN FC_SESRelatedData AS fc on fc.ID = con.FC_ID
|
||||
left join Base_Contractor as contractor on contractor.ContractorId = fc.Contractor
|
||||
WHERE con.FileTypeId='4' and con.FC_ID=@id ";
|
||||
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@id", id));
|
||||
strSql += " ORDER BY con.UploadDate DESC";
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid6.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid6, tb);
|
||||
Grid6.DataSource = table;
|
||||
Grid6.DataBind();
|
||||
|
||||
for (int i = 0; i < Grid6.Rows.Count; i++)
|
||||
{
|
||||
System.Web.UI.WebControls.LinkButton lbtnUrl = ((System.Web.UI.WebControls.LinkButton)(this.Grid6.Rows[i].FindControl("lbtnUrl5")));
|
||||
string url = lbtnUrl.CommandArgument.ToString();
|
||||
if (!string.IsNullOrEmpty(url))
|
||||
{
|
||||
url = url.Replace('\\', '/');
|
||||
lbtnUrl.Text = BLL.UploadAttachmentService.ShowAttachment("../", url);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 承包商EHSQ审计报告
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
private void BindGrid7(string id)
|
||||
{
|
||||
string strSql = @"SELECT con.FileId,
|
||||
con.FC_ID,
|
||||
con.FileName,
|
||||
'EHSQ审计报告' as FileTypeId,
|
||||
con.UploadMan,
|
||||
con.UploadDate,
|
||||
con.Remark,
|
||||
con.AttachUrl,
|
||||
U.UserName AS UploadManName,
|
||||
(case when contractor.Contractor is not null
|
||||
then (case when contractor.ContractorCN is not null
|
||||
then contractor.Contractor+' '+contractor.ContractorCN
|
||||
else contractor.Contractor end)
|
||||
else contractor.ContractorCN end) as Contractor,
|
||||
fc.FO_NO,
|
||||
AuditDate,
|
||||
con.AuditResult,
|
||||
t.Type as ContractorType
|
||||
FROM FC_ContractManagement AS con
|
||||
LEFT JOIN Sys_User AS U ON U.UserId = con.UploadMan
|
||||
LEFT JOIN FC_SESRelatedData AS fc on fc.ID = con.FC_ID
|
||||
left join Base_Contractor as contractor on contractor.ContractorId = fc.Contractor
|
||||
left join Base_Type as t on t.TypeId = fc.Type
|
||||
WHERE con.FileTypeId='5' and con.FC_ID=@id ";
|
||||
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@id", id));
|
||||
strSql += " ORDER BY con.UploadDate DESC";
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid7.RecordCount = tb.Rows.Count;
|
||||
var table = this.GetPagedDataTable(Grid7, tb);
|
||||
Grid7.DataSource = table;
|
||||
Grid7.DataBind();
|
||||
|
||||
for (int i = 0; i < Grid7.Rows.Count; i++)
|
||||
{
|
||||
System.Web.UI.WebControls.LinkButton lbtnUrl = ((System.Web.UI.WebControls.LinkButton)(this.Grid7.Rows[i].FindControl("lbtnUrl6")));
|
||||
string url = lbtnUrl.CommandArgument.ToString();
|
||||
if (!string.IsNullOrEmpty(url))
|
||||
{
|
||||
url = url.Replace('\\', '/');
|
||||
lbtnUrl.Text = BLL.UploadAttachmentService.ShowAttachment("../", url);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 选项卡改变事件
|
||||
|
@ -2405,14 +2645,77 @@ namespace FineUIPro.Web.SES
|
|||
|
||||
if (this.TabStrip1.ActiveTabIndex == 0)
|
||||
{
|
||||
|
||||
BindGrid2(this.hdID.Text);
|
||||
|
||||
}
|
||||
else if (this.TabStrip1.ActiveTabIndex == 1)
|
||||
{
|
||||
if (this.TabStrip2.ActiveTabIndex == 0)
|
||||
{
|
||||
BindGrid3(this.hdID.Text);
|
||||
}
|
||||
else if (this.TabStrip2.ActiveTabIndex == 1)
|
||||
{
|
||||
BindGrid4(this.hdID.Text);
|
||||
}
|
||||
else if (this.TabStrip2.ActiveTabIndex == 2)
|
||||
{
|
||||
BindGrid5(this.hdID.Text);
|
||||
}
|
||||
else if (this.TabStrip2.ActiveTabIndex == 3)
|
||||
{
|
||||
BindGrid6(this.hdID.Text);
|
||||
}
|
||||
else if (this.TabStrip2.ActiveTabIndex == 4)
|
||||
{
|
||||
BindGrid7(this.hdID.Text);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void TabStrip2_TabIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.hdID.Text = string.Empty;
|
||||
if (!string.IsNullOrEmpty(this.Grid1.SelectedRowID))
|
||||
{
|
||||
this.hdID.Text = this.Grid1.SelectedRowID;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(Grid1.Rows[0].RowID))
|
||||
{
|
||||
this.hdID.Text = Grid1.Rows[0].RowID;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.hdID.Text))
|
||||
{
|
||||
var sESRelatedData = BLL.SESRelatedDataService.GetSESRelatedDataById(this.hdID.Text);
|
||||
if (sESRelatedData != null)
|
||||
{
|
||||
string cruUser = CurrUser.UserId;
|
||||
string mcdeptLeader = string.Empty;
|
||||
|
||||
if (this.TabStrip2.ActiveTabIndex == 0)
|
||||
{
|
||||
BindGrid3(this.hdID.Text);
|
||||
}
|
||||
else if (this.TabStrip2.ActiveTabIndex == 1)
|
||||
{
|
||||
BindGrid4(this.hdID.Text);
|
||||
}
|
||||
else if (this.TabStrip2.ActiveTabIndex == 2)
|
||||
{
|
||||
BindGrid5(this.hdID.Text);
|
||||
}
|
||||
else if (this.TabStrip2.ActiveTabIndex == 3)
|
||||
{
|
||||
BindGrid6(this.hdID.Text);
|
||||
}
|
||||
else if (this.TabStrip2.ActiveTabIndex == 4)
|
||||
{
|
||||
BindGrid7(this.hdID.Text);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2536,6 +2839,7 @@ namespace FineUIPro.Web.SES
|
|||
// //PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage.aspx?id={0}", Id, "编辑 - ")));
|
||||
//}
|
||||
|
||||
#region 合同续签
|
||||
protected void btnAddFile3_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
|
@ -2543,13 +2847,7 @@ namespace FineUIPro.Web.SES
|
|||
Alert.ShowInParent("Please select FC Record!");
|
||||
return;
|
||||
}
|
||||
//if (drpFileType3Select.SelectedValue == Const._Null)
|
||||
//{
|
||||
// Alert.ShowInParent("Please select FileType!");
|
||||
// return;
|
||||
//}
|
||||
string Id = Grid1.SelectedRowID;
|
||||
//PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader3.aspx?type=add&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}&mainTableId={2}", drpFileType3Select.SelectedValue, BLL.Const.SESRelatedDateMenuId, Grid1.SelectedRowID)));
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage.aspx?id={0}", Id, "编辑 - ")));
|
||||
}
|
||||
|
||||
|
@ -2576,8 +2874,7 @@ namespace FineUIPro.Web.SES
|
|||
return;
|
||||
}
|
||||
string fileId = Grid3.SelectedRowID;
|
||||
//PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader3.aspx?type=edit&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", fileId, BLL.Const.SESRelatedDateMenuId)));
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage.aspx?fileId={0}", fileId, "编辑 - ")));
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage.aspx?fileId={0}", fileId, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -2599,15 +2896,263 @@ namespace FineUIPro.Web.SES
|
|||
}
|
||||
}
|
||||
BindGrid3(this.hdID.Text);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Delete Contract Management");
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "删除合同续签");
|
||||
ShowNotify("Deleted successfully!");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
//protected void drpFileType3_OnSelectedIndexChanged(object sender, EventArgs e)
|
||||
//{
|
||||
// BindGrid3(this.hdID.Text);
|
||||
//}
|
||||
#region 费用增补
|
||||
protected void btnAddFile4_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInParent("Please select FC Record!");
|
||||
return;
|
||||
}
|
||||
string Id = Grid1.SelectedRowID;
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage2.aspx?id={0}", Id, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid4_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
btnMenuEdit4_Click(null, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3右键编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuEdit4_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid4.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInParent("Please select at least one record!");
|
||||
return;
|
||||
}
|
||||
string fileId = Grid4.SelectedRowID;
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage2.aspx?fileId={0}", fileId, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3右键删除
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete4_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid4.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
foreach (int rowIndex in Grid4.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid4.DataKeys[rowIndex][0].ToString();
|
||||
var contracts = BLL.ContractManagementService.GetContractManagementById(rowID);
|
||||
if (contracts != null)
|
||||
{
|
||||
BLL.ContractManagementService.DeleteContractManagementById(rowID);
|
||||
}
|
||||
}
|
||||
BindGrid4(this.hdID.Text);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "删除费用增补");
|
||||
ShowNotify("Deleted successfully!");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 份额变更
|
||||
protected void btnAddFile5_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInParent("Please select FC Record!");
|
||||
return;
|
||||
}
|
||||
string Id = Grid1.SelectedRowID;
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage3.aspx?id={0}", Id, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid5_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
btnMenuEdit5_Click(null, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3右键编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuEdit5_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid5.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInParent("Please select at least one record!");
|
||||
return;
|
||||
}
|
||||
string fileId = Grid5.SelectedRowID;
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage3.aspx?fileId={0}", fileId, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3右键删除
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete5_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid5.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
foreach (int rowIndex in Grid5.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid5.DataKeys[rowIndex][0].ToString();
|
||||
var contracts = BLL.ContractManagementService.GetContractManagementById(rowID);
|
||||
if (contracts != null)
|
||||
{
|
||||
BLL.ContractManagementService.DeleteContractManagementById(rowID);
|
||||
}
|
||||
}
|
||||
BindGrid5(this.hdID.Text);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "删除份额变更");
|
||||
ShowNotify("Deleted successfully!");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 短期续延
|
||||
protected void btnAddFile6_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInParent("Please select FC Record!");
|
||||
return;
|
||||
}
|
||||
string Id = Grid1.SelectedRowID;
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage4.aspx?id={0}", Id, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid6_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
btnMenuEdit6_Click(null, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3右键编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuEdit6_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid6.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInParent("Please select at least one record!");
|
||||
return;
|
||||
}
|
||||
string fileId = Grid6.SelectedRowID;
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage4.aspx?fileId={0}", fileId, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3右键删除
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete6_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid6.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
foreach (int rowIndex in Grid6.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid6.DataKeys[rowIndex][0].ToString();
|
||||
var contracts = BLL.ContractManagementService.GetContractManagementById(rowID);
|
||||
if (contracts != null)
|
||||
{
|
||||
BLL.ContractManagementService.DeleteContractManagementById(rowID);
|
||||
}
|
||||
}
|
||||
BindGrid6(this.hdID.Text);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "删除短期续延");
|
||||
ShowNotify("Deleted successfully!");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 承包商EHSQ审计报告
|
||||
protected void btnAddFile7_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInParent("Please select FC Record!");
|
||||
return;
|
||||
}
|
||||
string Id = Grid1.SelectedRowID;
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage5.aspx?id={0}", Id, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid7_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
btnMenuEdit7_Click(null, null);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3右键编辑
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuEdit7_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid7.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInParent("Please select at least one record!");
|
||||
return;
|
||||
}
|
||||
string fileId = Grid7.SelectedRowID;
|
||||
PageContext.RegisterStartupScript(Window5.GetShowReference(String.Format("SESRelatedDataContractManage5.aspx?fileId={0}", fileId, "编辑 - ")));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid3右键删除
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete7_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Grid7.SelectedRowIndexArray.Length > 0)
|
||||
{
|
||||
foreach (int rowIndex in Grid7.SelectedRowIndexArray)
|
||||
{
|
||||
string rowID = Grid7.DataKeys[rowIndex][0].ToString();
|
||||
var contracts = BLL.ContractManagementService.GetContractManagementById(rowID);
|
||||
if (contracts != null)
|
||||
{
|
||||
BLL.ContractManagementService.DeleteContractManagementById(rowID);
|
||||
}
|
||||
}
|
||||
BindGrid7(this.hdID.Text);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "删除承包商EHSQ审计报告");
|
||||
ShowNotify("Deleted successfully!");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 关闭弹出窗体
|
||||
|
@ -2617,6 +3162,10 @@ namespace FineUIPro.Web.SES
|
|||
protected void Window5_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
BindGrid3(this.hdID.Text);
|
||||
BindGrid4(this.hdID.Text);
|
||||
BindGrid5(this.hdID.Text);
|
||||
BindGrid6(this.hdID.Text);
|
||||
BindGrid7(this.hdID.Text);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
@ -2842,9 +3391,5 @@ namespace FineUIPro.Web.SES
|
|||
|
||||
}
|
||||
|
||||
protected void TabStrip2_TabIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
|
@ -932,6 +932,60 @@ namespace FineUIPro.Web.SES
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Tab Tab2;
|
||||
|
||||
/// <summary>
|
||||
/// Grid4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid4;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar4;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill5;
|
||||
|
||||
/// <summary>
|
||||
/// btnAddFile4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAddFile4;
|
||||
|
||||
/// <summary>
|
||||
/// Label3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label3;
|
||||
|
||||
/// <summary>
|
||||
/// lbtnUrl3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtnUrl3;
|
||||
|
||||
/// <summary>
|
||||
/// Tab3 控件。
|
||||
/// </summary>
|
||||
|
@ -941,6 +995,60 @@ namespace FineUIPro.Web.SES
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Tab Tab3;
|
||||
|
||||
/// <summary>
|
||||
/// Grid5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid5;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar5;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill6;
|
||||
|
||||
/// <summary>
|
||||
/// btnAddFile5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAddFile5;
|
||||
|
||||
/// <summary>
|
||||
/// Label4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label4;
|
||||
|
||||
/// <summary>
|
||||
/// lbtnUrl4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtnUrl4;
|
||||
|
||||
/// <summary>
|
||||
/// Tab4 控件。
|
||||
/// </summary>
|
||||
|
@ -950,6 +1058,60 @@ namespace FineUIPro.Web.SES
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Tab Tab4;
|
||||
|
||||
/// <summary>
|
||||
/// Grid6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid6;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar7;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill7;
|
||||
|
||||
/// <summary>
|
||||
/// btnAddFile6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAddFile6;
|
||||
|
||||
/// <summary>
|
||||
/// Label5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label5;
|
||||
|
||||
/// <summary>
|
||||
/// lbtnUrl5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtnUrl5;
|
||||
|
||||
/// <summary>
|
||||
/// Tab5 控件。
|
||||
/// </summary>
|
||||
|
@ -959,6 +1121,60 @@ namespace FineUIPro.Web.SES
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Tab Tab5;
|
||||
|
||||
/// <summary>
|
||||
/// Grid7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid7;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar8;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill8 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill8;
|
||||
|
||||
/// <summary>
|
||||
/// btnAddFile7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAddFile7;
|
||||
|
||||
/// <summary>
|
||||
/// Label6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label6;
|
||||
|
||||
/// <summary>
|
||||
/// lbtnUrl6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.LinkButton lbtnUrl6;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
|
@ -1093,5 +1309,113 @@ namespace FineUIPro.Web.SES
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete3;
|
||||
|
||||
/// <summary>
|
||||
/// Menu4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu4;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit4;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete4;
|
||||
|
||||
/// <summary>
|
||||
/// Menu5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu5;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit5;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete5;
|
||||
|
||||
/// <summary>
|
||||
/// Menu6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu6;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit6;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete6 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete6;
|
||||
|
||||
/// <summary>
|
||||
/// Menu7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu7;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit7;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuDelete7 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuDelete7;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Contract Management</title>
|
||||
<title>合同续签</title>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
|
@ -13,43 +13,40 @@
|
|||
<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="drpFileType" runat="server" Label="文件类型" LabelWidth="140px" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="drpFileType_SelectedIndexChanged"></f:DropDownList>
|
||||
<f:DatePicker ID="txtOccurDate" runat="server" Label="发生日期" LabelWidth="140px" ></f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtFileType" runat="server" Label="文件类型" Text="合同续签" Readonly="true" LabelWidth="140px" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
<f:TextBox ID="txtFileName" runat="server" Label="文件编号" Required="true" ShowRedStar="true" MaxLength="200" LabelWidth="140px" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpBycDept" runat="server" Label="BYC负责部门" LabelWidth="140px" EnableEdit="true"></f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUploadMan" runat="server" Label="上传人" LabelWidth="140px" ></f:DropDownList>
|
||||
<f:DatePicker ID="txtUploadDate" runat="server" Label="上传日期" LabelWidth="140px" Readonly="true"></f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtContractor" runat="server" Label="承包商名称" MaxLength="200" LabelWidth="140px" Readonly="true">
|
||||
<f:DropDownList ID="drpUploadMan" runat="server" Label="上传人" LabelWidth="140px"></f:DropDownList>
|
||||
<f:TextBox ID="txtContractor" runat="server" Label="承包商名称" MaxLength="200" LabelWidth="140px" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="描述" MaxLength="500" LabelWidth="140px"></f:TextArea>
|
||||
<f:TextBox ID="txtPreviousFO" runat="server" Label="上一轮合同号" LabelWidth="140px" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtFO" runat="server" Label="合同号" LabelWidth="140px" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="描述/备注" MaxLength="500" LabelWidth="140px"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="lblAttach" runat="server" Label="上传附件">
|
||||
<f:Label ID="lblAttach" runat="server" Label="上传附件" LabelWidth="140px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
|
||||
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
|
@ -62,7 +59,7 @@
|
|||
<f:HiddenField ID="hdAttachUrl" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:HiddenField ID="hdId" runat="server"></f:HiddenField>
|
||||
<f:TextBox ID="txtFoNo" runat="server" Hidden="true" Width="0"></f:TextBox>
|
||||
<%--<f:TextBox ID="txtFoNo" runat="server" Hidden="true" Width="0"></f:TextBox>--%>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="Save" ToolTip="Save" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
|
|
|
@ -18,9 +18,6 @@ namespace FineUIPro.Web.SES
|
|||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
||||
//文件类型
|
||||
BLL.FileTypeService.InitFileTypeDropDownList(this.drpFileType, true);
|
||||
BLL.DepartService.InitDropDownList(this.drpBycDept, true);//BYC负责部门
|
||||
//上传人
|
||||
BLL.Sys_UserService.InitUserDropDownList(this.drpUploadMan, true);
|
||||
if (CurrUser.Account == Const.Gly)
|
||||
|
@ -40,6 +37,11 @@ namespace FineUIPro.Web.SES
|
|||
if (file != null)
|
||||
{
|
||||
this.hdId.Text = file.FileId;
|
||||
this.txtFileName.Text = file.FileName;
|
||||
if (!string.IsNullOrEmpty(file.UploadMan))
|
||||
{
|
||||
this.drpUploadMan.SelectedValue = file.UploadMan;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(file.FC_ID.ToString()))
|
||||
{
|
||||
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(file.FC_ID.ToString());
|
||||
|
@ -64,25 +66,10 @@ namespace FineUIPro.Web.SES
|
|||
txtContractor.Text = contractor;
|
||||
|
||||
}
|
||||
txtFoNo.Text = data.FO_NO;
|
||||
this.txtPreviousFO.Text = data.PreviousFO;
|
||||
txtFO.Text = data.FO_NO;
|
||||
}
|
||||
}
|
||||
this.txtFileName.Text = file.FileName;
|
||||
if (!string.IsNullOrEmpty(file.FileTypeId))
|
||||
{
|
||||
this.drpFileType.SelectedValue = file.FileTypeId;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(file.BycDept))
|
||||
{
|
||||
this.drpBycDept.SelectedValue = file.BycDept;
|
||||
}
|
||||
//this.txtFileTypeCode.Text = file.FileTypeCode;
|
||||
if (!string.IsNullOrEmpty(file.UploadMan))
|
||||
{
|
||||
this.drpUploadMan.SelectedValue = file.UploadMan;
|
||||
}
|
||||
this.txtUploadDate.Text = file.UploadDate.HasValue ? string.Format("{0:yyyy-MM-dd}", file.UploadDate) : "";
|
||||
this.txtOccurDate.Text = file.OccurDate.HasValue ? string.Format("{0:yyyy-MM-dd}", file.OccurDate) : "";
|
||||
this.txtRemark.Text = file.Remark;
|
||||
}
|
||||
}
|
||||
|
@ -112,11 +99,13 @@ namespace FineUIPro.Web.SES
|
|||
}
|
||||
txtContractor.Text = contractor;
|
||||
}
|
||||
this.txtPreviousFO.Text = data.PreviousFO;
|
||||
this.txtFO.Text = data.FO_NO;
|
||||
}
|
||||
txtFoNo.Text = data.FO_NO;
|
||||
}
|
||||
this.drpUploadMan.SelectedValue = this.CurrUser.UserId;
|
||||
this.txtUploadDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
|
||||
string code = SQLHelper.RunProcNewId("SpGetNewCode3", "dbo.FC_ContractManagement", "FileName", "合同续签-" + txtFO.Text + "-");
|
||||
txtFileName.Text = code;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -134,22 +123,13 @@ namespace FineUIPro.Web.SES
|
|||
string fileId = Request.Params["fileId"];
|
||||
Model.FC_ContractManagement newContract = new Model.FC_ContractManagement();
|
||||
newContract.FC_ID = Convert.ToInt32(id);
|
||||
newContract.FileTypeId = "1";//合同续签
|
||||
newContract.FileName = this.txtFileName.Text.Trim();
|
||||
if (this.drpFileType.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newContract.FileTypeId = this.drpFileType.SelectedValue;
|
||||
}
|
||||
//newContract.FileTypeCode = this.txtFileTypeCode.Text.Trim();
|
||||
if (this.drpUploadMan.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newContract.UploadMan = this.drpUploadMan.SelectedValue;
|
||||
}
|
||||
if (this.drpBycDept.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newContract.BycDept = this.drpBycDept.SelectedValue;
|
||||
}
|
||||
newContract.OccurDate = Funs.GetNewDateTime(this.txtOccurDate.Text.Trim());
|
||||
newContract.UploadDate = Funs.GetNewDateTime(this.txtUploadDate.Text.Trim());
|
||||
newContract.UploadDate = DateTime.Now;
|
||||
newContract.Remark = this.txtRemark.Text.Trim();
|
||||
if (!string.IsNullOrEmpty(fileId))
|
||||
{
|
||||
|
@ -160,7 +140,7 @@ namespace FineUIPro.Web.SES
|
|||
newContract.AttachUrl = att.First().AttachUrl;
|
||||
}
|
||||
BLL.ContractManagementService.UpdateContractManagement(newContract);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Modify Contract Management!");
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "修改合同续签!");
|
||||
ShowNotify("Save successfully!", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
|
@ -180,9 +160,8 @@ namespace FineUIPro.Web.SES
|
|||
{
|
||||
newContract.AttachUrl = att.First().AttachUrl;
|
||||
}
|
||||
|
||||
BLL.ContractManagementService.AddContractManagement(newContract);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Add Contract Management!");
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "增加合同续签!");
|
||||
ShowNotify("Save successfully!", MessageBoxIcon.Success);
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
|
@ -204,15 +183,5 @@ namespace FineUIPro.Web.SES
|
|||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void drpFileType_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
string fileId = Request.Params["fileId"];
|
||||
if (string.IsNullOrEmpty(fileId))
|
||||
{
|
||||
string code = SQLHelper.RunProcNewId("SpGetNewCode3", "dbo.FC_ContractManagement", "FileName", drpFileType.SelectedText + "-" + txtFoNo.Text + "-");
|
||||
txtFileName.Text = code;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.SES {
|
||||
|
||||
|
||||
public partial class SESRelatedDataContractManage {
|
||||
|
||||
namespace FineUIPro.Web.SES
|
||||
{
|
||||
|
||||
|
||||
public partial class SESRelatedDataContractManage
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
|
@ -38,25 +40,16 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpFileType 控件。
|
||||
/// txtFileType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpFileType;
|
||||
|
||||
/// <summary>
|
||||
/// txtOccurDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtOccurDate;
|
||||
|
||||
protected global::FineUIPro.TextBox txtFileType;
|
||||
|
||||
/// <summary>
|
||||
/// txtFileName 控件。
|
||||
/// </summary>
|
||||
|
@ -65,16 +58,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFileName;
|
||||
|
||||
/// <summary>
|
||||
/// drpBycDept 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpBycDept;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpUploadMan 控件。
|
||||
/// </summary>
|
||||
|
@ -83,16 +67,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUploadMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtUploadDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtUploadDate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtContractor 控件。
|
||||
/// </summary>
|
||||
|
@ -101,7 +76,25 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractor;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPreviousFO 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPreviousFO;
|
||||
|
||||
/// <summary>
|
||||
/// txtFO 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFO;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
|
@ -110,7 +103,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRemark;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
/// </summary>
|
||||
|
@ -119,7 +112,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel3;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// lblAttach 控件。
|
||||
/// </summary>
|
||||
|
@ -128,7 +121,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblAttach;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnAttach 控件。
|
||||
/// </summary>
|
||||
|
@ -137,7 +130,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttach;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
|
@ -146,7 +139,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdAttachUrl 控件。
|
||||
/// </summary>
|
||||
|
@ -155,7 +148,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdAttachUrl;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// hdId 控件。
|
||||
/// </summary>
|
||||
|
@ -164,16 +157,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdId;
|
||||
|
||||
/// <summary>
|
||||
/// txtFoNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFoNo;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
@ -182,7 +166,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
|
@ -191,7 +175,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
|
@ -200,7 +184,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -0,0 +1,84 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SESRelatedDataContractManage2.aspx.cs" Inherits="FineUIPro.Web.SES.SESRelatedDataContractManage2" %>
|
||||
|
||||
<!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">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtFileType" runat="server" Label="文件类型" Text="费用增补" Readonly="true" LabelWidth="140px" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
<f:TextBox ID="txtFileName" runat="server" Label="文件编号" Required="true" ShowRedStar="true" MaxLength="200" LabelWidth="140px" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUploadMan" runat="server" Label="上传人" LabelWidth="140px"></f:DropDownList>
|
||||
<f:TextBox ID="txtContractor" runat="server" Label="承包商名称" MaxLength="200" LabelWidth="140px" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtFO" runat="server" Label="合同号" LabelWidth="140px" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:NumberBox ID="txtInitialBudget" runat="server" Label="Initial budget" LabelWidth="140px" Readonly="true"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtSupplementedBudget" runat="server" Label="Supplemented budget" LabelWidth="140px" NoNegative="true"></f:NumberBox>
|
||||
<f:NumberBox ID="txtTotalBudget" runat="server" Label="Total budget" LabelWidth="140px" NoNegative="true"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="描述/备注" MaxLength="500" LabelWidth="140px"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="lblAttach" runat="server" Label="上传附件" LabelWidth="140px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:HiddenField ID="hdAttachUrl" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:HiddenField ID="hdId" runat="server"></f:HiddenField>
|
||||
<%--<f:TextBox ID="txtFoNo" runat="server" Hidden="true" Width="0"></f:TextBox>--%>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="Save" ToolTip="Save" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="Close" Text="Close" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,196 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using static NPOI.SS.Formula.PTG.ArrayPtg;
|
||||
|
||||
namespace FineUIPro.Web.SES
|
||||
{
|
||||
public partial class SESRelatedDataContractManage2 : PageBase
|
||||
{
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
||||
//上传人
|
||||
BLL.Sys_UserService.InitUserDropDownList(this.drpUploadMan, true);
|
||||
if (CurrUser.Account == Const.Gly)
|
||||
{
|
||||
drpUploadMan.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
drpUploadMan.SelectedValue = CurrUser.UserId;
|
||||
drpUploadMan.Enabled = false;
|
||||
}
|
||||
|
||||
string fileId = Request.Params["fileId"];
|
||||
if (!string.IsNullOrEmpty(fileId))
|
||||
{
|
||||
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
|
||||
if (file != null)
|
||||
{
|
||||
this.hdId.Text = file.FileId;
|
||||
this.txtFileName.Text = file.FileName;
|
||||
if (!string.IsNullOrEmpty(file.UploadMan))
|
||||
{
|
||||
this.drpUploadMan.SelectedValue = file.UploadMan;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(file.FC_ID.ToString()))
|
||||
{
|
||||
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(file.FC_ID.ToString());
|
||||
if (data != null && !string.IsNullOrEmpty(data.Contractor))
|
||||
{
|
||||
var con = BLL.ContractorService.GetContractorById(data.Contractor);
|
||||
if (con != null)
|
||||
{
|
||||
string contractor = string.Empty;
|
||||
if (string.IsNullOrEmpty(con.Contractor) && !string.IsNullOrEmpty(con.ContractorCN))
|
||||
{
|
||||
contractor = con.ContractorCN;
|
||||
}
|
||||
else if (string.IsNullOrEmpty(con.ContractorCN) && !string.IsNullOrEmpty(con.Contractor))
|
||||
{
|
||||
contractor = con.Contractor;
|
||||
}
|
||||
else
|
||||
{
|
||||
contractor = con.Contractor + " " + con.ContractorCN;
|
||||
}
|
||||
txtContractor.Text = contractor;
|
||||
|
||||
}
|
||||
txtFO.Text = data.FO_NO;
|
||||
this.txtInitialBudget.Text = data.InitialBudget.HasValue ? data.InitialBudget.ToString() : "";
|
||||
this.txtSupplementedBudget.Text = file.SupplementedBudget.HasValue ? file.SupplementedBudget.ToString() : "";
|
||||
this.txtTotalBudget.Text = file.TotalBudget.HasValue ? file.TotalBudget.ToString() : "";
|
||||
}
|
||||
}
|
||||
this.txtRemark.Text = file.Remark;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string id = Request.Params["id"];
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
|
||||
if (data != null)
|
||||
{
|
||||
var con = BLL.ContractorService.GetContractorById(data.Contractor);
|
||||
if (con != null)
|
||||
{
|
||||
string contractor = string.Empty;
|
||||
if (string.IsNullOrEmpty(con.Contractor) && !string.IsNullOrEmpty(con.ContractorCN))
|
||||
{
|
||||
contractor = con.ContractorCN;
|
||||
}
|
||||
else if (string.IsNullOrEmpty(con.ContractorCN) && !string.IsNullOrEmpty(con.Contractor))
|
||||
{
|
||||
contractor = con.Contractor;
|
||||
}
|
||||
else
|
||||
{
|
||||
contractor = con.Contractor + " " + con.ContractorCN;
|
||||
}
|
||||
txtContractor.Text = contractor;
|
||||
}
|
||||
this.txtFO.Text = data.FO_NO;
|
||||
this.txtInitialBudget.Text = data.InitialBudget.HasValue ? data.InitialBudget.ToString() : "";
|
||||
}
|
||||
}
|
||||
this.drpUploadMan.SelectedValue = this.CurrUser.UserId;
|
||||
string code = SQLHelper.RunProcNewId("SpGetNewCode3", "dbo.FC_ContractManagement", "FileName", "费用增补-" + txtFO.Text + "-");
|
||||
txtFileName.Text = code;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 保存
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
string id = Request.Params["id"];
|
||||
string fileId = Request.Params["fileId"];
|
||||
Model.FC_ContractManagement newContract = new Model.FC_ContractManagement();
|
||||
newContract.FC_ID = Convert.ToInt32(id);
|
||||
newContract.FileTypeId = "2";//费用增补
|
||||
newContract.FileName = this.txtFileName.Text.Trim();
|
||||
if (this.drpUploadMan.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newContract.UploadMan = this.drpUploadMan.SelectedValue;
|
||||
}
|
||||
newContract.UploadDate = DateTime.Now;
|
||||
newContract.SupplementedBudget = Funs.GetNewDecimal(this.txtSupplementedBudget.Text.Trim());
|
||||
newContract.TotalBudget = Funs.GetNewDecimal(this.txtTotalBudget.Text.Trim());
|
||||
newContract.Remark = this.txtRemark.Text.Trim();
|
||||
if (!string.IsNullOrEmpty(fileId))
|
||||
{
|
||||
newContract.FileId = fileId;
|
||||
var att = from x in Funs.DB.AttachFile where x.ToKeyId == fileId select x;
|
||||
if (att.Count() > 0)
|
||||
{
|
||||
newContract.AttachUrl = att.First().AttachUrl;
|
||||
}
|
||||
BLL.ContractManagementService.UpdateContractManagement(newContract);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "修改费用增补!");
|
||||
ShowNotify("Save successfully!", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdId.Text))
|
||||
{
|
||||
newContract.FileId = this.hdId.Text.Trim();
|
||||
}
|
||||
else
|
||||
{
|
||||
newContract.FileId = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
|
||||
this.hdId.Text = newContract.FileId;
|
||||
}
|
||||
|
||||
var att = from x in Funs.DB.AttachFile where x.ToKeyId == newContract.FileId select x;
|
||||
if (att.Count() > 0)
|
||||
{
|
||||
newContract.AttachUrl = att.First().AttachUrl;
|
||||
}
|
||||
BLL.ContractManagementService.AddContractManagement(newContract);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "增加费用增补!");
|
||||
ShowNotify("Save successfully!", MessageBoxIcon.Success);
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 附件上传
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttach_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
|
||||
{
|
||||
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,215 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.SES
|
||||
{
|
||||
|
||||
|
||||
public partial class SESRelatedDataContractManage2
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// txtFileType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFileType;
|
||||
|
||||
/// <summary>
|
||||
/// txtFileName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFileName;
|
||||
|
||||
/// <summary>
|
||||
/// drpUploadMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUploadMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractor 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractor;
|
||||
|
||||
/// <summary>
|
||||
/// txtFO 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFO;
|
||||
|
||||
/// <summary>
|
||||
/// txtInitialBudget 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtInitialBudget;
|
||||
|
||||
/// <summary>
|
||||
/// txtSupplementedBudget 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtSupplementedBudget;
|
||||
|
||||
/// <summary>
|
||||
/// txtTotalBudget 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtTotalBudget;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRemark;
|
||||
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel3;
|
||||
|
||||
/// <summary>
|
||||
/// lblAttach 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblAttach;
|
||||
|
||||
/// <summary>
|
||||
/// btnAttach 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttach;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// hdAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// hdId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdId;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,84 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SESRelatedDataContractManage3.aspx.cs" Inherits="FineUIPro.Web.SES.SESRelatedDataContractManage3" %>
|
||||
|
||||
<!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">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtFileType" runat="server" Label="文件类型" Text="份额变更" Readonly="true" LabelWidth="160px" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
<f:TextBox ID="txtFileName" runat="server" Label="文件编号" Required="true" ShowRedStar="true" MaxLength="200" LabelWidth="160px" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUploadMan" runat="server" Label="上传人" LabelWidth="160px"></f:DropDownList>
|
||||
<f:TextBox ID="txtContractor" runat="server" Label="承包商名称" MaxLength="200" LabelWidth="160px" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtFO" runat="server" Label="合同号" LabelWidth="160px" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:NumberBox ID="txtInitialBudget" runat="server" Label="Initial budget" LabelWidth="160px" Readonly="true"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtCurrentAllocation" runat="server" Label="Current allocation(%)" LabelWidth="160px" NoNegative="true"></f:NumberBox>
|
||||
<f:Label ID="Label1" runat="server"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="描述/备注" MaxLength="500" LabelWidth="160px"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="lblAttach" runat="server" Label="上传附件" LabelWidth="160px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:HiddenField ID="hdAttachUrl" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:HiddenField ID="hdId" runat="server"></f:HiddenField>
|
||||
<%--<f:TextBox ID="txtFoNo" runat="server" Hidden="true" Width="0"></f:TextBox>--%>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="Save" ToolTip="Save" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="Close" Text="Close" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,204 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.SES
|
||||
{
|
||||
public partial class SESRelatedDataContractManage3 : PageBase
|
||||
{
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
||||
//上传人
|
||||
BLL.Sys_UserService.InitUserDropDownList(this.drpUploadMan, true);
|
||||
if (CurrUser.Account == Const.Gly)
|
||||
{
|
||||
drpUploadMan.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
drpUploadMan.SelectedValue = CurrUser.UserId;
|
||||
drpUploadMan.Enabled = false;
|
||||
}
|
||||
|
||||
string fileId = Request.Params["fileId"];
|
||||
if (!string.IsNullOrEmpty(fileId))
|
||||
{
|
||||
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
|
||||
if (file != null)
|
||||
{
|
||||
this.hdId.Text = file.FileId;
|
||||
this.txtFileName.Text = file.FileName;
|
||||
if (!string.IsNullOrEmpty(file.UploadMan))
|
||||
{
|
||||
this.drpUploadMan.SelectedValue = file.UploadMan;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(file.FC_ID.ToString()))
|
||||
{
|
||||
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(file.FC_ID.ToString());
|
||||
if (data != null && !string.IsNullOrEmpty(data.Contractor))
|
||||
{
|
||||
var con = BLL.ContractorService.GetContractorById(data.Contractor);
|
||||
if (con != null)
|
||||
{
|
||||
string contractor = string.Empty;
|
||||
if (string.IsNullOrEmpty(con.Contractor) && !string.IsNullOrEmpty(con.ContractorCN))
|
||||
{
|
||||
contractor = con.ContractorCN;
|
||||
}
|
||||
else if (string.IsNullOrEmpty(con.ContractorCN) && !string.IsNullOrEmpty(con.Contractor))
|
||||
{
|
||||
contractor = con.Contractor;
|
||||
}
|
||||
else
|
||||
{
|
||||
contractor = con.Contractor + " " + con.ContractorCN;
|
||||
}
|
||||
txtContractor.Text = contractor;
|
||||
|
||||
}
|
||||
txtFO.Text = data.FO_NO;
|
||||
this.txtInitialBudget.Text = data.InitialBudget.HasValue ? data.InitialBudget.ToString() : "";
|
||||
this.txtCurrentAllocation.Text = data.Proportion_of_FC_Definition.HasValue ? (data.Proportion_of_FC_Definition.Value * Convert.ToDecimal(100.0)).ToString(): "";
|
||||
}
|
||||
}
|
||||
this.txtRemark.Text = file.Remark;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string id = Request.Params["id"];
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
|
||||
if (data != null)
|
||||
{
|
||||
var con = BLL.ContractorService.GetContractorById(data.Contractor);
|
||||
if (con != null)
|
||||
{
|
||||
string contractor = string.Empty;
|
||||
if (string.IsNullOrEmpty(con.Contractor) && !string.IsNullOrEmpty(con.ContractorCN))
|
||||
{
|
||||
contractor = con.ContractorCN;
|
||||
}
|
||||
else if (string.IsNullOrEmpty(con.ContractorCN) && !string.IsNullOrEmpty(con.Contractor))
|
||||
{
|
||||
contractor = con.Contractor;
|
||||
}
|
||||
else
|
||||
{
|
||||
contractor = con.Contractor + " " + con.ContractorCN;
|
||||
}
|
||||
txtContractor.Text = contractor;
|
||||
}
|
||||
this.txtFO.Text = data.FO_NO;
|
||||
this.txtInitialBudget.Text = data.InitialBudget.HasValue ? data.InitialBudget.ToString() : "";
|
||||
this.txtCurrentAllocation.Text = data.Proportion_of_FC_Definition.HasValue ? (data.Proportion_of_FC_Definition.Value * Convert.ToDecimal(100.0)).ToString() : "";
|
||||
}
|
||||
}
|
||||
this.drpUploadMan.SelectedValue = this.CurrUser.UserId;
|
||||
string code = SQLHelper.RunProcNewId("SpGetNewCode3", "dbo.FC_ContractManagement", "FileName", "份额变更-" + txtFO.Text + "-");
|
||||
txtFileName.Text = code;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 保存
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
string id = Request.Params["id"];
|
||||
string fileId = Request.Params["fileId"];
|
||||
Model.FC_ContractManagement newContract = new Model.FC_ContractManagement();
|
||||
newContract.FC_ID = Convert.ToInt32(id);
|
||||
newContract.FileTypeId = "3";//份额变更
|
||||
newContract.FileName = this.txtFileName.Text.Trim();
|
||||
if (this.drpUploadMan.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newContract.UploadMan = this.drpUploadMan.SelectedValue;
|
||||
}
|
||||
newContract.UploadDate = DateTime.Now;
|
||||
newContract.Remark = this.txtRemark.Text.Trim();
|
||||
if (!string.IsNullOrEmpty(fileId))
|
||||
{
|
||||
newContract.FileId = fileId;
|
||||
var att = from x in Funs.DB.AttachFile where x.ToKeyId == fileId select x;
|
||||
if (att.Count() > 0)
|
||||
{
|
||||
newContract.AttachUrl = att.First().AttachUrl;
|
||||
}
|
||||
BLL.ContractManagementService.UpdateContractManagement(newContract);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "修改份额变更!");
|
||||
ShowNotify("Save successfully!", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdId.Text))
|
||||
{
|
||||
newContract.FileId = this.hdId.Text.Trim();
|
||||
}
|
||||
else
|
||||
{
|
||||
newContract.FileId = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
|
||||
this.hdId.Text = newContract.FileId;
|
||||
}
|
||||
|
||||
var att = from x in Funs.DB.AttachFile where x.ToKeyId == newContract.FileId select x;
|
||||
if (att.Count() > 0)
|
||||
{
|
||||
newContract.AttachUrl = att.First().AttachUrl;
|
||||
}
|
||||
BLL.ContractManagementService.AddContractManagement(newContract);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "增加份额变更!");
|
||||
ShowNotify("Save successfully!", MessageBoxIcon.Success);
|
||||
}
|
||||
//回写Current Allocation值
|
||||
var sESRelatedData = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
|
||||
if (sESRelatedData != null)
|
||||
{
|
||||
decimal? value = Funs.GetNewDecimal(this.txtCurrentAllocation.Text.Trim());
|
||||
if (value != null)
|
||||
{
|
||||
sESRelatedData.Proportion_of_FC_Definition = value / Convert.ToDecimal(100.0);
|
||||
}
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 附件上传
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttach_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
|
||||
{
|
||||
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,215 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.SES
|
||||
{
|
||||
|
||||
|
||||
public partial class SESRelatedDataContractManage3
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// txtFileType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFileType;
|
||||
|
||||
/// <summary>
|
||||
/// txtFileName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFileName;
|
||||
|
||||
/// <summary>
|
||||
/// drpUploadMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUploadMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractor 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractor;
|
||||
|
||||
/// <summary>
|
||||
/// txtFO 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFO;
|
||||
|
||||
/// <summary>
|
||||
/// txtInitialBudget 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtInitialBudget;
|
||||
|
||||
/// <summary>
|
||||
/// txtCurrentAllocation 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtCurrentAllocation;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRemark;
|
||||
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel3;
|
||||
|
||||
/// <summary>
|
||||
/// lblAttach 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblAttach;
|
||||
|
||||
/// <summary>
|
||||
/// btnAttach 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttach;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// hdAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// hdId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdId;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,84 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SESRelatedDataContractManage4.aspx.cs" Inherits="FineUIPro.Web.SES.SESRelatedDataContractManage4" %>
|
||||
|
||||
<!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">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtFileType" runat="server" Label="文件类型" Text="短期延续" Readonly="true" LabelWidth="160px" Required="true" ShowRedStar="true"></f:TextBox>
|
||||
<f:TextBox ID="txtFileName" runat="server" Label="文件编号" Required="true" ShowRedStar="true" MaxLength="200" LabelWidth="160px" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUploadMan" runat="server" Label="上传人" LabelWidth="160px"></f:DropDownList>
|
||||
<f:TextBox ID="txtContractor" runat="server" Label="承包商名称" MaxLength="200" LabelWidth="160px" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtFO" runat="server" Label="合同号" LabelWidth="160px" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:DatePicker ID="txtStartDate" runat="server" Label="开始时间" LabelWidth="160px" EnableEdit="false"></f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DatePicker ID="txtEndDate" runat="server" Label="结束时间" LabelWidth="160px" EnableEdit="false"></f:DatePicker>
|
||||
<f:Label ID="Label1" runat="server"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextArea ID="txtRemark" runat="server" Label="描述/备注" MaxLength="500" LabelWidth="160px"></f:TextArea>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="lblAttach" runat="server" Label="上传附件" LabelWidth="160px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:HiddenField ID="hdAttachUrl" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:HiddenField ID="hdId" runat="server"></f:HiddenField>
|
||||
<%--<f:TextBox ID="txtFoNo" runat="server" Hidden="true" Width="0"></f:TextBox>--%>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="Save" ToolTip="Save" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="Close" Text="Close" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,204 @@
|
|||
using BLL;
|
||||
using NPOI.POIFS.Crypt.Dsig;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.SES
|
||||
{
|
||||
public partial class SESRelatedDataContractManage4 : PageBase
|
||||
{
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
||||
//上传人
|
||||
BLL.Sys_UserService.InitUserDropDownList(this.drpUploadMan, true);
|
||||
if (CurrUser.Account == Const.Gly)
|
||||
{
|
||||
drpUploadMan.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
drpUploadMan.SelectedValue = CurrUser.UserId;
|
||||
drpUploadMan.Enabled = false;
|
||||
}
|
||||
|
||||
string fileId = Request.Params["fileId"];
|
||||
if (!string.IsNullOrEmpty(fileId))
|
||||
{
|
||||
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
|
||||
if (file != null)
|
||||
{
|
||||
this.hdId.Text = file.FileId;
|
||||
this.txtFileName.Text = file.FileName;
|
||||
if (!string.IsNullOrEmpty(file.UploadMan))
|
||||
{
|
||||
this.drpUploadMan.SelectedValue = file.UploadMan;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(file.FC_ID.ToString()))
|
||||
{
|
||||
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(file.FC_ID.ToString());
|
||||
if (data != null && !string.IsNullOrEmpty(data.Contractor))
|
||||
{
|
||||
var con = BLL.ContractorService.GetContractorById(data.Contractor);
|
||||
if (con != null)
|
||||
{
|
||||
string contractor = string.Empty;
|
||||
if (string.IsNullOrEmpty(con.Contractor) && !string.IsNullOrEmpty(con.ContractorCN))
|
||||
{
|
||||
contractor = con.ContractorCN;
|
||||
}
|
||||
else if (string.IsNullOrEmpty(con.ContractorCN) && !string.IsNullOrEmpty(con.Contractor))
|
||||
{
|
||||
contractor = con.Contractor;
|
||||
}
|
||||
else
|
||||
{
|
||||
contractor = con.Contractor + " " + con.ContractorCN;
|
||||
}
|
||||
txtContractor.Text = contractor;
|
||||
|
||||
}
|
||||
txtFO.Text = data.FO_NO;
|
||||
}
|
||||
}
|
||||
this.txtRemark.Text = file.Remark;
|
||||
this.txtStartDate.Text = file.StartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", file.StartDate) : "";
|
||||
this.txtEndDate.Text = file.EndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", file.EndDate) : "";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string id = Request.Params["id"];
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
|
||||
if (data != null)
|
||||
{
|
||||
var con = BLL.ContractorService.GetContractorById(data.Contractor);
|
||||
if (con != null)
|
||||
{
|
||||
string contractor = string.Empty;
|
||||
if (string.IsNullOrEmpty(con.Contractor) && !string.IsNullOrEmpty(con.ContractorCN))
|
||||
{
|
||||
contractor = con.ContractorCN;
|
||||
}
|
||||
else if (string.IsNullOrEmpty(con.ContractorCN) && !string.IsNullOrEmpty(con.Contractor))
|
||||
{
|
||||
contractor = con.Contractor;
|
||||
}
|
||||
else
|
||||
{
|
||||
contractor = con.Contractor + " " + con.ContractorCN;
|
||||
}
|
||||
txtContractor.Text = contractor;
|
||||
}
|
||||
this.txtFO.Text = data.FO_NO;
|
||||
}
|
||||
}
|
||||
this.drpUploadMan.SelectedValue = this.CurrUser.UserId;
|
||||
string code = SQLHelper.RunProcNewId("SpGetNewCode3", "dbo.FC_ContractManagement", "FileName", "短期续延-" + txtFO.Text + "-");
|
||||
txtFileName.Text = code;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 保存
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
string id = Request.Params["id"];
|
||||
string fileId = Request.Params["fileId"];
|
||||
Model.FC_ContractManagement newContract = new Model.FC_ContractManagement();
|
||||
newContract.FC_ID = Convert.ToInt32(id);
|
||||
newContract.FileTypeId = "4";//短期延续
|
||||
newContract.FileName = this.txtFileName.Text.Trim();
|
||||
if (this.drpUploadMan.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newContract.UploadMan = this.drpUploadMan.SelectedValue;
|
||||
}
|
||||
newContract.UploadDate = DateTime.Now;
|
||||
newContract.Remark = this.txtRemark.Text.Trim();
|
||||
newContract.StartDate = Funs.GetNewDateTime(this.txtStartDate.Text);
|
||||
newContract.EndDate = Funs.GetNewDateTime(this.txtEndDate.Text);
|
||||
if (!string.IsNullOrEmpty(fileId))
|
||||
{
|
||||
newContract.FileId = fileId;
|
||||
var att = from x in Funs.DB.AttachFile where x.ToKeyId == fileId select x;
|
||||
if (att.Count() > 0)
|
||||
{
|
||||
newContract.AttachUrl = att.First().AttachUrl;
|
||||
}
|
||||
BLL.ContractManagementService.UpdateContractManagement(newContract);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "修改短期延续!");
|
||||
ShowNotify("Save successfully!", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdId.Text))
|
||||
{
|
||||
newContract.FileId = this.hdId.Text.Trim();
|
||||
}
|
||||
else
|
||||
{
|
||||
newContract.FileId = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
|
||||
this.hdId.Text = newContract.FileId;
|
||||
}
|
||||
|
||||
var att = from x in Funs.DB.AttachFile where x.ToKeyId == newContract.FileId select x;
|
||||
if (att.Count() > 0)
|
||||
{
|
||||
newContract.AttachUrl = att.First().AttachUrl;
|
||||
}
|
||||
BLL.ContractManagementService.AddContractManagement(newContract);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "增加短期延续!");
|
||||
ShowNotify("Save successfully!", MessageBoxIcon.Success);
|
||||
}
|
||||
//回写Expiry Date值
|
||||
var sESRelatedData = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
|
||||
if (sESRelatedData != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtEndDate.Text))
|
||||
{
|
||||
sESRelatedData.Expire_Date = Funs.GetNewDateTime(this.txtEndDate.Text);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 附件上传
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttach_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
|
||||
{
|
||||
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,215 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.SES
|
||||
{
|
||||
|
||||
|
||||
public partial class SESRelatedDataContractManage4
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// txtFileType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFileType;
|
||||
|
||||
/// <summary>
|
||||
/// txtFileName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFileName;
|
||||
|
||||
/// <summary>
|
||||
/// drpUploadMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUploadMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractor 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractor;
|
||||
|
||||
/// <summary>
|
||||
/// txtFO 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFO;
|
||||
|
||||
/// <summary>
|
||||
/// txtStartDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtStartDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtEndDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtEndDate;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRemark;
|
||||
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel3;
|
||||
|
||||
/// <summary>
|
||||
/// lblAttach 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblAttach;
|
||||
|
||||
/// <summary>
|
||||
/// btnAttach 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttach;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// hdAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// hdId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdId;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,75 @@
|
|||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SESRelatedDataContractManage5.aspx.cs" Inherits="FineUIPro.Web.SES.SESRelatedDataContractManage5" %>
|
||||
|
||||
<!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>承包商EHSQ审计报告</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">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtFileName" runat="server" Label="审计编号" Required="true" ShowRedStar="true" MaxLength="200" LabelWidth="160px" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtFO" runat="server" Label="合同号" LabelWidth="160px" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtType" runat="server" Label="承包商类型" LabelWidth="160px" Readonly="true">
|
||||
</f:TextBox>
|
||||
<f:TextBox ID="txtContractor" runat="server" Label="承包商名称" MaxLength="200" LabelWidth="160px" Readonly="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DatePicker ID="txtAuditDate" runat="server" Label="审计日期" LabelWidth="160px" EnableEdit="false"></f:DatePicker>
|
||||
<f:DropDownList ID="drpAuditResult" runat="server" Label="审计结果" LabelWidth="160px" EnableEdit="false"></f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUploadMan" runat="server" Label="上传人" LabelWidth="160px"></f:DropDownList>
|
||||
<f:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
|
||||
<Items>
|
||||
<f:Label ID="lblAttach" runat="server" Label="上传附件" LabelWidth="160px">
|
||||
</f:Label>
|
||||
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件" runat="server" OnClick="btnAttach_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:HiddenField ID="hdAttachUrl" runat="server">
|
||||
</f:HiddenField>
|
||||
<f:HiddenField ID="hdId" runat="server"></f:HiddenField>
|
||||
<%--<f:TextBox ID="txtFoNo" runat="server" Hidden="true" Width="0"></f:TextBox>--%>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="Save" ToolTip="Save" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="Close" Text="Close" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
|
||||
Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,229 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.SES
|
||||
{
|
||||
public partial class SESRelatedDataContractManage5 : PageBase
|
||||
{
|
||||
#region 加载
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
||||
this.drpAuditResult.DataTextField = "Text";
|
||||
this.drpAuditResult.DataValueField = "Value";
|
||||
this.drpAuditResult.DataSource = BLL.DropListService.getAuditResultDropList();
|
||||
this.drpAuditResult.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpAuditResult);
|
||||
//上传人
|
||||
BLL.Sys_UserService.InitUserDropDownList(this.drpUploadMan, true);
|
||||
if (CurrUser.Account == Const.Gly)
|
||||
{
|
||||
drpUploadMan.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
drpUploadMan.SelectedValue = CurrUser.UserId;
|
||||
drpUploadMan.Enabled = false;
|
||||
}
|
||||
|
||||
string fileId = Request.Params["fileId"];
|
||||
if (!string.IsNullOrEmpty(fileId))
|
||||
{
|
||||
Model.FC_ContractManagement file = BLL.ContractManagementService.GetContractManagementById(fileId);
|
||||
if (file != null)
|
||||
{
|
||||
this.hdId.Text = file.FileId;
|
||||
this.txtFileName.Text = file.FileName;
|
||||
if (!string.IsNullOrEmpty(file.UploadMan))
|
||||
{
|
||||
this.drpUploadMan.SelectedValue = file.UploadMan;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(file.FC_ID.ToString()))
|
||||
{
|
||||
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(file.FC_ID.ToString());
|
||||
if (data != null && !string.IsNullOrEmpty(data.Contractor))
|
||||
{
|
||||
var con = BLL.ContractorService.GetContractorById(data.Contractor);
|
||||
if (con != null)
|
||||
{
|
||||
string contractor = string.Empty;
|
||||
if (string.IsNullOrEmpty(con.Contractor) && !string.IsNullOrEmpty(con.ContractorCN))
|
||||
{
|
||||
contractor = con.ContractorCN;
|
||||
}
|
||||
else if (string.IsNullOrEmpty(con.ContractorCN) && !string.IsNullOrEmpty(con.Contractor))
|
||||
{
|
||||
contractor = con.Contractor;
|
||||
}
|
||||
else
|
||||
{
|
||||
contractor = con.Contractor + " " + con.ContractorCN;
|
||||
}
|
||||
txtContractor.Text = contractor;
|
||||
|
||||
}
|
||||
if (!string.IsNullOrEmpty(data.Type))
|
||||
{
|
||||
var t = BLL.TypeService.GetTypeById(data.Type);
|
||||
if (t != null)
|
||||
{
|
||||
this.txtType.Text = t.Type;
|
||||
}
|
||||
}
|
||||
this.txtFO.Text = data.FO_NO;
|
||||
}
|
||||
}
|
||||
this.txtAuditDate.Text = file.AuditDate.HasValue ? string.Format("{0:yyyy-MM-dd}", file.AuditDate) : "";
|
||||
if (!string.IsNullOrEmpty(file.AuditResult))
|
||||
{
|
||||
this.drpAuditResult.SelectedValue = file.AuditResult;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
string id = Request.Params["id"];
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
var data = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
|
||||
if (data != null)
|
||||
{
|
||||
var con = BLL.ContractorService.GetContractorById(data.Contractor);
|
||||
if (con != null)
|
||||
{
|
||||
string contractor = string.Empty;
|
||||
if (string.IsNullOrEmpty(con.Contractor) && !string.IsNullOrEmpty(con.ContractorCN))
|
||||
{
|
||||
contractor = con.ContractorCN;
|
||||
}
|
||||
else if (string.IsNullOrEmpty(con.ContractorCN) && !string.IsNullOrEmpty(con.Contractor))
|
||||
{
|
||||
contractor = con.Contractor;
|
||||
}
|
||||
else
|
||||
{
|
||||
contractor = con.Contractor + " " + con.ContractorCN;
|
||||
}
|
||||
txtContractor.Text = contractor;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(data.Type))
|
||||
{
|
||||
var t = BLL.TypeService.GetTypeById(data.Type);
|
||||
if (t != null)
|
||||
{
|
||||
this.txtType.Text = t.Type;
|
||||
}
|
||||
}
|
||||
this.txtFO.Text = data.FO_NO;
|
||||
}
|
||||
}
|
||||
this.drpUploadMan.SelectedValue = this.CurrUser.UserId;
|
||||
string code = SQLHelper.RunProcNewId("SpGetNewCode3", "dbo.FC_ContractManagement", "FileName", "EHSQ审计报告-" + txtFO.Text + "-");
|
||||
txtFileName.Text = code;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 保存
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
string id = Request.Params["id"];
|
||||
string fileId = Request.Params["fileId"];
|
||||
Model.FC_ContractManagement newContract = new Model.FC_ContractManagement();
|
||||
newContract.FC_ID = Convert.ToInt32(id);
|
||||
newContract.FileTypeId = "5";//承包商EHSQ审计报告
|
||||
newContract.FileName = this.txtFileName.Text.Trim();
|
||||
if (this.drpUploadMan.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
newContract.UploadMan = this.drpUploadMan.SelectedValue;
|
||||
}
|
||||
newContract.UploadDate = DateTime.Now;
|
||||
newContract.AuditDate = Funs.GetNewDateTime(this.txtAuditDate.Text);
|
||||
if (this.drpAuditResult.SelectedValue!=BLL.Const._Null)
|
||||
{
|
||||
newContract.AuditResult = this.drpAuditResult.SelectedValue;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(fileId))
|
||||
{
|
||||
newContract.FileId = fileId;
|
||||
var att = from x in Funs.DB.AttachFile where x.ToKeyId == fileId select x;
|
||||
if (att.Count() > 0)
|
||||
{
|
||||
newContract.AttachUrl = att.First().AttachUrl;
|
||||
}
|
||||
BLL.ContractManagementService.UpdateContractManagement(newContract);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "修改承包商EHSQ审计报告!");
|
||||
ShowNotify("Save successfully!", MessageBoxIcon.Success);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.hdId.Text))
|
||||
{
|
||||
newContract.FileId = this.hdId.Text.Trim();
|
||||
}
|
||||
else
|
||||
{
|
||||
newContract.FileId = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
|
||||
this.hdId.Text = newContract.FileId;
|
||||
}
|
||||
|
||||
var att = from x in Funs.DB.AttachFile where x.ToKeyId == newContract.FileId select x;
|
||||
if (att.Count() > 0)
|
||||
{
|
||||
newContract.AttachUrl = att.First().AttachUrl;
|
||||
}
|
||||
BLL.ContractManagementService.AddContractManagement(newContract);
|
||||
BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "增加承包商EHSQ审计报告!");
|
||||
ShowNotify("Save successfully!", MessageBoxIcon.Success);
|
||||
}
|
||||
//回写Current Allocation值
|
||||
//var sESRelatedData = BLL.SESRelatedDataService.GetSESRelatedDataById(id);
|
||||
//if (sESRelatedData != null)
|
||||
//{
|
||||
// decimal? value = Funs.GetNewDecimal(this.txtCurrentAllocation.Text.Trim());
|
||||
// if (value != null)
|
||||
// {
|
||||
// sESRelatedData.Proportion_of_FC_Definition = value / Convert.ToDecimal(100.0);
|
||||
// }
|
||||
// Funs.DB.SubmitChanges();
|
||||
//}
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 附件上传
|
||||
/// <summary>
|
||||
/// 附件上传
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnAttach_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
|
||||
{
|
||||
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.FC_ContractManagement));
|
||||
}
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/SESRelatedData/ContractManagement&menuId={1}", this.hdId.Text, BLL.Const.SESRelatedDateMenuId)));
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
|
@ -0,0 +1,197 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.SES
|
||||
{
|
||||
|
||||
|
||||
public partial class SESRelatedDataContractManage5
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// txtFileName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFileName;
|
||||
|
||||
/// <summary>
|
||||
/// txtFO 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFO;
|
||||
|
||||
/// <summary>
|
||||
/// txtType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtType;
|
||||
|
||||
/// <summary>
|
||||
/// txtContractor 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContractor;
|
||||
|
||||
/// <summary>
|
||||
/// txtAuditDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtAuditDate;
|
||||
|
||||
/// <summary>
|
||||
/// drpAuditResult 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpAuditResult;
|
||||
|
||||
/// <summary>
|
||||
/// drpUploadMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUploadMan;
|
||||
|
||||
/// <summary>
|
||||
/// Panel3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel3;
|
||||
|
||||
/// <summary>
|
||||
/// lblAttach 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lblAttach;
|
||||
|
||||
/// <summary>
|
||||
/// btnAttach 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnAttach;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// hdAttachUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdAttachUrl;
|
||||
|
||||
/// <summary>
|
||||
/// hdId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hdId;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
<%@ Page Language="C#" validateRequest="false" AutoEventWireup="true" CodeBehind="SESRelatedDataEdit.aspx.cs" Inherits="FineUIPro.Web.SES.SESRelatedDataEdit" %>
|
||||
<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeBehind="SESRelatedDataEdit.aspx.cs" Inherits="FineUIPro.Web.SES.SESRelatedDataEdit" %>
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
|||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">
|
||||
<Items>
|
||||
<f:TextBox ID="txtCopy" runat="server" Label="Copy" EmptyText="Copy by FO." LabelAlign="Right" NextFocusControl="btnCopy"></f:TextBox>
|
||||
<f:Button ID="btnCopy" runat="server" OnClick="btnCopy_Click" Icon="PageCopy" ToolTip="拷贝输入的合同号"></f:Button>
|
||||
<f:Button ID="btnCopy" runat="server" OnClick="btnCopy_Click" Icon="PageCopy" ToolTip="拷贝输入的合同号"></f:Button>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
|
@ -30,7 +30,7 @@
|
|||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtFO_NO" runat="server" Label="FO No." LabelWidth="160px" Required="true" ShowRedStar="true">
|
||||
|
@ -43,7 +43,7 @@
|
|||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpConstRecords" runat="server" Label="Const.Records" LabelWidth="160px" Required="true" ShowRedStar="true"></f:DropDownList>
|
||||
<f:DropDownList ID="drpConstRecords" runat="server" Label="Const.Records" LabelWidth="160px" Required="true" ShowRedStar="true"></f:DropDownList>
|
||||
<f:DropDownList ID="drpItem" runat="server" Label="Item" LabelWidth="160px" EnableEdit="true"></f:DropDownList>
|
||||
<%--<f:TextBox ID="txtOriginal_WC" runat="server" Label="Discipline Category" LabelWidth="150px">
|
||||
</f:TextBox>--%>
|
||||
|
@ -75,14 +75,14 @@
|
|||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtApplicant" runat="server" Label="M.C.Dept." LabelWidth="160px">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpUser_Representative" runat="server" Label="User Representative" LabelWidth="160px" EnableEdit="true" EnableGroup="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="txtValidate_Date" runat="server" Label="Valid Date" LabelWidth="160px">
|
||||
</f:DatePicker>
|
||||
<f:DatePicker ID="txtExpire_Date" runat="server" Label="Expiry Date" LabelWidth="160px" AutoPostBack="true" OnTextChanged="txtExpire_Date_TextChanged">
|
||||
<f:DatePicker ID="txtExpire_Date" runat="server" Label="Expiry Date" LabelWidth="160px" AutoPostBack="true" OnTextChanged="txtExpire_Date_TextChanged">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
@ -94,46 +94,61 @@
|
|||
<f:TextBox ID="txtContract_Tel" runat="server" Label="联系方式" LabelWidth="160px">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="drpAllocation" runat="server" Label="Allocation(Y/N)" LabelAlign="Right" LabelWidth="160px">
|
||||
<f:ListItem Text="-请选择" Value="0" Selected="true"/>
|
||||
<f:ListItem Text="-请选择" Value="0" Selected="true" />
|
||||
<f:ListItem Text="Y" Value="Y" />
|
||||
<f:ListItem Text="N" Value="N" />
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="numProportion_of_FC_Definition" runat="server" Label="Volume Allocation%" LabelWidth="160px" DecimalPrecision="2"></f:NumberBox>
|
||||
<f:NumberBox ID="txtActual_Budget" runat="server" Label="Contract Budget" LabelWidth="160px" NoNegative="true" EnableCommas="true">
|
||||
<Items>
|
||||
<f:NumberBox ID="numProportion_of_FC_Definition" runat="server" Label="Current Allocation%" LabelWidth="160px" DecimalPrecision="2"></f:NumberBox>
|
||||
|
||||
<f:NumberBox ID="txtInitial_Budget" runat="server" Label="Initial Budget" LabelWidth="160px" NoNegative="true" EnableCommas="true">
|
||||
</f:NumberBox>
|
||||
<f:NumberBox ID="txtActual_Budget" runat="server" Label="Contract Budget" LabelWidth="160px" NoNegative="true" EnableCommas="true">
|
||||
</f:NumberBox>
|
||||
<f:DropDownList ID="drpConnectedTransaction" runat="server" Label="Affiliated Transaction" LabelWidth="160px"></f:DropDownList>
|
||||
<f:NumberBox ID="txtNumExceedLimit" runat="server" Label="Exceed limit(day)" LabelWidth="160px" NoDecimal="true" NoNegative="true"></f:NumberBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:NumberBox ID="txtNumExceedLimit" runat="server" Label="Exceed limit(day)" LabelWidth="160px" NoDecimal="true" NoNegative="true"></f:NumberBox>
|
||||
<f:NumberBox ID="txtRemainingBudget" runat="server" Label="Remaining Budget" LabelWidth="160px" Readonly="true" EnableCommas="true"></f:NumberBox>
|
||||
<f:NumberBox ID="txtRemainingBudgetRate" runat="server" Label="Remaining Budget%" LabelWidth="160px" Readonly="true" DecimalPrecision="2"></f:NumberBox>
|
||||
<f:NumberBox ID="txtRemainingDurationRate" runat="server" Label="Remaining Duration%" LabelWidth="160px" Readonly="true" DecimalPrecision="2"></f:NumberBox>
|
||||
<f:TextBox ID="txtMainHead" runat="server" Label="主要负责人" LabelWidth="160px" ></f:TextBox>
|
||||
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtMainHeadContact" runat="server" Label="主要负责人联系方式" LabelWidth="160px" ></f:TextBox>
|
||||
<f:NumberBox ID="txtCheckedValue" runat="server" Label="Checked Value" LabelWidth="160px" EnableCommas="true"></f:NumberBox>
|
||||
<f:TextBox ID="txtSafetyOfficer" runat="server" Label="安全经理" LabelWidth="160px" ></f:TextBox>
|
||||
<f:TextBox ID="txtSafetyOfficerContact" runat="server" Label="安全经理联系方式" LabelWidth="160px" ></f:TextBox>
|
||||
|
||||
<f:DropDownList ID="drpIfExtend" runat="server" Label="If Extend" LabelAlign="Right" LabelWidth="160px" EnableEdit="false" AutoPostBack="true" OnSelectedIndexChanged="drpIfExtend_SelectedIndexChanged">
|
||||
<f:ListItem Text="-请选择" Value="0" Selected="true" />
|
||||
<f:ListItem Text="Y" Value="True" />
|
||||
<f:ListItem Text="N" Value="False" />
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtPreviousFO" runat="server" Label="Previous FO" LabelWidth="160px" Enabled="false"></f:TextBox>
|
||||
<f:NumberBox ID="txtInitialAllocation" runat="server" Label="Initial Allocation" LabelWidth="160px" NoNegative="true"></f:NumberBox>
|
||||
<f:TextBox ID="txtEMial" runat="server" Label="EMail" LabelWidth="160px" ShowRedStar="true" Required="true"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="25% 25% 50%">
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
|
||||
<f:TextBox ID="txtProjectManager" runat="server" Label="项目经理" LabelWidth="160px" ></f:TextBox>
|
||||
<f:TextBox ID="txtProjectManagerContact" runat="server" Label="项目经理联系方式" LabelWidth="160px" ></f:TextBox>
|
||||
<f:TextBox ID="txtEMial" runat="server" Label="EMail" LabelWidth="160px" ShowRedStar="true" Required="true"></f:TextBox>
|
||||
</Items>
|
||||
<f:TextBox ID="txtMainHead" runat="server" Label="主要负责人" LabelWidth="160px"></f:TextBox>
|
||||
<f:TextBox ID="txtMainHeadContact" runat="server" Label="主要负责人联系方式" LabelWidth="160px"></f:TextBox>
|
||||
<f:NumberBox ID="txtCheckedValue" runat="server" Label="Checked Value" LabelWidth="160px" EnableCommas="true"></f:NumberBox>
|
||||
<f:TextBox ID="txtSafetyOfficer" runat="server" Label="安全经理" LabelWidth="160px"></f:TextBox>
|
||||
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtSafetyOfficerContact" runat="server" Label="安全经理联系方式" LabelWidth="160px"></f:TextBox>
|
||||
<f:TextBox ID="txtProjectManager" runat="server" Label="项目经理" LabelWidth="160px"></f:TextBox>
|
||||
<f:TextBox ID="txtProjectManagerContact" runat="server" Label="项目经理联系方式" LabelWidth="160px"></f:TextBox>
|
||||
<f:Label ID="Label1" runat="server"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using BLL;
|
||||
using NPOI.OpenXmlFormats.Spreadsheet;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
|
@ -24,7 +25,7 @@ namespace FineUIPro.Web.SES
|
|||
else
|
||||
{
|
||||
GetButtonPower();//按钮权限
|
||||
}
|
||||
}
|
||||
btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
|
||||
//是否需要交工资料
|
||||
|
@ -64,10 +65,11 @@ namespace FineUIPro.Web.SES
|
|||
this.drpContract_Admin.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpContract_Admin);
|
||||
|
||||
var q= (from x in Funs.DB.Sys_User
|
||||
join y in Funs.DB.Sys_Role on x.RoleId equals y.RoleId
|
||||
where (x.RoleId == BLL.Const.Role_ContractAdministratorId || x.RoleId == BLL.Const.Role_CostEngineerId || y.RoleName== "Cost Engineer Leader")
|
||||
&& x.IsPost == true select x).ToList();
|
||||
var q = (from x in Funs.DB.Sys_User
|
||||
join y in Funs.DB.Sys_Role on x.RoleId equals y.RoleId
|
||||
where (x.RoleId == BLL.Const.Role_ContractAdministratorId || x.RoleId == BLL.Const.Role_CostEngineerId || y.RoleName == "Cost Engineer Leader")
|
||||
&& x.IsPost == true
|
||||
select x).ToList();
|
||||
this.drpCost_Checker.DataTextField = "UserName";
|
||||
this.drpCost_Checker.DataValueField = "UserId";
|
||||
this.drpCost_Checker.DataSource = q;
|
||||
|
@ -173,12 +175,12 @@ namespace FineUIPro.Web.SES
|
|||
//this.txtApplicant.Text = data.Applicant; // 主协调人
|
||||
this.txtValidate_Date.Text = data.Validate_Date == null ? "" : Convert.ToDateTime(data.Validate_Date).ToString("yyyy-MM-dd");
|
||||
this.txtExpire_Date.Text = data.Expire_Date == null ? "" : Convert.ToDateTime(data.Expire_Date).ToString("yyyy-MM-dd");
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(data.FC_Status))
|
||||
{
|
||||
drpFCStatus.SelectedValue = data.FC_Status;
|
||||
}
|
||||
|
||||
|
||||
this.txtContactPerson.Text = data.Contract_Person;
|
||||
this.txtContract_Tel.Text = data.Contract_Tel;
|
||||
if (data.Proportion_of_FC_Definition != null)
|
||||
|
@ -189,13 +191,14 @@ namespace FineUIPro.Web.SES
|
|||
{
|
||||
this.numProportion_of_FC_Definition.Text = "";
|
||||
}
|
||||
this.txtInitial_Budget.Text = data.InitialBudget.HasValue ? data.InitialBudget.Value.ToString() : "";
|
||||
this.txtActual_Budget.Text = data.Actual_Budget.HasValue ? data.Actual_Budget.Value.ToString() : "";
|
||||
this.txtRemark.Text = data.Remark;
|
||||
if (!string.IsNullOrEmpty(data.ConstRecords))
|
||||
{
|
||||
this.drpConstRecords.SelectedValue = data.ConstRecords.Trim();
|
||||
}
|
||||
|
||||
|
||||
if (!string.IsNullOrEmpty(data.DisciplineId))
|
||||
{
|
||||
this.drpDiscispline.SelectedValue = data.DisciplineId;
|
||||
|
@ -225,6 +228,21 @@ namespace FineUIPro.Web.SES
|
|||
this.txtRemainingDurationRate.Text = (s1 / s2 * 100).ToString();
|
||||
}
|
||||
}
|
||||
if (data.IfExtend.HasValue)
|
||||
{
|
||||
if (data.IfExtend==true)
|
||||
{
|
||||
this.drpIfExtend.SelectedValue = "True";
|
||||
this.txtPreviousFO.Enabled = true;
|
||||
this.txtPreviousFO.Text = data.PreviousFO;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.drpIfExtend.SelectedValue = "False";
|
||||
this.txtPreviousFO.Enabled = false;
|
||||
}
|
||||
}
|
||||
this.txtInitialAllocation.Text = data.InitialAllocation.HasValue ? data.InitialAllocation.ToString() : "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -341,6 +359,7 @@ namespace FineUIPro.Web.SES
|
|||
{
|
||||
this.numProportion_of_FC_Definition.Text = "";
|
||||
}
|
||||
this.txtInitial_Budget.Text = data.InitialBudget.HasValue ? data.InitialBudget.Value.ToString() : "";
|
||||
this.txtActual_Budget.Text = data.Actual_Budget.HasValue ? data.Actual_Budget.Value.ToString() : "";
|
||||
this.txtRemark.Text = data.Remark;
|
||||
if (!string.IsNullOrEmpty(data.ConstRecords))
|
||||
|
@ -377,6 +396,21 @@ namespace FineUIPro.Web.SES
|
|||
this.txtRemainingDurationRate.Text = (s1 / s2 * 100).ToString();
|
||||
}
|
||||
}
|
||||
if (data.IfExtend.HasValue)
|
||||
{
|
||||
if (data.IfExtend == true)
|
||||
{
|
||||
this.drpIfExtend.SelectedValue = "True";
|
||||
this.txtPreviousFO.Enabled = true;
|
||||
this.txtPreviousFO.Text = data.PreviousFO;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.drpIfExtend.SelectedValue = "False";
|
||||
this.txtPreviousFO.Enabled = false;
|
||||
}
|
||||
}
|
||||
this.txtInitialAllocation.Text = data.InitialAllocation.HasValue ? data.InitialAllocation.ToString() : "";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -395,7 +429,7 @@ namespace FineUIPro.Web.SES
|
|||
{
|
||||
string id = Request.Params["id"];
|
||||
|
||||
if (this.drpDiscispline.SelectedValue==BLL.Const._Null)
|
||||
if (this.drpDiscispline.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("Please select Discispline!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
|
@ -404,7 +438,7 @@ namespace FineUIPro.Web.SES
|
|||
{
|
||||
Alert.ShowInTop("The FO.NO. already exists!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (this.drpContractor.SelectedValue == BLL.Const._Null)
|
||||
{
|
||||
Alert.ShowInTop("Please select Contractor!", MessageBoxIcon.Warning);
|
||||
|
@ -426,7 +460,7 @@ namespace FineUIPro.Web.SES
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Model.FC_SESRelatedData newData = new Model.FC_SESRelatedData();
|
||||
|
@ -504,7 +538,7 @@ namespace FineUIPro.Web.SES
|
|||
{
|
||||
newData.Allocation = drpAllocation.SelectedValue;
|
||||
}
|
||||
|
||||
|
||||
newData.Contract_Person = this.txtContactPerson.Text.Trim();
|
||||
newData.Contract_Tel = this.txtContract_Tel.Text.Trim();
|
||||
newData.Email = txtEMial.Text.Trim();
|
||||
|
@ -524,7 +558,7 @@ namespace FineUIPro.Web.SES
|
|||
{
|
||||
newData.Proportion_of_FC_Definition = null;
|
||||
}
|
||||
|
||||
newData.InitialBudget = Funs.GetNewDecimal(this.txtInitial_Budget.Text.Trim());
|
||||
newData.Actual_Budget = Funs.GetNewDecimal(this.txtActual_Budget.Text.Trim());
|
||||
newData.Remark = this.txtRemark.Text.Trim();
|
||||
if (this.drpDiscispline.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpDiscispline.SelectedValue))
|
||||
|
@ -545,6 +579,12 @@ namespace FineUIPro.Web.SES
|
|||
}
|
||||
|
||||
newData.ExceedLimit = Funs.GetNewInt(this.txtNumExceedLimit.Text.Trim());
|
||||
if (this.drpIfExtend.SelectedValue != "0")
|
||||
{
|
||||
newData.IfExtend = this.drpIfExtend.SelectedValue == "True" ? true : false;
|
||||
}
|
||||
newData.PreviousFO = this.txtPreviousFO.Text.Trim();
|
||||
newData.InitialAllocation = Funs.GetNewDecimal(this.txtInitialAllocation.Text.Trim());
|
||||
|
||||
if (!string.IsNullOrEmpty(id))
|
||||
{
|
||||
|
@ -595,7 +635,7 @@ namespace FineUIPro.Web.SES
|
|||
protected void drpContractor_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.txtVendor_NO.Text = string.Empty;
|
||||
|
||||
|
||||
if (this.drpContractor.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpContractor.SelectedValue))
|
||||
{
|
||||
var contractor = BLL.ContractorService.GetContractorById(this.drpContractor.SelectedValue);
|
||||
|
@ -660,13 +700,13 @@ namespace FineUIPro.Web.SES
|
|||
DateTime expireDate = Convert.ToDateTime(this.txtExpire_Date.Text.Trim());
|
||||
if (expireDate >= Convert.ToDateTime(DateTime.Now.ToShortDateString()) && expireDate.AddMonths(-6) <= Convert.ToDateTime(DateTime.Now.ToShortDateString()))
|
||||
{
|
||||
drpFCStatus.SelectedValue= "Expired Soon";
|
||||
drpFCStatus.SelectedValue = "Expired Soon";
|
||||
//this.txtFC_Status.Text = "Expired Soon";
|
||||
}
|
||||
else if (expireDate < Convert.ToDateTime(DateTime.Now))
|
||||
{
|
||||
drpFCStatus.SelectedValue = "Expired";
|
||||
if (lastPayment=="Y")
|
||||
if (lastPayment == "Y")
|
||||
{
|
||||
drpFCStatus.SelectedValue = "Closed";
|
||||
}
|
||||
|
@ -676,7 +716,28 @@ namespace FineUIPro.Web.SES
|
|||
drpFCStatus.SelectedValue = "Valid";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// IfExtend下拉选择事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void drpIfExtend_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.txtPreviousFO.Text = string.Empty;
|
||||
if (this.drpIfExtend.SelectedValue != "0")
|
||||
{
|
||||
if (this.drpIfExtend.SelectedValue == "True")
|
||||
{
|
||||
this.txtPreviousFO.Enabled = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
this.txtPreviousFO.Enabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.SES {
|
||||
|
||||
|
||||
public partial class SESRelatedDataEdit {
|
||||
|
||||
namespace FineUIPro.Web.SES
|
||||
{
|
||||
|
||||
|
||||
public partial class SESRelatedDataEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
|
@ -20,7 +22,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
|
@ -29,7 +31,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
|
@ -38,7 +40,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
|
@ -47,7 +49,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCopy 控件。
|
||||
/// </summary>
|
||||
|
@ -56,7 +58,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCopy;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnCopy 控件。
|
||||
/// </summary>
|
||||
|
@ -65,7 +67,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnCopy;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
|
@ -74,7 +76,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpDiscispline 控件。
|
||||
/// </summary>
|
||||
|
@ -83,7 +85,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpDiscispline;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpContractor 控件。
|
||||
/// </summary>
|
||||
|
@ -92,7 +94,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpContractor;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtFO_NO 控件。
|
||||
/// </summary>
|
||||
|
@ -101,7 +103,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtFO_NO;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpFOTypeId 控件。
|
||||
/// </summary>
|
||||
|
@ -110,7 +112,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpFOTypeId;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpPricing_Scheme 控件。
|
||||
/// </summary>
|
||||
|
@ -119,7 +121,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpPricing_Scheme;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtVendor_NO 控件。
|
||||
/// </summary>
|
||||
|
@ -128,7 +130,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtVendor_NO;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpConstRecords 控件。
|
||||
/// </summary>
|
||||
|
@ -137,7 +139,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpConstRecords;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpItem 控件。
|
||||
/// </summary>
|
||||
|
@ -146,7 +148,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpItem;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpOriginal_WC 控件。
|
||||
/// </summary>
|
||||
|
@ -155,7 +157,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpOriginal_WC;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpCurrency 控件。
|
||||
/// </summary>
|
||||
|
@ -164,7 +166,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCurrency;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtMaterial_Group 控件。
|
||||
/// </summary>
|
||||
|
@ -173,7 +175,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMaterial_Group;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtPurchase_Group 控件。
|
||||
/// </summary>
|
||||
|
@ -182,7 +184,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtPurchase_Group;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtCost_Element 控件。
|
||||
/// </summary>
|
||||
|
@ -191,7 +193,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtCost_Element;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpType 控件。
|
||||
/// </summary>
|
||||
|
@ -200,7 +202,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpType;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpContract_Admin 控件。
|
||||
/// </summary>
|
||||
|
@ -209,7 +211,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpContract_Admin;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpCost_Checker 控件。
|
||||
/// </summary>
|
||||
|
@ -218,7 +220,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpCost_Checker;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpBuyer 控件。
|
||||
/// </summary>
|
||||
|
@ -227,7 +229,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpBuyer;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpMain_Coordinator 控件。
|
||||
/// </summary>
|
||||
|
@ -236,7 +238,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpMain_Coordinator;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtApplicant 控件。
|
||||
/// </summary>
|
||||
|
@ -245,7 +247,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtApplicant;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpUser_Representative 控件。
|
||||
/// </summary>
|
||||
|
@ -254,7 +256,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUser_Representative;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtValidate_Date 控件。
|
||||
/// </summary>
|
||||
|
@ -263,7 +265,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtValidate_Date;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtExpire_Date 控件。
|
||||
/// </summary>
|
||||
|
@ -272,7 +274,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtExpire_Date;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpFCStatus 控件。
|
||||
/// </summary>
|
||||
|
@ -281,7 +283,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpFCStatus;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtContactPerson 控件。
|
||||
/// </summary>
|
||||
|
@ -290,7 +292,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContactPerson;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtContract_Tel 控件。
|
||||
/// </summary>
|
||||
|
@ -299,7 +301,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtContract_Tel;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpAllocation 控件。
|
||||
/// </summary>
|
||||
|
@ -308,7 +310,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpAllocation;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// numProportion_of_FC_Definition 控件。
|
||||
/// </summary>
|
||||
|
@ -317,7 +319,16 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox numProportion_of_FC_Definition;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtInitial_Budget 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtInitial_Budget;
|
||||
|
||||
/// <summary>
|
||||
/// txtActual_Budget 控件。
|
||||
/// </summary>
|
||||
|
@ -326,7 +337,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtActual_Budget;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpConnectedTransaction 控件。
|
||||
/// </summary>
|
||||
|
@ -335,7 +346,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpConnectedTransaction;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtNumExceedLimit 控件。
|
||||
/// </summary>
|
||||
|
@ -344,7 +355,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtNumExceedLimit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRemainingBudget 控件。
|
||||
/// </summary>
|
||||
|
@ -353,7 +364,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtRemainingBudget;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRemainingBudgetRate 控件。
|
||||
/// </summary>
|
||||
|
@ -362,7 +373,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtRemainingBudgetRate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtRemainingDurationRate 控件。
|
||||
/// </summary>
|
||||
|
@ -371,70 +382,34 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtRemainingDurationRate;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtMainHead 控件。
|
||||
/// drpIfExtend 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMainHead;
|
||||
|
||||
protected global::FineUIPro.DropDownList drpIfExtend;
|
||||
|
||||
/// <summary>
|
||||
/// txtMainHeadContact 控件。
|
||||
/// txtPreviousFO 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMainHeadContact;
|
||||
|
||||
protected global::FineUIPro.TextBox txtPreviousFO;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckedValue 控件。
|
||||
/// txtInitialAllocation 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtCheckedValue;
|
||||
|
||||
/// <summary>
|
||||
/// txtSafetyOfficer 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSafetyOfficer;
|
||||
|
||||
/// <summary>
|
||||
/// txtSafetyOfficerContact 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSafetyOfficerContact;
|
||||
|
||||
/// <summary>
|
||||
/// txtProjectManager 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProjectManager;
|
||||
|
||||
/// <summary>
|
||||
/// txtProjectManagerContact 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProjectManagerContact;
|
||||
|
||||
protected global::FineUIPro.NumberBox txtInitialAllocation;
|
||||
|
||||
/// <summary>
|
||||
/// txtEMial 控件。
|
||||
/// </summary>
|
||||
|
@ -443,7 +418,79 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtEMial;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtMainHead 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMainHead;
|
||||
|
||||
/// <summary>
|
||||
/// txtMainHeadContact 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtMainHeadContact;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckedValue 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.NumberBox txtCheckedValue;
|
||||
|
||||
/// <summary>
|
||||
/// txtSafetyOfficer 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSafetyOfficer;
|
||||
|
||||
/// <summary>
|
||||
/// txtSafetyOfficerContact 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtSafetyOfficerContact;
|
||||
|
||||
/// <summary>
|
||||
/// txtProjectManager 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProjectManager;
|
||||
|
||||
/// <summary>
|
||||
/// txtProjectManagerContact 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProjectManagerContact;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// txtRemark 控件。
|
||||
/// </summary>
|
||||
|
@ -452,7 +499,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextArea txtRemark;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
|
@ -461,7 +508,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
|
@ -470,7 +517,7 @@ namespace FineUIPro.Web.SES {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
|
||||
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91" validate="false"/>
|
||||
</httpHandlers>
|
||||
<compilation debug="true" targetFramework="4.6.1">
|
||||
<compilation debug="false" targetFramework="4.6.1">
|
||||
<buildProviders>
|
||||
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
|
||||
</buildProviders>
|
||||
|
|
|
@ -2239,8 +2239,6 @@ namespace Model
|
|||
|
||||
private EntitySet<EMC_OneTimeContractManagement> _EMC_OneTimeContractManagement;
|
||||
|
||||
private EntitySet<FC_ContractManagement> _FC_ContractManagement;
|
||||
|
||||
#region 可扩展性方法定义
|
||||
partial void OnLoaded();
|
||||
partial void OnValidate(System.Data.Linq.ChangeAction action);
|
||||
|
@ -2259,7 +2257,6 @@ namespace Model
|
|||
{
|
||||
this._EMC_CTSalesContractManagement = new EntitySet<EMC_CTSalesContractManagement>(new Action<EMC_CTSalesContractManagement>(this.attach_EMC_CTSalesContractManagement), new Action<EMC_CTSalesContractManagement>(this.detach_EMC_CTSalesContractManagement));
|
||||
this._EMC_OneTimeContractManagement = new EntitySet<EMC_OneTimeContractManagement>(new Action<EMC_OneTimeContractManagement>(this.attach_EMC_OneTimeContractManagement), new Action<EMC_OneTimeContractManagement>(this.detach_EMC_OneTimeContractManagement));
|
||||
this._FC_ContractManagement = new EntitySet<FC_ContractManagement>(new Action<FC_ContractManagement>(this.attach_FC_ContractManagement), new Action<FC_ContractManagement>(this.detach_FC_ContractManagement));
|
||||
OnCreated();
|
||||
}
|
||||
|
||||
|
@ -2369,19 +2366,6 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_FC_ContractManagement_Base_FileType", Storage="_FC_ContractManagement", ThisKey="FileTypeId", OtherKey="FileTypeId", DeleteRule="NO ACTION")]
|
||||
public EntitySet<FC_ContractManagement> FC_ContractManagement
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._FC_ContractManagement;
|
||||
}
|
||||
set
|
||||
{
|
||||
this._FC_ContractManagement.Assign(value);
|
||||
}
|
||||
}
|
||||
|
||||
public event PropertyChangingEventHandler PropertyChanging;
|
||||
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
@ -2425,18 +2409,6 @@ namespace Model
|
|||
this.SendPropertyChanging();
|
||||
entity.Base_FileType = null;
|
||||
}
|
||||
|
||||
private void attach_FC_ContractManagement(FC_ContractManagement entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_FileType = this;
|
||||
}
|
||||
|
||||
private void detach_FC_ContractManagement(FC_ContractManagement entity)
|
||||
{
|
||||
this.SendPropertyChanging();
|
||||
entity.Base_FileType = null;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Base_FOOffset")]
|
||||
|
@ -11461,7 +11433,17 @@ namespace Model
|
|||
|
||||
private string _BycDept;
|
||||
|
||||
private EntityRef<Base_FileType> _Base_FileType;
|
||||
private System.Nullable<decimal> _SupplementedBudget;
|
||||
|
||||
private System.Nullable<decimal> _TotalBudget;
|
||||
|
||||
private System.Nullable<System.DateTime> _StartDate;
|
||||
|
||||
private System.Nullable<System.DateTime> _EndDate;
|
||||
|
||||
private System.Nullable<System.DateTime> _AuditDate;
|
||||
|
||||
private string _AuditResult;
|
||||
|
||||
private EntityRef<FC_SESRelatedData> _FC_SESRelatedData;
|
||||
|
||||
|
@ -11493,11 +11475,22 @@ namespace Model
|
|||
partial void OnOccurDateChanged();
|
||||
partial void OnBycDeptChanging(string value);
|
||||
partial void OnBycDeptChanged();
|
||||
partial void OnSupplementedBudgetChanging(System.Nullable<decimal> value);
|
||||
partial void OnSupplementedBudgetChanged();
|
||||
partial void OnTotalBudgetChanging(System.Nullable<decimal> value);
|
||||
partial void OnTotalBudgetChanged();
|
||||
partial void OnStartDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnStartDateChanged();
|
||||
partial void OnEndDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnEndDateChanged();
|
||||
partial void OnAuditDateChanging(System.Nullable<System.DateTime> value);
|
||||
partial void OnAuditDateChanged();
|
||||
partial void OnAuditResultChanging(string value);
|
||||
partial void OnAuditResultChanged();
|
||||
#endregion
|
||||
|
||||
public FC_ContractManagement()
|
||||
{
|
||||
this._Base_FileType = default(EntityRef<Base_FileType>);
|
||||
this._FC_SESRelatedData = default(EntityRef<FC_SESRelatedData>);
|
||||
this._Sys_User = default(EntityRef<Sys_User>);
|
||||
OnCreated();
|
||||
|
@ -11578,10 +11571,6 @@ namespace Model
|
|||
{
|
||||
if ((this._FileTypeId != value))
|
||||
{
|
||||
if (this._Base_FileType.HasLoadedOrAssignedValue)
|
||||
{
|
||||
throw new System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException();
|
||||
}
|
||||
this.OnFileTypeIdChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._FileTypeId = value;
|
||||
|
@ -11735,36 +11724,122 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_FC_ContractManagement_Base_FileType", Storage="_Base_FileType", ThisKey="FileTypeId", OtherKey="FileTypeId", IsForeignKey=true)]
|
||||
public Base_FileType Base_FileType
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupplementedBudget", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> SupplementedBudget
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._Base_FileType.Entity;
|
||||
return this._SupplementedBudget;
|
||||
}
|
||||
set
|
||||
{
|
||||
Base_FileType previousValue = this._Base_FileType.Entity;
|
||||
if (((previousValue != value)
|
||||
|| (this._Base_FileType.HasLoadedOrAssignedValue == false)))
|
||||
if ((this._SupplementedBudget != value))
|
||||
{
|
||||
this.OnSupplementedBudgetChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
if ((previousValue != null))
|
||||
{
|
||||
this._Base_FileType.Entity = null;
|
||||
previousValue.FC_ContractManagement.Remove(this);
|
||||
}
|
||||
this._Base_FileType.Entity = value;
|
||||
if ((value != null))
|
||||
{
|
||||
value.FC_ContractManagement.Add(this);
|
||||
this._FileTypeId = value.FileTypeId;
|
||||
}
|
||||
else
|
||||
{
|
||||
this._FileTypeId = default(string);
|
||||
}
|
||||
this.SendPropertyChanged("Base_FileType");
|
||||
this._SupplementedBudget = value;
|
||||
this.SendPropertyChanged("SupplementedBudget");
|
||||
this.OnSupplementedBudgetChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TotalBudget", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> TotalBudget
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._TotalBudget;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._TotalBudget != value))
|
||||
{
|
||||
this.OnTotalBudgetChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._TotalBudget = value;
|
||||
this.SendPropertyChanged("TotalBudget");
|
||||
this.OnTotalBudgetChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_StartDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> StartDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._StartDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._StartDate != value))
|
||||
{
|
||||
this.OnStartDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._StartDate = value;
|
||||
this.SendPropertyChanged("StartDate");
|
||||
this.OnStartDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EndDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> EndDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._EndDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._EndDate != value))
|
||||
{
|
||||
this.OnEndDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._EndDate = value;
|
||||
this.SendPropertyChanged("EndDate");
|
||||
this.OnEndDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditDate", DbType="DateTime")]
|
||||
public System.Nullable<System.DateTime> AuditDate
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._AuditDate;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._AuditDate != value))
|
||||
{
|
||||
this.OnAuditDateChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._AuditDate = value;
|
||||
this.SendPropertyChanged("AuditDate");
|
||||
this.OnAuditDateChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditResult", DbType="Char(10)")]
|
||||
public string AuditResult
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._AuditResult;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._AuditResult != value))
|
||||
{
|
||||
this.OnAuditResultChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._AuditResult = value;
|
||||
this.SendPropertyChanged("AuditResult");
|
||||
this.OnAuditResultChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14364,6 +14439,14 @@ namespace Model
|
|||
|
||||
private string _OtherDef;
|
||||
|
||||
private System.Nullable<bool> _IfExtend;
|
||||
|
||||
private string _PreviousFO;
|
||||
|
||||
private System.Nullable<decimal> _InitialAllocation;
|
||||
|
||||
private System.Nullable<decimal> _InitialBudget;
|
||||
|
||||
private EntitySet<FC_ContractManagement> _FC_ContractManagement;
|
||||
|
||||
private EntityRef<Base_Contractor> _Base_Contractor;
|
||||
|
@ -14534,6 +14617,14 @@ namespace Model
|
|||
partial void OnInquiryNumChanged();
|
||||
partial void OnOtherDefChanging(string value);
|
||||
partial void OnOtherDefChanged();
|
||||
partial void OnIfExtendChanging(System.Nullable<bool> value);
|
||||
partial void OnIfExtendChanged();
|
||||
partial void OnPreviousFOChanging(string value);
|
||||
partial void OnPreviousFOChanged();
|
||||
partial void OnInitialAllocationChanging(System.Nullable<decimal> value);
|
||||
partial void OnInitialAllocationChanged();
|
||||
partial void OnInitialBudgetChanging(System.Nullable<decimal> value);
|
||||
partial void OnInitialBudgetChanged();
|
||||
#endregion
|
||||
|
||||
public FC_SESRelatedData()
|
||||
|
@ -15994,6 +16085,86 @@ namespace Model
|
|||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IfExtend", DbType="Bit")]
|
||||
public System.Nullable<bool> IfExtend
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._IfExtend;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._IfExtend != value))
|
||||
{
|
||||
this.OnIfExtendChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._IfExtend = value;
|
||||
this.SendPropertyChanged("IfExtend");
|
||||
this.OnIfExtendChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PreviousFO", DbType="NVarChar(50)")]
|
||||
public string PreviousFO
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._PreviousFO;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._PreviousFO != value))
|
||||
{
|
||||
this.OnPreviousFOChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._PreviousFO = value;
|
||||
this.SendPropertyChanged("PreviousFO");
|
||||
this.OnPreviousFOChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InitialAllocation", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> InitialAllocation
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._InitialAllocation;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._InitialAllocation != value))
|
||||
{
|
||||
this.OnInitialAllocationChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._InitialAllocation = value;
|
||||
this.SendPropertyChanged("InitialAllocation");
|
||||
this.OnInitialAllocationChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InitialBudget", DbType="Decimal(18,2)")]
|
||||
public System.Nullable<decimal> InitialBudget
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._InitialBudget;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ((this._InitialBudget != value))
|
||||
{
|
||||
this.OnInitialBudgetChanging(value);
|
||||
this.SendPropertyChanging();
|
||||
this._InitialBudget = value;
|
||||
this.SendPropertyChanged("InitialBudget");
|
||||
this.OnInitialBudgetChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_FC_ContractManagement_FC_SESRelatedData", Storage="_FC_ContractManagement", ThisKey="ID", OtherKey="FC_ID", DeleteRule="NO ACTION")]
|
||||
public EntitySet<FC_ContractManagement> FC_ContractManagement
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<IISExpressWindowsAuthentication />
|
||||
<IISExpressUseClassicPipelineMode />
|
||||
<UseGlobalApplicationHostFile />
|
||||
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
||||
</PropertyGroup>
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
|
|
Loading…
Reference in New Issue