var Unibase; (function (Unibase) { let Forms; (function (Forms) { let Controls; (function (Controls) { class PhoneNumber_Settings { loadControlPropertiesHtml(container) { var html = `
` + `
` + `
Property Settings
` + `
` + `
`; $(container).html(html); $("#divPropSetting").removeClass('hidden'); } bindPropertySettings(prop) { var propertySettings = prop.PropertySettings; if (propertySettings != null && propertySettings != undefined) { var r = 0; $(".Controlproperties-Element").each(function () { if (r == 0) { for (var i = 0; i < propertySettings.length; i++) { if (propertySettings[i].ControlPropertyName == "IsVerify") { $(this).attr("data-controlpropertyid", propertySettings[i].ControlPropertyId); $(this).attr("data-controlpropertyname", propertySettings[i].ControlPropertyName); $(this).attr("data-propertysettingid", propertySettings[i].PropertySettingId); if (propertySettings[i].ControlPropertyValue == "true") { $("#IsVerify").prop("checked", true); } else { $("#IsVerify").prop("checked", false); } } } } }); } } 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().find("input").prop("checked").toString(), ControlPropertyName: $(this).attr('data-controlpropertyname'), ControlId: Number(prop.ControlId), PropertySettingId: Number($(this).attr("data-propertysettingid")), }; propSettingReq.push(data); }); return propSettingReq; } loadSettingHtml() { return ""; } bindControlData(controldatajson) { return null; } SaveControlData(controldatajson) { return controldatajson; } static Instance() { if (this._instance === undefined) this._instance = new PhoneNumber_Settings(); return this._instance; } } Controls.PhoneNumber_Settings = PhoneNumber_Settings; })(Controls = Forms.Controls || (Forms.Controls = {})); })(Forms = Unibase.Forms || (Unibase.Forms = {})); })(Unibase || (Unibase = {}));