ChengDa_English/SGGL/FineUIPro.Web/HJGL/MaterialManage/MaterialApplyEdit.aspx

274 lines
18 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MaterialApplyEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.MaterialManage.MaterialApplyEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><asp:Literal runat="server" Text="<%$ Resources:Lan,GJSXList_Import%>"/><asp:Literal runat="server" Text="<%$ Resources:Lan,GJSXList_GridTitle%>"/></title>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style>
.f-grid-row .f-grid-cell-inner
{
white-space: normal;
word-break: break-all;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" OnCustomEvent="PageManager1_CustomEvent" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSave1" Icon="SystemSave" runat="server" ToolTip="<%$ Resources:Lan,XmsgGlgdEdit_Save%>" OnClick="btnSave_Click" Text="<%$ Resources:Lan,XmsgGlgdEdit_Save%>">
</f:Button>
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" ToolTip="<%$ Resources:Lan,WorkHandoverEdit_Submit%>" Text="<%$ Resources:Lan,WorkHandoverEdit_Submit%>" OnClick="btnSubmit_Click" ValidateForms="SimpleForm1">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtProjectName" runat="server" Required="true" ShowRedStar="true" Label="<%$ Resources:Lan,NDTWeekReport_ProjectName%>" LabelAlign="Right" Enabled="false"
MaxLength="50">
</f:TextBox>
<f:DropDownList ID="dpApplyUnit" runat="server" Label="<%$ Resources:Lan,ApplyUnitLabel%>" LabelAlign="Right" LabelWidth="100px">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtApplyName" runat="server" Label="<%$ Resources:Lan,PurchaseOrderNameHeaderText%>" LabelAlign="Right" Required="true" ShowRedStar="true"
MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtApplyCode" runat="server" Label="<%$ Resources:Lan,PurchaseOrderHeaderCode%>" LabelAlign="Right" Required="true" ShowRedStar="true"
MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="dpApplyDate" ShowRedStar="true" Required="true" runat="server" Label="<%$ Resources:Lan,ApplyDateLabel%>" LabelAlign="Right"
EnableEdit="true">
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtApplyDes" runat="server" Label="<%$ Resources:Lan,DescriptionLabel%>" MaxLength="3000">
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
</Items>
</f:FormRow>
<f:FormRow ID="FrUpload" ColumnWidths="45% 5% 5% 5% 40%">
<Items>
<f:FileUpload runat="server" ID="fuAttachUrl" EmptyText="<%$ Resources:Lan,SelectFileLabel%>" Label="<%$ Resources:Lan,SelectFileLabel%>" Width="400px"
LabelWidth="150px">
</f:FileUpload>
<f:Button ID="btnAudit" Icon="ApplicationEdit" runat="server" ToolTip="<%$ Resources:Lan,WeldReportDataIn_Audit%>" ValidateForms="SimpleForm1" Width="50px"
OnClick="btnAudit_Click">
</f:Button>
<f:Button ID="btnDownLoad" runat="server" Icon="ApplicationGo" ToolTip="<%$ Resources:Lan,DownloadTemplateButtonText%>" OnClick="btnDownLoad_Click" Width="50px">
</f:Button>
<f:Label></f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true" runat="server"
EnableColumnLines="true" BoxFlex="1" DataKeyNames="ID" AllowCellEditing="true"
ClicksToEdit="2" DataIDField="ID" AllowSorting="true" SortField="MaterialCode"
PageSize="50" Height="360px" ForceFit="true" OnRowCommand="Grid1_RowCommand" EnableCheckBoxSelect="true" >
<Toolbars>
<f:Toolbar ID="Toolbar1" runat="server">
<Items>
<f:Button ID="btnNew" Text="<%$ Resources:Lan,AddDataButtonText%>" Icon="Add" EnablePostBack="false" runat="server">
</f:Button>
<f:Button ID="btnDelete" Text="<%$ Resources:Lan,DeleteSelectedRowButtonText%>" Icon="Delete" EnablePostBack="false" runat="server">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField Width="55px" HeaderText="<%$ Resources:Lan,StartWorkReport_SerialNumber%>">
<ItemTemplate>
<asp:Label ID="Label2" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField HeaderText="<%$ Resources:Lan,PrimaryKeyHeaderText%>" ColumnID="ID" DataField="ID"
SortField="ID" FieldType="String" HeaderTextAlign="Center" TextAlign="Center"
Hidden="true">
</f:RenderField>
<f:RenderField HeaderText="材料编码<font color='red'>(*)</font>" ColumnID="MaterialCode" DataField="MaterialCode"
HeaderTextAlign="Center" TextAlign="Center" Width="100px" FieldType="String">
<Editor>
<f:TextBox runat="server" ShowRedStar="true" Required="true" ID="txtMaterialCode" Text='<%# Bind("MaterialCode") %>' MaxLength="500">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="位号<font color='red'>(*)</font>" ColumnID="LocNum" DataField="LocNum"
HeaderTextAlign="Center" TextAlign="Center" Width="100px" FieldType="String">
<Editor>
<f:TextBox runat="server" ShowRedStar="true" Required="true" ID="txtLocNum" Text='<%# Bind("LocNum") %>' MaxLength="500">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="材料描述<font color='red'>(*)</font>" ColumnID="Des" DataField="Des"
HeaderTextAlign="Center" TextAlign="Center" Width="300px" FieldType="String">
<Editor>
<f:TextBox runat="server" ShowRedStar="true" Required="true" ID="txtDes" Text='<%# Bind("Des") %>' MaxLength="500">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="单位<font color='red'>(*)</font>" ColumnID="Unit" DataField="Unit"
HeaderTextAlign="Center" TextAlign="Center" Width="60px" FieldType="String">
<Editor>
<f:TextBox runat="server" ShowRedStar="true" Required="true" ID="txtUnit" Text='<%# Bind("Unit") %>' MaxLength="500">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="设计量<font color='red'>(*)</font>" ColumnID="Amount_Design" DataField="Amount_Design"
HeaderTextAlign="Center" TextAlign="Center" Width="60px" FieldType="String">
<Editor>
<f:TextBox runat="server" ShowRedStar="true" Required="true" ID="txtAmount_Design" Text='<%# Bind("Amount_Design") %>' MaxLength="500">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="余量<font color='red'>(*)</font>" ColumnID="Amount_Re" DataField="Amount_Re"
HeaderTextAlign="Center" TextAlign="Center" Width="60px" FieldType="String">
<Editor>
<f:TextBox runat="server" ShowRedStar="true" Required="true" ID="txtAmount_Re" Text='<%# Bind("Amount_Re") %>' MaxLength="500">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="<%$ Resources:Lan,AmountThisHeaderText%>" ColumnID="Amount_This" DataField="Amount_This"
HeaderTextAlign="Center" TextAlign="Center" Width="60px" FieldType="String">
<Editor>
<f:TextBox runat="server" ShowRedStar="true" Required="true" ID="txtAmount_This" Text='<%# Bind("Amount_This") %>' MaxLength="500">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="<%$ Resources:Lan,AmountTotalHeaderText%>" ColumnID="Amount_Total" DataField="Amount_Total"
HeaderTextAlign="Center" TextAlign="Center" Width="60px" FieldType="String">
<Editor>
<f:TextBox runat="server" ShowRedStar="true" Required="true" ID="txtAmount_Total" Text='<%# Bind("Amount_Total") %>' MaxLength="500">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="<%$ Resources:Lan,Size1HeaderText%>" ColumnID="Size1" DataField="Size1"
HeaderTextAlign="Center" TextAlign="Center" Width="60px" FieldType="String">
<Editor>
<f:TextBox runat="server" ID="txtSize1" Text='<%# Bind("Size1") %>' MaxLength="500">
</f:TextBox>
</Editor>
</f:RenderField>
<f:RenderField HeaderText="<%$ Resources:Lan,Size2HeaderText%>" ColumnID="Size2" DataField="Size2"
HeaderTextAlign="Center" TextAlign="Center" Width="60px" FieldType="String">
<Editor>
<f:TextBox runat="server" ID="txtSize2" Text='<%# Bind("Size2") %>' MaxLength="500">
</f:TextBox>
</Editor>
</f:RenderField>
<f:LinkButtonField Width="30px" ConfirmText="<%$ Resources:Lan,ProjectPageData_DeleteConfirm%>" ConfirmTarget="Top" CommandName="Delete" Icon="Delete" />
</Columns>
</f:Grid>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:HiddenField ID="hdFileName" runat="server">
</f:HiddenField>
<f:HiddenField ID="hdCheckResult" runat="server">
</f:HiddenField>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Label ID="lblBottom" runat="server" Text="说明1 导入模板为.xls后缀的EXCEL文件黑体字为必填项。2 如需修改已信息请到系统中修改。3 数据审核后,点击“保存”,即可完成导入。">
</f:Label>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:ContentPanel ID="ContentPanel5" Title="审批流程" runat="server" ShowHeader="true" EnableCollapse="true"
BodyPadding="0px">
<f:Form ID="Form5" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow ID="frStap">
<Items>
<f:DropDownList ID="drpHandleType" AutoPostBack="true" runat="server" Label="<%$ Resources:Lan,WorkHandoverEdit_HandleType%>" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
<f:DropDownList ID="drpHandleMan" runat="server" Label="<%$ Resources:Lan,WorkHandoverView_ApproveMan%>" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow ID="FrYesOrNo" Hidden="true">
<Items>
<f:RadioButtonList runat="server" ID="rblIsAgree" Label="<%$ Resources:Lan,WorkHandoverEdit_IsAgree%>" AutoPostBack="true" >
<f:RadioItem Text="<%$ Resources:Lan,WorkHandoverEdit_Agree%>" Value="true" Selected="true"/>
<f:RadioItem Text="<%$ Resources:Lan,WorkHandoverEdit_Disagree%>" Value="false" />
</f:RadioButtonList>
<f:Label runat="server" CssStyle="display:none"></f:Label>
</Items>
</f:FormRow>
<f:FormRow ID="FrApprove1" Hidden="true">
<Items>
<f:TextArea ID="txtOpinions" runat="server" Label="<%$ Resources:Lan,WorkHandoverEdit_MyOpinions%>" MaxLength="3000">
</f:TextArea>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</f:ContentPanel>
</Items>
</f:FormRow>
<f:FormRow ID="plApprove2">
<Items>
<f:Grid ID="gvApprove" IsFluid="true" CssClass="blockpanel" ShowBorder="true" ShowHeader="false" runat="server" EnableCollapse="false"
DataKeyNames="CheckControlApproveId" EnableColumnLines="true" ForceFit="true">
<Columns>
<f:RowNumberField Width="20px" />
<f:TemplateField ColumnID="State" Width="250px" HeaderText="<%$ Resources:Lan,WorkHandoverView_ApproveType%>" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="lbtype" runat="server" Text='<%# ConvertState(Eval("ApproveType")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField Width="180px" HeaderText="<%$ Resources:Lan,WorkHandoverView_ApproveMan%>" HeaderTextAlign="Center"
TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# ConvertUserName(Eval("ApproveMan")) %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:BoundField Width="200px" DataField="ApproveDate" HeaderTextAlign="Center" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd}" HeaderText="<%$ Resources:Lan,WorkHandoverView_ApproveDate%>" />
<f:BoundField Width="180px" DataField="ApproveIdea" HeaderTextAlign="Center" TextAlign="Center" HeaderText="<%$ Resources:Lan,WorkHandoverView_ApproveIdea%>" />
</Columns>
</f:Grid>
</Items>
</f:FormRow>
</Rows>
</f:Form>
</form>
</body>
</html>