SMLLP00300_세포유전대장.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP00300_세포유전대장.xrw
  4. * 설 명 : 세포유전대장
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2009.03.17
  8. * 수정이력 : worksheet 수정해야함
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>세포유전대장</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <getsepoworklist>
  20. <spcacptdt/>
  21. <workno/>
  22. <pid/>
  23. <hngnm/>
  24. <sex/>
  25. <age/>
  26. <orddeptnm/>
  27. <orddrnm/>
  28. <wardroom/>
  29. <rgstdt/>
  30. <tclsnm/>
  31. <spcnm/>
  32. <bcno/>
  33. <tclscd/>
  34. <wbcrslt2/>
  35. </getsepoworklist>
  36. <getsepoworksheet>
  37. <tclscd/>
  38. <tclsnm/>
  39. <spcnm/>
  40. <cfrslt/>
  41. <wbcrslt/>
  42. <reqcnts/>
  43. <etc/>
  44. <claim/>
  45. </getsepoworksheet>
  46. <testgrupdetl>
  47. <chk/>
  48. <tclsnm/>
  49. <tclscd/>
  50. </testgrupdetl>
  51. <getBMTInfo>
  52. <pid/>
  53. <btype/>
  54. <trnptdg/>
  55. <trnptdd/>
  56. <dnorbtype/>
  57. <dnornm/>
  58. <dnorsex/>
  59. <dnorage/>
  60. <dnorrela/>
  61. </getBMTInfo>
  62. </main>
  63. <send>
  64. <codeflag/>
  65. <tclsnmlist/>
  66. <fromdd/>
  67. <todd/>
  68. <tclscdlist/>
  69. <pid/>
  70. <tclscd/>
  71. <testcd/>
  72. <bmtsearchgbn/>
  73. </send>
  74. <init>
  75. </init>
  76. <hidden>
  77. <ref>
  78. <fromdd/>
  79. <todd/>
  80. <tclscdlist>
  81. <tclscdlist/>
  82. <tclsnmlist/>
  83. <tclscdlist2/>
  84. <testgrup/>
  85. </tclscdlist>
  86. </ref>
  87. </hidden>
  88. </root>
  89. </instance>
  90. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  93. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. fSetInit();
  97. ]]>
  98. </script>
  99. <submission id="TRLLP00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getsepoworklist"/>
  100. <submission id="TRLLP00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getsepoworksheet"/>
  101. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0103"/>
  102. <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
  103. <submission id="TRLBT10209" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/getBMTInfo"/>
  104. </model>
  105. <script type="javascript">
  106. <![CDATA[
  107. // 초기화
  108. function fSetInit(){
  109. var toDay = getCurrentDate();
  110. model.setValue("/root/hidden/ref/fromdd", toDay);
  111. model.setValue("/root/hidden/ref/todd", toDay);
  112. model.removeNodeset("/root/main/getsepoworklist");
  113. model.removeNodeset("/root/init");
  114. fBaseInfoRef("0103|");
  115. model.refresh();
  116. }
  117. // 조회
  118. function fGetSepoWorksheet(){
  119. model.setValue("/root/send/fromdd", model.getValue("/root/hidden/ref/fromdd"));
  120. model.setValue("/root/send/todd", model.getValue("/root/hidden/ref/todd"));
  121. if(model.getValue("/root/hidden/ref/tclscdlist/tclsnmlist") == "") {
  122. model.setValue("/root/send/tclscdlist", "");
  123. } else {
  124. model.setValue("/root/send/tclscdlist", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
  125. }
  126. //alert( model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
  127. submit("TRLLP00301");
  128. }
  129. // 그리드 선택시 worksheet 조회
  130. function fSetWorksheet(){
  131. model.setValue("/root/send/pid", model.getValue("/root/main/getsepoworklist["+grd_rsltregst.row+"]/pid"));
  132. model.setValue("/root/send/testcd", "LHB001"); //Bone Marrow에서의 이전결과 조회가 아닐 때 코드픽스
  133. //model.setValue("/root/send/tclscd", model.getValue("/root/main/getsepoworklist["+grd_rsltregst.row+"]/tclscd"));
  134. model.setValue("/root/send/bmtsearchgbn","info");
  135. submit("TRLLP00302");
  136. submit("TRLBT10209");
  137. model.makeValue("/root/main/getsepoworksheet/tclscd", model.getValue("/root/main/getsepoworklist["+grd_rsltregst.row+"]/tclscd"));
  138. model.makeValue("/root/main/getsepoworksheet/tclsnm", model.getValue("/root/main/getsepoworklist["+grd_rsltregst.row+"]/tclsnm"));
  139. model.makeValue("/root/main/getsepoworksheet/spcnm", model.getValue("/root/main/getsepoworklist["+grd_rsltregst.row+"]/spcnm"));
  140. model.makeValue("/root/main/getsepoworksheet/wbcrslt", model.getValue("/root/main/getsepoworklist["+grd_rsltregst.row+"]/wbcrslt2"));
  141. model.makeValue("/root/main/getsepoworksheet/reqcnts", model.getValue("/root/main/getsepoworklist["+grd_rsltregst.row+"]/reqcnts"));
  142. model.makeValue("/root/main/getsepoworksheet/etc", model.getValue("/root/main/getsepoworklist["+grd_rsltregst.row+"]/etc"));
  143. model.makeValue("/root/main/getsepoworksheet/claim", model.getValue("/root/main/getsepoworklist["+grd_rsltregst.row+"]/claim"));
  144. if(getNodesetCount("/root/main/getBMTInfo") > 0){
  145. if(model.getValue("/root/main/getBMTInfo/dnorsex") == "F"){
  146. model.setValue("/root/main/getBMTInfo/dnorsex", "여");
  147. }
  148. else{
  149. model.setValue("/root/main/getBMTInfo/dnorsex", "남");
  150. }
  151. var bmtyn = "시행일 = " + model.getValue("/root/main/getBMTInfo/trnptdd") + " 공여자 이름(가족/타인) = " + model.getValue("/root/main/getBMTInfo/dnornm") + "(" + model.getValue("/root/main/getBMTInfo/dnorrela") + ")" + " 공여자 성별 = " + model.getValue("/root/main/getBMTInfo/dnorsex");
  152. //alert(bmtyn);
  153. model.makevalue("/root/main/getsepoworksheet/bmtyn",bmtyn);
  154. }
  155. model.refresh();
  156. //textarea6.refresh();
  157. }
  158. //엑셀저장
  159. function fExeExcel(pGridId) {
  160. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  161. if (fileName != "")
  162. {
  163. pGridId.saveExcel(fileName);
  164. }
  165. }
  166. //검사그룹조회
  167. function fSelectTestGrup(){
  168. model.makeValue("/root/send/testgrupnm", cmb_testitem.label);
  169. submit("TRLLF90401" ,false);
  170. fSetPopUpTclscdList();
  171. }
  172. // 검사항목 조회
  173. function fSetPopUpTclscdList(){
  174. var count = getNodesetCount("/root/main/testgrupdetl");
  175. if(count > 0){
  176. var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
  177. var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  178. var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  179. // 검사그룹 상세 목록 없을때
  180. if(sendtclsnm == ""){
  181. model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
  182. model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
  183. }else{ // 검사그룹 상세 목록 있을때
  184. for(i=2; i<= count; i++){
  185. sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
  186. //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  187. sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  188. sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  189. }
  190. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
  191. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
  192. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
  193. }
  194. model.refresh();
  195. }
  196. }
  197. ]]>
  198. </script>
  199. </xhtml:head>
  200. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  201. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  202. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  203. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:75px; height:13px; ">결과대장</caption>
  204. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  205. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  206. <button id="btn_ref" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  207. <caption>조회</caption>
  208. <script type="javascript" ev:event="DOMActivate">
  209. <![CDATA[
  210. fGetSepoWorksheet();
  211. ]]>
  212. </script>
  213. </button>
  214. <line id="line3" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
  215. <caption id="caption5" class="search_name" style="left:15px; top:9px; width:117px; height:17px; ">접수 조회일 :</caption>
  216. <caption id="caption8" style="left:226px; top:9px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  217. <input id="ipt_usdd" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:131px; top:8px; width:90px; height:19px; "/>
  218. <input id="ipt_uedd" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:241px; top:8px; width:90px; height:19px; "/>
  219. <caption id="caption13" class="search_name" style="left:345px; top:10px; width:94px; height:17px; ">검사항목 :</caption>
  220. <select1 id="cmb_testitem" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_search" appearance="minimal" style="left:435px; top:10px; width:136px; height:19px; ">
  221. <choices>
  222. <itemset nodeset="/root/init/LB0103">
  223. <label ref="nm"/>
  224. <value ref="cd"/>
  225. </itemset>
  226. </choices>
  227. <script type="javascript" ev:event="xforms-value-changed">
  228. <![CDATA[
  229. fSelectTestGrup();
  230. ]]>
  231. </script>
  232. </select1>
  233. <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" style="left:580px; top:10px; width:485px; height:19px; "/>
  234. <button id="button6" class="icon_search" style="left:1074px; top:12px; width:16px; height:16px; ">
  235. <caption/>
  236. <script type="javascript" ev:event="DOMActivate">
  237. <![CDATA[
  238. modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
  239. ]]>
  240. </script>
  241. </button>
  242. </group>
  243. <button id="btn_excel" class="btn2_letter2" visibility="visible" style="left:1152px; top:49px; width:42px; height:19px; ">
  244. <caption>엑셀</caption>
  245. <script type="javascript" ev:event="DOMActivate">
  246. <![CDATA[
  247. fExeExcel(grd_rsltregst);
  248. ]]>
  249. </script>
  250. </button>
  251. <datagrid id="grd_rsltregst" nodeset="/root/main/getsepoworklist" caption="접수시간^접수번호^등록번호^환자명^성별^나이^처방과^처방의^병동/병실^처방시간^처방명^검체명^bcno^tclscd^wbcrslt2" colsep="^" colwidth="120, 110, 70, 70, 45, 46, 60, 70, 90, 120, 300, 0, 0, 0, 0" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1194px; height:400px; text-align:center; ">
  252. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn"/>
  253. <col disabled="true" ref="workno" style="text-align:left; "/>
  254. <col ref="pid" style="text-align:center; "/>
  255. <col ref="hngnm"/>
  256. <col ref="sex" style="text-align:center; "/>
  257. <col ref="age"/>
  258. <col ref="orddeptnm"/>
  259. <col ref="orddrnm"/>
  260. <col ref="wardroom"/>
  261. <col ref="rgstdt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
  262. <col ref="tclsnm" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
  263. <col ref="spcnm"/>
  264. <col ref="bcno" style="text-align:left; "/>
  265. <col ref="tclscd" style="text-align:left; "/>
  266. <col ref="wbcrslt2"/>
  267. <script type="javascript" ev:event="onaftersort">
  268. <![CDATA[
  269. grd_rsltregst.gridToInstance();
  270. ]]>
  271. </script>
  272. <script type="javascript" ev:event="onclick">
  273. <![CDATA[
  274. // 아래쪽 worksheet 조회
  275. fSetWorksheet();
  276. ]]>
  277. </script>
  278. </datagrid>
  279. <caption id="caption2" class="tit_2" style="left:5px; top:490px; width:121px; height:13px; ">Work Sheet 정보</caption>
  280. <line id="line4" class="line_1" style="x1:0px; y1:505px; x2:1194px; y2:505px; "/>
  281. <output id="output4" ref="/root/main/getsepoworksheet/tclscd" class="output_fix" style="left:133px; top:511px; width:150px; height:19px; "/>
  282. <output id="output1" ref="/root/main/getsepoworksheet/tclsnm" class="output_fix" style="left:287px; top:511px; width:600px; height:19px; "/>
  283. <output id="output2" ref="/root/main/getsepoworksheet/spcnm" class="output_fix" style="left:891px; top:511px; width:302px; height:19px; "/>
  284. <caption id="caption9" class="cell_1" style="left:0px; top:711px; width:130px; height:23px; text-align:left; vertical-align:middle; ">WBC Count 검사결과</caption>
  285. <textarea id="textarea1" ref="/root/main/getsepoworksheet/reqcnts" style="left:133px; top:535px; width:460px; height:54px; "/>
  286. <textarea id="textarea2" ref="/root/main/getsepoworksheet/etc" style="left:133px; top:594px; width:460px; height:54px; "/>
  287. <textarea id="textarea3" ref="/root/main/getsepoworksheet/claim" style="left:133px; top:653px; width:460px; height:54px; "/>
  288. <textarea id="textarea4" style="left:730px; top:535px; width:464px; height:54px; "/>
  289. <textarea id="textarea5" ref="/root/main/getsepoworksheet/cfrslt" style="left:730px; top:594px; width:464px; height:54px; "/>
  290. <textarea id="textarea6" ref="/root/main/getsepoworksheet/bmtyn" style="left:730px; top:653px; width:464px; height:54px; text-align:left; vertical-align:middle; "/>
  291. <output id="output3" ref="/root/main/getsepoworksheet/wbcrslt" class="output_fix" style="left:133px; top:712px; width:460px; height:19px; "/>
  292. <line id="line6" class="line_3" style="x1:0px; y1:733px; x2:1194px; y2:733px; "/>
  293. <line id="line12" class="line_2" style="x1:0px; y1:532px; x2:1194px; y2:532px; "/>
  294. <caption id="caption18" class="cell_1" style="left:0px; top:510px; width:130px; height:23px; text-align:left; vertical-align:middle; ">처방명</caption>
  295. <line id="line5" class="line_2" style="x1:0px; y1:591px; x2:1194px; y2:591px; "/>
  296. <caption id="caption3" class="cell_1" style="left:0px; top:534px; width:130px; height:58px; text-align:left; vertical-align:middle; ">적응증</caption>
  297. <line id="line7" class="line_2" style="x1:0px; y1:650px; x2:1194px; y2:650px; "/>
  298. <caption id="caption4" class="cell_1" style="left:0px; top:593px; width:130px; height:58px; text-align:left; vertical-align:middle; ">주요증상</caption>
  299. <line id="line8" class="line_2" style="x1:0px; y1:709px; x2:1194px; y2:709px; "/>
  300. <caption id="caption7" class="cell_1" style="left:0px; top:652px; width:130px; height:58px; text-align:left; vertical-align:middle; ">전달사항</caption>
  301. <caption id="caption10" class="cell_1" style="left:597px; top:534px; width:130px; height:58px; text-align:left; vertical-align:middle; ">과거력</caption>
  302. <caption id="caption11" class="cell_1" style="left:597px; top:593px; width:130px; height:58px; text-align:left; vertical-align:middle; ">CF 검사결과</caption>
  303. <caption id="caption12" class="cell_1" style="left:597px; top:652px; width:130px; height:58px; text-align:left; vertical-align:middle; ">골수이식 시행여부</caption>
  304. </group>
  305. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  306. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  307. <caption>초기화</caption>
  308. <script type="javascript" ev:event="onclick">
  309. <![CDATA[
  310. fSetInit();
  311. ]]>
  312. </script>
  313. </button>
  314. <button id="btn_print" class="btn6_letter2" visibility="visible" style="left:0px; top:3px; width:56px; height:22px; ">
  315. <caption>출력</caption>
  316. <script type="javascript" ev:event="DOMActivate">
  317. <![CDATA[
  318. model.makeValue("/root/main/getrsltregst/formdd",model.getValue("/root/hidden/ref/fromdd"));
  319. model.makeValue("/root/main/getrsltregst/todd",model.getValue("/root/hidden/ref/todd"));
  320. exeReportPreview("RPLLP00400", "XMLSTR", "/root/main/getrsltregst");
  321. ]]>
  322. </script>
  323. </button>
  324. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  325. </group>
  326. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  327. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:98px; height:13px; ">세포유전대장</caption>
  328. </group>
  329. </xhtml:body>
  330. </xhtml:html>