AttendDataComForm.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. Ext.define('erp.view.hr.attendance.AttendDataComForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.AttendDataCom',
  4. id: 'form',
  5. title: '考勤数据计算',
  6. frame : true,
  7. autoScroll : true,
  8. buttonAlign : 'center',
  9. FormUtil: Ext.create('erp.util.FormUtil'),
  10. confirmUrl:'',
  11. fieldDefaults : {
  12. margin : '4 2 4 2',
  13. fieldStyle : "background:#FFFAFA;color:#515151;",
  14. labelAlign : "right",
  15. msgTarget: 'side',
  16. blankText : $I18N.common.form.blankText
  17. },
  18. initComponent : function(){
  19. this.callParent(arguments);
  20. /*this.title = this.FormUtil.getActiveTab().title;*/
  21. },
  22. items: [
  23. {
  24. xtype: 'condatefield',
  25. fieldLabel: '开始时间',
  26. allowBlank: false,
  27. id: 'searchdate',
  28. name: 'searchdate',
  29. value: 7
  30. }
  31. /*{
  32. xtype: 'datefield',
  33. fieldLabel: '开始时间',
  34. allowBlank: false,
  35. id: 'startdate',
  36. name: 'startdate'
  37. },{
  38. xtype: 'datefield',
  39. fieldLabel: '结束时间',
  40. allowBlank: false,
  41. id: 'enddate',
  42. name: 'enddate'
  43. },{
  44. xtype:'dbfindtrigger',
  45. fieldLabel:'员工编号',
  46. allowBlank: true,
  47. id : 'em_code',
  48. name:'em_code'
  49. },{
  50. xtype:'textfield',
  51. fieldLabel:'员工名称',
  52. allowBlank: true,
  53. id : 'em_name',
  54. readOnly:true,
  55. name:'em_name'
  56. }*/],
  57. buttons: [{
  58. xtype: 'erpAttendDataComButton'
  59. },{
  60. xtype:'erpCloseButton'
  61. }]
  62. });