| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- Ext.define('school.view.basic.class.ClassDetail', {
- extend: 'school.view.core.form.FormPanel',
- xtype: 'classdetail',
- //字段属性
- _title: '班级信息',
- _idField: 'id',
- _codeField: 'pu_code',
- _statusField: 'pu_status',
- _statusCodeField: 'pu_statuscode',
- _auditmanField: 'pu_auditman',
- _auditdateField: 'pu_auditdate',
- _relationColumn: 'pd_puid',
- _readUrl: '/class/read',
- _saveUrl: '/api/purchase/purchase/save',
- _auditUrl: '/api/purchase/purchase/audit',
- _unAuditUrl: '/api/purchase/purchase/unAudit',
- _deleteUrl: '/api/purchase/purchase/delete',
- _turnInUrl: '/api/purchase/purchase/turnProdin',
- initId: 0,
- initComponent: function () {
- Ext.apply(this, {
- defaultItems: [{
- xtype: 'hidden',
- name: 'clazz_id',
- fieldLabel: 'id',
- group: '班级信息',
- }, {
- xtype: "textfield",
- name: "clazz_name",
- fieldLabel: "班级名称",
- columnWidth: 0.5,
- group: '班级信息',
- }, {
- // xtype: 'textfield',
- // name: 'code',
- // fieldLabel: '班级代码',
- // }, {
- xtype: 'textfield',
- name: 'currentDetail.grade',
- fieldLabel: '所属年级',
- columnWidth: 0.5,
- group: '班级信息',
- }, {
- xtype: "textfield",
- name: "clazz_adress",
- fieldLabel: "班级地址",
- columnWidth: 1,
- group: '班级信息',
- }, {
- xtype: "textfield",
- name: 'clazz_status',
- fieldLabel: "状态",
- columnWidth: 0.5,
- group: '班级信息',
- }, {
- xtype: "textfield",
- name: 'clazz_remarks',
- fieldLabel: '备注',
- columnWidth: 0.5,
- group: '班级信息',
- }, {
- name: "detail0",
- xtype: "detailGridField",
- detnoColumn: 'sd_detno',
- storeModel: 'school.model.basic.Student',
- deleteDetailUrl: '/api/sale/sale/deleteDetail',
- allowEmpty: true,
- showCount: false,
- group: '学生信息',
- columns: [{
- text: 'id',
- dataIndex: 'stu_id',
- hidden: true
- }, {
- text: '编号',
- dataIndex: 'stu_number'
- }, {
- text: '姓名',
- dataIndex: 'stu_name'
- }, {
- text: '性别',
- dataIndex: 'stu_sex'
- }, {
- text: '出生日期',
- dataIndex: 'stu_birthday',
- xtype: 'datecolumn',
- format: 'Y-m-d'
- }, {
- text: '年龄',
- dataIndex: 'stu_age'
- }, {
- text: '家庭住址',
- dataIndex: 'stu_address'
- }, {
- text: '入学时间',
- dataIndex: 'stu_enroll_date',
- xtype: 'datecolumn',
- format: 'Y-m-d'
- }, {
- text: '毕业时间',
- dataIndex: 'stu_graduate_date',
- xtype: 'datecolumn',
- format: 'Y-m-d'
- }, {
- text: '备注',
- dataIndex: 'stu_remarks'
- }]
- }, {
- name: "detail1",
- xtype: "detailGridField",
- detnoColumn: 'sd_detno',
- storeModel: 'school.model.basic.Student',
- deleteDetailUrl: '/api/sale/sale/deleteDetail',
- allowEmpty: true,
- showCount: false,
- group: '任课教师信息',
- columns: [{
- text: 'id',
- dataIndex: 'teacher_id',
- hidden: true
- }, {
- text: '姓名',
- dataIndex: 'teacher'
- }, {
- text: '学科',
- dataIndex: 'subject'
- }]
- }]
- });
- this.callParent();
- },
- });
|