<commit_before><link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html">
<dom-module id="transportfee-service">
  <template>
    <iron-ajax
        method="post"
        id="generatefeeajax"
        url="{{generatefeeurl}}"
        params="{{generatefeeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="generatefeeResponse"
        debounce-duration="300"
        >
  </iron-ajax>

   <iron-ajax
        method="post"
        id="zonefeeajax"
        url="{{zonefeeurl}}"
        params="{{zonefeeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="zonefeeResponse"
        debounce-duration="300"
        >
  </iron-ajax>

   <iron-ajax
        method="post"
        id="getnameofstuajax"
        url="{{getnameofstuurl}}"
        params="{{getnameofstuparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getnameofstuResponse"
        debounce-duration="300"
        >
  </iron-ajax>
  <iron-ajax
        method="post"
        id="payfeeajax"
        url="{{payfeeurl}}"
         params="{{payfeeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="payfeeResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="chequedetailsajax"
        url="{{chequedetailsurl}}"
         params="{{chequedetailsparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="chequedetailsResponse"
        debounce-duration="300"
        >
  </iron-ajax>

   <iron-ajax
        method="post"
        id="payfee2ajax"
        url="{{payfee2url}}"
         params="{{payfee2param}}"
        handle-as="json"
        content-type="application/json"
        on-response="payfee2Response"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="chequedetails2ajax"
        url="{{chequedetails2url}}"
         params="{{chequedetails2param}}"
        handle-as="json"
        content-type="application/json"
        on-response="chequedetails2Response"
        debounce-duration="300"
        >
  </iron-ajax>
    <iron-ajax
        method="post"
        id="getfeedataajax"
        url="{{getfeedataurl}}"
         params="{{getfeedataparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getfeedataResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="getfeezoneajax"
        url="{{getfeezoneurl}}"
         params="{{getfeezoneparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getfeezoneResponse"
        debounce-duration="300"
        >
  </iron-ajax>
  <iron-ajax
        method="post"
        id="getfeenameajax"
        url="{{getfeenameurl}}"
         params="{{getfeenameparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getfeenameResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="sendrequestajax"
        url="{{sendrequesturl}}"
         params="{{sendrequestparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="sendrequestResponse"
        debounce-duration="300"
        >
  </iron-ajax>
  <iron-ajax
        
        id="getinstalltypeajax"
        url="{{getinstalltypeurl}}"
        handle-as="json"
        content-type="application/json"
        on-response="getinstalltypeResponse"
        debounce-duration="300"
        >
  </iron-ajax>

  <iron-ajax
        
        id="zoneinstalltypeajax"
        url="{{zoneinstalltypeurl}}"
        handle-as="json"
        content-type="application/json"
        on-response="zoneinstalltypeResponse"
        debounce-duration="300"
        >
  </iron-ajax>

    <iron-ajax
        method="post"
        id="checkchequedetailsajax"
        url="{{checkchequedetailsurl}}"
        params="{{checkchequedetailsparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="checkchequedetailsResponse"
        debounce-duration="300"
        >
  </iron-ajax>
  <iron-ajax
        method="post"
        id="updatechequedetailajax"
        url="{{updatechequedetailurl}}"
         params="{{updatechequedetailparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="updatechequedetailResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="updatestuchequeajax"
        url="{{updatestuchequeurl}}"
         params="{{updatestuchequeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="updatestuchequeResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="datepickinsta1ajax"
        url="{{datepickinsta1url}}"
        params="{{datepickinsta1param}}"
        handle-as="json"
        content-type="application/json"
        on-response="datepickinsta1Response"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="datepickinsta1chequeajax"
        url="{{datepickinsta1chequeurl}}"
        params="{{datepickinsta1chequeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="datepickinsta1chequeResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="datepickinsta2ajax"
        url="{{datepickinsta2url}}"
        params="{{datepickinsta2param}}"
        handle-as="json"
        content-type="application/json"
        on-response="datepickResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="datepickinsta2chequeajax"
        url="{{datepickinsta2chequeurl}}"
        params="{{datepickinsta2chequeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="datepickchequeResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="receiptseqajax"
        url="{{receiptsequrl}}"
         params="{{receiptseqparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="receiptseqResponse"
        debounce-duration="300"
        >
  </iron-ajax>

 <iron-ajax
        method="post"
        id="feereportajax"
        url="{{feereporturl}}"
         params="{{feereportparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="feereportResponse"
        debounce-duration="300"
        >
  </iron-ajax>


  <iron-ajax
        method="post"
        id="chequereportajax"
        url="{{chequereporturl}}"
         params="{{chequereportparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="chequereportResponse"
        debounce-duration="300"
        >
  </iron-ajax>

   <iron-ajax
        method="post"
        id="updatereceiptseqajax"
        url="{{updatereceiptsequrl}}"
         params="{{updatereceiptparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="updatereceiptseqResponse"
        debounce-duration="300"
        >
  </iron-ajax>
