2
schangxiang@126.com
2024-08-16 b47c50a2a514def7374b32d7194b2c599cba5625
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectMaterial.aspx.cs" Inherits="iWareWms.View.DOC.SelectMaterial" %>
 
<!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="Panel1" runat="server" />
        <f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" EnableCollapse="true" Collapsed="true" Expanded="true">
            <Toolbars>
                <f:Toolbar runat="server">
                    <Items>
 
                        <f:TextBox ID="tbCode" NextFocusControl="SearchBtn" Label="物料编号" runat="server" EmptyText="在物料编号中搜索" LabelWidth="80px"></f:TextBox>
                        <f:DropDownList ID="ddlTypeId" runat="server" Label="物料类型" AutoPostBack="true" AutoSelectFirstItem="true" LabelWidth="80px" OnSelectedIndexChanged="Search">
 
                        </f:DropDownList>
                        <f:Button ID="SearchBtn"  OnClick="Search" runat="server" Text="搜索"></f:Button>
                        <f:ToolbarFill ID="ToolbarFill2" runat="server"></f:ToolbarFill>
                        <f:Button ID="btnSaveClose" Icon="SystemSaveClose" OnClick="Select" runat="server" Text="选择选中项"></f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
            <Items>  
                <f:Grid ID="MaterialGrid" runat="server" BoxFlex="1" Height="371px"
                    IsDatabasePaging="true" DataKeyNames="Id, Name,Code,TypeName,Status" AllowSorting="true" SortField="Id" KeepCurrentSelection="true"
                    ShowBorder="true" OnRowCommand="GridRowCommand" ForceFit="true" AllowPaging="true" OnPageIndexChange="GridPageIndexChange" EnableTextSelection="true"
                    EnableRowLines="True" ShowSelectedCell="False" ShowHeader="false" EnableCheckBoxSelect="true" EnableMultiSelect="false">
                    
                    <Columns>
                        <f:RowNumberField MinWidth="24px" HeaderText="" TextAlign="Left" />
                       
                        <f:BoundField DataField="Name" HeaderText="物料名称" MinWidth="200px" />
                        <f:BoundField DataField="Code" HeaderText="物料编号" MinWidth="100px" />
                        <f:BoundField DataField="Version"  MinWidth="51px" HeaderText="版本" />
                  
                   
                        <f:BoundField DataField="TypeName"  MinWidth="96px" HeaderText="物料类型" />
                        <f:TemplateField MinWidth="96px" HeaderText="所属大类" SortField="Type">
                            <ItemTemplate>
                                <asp:Label ID="Type" runat="server" Text='<%# GetType(Eval("Type"))%>'></asp:Label>
                            </ItemTemplate>
                        </f:TemplateField>
                        <f:BoundField DataField="Specification" MinWidth="100px" HeaderText="规格型号" ExpandUnusedSpace="true" />
                    </Columns>
                    <PageItems>
                        <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server"></f:ToolbarSeparator>
                        <f:ToolbarText ID="ToolbarText1" runat="server"></f:ToolbarText>
                        <f:DropDownList ID="ddlPageSize" runat="server" Label="每页记录数" OnSelectedIndexChanged="PageSizeSelectedIndexChanged" AutoPostBack="true">
                            <f:ListItem Text="8" Value="8" />
                            <f:ListItem Text="10" Value="10" />
                            <f:ListItem Text="15" Value="15" />
                            <f:ListItem Text="20" Value="20" />
                        </f:DropDownList>
                    </PageItems>
                </f:Grid>
            </Items>
        </f:Panel>
    </form>
</body>
</html>