<telerik:GridBoundColumn DataField="Qty" DataType="System.Int32" HeaderText="Qty" ReadOnly="True" SortExpression="Qty" UniqueName="Qty"> <HeaderStyle Width="70px" /> <ItemStyle HorizontalAlign="Right" /> </telerik:GridBoundColumn>
<%@ Page Title="FGS : TAG Information" Language="C#" MasterPageFile="~/Theme.Master" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Check_Stock.index" %> <asp:Content ID="Body" ContentPlaceHolderID="Body" runat="server"> <telerik:RadScriptManager ID="RadScriptManager" runat="server"> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="btn_search"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="RadGrid_Temp" LoadingPanelID="RadAjaxLoadingPanel" /> <telerik:AjaxUpdatedControl ControlID="RadGrid_Stock" LoadingPanelID="RadAjaxLoadingPanel" /> <telerik:AjaxUpdatedControl ControlID="RadGrid_Sale" LoadingPanelID="RadAjaxLoadingPanel" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager> <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" Skin="Default"> </telerik:RadAjaxLoadingPanel> <center> <div> <table style="font-family:Tahoma; font-size:14px; text-align:center;"> <tr > <td style="height: 30px"> <asp:Label ID="Label1" runat="server" Text="รูปแบบการค้นหาข้อมูล"></asp:Label> </td> </tr> <tr style="height:50px; text-align:center;"> <td> <asp:RadioButtonList ID="radSearchType" runat="server" CellPadding="5" CellSpacing="5" RepeatLayout="Flow"> <asp:ListItem Value="Pallet" Text="หมายเลข TAG" Selected="True"></asp:ListItem> <asp:ListItem Value="Serial" Text="หมายเลข Serial"></asp:ListItem> <asp:ListItem Value="Mix" Text="ข้อมูลการ Mix"></asp:ListItem> </asp:RadioButtonList> </td> </tr> <tr style="height:20px; text-align:center;" > <td> </td> </tr> <tr style="height:40px; text-align:center;" > <td> <telerik:RadTextBox ID="txt_palletcode" runat="server" Width="200px"></telerik:RadTextBox> </td> </tr> <tr style="height:50px;"> <td> <asp:Button ID="btn_search" runat="server" Width="80px" Text="ค้นหา" onclick="btn_search_Click" /> </td> </tr> </table> </div> <br /> <table style="font-family:Tahoma; font-size:14px; text-align:left;"> <tr style="height:25px;"> <td><asp:Label ID="lbl_temp" runat="server" Text="ข้อมูล TAG ที่ส่งมาจาก RNT"></asp:Label></td> <td><asp:Label ID="lbl_stock" runat="server" Text="ข้อมูลปัจจุบันใน Stock FG"></asp:Label></td> <td><asp:Label ID="lbl_issue" runat="server" Text="ข้อมูลการขาย"></asp:Label></td> </tr> <tr> <td style="text-align:left; vertical-align:top; width:300px;"> <div> <telerik:RadGrid ID="RadGrid_Temp" runat=server AutoGenerateColumns="False" DataSourceID="DS_Temp_Header" GridLines="None" Skin="Web20" Width="265px"> <MasterTableView DataSourceID="DS_Temp_Header" DataKeyNames="PalletCode"> <Columns> <telerik:GridBoundColumn DataField="PalletCode" HeaderText="PalletCode" SortExpression="PalletCode" UniqueName="PalletCode"> <HeaderStyle Width="80px" /> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Qty" DataType="System.Int32" HeaderText="Qty" ReadOnly="True" SortExpression="Qty" UniqueName="Qty"> <HeaderStyle Width="80px" /> <ItemStyle HorizontalAlign="Right" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LogDate" HeaderText="LogDate" SortExpression="LogDate" UniqueName="LogDate"> <HeaderStyle Width="80px" /> <ItemStyle HorizontalAlign="Center" /> </telerik:GridBoundColumn> </Columns> <DetailTables> <telerik:GridTableView runat="server" DataKeyNames="SerialCode" DataSourceID="DS_Temp_Item" Name="Detail"> <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="PalletCode" MasterKeyField="PalletCode" /> </ParentTableRelation> <Columns> <telerik:GridBoundColumn DataField="No" HeaderText="ลำดับที่" SortExpression="No" UniqueName="No"> <HeaderStyle Width="80px" /> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SerialCode" HeaderText="SerialCode" SortExpression="SerialCode" UniqueName="SerialCode"> <HeaderStyle Width="160px" /> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> </Columns> </telerik:GridTableView> </DetailTables> </MasterTableView> </telerik:RadGrid> <asp:SqlDataSource ID="DS_Temp_Header" runat="server" ConnectionString="<%$ ConnectionStrings:ConSOH_SD_SD %>"> </asp:SqlDataSource> <asp:SqlDataSource ID="DS_Temp_Item" runat="server" ConnectionString="<%$ ConnectionStrings:ConSOH_SD_SD %>" SelectCommand="SELECT ROW_NUMBER() OVER(ORDER BY SerialCode) AS No, SerialCode FROM t_JobRunningTmp WHERE (PalletCode = @PalletCode) ORDER BY SerialCode"> <SelectParameters> <asp:Parameter Name="PalletCode" /> </SelectParameters> </asp:SqlDataSource> </div> </td> <td style="text-align:center; vertical-align:top; width:300px;"> <div> <telerik:RadGrid ID="RadGrid_Stock" runat=server AutoGenerateColumns="False" DataSourceID="DS_Stock_Header" GridLines="None" Skin="Hay" Width="265px"> <MasterTableView DataSourceID="DS_Stock_Header" DataKeyNames="PalletCode" > <Columns> <telerik:GridBoundColumn DataField="PalletCode" HeaderText="PalletCode" SortExpression="PalletCode" UniqueName="PalletCode"> <HeaderStyle Width="80px" /> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Qty" DataType="System.Int32" HeaderText="Qty" ReadOnly="True" SortExpression="Qty" UniqueName="Qty"> <HeaderStyle Width="80px" /> <ItemStyle HorizontalAlign="Right" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LogDate" HeaderText="LogDate" ReadOnly="True" SortExpression="LogDate" UniqueName="LogDate"> <HeaderStyle Width="80px" /> <ItemStyle HorizontalAlign="Center" /> </telerik:GridBoundColumn> </Columns> <DetailTables> <telerik:GridTableView runat="server" DataKeyNames="SerialCode" DataSourceID="DS_Stock_Item" Name="Detail"> <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="PalletCode" MasterKeyField="PalletCode" /> </ParentTableRelation> <Columns> <telerik:GridBoundColumn DataField="No" HeaderText="ลำดับที่" SortExpression="No" UniqueName="No"> <HeaderStyle Width="80px" /> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="SerialCode" HeaderText="SerialCode" SortExpression="SerialCode" UniqueName="SerialCode"> <HeaderStyle Width="160px" /> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> </Columns> </telerik:GridTableView> </DetailTables> </MasterTableView> </telerik:RadGrid> <asp:SqlDataSource ID="DS_Stock_Header" runat="server" ConnectionString="<%$ ConnectionStrings:ConSOH_SD_SD %>" > </asp:SqlDataSource> <asp:SqlDataSource ID="DS_Stock_Item" runat="server" ConnectionString="<%$ ConnectionStrings:ConSOH_SD_SD %>" SelectCommand="SELECT ROW_NUMBER() OVER(ORDER BY SerialCode) AS No, SerialCode FROM t_StockOnHand WHERE (PalletCode = @palletcode) ORDER BY SerialCode"> <SelectParameters> <asp:Parameter Name="PalletCode" /> </SelectParameters> </asp:SqlDataSource> </div> </td> <td style="text-align:center; vertical-align:top; width:300px;"> <div> <telerik:RadGrid ID="RadGrid_Sale" runat=server AutoGenerateColumns="False" DataSourceID="DS_Sale_Header" GridLines="None" Skin="Sunset" Width="265px"> <MasterTableView DataSourceID="DS_Sale_Header" DataKeyNames="PalletCode"> <Columns> <telerik:GridBoundColumn DataField="PalletCode" HeaderText="PalletCode" SortExpression="PalletCode" UniqueName="PalletCode"> <HeaderStyle Width="80px" /> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Qty" DataType="System.Int32" HeaderText="Qty" ReadOnly="True" SortExpression="Qty" UniqueName="Qty"> <HeaderStyle Width="70px" /> <ItemStyle HorizontalAlign="Right" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="LogDate" HeaderText="LogDate" ReadOnly="True" SortExpression="LogDate" UniqueName="LogDate"> <HeaderStyle Width="70px" /> <ItemStyle HorizontalAlign="Center" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="ZoneCode" HeaderText="ZoneCode" ReadOnly="True" SortExpression="ZoneCode" UniqueName="ZoneCode"> <HeaderStyle Width="70px" /> <ItemStyle HorizontalAlign="Center" /> </telerik:GridBoundColumn> </Columns> <DetailTables> <telerik:GridTableView runat="server" DataKeyNames="SerialCode" DataSourceID="DS_Sale_Item" Name="Detail"> <ParentTableRelation> <telerik:GridRelationFields DetailKeyField="PalletCode" MasterKeyField="PalletCode" /> </ParentTableRelation> <Columns> <telerik:GridBoundColumn DataField="No" HeaderText="ลำดับที่" SortExpression="No" UniqueName="No"> <HeaderStyle Width="80px" /> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="DocNo" HeaderText="DocNo" SortExpression="DocNo" UniqueName="DocNo"> <HeaderStyle Width="160px" /> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> </Columns> </telerik:GridTableView> </DetailTables> </MasterTableView> </telerik:RadGrid> <asp:SqlDataSource ID="DS_Sale_Header" runat="server" ConnectionString="<%$ ConnectionStrings:ConSOH_SD_SD %>" > </asp:SqlDataSource> <asp:SqlDataSource ID="DS_Sale_Item" runat="server" ConnectionString="<%$ ConnectionStrings:ConSOH_SD_SD %>" SelectCommand="SELECT ROW_NUMBER() OVER(ORDER BY SerialCode) AS No, SerialCode FROM t_GiDetail WHERE (PalletCode = @palletcode) ORDER BY SerialCode "> <SelectParameters> <asp:Parameter Name="PalletCode" /> </SelectParameters> </asp:SqlDataSource> </div> </td> </tr> </table> </center> </asp:Content>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง