<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Machine.aspx.vb" Inherits="VS4WebApp.Machine" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolkit" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link href="/Scripts/Site2.css" rel="stylesheet" type="text/css" />
    <%--'DatePicker--%>
    <link rel="stylesheet" href="/Scripts/jquery-ui-1.10.3/themes/base/jquery.ui.all.css" />
    <script src="/Scripts/jquery-ui-1.10.3/jquery-1.9.1.js"></script>
    <script src="/Scripts/jquery-ui-1.10.3/ui/jquery.ui.core.js"></script>
    <script src="/Scripts/jquery-ui-1.10.3/ui/jquery.ui.widget.js"></script>
    <script src="/Scripts/jquery-ui-1.10.3/ui/jquery.ui.datepicker.js"></script>
    <link rel="stylesheet" href="/Scripts/jquery-ui-1.10.3/demos/demos.css" />
    <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
    <%-- <link rel="stylesheet" href="/resources/demos/style.css" />--%>
    <script type="text/javascript">
        var jq13 = jQuery.noConflict(true);
    </script>

    <link rel="stylesheet" href="demoValidators/css/validationEngine.jquery.css" type="text/css" />
    <link rel="stylesheet" href="demoValidators/css/template.css" type="text/css" />
    <script src="demoValidators/js/jquery-1.6.min.js" type="text/javascript">	</script>
    <script src="demoValidators/js/languages/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script>
    <script src="demoValidators/js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
        var JValid = jQuery.noConflict(true);
    </script>

    <script type="text/javascript" src="/Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="/Scripts/jquery-1.4.1-vsdoc.js"></script>
    <script type="text/javascript" src="/Scripts/thickbox.js"></script>
    <link rel="stylesheet" href="/Scripts/thickbox.css" type="text/css" media="screen" />
    <link type="text/css" rel="stylesheet" href="/css/style.css" />
    <link href="/Content/bootstrap/bootstrap.css" rel="stylesheet" />
    <script type="text/javascript" src="/Scripts/jquery.cookie.js"></script>

    <style type="text/css">
        .DCenter
        {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 500px;
            height: 300px;
            margin-left: -250px;
            margin-top: -150px;
        }

        </style>
    <script type="text/javascript">
        //function OpenPopup(url) {
        //    popup = window.open(url, "mypopup", "location=1,status=1,scrollbars=1,width=1000,height=800");
        //    popup.moveTo(50, 50);
        //    return false;
        //}

        $(function () {
            jq13("#txtDate").datepicker({ dateFormat: "dd/mm/yy" });
        });

        jQuery(document).ready(function () {
            // binds form submission and fields to the validation engine
            JValid("#FromMain").validationEngine();



        });

    </script>

</head>
<body>

    <form id="FromMain" class="form-inline" runat="server">

        <br />

         <div class="form-group">


               <asp:TextBox ID="txtPdt" runat="server" CssClass="validate[required] text-input form-control" placeholder="ใส่ชื่อสินค้าหรือรหัส" ></asp:TextBox>
  </div>
  <div class="form-group">
 
    <asp:TextBox ID="txtDate" runat="server" CssClass="validate[required] text-input form-control" placeholder="ใส่วันที่"></asp:TextBox>
  </div>
  

        <asp:Button ID="Button2" runat="server" CssClass="btn btn-warning" Style="background-color: #4671D5" Text="ค้นหา" />

                <a class="btn btn-primary" href="SaleOrderMain.aspx" style: target="_blank">ไปหน้า Sale Order Main</a>
                <a class="btn btn-primary" href="MainMenu.aspx" style:>กลับหน้าหลัก</a>
    
        <div>
            <asp:GridView ID="GridPdt" runat="server" AutoGenerateColumns="False" Width="100%"
                Style="height: 30px" GridLines="None" OnPageIndexChanging="ShowPageCommand"
                AllowPaging="true"
                CssClass="mGrid"
                PagerStyle-CssClass="pgr"
                AlternatingRowStyle-CssClass="alt">
                <HeaderStyle CssClass="GridHeader"></HeaderStyle>
                <%--  <AlternatingRowStyle    />BackColor="#F0F0F0"--%>
                <Columns>
                    <asp:TemplateField HeaderText="ลำดับ">
                        <ItemTemplate>
                            <asp:Label ID="lblNo" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>

                    <asp:TemplateField HeaderText="รหัส">
                        <ItemTemplate>
                            <asp:Label ID="lblPdtCode" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ชื่อสินค้า">
                        <ItemTemplate>
                            <asp:Label ID="lblPdtName" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ราคา">
                        <ItemTemplate>
                            <asp:Label ID="lblPrice" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="จำนวนวัน">
                        <ItemTemplate>
                            <asp:Label ID="lblAmount" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Unit">
                        <ItemTemplate>
                            <asp:Label ID="lblUnit" runat="server"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <%-- <asp:TemplateField HeaderText="Details">
 <ItemTemplate>
 <asp:HyperLink ID="hplDetail" runat="server">Details</asp:HyperLink>
 </ItemTemplate>
 </asp:TemplateField>--%>
                </Columns>
                <%--<HeaderStyle BackColor="#2D3E5B" ForeColor="White" />--%>
            </asp:GridView>
        </div>

    </form>
</body>
</html>
