This commit is contained in:
2023-03-20 16:20:33 +00:00
parent 514c3ac3f6
commit 8c7d6421f5
2288 changed files with 712 additions and 73769 deletions
File diff suppressed because one or more lines are too long
-12
View File
@@ -1,12 +0,0 @@
var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Mobil;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{constructor(){super(...arguments);this.latd=0;this.lngd=0;this.contactaddressid=0}cssFiles(){return[]}jsFiles(){return["apps/crm/contacts/managers/contactmanager.js"]}html(n,t){let i=`<form id="CustomerAddress" method="post" data-validate="parsley">
<div class="modal-header bg-white">
<h5><strong class="text-dark Title sp_title">Customer Location</strong></h5>
</div>
<div id="div_validationMessage" class="clear"></div>
<div data-simplebar class="control-sorting simple-scroll-bar modal-body pa-0 customer-location-body">
<div id="divBizgazeCrmAddress" class="h-40p ma-10"></div></div>
<div class="bg-white modal-footer" style="position:absolute; bottom:0px;width:100%;">
<a id="btn_CloseCustomerAddress" class="btn btn-light btn-sm mr-auto btn-close"> Close</a>
<a class='btn btn-primary btn-sm input-group-addon' id='btnSaveCoordinates'>Save</a>
</div>
</form>`;return $("."+t).html(i),i}load(n){let t=this;t.contactaddressid=n;t.loadAddressDetails(n);$("#btnSaveCoordinates").click(function(){t.saveCoordinates(t.contactaddressid,$("#hfGpsMap_Latd").val(),$("#hfGpsMap_Lgtd").val())})}render(t){this.navigationHelper.popup(t,"",n.Apps.Communications.Components.MeetingAddressGeoTag.Instance(),null,Unibase.Platform.Helpers.Size.DockLeft)}loadAddressDetails(n){let t=this;n==undefined||n==0?MessageHelper.Instance().showError("Please Create Address in this Customer","div_validationMessage"):(Number(n),this.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js",function(){Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getAddressById(n).then(function(n){if(n.result!=null){var i='<div class="text-truncate"><h6 class="text-truncate"><strong>'+n.result.AddressName+"<\/strong><\/h6>";i+='<span class="block">'+n.result.Addressline1+"<\/span>";i+='<span class="block">'+n.result.CityName+", "+n.result.DistrictName+", "+n.result.StateName+", "+n.result.CountryName+" - "+n.result.ZipCode+"<\/span><\/div>";$("#divBizgazeCrmAddress").html(i)}t.currentCoordinates(n.result.AddrLatd,n.result.AddrLgtd,15)})}))}loadMap(n,t,i){let r=this;$("#divBizgazeCrmAddress").after("<form><style type='text/css'>.pac-container{z-index:1100 !important;}<\/style><div id='Customer_Mapaddress' class='floating-label-form-group h-40p' style='border-top:1px solid #ccc;border-right: 1px solid #ccc;'><div class='input-group'><input type='text' id='geocomplete' class='form-control value-control floating-label-control' data-isdefault='true' data-placeholder='Select Address' data-label='Address'><input type='hidden' id='hfaddressid' value='0'/><input type='hidden' id='hfGpsMap_Latd' /><input type = 'hidden' id = 'hfGpsMap_Lgtd' /><span id='lblCordinates' class='block'><\/span><\/div><\/div><\/form><div class='map_canvas' id='map_canvas' style='height:calc(100% - 100px)'><\/div>");var u=$("#geocomplete");u.geocomplete({map:".map_canvas",details:"form",markerOptions:{draggable:!0}}).bind("geocode:result",function(n,t){$("input[id=hfGpsMap_Latd]").val(t.geometry.location.lat());$("input[id=hfGpsMap_Lgtd]").val(t.geometry.location.lng());$("#lblCordinates").html("latd:"+t.geometry.location.lat()+", lgtd:"+t.geometry.location.lng());r.latd=t.geometry.location.lat();r.lngd=t.geometry.location.lng();r.getselectedcity(i)});$("._bizgaze_popup_container:visible").find("#map_canvas").html("");$("._bizgaze_popup_container:visible").find("#geocomplete").html("");r.getselectedcity(i);$("#hfGpsMap_Latd").val(n);$("#hfGpsMap_Lgtd").val(t);$("#lblCordinates").html("latd:"+n+", lgtd:"+t);$("#geocomplete").bind("geocode:dragged",function(n,t){$("input[id=hfGpsMap_Latd]").val(t.lat());$("input[id=hfGpsMap_Lgtd]").val(t.lng());$("#lblCordinates").html("latd:"+t.lat()+", lgtd:"+t.lng())})}currentCoordinates(n,t,i){return __awaiter(this,void 0,void 0,function*(){let t=this;(n==0||n==null)&&yield navigator.geolocation.getCurrentPosition(function(n){t.latd=n.coords.latitude;t.lngd=n.coords.longitude;t.loadMap(t.latd,t.lngd,i)})})}getselectedcity(n){var f,t;let i=this;$("._bizgaze_popup_container:visible").find($("#map_canvas").html(""));$("._bizgaze_popup_container:visible").find($("#geocomplete").html(""));var r=new google.maps.LatLng(i.latd,i.lngd),e={zoom:n,center:r},u=new google.maps.Map(document.getElementById("map_canvas"),e),o=new google.maps.Marker({position:r,map:u,title:"Hello World!"});if(o.setMap(u),f="https://maps.googleapis.com/maps/api/geocode/json?latlng="+i.latd+","+i.lngd+"&key="+_mapsettings.key()+"&sensor=false",t=i.createCORSRequest1("Get",f),!t){bootbox.alert("CORS not supported");return}t.onload=function(){var n=t.responseText,i=JSON.parse(n);$("._bizgaze_popup_container:visible").find("#geocomplete").val(i.results[0].formatted_address)};t.onerror=function(){bootbox.alert("Woops, there was an error making the request.")};t.send()}createCORSRequest1(n,t){let r;var i=new XMLHttpRequest;return"withCredentials"in i?i.open(n,t,!0):typeof r!="undefined"?(i=new r,i.open(n,t)):i=null,i}saveCoordinates(n,t,i){let r=this;var u={ContactAddressId:Number(n),Latd:Number(t),Lgtd:Number(i)};r.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js",function(){Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().saveAddressCoordinates(u).then(function(n){MessageHelper.Instance().showSuccess(n.message,"");$(".btnSection_Geotag").addClass("hidden");$("#txtMeeting_ContactAddressLocation").val("Geo Tagged");r.navigationHelper.closePopUp()},null)})}static Instance(){return this.instance===undefined&&(this.instance=new i),this.instance}}t.MeetingAddressGeoTag=i})(i=t.Components||(t.Components={}))})(i=t.Communications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BACX,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS;4BAC3B,IAAI,CAAC,QAAQ,GAAG,IAAI,aAAa,EAAE,CAAC;wBACxC,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBAGJ;gBAvFY,sBAAa,gBAuFzB,CAAA;YACL,CAAC,EAzFgB,QAAQ,GAAR,uBAAQ,KAAR,uBAAQ,QAyFxB;QACL,CAAC,EA3FgB,cAAc,GAAd,mBAAc,KAAd,mBAAc,QA2F9B;IACL,CAAC,EA7FgB,IAAI,GAAJ,UAAI,KAAJ,UAAI,QA6FpB;AACL,CAAC,EA/FS,KAAK,KAAL,KAAK,QA+Fd"}
-6
View File
@@ -1,6 +0,0 @@
var Mobil;(function(n){let t;(function(t){let i;(function(t){let i;(function(t){class i extends Unibase.Platform.Core.BaseComponent{constructor(){super(...arguments);this.meeting_contactaddressid=0}init(){$(".txtAutoComplete_contactid").change(function(){let t=Number($(".txtAutoComplete_contactid").val());n.Apps.Communications.Controls.MeetingGeoTag.Instance().getOrganizationDetails(t)});var t=this;$(".btnSection_Geotag").click(function(){t.fileCacheHelper.loadJsFile("apps/mobil/meetingaddressgeotag.js",function(){n.Apps.Communications.Components.MeetingAddressGeoTag.Instance().render(t.meeting_contactaddressid)})})}loadControl(n){var t=`<div class="div_CustomerLocation h-100 d-flex align-items-center">
<div class= "input-group d-flex align-items-center">
<span class= "input-group-addon default no-border AddressGeoTag mr-1" id = "spnAddressGeoTag">
<i class="fa fa-map-marker"> </i></span>
<input placeholder="Customer Location" class="form-control" readonly = "readonly" value = "" id = "txtMeeting_ContactAddressLocation" type = "text"></div>
</div>`;$("#"+n).html(t)}loadControlSettings(){return null}loadPropertySettings(){return null}bindEditFormDetails(){return null}getOrganizationDetails(n){var t=this;this.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js",function(){Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getOrganizationDetailsByspocid(n).then(function(n){n.result!=null&&($(".labelSection_StageName").removeClass("hidden"),$(".labelSection_StageName").text(n.result.StageName),$(".labelSection_StageName").addClass("bg-green text-white px-2 py-1"),$(".labelSection_StageName").parent().addClass("d-flex align-items-center"),t.getOrgAddressDetails(n.result.DefaultAddressId))})})}getOrgAddressDetails(n){var t=this;this.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js",function(){Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getAddressById(n).then(function(n){n.result!=""?((n.result.AddrLatd==null||n.result.AddrLatd=="")&&(n.result.AddrLgtd==null||n.result.AddrLgtd=="")?($(".btnSection_Geotag").removeClass("hidden"),$("#txtMeeting_ContactAddressLocation").val("Geo Tag UnAvailable")):($("#txtMeeting_ContactAddressLocation").val("Geo Tagged"),$(".btnSection_Geotag").addClass("hidden")),t.meeting_contactaddressid=n.result.ContactAddressId):($(".btnSection_Geotag").removeClass("hidden"),$("#txtMeeting_ContactAddressLocation").val("Geo Tag UnAvailable"),t.meeting_contactaddressid=0)})})}static Instance(){return this.instance===undefined&&(this.instance=new i),this.instance}}t.MeetingGeoTag=i})(i=t.Controls||(t.Controls={}))})(i=t.Communications||(t.Communications={}))})(t=n.Apps||(n.Apps={}))})(Mobil||(Mobil={}));
@@ -1 +0,0 @@
{"version":3,"file":"meetinggeotag.setting.js","sourceRoot":"","sources":["meetinggeotag.setting.ts"],"names":[],"mappings":"AACA,IAAU,KAAK,CAoCd;AApCD,WAAU,KAAK;IACX,IAAiB,IAAI,CAkCpB;IAlCD,WAAiB,IAAI;QACjB,IAAiB,cAAc,CAgC9B;QAhCD,WAAiB,cAAc;YAC3B,IAAiB,QAAQ,CA8BxB;YA9BD,WAAiB,QAAQ;gBACrB,MAAa,sBAAsB;oBAC/B,yBAAyB,CAAC,eAAsC,EAAE,SAAS;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,oBAAoB,CAAC,IAAgB;wBACjC,IAAI,gBAAgB,GAA6B,IAAI,CAAC,gBAAgB,CAAC;wBACvE,OAAO,EAAE,CAAC;oBACd,CAAC;oBACD,eAAe;wBACX,OAAO,IAAI,CAAC;oBAChB,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,IAAI,CAAC;oBAChB,CAAC;oBACD,eAAe,CAAC,eAAoB;wBAChC,OAAO,eAAe,CAAC;oBAC3B,CAAC;oBAGD,MAAM,CAAC,QAAQ;wBACX,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS;4BAC5B,IAAI,CAAC,SAAS,GAAG,IAAI,sBAAsB,EAAE,CAAC;wBAClD,OAAO,IAAI,CAAC,SAAS,CAAC;oBAC1B,CAAC;iBACJ;gBA5BY,+BAAsB,yBA4BlC,CAAA;YACL,CAAC,EA9BgB,QAAQ,GAAR,uBAAQ,KAAR,uBAAQ,QA8BxB;QACL,CAAC,EAhCgB,cAAc,GAAd,mBAAc,KAAd,mBAAc,QAgC9B;IACL,CAAC,EAlCgB,IAAI,GAAJ,UAAI,KAAJ,UAAI,QAkCpB;AACL,CAAC,EApCS,KAAK,KAAL,KAAK,QAoCd"}
-1
View File
@@ -1 +0,0 @@
var Mobil;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t{loadControlPropertiesHtml(){return``}bindPropertySettings(n){var t=n.PropertySettings;return""}savePropertySettings(n){var t=n.PropertySettings;return""}loadSettingHtml(){return null}bindControlData(){return null}SaveControlData(n){return n}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.MeetingGeoTag_Settings=t})(t=n.Controls||(n.Controls={}))})(t=n.Communications||(n.Communications={}))})(t=n.Apps||(n.Apps={}))})(Mobil||(Mobil={}));
-1
View File
@@ -1 +0,0 @@
{"version":3,"file":"meetings.js","sourceRoot":"","sources":["meetings.ts"],"names":[],"mappings":"AAAA,IAAU,KAAK,CAwHd;A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C;wBAClE,CAAC,CAAC,qBAAqB,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;wBAC5C,CAAC,CAAC,qBAAqB,CAAC,CAAC,QAAQ,CAAC,sCAAsC,CAAC,CAAC;oBAC9E,CAAC;oBAED,MAAM,CAAC,QAAQ;wBAEX,IAAI,IAAI,CAAC,QAAQ,IAAI,SAAS,EAAE;4BAC5B,IAAI,CAAC,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;yBAClC;wBACD,OAAO,IAAI,CAAC,QAAQ,CAAC;oBACzB,CAAC;iBACJ;gBAhHY,mBAAQ,WAgHpB,CAAA;YACL,CAAC,EAlHgB,UAAU,GAAV,yBAAU,KAAV,yBAAU,QAkH1B;QACL,CAAC,EApHgB,cAAc,GAAd,mBAAc,KAAd,mBAAc,QAoH9B;IACL,CAAC,EAtHgB,IAAI,GAAJ,UAAI,KAAJ,UAAI,QAsHpB;AACL,CAAC,EAxHS,KAAK,KAAL,KAAK,QAwHd"}
-1
View File
@@ -1 +0,0 @@
var Mobil;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t extends Unibase.Platform.Core.BaseComponent{cssFiles(){return[""]}jsFiles(){return["apps/mobil/meetings.js"]}html(){return``}load(){function t(n){return n<10?"0"+n:n}var n=new Date,u,i;if(Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.length==0&&($("#time_starttime").val(t(n.getHours())+":"+t(n.getMinutes())),$("#time_endtime").val(t(n.getHours()+1)+":"+t(n.getMinutes()))),u=n.setDate(n.getDate()+-15),i=new Date(u),$(".date_startdate.datepicker-input").daterangepicker({singleDatePicker:!0,showDropdowns:!0,minYear:1901,locale:{format:"DD/MM/YYYY"},minDate:i}),$(".date_enddate.datepicker-input").daterangepicker({singleDatePicker:!0,showDropdowns:!0,minYear:1901,locale:{format:"DD/MM/YYYY"},minDate:i}),$(".date_startdate.datepicker-input").change(function(){var n=$(".date_startdate").val();$(".date_enddate").val(n);$(".date_enddate.datepicker-input").daterangepicker({singleDatePicker:!0,showDropdowns:!0,minYear:1901,locale:{format:"DD/MM/YYYY"},minDate:n.toString()});$(".hfdate_startdate").val(moment(n,"DD/MM/YYYY").format("YYYY/MM/DD"));$(".hfdate_enddate").val(moment(n,"DD/MM/YYYY").format("YYYY/MM/DD"))}),Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.length>0){var r=Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(n=>n.Key=="hf_"+Unibase.Themes.Providers.DetailHelper.installedAppId+"_lockdate").Value,f=Number(r.substring(0,2)),e=Number(r.substring(3,5)),o=Number(r.substring(6,10)),s=new Date(o,e-1,f),h=new Date;h>s&&($(".date_startdate.datepicker-input").prop("disabled",!0),$(".date_enddate.datepicker-input").prop("disabled",!0),$("#time_starttime").prop("disabled",!0),$("#time_endtime").prop("disabled",!0))}}loadmeeting(){let i=$(".txtAutoComplete_contactid option:selected").text();var r=moment(new Date($.now())).format("DD/MM/YYYY");let n=$(".txtAutoComplete_meetingtype option:selected").text(),t="";n==""&&(n="");t=i+"-"+n+"-"+r;$(".txt_meetingsubject").val(t);$(".div_meetingsubject").addClass("floating-label-form-group-with-value")}loadtypemeeting(){let n=$(".txtAutoComplete_contactid option:selected").text();var r=moment(new Date($.now())).format("DD/MM/YYYY");let t="",i="";t=$(".txtAutoComplete_meetingtype option:selected").text();n==""&&(n="Select Customer");i=n+"-"+t+"-"+r;$(".txt_meetingsubject").val(i);$(".div_meetingsubject").addClass("floating-label-form-group-with-value")}static Instance(){return this.instance==undefined&&(this.instance=new t),this.instance}}n.Meetings=t})(t=n.Components||(n.Components={}))})(t=n.Communications||(n.Communications={}))})(t=n.Apps||(n.Apps={}))})(Mobil||(Mobil={}));