SMMND03400.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /*
  2. HD worklist (SMMND03400.xrw - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. - Creat :
  6. 2009-01-08
  7. */
  8. /**
  9. * creat : 20090108
  10. * author : dhkim
  11. * desc : 초기화
  12. */
  13. function fInitialize(){
  14. //공통코드 load
  15. zbcfGetCodeList( new Array("M0083","M0345")
  16. , new Array("/root/cmn/M0083list","/root/cmn/M0345list"));
  17. //내환자 load
  18. fLoadMyPatSetting();
  19. //조회조건 default 세팅
  20. model.removenode('/root/main/cond');
  21. model.makeValue('/root/main/cond/workdd' , getCurrentDate()); //업무일자
  22. model.makeValue('/root/main/cond/mypid' , ''); //내환자
  23. model.makeValue('/root/main/cond/shiftflag', '-'); //shift
  24. model.makeValue('/root/main/cond/nursid' , getUserInfo('userid'));//담당간호사아이디
  25. model.makeValue('/root/main/cond/nursnm' , getUserInfo('usernm'));//담당간호사명
  26. //그리드 노드 초기화
  27. model.removenode('/root/main/hdworklistinfo');
  28. model.makenode('/root/main/hdworklistinfo');
  29. model.refresh();
  30. fGetWorkList();
  31. }
  32. /**
  33. * creat : 20090108
  34. * author : dhkim
  35. * desc : 내환자세팅된 간호사 load
  36. */
  37. function fLoadMyPatSetting(){
  38. model.removenode('/root/send');
  39. model.makeValue('/root/send/wardcd', getUserInfo('dutplcecd'));
  40. model.refresh();
  41. //submit 호출
  42. if(!submit('TRMND03402')){
  43. messageBox('조회를 실패하였습니다.', 'E999');
  44. return;
  45. }
  46. }
  47. /**
  48. * creat : 20090108
  49. * author : dhkim
  50. * desc : HD worklist 조회
  51. */
  52. function fGetWorkList(){
  53. //조건변수
  54. var workdd = model.getValue('/root/main/cond/workdd'); //업무일자
  55. var mypid = model.getValue('/root/main/cond/mypid'); //내환자
  56. var shiftflag = model.getValue('/root/main/cond/shiftflag'); //shift
  57. var nursid = model.getValue('/root/main/cond/nursid'); //담당간호사아이디
  58. //null 처리
  59. if(workdd == null){
  60. workdd = '';
  61. }
  62. if(mypid == null){
  63. mypid = '';
  64. }
  65. if(shiftflag == null){
  66. shiftflag = '';
  67. }
  68. if(nursid == null){
  69. nursid = '';
  70. }
  71. //send parameter 설정
  72. model.removenode('/root/send');
  73. model.makeValue('/root/send/workdd', workdd);
  74. model.makeValue('/root/send/mypid', mypid);
  75. model.makeValue('/root/send/shiftflag', shiftflag);
  76. model.makeValue('/root/send/nursid', nursid);
  77. //submit 호출
  78. if(!submit('TRMND03401')){
  79. messageBox('조회를 실패하였습니다.', 'E999');
  80. return;
  81. }
  82. model.refresh();
  83. }
  84. /**
  85. * creat : 20090108
  86. * author : dhkim
  87. * desc : HD worklist 출력
  88. */
  89. function fPrintWorkList(){
  90. if(datagrid1.rows == 1){
  91. messageBox('출력할 내역이 없습니다.', 'E999');
  92. return;
  93. }
  94. model.removeNodeset("/root/send");
  95. model.makeValue("/root/send/rexdata/workdd" , model.getValue("/root/main/cond/workdd"));
  96. model.makeValue("/root/send/rexdata/shiftflag", model.getValue("/root/main/cond/shiftflag"));
  97. model.makeValue("/root/send/rexdata/nursid" , model.getValue("/root/main/cond/nursid"));
  98. model.makeNode("/root/send/hdworklistinfo");
  99. model.copyNode("/root/send/hdworklistinfo", "/root/main/hdworklistinfo");
  100. exeReportPreview("RPMND03401", "XMLSTR", "", "", "false","","","","","false", "", "");//미리보기
  101. }