CardLogImpForm.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. Ext.define('erp.view.hr.attendance.CardLogImpForm',{
  2. extend: 'Ext.form.Panel',
  3. alias: 'widget.CardLogImp',
  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. xtype: 'datefield',
  24. fieldLabel: '开始时间',
  25. allowBlank: false,
  26. id: 'startdate',
  27. name: 'startdate',
  28. allowBlank:false
  29. },{
  30. xtype: 'datefield',
  31. fieldLabel: '结束时间',
  32. allowBlank: false,
  33. id: 'enddate',
  34. name: 'enddate',
  35. allowBlank:false
  36. },{
  37. xtype: 'monthdatefield',
  38. fieldLabel: '月份',
  39. allowBlank: false,
  40. id: 'yearmonth',
  41. name: 'yearmonth',
  42. allowBlank:false
  43. },{
  44. xtype:'dbfindtrigger',
  45. fieldLabel:'员工卡号',
  46. allowBlank: true,
  47. id : 'cardcode',
  48. name:'cardcode'
  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: 'erpCardLogImpButton'
  59. },{
  60. xtype:'erpCloseButton'
  61. }]
  62. });