ChengDa_English/SGGL/FineUIPro.Web/CQMS/Solution/EditConstructSolution.aspx

316 lines
24 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditConstructSolution.aspx.cs" Inherits="FineUIPro.Web.CQMS.Solution.EditConstructSolution" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><asp:Literal runat="server" Text="<%$ Resources:Lan,EditConstructSolutionFinal_PageTitle%>"/></title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.labcenter {
text-align: center;
}
.f-grid-row .f-grid-cell-inner {
white-space: normal;
word-break: break-all;
}
.f-grid-row.red {
background-color: #FF7575;
background-image: none;
}
.fontred {
color: #FF7575;
background-image: none;
}
</style>
</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:ContentPanel ID="ContentPanel2" Title="<%$ Resources:Lan,EditConstructSolutionFinal_PageTitle%>" ShowBorder="true"
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
runat="server">
<f:Form ID="Form2" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtProjectName" runat="server" Readonly="true" Label="<%$ Resources:Lan,EditConstructSolution_txtProjectName_Label%>" LabelAlign="Right"
MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtCode" runat="server" Required="true" ShowRedStar="true" Label="<%$ Resources:Lan,EditConstructSolutionFinal_txtCode_Label%>" LabelAlign="Right" MaxLength="50" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpUnit" ShowRedStar="true"
runat="server" Required="true" Label="<%$ Resources:Lan,EditConstructSolutionFinal_drpUnit_Label%>" EmptyText="<%$ Resources:Lan,DesignDrawingsEdit_SelectOption%>" AutoSelectFirstItem="false" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
<f:TextBox ID="txtSolutionName" runat="server" ShowRedStar="true" Required="true" Label="<%$ Resources:Lan,EditConstructSolutionFinal_txtSolutionName_Label%>" LabelAlign="Right" MaxLength="50" LabelWidth="120px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpModelType" EmptyText="<%$ Resources:Lan,DesignDrawingsEdit_SelectOption%>" AutoSelectFirstItem="false" ShowRedStar="true" Required="true" runat="server" Width="350px" Label="<%$ Resources:Lan,EditConstructSolution_drpModelType_Label%>" LabelAlign="Right" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="drpModelType_SelectedIndexChanged">
</f:DropDownList>
<f:DropDownList ID="drpSpecialType" EmptyText="<%$ Resources:Lan,DesignDrawingsEdit_SelectOption%>" AutoSelectFirstItem="false" ShowRedStar="true" runat="server" Width="350px" Label="<%$ Resources:Lan,EditConstructSolution_drpSpecialType_Label%>" LabelAlign="Right" EnableEdit="true" LabelWidth="120px">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="txtCompileDate" ShowRedStar="true" Required="true" runat="server" Label="<%$ Resources:Lan,EditConstructSolution_txtCompileDate_Label%>" LabelAlign="Right" EnableEdit="true">
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownBox runat="server" Label="<%$ Resources:Lan,ITPListProjectEdit_drpCNProfessional_Label%>" ShowRedStar="true" Required="true" ID="txtCNProfessional" EmptyText="<%$ Resources:Lan,DesignDrawingsEdit_SelectOption%>" DataControlID="txtCNProfessional" EnableMultiSelect="true" MatchFieldWidth="true">
<PopPanel>
<f:Grid ID="gvCNPro" BoxFlex="1"
DataIDField="CNProfessionalId" DataTextField="ProfessionalName" EnableMultiSelect="true" KeepCurrentSelection="true"
ShowBorder="true" ShowHeader="false" ForceFit="true"
runat="server" EnableCheckBoxSelect="true" DataKeyNames="CNProfessionalId" Hidden="true">
<Columns>
<%--<f:RowNumberField />--%>
<f:BoundField Width="100px" DataField="CNProfessionalId" SortField="CNProfessionalId" DataFormatString="{0}" Hidden="true" />
<f:BoundField Width="100px" DataField="ProfessionalName" SortField="ProfessionalName" DataFormatString="{0}"
HeaderText="<%$ Resources:Lan,ITPListEdit_txtName_Label%>" />
</Columns>
</f:Grid>
</PopPanel>
</f:DropDownBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownBox runat="server" Label="<%$ Resources:Lan,ITPListProjectEdit_drpUnitWork_Label%>" ShowRedStar="true"
Required="true" ID="txtUnitWork" EmptyText="<%$ Resources:Lan,DesignDrawingsEdit_SelectOption%>" EnableMultiSelect="true" MatchFieldWidth="false">
<PopPanel>
<f:Grid ID="gvUnitWork" DataIDField="UnitWorkId" DataTextField="UnitWorkName" DataKeyNames="UnitWorkId"
EnableMultiSelect="true" KeepCurrentSelection="true" Height="300px" Hidden="true"
ShowBorder="true" ShowHeader="false" ForceFit="true"
runat="server" EnableCheckBoxSelect="true">
<Columns>
<f:BoundField Width="100px" DataField="UnitWorkId" SortField="UnitWorkId" DataFormatString="{0}" Hidden="true" />
<f:BoundField Width="100px" DataField="UnitWorkName" SortField="UnitWorkName" DataFormatString="{0}"
HeaderText="工程名称" />
</Columns>
</f:Grid>
</PopPanel>
</f:DropDownBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpEdition" EmptyText="<%$ Resources:Lan,DesignDrawingsEdit_SelectOption%>" AutoSelectFirstItem="false" ShowRedStar="true" Required="true" runat="server" Width="350px" Label="<%$ Resources:Lan,EditConstructSolution_drpEdition_Label%>" LabelAlign="Right" EnableEdit="true" AutoPostBack="true">
</f:DropDownList>
<f:Panel ShowHeader="false" ShowBorder="false" Layout="Column" runat="server">
<Items>
<f:Label runat="server" Text="<span style='color:red;'>*</span>附件(当前选中版本):" EncodeText="false" ShowRedStar="true" Label="<%$ Resources:Lan,FileCabinetEdit_plfile_Label%>" CssStyle="padding-left:48px" Width="240px" CssClass="marginr" ShowLabel="false"></f:Label>
<f:Button ID="imgBtnFile" Text="<%$ Resources:Lan,ITPListEdit_btnAttach_Text%>" ToolTip="<%$ Resources:Lan,TechnicalContactView_Attachment_ToolTip%>" Icon="TableCell" OnClick="imgBtnFile_Click" runat="server"></f:Button>
<f:Button ID="imgBtnFile2" Hidden="true" Text="<%$ Resources:Lan,EditConstructSolution_imgBtnFile2_Text%>" ToolTip="<%$ Resources:Lan,TechnicalContactView_Attachment_ToolTip%>" Icon="TableCell" OnClick="imgBtnFile_Click2" CssStyle="margin-left:20px" runat="server"></f:Button>
<f:CheckBox runat="server" ID="cbIsHSSE" Label="<%$ Resources:Lan,EditConstructSolution_cbIsHSSE_Label%>" LabelAlign="Right" LabelWidth="120px"></f:CheckBox>
</Items>
</f:Panel>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</f:ContentPanel>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Panel ID="Panel2" IsFluid="true" CssClass="mytable blockpanel" runat="server" AutoScroll="true" ShowBorder="true"
Layout="Table" TableConfigColumns="6" ShowHeader="true" Title="<%$ Resources:Lan,EditConstructSolution_Panel2_Title%>">
<Items>
<f:Panel ID="Panel1" Title="Panel1" Width="200px"
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false" Height="200px">
<Items>
<f:Tree runat="server" ID="trOne" ShowHeader="false" AutoScroll="true" ShowBorder="false" OnNodeCheck="trOne_NodeCheck" EnableArrows="true">
</f:Tree>
</Items>
</f:Panel>
<f:Panel ID="Panel3" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
<Items>
<f:Tree runat="server" ID="trTwo" ShowHeader="false" ShowBorder="false" OnNodeCheck="trTwo_NodeCheck">
<Nodes>
</Nodes>
</f:Tree>
</Items>
</f:Panel>
<f:Panel ID="Panel4" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
<Items>
<f:Tree runat="server" ID="trThree" ShowHeader="false" ShowBorder="false" OnNodeCheck="trThree_NodeCheck">
<Nodes>
</Nodes>
</f:Tree>
</Items>
</f:Panel>
<f:Panel ID="Panel6" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
<Items>
<f:Tree runat="server" ID="trFive" ShowHeader="false" ShowBorder="false" OnNodeCheck="trFive_NodeCheck">
<Nodes>
</Nodes>
</f:Tree>
</Items>
</f:Panel>
<f:Panel ID="Panel5" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
<Items>
<f:Tree runat="server" ID="trFour" ShowHeader="false" ShowBorder="false" OnNodeCheck="trFour_NodeCheck">
<Nodes>
</Nodes>
</f:Tree>
</Items>
</f:Panel>
<f:Panel ID="Panel7" Title="Panel1" Width="200px" AutoScroll="true" Height="200px"
TableRowspan="5" runat="server" BodyPadding="10px" ShowBorder="false" ShowHeader="false">
<Items>
<f:Tree runat="server" ID="trSixe" ShowHeader="false" ShowBorder="false" OnNodeCheck="trSixe_NodeCheck">
<Nodes>
</Nodes>
</f:Tree>
</Items>
</f:Panel>
</Items>
</f:Panel>
</Items>
</f:FormRow>
<f:FormRow ID="agree">
<Items>
<f:RadioButtonList runat="server" ID="rblIsAgree" Label="<%$ Resources:Lan,EditConstructSolution_gvApprove_IsAgree_HeaderText%>" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="rblIsAgree_CheckedChanged">
<f:RadioItem Text="<%$ Resources:Lan,DesignDrawingsEdit_Agree_Option%>" Value="true" Selected="true" />
<f:RadioItem Text="<%$ Resources:Lan,DesignDrawingsEdit_Disagree_Option%>" Value="false" />
<f:RadioItem Text="移交其他人员" Value="null" />
</f:RadioButtonList>
<f:Label runat="server" CssStyle="display:none"></f:Label>
</Items>
</f:FormRow>
<f:FormRow ID="sameGroup" Hidden="true">
<Items>
<f:DropDownList ID="drpSameGroup" EnableMultiSelect="true" EmptyText="<%$ Resources:Lan,DesignDrawingsEdit_SelectOption%>" AutoSelectFirstItem="false" ShowRedStar="true" Required="true" runat="server" Width="350px" Label="<%$ Resources:Lan,EditConstructSolution_drpSameGroup_Label%>" LabelAlign="Right" EnableEdit="true" AutoPostBack="true">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow ID="options">
<Items>
<f:TextArea ID="txtOptions" ShowRedStar="true" Required="true" runat="server" Label="<%$ Resources:Lan,EditConstructSolution_gvApprove_ApproveIdea_HeaderText%>" MaxLength="3000">
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow ID="optio">
<Items>
<f:Panel ShowHeader="false" ShowBorder="false" Layout="Column" runat="server">
<Items>
<f:Label runat="server" Text="<%$ Resources:Lan,FileCabinetEdit_plfile_Label%>" ShowRedStar="true" CssStyle="padding-left:53px" Width="100px" CssClass="marginr" ShowLabel="false"></f:Label>
<f:Button ID="btnapprove" Text="<%$ Resources:Lan,ITPListEdit_btnAttach_Text%>" ToolTip="<%$ Resources:Lan,TechnicalContactView_Attachment_ToolTip%>" Icon="TableCell" OnClick="btnapprove_Click" runat="server">
</f:Button>
</Items>
</f:Panel>
</Items>
</f:FormRow>
<f:FormRow ID="plApprove2">
<Items>
<f:ContentPanel Title="<%$ Resources:Lan,EditConstructSolution_gvApprove_Title%>" ShowBorder="true"
BodyPadding="10px" EnableCollapse="true" ShowHeader="true" AutoScroll="true"
runat="server">
<f:Grid ID="gvApprove" IsFluid="true" EnableTextSelection="True" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" runat="server" EnableCollapse="false"
DataKeyNames="ConstructSolutionApproveId" EnableColumnLines="true" OnRowCommand="gvApprove_RowCommand" ForceFit="true">
<Columns>
<f:RowNumberField Width="40px" HeaderText="<%$ Resources:Lan,ShoBreakdownProject_Grid1_BreakdownCode_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center" />
<f:TemplateField ColumnID="Edition" Width="40px" HeaderText="<%$ Resources:Lan,EditConstructSolution_gvApprove_Edition_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="Label4" runat="server" Text='<%# ((int)Eval("Edition")/10.0).ToString("#0.0") %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField ColumnID="ApproveType" Width="110px" HeaderText="<%$ Resources:Lan,EditConstructSolution_gvApprove_ApproveType_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# BLL.CQMSConstructSolutionService.ConvertState(Eval("ApproveType")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField ColumnID="ApproveMan" Width="150px" HeaderText="<%$ Resources:Lan,EditConstructSolution_gvApprove_ApproveMan_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="Label3" runat="server" Text='<%# man(Eval("ApproveMan")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField ColumnID="IsAgree" Width="100px" HeaderText="<%$ Resources:Lan,EditConstructSolution_gvApprove_IsAgree_HeaderText%>" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# BLL.CQMSConstructSolutionService.IsAgree(Eval("ApproveType"),Eval("IsAgree")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:BoundField Width="100px" DataField="ApproveDate" HeaderTextAlign="Center" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd}" HeaderText="<%$ Resources:Lan,EditConstructSolution_gvApprove_ApproveDate_HeaderText%>" />
<f:BoundField Width="180px" DataField="ApproveIdea" HeaderTextAlign="Center" TextAlign="Center" HeaderText="<%$ Resources:Lan,EditConstructSolution_gvApprove_ApproveIdea_HeaderText%>" />
<f:LinkButtonField HeaderText="<%$ Resources:Lan,ITPListEdit_btnAttach_Text%>" ColumnID="download" Width="60px" Icon="ArrowDown" CommandName="download" />
</Columns>
</f:Grid>
</f:ContentPanel>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill>
<f:HiddenField ID="HFConstructSolutionId" runat="server"></f:HiddenField>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="<%$ Resources:Lan,ITPListProjectEdit_btnSave_ToolTip%>" ToolTip="<%$ Resources:Lan,ITPListProjectEdit_btnSave_ToolTip%>" OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" Text="<%$ Resources:Lan,EditConstructSolution_btnSubmit_ToolTip%>" ToolTip="<%$ Resources:Lan,EditConstructSolution_btnSubmit_ToolTip%>" OnClick="btnSubmit_Click" ValidateForms="SimpleForm1">
</f:Button>
<%-- <f:Button ID="btnClose" EnablePostBack="false" ToolTip="<%$ Resources:Lan,ZlgltxEdit_btnClose_ToolTip%>" OnClick="btnClose_Click" runat="server" Icon="SystemClose">
</f:Button>--%>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</form>
<f:Window ID="WindowAtt" Title="<%$ Resources:Lan,ITPListProjectEdit_WindowAtt_Title%>" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
</body>
</html>