<%@ Page Title="" Language="C#" MasterPageFile="~/TemplateMasterMain.master" AutoEventWireup="true" CodeFile="TopNProductPurchaseOrder.aspx.cs" Inherits="TopNProductPurchaseOrder" Culture="en-GB" %>
<%@ Register TagPrefix="CR" Namespace="CrystalDecisions.Web" Assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" %>
<%@ MasterType VirtualPath="~/TemplateMasterMain.master" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<center>
<%--<asp:CompareValidator ID="CompareValidator2" runat="server" ControlToValidate="txtStartDate" ErrorMessage="*" Operator="DataTypeCheck" Type="Date"/>--%>
<asp:CompareValidator ID="CompareValidator1" runat="server"
ErrorMessage="Start date must be smaller than End date "
ControlToCompare="txtStartDate"
ControlToValidate="txtEndDate"
Type="Date"
ForeColor="Red"
Operator="GreaterThanEqual"
Display="Dynamic"
></asp:CompareValidator>
<table style="width:80%; text-align:left;">
<tr >
<td>
<label class="lab-1"><asp:Label ID="Label4" runat="server" Text="Start Date : "></asp:Label></label>
</td>
<td>
<asp:TextBox ID="txtStartDate" runat="server" MaxLength="25" Width="150px"
Height="18px"></asp:TextBox>
<asp:ImageButton ID="imgcalendarStart" runat="server"
AlternateText="Click to show calendar"
ImageUrl="~/images/Calendar_scheduleHS.png" CausesValidation="False" />
<asp:Label ID="Label1" runat="server" Text="(dd/mm/yyyy)" ForeColor="Red"></asp:Label>
<asp:MaskedEditExtender ID="txtStartDate_MaskedEditExtender" runat="server"
Mask="99/99/9999"
MessageValidatorTip="true"
OnFocusCssClass="MaskedEditFocus"
OnInvalidCssClass="MaskedEditError"
MaskType="Date"
ErrorTooltipEnabled="True"
TargetControlID="txtStartDate"
CultureName="en-GB"
>
</asp:MaskedEditExtender>
<asp:MaskedEditValidator ID="MaskedEditValidator2" runat="server"
ControlExtender="txtStartDate_MaskedEditExtender"
ControlToValidate="txtStartDate"
EmptyValueMessage="Date is required"
InvalidValueMessage="Date is invalid"
Display="Dynamic"
TooltipMessage="Input a date"
EmptyValueBlurredText="*"
InvalidValueBlurredMessage="*"
ForeColor="Red"
/>
<asp:CalendarExtender ID="calendarButton1Extender" runat="server"
Enabled="True" TargetControlID="txtStartDate"
PopupButtonID="imgcalendarStart" Format="dd/MM/yyyy">
</asp:CalendarExtender>
<asp:RequiredFieldValidator ID="rfvStartDate" runat="server" ErrorMessage="*"
ControlToValidate="txtStartDate" ForeColor="Red"></asp:RequiredFieldValidator>
</td>
<td>
<label class="lab-1"><asp:Label ID="Label6" runat="server" Text="Item Category : "></asp:Label></label>
</td>
<td>
<asp:DropDownList ID="ddlItemCategory" runat="server"
AppendDataBoundItems="True" DataSourceID="SqlItemCat"
DataTextField="Description" DataValueField="Code" Width="225px"
Height="24px">
<asp:ListItem Value="0">All Item Category</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
<label class="lab-1"><asp:Label ID="Label5" runat="server" Text="End Date : "></asp:Label></label></td>
<td>
<div style="padding:4px 0 6px 0; background:none;">
<asp:TextBox ID="txtEndDate" runat="server" MaxLength="25" Width="150px"
Height="18px"></asp:TextBox>
<asp:ImageButton ID="imgCalenderEnd" runat="server"
AlternateText="Click to show calendar"
ImageUrl="~/images/Calendar_scheduleHS.png" CausesValidation="False" />
<asp:Label ID="Label7" runat="server" Text="(dd/mm/yyyy)" ForeColor="Red"></asp:Label>
<asp:MaskedEditExtender ID="txtEndDate_MaskedEditExtender" runat="server"
Mask="99/99/9999"
MessageValidatorTip="true"
OnFocusCssClass="MaskedEditFocus"
OnInvalidCssClass="MaskedEditError"
MaskType="Date"
ErrorTooltipEnabled="True"
TargetControlID="txtEndDate"
CultureName="en-GB"
>
</asp:MaskedEditExtender>
<asp:MaskedEditValidator ID="MaskedEditValidator1" runat="server"
ControlExtender="txtEndDate_MaskedEditExtender"
ControlToValidate="txtEndDate"
EmptyValueMessage="Date is required"
InvalidValueMessage="Date is invalid"
Display="Dynamic"
TooltipMessage="Input a date"
EmptyValueBlurredText="*"
InvalidValueBlurredMessage="*"
ForeColor="Red"
/>
<asp:CalendarExtender ID="calendarButton2Extender" runat="server"
Enabled="True"
TargetControlID="txtEndDate"
PopupButtonID="imgCalenderEnd"
Format="dd/MM/yyyy"
>
</asp:CalendarExtender>
<asp:RequiredFieldValidator ID="rfvEndDate" runat="server"
ControlToValidate="txtEndDate" ErrorMessage="*" ForeColor="Red">
</asp:RequiredFieldValidator>
</div>
</td>
<td>
<label class="lab-1"><asp:Label ID="Label3" runat="server" Text="Product Group : "></asp:Label></label>
</td>
<td>
<asp:DropDownList ID="ddlProductGroup" runat="server"
AppendDataBoundItems="True" DataSourceID="SqlGen_ProductPostingGroup"
DataTextField="Description" DataValueField="Code" Width="225px"
Height="24px">
<asp:ListItem Value="0">All Product Group</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr >
<td>
</td>
<td>
</td>
<td>
<label class="lab-1"><asp:Label ID="Label2" runat="server" Text="Top Ranking : "></asp:Label></label>
</td>
<td>
<asp:DropDownList ID="ddlTopRanking" runat="server">
<asp:ListItem>5</asp:ListItem>
<asp:ListItem>10</asp:ListItem>
<asp:ListItem>15</asp:ListItem>
<asp:ListItem>20</asp:ListItem>
<asp:ListItem>25</asp:ListItem>
<asp:ListItem>30</asp:ListItem>
</asp:DropDownList>
</td>
</tr>
</table>
</center>
<div class="link2" style="text-align:center; margin:10px 0 10px 0;">
<asp:LinkButton ID="lbtnSearch" runat="server" onclick="lbtnSearch_Click"><em><b>Search</b></em></asp:LinkButton>
</div>
<asp:SqlDataSource ID="SqlItemCat" runat="server"
ConnectionString="<%$ ConnectionStrings:UBConnPIH %>"
SelectCommand="SELECT Code, '(' + Code + ') ' + Description AS Description FROM [Phuket International Hospital$Item Category] ORDER BY Description">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlGen_ProductPostingGroup" runat="server"
ConnectionString="<%$ ConnectionStrings:UBConnPIH %>"
SelectCommand="SELECT Code, '(' + Code + ') ' + Description AS Description FROM [Phuket International Hospital$Gen_ Product Posting Group]">
</asp:SqlDataSource>
<asp:SqlDataSource ID="SqlLocation" runat="server"
ConnectionString="<%$ ConnectionStrings:UBConnPIH %>"
SelectCommand="SELECT Code, '(' + Code + ') ' + [Name 2] AS [Name 2] FROM [Phuket International Hospital$Location]"></asp:SqlDataSource>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<center>
<cr:crystalreportviewer runat="server" AutoDataBind="true"
ID="CrystalReportViewer1" ReportSourceID="CrystalReportSource1"
ToolPanelView="None" HasCrystalLogo="False" HasRefreshButton="True"
HasToggleGroupTreeButton="False" HasToggleParameterPanelButton="False"
Width="868px" HasDrilldownTabs="False" HasDrillUpButton="False"
EnableDrillDown="False" >
</cr:crystalreportviewer>
</center>
<cr:crystalreportsource ID="CrystalReportSource1" runat="server">
<Report FileName="Report\TopNProductPurchaseOrder.rpt">
</Report>
</cr:crystalreportsource>
</asp:Content>
No comments:
Post a Comment