SMLOP00100_수탁검사항목조회.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLOP00100_수탁검사항목조회.xrw
  4. * 설 명 : 수탁검사항목조회
  5. * 설 계 자 : (주)에이씨케이 - 박정은
  6. * 작 성 자 : (주)에이씨케이 - 박정은
  7. * 작 성 일 : 2008.10.28
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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/>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root>
  18. <main>
  19. <sutaktestlist>
  20. <reqinstnm/>
  21. <reqdd/>
  22. <pid/>
  23. <bcno/>
  24. <reqpid/>
  25. <patnm/>
  26. <sexage/>
  27. <tclscdnm/>
  28. <spcnm/>
  29. <reptrslt/>
  30. <rsltunit/>
  31. <reflh/>
  32. <reptgbn/>
  33. <spcacptdt/>
  34. <spcacptid/>
  35. <lastreptdt/>
  36. <lastreptid/>
  37. <instcd/>
  38. <tootfact/>
  39. <urinextrvol/>
  40. <reqinstcd/>
  41. <tclscd/>
  42. <spccd/>
  43. </sutaktestlist>
  44. </main>
  45. <send>
  46. <usdd/>
  47. <uedd/>
  48. <testitem/>
  49. <userdeptflag/>
  50. <sutakinst/>
  51. <rsltgbn/>
  52. <rslt/>
  53. <codeflag/>
  54. <deptgbn/>
  55. <rsltstat/>
  56. <prcpstat/>
  57. </send>
  58. <init>
  59. <reqinstcd/>
  60. <coophosp>
  61. <coophosplist>
  62. <instcd/>
  63. <coophospcd/>
  64. <coophospnm/>
  65. <uncocd/>
  66. </coophosplist>
  67. </coophosp>
  68. </init>
  69. <hidden>
  70. <ref>
  71. <usdd/>
  72. <uedd/>
  73. <tclscdlist>
  74. <tclsnmlist/>
  75. <tclscdlist/>
  76. <tclscdlist2/>
  77. <testgrup/>
  78. </tclscdlist>
  79. <sutakinst>00</sutakinst>
  80. <rsltgbn/>
  81. <rslt/>
  82. <usertestgrup/>
  83. <rsltstat>0</rsltstat>
  84. <prcpstat>1</prcpstat>
  85. </ref>
  86. </hidden>
  87. </root>
  88. </instance>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  92. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  93. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  94. <script type="javascript" ev:event="xforms-ready">
  95. <![CDATA[
  96. fSetInit();
  97. ]]>
  98. </script>
  99. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0103"/>
  100. <submission id="TRLLP00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rslt"/>
  101. <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
  102. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  103. <submission id="TRLPJ02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/coophosp/coophosplist"/>
  104. <submission id="TRLOP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/sutaktestlist"/>
  105. </model>
  106. <script type="javascript">
  107. <![CDATA[
  108. function fExeExcel(pGridId) {
  109. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  110. if (fileName != "")
  111. {
  112. pGridId.saveExcel(fileName);
  113. }
  114. }
  115. function fSetInit(ref) {
  116. if(ref != 2) {
  117. var toDay = getCurrentDate();
  118. model.setValue("/root/hidden/ref/usdd", toDay);
  119. model.setValue("/root/hidden/ref/uedd", toDay);
  120. model.setValue("/root/hidden/ref/rsltgbn", "");
  121. model.setValue("/root/hidden/ref/rslt", "");
  122. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", "");
  123. model.setValue("/root/hidden/ref/tclscdlist/testgrup", "");
  124. }
  125. model.removeNodeset("/root/init");
  126. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  127. model.setValue("/root/send/codeflag", "0000|0103|0104|0102|"); //사용자별 검사그룹
  128. submit("TRLZZ00101");
  129. model.makeValue("/root/send/deptflagcd", "0");
  130. model.makeNode("root/init/coophosp/coophosplist");
  131. submit("TRLPJ02302", false); // 수탁기관
  132. model.refresh();
  133. }
  134. // 수탁검사항목조회
  135. function fGetSutakTestLIst(){
  136. if(model.getValue("/root/hidden/ref/usdd")=="" || model.getValue("/root/hidden/ref/uedd")=="" ){
  137. alert("접수일자 필수");
  138. return;
  139. }
  140. model.setValue("/root/send/userdeptflag", model.getValue("/root/init/LB0000/nm")); // 진검 핵의학 구분 L, N
  141. model.setValue("/root/send/usdd", model.getValue("/root/hidden/ref/usdd")); // 시작일자
  142. model.setValue("/root/send/uedd", model.getValue("/root/hidden/ref/uedd")); // 종료일자
  143. model.setValue("/root/send/testitem", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist")); // 검사코드
  144. model.setValue("/root/send/sutakinst", model.getValue("/root/hidden/ref/sutakinst")); // 수탁기관
  145. model.setValue("/root/send/rsltstat", model.getValue("/root/hidden/ref/rsltstat"));
  146. model.setValue("/root/send/prcpstat", model.getValue("/root/hidden/ref/prcpstat"));
  147. submit("TRLOP00101");
  148. }
  149. /*
  150. function fGettroblist() {
  151. if(model.getValue("/root/hidden/ref/judg")!=0||model.getValue("/root/hidden/ref/rsltgbn")!=0||
  152. model.getValue("/root/hidden/ref/panic")!=''||model.getValue("/root/hidden/ref/delta")!=''||
  153. model.getValue("/root/hidden/ref/critical")!=''){
  154. model.refresh();
  155. model.setValue("/root/send/usdd" ,model.getValue("/root/hidden/ref/usdd"));
  156. model.setValue("/root/send/uedd" ,model.getValue("/root/hidden/ref/uedd"));
  157. model.setValue("/root/send/judgmark" ,model.getValue("/root/hidden/ref/judg"));
  158. model.setValue("/root/send/rsltgbn" ,model.getValue("/root/hidden/ref/rsltgbn"));
  159. model.setValue("/root/send/rslt" ,model.getValue("/root/hidden/ref/rslt"));
  160. model.setValue("/root/send/panicmark" ,model.getValue("/root/hidden/ref/panic"));
  161. model.setValue("/root/send/deltamark" ,model.getValue("/root/hidden/ref/delta"));
  162. model.setValue("/root/send/criticalmark" ,model.getValue("/root/hidden/ref/critical"));
  163. model.setValue("/root/send/testitem" ,model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
  164. model.setValue("/root/send/deptgbn" ,model.getValue("/root/hidden/ref/deptgbn"));
  165. model.setValue("/root/send/deptL" ,model.getValue("/root/hidden/ref/deptL"));
  166. model.setValue("/root/send/deptM" ,model.getValue("/root/hidden/ref/deptM"));
  167. if(model.getValue("/root/send/panicmark")!='P')
  168. model.setValue("/root/send/panicmark" , '1');
  169. if(model.getValue("/root/send/deltamark")!='D')
  170. model.setValue("/root/send/deltamark", '1');
  171. if(model.getValue("/root/send/criticalmark")!='C')
  172. model.setValue("/root/send/criticalmark", '1');
  173. submit("TRLLP00501");
  174. }
  175. else{
  176. alert("판정, 결과, PDC구분 중 한개는 반드시 선택해야 합니다.");
  177. }
  178. }
  179. */
  180. /*
  181. function fonclickgrid() {
  182. var row = rslt.row;
  183. model.setValue("/root/hidden/reflh", model.getValue("/root/main/rslt["+row+"]/refval"));
  184. model.setValue("/root/hidden/panicval", model.getValue("/root/main/rslt["+row+"]/panicval"));
  185. model.setValue("/root/hidden/deltagbn", model.getValue("/root/main/rslt["+row+"]/deltgbn"));
  186. model.setValue("/root/hidden/deltaval", model.getValue("/root/main/rslt["+row+"]/deltaval"));
  187. model.refresh();
  188. }
  189. */
  190. /*
  191. function frsltgbn() {
  192. if(model.getValue("/root/hidden/ref/rsltgbn") != 0 ){
  193. input2.visible = true;
  194. }
  195. else{
  196. input2.visible = false;
  197. }
  198. }
  199. */
  200. /*
  201. function fComboAalue(){
  202. if(model.getValue("/root/hidden/ref/deptgbn") == "1"){
  203. cmb_dept.visible = true;
  204. combo4.visible = false;
  205. }
  206. else{
  207. cmb_dept.visible = false;
  208. combo4.visible = true;
  209. }
  210. }
  211. */
  212. //검사그룹조회
  213. function fSelectTestGrup(){
  214. model.makeValue("/root/send/testgrupnm", cmb_testitem.label);
  215. submit("TRLLF90401" ,false);
  216. fSetPopUpTclscdList();
  217. }
  218. function fSetPopUpTclscdList(){
  219. var count = getNodesetCount("/root/main/testgrupdetl");
  220. if(count > 0){
  221. var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
  222. var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  223. var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
  224. // 검사그룹 상세 목록 없을때
  225. if(sendtclsnm == ""){
  226. model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
  227. model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
  228. }else{ // 검사그룹 상세 목록 있을때
  229. for(i=2; i<= count; i++){
  230. sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
  231. //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  232. sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  233. sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
  234. }
  235. model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
  236. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
  237. model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
  238. }
  239. model.refresh();
  240. }
  241. }
  242. function fExeExcel(pGridId) {
  243. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  244. if (fileName != "")
  245. {
  246. pGridId.saveExcel(fileName);
  247. }
  248. }
  249. ]]>
  250. </script>
  251. </xhtml:head>
  252. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  253. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  254. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
  255. <caption id="caption1" class="tit_2" style="left:5px; top:80px; width:144px; height:13px; ">수탁검사항목리스트</caption>
  256. <group id="group1" style="left:0px; top:10px; width:1195px; height:60px; ">
  257. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:60px; "/>
  258. <button id="button3" class="btn1_letter2" style="left:1124px; top:19px; width:56px; height:22px; ">
  259. <caption>조회</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. //fGettroblist();
  263. fGetSutakTestLIst();
  264. ]]>
  265. </script>
  266. </button>
  267. <line id="line3" class="line_4" style="x1:1109px; y1:8px; x2:1109px; y2:51px; "/>
  268. <caption id="caption5" class="search_name" style="left:15px; top:9px; width:87px; height:17px; ">접수일자 :</caption>
  269. <caption id="caption8" style="left:196px; top:9px; width:15px; height:20px; vertical-align:middle; ">~</caption>
  270. <input id="ipt_usdt" ref="/root/hidden/ref/usdd" class="input_search" inputtype="date" style="left:106px; top:8px; width:85px; height:19px; "/>
  271. <input id="ipt_uedt" ref="/root/hidden/ref/uedd" class="input_search" inputtype="date" style="left:211px; top:8px; width:85px; height:19px; "/>
  272. <caption id="caption3" class="search_name" style="left:15px; top:33px; width:94px; height:17px; ">검사항목 :</caption>
  273. <button id="button6" class="icon_search" style="left:715px; top:33px; width:16px; height:16px; ">
  274. <caption/>
  275. <script type="javascript" ev:event="DOMActivate">
  276. <![CDATA[
  277. modal("SMLLF90400", "", "", "", "", "/root/hidden/ref/tclscdlist/testgrup", "/root/hidden/tclscdlist/testgrup");
  278. ]]>
  279. </script>
  280. </button>
  281. <input id="ipt_tclscdlist" ref="/root/hidden/ref/tclscdlist/tclsnmlist" style="left:195px; top:32px; width:510px; height:19px; "/>
  282. <select1 id="cmb_testitem" ref="/root/hidden/ref/tclscdlist/testgrup" class="combo_s_essential" appearance="minimal" style="left:106px; top:32px; width:85px; height:19px; ">
  283. <choices>
  284. <itemset nodeset="/root/init/LB0103">
  285. <label ref="nm"/>
  286. <value ref="cd"/>
  287. </itemset>
  288. </choices>
  289. <script type="javascript" ev:event="xforms-value-changed">
  290. <![CDATA[
  291. fSelectTestGrup();
  292. ]]>
  293. </script>
  294. </select1>
  295. <caption id="caption12" class="search_name" style="left:339px; top:8px; width:92px; height:17px; ">수탁기관 :</caption>
  296. <select1 id="combo1" ref="/root/hidden/ref/sutakinst" navindex="3" appearance="minimal" itemcount="20" style="left:435px; top:7px; width:155px; height:19px; ">
  297. <choices>
  298. <itemset nodeset="/root/init/coophosp/coophosplist">
  299. <label ref="coophospnm"/>
  300. <value ref="coophospcd"/>
  301. </itemset>
  302. </choices>
  303. </select1>
  304. <caption id="caption2" class="search_name" style="left:864px; top:8px; width:92px; height:17px; ">결과상태 :</caption>
  305. <select1 id="cmb_rsltstat" ref="/root/hidden/ref/rsltstat" class="combo_default" appearance="minimal" style="left:960px; top:8px; width:105px; height:19px; ">
  306. <choices>
  307. <item>
  308. <label>전체</label>
  309. <value>0</value>
  310. </item>
  311. <item>
  312. <label>미검사</label>
  313. <value>1</value>
  314. </item>
  315. <item>
  316. <label>미완료</label>
  317. <value>2</value>
  318. </item>
  319. <item>
  320. <label>최종보고</label>
  321. <value>3</value>
  322. </item>
  323. <item>
  324. <label>재검</label>
  325. <value>4</value>
  326. </item>
  327. </choices>
  328. </select1>
  329. <select id="checkbox1" ref="/root/hidden/ref/prcpstat" overflow="visible" appearance="full" style="left:755px; top:9px; width:90px; height:15px; border-style:none; ">
  330. <choices>
  331. <item>
  332. <label>미채혈포함</label>
  333. <value>1</value>
  334. </item>
  335. </choices>
  336. </select>
  337. </group>
  338. <datagrid id="rslt" nodeset="/root/main/sutaktestlist" caption="수탁기관^요청일자^nU 등록번호^바코드번호^요청등록번호^환자명^성별/나이^검사항목명^검체명^결과값^단위^결과상태^접수일시^접수자^보고일시^보고자" colsep="^" colwidth="110, 70, 72, 70, 76, 64, 58, 110, 74, 70, 46, 74, 100, 60, 100, 70" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:100px; width:1194px; height:640px; ">
  339. <col ref="reqinstnm"/>
  340. <col ref="reqdd" format="yyyy-mm-dd"/>
  341. <col ref="pid"/>
  342. <col ref="bcno"/>
  343. <col ref="reqpid"/>
  344. <col ref="patnm"/>
  345. <col ref="sexage"/>
  346. <col ref="tclscdnm"/>
  347. <col ref="spcnm"/>
  348. <col ref="reptrslt"/>
  349. <col ref="rsltunit"/>
  350. <col ref="reptgbn"/>
  351. <col ref="spcacptdt" format="yyyy-mm-dd hh:nn"/>
  352. <col ref="spcacptid"/>
  353. <col ref="lastreptdt" format="yyyy-mm-dd hh:nn"/>
  354. <col ref="lastreptid" style="left:1256px; top:23px; width:100px; height:23px; "/>
  355. <script type="javascript" ev:event="onaftersort">
  356. <![CDATA[
  357. rslt.gridToInstance();
  358. ]]>
  359. </script>
  360. </datagrid>
  361. <button id="button1" class="btn2_letter2" style="left:1152px; top:74px; width:42px; height:19px; ">
  362. <caption>엑셀</caption>
  363. <script type="javascript" ev:event="DOMActivate">
  364. <![CDATA[
  365. fExeExcel(rslt);
  366. ]]>
  367. </script>
  368. </button>
  369. </group>
  370. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  371. <button id="button5" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  372. <caption>초기화</caption>
  373. <script type="javascript" ev:event="onclick">
  374. <![CDATA[
  375. fSetInit();
  376. ]]>
  377. </script>
  378. </button>
  379. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  380. </group>
  381. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  382. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">수탁검사항목조회</caption>
  383. </group>
  384. </xhtml:body>
  385. </xhtml:html>