SMLBD02000_헌혈정도관리.xrw 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>헌혈정도관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root>
  9. <main>
  10. <qclist>
  11. <chk/>
  12. <prcpdd/>
  13. <natno/>
  14. <donvol/>
  15. <reptrslt/>
  16. <ph/>
  17. <cul/>
  18. <wbc/>
  19. <retestyn/>
  20. <dmdeliveyn/>
  21. <readdoctid/>
  22. <refdt/>
  23. </qclist>
  24. </main>
  25. <init>
  26. </init>
  27. <send>
  28. <fromdd/>
  29. <todd/>
  30. <donflag>2</donflag>
  31. <cnfmlist/>
  32. <cnfmflag/>
  33. </send>
  34. <hidden/>
  35. </root>
  36. </instance>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
  41. <submission id="TRLBD02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/qclist"/>
  42. <submission id="TXLBD02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  43. <bind id="bind0" ref="/root/main/qclist/chk" readonly="../chk/@readonly = 'true'"/>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. fInit();
  47. ]]>
  48. </script>
  49. <script type="javascript">
  50. <![CDATA[
  51. function fInit(){
  52. model.setValue("/root/send/fromdd", getCurrentDate());
  53. model.setValue("/root/send/todd", getCurrentDate());
  54. model.refresh();
  55. }
  56. //조회
  57. function fGetQCList(){
  58. if(submit("TRLBD02001")){
  59. fSetGrid();
  60. }
  61. }
  62. //조회구분에 따른 그리드 colhidden
  63. function fSetGrid(){
  64. if(rdo_1.value == 1){ //HPC
  65. datagrid1.colHidden(datagrid1.colRef("ph")) = false;
  66. datagrid1.colHidden(datagrid1.colRef("wbc")) = false;
  67. }else{ //DGI
  68. datagrid1.colHidden(datagrid1.colRef("ph")) = true;
  69. datagrid1.colHidden(datagrid1.colRef("wbc")) = true;
  70. }
  71. }
  72. //확인 1:책임자, 2:헌혈실장
  73. function fExeCnfm(pRef){
  74. for(i = 1; i < datagrid1.rows; i++){
  75. if(model.getValue("/root/main/qclist[" + i + "]/chk") == "true"){
  76. datagrid1.addStatus(i, "update");
  77. }else{
  78. datagrid1.removeStatus(i, "update");
  79. }
  80. }
  81. if(!checkGridUpdate(datagrid1)){
  82. messageBox("저장할 자료가 존재하지 않아 실행", "E001");
  83. return;
  84. }
  85. model.setValue("/root/send/cnfmlist", datagrid1.getUpdateData());
  86. model.setValue("/root/send/cnfmflag", pRef);
  87. if(pRef == 2){
  88. if(Sign.signprocess()){
  89. }else{
  90. alert("인증실패");
  91. return;
  92. }
  93. }
  94. if(submit("TXLBD02001")){
  95. fGetQCList();
  96. }
  97. }
  98. //그리드 업데이트 대상 체크
  99. function checkGridUpdate(grid){
  100. var iData = grid.getUpdateDataXml("insert");
  101. var uData = grid.getUpdateDataXml("update");
  102. var dData = grid.getUpdateDataXml("delete");
  103. if (iData=="" && uData=="" && dData==""){
  104. return false;
  105. }else{
  106. return true;
  107. }
  108. }
  109. function fMake_SignData(){
  110. model.removeNodeset("/root/hidden/signdata"); //인증저장 정보 초기화
  111. model.makeNode("/root/hidden/signdata/signlist");
  112. copyNodeListType("/root/hidden/signdata/signlist" , "/root/main/qclist[chk = 'true']");
  113. Sign.addnode("/root/hidden/signdata");
  114. }
  115. ]]>
  116. </script>
  117. </model>
  118. </xhtml:head>
  119. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  120. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  121. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:224px; height:14px; ">헌혈 정도관리</caption>
  122. </group>
  123. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  124. <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1194px; y2:65px; "/>
  125. <button id="button2" class="btn2_letter2" style="left:1152px; top:44px; width:42px; height:19px; ">
  126. <caption>엑셀</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. var file = window.fileDialog("save","","true",rdo_1.label + "_정도관리","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  130. if(file != "") {
  131. datagrid1.saveExcel(file);
  132. }
  133. ]]>
  134. </script>
  135. </button>
  136. <datagrid id="datagrid1" nodeset="/root/main/qclist" class="datagrid2" caption="^검사일^헌혈증 번호^Collect Vol.(ml)&#xA;(10\^3/nL)^측정 Yield^PH^배양^백혈구수&#xA;(10\^3/nL)^Pheresis &#xA;Procedure점검^혈액관리&#xA;책임자확인^전문의^전문의확인일시" colsep="^" colwidth="25, 80, 120, 100, 80, 80, 80, 80, 100, 100, 100, 120" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:70px; width:1193px; height:670px; ">
  137. <col ref="chk" type="checkbox" style="text-align:center; "/>
  138. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
  139. <col ref="natno" format="99-99-999999" style="text-align:center; "/>
  140. <col ref="donvol" style="text-align:center; "/>
  141. <col ref="reptrslt" style="text-align:center; "/>
  142. <col ref="ph" visibility="hidden" style="text-align:center; "/>
  143. <col ref="cul" style="text-align:center; "/>
  144. <col ref="wbc" visibility="hidden" style="text-align:center; "/>
  145. <col ref="dmdeliveyn" type="combo" style="text-align:center; ">
  146. <choices>
  147. <item>
  148. <label>Y</label>
  149. <value>Y</value>
  150. </item>
  151. <item>
  152. <label>N</label>
  153. <value>N</value>
  154. </item>
  155. </choices>
  156. </col>
  157. <col disabled="true" ref="retestyn" type="combo" style="text-align:center; ">
  158. <choices>
  159. <item>
  160. <label>Y</label>
  161. <value>Y</value>
  162. </item>
  163. <item>
  164. <label>N</label>
  165. <value>N</value>
  166. </item>
  167. </choices>
  168. </col>
  169. <col ref="readdoctid" style="text-align:center; "/>
  170. <col ref="refdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  171. <script type="javascript" ev:event="onaftersort">
  172. <![CDATA[
  173. datagrid1.gridToInstance();
  174. ]]>
  175. </script>
  176. </datagrid>
  177. <group id="group2" style="left:0px; top:5px; width:1195px; height:35px; ">
  178. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:35px; "/>
  179. <line id="line11" class="line_4" style="x1:1114px; y1:7px; x2:1114px; y2:29px; "/>
  180. <button id="btn_search" class="btn1_letter2" style="left:1126px; top:7px; width:56px; height:22px; ">
  181. <caption>조회</caption>
  182. <script type="javascript" ev:event="DOMActivate">
  183. <![CDATA[
  184. fGetQCList();
  185. ]]>
  186. </script>
  187. </button>
  188. <caption id="caption7" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">시행일자 :</caption>
  189. <input id="input8" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:90px; height:19px; "/>
  190. <input id="input9" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:213px; top:8px; width:90px; height:19px; "/>
  191. <caption id="caption11" class="search_n_b" style="left:198px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  192. <caption id="caption8" class="search_name" style="left:415px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
  193. <select1 id="rdo_1" ref="/root/send/donflag" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:505px; top:9px; width:105px; height:18px; border-style:none; ">
  194. <choices>
  195. <item>
  196. <label>DGI</label>
  197. <value>2</value>
  198. </item>
  199. <item>
  200. <label>HPC</label>
  201. <value>1</value>
  202. </item>
  203. </choices>
  204. <script type="javascript" ev:event="xforms-value-changed">
  205. <![CDATA[
  206. fSetGrid();
  207. ]]>
  208. </script>
  209. </select1>
  210. </group>
  211. <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:131px; height:14px; ">정도관리 상세 내역</caption>
  212. </group>
  213. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  214. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  215. <button id="btn_init" class="btn4_letter3" navindex="8" style="left:1127px; top:3px; width:68px; height:22px; ">
  216. <caption>초기화</caption>
  217. <script type="javascript" ev:event="DOMActivate">
  218. <![CDATA[
  219. window.reload();
  220. ]]>
  221. </script>
  222. </button>
  223. <button id="btn_save" class="btn4_letter5" navindex="6" style="left:1035px; top:3px; width:92px; height:22px; ">
  224. <caption>전문의확인</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. fExeCnfm(2);
  228. ]]>
  229. </script>
  230. </button>
  231. <button id="button1" class="btn4_letter5" navindex="6" style="left:943px; top:3px; width:92px; height:22px; ">
  232. <caption>책임자확인</caption>
  233. <script type="javascript" ev:event="DOMActivate">
  234. <![CDATA[
  235. fExeCnfm(1);
  236. ]]>
  237. </script>
  238. </button>
  239. </group>
  240. </xhtml:body>
  241. </xhtml:html>