var Unibase; (function (Unibase) { let Forms; (function (Forms) { let Controls; (function (Controls) { class Location_Setting { loadSettingHtml() { return ``; } bindControlData(controldatajson) { return ""; } SaveControlData(controldatajson) { return ""; } loadControlPropertiesHtml(Container) { return ""; } bindPropertySettings(prop) { var propertySettings = prop.PropertySettings; if (propertySettings != null && propertySettings != undefined) { var i = 0; $(".Controlproperties-Element").each(function () { if (propertySettings[i].ControlPropertyName == "MaxLength") { $(this).attr("data-controlpropertyid", propertySettings[i].ControlPropertyId); $(this).attr("data-controlpropertyname", propertySettings[i].ControlPropertyName); $(this).attr("data-propertysettingid", propertySettings[i].PropertySettingId); $("#MaxLength").val(propertySettings[i].ControlPropertyValue); } i += 1; }); } } savePropertySettings(prop) { var propertySettings = prop.PropertySettings; var propSettingReq = []; $(".Controlproperties-Element").each(function () { var data = { FormPropertyId: Number(prop.FormPropertyId), ControlPropertyId: Number($(this).attr('data-controlpropertyid')), ControlPropertyValue: $(this).children().closest("input").val().toString(), ControlPropertyName: $(this).attr('data-controlpropertyname'), ControlId: Number(prop.ControlId), PropertySettingId: Number($(this).attr("data-propertysettingid")), }; propSettingReq.push(data); }); return propSettingReq; } static Instance() { if (this.instance === undefined) { this.instance = new Location_Setting(); } return this.instance; } } Controls.Location_Setting = Location_Setting; })(Controls = Forms.Controls || (Forms.Controls = {})); })(Forms = Unibase.Forms || (Unibase.Forms = {})); })(Unibase || (Unibase = {}));