- <%@ page language="C#" autoeventwireup="true" inherits="Workflow_SelectMateril, App_Web_4afs73eh" theme="Normal" %>
- <!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" >
- <head runat="server">
- <link href="style/gridStyle.css" rel="stylesheet" type="text/css" />
- <base target="_self" />
- <title>物资代码选择</title>
- <script type="text/javascript">
- function OKCancel()
- {
- if (confirm("系统提示:您确定放弃本次物资代码的选择吗?"))
- {
- window.close();
- }
- return false;
- }
- function SelectedCheck()
- {
- var s = form1.WZValue.value;
- s=s.replace(/^s+|s+$/g,"");
- if (s=="")
- {
- alert("系统提示:您还没有正确的选择物资代码!");
- return false;
- }
- if (confirm("系统提示:您确定选择『" +s + "』物资代码吗?"))
- {
- return true;
- }
- return false;
- }
- </script>
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <table width="100%" border="0" cellpadding="0" cellspacing="0" >
- <tr>
- <td colspan="7">
- <div style="text-indent:2em;height:300px;overflow-x:hidden;overflow-y:auto;width:100%; text-align:left;">
- <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="wz_id" BackColor="#CDCDCF" BorderWidth="0px"
- CssClass="Grid" SelectedRowStyle-CssClass="SelectedRow" RowStyle-CssClass="HeadingCellText"
- FooterStyle-CssClass="GridFooter" ShowFooter="true" CellSpacing="1" CellPadding="0"
- Width="98%" AllowPaging="false" AllowSorting="false"
- OnRowDataBound="GridView1_RowDataBound" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" >
- <AlternatingRowStyle BackColor="#F0F0F0" />
- <RowStyle BackColor="#F9FAFC" CssClass="HeadingCellText" />
- <HeaderStyle Height="25px" BackColor="#DFDFDF" CssClass="GridHeader" />
- <Columns>
- <asp:BoundField DataField="wz_name" HeaderText="物资名称">
- <HeaderStyle Width="20%"/>
- </asp:BoundField>
- <asp:BoundField DataField="wz_spec" HeaderText="规格型号">
- <HeaderStyle Width="40%"/>
- </asp:BoundField>
- <asp:BoundField DataField="wz_id" HeaderText="物资代码">
- <HeaderStyle Width="15%"/>
- </asp:BoundField>
- <asp:TemplateField HeaderText="选择物资" HeaderStyle-CssClass="TemplateFieldHeader">
- <ItemTemplate>
- <asp:ImageButton ID="IB_Select" ToolTip="选择" runat="server" CommandName="Select" ImageUrl="Image/i_rate.gif"/>
- <asp:ImageButton ToolTip="已选" ID="IB_Selected" runat="server" ImageUrl="Image/p5.gif" OnClientClick="javascript:return false;" Height="20" Width="20" Visible="false"/>
- </ItemTemplate>
- <ItemStyle HorizontalAlign="Left" BorderWidth="0px"/>
- </asp:TemplateField>
- </Columns>
- <FooterStyle CssClass="GridFooter" />
- <PagerStyle CssClass="GridPage" />
- <EmptyDataTemplate>
- <table width="100%" class="GridHeader">
- <tr style=" border-width:1px; height:25px;" align="center" bgcolor="#DFDFDF">
- <td style="border:1px solid #CCCCCC; width:20%">物资名称</td>
- <td style="border:1px solid #CCCCCC; width:40%">规格型号</td>
- <td style="border:1px solid #CCCCCC; width:15%">物资代码</td>
- <td style="border:1px solid #CCCCCC; text-align:center;"> 选择物资</td>
- </tr>
- </table>
- <center class="EmpetyData"> 系统提示:没有您所需要的物资代码。</center>
- </EmptyDataTemplate>
- </asp:GridView>
- </div>
- </td>
- </tr>
- </table>
- <table width="100%">
- <tr style="height:5px;"></tr>
- <tr>
- <td style="width:50%"></td>
- <td>
-
- <asp:ImageButton ID="OKConfirm" ImageUrl="~/Workflow/image/queding.gif" runat="server" OnClientClick="javascript:return SelectedCheck();" OnClick="OKConfirm_Click" />
- <asp:ImageButton ID="OKCancel" ImageUrl="~/Workflow/image/quxiao.gif" runat="server" OnClientClick="javascript:return OKCancel();" />
- </td>
- </tr>
- </table>
- </div>
- <input type="hidden" id ="WZID" name ="WZID" runat="server" />
- <input type="hidden" id="WZValue" name="WZValue" runat="server" />
- </form>
- </body>
- </html>