Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

meetings.min.js 2.6KB

1
  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={}));