Iniit
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
var Unibase;
|
||||
(function (Unibase) {
|
||||
let Platform;
|
||||
(function (Platform) {
|
||||
let Communications;
|
||||
(function (Communications) {
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class Template extends Unibase.Platform.Core.BaseComponent {
|
||||
init(formpropertyid, prop, callback) {
|
||||
}
|
||||
loadControl(containerid, prop) {
|
||||
Template.containerid = containerid;
|
||||
var html = '<div class="template_customAutocmplt"><label>Templates</label><select class ="form-control appwise_templates"><option value="1">Select template</option></select><input type="hidden" id="hfAppWiseAutoComplete" class="hfAppWiseAutoComplete form-control value-control" value="Unibase.Platform.Communications.Controls.Template.Instance().getTemplateId();" data-isdynamic="true"/></div>';
|
||||
$("#" + containerid).html(html);
|
||||
$("#" + containerid).attr('data-templateAuto', containerid);
|
||||
}
|
||||
getTemplateId() {
|
||||
return Number($('.appwise_templates option:selected').val());
|
||||
}
|
||||
HideEdit(apptype) {
|
||||
var btnid = "btn_Editmails";
|
||||
if (apptype == 2) {
|
||||
btnid = "btn_EditSMS";
|
||||
}
|
||||
var schedulerdate = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_scheduleddate");
|
||||
var scdate = Unibase.Platform.Helpers.DateTimeHelper.Instance().formatLocalDateTimeWithT(schedulerdate);
|
||||
var scheduleddate = new Date(scdate);
|
||||
var date = new Date();
|
||||
if (date >= scheduleddate) {
|
||||
$('#' + btnid).addClass("hidden");
|
||||
}
|
||||
}
|
||||
loadControlSettings() {
|
||||
}
|
||||
loadPropertySettings() {
|
||||
}
|
||||
bindEditFormDetails() {
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new Template();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Controls.Template = Template;
|
||||
})(Controls = Communications.Controls || (Communications.Controls = {}));
|
||||
})(Communications = Platform.Communications || (Platform.Communications = {}));
|
||||
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
|
||||
})(Unibase || (Unibase = {}));
|
||||
@@ -0,0 +1,41 @@
|
||||
var Unibase;
|
||||
(function (Unibase) {
|
||||
let Platform;
|
||||
(function (Platform) {
|
||||
let Communications;
|
||||
(function (Communications) {
|
||||
let Controls;
|
||||
(function (Controls) {
|
||||
class Template_Setting {
|
||||
loadSettingHtml() {
|
||||
return ``;
|
||||
}
|
||||
bindControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
SaveControlData(controldatajson) {
|
||||
return "";
|
||||
}
|
||||
loadControlPropertiesHtml(Container) {
|
||||
return ``;
|
||||
}
|
||||
bindPropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
savePropertySettings(prop) {
|
||||
var propertySettings = prop.PropertySettings;
|
||||
return "";
|
||||
}
|
||||
static Instance() {
|
||||
if (this.instance === undefined) {
|
||||
this.instance = new Template_Setting();
|
||||
}
|
||||
return this.instance;
|
||||
}
|
||||
}
|
||||
Controls.Template_Setting = Template_Setting;
|
||||
})(Controls = Communications.Controls || (Communications.Controls = {}));
|
||||
})(Communications = Platform.Communications || (Platform.Communications = {}));
|
||||
})(Platform = Unibase.Platform || (Unibase.Platform = {}));
|
||||
})(Unibase || (Unibase = {}));
|
||||
Reference in New Issue
Block a user