<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="QuotationMain.aspx.vb" Inherits="VS4WebApp.QuotationMain" %>
<%@ Register assembly="BasicFrame.WebControls.BasicDatePicker" namespace="BasicFrame.WebControls" tagprefix="BDP" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server" >
    <br />

    <asp:LinkButton ID="btnLogOn" runat="server" BorderStyle="None">Log Out</asp:LinkButton>
    &nbsp;&gt;&gt;
    
    <asp:LinkButton ID="btnMainMenu" runat="server" BorderStyle="None">Main Menu</asp:LinkButton>
    &nbsp;&gt;&gt;
    <asp:Label ID="lblSaleOrderMain" runat="server" Font-Bold="True" 
        Text="Quotation List"></asp:Label>
    <hr />
    <asp:Label ID="Label4" runat="server" Text="สถานะ"></asp:Label>
    <asp:DropDownList ID="DLAR" runat="server"  >
        <asp:ListItem>ทั้งหมด</asp:ListItem>
        <asp:ListItem>ปัจจุบัน</asp:ListItem>
        <asp:ListItem>Checked</asp:ListItem>
        <asp:ListItem>Approved</asp:ListItem>
        <asp:ListItem>Cancel</asp:ListItem>
    </asp:DropDownList>
    &nbsp;&nbsp;
    &nbsp;<asp:Label ID="lblDateStart" runat="server" Text="จาก"></asp:Label>
    <BDP:BDPLite ID="txtDateStart" runat="server" Width="120px" />
    <asp:Label ID="lblDateEnd" runat="server" Text=" ถึง"></asp:Label>
    <BDP:BDPLite ID="txtDateEnd" runat="server" Width="120px" />
    <asp:Label ID="lblSale" runat="server" Text="ผู้ดูแล "></asp:Label>
<asp:TextBox ID="txtSale" runat="server" Width="40px"></asp:TextBox>
&nbsp;<asp:Button ID="btnSearch" runat="server" Text="ค้นหา" />
       &nbsp;<%--<p>&nbsp;</p>
<div id="inlineDatepicker"></div>--%>&nbsp;
    <asp:Button ID="btnAdd" runat="server" Text="New" />
    <asp:GridView ID="GridSOMain" runat="server"  AutoGenerateColumns="False" 
        Width="780px"  >
     <HeaderStyle BackColor="#2D3E5B" ForeColor="White"></HeaderStyle>
     <AlternatingRowStyle BackColor="#F0F0F0" />
 <Columns>
	        <asp:TemplateField  HeaderText="เลขที่เอกสาร">
		        <ItemTemplate>
                    <asp:HyperLink ID="lblTQuoNo" runat="server"></asp:HyperLink>
		        </ItemTemplate>
                <ItemStyle Width="100px" />
	        </asp:TemplateField>
	        <asp:TemplateField   HeaderText="วันที่">
		        <ItemTemplate>
			        <asp:Label id="lblTQuoDate" runat="server"></asp:Label>
		        </ItemTemplate>
                <ItemStyle Width="70px" />
	        </asp:TemplateField>
            <asp:TemplateField   HeaderText="รหัสลูกค้า">
		        <ItemTemplate>
			        <asp:Label id="lblTQuoTARNCode" runat="server"></asp:Label>
		        </ItemTemplate>
                <ItemStyle Width="90px" />
	        </asp:TemplateField>
	        <asp:TemplateField   HeaderText="ชื่อลูกค้า">
		        <ItemTemplate>			        
                    <asp:Label id="lblTQuoCustomerName" runat="server"></asp:Label>
		        </ItemTemplate>
                <ItemStyle />
	        </asp:TemplateField>
	        <asp:TemplateField   HeaderText="ยอดเงิน">
		        <ItemTemplate>
			        <asp:Label id="lblTQuoGrandTotal" runat="server"></asp:Label>
		        </ItemTemplate>
                <ItemStyle Width="80px" HorizontalAlign="Right"/>
	        </asp:TemplateField>
            <asp:TemplateField   HeaderText="กำหนดส่ง">
		        <ItemTemplate>
			        <asp:Label id="lblTQuoDeliveryDate" runat="server"></asp:Label>
		        </ItemTemplate>
                <ItemStyle Width="70px" />
	        </asp:TemplateField>
            <asp:TemplateField   HeaderText="ผู้ดูแล">
		        <ItemTemplate>
			        <asp:Label id="lblTQuoTEmpCode" runat="server"></asp:Label>
		        </ItemTemplate>
                <ItemStyle Width="70px" />
	        </asp:TemplateField>

            <asp:TemplateField   Visible="False"  HeaderText="TQuoCancelStatus">
		        <ItemTemplate>
			        <asp:Label id="lblTQuoCancelStatus" runat="server"></asp:Label>
		        </ItemTemplate>
                <ItemStyle />
	        </asp:TemplateField>

            <asp:TemplateField   Visible="False"  HeaderText="TQuoConfirmStatus">
		        <ItemTemplate>
			        <asp:Label id="lblTQuoConfirmStatus" runat="server"></asp:Label>
		        </ItemTemplate>
                <ItemStyle />
	        </asp:TemplateField>

            <asp:TemplateField  Visible="False"  HeaderText="TQuoApproveStatus">
		        <ItemTemplate>
			        <asp:Label id="lblTQuoApproveStatus" runat="server"></asp:Label>
		        </ItemTemplate>
                <ItemStyle />
	        </asp:TemplateField>

            <asp:TemplateField    HeaderText="สถานะ">
		        <ItemTemplate>
			        <asp:Label id="lblStatus" runat="server"></asp:Label>
		        </ItemTemplate>
                <ItemStyle />
	        </asp:TemplateField>

            <asp:TemplateField   HeaderText="หมายเหตุ">
		        <ItemTemplate>
			        <asp:Label id="TQuoDescription" runat="server"></asp:Label>
		        </ItemTemplate>
                <ItemStyle Width="90px" />
	        </asp:TemplateField>            

	        </Columns>
    </asp:GridView>

 
</asp:Content>
