Built files from Bizgaze WebServer
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

template.component.js 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. var Unibase;
  2. (function (Unibase) {
  3. let Platform;
  4. (function (Platform) {
  5. let Communications;
  6. (function (Communications) {
  7. let Controls;
  8. (function (Controls) {
  9. class Template extends Unibase.Platform.Core.BaseComponent {
  10. init(formpropertyid, prop, callback) {
  11. }
  12. loadControl(containerid, prop) {
  13. Template.containerid = containerid;
  14. 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>';
  15. $("#" + containerid).html(html);
  16. $("#" + containerid).attr('data-templateAuto', containerid);
  17. }
  18. getTemplateId() {
  19. return Number($('.appwise_templates option:selected').val());
  20. }
  21. HideEdit(apptype) {
  22. var btnid = "btn_Editmails";
  23. if (apptype == 2) {
  24. btnid = "btn_EditSMS";
  25. }
  26. var schedulerdate = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.find(x => x.Key == "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_scheduleddate");
  27. var scdate = Unibase.Platform.Helpers.DateTimeHelper.Instance().formatLocalDateTimeWithT(schedulerdate);
  28. var scheduleddate = new Date(scdate);
  29. var date = new Date();
  30. if (date >= scheduleddate) {
  31. $('#' + btnid).addClass("hidden");
  32. }
  33. }
  34. loadControlSettings() {
  35. }
  36. loadPropertySettings() {
  37. }
  38. bindEditFormDetails() {
  39. }
  40. static Instance() {
  41. if (this.instance === undefined) {
  42. this.instance = new Template();
  43. }
  44. return this.instance;
  45. }
  46. }
  47. Controls.Template = Template;
  48. })(Controls = Communications.Controls || (Communications.Controls = {}));
  49. })(Communications = Platform.Communications || (Platform.Communications = {}));
  50. })(Platform = Unibase.Platform || (Unibase.Platform = {}));
  51. })(Unibase || (Unibase = {}));