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.

rulereconfigure.min.js 9.5KB

12345678910111213
  1. var Unibase;(function(n){let t;(function(t){let i;(function(t){class i extends n.Platform.Core.BaseComponent{jsFiles(){return["platform/tag/managers/tagmanager.js","platform/apps/managers/appmanager.js","apps/transact/managers/interfaces/automation/irulemanager.js","apps/transact/managers/automation/rulemanager.js"]}cssFiles(){return[]}html(){return`<div class="b-b bg-white modal-header"><strong class="text-dark">Re-Configure</strong> </div>
  2. <div class="modal-body" id="CardViewer_modal">
  3. <div class="card">
  4. <div class="card-body" style="">
  5. <div class="row" id="div_Kanban">
  6. <div class="col-sm-2"><button type="button" class="btn btn-success" id="reconfigure">Re-Configure</button></div>
  7. </div>
  8. </div>
  9. </div>
  10. </div>
  11. <div class="bg-white modal-footer">
  12. <a class="btn btn-light btn-sm btn-center mr-auto" id="btnClose">Close</a>
  13. </div>`}load(t,i){$("#btnClose").click(function(){$("#"+i).modal("hide");$("#"+i).remove()});var r=this,u=r.appSettings.InstalledAppId;$("#reconfigure").click(function(){n.Platform.Apps.Managers.AppManager.Instance().getInstallApp(u).then(function(t){t.result.AppTitle=="Credit Limit Rule"?Bizgaze.Apps.Transact.Managers.RuleManager.Instance().refreshCreditRule(0).then(function(){MessageHelper.Instance().showSuccess("We Will Notify Once The Process Is Done","");n.Platform.Helpers.NavigationHelper.Instance().closePopUp()}):t.result.AppTitle=="Order Approval Rules"?Bizgaze.Apps.Transact.Managers.RuleManager.Instance().refreshcreditlimitrules("0","OrderApproval Rule",0).then(function(){MessageHelper.Instance().showSuccess("We Will Notify Once The Process Is Done","");n.Platform.Helpers.NavigationHelper.Instance().closePopUp()}):t.result.AppTitle=="Price Code Rules"?Bizgaze.Apps.Transact.Managers.RuleManager.Instance().refreshPriceCodeRule(0).then(function(){MessageHelper.Instance().showSuccess("We Will Notify Once The Process Is Done","");n.Platform.Helpers.NavigationHelper.Instance().closePopUp()}):Bizgaze.Apps.Transact.Managers.RuleManager.Instance().refreshcreditlimitrules("0","PaymentTerm Rule",0).then(function(){MessageHelper.Instance().showSuccess("We Will Notify Once The Process Is Done","");n.Platform.Helpers.NavigationHelper.Instance().closePopUp()})})})}refreshWidgets(){var u=n.Themes.Providers.DetailHelper.installedAppId,r=n.Platform.Helpers.NavigationHelper.ModalContainerIds,f=r[r.length-1];n.Themes.Compact.Components.Details.Instance().loadWidgets(u,Number($(".nav-link.active").find("#hf_PortletId").val()),"#"+f);var t=n.Themes.Compact.Components.Details.Instance(),e="#"+t._containerId,i=n.Themes.Compact.Components.Details.Instance();i._recordId=n.Themes.Providers.DetailHelper.recordId;i._installedAppId=n.Themes.Providers.DetailHelper.installedAppId;t.loadAppDefaultWidget(i,e,t._containerId,function(){})}updatePriceCodeRuleContact(t,i,r,u,f){let o=this,e="";u==0?e="Do you really want to Delete Contact from this Rule ?":f?(e="Do you really want to Include Contact into this Rule ?",f=!1):(e="Do you really want to Exclude Contact from this Rule ?",f=!0);bootbox.confirm(e,function(e){if(e){let e=n.Themes.Providers.Detail_Settings.Instance().InputParameters.filter(function(t){return t.Key==="hf_"+n.Themes.Providers.DetailHelper.installedAppId+"_pricecoderuleid"})[0].Value,s=n.Themes.Providers.Detail_Settings.Instance().InputParameters.filter(function(t){return t.Key==="hf_"+n.Themes.Providers.DetailHelper.installedAppId+"_pricecodeid"})[0].Value,h={ContactDefaultId:t,PriceCodeRuleId:e,ContactIds:i.toString(),IsPriceCodeAutomated:u,IsPriceCodeExcluded:f,LobId:r,PriceCodeId:s,ContactId:Number(i)};n.Platform.Helpers.FileCacheHelper.Instance().loadJsFiles(["apps/transact/managers/interfaces/automation/irulemanager.js","apps/transact/managers/automation/rulemanager.js"],function(){Bizgaze.Apps.Transact.Managers.RuleManager.Instance().UpdatePriceCodeRuleContact(h).then(function(){o.refreshWidgets()})})}})}updateCreditLimitRuleContact(t,i,r,u,f){let o=this,e="";u==0?e="Do you really want to Delete Contact from this Rule ?":f?(e="Do you really want to Include Contact into this Rule ?",f=!1):(e="Do you really want to Exclude Contact from this Rule ?",f=!0);bootbox.confirm(e,function(e){if(e){var s=n.Themes.Providers.Detail_Settings.Instance().InputParameters.filter(function(t){return t.Key==="hf_"+n.Themes.Providers.DetailHelper.installedAppId+"_creditruleid"})[0].Value;let e={ContactDetailId:t,CreditRuleId:s,ContactIds:i.toString(),CreditLimit:r,IsAutomated:u,IsExcluded:f,ContactId:Number(i)};n.Platform.Helpers.FileCacheHelper.Instance().loadJsFiles(["apps/transact/managers/interfaces/automation/irulemanager.js","apps/transact/managers/automation/rulemanager.js"],function(){Bizgaze.Apps.Transact.Managers.RuleManager.Instance().UpdateCreditLimitRuleContact(e).then(function(){o.refreshWidgets()})})}})}updatePaymentTermRuleContact(t,i,r,u,f){let o=this,e="";u==0?e="Do you really want to Delete Contact from this Rule ?":f?(e="Do you really want to Include Contact into this Rule ?",f=!1):(e="Do you really want to Exclude Contact from this Rule ?",f=!0);bootbox.confirm(e,function(e){if(e){let e=n.Themes.Providers.Detail_Settings.Instance().InputParameters.filter(function(t){return t.Key==="hf_"+n.Themes.Providers.DetailHelper.installedAppId+"_paymenttermruleid"})[0].Value,s=n.Themes.Providers.Detail_Settings.Instance().InputParameters.filter(function(t){return t.Key==="hf_"+n.Themes.Providers.DetailHelper.installedAppId+"_paymenttermid"})[0].Value,h={ContactDefaultId:t,PaymentTermRuleId:e,ContactIds:i.toString(),IsPaymentTermAutomated:u,IsPaymentTermExcluded:f,LobId:r,PaymentTermId:s,ContactId:Number(i)};n.Platform.Helpers.FileCacheHelper.Instance().loadJsFiles(["apps/transact/managers/interfaces/automation/irulemanager.js","apps/transact/managers/automation/rulemanager.js"],function(){Bizgaze.Apps.Transact.Managers.RuleManager.Instance().UpdatePaymentTermRuleContact(h).then(function(){o.refreshWidgets()})})}})}updateOrderApprovalRuleContact(t,i,r,u,f){let o=this,e="";u==0?e="Do you really want to Delete Contact from this Rule ?":f?(e="Do you really want to Include Contact into this Rule ?",f=!1):(e="Do you really want to Exclude Contact from this Rule ?",f=!0);bootbox.confirm(e,function(r){if(r){let r=n.Themes.Providers.Detail_Settings.Instance().InputParameters.filter(function(t){return t.Key==="hf_"+n.Themes.Providers.DetailHelper.installedAppId+"_orderapprovalruleid"})[0].Value,e={ContactDefaultId:t,OrderApprovalRuleId:r,ContactIds:i.toString(),IsOrderApprovalAutomated:u,IsOrderApprovalExcluded:f,LobId:0,OrderApprovalId:0,ContactId:Number(i)};n.Platform.Helpers.FileCacheHelper.Instance().loadJsFiles(["apps/transact/managers/interfaces/automation/irulemanager.js","apps/transact/managers/automation/rulemanager.js"],function(){Bizgaze.Apps.Transact.Managers.RuleManager.Instance().UpdateOrderApprovalRuleContact(e).then(function(){o.refreshWidgets()})})}})}reconfigurePaymentTerm(){$(".li_DetailSetting_"+n.Themes.Providers.DetailHelper.installedAppId+"_Re-Configure").click(function(){n.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/transact/managers/automation/rulemanager.js",function(){let t=n.Themes.Providers.DetailHelper.recordId;MessageHelper.Instance().showSuccess("We Will Notify Once The Process Is Done","");Bizgaze.Apps.Transact.Managers.RuleManager.Instance().refreshPaymentTermRule(t)})})}reconfigureOrderApprovalRule(){$(".li_DetailSetting_"+n.Themes.Providers.DetailHelper.installedAppId+"_Re-Configure").click(function(){n.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/transact/managers/automation/rulemanager.js",function(){let t=n.Themes.Providers.DetailHelper.recordId;MessageHelper.Instance().showSuccess("We Will Notify Once The Process Is Done","");Bizgaze.Apps.Transact.Managers.RuleManager.Instance().refreshOrderApprovalRule(t)})})}reconfigureCreditLimitRule(){$(".li_DetailSetting_"+n.Themes.Providers.DetailHelper.installedAppId+"_Re-Configure").click(function(){n.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/transact/managers/automation/rulemanager.js",function(){let t=n.Themes.Providers.DetailHelper.recordId;MessageHelper.Instance().showSuccess("We Will Notify Once The Process Is Done","");Bizgaze.Apps.Transact.Managers.RuleManager.Instance().refreshCreditRule(t)})})}reconfigurePriceCodeRule(){$(".li_DetailSetting_"+n.Themes.Providers.DetailHelper.installedAppId+"_Re-Configure").click(function(){n.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/transact/managers/automation/rulemanager.js",function(){let t=n.Themes.Providers.DetailHelper.recordId;MessageHelper.Instance().showSuccess("We Will Notify Once The Process Is Done","");Bizgaze.Apps.Transact.Managers.RuleManager.Instance().refreshPriceCodeRule(t)})})}reconfigureSkuRecommendation(){$(".li_DetailSetting_"+n.Themes.Providers.DetailHelper.installedAppId+"_Re-Configure").click(function(){n.Platform.Helpers.FileCacheHelper.Instance().loadJsFile("apps/transact/managers/automation/rulemanager.js",function(){let t=n.Themes.Providers.DetailHelper.recordId;MessageHelper.Instance().showSuccess("We Will Notify Once The Process Is Done","");Bizgaze.Apps.Transact.Managers.RuleManager.Instance().refreshSkuRecommendation(t)})})}static Instance(){return this._instance===undefined&&(this._instance=new i),this._instance}}t.RuleReConfigure=i})(i=t.Automation||(t.Automation={}))})(t=n.Apps||(n.Apps={}))})(Unibase||(Unibase={}));