ProdInOut.js.svn-base 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Ext.define('erp.view.scm.reserve.ProdInOut',{
  2. extend: 'Ext.Viewport',
  3. layout: 'anchor',
  4. hideBorders: true,
  5. initComponent : function(){
  6. var me = this;
  7. Ext.apply(me, {
  8. items: [{
  9. xtype: 'erpFormPanel',
  10. anchor: '100% 40%',
  11. saveUrl: 'scm/reserve/saveProdInOut.action?caller=' +caller,
  12. deleteUrl: 'scm/reserve/deleteProdInOut.action?caller=' +caller,
  13. updateUrl: 'scm/reserve/updateProdInOut.action?caller=' +caller,
  14. auditUrl: 'scm/reserve/auditProdInOut.action?caller=' +caller,
  15. resAuditUrl: 'scm/reserve/resAuditProdInOut.action?caller=' +caller,
  16. submitUrl: 'scm/reserve/submitProdInOut.action?caller=' +caller,
  17. resSubmitUrl: 'scm/reserve/resSubmitProdInOut.action?caller=' +caller,
  18. postUrl: 'scm/reserve/postProdInOut.action?caller=' +caller,
  19. printUrl: 'scm/reserve/printProdInOut.action?caller=' +caller,
  20. printNoCustomerUrl: 'scm/reserve/printProdInOut.action?caller=' +caller,
  21. printnosaleUrl: 'scm/reserve/printProdInOut.action?caller=' +caller,
  22. printotherinUrl: 'scm/reserve/printProdInOut.action?caller=' +caller,
  23. printotheroutUrl: 'scm/reserve/printProdInOut.action?caller=' +caller,
  24. printBarUrl: 'scm/reserve/printBar.action?caller=' +caller,
  25. resPostUrl: 'scm/reserve/resPostProdInOut.action?caller=' +caller,
  26. getIdUrl: 'common/getId.action?seq=PRODINOUT_SEQ',
  27. keyField: 'pi_id',
  28. codeField: 'pi_inoutno',
  29. statusField: 'pi_invostatus',
  30. statuscodeField: 'pi_invostatuscode',
  31. statusCode: 'pi_statuscode'//过账状态
  32. },{
  33. xtype: 'erpGridPanel2',
  34. anchor: '100% 60%',
  35. allowExtraButtons: true,
  36. detno: 'pd_pdno',
  37. necessaryField: 'pd_prodcode',
  38. keyField: 'pd_id',
  39. mainField: 'pd_piid',
  40. binds: [{
  41. refFields:['pd_snid'],
  42. fields:['pd_ordercode','pd_orderdetno', 'pd_prodcode']
  43. },{
  44. refFields:['pd_qcid'],
  45. fields:['pd_ordercode','pd_orderdetno', 'pd_prodcode']
  46. },{
  47. refFields:['pd_sdid'],
  48. fields:['pd_ordercode','pd_orderdetno', 'pd_prodcode']
  49. },{
  50. refFields:['pd_ioid'],
  51. fields:['pd_ordercode','pd_orderdetno', 'pd_prodcode']
  52. },{
  53. refFields:['pd_anid'],
  54. fields:['pd_ordercode','pd_orderdetno', 'pd_prodcode']
  55. }]
  56. }]
  57. });
  58. me.callParent(arguments);
  59. }
  60. });