Built files from Bizgaze WebServer
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

tcsdeclaration.min.js 4.9KB

1
  1. var Bizgaze;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{jsFiles(){return["platform/forms/components/formviewer/formviewer.js","libs/parsley/parsley.min.js","platform/series/managers/seriesmanager.js","apps/transact/managers/invoicemanager.js"]}cssFiles(){return[]}html(){return""}loadhtml(n){$("."+n).html('<form data-validate="parsley" data-isdynamic="false"><div class="card"><div class="card-header"><h3 class="text-center" style ="color:deepskyblue"><u>TCS - Declaration<\/u><\/h3 ><\/div><div style="overflow-x:hidden;" class="d modal-body bg-light"><div class="bg-white mb-10"><div id="bizgaze_CreateErrorMessages" class="clear"><\/div><div class="col-md-12" style ="height:300px; border:1px solid pink"><h4><p>I, <b><span id="userName1"><\/span><\/b> on behalf of <b><span id="lblDistributorName1"><\/span><\/b> hereby, declare that <b><span id="lblDistributorName2"><\/span><\/b> turnover has crossed the threshold of 10Cr INR, for the year of <b><span id= "MonthAndYear1"><\/span><\/b><br/><br/><br/> Name: <b><span id="userName2"><\/span><\/b><br/> Date: <b><span id="CurrentDate"><\/span><\/b><br/><br/><\/p><\/h4><span><b>Note: <\/b> TCS-declaration for a year can be done when turnover crossed the threshold of 10Cr INR<br/><br/><input type="checkbox" style ="width:30px;height:14px;" id="isSelfDeclared"> <span><\/span> Yes, I declare <span id="DeclarationMonthI_e_PreviousMonth" class="hidden"><\/span> <br/><br/><\/span><div class="text-center"><a href="javascript:;" id="btnSubmit" class="btn btn-primary btn-md">Submit<\/a><\/div><\/div><\/div><\/div><\/form>')}load(){}init(t){i.Instance().fileCacheHelper.loadJsFiles(["platform/forms/components/formviewer/formviewer.js","libs/parsley/parsley.min.js","platform/series/managers/seriesmanager.js","apps/transact/managers/invoicemanager.js"],function(){var r;i.Instance().loadhtml(t);$("#btn_Close").click(function(){i.Instance().navigationHelper.closePopUp()});r="";Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/transact/managers/invoicemanager.js",function(){n.Apps.Transact.Managers.InvoiceManager.Instance().GetTenants(Number(Unibase.Platform.Membership.Infos.Identity.getCurrentUser().tenantId)).then(function(n){n.result!=null&&(r=n.result.TenantName,$("#lblDistributorName1").text(r.toString()),$("#lblDistributorName2").text(r.toString()))})});$("#userName1").text(Unibase.Platform.Membership.Infos.Identity.getCurrentUser().name);$("#lblDistributorName1").text(r.toString());$("#lblDistributorName2").text(r.toString());$("#userName2").text(Unibase.Platform.Membership.Infos.Identity.getCurrentUser().name);var f=new Date,u="";let e=new Date(Unibase.Platform.Membership.Infos.Identity.getCurrentUser().partitionFromDate).getFullYear(),o=new Date(Unibase.Platform.Membership.Infos.Identity.getCurrentUser().partitionToDate).getFullYear();u=e+"-"+o;$("#MonthAndYear1").text(u);$("#CurrentDate").text(Unibase.Platform.Helpers.DateTimeHelper.Instance().formatLocalDate1(new Date,""));$("#DeclarationMonthI_e_PreviousMonth").text(["DECEMBER","JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER"][f.getMonth()]);var s=Unibase.Platform.Helpers.DateTimeHelper.Instance().currentDate(),h=Unibase.Platform.Helpers.DateTimeHelper.Instance().formatServerDate(s),c=h.split("/");i.Instance().Enable();$("#btnSubmit").click(function(){i.Instance().save()})})}Enable(){var t=Unibase.Platform.Membership.Infos.Identity.getCurrentUser().partitionId;Unibase.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/transact/managers/invoicemanager.js",function(){n.Apps.Transact.Managers.InvoiceManager.Instance().getTcsDeclaration(t).then(function(n){n.result==null||n.result==""?$("#btnSubmit").removeClass("disabled"):($("#btnSubmit").addClass("disabled"),$("#isSelfDeclared").prop("checked",!0),$("#isSelfDeclared").prop("disabled",!0))})})}save(){var r=Unibase.Platform.Helpers.DateTimeHelper.Instance().currentDate(),t=$("#isSelfDeclared").prop("checked"),i;if(t==!1)return MessageHelper.Instance().showError("Please Check Declaration","bizgaze_CreateErrorMessages"),!1;i={Declared:t,UserId:Unibase.Platform.Membership.Infos.Identity.getCurrentUser().userId,DeclarationDate:new Date,PartitionId:Unibase.Platform.Membership.Infos.Identity.getCurrentUser().partitionId};n.Apps.Transact.Managers.InvoiceManager.Instance().saveTcsDeclaration(i).then(function(n){MessageHelper.Instance().showSuccess(n.message,"");$("#isSelfDeclared").prop("checked",!0);$("#isSelfDeclared").prop("disabled",!0);$("#btnSubmit").prop("value","Submitted");$("#btnSubmit").addClass("disabled")})}static Instance(){return this.instance===undefined&&(this.instance=new i),this.instance}}t.TcsDeclaration=i})(i=t.Invoices||(t.Invoices={}))})(i=t.Components||(t.Components={}))})(i=t.Transact||(t.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));