<%@ Page Title="" Language="C#" MasterPageFile="~/MainMaste_withmenu.Master" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="PurchaseQuotationWebForm.aspx.cs" Inherits="WebDesk_ERP.Trade.PurchaseQuotationWebForm" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="../css/main.css" rel="stylesheet" />
<link href="../vendors/datatables.net-bs/css/dataTables.bootstrap.min.css" rel="stylesheet" />
<link href="../vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css" rel="stylesheet" />
<link href="../vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css" rel="stylesheet" />
<link href="../vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css" rel="stylesheet" />
<link href="../vendors/datatables.net-scroller-bs/css/scroller.bootstrap.min.css" rel="stylesheet" />
<link href="../vendors/select2/dist/css/select2.min.css" rel="stylesheet" />
<script type="text/javascript">
window.scrollTo = function (x, y) {
return true;
}
</script>
<script>
function validate() {
if (document.getElementById('<%=ddlVendor.ClientID%>').selectedIndex == 0) {
alert("Please select Vendor.");
return false;
}
else
if (document.getElementById('<%=ddlWarehouse.ClientID%>').selectedIndex == 0) {
alert("Please select Warehouse.");
return false;
}
}
</script>
<script>
function validateProduct() {
if (document.getElementById("<%=txtProduct.ClientID%>").value == "") {
var v = document.getElementById("<%=txtProduct.ClientID%>");
v.focus();
v.style.borderColor = "#f0ad4e";
return false;
}
else if (document.getElementById("<%=txtProduct.ClientID%>").value == 0) {
var v = document.getElementById("<%=txtProduct.ClientID%>");
v.focus();
v.style.borderColor = "#f0ad4e";
return false;
}
}
</script>
<script>
function validateQTY() {
if (document.getElementById("<%=txtQty.ClientID%>").value == "") {
var v = document.getElementById("<%=txtQty.ClientID%>");
v.focus();
v.style.borderColor = "#f0ad4e";
return false;
}
else if (document.getElementById("<%=txtQty.ClientID%>").value == 0) {
var v = document.getElementById("<%=txtQty.ClientID%>");
v.focus();
v.style.borderColor = "#f0ad4e";
return false;
}
}
</script>
<script type="text/javascript">
function ShowModal() {
openProductList();
$('#modelSearchProduct').modal('show');
}
function HideModallSearchProduct() {
$('#modelSearchProduct').modal('hide');
return false;
}
</script>
<style type="text/css">
.ui-autocomplete {
max-height: 100px;
overflow-y: auto; /* prevent horizontal scrollbar */
overflow-x: hidden; /* add padding to account for vertical scrollbar */
padding-right: 20px;
}
* html .ui-autocomplete {
height: 100px;
}
.ui-button {
margin-left: -16px;
}
/* <TODO:SG>: Fixes the icon size with the scrool bar length */
button.ui-button-icon-only {
width: 1.2em;
}
.ui-button-icon-only .ui-button-text {
padding: 0.35em;
}
.ui-autocomplete-input {
margin: 0;
padding: 0.48em 0 0.47em 0.45em;
}
</style>
<style>
.AlgRgh {
text-align: right;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
div.dataTables_length label {
font-weight: normal;
text-align: left;
white-space: nowrap;
margin-left: 8px;
margin-top: 7px;
}
div.dataTables_wrapper div.dataTables_filter label {
font-weight: normal;
white-space: nowrap;
text-align: left;
margin-top: 7px;
}
.col-md-55, .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
position: relative;
min-height: 1px;
float: left;
padding-right: 14px;
padding-left: 18px;
}
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript">
$(function () {
initializer();
})
var prmInstance = Sys.WebForms.PageRequestManager.getInstance();
prmInstance.add_endRequest(function () {
//you need to re-bind your jquery events here
initializer();
});
function initializer() {
$(document).ready(function () {
$('#txtPartNo').autocomplete({
source: 'LoadPartNo.ashx'
});
});
$(document).ready(function () {
$('#txtProduct').autocomplete({
source: 'LoadProduct.ashx'
});
});
}
</script>
<script type="text/Javascript">
function checkDec(el) {
var ex = /^[0-9]+\.?[0-9]*$/;
if (ex.test(el.value) == false) {
el.value = el.value.substring(0, el.value.length - 1);
}
}
</script>
<div class="modal fade" id="modelApprovalStatus" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close"
data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title" id="myModalLabel1">Approval Status
</h4>
</div>
<div class="modal-body">
<div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback">
<asp:Panel ID="Panel4" Height="200px" BackColor="white" ScrollBars="Vertical" BorderStyle="Solid" BorderWidth="1px" BorderColor="Silver" runat="server">
<asp:UpdatePanel ID="UpdatePanel111" runat="server">
<ContentTemplate>
<asp:GridView ID="dataGridViewApprovalStatus" runat="server" CssClass="table table-striped table-bordered dt-responsive nowrap" Width="100%" ShowHeaderWhenEmpty="true" DataKeyName="ID" EmptyDataText="No Data Available" AutoGenerateColumns="false">
<Columns>
<asp:BoundField DataField="DisplayApproval" HeaderText="Status" />
<asp:BoundField DataField="Remarks" HeaderText="Remarks" />
</Columns>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
</div>
</div>
<div class="modal-footer">
<%--<button type="button" class="btn btn-default"
data-dismiss="modal">
close
</button>
<button type="button" class="btn btn-primary">
save
</button>--%>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>Purchase Quotation</h2>
<ul class="nav navbar-right panel_toolbox hidden">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Add New</a>
</li>
</ul>
</li>
<li><a class="close-link"><i class="fa fa-close"></i></a>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="x_content" style="height: 100%; width: 100%">
<div style="float: left; width: 500px">
<asp:Button ID="btnApprovalStatus" runat="server" Style="width: 150px;" type="button" class="btn btn-warning" Text="Approval Status" OnClick="btnApprovalStatus_Click1" />
<asp:Button ID="btnRegenerate" runat="server" Style="width: 200px;" type="button" class="btn btn-warning" Text="Regenerate for Approval" OnClick="btnRegenerate_Click" />
</div>
<div style="float: right;">
<asp:Button ID="btnExport" runat="server" AccessKey="o" ToolTip="Alt+o" Style="width: 100px; display: none" type="button" CssClass="btn" BackColor="#7db831" ForeColor="White" Text="Export" />
<asp:Button ID="btnBack" runat="server" AccessKey="b" ToolTip="Alt+b" Style="width: 100px;" type="button" CssClass="btn btn-success" Text="Back" OnClick="btnBack_Click" />
<asp:Button ID="btnSave" runat="server" AccessKey="s" ToolTip="Alt+s" Style="width: 100px;" type="button" CssClass="btn btn-primary" Text="Save" OnClick="btnSave_Click"
UseSubmitBehavior="false"
OnClientClick="this.disabled='true';this.value='Please wait..'" />
<asp:Button ID="btnClear" runat="server" AccessKey="c" ToolTip="Alt+c" Style="width: 100px;" type="button" CssClass="btn btn-info" Text="Clear" OnClick="btnClear_Click" />
</div>
<%-- <div class="x_content">--%>
<br />
<div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback" style="border: 1px solid; border-color: silver; border-radius: 10px; margin-top: 10px; padding-top: 20px;">
<div class="" role="tabpanel" data-example-id="togglable-tabs">
<ul id="myTab" class="nav nav-tabs bar_tabs" role="tablist">
<li role="presentation" class="active"><a href="#tab_content1" id="home-tab" role="tab" data-toggle="tab" aria-expanded="true">Home </a>
</li>
<li role="presentation" class=""><a href="#tab_content2" role="tab" id="profile-tab" data-toggle="tab" aria-expanded="false">Document Upload </a>
</li>
</ul>
<div id="myTabContent" class="tab-content">
<div role="tabpanel" class="tab-pane fade active in" id="tab_content1" aria-labelledby="home-tab">
<div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback" style="border: 1px solid; border-color: silver; border-radius: 10px; margin-top: 10px; padding-top: 10px;">
<div style="clear: both;"></div>
<div class="form-horizontal form-label-left input_mask">
<asp:UpdatePanel runat="server">
<ContentTemplate>
<h2>Header Information : </h2>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Requisition No :<span style="color: red; font-size: 15px; margin-left: 4px;">*</span></label>
<input type="text" class="form-control" id="txtCode" runat="server" disabled="disabled" placeholder="Requisition No" />
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Supplier :<span style="color: red; font-size: 15px; margin-left: 4px;">*</span></label>
<asp:DropDownList ID="ddlVendor" class="select2_single form-control" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlVendor_SelectedIndexChanged"></asp:DropDownList>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Supplier Price List :</label>
<asp:DropDownList ID="ddlpricelist" CssClass="select2_single form-control" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlpricelist_SelectedIndexChanged"></asp:DropDownList>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Date : </label>
<asp:TextBox ID="single_cal4" TextMode="Date" ClientIDMode="Static" CssClass="form-control has-feedback-left" placeholder="Date" aria-describedby="inputSuccess2Status4" runat="server"></asp:TextBox>
<%--<asp:CalendarExtender ID="StDate" TargetControlID="single_cal4" runat="server"></asp:CalendarExtender>--%>
<span class="fa fa-calendar-o form-control-feedback left" aria-hidden="true"></span>
<span id="inputSuccess2Status4" class="sr-only">(success)</span>
</div>
<div class="clearfix"></div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Employee :</label>
<asp:DropDownList ID="ddlEmployee" class="select2_single form-control" runat="server"></asp:DropDownList>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Warehouse :<span style="color: red; font-size: 15px; margin-left: 4px;">*</span></label>
<asp:DropDownList ID="ddlWarehouse" class="select2_single form-control" runat="server"></asp:DropDownList>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Cost Center :</label>
<asp:DropDownList ID="ddlJob" class=" select2_single form-control" runat="server"></asp:DropDownList>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Client PO# :</label>
<asp:TextBox ID="txtClientPO" CssClass="form-control" Type="text" placeholder="Client PO#" runat="server"></asp:TextBox>
</div>
<div class="clearfix"></div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Ref# :</label>
<asp:TextBox ID="txtRefNo" Enabled="false" CssClass="form-control" Type="text" placeholder="Ref#" runat="server"></asp:TextBox>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Our PO# :</label>
<asp:TextBox ID="txtOurPO" CssClass="form-control" Type="text" placeholder="Our PO#" runat="server"></asp:TextBox>
</div>
<div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Narration :</label>
<asp:TextBox ID="txtNarration" CssClass="form-control" Type="text" placeholder="Narration" runat="server"></asp:TextBox>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard"> </label>
<br />
<asp:Button Text="Pick Data" ID="btnPickData" Width="150px" Style="float: right" runat="server" type="button" class="btn btn-warning" OnClick="btnPickData_Click" />
</div>
<div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback" style="border: 1px solid; border-color: #169F85; border-radius: 4px;">
<br />
<asp:UpdatePanel ID="txtPartnoupdatepanel" runat="server">
<ContentTemplate>
<h2>Detail Information : </h2>
<div class="col-md-2 col-sm-2 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Part No :<span style="color: red; font-size: 15px; margin-left: 4px;">*</span></label>
<asp:TextBox ID="txtPartNo" ClientIDMode="Static" Height="35px" CssClass="form-control" Type="text" placeholder="Search Part No" runat="server" OnTextChanged="txtPartNo_TextChanged" AutoPostBack="true"></asp:TextBox>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Product :<span style="color: red; font-size: 15px; margin-left: 4px;">*</span></label>
<asp:TextBox ID="txtProduct" ClientIDMode="Static" CssClass="form-control" Height="35px" Type="text" placeholder="Search Product" runat="server" OnTextChanged="txtProduct_TextChanged" AutoPostBack="true"></asp:TextBox>
</div>
<div class="col-md-1 col-sm-1 col-xs-12 form-group has-feedback" style="margin-top: 30px; margin-left: -20px;">
<label style="font-family: Calibri; font-size: 18px;" for="heard"> </label>
<asp:LinkButton ID="btnAddnewProduct" runat="server" CssClass="btn btn-warning" OnClientClick="ShowModal()" OnClick="btnAddnewProduct_Click"><i class="glyphicon glyphicon-search"></i></asp:LinkButton>
</div>
<div class="col-md-2 col-sm-2 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">U/M:<span style="color: red; font-size: 15px; margin-left: 4px;">*</span></label>
<asp:DropDownList ID="ddlUnit" OnSelectedIndexChanged="ddlUnit_SelectedIndexChanged" AutoPostBack="true" class="select2_single form-control" runat="server">
</asp:DropDownList>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<asp:UpdatePanel ID="u2" runat="server">
<ContentTemplate>
<asp:Label ID="lblProductId" runat="server" Visible="false"></asp:Label>
<div class="col-md-2 col-sm-2 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Qty :<span style="color: red; font-size: 15px; margin-left: 4px;">*</span></label>
<asp:TextBox ID="txtQty" OnTextChanged="txtQty_TextChanged" CssClass="form-control" placeholder="0" runat="server"></asp:TextBox>
</div>
<div class="col-md-2 col-sm-2 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Rate :<span style="color: red; font-size: 15px; margin-left: 4px;">*</span></label>
<asp:TextBox ID="txtRate" OnTextChanged="txtRate_TextChanged" CssClass="form-control" Type="text" AutoPostBack="true" placeholder="Rate" runat="server" onkeyup="checkDec(this);"></asp:TextBox>
</div>
<div class="clearfix"></div>
<div class="col-md-6 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Product Description :</label>
<asp:TextBox ID="txtRemarks" TextMode="MultiLine" Rows="5" CssClass="form-control" Style="resize: none;" Type="text" placeholder="Product Description" runat="server"></asp:TextBox>
</div>
<div class="col-md-5 col-sm-3 col-xs-12 form-group has-feedback hidden">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Balance Quantity :</label>
<asp:TextBox ID="txtBalQty" Rows="5" CssClass="form-control" Style="resize: none;" Type="text" placeholder="Balance Qty" runat="server"></asp:TextBox>
</div>
<div class="col-md-5 col-sm-3 col-xs-12 form-group has-feedback hidden">
<label style="font-family: Calibri; font-size: 18px;" for="heard">isPickDataba :</label>
<asp:CheckBox ID="ispickBalId" runat="server" />
</div>
<div class="col-md-2 col-sm-3 col-xs-12 form-group has-feedback hidden">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Page Number :</label>
<asp:TextBox ID="txtPageNumber" ClientIDMode="Static" Height="35px" CssClass="form-control" Type="text" placeholder="Page Number" runat="server"></asp:TextBox>
</div>
<div class="col-md-2 col-sm-3 col-xs-12 form-group has-feedback hidden">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Item Ref :</label>
<asp:TextBox ID="txtItemRef" ClientIDMode="Static" Height="35px" CssClass="form-control" Type="text" placeholder="Item Ref" runat="server"></asp:TextBox>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback hidden">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Serial # :</label>
<asp:TextBox ID="txtSerialNumber" ClientIDMode="Static" Height="35px" CssClass="form-control" Type="text" placeholder="Serial #" runat="server"></asp:TextBox>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Factory :</label>
<!-- <input type="textPicker3" class="form-control has-feedback-left" id="single_cal3" placeholder="Date" aria-describedby="inputSuccess2Status3">-->
<asp:TextBox ID="txtUnit" Height="35px" CssClass="form-control" Type="text" placeholder="Factory" runat="server"></asp:TextBox>
</div>
<div class="col-md-2 col-sm-2 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Discount Amt / % :</label>
<asp:TextBox ID="txtDiscountAmount" Height="35px" CssClass="form-control" Type="text" placeholder="Discount Amount" runat="server" onkeyup="checkDec(this);"></asp:TextBox>
</div>
<div class="col-md-1 col-sm-1 col-xs-12 form-group has-feedback" style="padding-top: 40px;">
<label>
<input type="checkbox" runat="server" name="Discount" id="checkboxDiscountPercentage" />
%
</label>
</div>
<div class="col-md-2 col-sm-2 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">VAT :</label>
<asp:DropDownList ID="ddlVatDiscount" runat="server" Width="130px" AutoPostBack="true" Style="float: left" CssClass="select2_single form-control" OnSelectedIndexChanged="ddlTaxDiscount_SelectedIndexChanged"></asp:DropDownList>
</div>
<div class="col-md-2 col-sm-2 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Percentage :</label>
<%-- <label id="lblVATPercentage" style="font-family: Calibri; font-size: 18px;" for="heard"></label>--%>
<asp:TextBox ID="txtDiscountVATPercentage" type="Number" step="0.01" ClientIDMode="Static" CssClass="form-control" runat="server" Text="0.00" Enabled="false" />
</div>
<div class="clearfix"></div>
<div class="col-md-5 col-sm-2 col-xs-12 form-group has-feedback hidden" style="padding-top: 20px;">
<label>
<input type="radio" runat="server" name="Discount" id="Radio1" />
%
</label>
<label>
<input type="radio" runat="server" name="Discount" id="checkboxApplytoall" />
% Apply to All
</label>
<label>
<asp:RadioButton runat="server" GroupName="Discount" ID="checkboxApplyallDiscount" ClientIDMode="Static" OnCheckedChanged="checkboxApplyallDiscount_CheckedChanged" />
Dis Apply to Total
</label>
<br />
<label>
<%--<input type="checkbox" runat="server" clientidmode="Static" id="checkboxApplyallDiscountPercentage" />--%>
<asp:RadioButton runat="server" ClientIDMode="Static" GroupName="Discount" ID="checkboxApplyallDiscountPercentage" OnCheckedChanged="checkboxApplyallDiscountPercentage_CheckedChanged" />
Dis % Apply to Total
</label>
</div>
<%--<div class="clearfix"></div>--%>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Currency :</label>
<asp:DropDownList ID="ddlCurrency" AutoPostBack="true" CssClass="select2_single form-control" runat="server" OnSelectedIndexChanged="ddlCurrency_SelectedIndexChanged"></asp:DropDownList>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Rate :</label>
<asp:TextBox ID="txtCurrencyRate" OnTextChanged="txtCurrencyRate_TextChanged" ClientIDMode="Static" CssClass="form-control" Type="text" placeholder="Currency Rate" runat="server"></asp:TextBox>
</div>
<div class="col-md-2 col-sm-2 col-xs-12 form-group has-feedback hidden">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Rate in Base :</label>
<asp:TextBox ID="txtRateofBase" TabIndex="13" CssClass="form-control" Type="text" placeholder="0.00" runat="server" onkeyup="checkDec(this);"></asp:TextBox>
</div>
<div class="clearfix"></div>
<div class="col-sm-2">
<asp:Label Style="font-family: Calibri; font-size: 18px;" for="heard" ID="lblavailbestock" runat="server" Text="Available Stock :"></asp:Label>
<asp:Label Style="font-family: Calibri; font-size: 18px; font-weight: bold; border: 1px solid; padding-left: 3px; padding-right: 3px;" for="heard" ID="lblproductqty" runat="server" Text="0.00"></asp:Label>
</div>
<div class="col-sm-2">
<asp:Label Style="font-family: Calibri; font-size: 18px;" for="heard" ID="lblwarehousestock" runat="server" Text="Warehouse Stock : "></asp:Label>
<asp:Label Style="font-family: Calibri; font-size: 18px; font-weight: bold; border: 1px solid; padding-left: 3px; padding-right: 3px;" for="heard" ID="lbelwarehouseqrty" runat="server" Text="0.00"></asp:Label>
</div>
</ContentTemplate>
</asp:UpdatePanel>
<%-- <div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback">
</div>--%>
<div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback" style="display: none">
<asp:Label Style="font-family: Calibri; font-size: 18px; color: #FF0080" for="heard" ID="lblOverAlLStock" runat="server" Text="Over All Stock"></asp:Label>
<%--<label style="font-family: Calibri; font-size: 18px; color: #FF0080" for="heard" id="lblOverAlLStock" runat="server">Over All Stock:</label> <label style="font-family: Calibri; font-size: 18px; color: #0B0B61" for="heard">0</label>--%>
<br />
<asp:Label Style="font-family: Calibri; font-size: 18px; color: #FF0080" for="heard" ID="locationStock" runat="server" Text="locationStock"></asp:Label>
<%--<label style="font-family: Calibri; font-size: 18px; color: #FF0080" for="heard" id="locationStock" runat="server">Location Stock:</label> <label style="font-family: Calibri; font-size: 18px; color: #0B0B61" for="heard">0</label>--%>
</div>
<asp:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="false">
<ContentTemplate>
<div class="container">
<div class="row">
<div class="col-sm-6" style="float: right">
<label style="font-family: Calibri; font-size: 18px;" for="heard"> </label>
<asp:Button ID="btnPost" CausesValidation="false" AccessKey="p" ToolTip="Alt+p" UseSubmitBehavior="true" runat="server" Style="width: 150px; margin-left: 75%; margin-top: -5%; float: right" type="button" class="btn btn-info" Text="Post" OnClick="btnPost_Click" OnClientClick=" return validateProduct()" return=" validateQty()" />
</div>
</div>
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnPost" EventName="Click" />
<asp:AsyncPostBackTrigger ControlID="txtPartNo" EventName="TextChanged" />
<asp:AsyncPostBackTrigger ControlID="txtProduct" EventName="TextChanged" />
<%-- <asp:PostBackTrigger ControlID="btnPost" />--%>
<%--<asp:AsyncPostBackTrigger ControlID="txtDiscountTotal" />--%>
<%--<asp:AsyncPostBackTrigger ControlID="LinkButtonDelete" />--%>
</Triggers>
</asp:UpdatePanel>
<div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback">
<asp:Panel ID="Panel1" Height="400px" BackColor="white" ScrollBars="Vertical" BorderStyle="Solid" BorderWidth="1px" BorderColor="Silver" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:GridView ID="GridViewPurchaseReq" UseSubmitBehavior="false" CssClass="table table-striped table-bordered dt-responsive nowrap" Width="100%" ShowHeaderWhenEmpty="true" DataKeyName="Id" EmptyDataText="No Data Available" runat="server" AutoGenerateColumns="false" Height="49px" OnRowDeleting="GridViewPurchaseReq_RowDeleting" OnRowEditing="GridViewPurchaseReq_RowEditing" OnRowCommand="GridViewPurchaseReq_RowCommand" OnRowDataBound="GridViewPurchaseReq_RowDataBound" OnDataBound="GridViewPurchaseReq_DataBound">
<Columns>
<asp:ButtonField CommandName="ColumnClick" Visible="false" />
<asp:TemplateField HeaderText="SNo." ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<%#Container.DataItemIndex + 1 %>
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="Id" HeaderText="Id" Visible="false" />
<asp:BoundField DataField="PartNo" HeaderText="Part No" />
<asp:BoundField DataField="ProductName" HeaderText="Product Name" />
<asp:BoundField DataField="UnitName" HeaderText="U/M" />
<asp:BoundField DataField="ProGrpName" HeaderText="ProGrpName" Visible="false" />
<%--<asp:BoundField DataField="Qty" HeaderText="Qty" ItemStyle-HorizontalAlign="Center" />--%>
<asp:TemplateField HeaderText="Qty">
<ItemTemplate>
<asp:HiddenField ID="HidQty" runat="server" Value='<%# Eval("Id") %>' />
<asp:TextBox ID="gridtxtQty" Width="50px" BackColor="Transparent" OnTextChanged="gridtxtQty_TextChanged" ReadOnly="true" ClientIDMode="Static" AutoPostBack="true" BorderStyle="None" runat="server" Text='<%# Bind ("Qty") %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="UnitPrice" HeaderText="Unit Price" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}" />--%>
<asp:TemplateField HeaderText="Unit Price">
<ItemTemplate>
<asp:HiddenField ID="HidUnitPrice" runat="server" Value='<%# Eval("Id") %>' />
<asp:TextBox ID="gridtxtUnitPrice" CssClass="AlgRgh" BackColor="Transparent" OnTextChanged="gridtxtUnitPrice_TextChanged" ReadOnly="true" AutoPostBack="true" BorderStyle="None" Width="60px" ClientIDMode="Static" runat="server" Text='<%# Eval ("UnitPrice",PropCurrencyFormat.ToString()) %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="Total">
<ItemTemplate>
<asp:TextBox ID="gridtxtPrice" CssClass="AlgRgh" BackColor="Transparent" ReadOnly="true" AutoPostBack="true" BorderStyle="None" Width="60px" ClientIDMode="Static" runat="server" Text='<%# Eval("Price",PropCurrencyFormat.ToString()) %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<%-- <asp:BoundField DataField="Price" HeaderText="Total" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:n}" />--%>
<%--<asp:BoundField DataField="UnitName" HeaderText="Unit Name" />--%>
<%--<asp:BoundField DataField="Discount" HeaderText="Discount / %" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:n}" />--%>
<asp:TemplateField HeaderText="Discount / %" ItemStyle-HorizontalAlign="Right">
<ItemTemplate>
<asp:HiddenField ID="HidDiscount" runat="server" Value='<%# Eval("Id") %>' />
<asp:TextBox ID="gridtxtDiscount" CssClass="AlgRgh" BackColor="Transparent" ReadOnly="true" AutoPostBack="true" BorderStyle="None" Width="60px" DataFormatString="{0:n}" ClientIDMode="Static" runat="server" Text='<%# Bind ("Discount") %>' OnTextChanged="gridtxtDiscount_TextChanged"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="After Discount Total">
<ItemTemplate>
<asp:TextBox ID="gridtxtTotal" CssClass="AlgRgh" BackColor="Transparent" ReadOnly="true" AutoPostBack="true" BorderStyle="None" Width="60px" ClientIDMode="Static" runat="server" Text='<%# Eval("Total",PropCurrencyFormat.ToString()) %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="Total" HeaderText="After Discount Total" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}" />--%>
<asp:TemplateField HeaderText="Fc Rate">
<ItemTemplate>
<asp:TextBox ID="gridtxtCurrencyRate" CssClass="AlgRgh" BackColor="Transparent" ReadOnly="true" AutoPostBack="true" BorderStyle="None" Width="60px" ClientIDMode="Static" runat="server" Text='<%# Eval("CurrencyRate",PropCurrencyFormat.ToString()) %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="CurrencyRate" HeaderText="Fc Rate" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}" />--%>
<asp:TemplateField HeaderText="Fc Unit Price">
<ItemTemplate>
<asp:TextBox ID="gridtxtFcUnitPrice" CssClass="AlgRgh" BackColor="Transparent" ReadOnly="true" AutoPostBack="true" BorderStyle="None" Width="60px" ClientIDMode="Static" runat="server" Text='<%# Eval("FcUnitPrice",PropCurrencyFormat.ToString()) %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="FcUnitPrice" HeaderText="Fc Unit Price" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}" />--%>
<asp:TemplateField HeaderText="Fc Amount">
<ItemTemplate>
<asp:TextBox ID="gridtxtFcAmount" CssClass="AlgRgh" BackColor="Transparent" ReadOnly="true" AutoPostBack="true" BorderStyle="None" Width="60px" ClientIDMode="Static" runat="server" Text='<%# Eval("FcAmount",PropCurrencyFormat.ToString()) %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="FcAmount" HeaderText="Fc Amount" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:0.00}" />--%>
<asp:TemplateField HeaderText="Fc Discount / %">
<ItemTemplate>
<asp:TextBox ID="gridtxtDiscountFc" CssClass="AlgRgh" BackColor="Transparent" ReadOnly="true" AutoPostBack="true" BorderStyle="None" Width="60px" ClientIDMode="Static" runat="server" Text='<%# Eval("DiscountFc",PropCurrencyFormat.ToString()) %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="DiscountFc" HeaderText="Fc Discount / %" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:n}" />--%>
<asp:TemplateField HeaderText="After Discount Fc Amount">
<ItemTemplate>
<asp:TextBox ID="gridtxtAfterDiscountFcAmount" CssClass="AlgRgh" BackColor="Transparent" ReadOnly="true" AutoPostBack="true" BorderStyle="None" Width="60px" ClientIDMode="Static" runat="server" Text='<%# Eval("AfterDiscountFcAmount",PropCurrencyFormat.ToString()) %>'></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="AfterDiscountFcAmount" HeaderText="After Discount Fc Amount" ItemStyle-HorizontalAlign="Right" DataFormatString="{0:n}" />--%>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="VAT Percentage" ItemStyle-Width="30px">
<ItemTemplate>
<asp:Label ID="lblVATPercentage" Text='<%# Eval("VATPercentage","{0:0.00}").ToString() %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="VAT Amount" ItemStyle-Width="30px">
<ItemTemplate>
<asp:Label ID="lblVATAmount" Text='<%# Eval("VATAmount", "{0:0.00}") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="After VAT total" ItemStyle-Width="60px">
<ItemTemplate>
<asp:Label ID="gridlblAmount" runat="server" Text='<%# Eval("AfterVATTotal", "{0:0.00}") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="After VAT FC total" ItemStyle-Width="60px">
<ItemTemplate>
<asp:Label ID="gridlblFcAmount" runat="server" Text='<%# Eval("AfterVATTotalFC", "{0:0.00}") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Action" ItemStyle-Width="60px">
<ItemTemplate>
<asp:LinkButton ID="LinkButtonEdit" CommandArgument='<%#Eval("Id")%>' runat="server" CausesValidation="False" CommandName="Edit"
Text="Edit"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></asp:LinkButton>
<asp:LinkButton ID="LinkButtonDelete" runat="server" CausesValidation="False"
CommandName="Delete" CommandArgument='<%#Eval("Id")%>' OnClientClick="return confirm('Are you sure you want to delete?');" Text="Delete"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
<%--<asp:BoundField DataField="discountpercentage" Visible="true" HeaderText="" />--%>
<asp:TemplateField HeaderText="Discount Percentage" Visible="false">
<ItemTemplate>
<asp:Label ID="gridlbldiscountper" runat="server" Text='<%# Bind ("discountpercentage") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Top" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
</div>
</div>
<asp:UpdatePanel ID="UpdatePanel6" runat="server">
<ContentTemplate>
<div class="col-md-3 col-sm-2 col-xs-12 form-group has-feedback" style="float: left" style="display: none;">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Sub Total FC:</label>
<asp:Label ID="Label14" Text="" runat="server" /></span></label>
<%--<input type="text" style="text-align: right; font-size: 20px; color: #337ab7" class="form-control" id="txtSubTotal" runat="server" disabled="disabled" placeholder="Sub Total" />--%>
<asp:TextBox ID="txtsubtotalFC" Style="text-align: right; font-size: 20px; color: #337ab7" runat="server" CssClass="form-control" Enabled="false" ClientIDMode="Static" placeholder="0.00" />
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Sub Total :</label>
<asp:Label Text="" ID="Label1" runat="server" />
<%--<input type="text" style="text-align: right; font-size: 20px; color: #337ab7" class="form-control" id="txtSubTotal" runat="server" disabled="disabled" placeholder="Sub Total" />--%>
<asp:TextBox ID="txtSubTotal" Style="text-align: right; font-size: 20px; color: #337ab7" runat="server" CssClass="form-control" Enabled="false" ClientIDMode="Static" placeholder="Sub Total" />
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Discount FC :</label>
<asp:Label Text="" ID="Label5" runat="server" />
<%--<input type="text" style="text-align: right; font-size: 20px; color: #337ab7" class="form-control" id="txtDiscountTotal" runat="server" placeholder="Discount Total" />--%>
<asp:TextBox ID="txtdiscountFc" Enabled="false" Style="text-align: right; font-size: 20px; color: #337ab7" runat="server" CssClass="form-control" ClientIDMode="Static" placeholder="Discount Total" onchange="add_number();" />
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Discount Total :</label>
<asp:Label Text="" ID="Label2" runat="server" />
<%--<input type="text" style="text-align: right; font-size: 20px; color: #337ab7" class="form-control" id="txtDiscountTotal" runat="server" placeholder="Discount Total" />--%>
<asp:TextBox ID="txtDiscountTotal" Enabled="false" Style="text-align: right; font-size: 20px; color: #337ab7" runat="server" CssClass="form-control" ClientIDMode="Static" placeholder="Discount Total" onchange="add_number();" />
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">VAT Total :</label>
<asp:Label Text="" ID="Label6" runat="server" />
<%--<input type="text" style="text-align: right; font-size: 20px; color: #337ab7" class="form-control" id="txtSubTotal" runat="server" disabled="disabled" placeholder="Sub Total" />--%>
<asp:TextBox ID="txtVATTotalAmount" Style="text-align: right; font-size: 20px; color: #337ab7" runat="server" CssClass="form-control" Enabled="false" ClientIDMode="Static" placeholder="0.00" />
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">VAT FcTotal:</label>
<asp:Label Text="" ID="Label15" runat="server" />
<%--<input type="text" style="text-align: right; font-size: 20px; color: #337ab7" class="form-control" id="txtSubTotal" runat="server" disabled="disabled" placeholder="Sub Total" />--%>
<asp:TextBox ID="txtVATFcTotal" Style="text-align: right; font-size: 20px; color: #337ab7" runat="server" CssClass="form-control" Enabled="false" ClientIDMode="Static" placeholder="0.00" />
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback" style="float: right">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Total :</label>
<asp:Label Text="" ID="lblDefaultCurrencyCode" runat="server" />
<%--<input type="text" style="text-align: right; font-size: 20px; color: #337ab7" class="form-control" id="txtTotal" runat="server" disabled="disabled" placeholder="Total" />--%>
<asp:TextBox ID="txtTotal" Style="text-align: right; font-size: 20px; color: #337ab7" runat="server" CssClass="form-control" Enabled="false" ClientIDMode="Static" placeholder="Total" />
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback" style="float: right">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Fc Total :</label>
<asp:Label Text="" ID="lblCurrencyCode" runat="server" />
<%--<input type="text" style="text-align: right; font-size: 20px; color: #337ab7" class="form-control" id="txtFcTotal" runat="server" disabled="disabled" placeholder="Fc Total" />--%>
<asp:TextBox ID="txtFcTotal" Enabled="false" Style="text-align: right; font-size: 20px; color: #337ab7" runat="server" CssClass="form-control" ClientIDMode="Static" placeholder="Fc Total" />
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback" style="display: none">
<label for="heard">Sub Total :</label>
<asp:Label Visible="false" Text="" ID="Label4" runat="server" />
<%--<input visible="false" type="text" style="text-align: right; font-size: 20px; color: #337ab7" class="form-control" id="txtDiscountTotal" runat="server" disabled="disabled" placeholder="Discount Total" />--%>
<asp:TextBox ID="txtFcDefaultTotal" Style="text-align: right; font-size: 20px; color: #337ab7" runat="server" CssClass="form-control" ClientIDMode="Static" placeholder="Discount Total" onchange="add_number();" />
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group has-feedback" style="float: right; display: none">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Discount % Apply to Total Amount:</label>
<asp:Label Text="" ID="Label3" runat="server" />
<%--<input type="text" style="text-align: right; font-size: 20px; color: #337ab7" class="form-control" id="txtDiscountTotal" runat="server" placeholder="Discount Total" />--%>
<asp:TextBox ID="txtPerDiscount" Style="text-align: right; font-size: 20px; color: #337ab7" runat="server" CssClass="form-control" ClientIDMode="Static" placeholder="Discount Total" onchange="add_number();" />
</div>
</ContentTemplate>
</asp:UpdatePanel>
<asp:Label ID="lblUnit" runat="server" Visible="false"></asp:Label>
<asp:Label ID="lblFactory" runat="server" Visible="false"></asp:Label>
<asp:Label ID="lblFactoryPrice" runat="server" Visible="false"></asp:Label>
<asp:Label ID="lblPurchaseReqId" runat="server" Visible="false"></asp:Label>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="tab_content2" aria-labelledby="profile-tab">
<div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback" style="border: 1px solid; border-color: #169F85; border-radius: 4px; padding-top: 20px">
<%-- <asp:UpdatePanel ID="UpdatePanel9" runat="server" ChildrenAsTriggers="True">
<ContentTemplate>--%>
<div class="col-md-12 col-sm-6 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard" />
Document Name:
<asp:TextBox ID="txtDocName" ForeColor="#337a" Font-Bold="true" runat="server" CssClass="form-control" placeholder="Document Name"></asp:TextBox>
</div>
<div class="clearfix"></div>
<div class="col-md-12 col-sm-6 col-xs-12 form-group has-feedback">
<label for="heard" style="font-family: Calibri; font-size: 18px;">Select Imge:</label>
<div class="input-group">
<asp:FileUpload ID="uploadFile" ClientIDMode="Static" class="form-control" runat="server" />
<%--<asp:AsyncFileUpload ID="uploadFile" CssClass ="form-control" runat="server" />--%>
<div class="input-group-btn">
<div class="fileUpload btn btn-default">
<label for="heard"><i class="fa fa-image"></i></label>
<input id="uploadBtn" name="uploadBtn" type="button" onchange="Call()" class="upload" />
</div>
</div>
<%-- </ContentTemplate>
</asp:UpdatePanel>--%>
</div>
</div>
<div class="clearfix"></div>
<div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback">
<asp:Image ID="companylogo" Visible="false" Height="150" Width="150" OnLoad="companylogo_Load" CssClass="img-responsive avatar-view" runat="server"></asp:Image>
</div>
<div class="clearfix"></div>
<div class="pull-right">
<asp:Button ID="btnDocAdd" UseSubmitBehavior="false" runat="server" Style="width: 150px; float: right;" type="button" class="btn btn-warning" Text="Add" OnClick="btnDocAdd_Click" />
</div>
<div class="clearfix"></div>
<asp:UpdatePanel ID="UpdatePanel30" runat="server" ChildrenAsTriggers="True">
<Triggers>
<%--<asp:PostBackTrigger ControlID="btnDocAdd" />--%>
<%-- <asp:AsyncPostBackTrigger ControlID="btnDocAdd" />--%>
</Triggers>
<ContentTemplate>
<div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback">
<asp:Panel ID="Panel5" Height="200px" BackColor="white" ScrollBars="Vertical" BorderStyle="Solid" BorderWidth="1px" BorderColor="Silver" runat="server">
<asp:GridView ID="gvAttachment" CssClass="table table-striped table-bordered dt-responsive nowrap" Width="100%" ShowHeaderWhenEmpty="true" DataKeyName="Id" EmptyDataText="No Data Available" runat="server" AutoGenerateColumns="false" Height="49px" OnRowCommand="gvAttachment_RowCommand" OnRowDeleting="gvAttachment_RowDeleting" OnRowEditing="gvAttachment_RowEditing">
<Columns>
<asp:BoundField DataField="TradeDocumentID" HeaderText="Id" Visible="false" />
<asp:BoundField DataField="Name" HeaderText="Doc Name" />
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="View" ItemStyle-Width="25px">
<ItemTemplate>
<table>
<tr>
<td>
<asp:UpdatePanel ID="col1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<a target="_blank" href='<%# "Documents/"+Eval("URL") %>'><i class="fa fa-eye"></i></a>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</ItemTemplate>
<ItemStyle Width="20px" Height="20px"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Download" ItemStyle-Width="25px">
<ItemTemplate>
<table>
<tr>
<td>
<asp:UpdatePanel ID="col1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<a target="_blank" download href='<%# "Documents/"+Eval("URL") %>'><i class="fa fa-download"></a></i>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</ItemTemplate>
<ItemStyle Width="20px" Height="20px"></ItemStyle>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Action" ItemStyle-Width="70px">
<ItemTemplate>
<asp:LinkButton ID="LinkButtonEdit" CommandArgument='<%#Eval("TradeDocumentID")%>' runat="server" CausesValidation="False" CommandName="Edit"
Text="Edit"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></asp:LinkButton>
<asp:LinkButton ID="LinkButtonDelete" runat="server" CausesValidation="False"
CommandName="Delete" CommandArgument='<%#Eval("TradeDocumentID")%>' OnClientClick="return confirm('Are you sure you want to delete?');" Text="Delete"><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Top" />
</asp:GridView>
</asp:Panel>
</div>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="modelPickData" tabindex="-1" role="dialog"
aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" style="width: 90%; height: 90%;">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close"
data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title" id="myModalLabel">Purchase Requisition
</h4>
</div>
<div class="modal-body">
<div class="x_panel">
<br />
<div class="" role="tabpanel" data-example-id="togglable-tabs">
<div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback" style="border: 1px solid; border-color: silver; border-radius: 10px; margin-top: 10px; padding-top: 10px;">
<div style="clear: both;"></div>
<div role="tabpanel" class="tab-pane fade active in" id="tab_content12" aria-labelledby="home-tab">
<div class="form-horizontal form-label-left ">
<div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Purchase Requisition<span style="color: red; font-size: 15px; margin-left: 4px;">*</span></label>
</div>
<div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback">
<asp:Panel ID="Panel2" Height="200px" BackColor="white" ScrollBars="Vertical" BorderStyle="Solid" BorderWidth="1px" BorderColor="Silver" runat="server">
<asp:UpdatePanel ID="UpdatePanel2" runat="server">
<ContentTemplate>
<asp:GridView ID="grvPickDataMaster" CssClass="table table-striped table-bordered dt-responsive nowrap" Width="100%" ShowHeaderWhenEmpty="true" DataKeyName="PurchaseRequistionId" EmptyDataText="No Data Available" runat="server" AutoGenerateColumns="false" Height="49px" OnRowCommand="grvPickDataMaster_RowCommand" OnRowEditing="grvPickDataMaster_RowEditing" OnRowDataBound="grvPickDataMaster_RowDataBound">
<Columns>
<asp:BoundField DataField="Id" HeaderText="Id" Visible="false" />
<asp:BoundField DataField="PoNo" HeaderText="Ordr Name" />
<asp:BoundField DataField="VendorName" HeaderText="Vendor Name" />
<asp:BoundField DataField="StatusNew" HeaderText="Status" />
<asp:BoundField DataField="PurchaseRequistionId" HeaderText="PurchaseRequistionId" Visible="false" />
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Action" ItemStyle-Width="70px">
<ItemTemplate>
<asp:LinkButton ID="LinkButtonEdit" CommandArgument='<%#Eval("PurchaseRequistionId")%>' runat="server" CausesValidation="False" CommandName="Edit"
Text="Edit"><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></asp:LinkButton>
</ItemTemplate>
<ItemStyle HorizontalAlign="Center" Width="70px" />
</asp:TemplateField>
</Columns>
<EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Top" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
</div>
</div>
</div>
</div>
</div>
<div class="" role="tabpanel" data-example-id="togglable-tabs">
<div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback" style="border: 1px solid; border-color: silver; border-radius: 10px; margin-top: 10px; padding-top: 10px;">
<div style="clear: both;"></div>
<div role="tabpanel" class="tab-pane fade active in" id="tab_content123" aria-labelledby="home-tab">
<div class="form-horizontal form-label-left ">
<div class="col-md-6 col-sm-6 col-xs-12 form-group has-feedback">
<label style="font-family: Calibri; font-size: 18px;" for="heard">Detail<span style="color: red; font-size: 15px; margin-left: 4px;">*</span></label>
</div>
<div class="col-md-12 col-sm-12 col-xs-12 form-group has-feedback">
<asp:Panel ID="Panel3" Height="300px" BackColor="white" ScrollBars="Vertical" BorderStyle="Solid" BorderWidth="1px" BorderColor="Silver" runat="server">
<asp:UpdatePanel ID="UpdatePanel3" runat="server">
<ContentTemplate>
<asp:GridView ID="grvPickDataDetail" CssClass="table table-striped table-bordered dt-responsive nowrap" Width="100%" ShowHeaderWhenEmpty="true" DataKeyName="Id" EmptyDataText="No Data Available" runat="server" AutoGenerateColumns="false" Height="49px" OnRowEditing="grvPickDataDetail_RowEditing">
<Columns>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="70px" Visible="false">
<ItemTemplate>
<asp:Label ID="lblid" Style="display: none;" Text='<%#Eval("Id") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="70px" Visible="false">
<ItemTemplate>
<asp:Label ID="lblProductId" Style="display: none;" Text='<%#Eval("ProductId") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="70px" Visible="false">
<ItemTemplate>
<asp:Label ID="lblVATId" Style="display: none;" Text='<%#Eval("VATId") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-Width="70px" Visible="false">
<ItemTemplate>
<asp:Label ID="lblUnitID" Style="display: none;" Text='<%#Eval("UnitID") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Part No" >
<ItemTemplate>
<asp:Label ID="lblPartNo" Width="100px" Text='<%#Eval("PartNo") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Product Name" ItemStyle-Width="200px">
<ItemTemplate>
<asp:Label ID="lblproductName" Width="200px" Text='<%#Eval("ProductName") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Unit Name" >
<ItemTemplate>
<asp:Label ID="lblUnitName" Width="100px" Text='<%#Eval("UnitName") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Left" HeaderText="Factory" ItemStyle-Width="200px">
<ItemTemplate>
<asp:Label ID="lblFactory" Text='<%#Eval("ProGrpName") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Qty" ItemStyle-Width="10px">
<ItemTemplate>
<asp:Label ID="lblDiscountQty" Text='<%#Eval("Qty") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Unit Price" ItemStyle-Width="30px">
<ItemTemplate>
<asp:Label ID="lblUnitPrice" Text='<%#Eval("UnitPrice",PropCurrencyFormat.ToString()) %>' runat="server" DataFormatString="{0:0.00}"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Amount" ItemStyle-Width="30px">
<ItemTemplate>
<asp:Label ID="lblPrice" Text='<%#Eval("Price",PropCurrencyFormat.ToString()) %>' runat="server" DataFormatString="{0:0.00}"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Discount Amount" ItemStyle-Width="20px">
<ItemTemplate>
<asp:Label ID="lblDiscountAmount" Text='<%#Eval("Discount",PropCurrencyFormat.ToString()) %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Discount Percentage" ItemStyle-Width="20px">
<ItemTemplate>
<asp:Label ID="lblDiscountPercentage" Text='<%#Eval("DiscountPercentage") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Total" ItemStyle-Width="30px">
<ItemTemplate>
<asp:Label ID="lblTotal" Text='<%#Eval("DiscountTotal",PropCurrencyFormat.ToString()) %>' runat="server" DataFormatString="{0:0.00}"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Sales Inquiry Id" ItemStyle-Width="10px" Visible="false">
<ItemTemplate>
<asp:Label ID="lblSaleQuotationId" Text='<%#Eval("PurchaseRequistionId") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Fc Rate" ItemStyle-Width="20px">
<ItemTemplate>
<asp:Label ID="lblCurrencyRate" Text='<%#Eval("CurrencyRate",PropCurrencyFormat.ToString()) %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Fc Unit Price" ItemStyle-Width="20px">
<ItemTemplate>
<asp:Label ID="lblFcUnitPrice" Text='<%#Eval("FcUnitPrice",PropCurrencyFormat.ToString()) %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Fc Amount" ItemStyle-Width="20px">
<ItemTemplate>
<asp:Label ID="lblFcAmount" Text='<%#Eval("FcAmount",PropCurrencyFormat.ToString()) %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Fc Discount / %" ItemStyle-Width="20px">
<ItemTemplate>
<asp:Label ID="lblDiscountFc" Text='<%#Eval("DiscountFc",PropCurrencyFormat.ToString()) %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="After Discount Fc Amount" ItemStyle-Width="20px">
<ItemTemplate>
<asp:Label ID="lblAfterDiscountFcAmount" Text='<%#Eval("AfterDiscountFcAmount",PropCurrencyFormat.ToString()) %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="VAT Percentage" ItemStyle-Width="30px">
<ItemTemplate>
<asp:Label ID="lblVATPercentage" Text='<%# Eval("VATPercentage","{0:0.00}").ToString() %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="VAT Amount" ItemStyle-Width="30px">
<ItemTemplate>
<asp:Label ID="lblVATAmount" Text='<%# Eval("VATAmount", "{0:0.00}") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="After VAT total" ItemStyle-Width="60px">
<ItemTemplate>
<asp:Label ID="gridlblAmount" runat="server" Text='<%# Eval("AfterVATTotal", "{0:0.00}") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="After VAT FC total" ItemStyle-Width="60px">
<ItemTemplate>
<asp:Label ID="gridlblFcAmount" runat="server" Text='<%# Eval("AfterVATTotalFC", "{0:0.00}") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Currency ID" ItemStyle-Width="20px" Visible="false">
<ItemTemplate>
<asp:Label ID="lblCurrencyId" Text='<%#Eval("CurrencyId") %>' runat="server"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Action" ItemStyle-Width="70px">
<ItemTemplate>
<asp:CheckBox ID="chkPickData" Checked="true" runat="server" CausesValidation="false" />
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Remarks" ItemStyle-Width="20px" Visible="false">
<ItemTemplate>
<asp:Label ID="lblRemarks" Text='<%#Eval("Remarks") %>' runat="server" Visible="false"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderText="Remarks" ItemStyle-Width="20px" Visible="false">
<ItemTemplate>
<asp:Label ID="lblConversionRateofCurrency" Text='<%#Eval("ConversionRateofCurrency") %>' runat="server" Visible="false"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Top" />
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
</div>
</div>
</div>
</div>
</div>
<div class="form-horizontal form-label-left ">
<asp:UpdatePanel ID="UpdatePanel14" runat="server">
<ContentTemplate>
<div class="form-group has-feedback pull-right">
<asp:Button ID="btnPostPickData" runat="server" Style="width: 100px;" CausesValidation="false" UseSubmitBehavior="false" type="button" class="btn btn-primary" Text="Post" OnClick="btnPostPickData_Click" />
<asp:Label Text="" ID="lblStatus" runat="server" />
<asp:Label Text="" ID="lblCurrencyId" runat="server" />
<asp:Label Text="" ID="lblCurrencyRate" runat="server" />
<asp:Label Text="" ID="lblFcAmount" runat="server" />
</div>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="btnPostPickData" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">close</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<div class="modal fade" id="modelSearchProduct" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" style="width: 850px; height: 100%">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close"
data-dismiss="modal" aria-hidden="true">
×
</button>
<h4 class="modal-title" id="myModalLabelProduct">Search Product
</h4>
</div>
<div class="modal-body" style="width: 100%; height: 100%">
<div class="x_panel">
<asp:Panel ID="Panel6" Width="100%" Height="500px" BackColor="white" ScrollBars="Vertical" BorderStyle="Solid" BorderWidth="1px"
BorderColor="Silver" runat="server">
<table id="Product" style="width: 100%" class="table table-striped table-bordered dt-responsive">
<thead>
<tr>
<%-- <th>Id</th>--%>
<%--<th style="display:none;">Id</th>--%>
<th>Part No</th>
<th>Product Name</th>
<th>Brand Name</th>
<th>Category</th>
<th>End User Price</th>
<th>Factory Price</th>
<%--<th>Action</th>--%>
</tr>
</thead>
</table>
</asp:Panel>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">close</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modalProduct -->
</div>
<asp:HiddenField ID="hdnfile" runat="server" />
<asp:HiddenField ID="TabName" runat="server" />
<script>
debugger;
function openModallSearchProduct() {
$('#modelSearchProduct').modal('show');
return false;
}
function HideModallSearchProduct() {
$('#modelSearchProduct').modal('hide');
return false;
}
</script>
<script type="text/javascript">
debugger;
function openProductList() {
//alert("Product");
oTable = $('#Product').DataTable({
columns: [
//{ 'data': 'Id' },
{ 'data': 'RefPartNo' },
{ 'data': 'ProductName' },
{ 'data': 'Brand' },
{ 'data': 'ProGrpName' },
{ 'data': 'CustomerPrice' },
{ 'data': 'CostPrice' },
],
bServerSide: true,
bDestroy: true,
sAjaxSource: 'ProductlistHandler.ashx'
});
}
</script>
<script>
$("#Product").on("dblclick", "tr", function () {
var $this = $(this);
var row = $this.closest("tr");
var cell1text = row.find('td:First').text();
var cell2text = row.find('td:eq(1)').text();
var cell3text = row.find('td:eq(2)').text();
var cell4text = row.find('td:eq(3)').text();
var cell5text = row.find('td:eq(4)').text();
document.getElementById('txtProduct').value = cell2text;
document.getElementById('txtProduct').onchange();
HideModallSearchProduct();
});
</script>
<script type="text/javascript">
function openModalApprovalStatus() {
$('#modelApprovalStatus').modal('show');
return false;
}
function openModallPickData() {
$('#modelPickData').modal('show');
return false;
}
function pageLoad(sender, args) {
$(document).ready(function () {
$('.select2_single').css('width', '100%').select2({ allowClear: true });
});
$(".select2_group").select2({});
$(".select2_multiple").select2({
maximumSelectionLength: 4,
placeholder: "With Max Selection limit 4",
allowClear: true
});
}
function add_number() {
var check = document.getElementById("checkboxApplyallDiscount").value;
if (document.getElementById("checkboxApplyallDiscount").checked == true) {
var discount = parseInt(document.getElementById("txtDiscountTotal").value);
var subtotal = document.getElementById("txtSubTotal").value;
var FcDefault = document.getElementById("txtFcDefaultTotal").value;
str = subtotal.replace(/,/g, "");
var subtotalap = parseInt(str, 10);
var result = (subtotal - discount);
if (discount > 0) {
document.getElementById("txtTotal").value = (result).toFixed(2);
document.getElementById("txtFcTotal").value = (FcDefault - discount).toFixed(2);
}
else {
document.getElementById("txtTotal").value = subtotal;
document.getElementById("txtFcTotal").value = FcDefault;
}
}
else if (document.getElementById("checkboxApplyallDiscountPercentage").checked) {
var discount = parseInt(document.getElementById("txtDiscountTotal").value);
var subtotal = document.getElementById("txtSubTotal").value;
str = subtotal.replace(/,/g, "");
var subtotalap = parseInt(str, 10);
var result = ((subtotal * discount) / 100).toFixed(2);
var FcDefault = document.getElementById("txtFcDefaultTotal").value;
var resultfc = ((FcDefault * discount) / 100).toFixed(2);
//alert(FcDefault);
if (discount > 0) {
document.getElementById("txtPerDiscount").value = result;
document.getElementById("txtTotal").value = (subtotal - result).toFixed(2);
document.getElementById("txtFcTotal").value = (FcDefault - resultfc).toFixed(2);
}
else {
document.getElementById("txtTotal").value = subtotal;
document.getElementById("txtFcTotal").value = FcDefault;
document.getElementById("txtPerDiscount").value = 0.00;
}
}
}
</script>
<!-- Select2 -->
<script src="../vendors/select2/dist/js/select2.full.min.js"></script>
<link href="http://code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css" rel="Stylesheet" />
<%--<script src="YourJquery source path"></script>--%>
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
<script type="text/javascript">
$(function () {
debugger;
if ('<%= TabName.Value %>' == 'image') {
$("#tab_content2").addClass('active in');
$("#profile-tab").parent().addClass('active');
$("#tab_content1").removeClass('active in');
$("#home-tab").parent().removeClass('active');
}
else {
$("#tab_content1").addClass('active in');
}
var tabName = $("[id*=TabName]").val() != "" ? $("[id*=TabName]").val() : "tab_content1";
$('#togglable-tabs a[href="#' + tabName + '"]').tab('show');
$("#togglable-tabs a").click(function () {
$("[id*=TabName]").val($(this).attr("href").replace("#", ""));
});
});
</script>
<!-- Datatables -->
<script src="../vendors/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="../vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
<script src="../vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
<script src="../vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
<script src="../vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
<script src="../vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
<script src="../vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
<script src="../vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
<script src="../vendors/datatables.net-scroller/js/datatables.scroller.min.js"></script>
</asp:Content>
No comments:
Post a Comment