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.

allocateduser.component.min.js 3.5KB

1
  1. var Bizgaze;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{jsFiles(){return["libs/parsley/parsley.min.js","apps/support/managers/supportmanager.js","apps/support/managers/supportmanager.js","tenants/themes/compact/components/details/details.js"]}cssFiles(){return[]}html(){return'<form id="frm_BizgazeSupport_AllocatedTo" method="post" data-validate="parsley" class="w-f bg-white"><div class="bg-white b-b modal-header pa-10"><strong id="">Allocated To<\/strong><\/div><div style="height: 627px; overflow: hidden auto;" class="simple-scroll-bar modal-body bg-cyan-light-5"><div id = "bizgaze_ValidationSummary" class="clear" > <\/div><div class="card"><div class="card-body"><div class="floating-label-form-group-with-value" id="div_AllocatedTo"><label for="lbl_AllocatedId">Allocated To <span class="text-danger"> *<\/span><\/label ><select style="width:100%" id = "txt_AllocatedName" class="form-control value-control floating-label-control required" data-isdynamic="false" /><input type="hidden" id = "hf_AllocatedId"/><label for= "Validation" id = "lblValidation_AllocatedTo"><\/label><input type="hidden" id="hfFormPropertyId"/><\/div><\/div><\/div><\/div><div class="b-t bg-white modal-footer pa-10"><a href="javascript:;" id="btn_CloseAllocate" class="btn btn-light btn-sm mr-auto">Close<\/a><a href= "javascript:;" id = "btn_SaveAllocate" class="btn_SaveAllocate btn btn-primary btn-sm">Save<\/a><\/div><\/form>'}load(){var n=this;n.loadUsers()}loadUsers(){var t=Unibase.Themes.Providers.DetailHelper.installedAppId,r,i;let f=Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+t+"_ticketgroupid").Value;r=_appsettings.server_url()+"/apis/v4/bizgaze/support/tickets/getroleticketgroups/ticketgroupid/"+f;AutoCompleteHelper.getHelper().Create("#txt_AllocatedName","#hf_AllocatedId",r,function(){});$("#btn_CloseAllocate").click(function(){Unibase.Platform.Helpers.NavigationHelper.Instance().closePopUp()});$("#btn_SaveAllocate").click(function(){$("#txt_AllocatedName").val()!=null?n.Apps.Support.Components.AllocatedTo.Instance().save():($("#div_AllocatedTo").addClass("form-group-required"),MessageHelper.Instance().showError("Please Select Contact","bizgaze_ValidationSummary"))});let u=Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+t+"_allocatedto").Value,e=Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+t+"_allocatedtoname").Value;i=new Option(e,u,!0);i.value!="0"&&($("#txt_AllocatedName").append(i),$("#hf_AllocatedId").val(u))}save(){var t=Unibase.Themes.Providers.DetailHelper.installedAppId;n.Apps.Support.Managers.SupportManager.Instance().UpdateAllocate(Number(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+t+"_ticketid").Value),$("#hf_AllocatedId").val()).then(function(){var n,t;Unibase.Platform.Helpers.NavigationHelper.Instance().closePopUp();n=Unibase.Themes.Compact.Components.Details.Instance();n._recordId=Unibase.Themes.Providers.DetailHelper.recordId;n._installedAppId=Unibase.Themes.Providers.DetailHelper.installedAppId;n._containerId=$("._bizgaze_detail_container:visible").attr("id");t=n;n.loadPortlets(t);MessageHelper.Instance().showSuccess("User Allocated Successfully","")})}static Instance(){return this.instance===undefined&&(this.instance=new n.Apps.Support.Components.AllocatedTo),this.instance}}t.AllocatedTo=i})(i=t.Components||(t.Components={}))})(i=t.Support||(t.Support={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));