<iron-ajax
        method="post"
        id="receiptnoajax"
        url="{{receiptnourl}}"
         params="{{receiptnoparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="receiptnoResponse"
        debounce-duration="300"
        >
  </iron-ajax>
    <iron-ajax
        method="post"
        id="getstureceiptajax"
        url="{{getstureceipturl}}"
         params="{{getstureceiptparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getstureceiptResponse"
        debounce-duration="300"
        >
  </iron-ajax>
  <iron-ajax
        method="post"
        id="pendingajax"
        url="{{pendingurl}}"
         params="{{pendingparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="pendingResponse"
        debounce-duration="300"
        >
  </iron-ajax>

   <iron-ajax
        method="post"
        id="getreceiptinfoajax"
        url="{{getreceiptinfourl}}"
         params="{{getreceiptinfoparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getreceiptinfoResponse"
          </iron-ajax>
  <iron-ajax
        method="post"
        id="discountreportbynameajax"
        url="{{discountreportbynameurl}}"
        params="{{discountreportbynameparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="discountreportbynameResponse"
        debounce-duration="300"
        >
  </iron-ajax>
    </template>

     <script>
  (function() {
  var dademail;
    var zonename;
    var stuid;
    var feez="";
    var fromd;
    var tod;
    var studname;
    var feeresult;
    var uchequeno;
    var uchequestatus;
    var uinstalltype;
    var receiptcreate=[];
    var receiptid;
    var feeresultinsta1;
    var collection1;
    var collection1cheque;
    var total_collection_cash;
    var collectreport=[];
    var recstudid;
    var dadname;
    var chenum;
    var chedate;
    var banknm;
    var feeresultinsta1;
    var feeresultinsta2;
    var feeresultinsta1cheque;
    var feeresultinsta2cheque;
    var cashcount;
    var chequecount;
    var rstudid;
    var chequearr=[];
    var todate;
var chequereportarr;
var rpayfee;
var receiptseq;
var ackseq;
var rcount=0;
var paycount;

    Polymer({
      is: "transportfee-service",
      FnClear:function(){
        dademail="";
    zonename="";
    stuid="";
    feez="";
    fromd="";
    tod="";
    studname="";
    feeresult="";
    uchequeno="";
    uchequestatus="";
    uinstalltype="";
    receiptcreate=[];
    receiptid="";
    feeresultinsta1="";
    collection1="";
    collection1cheque="";
    total_collection_cash="";
    collectreport=[];
    recstudid="";
    dadname="";
    chenum="";
    chedate="";
    banknm="";
    feeresultinsta1="";
    feeresultinsta2="";
    feeresultinsta1cheque="";
    feeresultinsta2cheque="";
    cashcount="";
    chequecount="";
    rstudid="";
    chequearr=[];
    todate="";
    chequereportarr="";

      },
        generatefee:function(studid)
      
     {
      
      this.generatefeeurl=sessionStorage.getItem("addrinfo")+"/reportfee-card";
        var obj={"studid":"","schol":""}
        obj.studid=studid;
        obj.schol=sessionStorage.getItem("sch");
        this.generatefeeparam=obj;
        this.$.generatefeeajax.generateRequest();
     },
        zonefee:function(studid)
     {
      
      this.zonefeeurl=sessionStorage.getItem("addrinfo")+"/zonefee-card";
        var obj={"studid":""}
        obj.studid=studid;
        this.zonefeeparam=obj;
        this.$.zonefeeajax.generateRequest();
     },
     zonefeeResponse:function(e)
     {
      
        feeresult=e.detail.response.returnval;
       document.querySelector('transportfee-service').zoneinstalltype();
     },
     generatefeeResponse:function(e)
     {
      
        feeresult=e.detail.response.returnval;
      document.querySelector('transportfee-card').feearr=feeresult;
      document.querySelector('transportfee-service').getinstalltype();
     },
     getnameofstu:function()
     {
      
      this.getnameofstuurl=sessionStorage.getItem("addrinfo")+"/getnameofstu-card";
      var obj={"schol":""}
      obj.schol=sessionStorage.getItem("sch");
      this.getnameofstuparam=obj;
       this.$.getnameofstuajax.generateRequest();
     },
     getnameofstuResponse:function(e)
     {

      var nameitem=e.detail.response.returnval;
      
      
      document.querySelector('transportfee-card').autocompletename(nameitem);
     },
     payfee:function(payfees)
     {
      this.receiptsequrl=sessionStorage.getItem("addrinfo")+"/receiptsequence";
      var obj={"schol":""}
      obj.schol=sessionStorage.getItem("sch");
      this.receiptseqparam=obj;
      this.$.receiptseqajax.generateRequest();
      rpayfee=payfees;
      paycount=payfees.length;
     },
     payfeeResponse:function(e)
     {
        var pay1success=e.detail.response.returnval;
        if(pay1success=='success')
        {  rcount++;
            alert("Paid Successfully");
            if(rcount==paycount)
            {
              document.querySelector('transportfee-service').generatereceipt();
            }
            //document.querySelector('zonetostudent-card').gotozone();

        }
      },
      generatereceipt:function()
      {
    
        this.updatereceiptsequrl=sessionStorage.getItem("addrinfo")+"/updatereceiptsequence";
        var obj={"schoolid":"","sequence":"","ackseq":""}
        obj.schoolid=sessionStorage.getItem("sch");
        obj.sequence =receiptseq;
        obj.ackseq=ackseq;
        this.updatereceiptparam =obj;
        this.$.updatereceiptseqajax.generateRequest();
      },
      receiptseqResponse:function(e)
      {
        var receiptschoolid=e.detail.response.returnval[0].schoolid;
         receiptseq=e.detail.response.returnval[0].sequence;
         ackseq=e.detail.response.returnval[0].ackseq;
        for(var i=0;i<rpayfee.length;i++)<commit_msg>transport service<commit_after><link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html">
<dom-module id="transportfee-service">
  <template>
    <iron-ajax
        method="post"
        id="generatefeeajax"
        url="{{generatefeeurl}}"
        params="{{generatefeeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="generatefeeResponse"
        debounce-duration="300"
        >
  </iron-ajax>

   <iron-ajax
        method="post"
        id="zonefeeajax"
        url="{{zonefeeurl}}"
        params="{{zonefeeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="zonefeeResponse"
        debounce-duration="300"
        >
  </iron-ajax>

   <iron-ajax
        method="post"
        id="getnameofstuajax"
        url="{{getnameofstuurl}}"
        params="{{getnameofstuparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getnameofstuResponse"
        debounce-duration="300"
        >
  </iron-ajax>
  <iron-ajax
        method="post"
        id="payfeeajax"
        url="{{payfeeurl}}"
         params="{{payfeeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="payfeeResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="chequedetailsajax"
        url="{{chequedetailsurl}}"
         params="{{chequedetailsparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="chequedetailsResponse"
        debounce-duration="300"
        >
  </iron-ajax>

   <iron-ajax
        method="post"
        id="payfee2ajax"
        url="{{payfee2url}}"
         params="{{payfee2param}}"
        handle-as="json"
        content-type="application/json"
        on-response="payfee2Response"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="chequedetails2ajax"
        url="{{chequedetails2url}}"
         params="{{chequedetails2param}}"
        handle-as="json"
        content-type="application/json"
        on-response="chequedetails2Response"
        debounce-duration="300"
        >
  </iron-ajax>
    <iron-ajax
        method="post"
        id="getfeedataajax"
        url="{{getfeedataurl}}"
         params="{{getfeedataparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getfeedataResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="getfeezoneajax"
        url="{{getfeezoneurl}}"
         params="{{getfeezoneparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getfeezoneResponse"
        debounce-duration="300"
        >
  </iron-ajax>
  <iron-ajax
        method="post"
        id="getfeenameajax"
        url="{{getfeenameurl}}"
         params="{{getfeenameparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getfeenameResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="sendrequestajax"
        url="{{sendrequesturl}}"
         params="{{sendrequestparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="sendrequestResponse"
        debounce-duration="300"
        >
  </iron-ajax>
  <iron-ajax
        
        id="getinstalltypeajax"
        url="{{getinstalltypeurl}}"
        handle-as="json"
        content-type="application/json"
        on-response="getinstalltypeResponse"
        debounce-duration="300"
        >
  </iron-ajax>

  <iron-ajax
        
        id="zoneinstalltypeajax"
        url="{{zoneinstalltypeurl}}"
        handle-as="json"
        content-type="application/json"
        on-response="zoneinstalltypeResponse"
        debounce-duration="300"
        >
  </iron-ajax>

    <iron-ajax
        method="post"
        id="checkchequedetailsajax"
        url="{{checkchequedetailsurl}}"
        params="{{checkchequedetailsparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="checkchequedetailsResponse"
        debounce-duration="300"
        >
  </iron-ajax>
  <iron-ajax
        method="post"
        id="updatechequedetailajax"
        url="{{updatechequedetailurl}}"
         params="{{updatechequedetailparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="updatechequedetailResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="updatestuchequeajax"
        url="{{updatestuchequeurl}}"
         params="{{updatestuchequeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="updatestuchequeResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="datepickinsta1ajax"
        url="{{datepickinsta1url}}"
        params="{{datepickinsta1param}}"
        handle-as="json"
        content-type="application/json"
        on-response="datepickinsta1Response"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="datepickinsta1chequeajax"
        url="{{datepickinsta1chequeurl}}"
        params="{{datepickinsta1chequeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="datepickinsta1chequeResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="datepickinsta2ajax"
        url="{{datepickinsta2url}}"
        params="{{datepickinsta2param}}"
        handle-as="json"
        content-type="application/json"
        on-response="datepickResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="datepickinsta2chequeajax"
        url="{{datepickinsta2chequeurl}}"
        params="{{datepickinsta2chequeparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="datepickchequeResponse"
        debounce-duration="300"
        >
  </iron-ajax>
   <iron-ajax
        method="post"
        id="receiptseqajax"
        url="{{receiptsequrl}}"
         params="{{receiptseqparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="receiptseqResponse"
        debounce-duration="300"
        >
  </iron-ajax>

 <iron-ajax
        method="post"
        id="feereportajax"
        url="{{feereporturl}}"
         params="{{feereportparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="feereportResponse"
        debounce-duration="300"
        >
  </iron-ajax>


  <iron-ajax
        method="post"
        id="chequereportajax"
        url="{{chequereporturl}}"
         params="{{chequereportparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="chequereportResponse"
        debounce-duration="300"
        >
  </iron-ajax>

   <iron-ajax
        method="post"
        id="updatereceiptseqajax"
        url="{{updatereceiptsequrl}}"
         params="{{updatereceiptparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="updatereceiptseqResponse"
        debounce-duration="300"
        >
  </iron-ajax>
<iron-ajax
        method="post"
        id="receiptnoajax"
        url="{{receiptnourl}}"
         params="{{receiptnoparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="receiptnoResponse"
        debounce-duration="300"
        >
  </iron-ajax>
    <iron-ajax
        method="post"
        id="getstureceiptajax"
        url="{{getstureceipturl}}"
         params="{{getstureceiptparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getstureceiptResponse"
        debounce-duration="300"
        >
  </iron-ajax>
  <iron-ajax
        method="post"
        id="pendingajax"
        url="{{pendingurl}}"
         params="{{pendingparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="pendingResponse"
        debounce-duration="300"
        >
  </iron-ajax>

   <iron-ajax
        method="post"
        id="getreceiptinfoajax"
        url="{{getreceiptinfourl}}"
         params="{{getreceiptinfoparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="getreceiptinfoResponse"
          </iron-ajax>
  <iron-ajax
        method="post"
        id="discountreportbynameajax"
        url="{{discountreportbynameurl}}"
        params="{{discountreportbynameparam}}"
        handle-as="json"
        content-type="application/json"
        on-response="discountreportbynameResponse"
        debounce-duration="300"
        >
  </iron-ajax>
    </template>

     <script>
  (function() {
  var dademail;
    var zonename;
    var stuid;
    var feez="";
    var fromd;
    var tod;
    var studname;
    var feeresult;
    var uchequeno;
    var uchequestatus;
    var uinstalltype;
    var receiptcreate=[];
    var receiptid;
    var feeresultinsta1;
    var collection1;
    var collection1cheque;
    var total_collection_cash;
    var collectreport=[];
    var recstudid;
    var dadname;
    var chenum;
    var chedate;
    var banknm;
    var feeresultinsta1;
    var feeresultinsta2;
    var feeresultinsta1cheque;
    var feeresultinsta2cheque;
    var cashcount;
    var chequecount;
    var rstudid;
    var chequearr=[];
    var todate;
var chequereportarr;
var rpayfee;
var receiptseq;
var ackseq;
var rcount=0;
var paycount;

    Polymer({
      is: "transportfee-service",
      FnClear:function(){
        dademail="";
    zonename="";
    stuid="";
    feez="";
    fromd="";
    tod="";
    studname="";
    feeresult="";
    uchequeno="";
    uchequestatus="";
    uinstalltype="";
    receiptcreate=[];
    receiptid="";
    feeresultinsta1="";
    collection1="";
    collection1cheque="";
    total_collection_cash="";
    collectreport=[];
    recstudid="";
    dadname="";
    chenum="";
    chedate="";
    banknm="";
    feeresultinsta1="";
    feeresultinsta2="";
    feeresultinsta1cheque="";
    feeresultinsta2cheque="";
    cashcount="";
    chequecount="";
    rstudid="";
    chequearr=[];
    todate="";
    chequereportarr="";

      },
        generatefee:function(studid)
      
     {
      
      this.generatefeeurl=sessionStorage.getItem("addrinfo")+"/reportfee-card";
        var obj={"studid":"","schol":""}
        obj.studid=studid;
        obj.schol=sessionStorage.getItem("sch");
        this.generatefeeparam=obj;
        this.$.generatefeeajax.generateRequest();
     },
        zonefee:function(studid)
     {
      
      this.zonefeeurl=sessionStorage.getItem("addrinfo")+"/zonefee-card";
        var obj={"studid":""}
        obj.studid=studid;
        this.zonefeeparam=obj;
        this.$.zonefeeajax.generateRequest();
     },
     zonefeeResponse:function(e)
     {
      
        feeresult=e.detail.response.returnval;
       document.querySelector('transportfee-service').zoneinstalltype();
     },
     generatefeeResponse:function(e)
     {
      
        feeresult=e.detail.response.returnval;
      document.querySelector('transportfee-card').feearr=feeresult;
      document.querySelector('transportfee-service').getinstalltype();
     },
     getnameofstu:function()
     {
      
      this.getnameofstuurl=sessionStorage.getItem("addrinfo")+"/getnameofstu-card";
      var obj={"schol":""}
      obj.schol=sessionStorage.getItem("sch");
      this.getnameofstuparam=obj;
       this.$.getnameofstuajax.generateRequest();
     },
     getnameofstuResponse:function(e)
     {

      var nameitem=e.detail.response.returnval;
      
      
      document.querySelector('transportfee-card').autocompletename(nameitem);
     },
     payfee:function(payfees)
     {
      this.receiptsequrl=sessionStorage.getItem("addrinfo")+"/receiptsequence";
      var obj={"schol":""}
      obj.schol=sessionStorage.getItem("sch");
      this.receiptseqparam=obj;
      this.$.receiptseqajax.generateRequest();
      rpayfee=payfees;
      paycount=payfees.length;
     },
     payfeeResponse:function(e)
     {
        var pay1success=e.detail.response.returnval;
        if(pay1success=='success')
        {  rcount++;
            alert("Paid Successfully");
            if(rcount==paycount)
            {
              document.querySelector('transportfee-service').generatereceipt();
              rcount=0;
            }
            //document.querySelector('zonetostudent-card').gotozone();

        }
      },
      generatereceipt:function()
      {
    
        this.updatereceiptsequrl=sessionStorage.getItem("addrinfo")+"/updatereceiptsequence";
        var obj={"schoolid":"","sequence":"","ackseq":""}
        obj.schoolid=sessionStorage.getItem("sch");
        obj.sequence =receiptseq;
        obj.ackseq=ackseq;
        this.updatereceiptparam =obj;
        this.$.updatereceiptseqajax.generateRequest();
      },
      receiptseqResponse:function(e)
      {
        var receiptschoolid=e.detail.response.returnval[0].schoolid;
         receiptseq=e.detail.response.returnval[0].sequence;
         ackseq=e.detail.response.returnval[0].ackseq;
        for(var i=0;i<rpayfee.length;i++)
{'fraction_non_alphanumeric': 0.14229571407385436, 'fraction_numerical': 0.009454248850659944, 'mean_word_length': 2.336178107606679, 'pattern_counts': {'":': 16, '<': 133, '<?xml version=': 0, '>': 129, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6813899', 'n_tokens_mistral': 8627, 'n_tokens_neox': 8346, 'n_words': 961}