SMMNP05300.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /* ---------------------------------------------------------------------
  2. 관리대상장비목록 (SMMNP05300.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. : Create By 김 진 명
  6. : 2007.09.10
  7. ---------------------------------------------------------------------- */
  8. /* --------------------------------------------------*/
  9. /* type : function */
  10. /* access : public */
  11. /* desc : 관리대상방비목록 초기화 */
  12. /* param : */
  13. /* return : */
  14. /* --------------------------------------------------*/
  15. function fInit() {
  16. removeComboItem("cmb_installplcecd");
  17. submit("TRMNP05301");
  18. addComboItem("cmb_installplcecd", "전 체", "", "above" );
  19. DataRead();
  20. }
  21. /* --------------------------------------------------*/
  22. /* type : function */
  23. /* access : public */
  24. /* desc : 관리대상방비목록 초기화 */
  25. /* param : */
  26. /* return : */
  27. /* --------------------------------------------------*/
  28. function DataRead() {
  29. model.copyNode("/root/send/reqdata", "/root/main/cond");
  30. submit("TRMNP05302");
  31. }
  32. /* --------------------------------------------------*/
  33. /* type : function */
  34. /* access : public */
  35. /* desc : 콤보아이템 제거 */
  36. /* param : */
  37. /* return : */
  38. /* --------------------------------------------------*/
  39. function removeComboItem( comboID ) {
  40. var comboObj = document.all.item(comboID);
  41. var comboItemNodeSet = comboObj.choices.itemset.attribute("nodeset");
  42. model.removenode(comboItemNodeSet + "[1]");
  43. model.refresh();
  44. }
  45. /* --------------------------------------------------*/
  46. /* type : function */
  47. /* access : public */
  48. /* desc : 관심목록장비 출력 */
  49. /* param : */
  50. /* return : */
  51. /* --------------------------------------------------*/
  52. function fPrntEmqtList() {
  53. var instcd = getUserInfo("dutplceinstcd");
  54. //var instcd ="012";
  55. var installplcecd = model.getValue("/root/main/cond/installplcecd");
  56. var eqmtcd = model.getValue("/root/main/cond/eqmtcd");
  57. //코드값이 없으면 조건을 실행시키지 않기 위해
  58. if( installplcecd == "" ) {
  59. installplcecd = "%%";
  60. }
  61. if( eqmtcd == "" ) {
  62. eqmtcd = "%%";
  63. }
  64. model.setValue("/root/send/report/installplcecd", installplcecd);
  65. model.setValue("/root/send/report/eqmtcd", eqmtcd);
  66. model.setValue("/root/send/report/instcd", instcd);
  67. exeReportPreview("RPMNP05301", "XML", "/root/send/report", "", "true", "", "", "", "", "true");
  68. }
  69. // 수술장비조회 팝업 호출
  70. function fOpEqmtPopup(){
  71. modal("SPMNP00301");
  72. sMsg = getParameter("SPMNP00300_Return");
  73. if(sMsg == "") return;
  74. model.setValue("/root/main/cond/eqmtcd", getArrayData(sMsg, 1, 0));
  75. model.setValue("/root/main/cond/eqmtnm", getArrayData(sMsg, 1, 1));
  76. inp_eqmtnm.refresh();
  77. inp_eqmtcd.refresh();
  78. }
  79. /* ------------------------------------------------- */
  80. /* ------End Of List ------------------------------- */
  81. /* -------------------------------------------------- */