1 |
- var Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){class t{loadSettingHtml(){return``}bindControlData(){return``}SaveControlData(){return``}loadControlPropertiesHtml(n){var t=`<section class="">`+`<div class="card PropertySettings">`+`<div class="card-header"><h6><b>Property Settings</b></h6></div>`+`<div class="card-body" id="divPropSetting"><div class="row"><div class="col-sm-6 Controlproperties-Element" data-propertysettingid="0" data-controlpropertyid="0" data-controlpropertyname="ControlType"><label id="lbl_ControlType">Control Type<span class="text-danger" id="spnIsRequired_ControlType"> *</span></label><select class="form-control required" placeholder="form group" id="ControlType"><option selected value="">Select ControlType</option><option value="1">Payments</option><option value="2">Receipts</option><option value="3">Invoices</option></select></div></div></div>`+`</div></section>`;$(n).html(t);$("#divPropSetting").removeClass("hidden")}bindPropertySettings(n){var t=n.PropertySettings,i;t.length>0&&t!=null&&t!=undefined&&(i=0,$(".Controlproperties-Element").each(function(){t[i].ControlPropertyName=="ControlType"&&($(this).attr("data-controlpropertyid",t[i].ControlPropertyId),$(this).attr("data-controlpropertyname",t[i].ControlPropertyName),$(this).attr("data-propertysettingid",t[i].PropertySettingId),$("#ControlType").val(t[i].ControlPropertyValue).trigger("change"));i+=1}))}savePropertySettings(n){var i=n.PropertySettings,t=[];return $(".Controlproperties-Element").each(function(){if($(this).children().closest("select").val().toString()){var i={FormPropertyId:0,ControlPropertyId:Number($(this).attr("data-controlpropertyid")),ControlPropertyValue:$(this).children().closest("select").val().toString(),ControlPropertyName:$(this).attr("data-controlpropertyname"),ControlId:Number(n.ControlVariable.split("|")[0]),PropertySettingId:Number($(this).attr("data-propertysettingid"))};t.push(i)}}),t}static Instance(){return this.instance===undefined&&(this.instance=new t),this.instance}}n.PaymentSummary_Setting=t})(t=n.Controls||(n.Controls={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));
|