ClassDetail.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Ext.define('school.view.basic.class.ClassDetail', {
  2. extend: 'school.view.core.form.FormPanel',
  3. xtype: 'classdetail',
  4. //字段属性
  5. _title: '班级信息',
  6. _idField: 'id',
  7. _codeField: 'pu_code',
  8. _statusField: 'pu_status',
  9. _statusCodeField: 'pu_statuscode',
  10. _auditmanField: 'pu_auditman',
  11. _auditdateField: 'pu_auditdate',
  12. _relationColumn: 'pd_puid',
  13. _readUrl: '/api/purchase/purchase/read',
  14. _saveUrl: '/api/purchase/purchase/save',
  15. _auditUrl: '/api/purchase/purchase/audit',
  16. _unAuditUrl: '/api/purchase/purchase/unAudit',
  17. _deleteUrl: '/api/purchase/purchase/delete',
  18. _turnInUrl: '/api/purchase/purchase/turnProdin',
  19. initId: 0,
  20. initComponent: function () {
  21. Ext.apply(this, {
  22. defaultItems: [{
  23. xtype: 'hidden',
  24. name: 'currentDetail.id',
  25. fieldLabel: 'id',
  26. group: '班级信息',
  27. }, {
  28. xtype: "textfield",
  29. name: "currentDetail.name",
  30. fieldLabel: "班级名称",
  31. columnWidth: 0.5,
  32. group: '班级信息',
  33. }, {
  34. // xtype: 'textfield',
  35. // name: 'code',
  36. // fieldLabel: '班级代码',
  37. // }, {
  38. xtype: 'textfield',
  39. name: 'currentDetail.grade',
  40. fieldLabel: '所属年级',
  41. columnWidth: 0.5,
  42. group: '班级信息',
  43. }, {
  44. xtype: "textfield",
  45. name: "address",
  46. fieldLabel: "班级地址",
  47. columnWidth: 1,
  48. group: '班级信息',
  49. }, {
  50. xtype: "textfield",
  51. name: 'status',
  52. fieldLabel: "状态",
  53. columnWidth: 0.5,
  54. group: '班级信息',
  55. }, {
  56. xtype: "textfield",
  57. name: 'remark',
  58. fieldLabel: '备注',
  59. columnWidth: 0.5,
  60. group: '班级信息',
  61. }, {
  62. name: "detailGridField",
  63. xtype: "detailGridField",
  64. detnoColumn: 'sd_detno',
  65. storeModel: 'school.model.basic.Student',
  66. deleteDetailUrl: '/api/sale/sale/deleteDetail',
  67. allowEmpty: true,
  68. showCount: false,
  69. group: '学生信息',
  70. columns: [{
  71. text: 'id',
  72. dataIndex: 'student_id',
  73. hidden: true
  74. }, {
  75. text: '学号',
  76. dataIndex: 'student_number'
  77. }, {
  78. text: '姓名',
  79. dataIndex: 'student_name'
  80. }, {
  81. text: '性别',
  82. dataIndex: 'student_gender'
  83. }, {
  84. text: '出生日期',
  85. dataIndex: 'student_birth',
  86. xtype: 'datecolumn',
  87. format: 'Y-m-d'
  88. }, {
  89. text: '年龄',
  90. dataIndex: 'student_age'
  91. }, {
  92. text: '家庭住址',
  93. dataIndex: 'student_address'
  94. }]
  95. }]
  96. });
  97. this.callParent();
  98. },
  99. });