This commit is contained in:
2023-03-11 17:30:20 +00:00
commit b6c4e025bc
5124 changed files with 1153349 additions and 0 deletions
+193
View File
@@ -0,0 +1,193 @@
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var Mobil;
(function (Mobil) {
let Apps;
(function (Apps) {
let Communications;
(function (Communications) {
let Components;
(function (Components) {
class MeetingAddressGeoTag 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(id, containerid) {
let html = `<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>`;
$("." + containerid).html(html);
return html;
}
load(id, containerid, callback) {
let instance = this;
instance.contactaddressid = id;
instance.loadAddressDetails(id);
$("#btnSaveCoordinates").click(function () {
instance.saveCoordinates(instance.contactaddressid, $("#hfGpsMap_Latd").val(), $("#hfGpsMap_Lgtd").val());
});
}
render(id) {
this.navigationHelper.popup(id, "", Mobil.Apps.Communications.Components.MeetingAddressGeoTag.Instance(), null, Unibase.Platform.Helpers.Size.DockLeft);
}
loadAddressDetails(contactaddressid) {
let instance = this;
if (contactaddressid == undefined || contactaddressid == 0) {
MessageHelper.Instance().showError("Please Create Address in this Customer", 'div_validationMessage');
}
else {
Number(contactaddressid);
this.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js", function () {
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getAddressById(contactaddressid).then(function (response) {
if (response.result != null) {
var html = '<div class="text-truncate"><h6 class="text-truncate"><strong>' + response.result.AddressName + '</strong></h6>';
html += '<span class="block">' + response.result.Addressline1 + '</span>';
html += '<span class="block">' + response.result.CityName + ", " + response.result.DistrictName + ", " + response.result.StateName + ", " + response.result.CountryName + " - " + response.result.ZipCode + '</span></div>';
$('#divBizgazeCrmAddress').html(html);
}
instance.currentCoordinates(response.result.AddrLatd, response.result.AddrLgtd, 15);
});
});
}
}
loadMap(latd, lgtd, zoomlevel) {
let instance = 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 id = $("#geocomplete");
id.geocomplete({
map: ".map_canvas",
details: "form",
markerOptions: {
draggable: true
}
}).bind("geocode:result", function (event, result) {
$("input[id=hfGpsMap_Latd]").val(result.geometry.location.lat());
$("input[id=hfGpsMap_Lgtd]").val(result.geometry.location.lng());
$("#lblCordinates").html("latd:" + result.geometry.location.lat() + ", lgtd:" + result.geometry.location.lng());
instance.latd = result.geometry.location.lat();
instance.lngd = result.geometry.location.lng();
instance.getselectedcity(zoomlevel);
});
$("._bizgaze_popup_container:visible").find("#map_canvas").html('');
$("._bizgaze_popup_container:visible").find("#geocomplete").html('');
instance.getselectedcity(zoomlevel);
$("#hfGpsMap_Latd").val(latd);
$("#hfGpsMap_Lgtd").val(lgtd);
$("#lblCordinates").html("latd:" + latd + ", lgtd:" + lgtd);
$("#geocomplete").bind("geocode:dragged", function (event, latLng) {
$("input[id=hfGpsMap_Latd]").val(latLng.lat());
$("input[id=hfGpsMap_Lgtd]").val(latLng.lng());
$("#lblCordinates").html("latd:" + latLng.lat() + ", lgtd:" + latLng.lng());
});
}
currentCoordinates(lat, lng, zoomlevel) {
return __awaiter(this, void 0, void 0, function* () {
let instance = this;
if (lat == 0 || lat == null) {
yield navigator.geolocation.getCurrentPosition(function (position) {
instance.latd = position.coords.latitude;
instance.lngd = position.coords.longitude;
instance.loadMap(instance.latd, instance.lngd, zoomlevel);
});
}
});
}
getselectedcity(zoomlevel) {
let instance = this;
$("._bizgaze_popup_container:visible").find($("#map_canvas").html(''));
$("._bizgaze_popup_container:visible").find($("#geocomplete").html(''));
var myLatlng = new google.maps.LatLng(instance.latd, instance.lngd);
var mapOptions = {
zoom: zoomlevel,
center: myLatlng,
};
var map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
var marker = new google.maps.Marker({
position: myLatlng,
map: map,
title: "Hello World!",
});
marker.setMap(map);
var url = "https://maps.googleapis.com/maps/api/geocode/json?latlng=" + instance.latd + "," + instance.lngd + "&key=" + _mapsettings.key() + "&sensor=false";
var xhr = instance.createCORSRequest1('Get', url);
if (!xhr) {
bootbox.alert('CORS not supported');
return;
}
xhr.onload = function () {
var text = xhr.responseText;
var json = JSON.parse(text);
$("._bizgaze_popup_container:visible").find("#geocomplete").val(json.results[0].formatted_address);
};
xhr.onerror = function () {
bootbox.alert('Woops, there was an error making the request.');
};
xhr.send();
}
createCORSRequest1(method, url) {
let XDomainRequest;
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr) {
xhr.open(method, url, true);
}
else if (typeof XDomainRequest != "undefined") {
xhr = new XDomainRequest();
xhr.open(method, url);
}
else {
xhr = null;
}
return xhr;
}
saveCoordinates(contactAddressId, latitude, longitude) {
let instance = this;
var postdata = {
ContactAddressId: Number(contactAddressId),
Latd: Number(latitude),
Lgtd: Number(longitude)
};
instance.fileCacheHelper.loadJsFile('apps/crm/contacts/managers/contactmanager.js', function () {
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().saveAddressCoordinates(postdata).then(function (response) {
MessageHelper.Instance().showSuccess(response.message, '');
$('.btnSection_Geotag').addClass('hidden');
$("#txtMeeting_ContactAddressLocation").val("Geo Tagged");
instance.navigationHelper.closePopUp();
}, null);
});
}
static Instance() {
if (this.instance === undefined)
this.instance = new MeetingAddressGeoTag();
return this.instance;
}
}
Components.MeetingAddressGeoTag = MeetingAddressGeoTag;
})(Components = Communications.Components || (Communications.Components = {}));
})(Communications = Apps.Communications || (Apps.Communications = {}));
})(Apps = Mobil.Apps || (Mobil.Apps = {}));
})(Mobil || (Mobil = {}));
File diff suppressed because one or more lines are too long
+12
View File
@@ -0,0 +1,12 @@
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||(t.Communications={}))})(t=n.Apps||(n.Apps={}))})(Mobil||(Mobil={}));
+92
View File
@@ -0,0 +1,92 @@
var Mobil;
(function (Mobil) {
let Apps;
(function (Apps) {
let Communications;
(function (Communications) {
let Controls;
(function (Controls) {
class MeetingGeoTag extends Unibase.Platform.Core.BaseComponent {
constructor() {
super(...arguments);
this.meeting_contactaddressid = 0;
}
init(formpropertyid, prop, callback) {
debugger;
$('.txtAutoComplete_contactid').change(function () {
let spocid = Number($('.txtAutoComplete_contactid').val());
Mobil.Apps.Communications.Controls.MeetingGeoTag.Instance().getOrganizationDetails(spocid);
});
var instance = this;
$('.btnSection_Geotag').click(function () {
instance.fileCacheHelper.loadJsFile("apps/mobil/meetingaddressgeotag.js", function () {
Mobil.Apps.Communications.Components.MeetingAddressGeoTag.Instance().render(instance.meeting_contactaddressid);
});
});
}
loadControl(containerid, prop) {
var html = `<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>`;
$("#" + containerid).html(html);
}
loadControlSettings(controlsettingjson, formpropertyid) {
return null;
}
loadPropertySettings(propertysettings, formpropertyid, DocPropertyName) {
return null;
}
bindEditFormDetails(formpropertyid, propval, DocPropertyName) {
return null;
}
getOrganizationDetails(spocid) {
var instance = this;
this.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js", function () {
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getOrganizationDetailsByspocid(spocid).then(function (response) {
if (response.result != null) {
$(".labelSection_StageName").removeClass("hidden");
$(".labelSection_StageName").text(response.result.StageName);
$(".labelSection_StageName").addClass("bg-green text-white px-2 py-1");
$(".labelSection_StageName").parent().addClass("d-flex align-items-center");
instance.getOrgAddressDetails(response.result.DefaultAddressId);
}
});
});
}
getOrgAddressDetails(addressid) {
var instance = this;
this.fileCacheHelper.loadJsFile("apps/crm/contacts/managers/contactmanager.js", function () {
Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getAddressById(addressid).then(function (response) {
if (response.result != "") {
if ((response.result.AddrLatd == null || response.result.AddrLatd == "") && (response.result.AddrLgtd == null || response.result.AddrLgtd == "")) {
$('.btnSection_Geotag').removeClass('hidden');
$("#txtMeeting_ContactAddressLocation").val('Geo Tag UnAvailable');
}
else {
$("#txtMeeting_ContactAddressLocation").val("Geo Tagged");
$('.btnSection_Geotag').addClass('hidden');
}
instance.meeting_contactaddressid = response.result.ContactAddressId;
}
else {
$('.btnSection_Geotag').removeClass('hidden');
$("#txtMeeting_ContactAddressLocation").val('Geo Tag UnAvailable');
instance.meeting_contactaddressid = 0;
}
});
});
}
static Instance() {
if (this.instance === undefined)
this.instance = new MeetingGeoTag();
return this.instance;
}
}
Controls.MeetingGeoTag = MeetingGeoTag;
})(Controls = Communications.Controls || (Communications.Controls = {}));
})(Communications = Apps.Communications || (Apps.Communications = {}));
})(Apps = Mobil.Apps || (Mobil.Apps = {}));
})(Mobil || (Mobil = {}));
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"meetinggeotag.js","sourceRoot":"","sources":["meetinggeotag.ts"],"names":[],"mappings":"AAAA,IAAU,KAAK,CA+Fd;AA/FD,WAAU,KAAK;IACX,IAAiB,IAAI,CA6FpB;IA7FD,WAAiB,IAAI;QACjB,IAAiB,cAAc,CA2F9B;QA3FD,WAAiB,cAAc;YAC3B,IAAiB,QAAQ,CAyFxB;YAzFD,WAAiB,QAAQ;gBACrB,MAAa,aAAc,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa;oBAAtE;;wBACI,6BAAwB,GAAQ,CAAC,CAAC;oBAsFtC,CAAC;oBArFG,IAAI,CAAC,cAAsB,EAAE,IAAgB,EAAE,QAAkB;wBAC7D,QAAQ,CAAA;wBACR,CAAC,CAAC,4BAA4B,CAAC,CAAC,MAAM,CAAC;4BACnC,IAAI,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;4BAC3D,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;wBAC/F,CAAC,CAAC,CAAC;wBACH,IAAI,QAAQ,GAAG,IAAI,CAAC;wBACpB,CAAC,CAAC,oBAAoB,CAAC,CAAC,KAAK,CAAC;4BAC1B,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,oCAAoC,EAAE;gCACtE,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,oBAAoB,CAAC,QAAQ,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;4BACnH,CAAC,CAAC,CAAC;wBACP,CAAC,CAAC,CAAC;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C;wBACP,CAAC,CAAC,CAAC;oBACP,CAAC;oBAED,MAAM,CAAC,QAAQ;wBACX,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
@@ -0,0 +1,6 @@
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={}));
@@ -0,0 +1,40 @@
var Mobil;
(function (Mobil) {
let Apps;
(function (Apps) {
let Communications;
(function (Communications) {
let Controls;
(function (Controls) {
class MeetingGeoTag_Settings {
loadControlPropertiesHtml(controlpropList, container) {
return ``;
}
bindPropertySettings(prop) {
var propertySettings = prop.PropertySettings;
return "";
}
savePropertySettings(prop) {
var propertySettings = prop.PropertySettings;
return "";
}
loadSettingHtml() {
return null;
}
bindControlData(controldatajson) {
return null;
}
SaveControlData(controldatajson) {
return controldatajson;
}
static Instance() {
if (this._instance === undefined)
this._instance = new MeetingGeoTag_Settings();
return this._instance;
}
}
Controls.MeetingGeoTag_Settings = MeetingGeoTag_Settings;
})(Controls = Communications.Controls || (Communications.Controls = {}));
})(Communications = Apps.Communications || (Apps.Communications = {}));
})(Apps = Mobil.Apps || (Mobil.Apps = {}));
})(Mobil || (Mobil = {}));
+1
View File
@@ -0,0 +1 @@
{"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
@@ -0,0 +1 @@
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={}));
+119
View File
@@ -0,0 +1,119 @@
var Mobil;
(function (Mobil) {
let Apps;
(function (Apps) {
let Communications;
(function (Communications) {
let Components;
(function (Components) {
class Meetings extends Unibase.Platform.Core.BaseComponent {
cssFiles() {
return [''];
}
jsFiles() {
return ['apps/mobil/meetings.js'];
}
html(id, containerid) {
let html = ``;
return html;
}
load(id, containerid, callback) {
function format_two_digits(n) {
return n < 10 ? '0' + n : n;
}
var cdate = new Date();
if (Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.length == 0) {
$("#time_starttime").val(format_two_digits(cdate.getHours()) + ':' + format_two_digits(cdate.getMinutes()));
$("#time_endtime").val(format_two_digits(cdate.getHours() + 1) + ':' + format_two_digits(cdate.getMinutes()));
}
var mindate = cdate.setDate(cdate.getDate() + (-15));
var startmindate = new Date(mindate);
$('.date_startdate.datepicker-input').daterangepicker({
singleDatePicker: true,
showDropdowns: true,
minYear: 1901,
locale: {
format: 'DD/MM/YYYY',
},
minDate: startmindate,
});
$('.date_enddate.datepicker-input').daterangepicker({
singleDatePicker: true,
showDropdowns: true,
minYear: 1901,
locale: {
format: 'DD/MM/YYYY',
},
minDate: startmindate
}, function (start, end, label) {
$(".hfdate_enddate").val(end.format('YYYY/MM/DD'));
});
$('.date_startdate.datepicker-input').change(function () {
var mindate = $('.date_startdate').val();
$('.date_enddate').val(mindate);
$('.date_enddate.datepicker-input').daterangepicker({
singleDatePicker: true,
showDropdowns: true,
minYear: 1901,
locale: {
format: 'DD/MM/YYYY',
},
minDate: mindate.toString()
}, function (start, end, label) {
$(".hfdate_enddate").val(end.format('YYYY/MM/DD'));
});
$(".hfdate_startdate").val(moment(mindate, 'DD/MM/YYYY').format('YYYY/MM/DD'));
$(".hfdate_enddate").val(moment(mindate, 'DD/MM/YYYY').format('YYYY/MM/DD'));
});
if (Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.length > 0) {
var lockdate = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_lockdate").Value;
var date = Number(lockdate.substring(0, 2));
var month = Number(lockdate.substring(3, 5));
var year = Number(lockdate.substring(6, 10));
var dateToCompare = new Date(year, month - 1, date);
var crDate = new Date();
if (crDate > dateToCompare) {
$(".date_startdate.datepicker-input").prop('disabled', true);
$(".date_enddate.datepicker-input").prop('disabled', true);
$("#time_starttime").prop("disabled", true);
$("#time_endtime").prop("disabled", true);
}
}
}
loadmeeting() {
let customername = $(".txtAutoComplete_contactid option:selected").text();
var crDate = moment(new Date($.now())).format("DD/MM/YYYY");
let typeofmeeting = $(".txtAutoComplete_meetingtype option:selected").text();
let nameofmeeting = "";
if (typeofmeeting == "") {
typeofmeeting = "";
}
nameofmeeting = customername + '-' + typeofmeeting + '-' + crDate;
$(".txt_meetingsubject").val(nameofmeeting);
$(".div_meetingsubject").addClass("floating-label-form-group-with-value");
}
loadtypemeeting() {
let customername = $(".txtAutoComplete_contactid option:selected").text();
var crDate = moment(new Date($.now())).format("DD/MM/YYYY");
let typeofmeeting = "";
let nameofmeeting = "";
typeofmeeting = $(".txtAutoComplete_meetingtype option:selected").text();
if (customername == "") {
customername = "Select Customer";
}
nameofmeeting = customername + '-' + typeofmeeting + '-' + crDate;
$(".txt_meetingsubject").val(nameofmeeting);
$(".div_meetingsubject").addClass("floating-label-form-group-with-value");
}
static Instance() {
if (this.instance == undefined) {
this.instance = new Meetings();
}
return this.instance;
}
}
Components.Meetings = Meetings;
})(Components = Communications.Components || (Communications.Components = {}));
})(Communications = Apps.Communications || (Apps.Communications = {}));
})(Apps = Mobil.Apps || (Mobil.Apps = {}));
})(Mobil || (Mobil = {}));
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"meetings.js","sourceRoot":"","sources":["meetings.ts"],"names":[],"mappings":"AAAA,IAAU,KAAK,CAwHd;AAxHD,WAAU,KAAK;IACX,IAAiB,IAAI,CAsHpB;IAtHD,WAAiB,IAAI;QACjB,IAAiB,cAAc,CAoH9B;QApHD,WAAiB,cAAc;YAC3B,IAAiB,UAAU,CAkH1B;YAlHD,WAAiB,UAAU;gBACvB,MAAa,QAAS,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa;oBAC7D,QAAQ;wBACJ,OAAO,CAAC,EAAE,CAAC,CAAC;oBAChB,CAAC;oBACD,OAAO;wBACH,OAAO,CAAC,wBAAwB,CAAC,CAAC;oBACtC,CAAC;oBACD,IAAI,CAAC,EAAO,EAAE,WAAmB;wBAC7B,IAAI,IAAI,GAAG,EAAE,CAAC;wBACd,OAAO,IAAI,CAAC;oBAChB,CAAC;oBACD,IAAI,CAAC,EAAO,EAAE,WAAmB,EAAE,QAAkB;wBAEjD,SAAS,iBAAiB,CAAC,CAAC;4BACxB,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;wBAChC,CAAC;wBACD,IAAI,KAAK,GAAG,IAAI,IAAI,EAAE,CAAC;wBACvB,IAAI,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,eAAe,CAAC,MAAM,IAAI,CAAC,E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MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;wBAC5D,IAAI,aAAa,GAAG,EAAE,CAAC;wBACvB,IAAI,aAAa,GAAG,EAAE,CAAC;wBACvB,aAAa,GAAG,CAAC,CAAC,8CAA8C,CAAC,CAAC,IAAI,EAAE,CAAC;wBACzE,IAAI,YAAY,IAAI,EAAE,EAAE;4BACpB,YAAY,GAAG,iBAAiB,CAAC;yBACpC;wBACD,aAAa,GAAG,YAAY,GAAG,GAAG,GAAG,aAAa,GAAG,GAAG,GAAG,MAAM,CAAC;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
@@ -0,0 +1 @@
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={}));