1 |
- var Unibase;(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="IsMultiple"><label for="IsMultiple" style="margin-top:19px"><b>IsMultiple</b></label><label id="lblIsMultiple" class="switch m-t form-inline pull-right mt-10" style="color:grey"><input id="IsMultiple" data-group="IsRequired" type="checkbox"><span></span></label></div><div class="col-sm-6 Controlproperties-Element" data-propertysettingid="0" data-controlpropertyid="0" data-controlpropertyname="IsFileControl"><label for="IsFileControl" style="margin-top:19px"><b>IsFileControl</b></label><label id="lblIsFileControl" class="switch m-t form-inline pull-right mt-10" style="color:grey"><input id="IsFileControl" data-group="IsRequired" type="checkbox"><span></span></label></div></div>`+`<div class="row" id="divValidate"><div class="col-sm-6 Controlproperties-Element" data-propertysettingid="0" data-controlpropertyid="0" data-controlpropertyname="IsValidate"><label for="IsValidate" style="margin-top:19px"><b>IsValidate</b></label><label id="lblIsValidate" class="switch m-t form-inline pull-right mt-10" style="color:grey"><input id="IsValidate" data-group="IsRequired" type="checkbox"><span></span></label></div></div></div>`+`</div></section>`;$(n).html(t);$("#divPropSetting").removeClass("hidden")}bindPropertySettings(n){var t=n.PropertySettings,i;t!=null&&t!=undefined&&(i=0,$(".Controlproperties-Element").each(function(){var r=$(this).children().find("input").attr("id"),n=t.find(n=>n.ControlPropertyName==r);$(this).attr("data-controlpropertyid",n.ControlPropertyId);$(this).attr("data-controlpropertyname",n.ControlPropertyName);$(this).attr("data-propertysettingid",n.PropertySettingId);r=="IsMultiple"&&(n.ControlPropertyValue=="true"?$("#IsMultiple").prop("checked",!0):$("#IsMultiple").prop("checked",!1));r=="IsFileControl"&&(n.ControlPropertyValue=="true"?$("#IsFileControl").prop("checked",!0):$("#IsFileControl").prop("checked",!1));r=="IsValidate"&&(n.ControlPropertyValue=="true"?$("#IsValidate").prop("checked",!0):$("#IsValidate").prop("checked",!1));i+=1}))}savePropertySettings(n){var i=n.PropertySettings,t=[];return $(".Controlproperties-Element").each(function(){var i={FormPropertyId:isNaN(Number(n.FormPropertyId))?0:Number(n.FormPropertyId),ControlPropertyId:Number($(this).attr("data-controlpropertyid")),ControlPropertyValue:$(this).children().find("input").prop("checked").toString(),ControlPropertyName:$(this).attr("data-controlpropertyname"),ControlId:isNaN(Number(n.ControlId))?0:Number(n.ControlId),PropertySettingId:Number($(this).attr("data-propertysettingid"))};t.push(i)}),t}static Instance(){return this._instance===undefined&&(this._instance=new t),this._instance}}n.FileDragNDrop_Settings=t})(t=n.Controls||(n.Controls={}))})(t=n.Forms||(n.Forms={}))})(Unibase||(Unibase={}));
|