Server IP : 103.6.199.200 / Your IP : 3.15.228.32 Web Server : Microsoft-IIS/10.0 System : Windows NT EMPUSA 10.0 build 20348 (Windows Server 2016) i586 User : EMPUSA$ ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Domains/airzones/mpos.airzone.sg/wwwroot/ |
Upload File : |
<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/APOS.Master" CodeBehind="Discounts.aspx.cs" Inherits="Megazip.Discounts" %> <asp:Content ContentPlaceHolderID="Content_Admin" ID="body" runat="server"> <ul class="breadcrumb push-down-0"> <li><a href="#">Super Admin</a></li> <li class="active">Discounts</li> </ul> <script src="js/jquery-1.7.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $("#ctl00_Content_Admin_txtstartdate").datepicker(); $("#ctl00_Content_Admin_txtenddate").datepicker(); }); </script> <style type="text/css"> .ui-datepicker { font-size: 8pt !important; } </style> <script language="javascript" type="text/javascript"> $(document).ready(function() { $(".datepicker").focusin(function() { }); }); function ClientTextBox() { var Location_name = document.getElementById("ctl00_Content_Admin_ddlLocation_name").value; var product = document.getElementById("ctl00_Content_Admin_ddlproduct").value; var Discountname = document.getElementById("ctl00_Content_Admin_txtDiscountname").value; var spclChars = "'!@#$%^*()"; var Discountname = document.getElementById("ctl00_Content_Admin_txtDiscountname").value; for (var i = 0; i < Discountname.length; i++) { if (spclChars.indexOf(Discountname.charAt(i)) != -1) { alert(" Please enter discount name special characters are not allowed."); return false; } } var DisType = document.getElementById("ctl00_Content_Admin_ddlDisType").value; var Discountvalue = document.getElementById("ctl00_Content_Admin_txtDiscountvalue").value; var startdate = document.getElementById("ctl00_Content_Admin_txtstartdate").value; var enddate = document.getElementById("ctl00_Content_Admin_txtenddate").value; if (Location_name == 0) { alert("Select The Location Name"); return false; } else if (product == 0) { alert("Select The Product Name"); return false; } else if (Discountname == null || Discountname == "") { alert("Enter The Discount Name"); return false; } else if (DisType == 0) { alert("Select The Discount Type"); return false; } else if (Discountvalue == null || Discountvalue == "") { alert("Enter The Discount Value"); return false; } else if (startdate == null || startdate == "") { alert("Select The Start Date"); return false; } else if (enddate == null || enddate == "") { alert("Select The End Date"); return false; } } </script> <script type="text/javascript"> function isNumberKey(evt, id) { try { var charCode = (evt.which) ? evt.which : event.keyCode; if (charCode == 46) { var txt = document.getElementById(id).value; if (!(txt.indexOf(".") > -1)) { return true; } } if (charCode > 31 && (charCode < 48 || charCode > 57)) return false; return true; } catch (w) { // alert(w); } } </script> <div class="page-content-wrap"> <form id="Form1" runat="server"> <div class="row"> <div class="col-md-12"> <div class="panel panel-success panel-hidden-controls"> <div class="panel-heading"> <h3 class="panel-title"> Discounts</h3> <ul class="panel-controls"> <li><a href="#" class="panel-fullscreen"><span class="fa fa-expand"></span></a></li> <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="fa fa-cog"></span></a> <ul class="dropdown-menu"> <li><a href="#" class="panel-collapse"><span class="fa fa-angle-down"></span> Collapse</a></li> <li><a href="#" class="panel-refresh"><span class="fa fa-refresh"></span>Refresh</a></li> </ul> </li> <li><a href="#" class="panel-remove"><span class="fa fa-times"></span></a></li> </ul> <div class="pull-right"> <asp:Button ID="btnback" Text="Back" runat="server" class="btn btn-info" OnClick="btnback_Click" /> </div> </div> <div class="panel-body"> <div class="row"> <div class="col-md-6"> <div class="row"> <div class="form-group"> <asp:Label ID="lblDiscount_ID" runat="server" class="col-md-4 col-xs-12 control-label">Discount ID</asp:Label> <div class="col-md-6 col-xs-12"> <asp:TextBox ID="txtDiscount_ID" runat="server" Enabled="false" Text="Auto" class="form-control"></asp:TextBox> </div> </div> </div> <br /> <div class="row"> <div class="form-group"> <asp:Label ID="lblProduct" runat="server" class="col-md-4 col-xs-12 control-label">Product Name<span style="color:Red";><label> *</label></span></asp:Label> <div class="col-md-6 col-xs-12"> <asp:DropDownList ID="ddlproduct" CssClass="form-control selected" AutoPostBack="true" TabIndex="3" runat="server" OnSelectedIndexChanged="ddlproduct_SelectedIndexChanged"> </asp:DropDownList> </div> </div> </div> <br /> <div class="row"> <div class="form-group"> <asp:Label ID="lblDiscounttype" runat="server" class="col-md-4 col-xs-12 control-label">Discount Type<span style="color:Red";><label> *</label></span></asp:Label> <div class="col-md-6 col-xs-12"> <%--<asp:TextBox ID="txtDiscounttype" runat="server" class="form-control" TabIndex="5"></asp:TextBox>--%> <asp:DropDownList ID="ddlDisType" CssClass="form-control selected" TabIndex="4" runat="server" MinimumValue="1" MaximumValue="2"> <asp:ListItem Value="0" Text="---Select---"></asp:ListItem> <asp:ListItem Value="%">%</asp:ListItem> <asp:ListItem Value="Cash">Cash</asp:ListItem> </asp:DropDownList> </div> </div> </div> <br /> <div class="row"> <div class="form-group"> <asp:Label ID="lblstartdate" runat="server" class="col-md-4 col-xs-12 control-label">Start Date<span style="color:Red";><label> *</label></span></asp:Label> <div class="col-md-6 col-xs-12"> <div class="input-group"> <asp:TextBox ID="txtstartdate" runat="server" class="form-control " TabIndex="6"></asp:TextBox> <samp class="input-group-addon" style="padding-bottom: 7px;"> <samp id="Samp1" class="fa fa-calendar"> </samp> </samp> </div> </div> </div> </div> <br /> <div class="row"> <div class="form-group"> <asp:Label ID="lblstatus" runat="server" class="col-md-4 col-xs-12 control-label">Status</asp:Label> <div class="col-md-6 col-xs-12"> <div class="input-group"> <asp:RadioButtonList ID="rbtnStatus" RepeatDirection="Horizontal" runat="server"> <asp:ListItem Selected="True" Value="Active">Active     </asp:ListItem> <asp:ListItem Value="Deactive">Deactive</asp:ListItem> </asp:RadioButtonList> </div> </div> </div> </div> </div> <div class="col-md-6"> <div class="row"> <div class="form-group"> <asp:Label ID="lblLocation_name" runat="server" class="col-md-4 col-xs-12 control-label">Location Name<span style="color:Red";><label> *</label></span></asp:Label> <div class="col-md-6 col-xs-12"> <asp:DropDownList ID="ddlLocation_name" AutoPostBack="true" CssClass="form-control selected" TabIndex="2" runat="server" OnSelectedIndexChanged="ddlLocation_name_SelectedIndexChanged"> </asp:DropDownList> </div> </div> </div> <br /> <div class="row"> <div class="form-group"> <asp:Label ID="lblDiscountname" runat="server" class="col-md-4 col-xs-12 control-label">Discount Name<span style="color:Red";><label> *</label></span></asp:Label> <div class="col-md-6 col-xs-12"> <asp:TextBox ID="txtDiscountname" runat="server" class="form-control" TabIndex="3"></asp:TextBox> </div> </div> </div> <br /> <div class="row"> <div class="form-group"> <asp:Label ID="Label1" runat="server" class="col-md-4 col-xs-12 control-label">Product Price</asp:Label> <div class="col-md-6 col-xs-12"> <asp:TextBox ID="txtPrice" runat="server" ReadOnly="true" class="form-control" TabIndex="1"></asp:TextBox> </div> </div> </div> <br /> <div class="row"> <div class="form-group"> <asp:Label ID="lblDiscountvalue" runat="server" class="col-md-4 col-xs-12 control-label">Discount Value<span style="color:Red";><label> *</label></span></asp:Label> <div class="col-md-6 col-xs-12"> <asp:TextBox ID="txtDiscountvalue" runat="server" class="form-control" onkeypress="return isNumberKey(event,this.id)" TabIndex="5" ></asp:TextBox> </div> </div> </div> </br> <div class="row"> <div class="form-group"> <asp:Label ID="lblenddate" runat="server" class="col-md-4 col-xs-12 control-label">End Date<span style="color:Red";><label> *</label></span></asp:Label> <div class="col-md-6 col-xs-12"> <div class="input-group"> <asp:TextBox ID="txtenddate" runat="server" class="form-control " TabIndex="7"></asp:TextBox> <samp class="input-group-addon" style="padding-bottom: 7px;"> <samp id="ctl00_Content_Admin_Samp1" class="fa fa-calendar"> </samp> </samp> </div> </div> </div> <br /> </div> </div> <br /> <div class="row"> <div class="form-group"> <asp:Label ID="Label5" runat="server" class="col-md-4 col-xs-12 control-label"></asp:Label> <div class="col-md-12 col-xs-12"> <center> <asp:Button ID="btn_PlanMaster" Text="Submit" runat="server" class="btn btn-success" OnClick="btn_PlanMaster_Click" OnClientClick="javascript:return ClientTextBox();" /> <asp:Button ID="btnClear" runat="server" Text="Clear" class="btn btn-danger" OnClick="btnClear_Click1" /> </center> </div> </div> </div> <br /> </div> </div> </div> </div> </div> </form> </div> </asp:Content>