Built files from Bizgaze WebServer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

purchaseplan.component.js 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. var Bizgaze;
  2. (function (Bizgaze) {
  3. let Apps;
  4. (function (Apps) {
  5. let Transact;
  6. (function (Transact) {
  7. let Controls;
  8. (function (Controls) {
  9. class PurchasePlan extends Unibase.Platform.Core.BaseComponent {
  10. init(formpropertyid, prop, callback) {
  11. var instance = this;
  12. instance.loadControlSettings(prop.ControlJsonText, prop.FormPropertyId);
  13. instance.loadPropertySettings(prop.PropertySettings, prop.FormPropertyId);
  14. }
  15. loadControl(containerid, prop) {
  16. var html = `<div class="row">
  17. <div id="divSectionProperties_GenerateForAllBranches" class="divSectionProperties col-sm-6 mt-10">
  18. <div class="custom-control custom-checkbox">
  19. <input type="checkbox" class="custom-control-input" id="chkSection_GenerateForAllBranches" name="Generate For All Branches">
  20. <label class="custom-control-label" for="chkSection_GenerateForAllBranches" id="lblCheckBoxSection_GenerateForAllBranches">Generate For All Branches</label>
  21. </div>
  22. </div>
  23. <div id="divSectionProperties_Apply" class="divSectionProperties col-sm-6 mt-10" data-size="6" data-propertyname="Apply">
  24. <a id="btnSection_Apply" class="btn btn-primary mt-20 text-white pull-right Apply btn-sm">Apply</a>
  25. </div>
  26. <div id="divCustomProperties_BranchId" class="control-group divCustomProperties divCustomProperties_BranchId col-sm-6">
  27. <div id="div_BranchId" class="floating-label-form-group-with-value floating-validate" style="border-bottom:0;">
  28. <label for="lbl" id="lbl_BranchId">Branch Name<span class="text-danger hide hidden" id="spnIsRequired_BranchId"> *</span></label>
  29. <select id="select2_BranchId" class="value-control form-control text-control" multiple="" style="width: 100%; border-color: rgb(255, 255, 255);"> </select>
  30. <input type="hidden" id="hfAutoComplete_Branch" class="hfAutoComplete_Branch' form-control value-control" data-isdynamic="true"/>
  31. </div>
  32. </div>
  33. <div id="divCustomProperties_CompanyId" class="control-group divCustomProperties divCustomProperties_CompanyId col-sm-6">
  34. <div id="div_CompanyId" class="floating-label-form-group-with-value floating-validate" style="border-bottom:0;">
  35. <label for="lbl" id="lbl_CompanyId">Company Name<span class="text-danger hide hidden" id="spnIsRequired_CompanyId"> *</span></label>
  36. <select id="select2_CompanyId" class="value-control form-control text-control" multiple="" style="width: 100%; border-color: rgb(255, 255, 255);"> </select>
  37. <input type="hidden" id="hfAutoComplete_Company" class="hfAutoComplete_Company' form-control value-control" data-isdynamic="true"/>
  38. </div>
  39. </div>
  40. </div>`;
  41. $("#" + containerid).html(html);
  42. }
  43. loadControlSettings(controlsettingjson, formpropertyid) {
  44. return null;
  45. }
  46. loadPropertySettings(propertysettings, formpropertyid) {
  47. return null;
  48. }
  49. bindEditFormDetails(formpropertyid, propval, DocPropertyName) {
  50. return null;
  51. }
  52. static Instance() {
  53. if (this.instance === undefined) {
  54. this.instance = new PurchasePlan();
  55. }
  56. return this.instance;
  57. }
  58. }
  59. Controls.PurchasePlan = PurchasePlan;
  60. })(Controls = Transact.Controls || (Transact.Controls = {}));
  61. })(Transact = Apps.Transact || (Apps.Transact = {}));
  62. })(Apps = Bizgaze.Apps || (Bizgaze.Apps = {}));
  63. })(Bizgaze || (Bizgaze = {}));