|
|
@ -1,4 +1,5 @@ |
|
|
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Appliance.aspx.cs" Inherits="SCP.Views.BasicData.Appliance" %> |
|
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
|
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
|
@ -9,78 +10,78 @@ |
|
|
|
</head> |
|
|
|
<body> |
|
|
|
<form id="form1" runat="server"> |
|
|
|
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" /> |
|
|
|
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True" Layout="VBox"> |
|
|
|
<Items> |
|
|
|
<f:Toolbar ID="Toolbar1" runat="server"> |
|
|
|
<Items> |
|
|
|
|
|
|
|
<f:TextBox ID="txtPartCode" runat="server" Label="零件号码" Text=""> |
|
|
|
</f:TextBox> |
|
|
|
<f:TextBox ID="TextBox1" runat="server" Label="供应商代码" Text=""> |
|
|
|
</f:TextBox> |
|
|
|
<f:Button ID="btnSearch" runat="server" Text="快速查找" OnClick="btnSearch_Click" Icon="SystemSearch"> |
|
|
|
</f:Button> |
|
|
|
<f:Button ID="Button3" runat="server" EnablePostBack="false" Text="刷新" Icon="Reload" OnClientClick="location.reload();"> |
|
|
|
</f:Button> |
|
|
|
<f:Button ID="Insert" runat="server" Text="新建" Icon="Add" OnClick="Button2_Click" > |
|
|
|
</f:Button> |
|
|
|
<f:Button ID="Delete" runat="server" Text="删除" Icon="Delete" OnClick="Buttondelete_Click" OnClientClick="if(!confirm('是否要将数据删除'))return false;" > |
|
|
|
</f:Button> |
|
|
|
<f:Button ID="Update" runat="server" Text="修改" Icon="BasketEdit" OnClick="Button4_Click" |
|
|
|
> |
|
|
|
</f:Button> |
|
|
|
<f:ToolbarSeparator runat="server" /> |
|
|
|
<f:FileUpload runat="server" ID="FileUp" EmptyText="请选择要货单据" Required="true" Width="200" ButtonIcon="Add" ShowRedStar="true" > </f:FileUpload> |
|
|
|
<f:Button ID="btnInput" runat="server" Text="导入" Icon="PageExcel" OnClick="btnInput_Click" > |
|
|
|
</f:Button> |
|
|
|
<f:Button ID="btnOutput" runat="server" Text="导出" OnClick="btnOutput_OnClick" Icon="PageExcel"> |
|
|
|
</f:Button> |
|
|
|
</Items> |
|
|
|
</f:Toolbar> |
|
|
|
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" /> |
|
|
|
<f:Panel ID="Panel1" runat="server" Title="" AutoScroll="True" Layout="VBox"> |
|
|
|
<Items> |
|
|
|
<f:Toolbar ID="Toolbar1" runat="server"> |
|
|
|
<Items> |
|
|
|
|
|
|
|
<f:Grid ID="Grid1" runat="server" BoxFlex="1" |
|
|
|
ShowHeader="False" DataKeyNames = " UID,PartNumber,Texture,ReceivingPort,PartDesc1,Model,PackNumber,ReciteNumber, SufanLand,BoxType,PostEngineering,VendID" |
|
|
|
<f:TextBox ID="txtPartCode" runat="server" Label="零件号码" Text=""> |
|
|
|
</f:TextBox> |
|
|
|
<f:TextBox ID="TextBox1" runat="server" Label="供应商代码" Text=""> |
|
|
|
</f:TextBox> |
|
|
|
<f:Button ID="btnSearch" runat="server" Text="快速查找" OnClick="btnSearch_Click" Icon="SystemSearch"> |
|
|
|
</f:Button> |
|
|
|
<f:Button ID="Button3" runat="server" EnablePostBack="false" Text="刷新" Icon="Reload" OnClientClick="location.reload();"> |
|
|
|
</f:Button> |
|
|
|
<f:Button ID="Insert" runat="server" Text="新建" Icon="Add" OnClick="Button2_Click" EnablePostBack="True"> |
|
|
|
</f:Button> |
|
|
|
<f:Button ID="Delete" runat="server" Text="删除" Icon="Delete" OnClick="Buttondelete_Click" OnClientClick="if(!confirm('是否要将数据删除'))return false;"> |
|
|
|
</f:Button> |
|
|
|
<f:Button ID="Update" runat="server" Text="修改" Icon="BasketEdit" OnClick="Button4_Click" EnablePostBack="True"> |
|
|
|
</f:Button> |
|
|
|
<f:ToolbarSeparator runat="server" /> |
|
|
|
<f:FileUpload runat="server" ID="FileUp" EmptyText="请选择要货单据" Required="true" Width="200" ButtonIcon="Add" ShowRedStar="true"></f:FileUpload> |
|
|
|
<f:Button ID="btnInput" runat="server" Text="导入" Icon="PageExcel" OnClick="btnInput_Click"> |
|
|
|
</f:Button> |
|
|
|
<f:Button ID="btnOutput" runat="server" Text="导出" OnClick="btnOutput_OnClick" Icon="PageExcel"> |
|
|
|
</f:Button> |
|
|
|
<f:LinkButton ID="linkbutton" runat="server" Text="模板下载" OnClick="LinkButton_Click" ></f:LinkButton> |
|
|
|
</Items> |
|
|
|
</f:Toolbar> |
|
|
|
|
|
|
|
AllowPaging="True" PageSize="50" OnPageIndexChange="Grid1_OnPageIndexChange" |
|
|
|
ShowBorder="False" |
|
|
|
AllowSorting="true" IsDatabasePaging="true" SortField="PartCode" EnableCheckBoxSelect="true"> |
|
|
|
<PageItems> |
|
|
|
<f:Grid ID="Grid1" runat="server" BoxFlex="1" |
|
|
|
ShowHeader="False" DataKeyNames=" UID,PartNumber,Texture,ReceivingPort,PartDesc1,Model,PackNumber,ReciteNumber, SufanLand,BoxType,PostEngineering,VendID,OtherVendName" |
|
|
|
AllowPaging="True" PageSize="50" OnPageIndexChange="Grid1_OnPageIndexChange" |
|
|
|
ShowBorder="False" |
|
|
|
AllowSorting="true" IsDatabasePaging="true" SortField="PartCode" EnableCheckBoxSelect="true"> |
|
|
|
<PageItems> |
|
|
|
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server"> |
|
|
|
</f:ToolbarSeparator> |
|
|
|
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:"> |
|
|
|
</f:ToolbarText> |
|
|
|
<f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged" |
|
|
|
runat="server"> |
|
|
|
|
|
|
|
|
|
|
|
<f:ListItem Text="100" Value="100" /> |
|
|
|
<f:ListItem Text="200" Value="200" /> |
|
|
|
<f:ListItem Text="500" Value="500" /> |
|
|
|
<f:ListItem Text="1000" Value="1000" /> |
|
|
|
<f:ListItem Text="5000" Value="5000" /> |
|
|
|
<f:ListItem Text="10000" Value="10000" /> |
|
|
|
<f:ListItem Text="500" Value="500" /> |
|
|
|
<f:ListItem Text="1000" Value="1000" /> |
|
|
|
<f:ListItem Text="5000" Value="5000" /> |
|
|
|
<f:ListItem Text="10000" Value="10000" /> |
|
|
|
</f:DropDownList> |
|
|
|
</PageItems> |
|
|
|
<Columns> |
|
|
|
<f:BoundField SortField="UID" DataField="UID" ColumnID="UID" Width="100px" Hidden="true"/> |
|
|
|
<f:BoundField SortField="PartNumber" DataField="PartNumber" HeaderText="零件号码" ColumnID="PartNumber" Width="100px" /> |
|
|
|
|
|
|
|
<f:BoundField SortField="Texture" DataField="Texture" HeaderText="材质" ColumnID="Texture" Width="100px" /> |
|
|
|
<f:BoundField SortField="ReceivingPort" DataField="ReceivingPort" HeaderText="收货口" ColumnID="ReceivingPort" width="80" /> |
|
|
|
<f:BoundField SortField="PartDesc1" DataField="PartDesc1" HeaderText="零件描述" ColumnID="PartDesc1" Width="100px" /> |
|
|
|
<f:BoundField SortField="Appliancenumber" DataField="Appliancenumber" HeaderText="器具型号" ColumnID="Appliancenumber" Width="200px" Hidden="true" /> |
|
|
|
<f:BoundField SortField="Model" DataField="Model" HeaderText="车型" ColumnID="Model" Width="100px"/> |
|
|
|
<f:BoundField SortField="PackNumber" DataField="PackNumber" HeaderText="标包数" ColumnID="PackNumber" Width="100px"/> |
|
|
|
<f:BoundField SortField="ReciteNumber" DataField="ReciteNumber" HeaderText="背番号" ColumnID="ReciteNumber" Width="100px"/> |
|
|
|
<f:BoundField SortField="SufanLand" DataField="SufanLand" HeaderText="所番地" ColumnID="SufanLand" Width="100px"/> |
|
|
|
<f:BoundField SortField="BoxType" DataField="BoxType" HeaderText="箱种" ColumnID="BoxType" Width="100px"/> |
|
|
|
<f:BoundField SortField="PostEngineering" DataField="PostEngineering" HeaderText="后工程" ColumnID="PostEngineering" Width="100px"/> |
|
|
|
<f:BoundField SortField="VendID" DataField="VendID" HeaderText="供应商代码" ColumnID="VendID" Width="100px"/> |
|
|
|
</Columns> |
|
|
|
</f:Grid> |
|
|
|
</Items> |
|
|
|
</f:Panel> |
|
|
|
<%--<f:Window ID="Window1" runat="server" Popup="false" |
|
|
|
</PageItems> |
|
|
|
<Columns> |
|
|
|
<f:BoundField SortField="UID" DataField="UID" ColumnID="UID" Width="100px" Hidden="true" /> |
|
|
|
<f:BoundField SortField="PartNumber" DataField="PartNumber" HeaderText="零件号码" ColumnID="PartNumber" Width="100px" /> |
|
|
|
|
|
|
|
<f:BoundField SortField="Texture" DataField="Texture" HeaderText="材质" ColumnID="Texture" Width="100px" /> |
|
|
|
<f:BoundField SortField="ReceivingPort" DataField="ReceivingPort" HeaderText="收货口" ColumnID="ReceivingPort" Width="80" /> |
|
|
|
<f:BoundField SortField="PartDesc1" DataField="PartDesc1" HeaderText="零件描述" ColumnID="PartDesc1" Width="100px" /> |
|
|
|
<f:BoundField SortField="Appliancenumber" DataField="Appliancenumber" HeaderText="器具型号" ColumnID="Appliancenumber" Width="200px" Hidden="true" /> |
|
|
|
<f:BoundField SortField="Model" DataField="Model" HeaderText="车型" ColumnID="Model" Width="100px" /> |
|
|
|
<f:BoundField SortField="PackNumber" DataField="PackNumber" HeaderText="标包数" ColumnID="PackNumber" Width="100px" /> |
|
|
|
<f:BoundField SortField="ReciteNumber" DataField="ReciteNumber" HeaderText="背番号" ColumnID="ReciteNumber" Width="100px" /> |
|
|
|
<f:BoundField SortField="SufanLand" DataField="SufanLand" HeaderText="所番地" ColumnID="SufanLand" Width="100px" /> |
|
|
|
<f:BoundField SortField="BoxType" DataField="BoxType" HeaderText="箱种" ColumnID="BoxType" Width="100px" /> |
|
|
|
<f:BoundField SortField="PostEngineering" DataField="PostEngineering" HeaderText="后工程" ColumnID="PostEngineering" Width="100px" /> |
|
|
|
<f:BoundField SortField="VendID" DataField="VendID" HeaderText="供应商代码" ColumnID="VendID" Width="100px" /> |
|
|
|
<f:BoundField SortField="OtherVendName" DataField="OtherVendName" HeaderText="供应商别名" ColumnID="OtherVendName" Width="100px" ID="OtherVendName" Hidden="true" /> |
|
|
|
</Columns> |
|
|
|
</f:Grid> |
|
|
|
</Items> |
|
|
|
</f:Panel> |
|
|
|
<%--<f:Window ID="Window1" runat="server" Popup="false" |
|
|
|
WindowPosition="Center" IsModal="true" Title="Popup Window 1" Target="Parent" EnableIFrame="true" |
|
|
|
IFrameUrl="about:blank" Height="300px" Width="700px"> |
|
|
|
</f:Window> |
|
|
@ -88,7 +89,7 @@ |
|
|
|
WindowPosition="Center" IsModal="true" Title="Popup Window 1" Target="Parent" EnableIFrame="true" |
|
|
|
IFrameUrl="about:blank" Height="200px" Width="400px" OnClose="WindowUpload_Close" > |
|
|
|
</f:Window>--%> |
|
|
|
<script type="text/javascript"> |
|
|
|
<script type="text/javascript"> |
|
|
|
|
|
|
|
function onReady() { |
|
|
|
var grid1 = Ext.getCmp('<%=Grid1.ClientID%>'); |
|
|
@ -98,12 +99,12 @@ |
|
|
|
$(window).bind("load resize", function () { |
|
|
|
onReady(); |
|
|
|
}); |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
</form> |
|
|
|
<f:Window runat="server" ID="Window1" Hidden="True" AutoScroll="false" Width="800px" Height="450px" CloseAction="HidePostBack" |
|
|
|
WindowPosition="Center" IsModal="true" Title="零件明细" Target="Parent" EnableIFrame="true" |
|
|
|
IFrameUrl="about:blank" /> |
|
|
|
<f:Window runat="server" ID="Window1" Hidden="True" AutoScroll="false" Width="800px" Height="450px" CloseAction="HidePostBack" |
|
|
|
WindowPosition="Center" IsModal="true" Title="零件明细" Target="Parent" EnableIFrame="true" OnClose="Window1_Close" |
|
|
|
IFrameUrl="about:blank" /> |
|
|
|
</body> |
|
|
|
</html> |
|
|
|
|
|
|
|