TEST.js 999 B

1234567891011121314151617181920212223242526272829
  1. this.define("loadBranchGrid", function (dateList) {
  2. return;
  3. var field = this.form.get("branchTaskPerson");
  4. var branchList = field.getData();
  5. var unit = this.data.county || this.workContext.getWork().creatorDepartment;
  6. MWF.xDesktop.requireApp("Template", "MGrid", function () {
  7. this.dateGrid = new MGrid(this.form.get("branchGridContainer").node, dateList || null, {
  8. style: "report",
  9. isEdited: this.isEdited || this.isNew,
  10. hasOperation: true,
  11. minTrCount: 1,
  12. tableAttributes: {width: "550px", border: "0", cellpadding: "5", cellspacing: "0"},
  13. itemTemplate: {
  14. branch: {
  15. type: "innerText"
  16. },
  17. person: {
  18. type: "org",
  19. orgType: "identity",
  20. unit: unit,
  21. notEmpty: true
  22. }
  23. }
  24. })
  25. }, this.app);
  26. this.dateGrid.load();
  27. })