|
|
@@ -12,7 +12,7 @@ Ext.define('school.view.interaction.score.Detail', {
|
|
|
// _readUrl: 'http://10.1.80.36:9520/api/school/score/read',
|
|
|
_readUrl: '/api/school/score/read',
|
|
|
// _saveUrl: 'http://10.1.80.47:9520/api/school/score/save',
|
|
|
- // _saveUrl: '/api/sale/sss/update',
|
|
|
+ _saveUrl: '/api/school/score/save',
|
|
|
// _deleteUrl: 'http://10.1.80.47:9520/api/school/score/delete',
|
|
|
_deleteUrl: '/api/school/score/delete',
|
|
|
|
|
|
@@ -74,16 +74,69 @@ Ext.define('school.view.interaction.score.Detail', {
|
|
|
dataIndex: 'sd_stuNumber'
|
|
|
}, {
|
|
|
text: '姓名',
|
|
|
- dataIndex: 'sd_stu'
|
|
|
+ dataIndex: 'sd_stu',
|
|
|
+ editor: {
|
|
|
+ xtype: 'dbfindtrigger',
|
|
|
+ //数据接口
|
|
|
+ dataUrl:'/api/school/student/list',
|
|
|
+ //联想设置
|
|
|
+ dbtpls:[{
|
|
|
+ field:'stu_name',width:150
|
|
|
+ }],
|
|
|
+ dbfinds:[{
|
|
|
+ from: 'stu_name', to: 'sd_stu',
|
|
|
+ }, {
|
|
|
+ from: 'stu_number', to: 'sd_stuNumber'
|
|
|
+ }],
|
|
|
+ defaultCondition: "1=1",
|
|
|
+ dbSearchFields:[{
|
|
|
+ emptyText:'请输入学生学号或姓名',
|
|
|
+ xtype : "textfield",
|
|
|
+ name : "search",
|
|
|
+ getCondition: function(v) {
|
|
|
+ return "(upper(stu_name) like '%"+v.toUpperCase()+"%' or upper(stu_number) like '%"+v.toUpperCase()+"%')";
|
|
|
+ },
|
|
|
+ allowBlank : true,
|
|
|
+ width:300
|
|
|
+ }],
|
|
|
+ //放大镜窗口列表
|
|
|
+ dbColumns:[{
|
|
|
+ text: "ID",
|
|
|
+ dataIndex: "stu_id",
|
|
|
+ hidden:true,
|
|
|
+ xtype: "numbercolumn"
|
|
|
+ }, {
|
|
|
+ text: '工号',
|
|
|
+ dataIndex: 'stu_number',
|
|
|
+ width: 110
|
|
|
+ }, {
|
|
|
+ text: "姓名",
|
|
|
+ dataIndex: "stu_name",
|
|
|
+ width: 110
|
|
|
+ }]
|
|
|
+ }
|
|
|
}, {
|
|
|
text: '科目',
|
|
|
- dataIndex: 'sd_subject'
|
|
|
+ dataIndex: 'sd_subject',
|
|
|
+ editor: {
|
|
|
+ xtype: 'subjectcombo',
|
|
|
+ valueField: 'subject_name',
|
|
|
+ hideLabel: true
|
|
|
+ }
|
|
|
}, {
|
|
|
text: '成绩',
|
|
|
- dataIndex: 'sd_score'
|
|
|
+ dataIndex: 'sd_score',
|
|
|
+ editor: {
|
|
|
+ xtype: 'numberfield',
|
|
|
+ minValue: 0
|
|
|
+ }
|
|
|
}, {
|
|
|
text: '备注',
|
|
|
- dataIndex: 'sd_remark'
|
|
|
+ dataIndex: 'sd_remark',
|
|
|
+ editor: {
|
|
|
+ xtype: 'textfield'
|
|
|
+ },
|
|
|
+ width: 200
|
|
|
}]
|
|
|
}],
|
|
|
applyBtns: [{
|
|
|
@@ -108,6 +161,7 @@ Ext.define('school.view.interaction.score.Detail', {
|
|
|
},
|
|
|
|
|
|
refresh: function() {
|
|
|
+ Ext.StoreMgr.get('store_subject').load();
|
|
|
Ext.StoreMgr.get('store_grade').load();
|
|
|
Ext.StoreMgr.get('store_class').load();
|
|
|
}
|