SSMNA00400.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /********************************************************************************
  2. * @group : APU 혈액불출현황
  3. * @ver : 2008.09.23
  4. * @by : dhkim
  5. * @desc : 성분헌혈실 혈액불출현황 조회
  6. *********************************************************************************/
  7. var curYYYYMMStr = getCurrentDate().substring(0, 6);
  8. /**
  9. * create : 2008.09.23
  10. * desc : 화면을 초기화한다.
  11. */
  12. function fInit(){
  13. //노드 초기화
  14. model.removenode('/root/cond');
  15. model.removenode('/root/main/workinfo');
  16. model.removenode('/root/hidden/deptinfo');
  17. model.removenode('/root/hidden/wardinfo');
  18. model.removenode('/root/hidden/drinfo');
  19. //노드 재생성
  20. model.makenode('/root/cond');
  21. model.makenode('/root/main/workinfo');
  22. model.makenode('/root/hidden/deptinfo');
  23. model.makenode('/root/hidden/wardinfo');
  24. model.makenode('/root/hidden/drinfo');
  25. var yyyymm = curYYYYMMStr; //default
  26. var ioflag = 'A'; //default
  27. fShowCondition('cap_ward', 'cmb_ward', 'cap_dept', 'cmb_dept', 'cap_dr', 'cmb_dr', ioflag);//조건 hidden/visible
  28. //진료과, 병동리스트조회
  29. fGetDeptInfo('O', yyyymm, '/root/send', '/root/hidden/outdeptinfo');//외래진료과
  30. fGetDeptInfo('I', yyyymm, '/root/send', '/root/hidden/indeptinfo'); //입원진료과
  31. fGetDeptInfo('W', yyyymm, '/root/send', '/root/hidden/wardinfo'); //병동
  32. //조회조건 default 세팅
  33. //model.makeValue('/root/cond/yyyymm', curYYYYMMStr);//조회년월 : 현재년월
  34. //20081230
  35. model.makeValue('/root/cond/fromdd', curYYYYMMStr);//조회시작년월 : 현재년월
  36. model.makeValue('/root/cond/todd', curYYYYMMStr);//조회종료년월 : 현재년월
  37. model.makeValue('/root/cond/ioflag', 'A');//외래입원구분 : 전체
  38. model.makeValue('/root/cond/deptcd', '');//진료과 : 전체
  39. model.makeValue('/root/cond/wardcd', '');//병동 : 전체
  40. model.makeValue('/root/cond/drid', '');//주치의 : 전체
  41. model.refresh();
  42. }
  43. /**
  44. * create : 2008.09.23
  45. * desc : 성분헌혈실 혈액불출현황조회
  46. */
  47. function fSearchApuEqmtList(){
  48. //조회조건
  49. //var stdym = model.getValue('/root/cond/yyyymm');
  50. //20081230
  51. var fromdd = model.getValue('/root/cond/fromdd');
  52. var todd = model.getValue('/root/cond/todd');
  53. var ioflag = model.getValue('/root/cond/ioflag');
  54. var deptcd = model.getValue('/root/cond/deptcd');
  55. var drid = model.getValue('/root/cond/drid');
  56. var wardcd = model.getValue('/root/cond/wardcd');
  57. //조회조건 널처리
  58. /*
  59. if(stdym == null || stdym == ''){
  60. stdym = curYYYYMMStr;
  61. }
  62. */
  63. //20081230
  64. if(fromdd == null || fromdd == ''){
  65. fromdd = curYYYYMMStr;
  66. }
  67. if(todd == null || todd == ''){
  68. todd = curYYYYMMStr;
  69. }
  70. if(ioflag == null || ioflag == ''){
  71. ioflag = 'A';
  72. }
  73. if(deptcd == null){
  74. deptcd = '';
  75. }
  76. if(drid == null){
  77. drid = '';
  78. }
  79. if(wardcd == null){
  80. wardcd == '';
  81. }
  82. if(ioflag == 'O'){
  83. if(wardcd != null || wardcd != ''){
  84. wardcd == '';
  85. }
  86. }
  87. //20081230
  88. //같은 년도의 데이터만 조회가능
  89. if(fromdd.substring(0, 4) != todd.substring(0, 4)){
  90. messageBox('조회 시작년도와 종료년도를 동일하게 적용해 주십시오', 'E009');
  91. return;
  92. }
  93. //request전 parameter send처리
  94. model.removenode('/root/send');
  95. //model.makeValue('/root/send/stdym', stdym + '%');
  96. //20081230
  97. model.makeValue('/root/send/fromdd', fromdd + '01');
  98. model.makeValue('/root/send/todd', todd + '31');
  99. model.makeValue('/root/send/ioflag', ioflag);
  100. model.makeValue('/root/send/deptcd', deptcd);
  101. model.makeValue('/root/send/drid', drid);
  102. model.makeValue('/root/send/wardcd', wardcd);
  103. model.makeValue('/root/send/eqapuflag', '2');//장비별/혈액불출별
  104. if(submit('TRSNA00103')){
  105. //화면display변경
  106. //var lastdd = getLastDay(todd.substring(0, 4), todd.substring(4, 6));
  107. //fShowDays(datagrid1, datagrid1.cols, lastdd, 3);
  108. //fShowTotal(datagrid1, datagrid1.cols, 3);
  109. }
  110. }