SMLLJ00800_CMC위수탁접수관리(수탁병원)미사용.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLJ00700_CMC위수탁접수관리.xrw
  4. * 설 명 : 세포유전대장
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2009.10.07
  8. * 수정이력 : 2009.12.20 박정은 접수시 의뢰서 전송기능 추가
  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>CMC위수탁접수관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <trustlist>
  20. <chk/>
  21. <reqinstcd/>
  22. <reqbcno/>
  23. <tclsnm/>
  24. <spcnm/>
  25. <reqtclscd/>
  26. <reqspccd/>
  27. <trustinstcd/>
  28. <trustbcno/>
  29. <reqpid/>
  30. <trustpid/>
  31. <patnm/>
  32. <rrgstno1/>
  33. <rrgstno2/>
  34. <psptno/>
  35. <age/>
  36. <sex/>
  37. <bixflagcd/>
  38. <reqdd/>
  39. <reqtm/>
  40. <reqnm/>
  41. <cnfmdd/>
  42. <cnfttm/>
  43. <cnfmnm/>
  44. <conttestintvlflagcd/>
  45. <conttestorgtims/>
  46. <conttestbasetm/>
  47. <prcpdelivefact/>
  48. <suppkind/>
  49. <acptstatcd/>
  50. <etc1/>
  51. <etc2/>
  52. <etc3/>
  53. <urinextrvol/>
  54. <reqno/>
  55. <userflagcd/>
  56. <reqorddrnm/>
  57. <reqorddeptnm/>
  58. <reqwardroom/>
  59. <reqcnts/>
  60. </trustlist>
  61. <TestInfo>
  62. <barcodeinfo/>
  63. <errinfo/>
  64. </TestInfo>
  65. </main>
  66. <send>
  67. <data1/>
  68. <data2/>
  69. <codeflag/>
  70. <drid/>
  71. <orddeptcd/>
  72. <scrnid/>
  73. </send>
  74. <init>
  75. </init>
  76. <hidden>
  77. <ref>
  78. <trustgbn>1</trustgbn>
  79. <fromdd/>
  80. <todd/>
  81. <trustinstcd>00</trustinstcd>
  82. <reqpid/>
  83. <trustpid/>
  84. </ref>
  85. <drid>00</drid>
  86. </hidden>
  87. <temp>
  88. </temp>
  89. </root>
  90. </instance>
  91. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  93. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  94. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  95. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  96. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  97. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  98. <script type="javascript" src="../../../lis/commonweb/js/HanFont24.js"/>
  99. <script type="javascript" ev:event="xforms-ready">
  100. <![CDATA[
  101. fSetInit();
  102. ]]>
  103. </script>
  104. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB"/>
  105. <submission id="TRLLJ00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/trustlist"/>
  106. <submission id="TXLLJ00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/TestInfo"/>
  107. <!-- 프린터 설정-->
  108. <submission id="TRLLC90101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/barcdprntsetup"/>
  109. </model>
  110. <script type="javascript">
  111. <![CDATA[
  112. function fSetInit(){
  113. model.setValue("/root/send/codeflag", "0110|0000|0415|"); //0110 외부기관코드 0000 유저플래그 0415 후인증의사
  114. submit("TRLZZ00101");
  115. var today = getCurrentDate();
  116. grd_trustlist.fixedcellcheckbox(0,1)=true;
  117. fSetacptbutton(1);
  118. model.setValue("/root/hidden/ref/fromdd", today);
  119. model.setValue("/root/hidden/ref/todd", today);
  120. model.removeNodeset("/root/main/trustlist");
  121. model.setValue("/root/send/scrnid", getScreenID());
  122. submit("TRLLC90101");
  123. lzzfMakeBrcdPrntObjHanDo("CommAX");
  124. model.refresh();
  125. }
  126. function fGetTrustOperList(){
  127. model.makeValue("/root/hidden/ref/userflagcd", model.getValue("/root/init/LB0000/nm"));
  128. model.copyNode("/root/send/data1" , "/root/hidden/ref");
  129. submit("TRLLJ00801");
  130. }
  131. // 접수
  132. function fSetTrustAcpt(){
  133. var drid = model.getValue("/root/hidden/drid");
  134. var orddeptcd;
  135. if(drid == "00"){
  136. alert("후인증 의사를 지정해 주십시오.");
  137. return;
  138. }
  139. var n = getNodesetCount("/root/init/LB0415");
  140. for(var dRow = 1 ; dRow < n ; dRow++){
  141. if(model.getValue("/root/init/LB0415["+dRow+"]/cd") == drid){
  142. orddeptcd = model.getValue("/root/init/LB0415["+dRow+"]/etc01");
  143. }
  144. }
  145. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  146. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  147. grd_trustlist.rowStatus(tRow) = 2;
  148. }else{
  149. grd_trustlist.rowStatus(tRow) = 0;
  150. }
  151. }
  152. model.setValue("/root/send/orddeptcd", orddeptcd);
  153. model.setValue("/root/send/drid", drid);
  154. model.setValue("/root/send/data2", getGridUpdateData(grd_trustlist));
  155. submit("TXLLJ00801");
  156. var prtkind = model.getvalue("/root/main/barcdprntsetup/prntsetupinfo/setupinfo/prntkind");
  157. if( prtkind == "2" || prtkind == "6" || prtkind == "7" ){
  158. fLisSpcBarcodePrint2("/root/main/barcode/barcodeinfo", "", "", "true");
  159. }else if(prtkind=="8"){ // B472
  160. fLisSpcBarcodePrint3("/root/main/TestInfo/barcodeinfo", "", "", "true");
  161. }else{ // Zebra
  162. fLisSpcBarcodePrint("/root/main/TestInfo/barcodeinfo", "", "", "true"); //fLisSpcBarcodePrint(진검바코드인스턴스, 보관검체바코드갯수, 병리바코드갯수, 화면구분(병동,환자별일때 true))
  163. }
  164. // err있으면
  165. if(model.getValue("/root/main/TestInfo/errinfo/errcnt") !="" ){
  166. alert("▶ " + model.getValue("/root/main/TestInfo/errinfo/errcnt"));
  167. }
  168. // 접수후 재조회
  169. fGetTrustOperList();
  170. }
  171. function fExeTrustRadio(){
  172. var Tradio = model.getValue("/root/hidden/ref/trustgbn");
  173. fSetacptbutton(Tradio);
  174. model.refresh();
  175. }
  176. //프린터 설정
  177. function fSetPrint() {
  178. var count = getNodesetCount("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  179. if(count == 0) {
  180. model.makeNode("/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  181. }
  182. open("SPLLC90100_바코드프린터설정.xrw", "", "", "", "", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo", "/root/main/barcdprntsetup/prntsetupinfo/setupinfo");
  183. }
  184. function fSetallcheck(){
  185. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  186. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  187. grd_trustlist.rowStatus(tRow) = 2; // 수정
  188. }else{
  189. grd_trustlist.rowStatus(tRow) = 0; // 취소
  190. }
  191. }
  192. grd_trustlist.refresh();
  193. }
  194. // 접수, 접수취소버튼 보이게
  195. function fSetacptbutton(ref){
  196. if(ref=="1"){
  197. button1.visible = true;
  198. button2.visible = false;
  199. }else{
  200. button1.visible = false;
  201. button2.visible = true;
  202. }
  203. }
  204. // 접수취소
  205. function fSetTrustAcptCancel(){
  206. alert("개발중");
  207. }
  208. ]]>
  209. </script>
  210. </xhtml:head>
  211. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  212. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  213. <line id="line1" class="line_1" style="x1:0px; y1:105px; x2:1194px; y2:105px; "/>
  214. <caption id="caption1" class="tit_2" style="left:5px; top:90px; width:95px; height:14px; ">위수탁리스트</caption>
  215. <group id="group1" style="left:0px; top:10px; width:1195px; height:70px; ">
  216. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:70px; "/>
  217. <button id="btn_ref" class="btn1_letter2" style="left:1124px; top:24px; width:56px; height:22px; ">
  218. <caption>조회</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. fGetTrustOperList();
  222. ]]>
  223. </script>
  224. </button>
  225. <line id="line3" class="line_4" style="x1:1109px; y1:24px; x2:1109px; y2:46px; "/>
  226. <caption id="caption3" class="search_name" style="left:19px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
  227. <select1 id="radio1" ref="/root/hidden/ref/trustgbn" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:115px; top:8px; width:165px; height:20px; border-style:none; ">
  228. <choices>
  229. <item>
  230. <label>수탁요청</label>
  231. <value>1</value>
  232. </item>
  233. <item>
  234. <label>수탁접수</label>
  235. <value>2</value>
  236. </item>
  237. </choices>
  238. <script type="javascript" ev:event="xforms-value-changed">
  239. <![CDATA[
  240. fExeTrustRadio();
  241. ]]>
  242. </script>
  243. </select1>
  244. <caption id="caption2" class="search_no_b" style="left:505px; top:10px; width:15px; height:17px; vertical-align:middle; ">~</caption>
  245. <input id="ipt_from" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:415px; top:8px; width:85px; height:19px; "/>
  246. <input id="ipt_to" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:520px; top:8px; width:85px; height:19px; "/>
  247. <caption id="caption4" class="search_name" style="left:324px; top:9px; width:87px; height:17px; ">조회일자 :</caption>
  248. <caption id="caption11" class="search_name" style="left:670px; top:9px; width:92px; height:17px; ">요청기관 :</caption>
  249. <select1 id="combo1" ref="/root/hidden/ref/trustinstcd" class="combo_default" appearance="minimal" style="left:765px; top:8px; width:120px; height:19px; ">
  250. <choices>
  251. <itemset nodeset="/root/init/LB0110">
  252. <label ref="nm"/>
  253. <value ref="cd"/>
  254. </itemset>
  255. </choices>
  256. </select1>
  257. <caption id="caption5" class="search_name" style="left:19px; top:38px; width:149px; height:17px; ">의뢰병원 등록번호 :</caption>
  258. <input id="input1" ref="/root/hidden/ref/reqpid" class="input_search" style="left:180px; top:37px; width:100px; height:19px; "/>
  259. <caption id="caption7" class="search_name" style="left:324px; top:38px; width:149px; height:17px; ">수탁병원 등록번호 :</caption>
  260. <input id="input2" ref="/root/hidden/ref/trustpid" class="input_search" style="left:505px; top:37px; width:100px; height:19px; "/>
  261. </group>
  262. <button id="btn_excel" class="btn2_letter2" visibility="visible" style="left:1152px; top:84px; width:42px; height:19px; ">
  263. <caption>엑셀</caption>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. ]]>
  267. </script>
  268. </button>
  269. <datagrid id="grd_trustlist" nodeset="/root/main/trustlist" class="datagrid2" caption="^요청일자^의뢰기관^의뢰병원&#xA;바코드번호^수탁기관&#xA;바코드번호^검사명^검체명^의뢰병원&#xA;등록번호^CMCnU&#xA;등록번호^환자명^성별^나이^주민번호^주민번호^여권번호^구분코드^요청일자^요청시간^요청자명^확인일자^확인시간^확인자명^연속검사여부^연속검사^연속검사^전달사항^의뢰의사^의뢰부서^의뢰병동/병실^미수코드^접수구분^수탁기관^소변량^tclscd^spccd^reqno^reqcnts^userflagcd" colsep="^" colwidth="25, 80, 100, 90, 90, 150, 100, 80, 80, 70, 35, 35, 55, 60, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 72, 74, 100, 67, 53, 49, 43, 41, 100" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:105px; width:1194px; height:620px; text-align:center; ">
  270. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  271. <col ref="reqdd" format="yyyy-mm-dd"/>
  272. <col disabled="true" ref="reqinstcd" type="combo">
  273. <choices>
  274. <itemset nodeset="/root/init/LB0110">
  275. <label ref="nm"/>
  276. <value ref="cd"/>
  277. </itemset>
  278. </choices>
  279. </col>
  280. <col ref="reqbcno" type="input"/>
  281. <col ref="trustbcno" type="input"/>
  282. <col ref="tclsnm" style="text-align:left; "/>
  283. <col ref="spcnm" style="text-align:left; "/>
  284. <col ref="reqpid" type="input"/>
  285. <col ref="trustpid" type="input"/>
  286. <col ref="patnm"/>
  287. <col ref="sex"/>
  288. <col ref="age"/>
  289. <col ref="rrgstno1"/>
  290. <col ref="rrgstno2"/>
  291. <col ref="psptno" visibility="hidden"/>
  292. <col ref="bixflagcd"/>
  293. <col ref="reqdd" format="yyyy-mm-dd"/>
  294. <col ref="reqtm" format="hh:nn:ss"/>
  295. <col ref="reqnm"/>
  296. <col ref="cnfmdd" format="yyyy-mm-dd"/>
  297. <col ref="cnfmtm" format="hh:nn:ss"/>
  298. <col ref="cnfmnm"/>
  299. <col ref="conttestintvlflagcd"/>
  300. <col ref="conttestorgtims"/>
  301. <col ref="conttestbasetm"/>
  302. <col ref="prcpdelivefact"/>
  303. <col ref="reqorddrnm"/>
  304. <col ref="reqorddeptnm"/>
  305. <col ref="reqwardroom"/>
  306. <col ref="suppkind"/>
  307. <col ref="acptstatcd"/>
  308. <col disabled="true" ref="trustinstcd" type="combo">
  309. <choices>
  310. <itemset nodeset="/root/init/LB0110">
  311. <label ref="nm"/>
  312. <value ref="cd"/>
  313. </itemset>
  314. </choices>
  315. </col>
  316. <col ref="urinextrvol"/>
  317. <col ref="reqtclscd"/>
  318. <col ref="reqspccd"/>
  319. <col ref="reqno" visibility="hidden"/>
  320. <col/>
  321. <col ref="userflagcd" visibility="hidden"/>
  322. <script type="javascript" ev:event="onaftersort">
  323. <![CDATA[
  324. grd_trustlist.gridToInstance();
  325. ]]>
  326. </script>
  327. <script type="javascript" ev:event="xforms-select">
  328. <![CDATA[
  329. fSetallcheck();
  330. ]]>
  331. </script>
  332. <script type="javascript" ev:event="xforms-deselect">
  333. <![CDATA[
  334. fSetallcheck();
  335. ]]>
  336. </script>
  337. </datagrid>
  338. <select1 id="cmb_orddrid" ref="/root/hidden/drid" appearance="minimal" style="left:1047px; top:84px; width:100px; height:19px; ">
  339. <choices>
  340. <itemset nodeset="/root/init/LB0415">
  341. <label ref="nm"/>
  342. <value ref="cd"/>
  343. </itemset>
  344. </choices>
  345. </select1>
  346. <caption id="cap_orddrid" class="cell_1" style="left:963px; top:82px; width:81px; height:23px; font-family:돋움; vertical-align:middle; ">후인증 의사</caption>
  347. </group>
  348. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  349. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  350. <caption>초기화</caption>
  351. <script type="javascript" ev:event="onclick">
  352. <![CDATA[
  353. fSetInit();
  354. ]]>
  355. </script>
  356. </button>
  357. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  358. <button id="button1" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  359. <caption>접수</caption>
  360. <script type="javascript" ev:event="onclick">
  361. <![CDATA[
  362. fSetTrustAcpt();
  363. ]]>
  364. </script>
  365. </button>
  366. <button id="btn_prnt" class="btn3_letter5" navindex="18" style="left:0px; top:3px; width:92px; height:22px; ">
  367. <caption>프린터설정</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. fSetPrint();
  371. ]]>
  372. </script>
  373. </button>
  374. <button id="button2" class="btn4_letter4" style="left:1044px; top:3px; width:80px; height:22px; ">
  375. <caption>접수취소</caption>
  376. <script type="javascript" ev:event="onclick">
  377. <![CDATA[
  378. //fSetTrustAcpt();
  379. fSetTrustAcptCancel();
  380. ]]>
  381. </script>
  382. </button>
  383. </group>
  384. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  385. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:202px; height:14px; ">CMC위수탁접수관리(수탁병원)</caption>
  386. </group>
  387. </xhtml:body>
  388. </xhtml:html>