SMMNG01901.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * @group :
  3. * @ver : 2010.02.26
  4. * @by : byday
  5. * @---------------------------------------------------
  6. * @type : function
  7. * @access : public
  8. * @desc : 불출청구물품출력
  9. * @param :
  10. * @return :
  11. * @---------------------------------------------------
  12. */
  13. //부서총청구물품출력
  14. function fPrintRex3() {
  15. var strPath = "";
  16. var grdXPath = grd_goodreqcsrdept.nodeset;
  17. for ( var nCnt = 0; nCnt < grd_goodreqcsrdept.rows - grd_goodreqcsrdept.fixedRows; nCnt++ ) {
  18. if ( model.getValue(grdXPath + "[" + (nCnt+1) + "]/chkyn") == "Y" ){
  19. var reqdd = "";
  20. if( switch1.selectedIndex == 0 ){
  21. reqdd = model.getValue(grdXPath + "[" + (nCnt+1) + "]/reqdd");
  22. }else{
  23. reqdd = model.getValue(grdXPath + "[" + (nCnt+1) + "]/rtndd");
  24. }
  25. strPath += model.getValue(grdXPath + "[" + (nCnt+1) + "]/reqpridflag")
  26. + "-" + model.getValue(grdXPath + "[" + (nCnt+1) + "]/reqdeptcd")
  27. + "-" + reqdd
  28. + "::";
  29. }
  30. }
  31. model.makeNode("/root/send/goodreq/strPath");
  32. model.makeValue("/root/send/goodreq/strPath", strPath);
  33. model.makeValue("/root/send/goodreq/dlvrtnflag", model.getValue("/root/init/tmp/dlvrtnflag"));
  34. if(submit("TRMNG01206")){
  35. model.removeNodeset("/root/send/report/prtdata/goodreqlist");
  36. model.makeNode("/root/send/report/prtdata/goodreqlist");
  37. copyNodesetType("/root/send/report/prtdata/goodreqlist" , "/root/temp/dlvprtlist/gooddlvlist");
  38. exeReportPreview("RPMNG01901", "XMLSTR", "/root/send/report/prtdata");
  39. }
  40. }