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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLJ00700_CMC위수탁접수관리.xrw
  4. * 설 명 : 세포유전대장
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2009.10.07
  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>CMC위수탁접수관리</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <trustlist>
  20. <acptdd/>
  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. <reqorddrnm/>
  55. <reqorddeptnm/>
  56. <reqwardroom/>
  57. <reqno/>
  58. <userflagcd/>
  59. </trustlist>
  60. </main>
  61. <send>
  62. <data1/>
  63. <data2/>
  64. <codeflag/>
  65. </send>
  66. <init>
  67. </init>
  68. <hidden>
  69. <ref>
  70. <trustgbn>1</trustgbn>
  71. <fromdd/>
  72. <todd/>
  73. <trustinstcd>00</trustinstcd>
  74. </ref>
  75. <data1/>
  76. </hidden>
  77. <temp>
  78. </temp>
  79. </root>
  80. </instance>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../lis/commonweb/js/LLZ001.js"/>
  85. <script type="javascript" src="../../../lis/commonweb/js/LZZ001.js"/>
  86. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  87. <script type="javascript" ev:event="xforms-ready">
  88. <![CDATA[
  89. //초기화
  90. fSetInit();
  91. ]]>
  92. </script>
  93. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/codeflag" replace="instance" resultref="/root/LB"/>
  94. <submission id="TRLLJ00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/trustlist"/>
  95. <submission id="TXLLJ00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  96. <submission id="TXLLJ00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  97. </model>
  98. <script type="javascript">
  99. <![CDATA[
  100. //초기화
  101. function fSetInit(){
  102. model.setValue("/root/send/codeflag", "0110|0000|"); //0110 외부기관코드 0000 유저플래그
  103. submit("TRLZZ00101");
  104. var today = getCurrentDate();
  105. grd_trustlist.fixedcellcheckbox(0,1)=true;
  106. model.setValue("/root/hidden/ref/fromdd", today);
  107. model.setValue("/root/hidden/ref/todd", today);
  108. fExeTrustRadio();
  109. model.removeNodeset("/root/main/trustlist");
  110. model.refresh();
  111. }
  112. // 위수탁리스트 조회
  113. function fGetTrustOperList(){
  114. model.makeValue("/root/hidden/ref/userflagcd", model.getValue("/root/init/LB0000/nm"));
  115. model.copyNode("/root/send/data1" , "/root/hidden/ref");
  116. submit("TRLLJ00701");
  117. }
  118. // 접수
  119. function fSetTrustAcpt(){
  120. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  121. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  122. grd_trustlist.rowStatus(tRow) = 2;
  123. }else{
  124. grd_trustlist.rowStatus(tRow) = 0;
  125. }
  126. }
  127. model.setValue("/root/send/data2", getGridUpdateData(grd_trustlist));
  128. submit("TXLLJ00701");
  129. fGetTrustOperList();
  130. }
  131. // 조회구분따라 접수버튼 숨기기
  132. function fExeTrustRadio(){
  133. var Tradio = model.getValue("/root/hidden/ref/trustgbn");
  134. if(Tradio == "1"){ // 접수
  135. button1.visible = true; // 접수버튼 보임
  136. button2.visible = false; //취소버튼 안 보임
  137. }else if(Tradio == "2"){ //위탁전송
  138. button1.visible = false; // 접수버튼 안 보임
  139. button2.visible = true; //취소버튼 보임
  140. }else if(Tradio == "3"){ //확인
  141. button1.visible = false; // 접수버튼 안 보임
  142. button2.visible = false; //취소버튼 안 보임
  143. }
  144. model.refresh();
  145. }
  146. // 엑셀 저장
  147. function fExeExcel(pGridId) {
  148. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  149. if (fileName != "")
  150. {
  151. pGridId.saveExcel(fileName);
  152. }
  153. }
  154. // 의뢰한거 취소
  155. function fExeTrustCancel(){
  156. for(var tRow = 1; tRow < grd_trustlist.rows ; tRow++){
  157. if(model.getValue("/root/main/trustlist["+ tRow +"]/chk") == "true"){
  158. grd_trustlist.rowStatus(tRow) = 2;
  159. }else{
  160. grd_trustlist.rowStatus(tRow) = 0;
  161. }
  162. }
  163. model.setValue("/root/send/data2", getGridUpdateData(grd_trustlist));
  164. submit("TXLLJ00702");
  165. fGetTrustOperList();
  166. }
  167. ]]>
  168. </script>
  169. </xhtml:head>
  170. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  171. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  172. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  173. <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:95px; height:13px; ">위수탁리스트</caption>
  174. <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; ">
  175. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
  176. <button id="btn_ref" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  177. <caption>조회</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. fGetTrustOperList();
  181. ]]>
  182. </script>
  183. </button>
  184. <line id="line3" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; "/>
  185. <caption id="caption3" class="search_name" style="left:19px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
  186. <select1 id="radio1" ref="/root/hidden/ref/trustgbn" appearance="full" cellspacing="15" cols="3" overflow="visible" style="left:115px; top:8px; width:195px; height:20px; border-style:none; ">
  187. <choices>
  188. <item>
  189. <label>접수</label>
  190. <value>1</value>
  191. </item>
  192. <item>
  193. <label>위탁전송</label>
  194. <value>2</value>
  195. </item>
  196. <item>
  197. <label>확인</label>
  198. <value>3</value>
  199. </item>
  200. </choices>
  201. <script type="javascript" ev:event="xforms-value-changed">
  202. <![CDATA[
  203. fExeTrustRadio();
  204. ]]>
  205. </script>
  206. </select1>
  207. <caption id="caption2" class="search_no_b" style="left:520px; top:10px; width:15px; height:17px; vertical-align:middle; ">~</caption>
  208. <input id="ipt_from" ref="/root/hidden/ref/fromdd" class="input_search" inputtype="date" style="left:430px; top:8px; width:85px; height:19px; "/>
  209. <input id="ipt_to" ref="/root/hidden/ref/todd" class="input_search" inputtype="date" style="left:535px; top:8px; width:85px; height:19px; "/>
  210. <caption id="caption4" class="search_name" style="left:339px; top:9px; width:87px; height:17px; ">조회일자 :</caption>
  211. <caption id="caption5" class="search_name" style="left:659px; top:9px; width:87px; height:17px; ">위탁기관 :</caption>
  212. <select1 id="combo1" ref="/root/hidden/ref/trustinstcd" class="combo_search" appearance="minimal" style="left:755px; top:8px; width:130px; height:19px; ">
  213. <choices>
  214. <itemset nodeset="/root/init/LB0110">
  215. <label ref="nm"/>
  216. <value ref="cd"/>
  217. </itemset>
  218. </choices>
  219. </select1>
  220. </group>
  221. <button id="btn_excel" class="btn2_letter2" visibility="visible" style="left:1152px; top:49px; width:42px; height:19px; ">
  222. <caption>엑셀</caption>
  223. <script type="javascript" ev:event="DOMActivate">
  224. <![CDATA[
  225. fExeExcel(grd_trustlist);
  226. ]]>
  227. </script>
  228. </button>
  229. <datagrid id="grd_trustlist" nodeset="/root/main/trustlist" caption="^의뢰상태^접수일자^수탁기관^의뢰기관바코드^의뢰검사명^의뢰검체명^등록번호^환자명^성별^나이^주민번호^주민번호^의뢰의사명^진료과명^병동/병실^여권번호^구분코드^요청일자^요청시간^요청자명^확인일자^확인시간^확인자명^연속검사여부^연속검사^연속검사^전달사항^미수코드^접수구분^소변량^tclscd^spccd^수탁기관 바코드^수탁기관등록번호^의뢰기관^reqno^userflagcd" colsep="^" colwidth="25, 60, 80, 100, 90, 140, 100, 85, 80, 40, 40, 55, 60, 70, 50, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 58, 66, 100, 59, 59, 100, 100, 100, 44, 100, 100, 100, 100" dataheight="23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:75px; width:1194px; height:665px; text-align:center; ">
  230. <col checkvalue="true,false" ref="chk" type="checkbox"/>
  231. <col disabled="true" ref="acptstatcd" type="combo">
  232. <choices>
  233. <item>
  234. <label>의뢰</label>
  235. <value>0</value>
  236. </item>
  237. <item>
  238. <label>접수</label>
  239. <value>1</value>
  240. </item>
  241. <item>
  242. <label>결과</label>
  243. <value>2</value>
  244. </item>
  245. </choices>
  246. </col>
  247. <col ref="acptdd" format="yyyy-mm-dd"/>
  248. <col disabled="true" ref="trustinstcd" type="combo">
  249. <choices>
  250. <itemset nodeset="/root/init/LB0110">
  251. <label ref="nm"/>
  252. <value ref="cd"/>
  253. </itemset>
  254. </choices>
  255. </col>
  256. <col ref="reqbcno" type="input"/>
  257. <col ref="tclsnm" style="text-align:left; "/>
  258. <col ref="spcnm" style="text-align:left; "/>
  259. <col ref="reqpid" type="input"/>
  260. <col ref="patnm"/>
  261. <col ref="sex"/>
  262. <col ref="age"/>
  263. <col ref="rrgstno1"/>
  264. <col ref="rrgstno2"/>
  265. <col ref="reqorddrnm"/>
  266. <col ref="reqorddeptnm"/>
  267. <col ref="reqwardroom" style="text-align:left; "/>
  268. <col ref="psptno" visibility="hidden"/>
  269. <col ref="bixflagcd"/>
  270. <col ref="reqdd" format="yyyy-mm-dd"/>
  271. <col ref="reqtm" format="hh:nn:ss"/>
  272. <col ref="reqnm"/>
  273. <col ref="cnfmdd" format="yyyy-mm-dd"/>
  274. <col ref="cnfmtm" format="hh:nn:ss"/>
  275. <col ref="cnfmnm"/>
  276. <col ref="conttestintvlflagcd"/>
  277. <col ref="conttestorgtims"/>
  278. <col ref="conttestbasetm"/>
  279. <col ref="prcpdelivefact"/>
  280. <col ref="suppkind"/>
  281. <col ref="acptstatcd"/>
  282. <col ref="urinextrvol"/>
  283. <col ref="reqtclscd"/>
  284. <col ref="reqspccd"/>
  285. <col ref="trustbcno" type="input"/>
  286. <col ref="trustpid" type="input"/>
  287. <col disabled="true" ref="reqinstcd" type="combo">
  288. <choices>
  289. <itemset nodeset="/root/init/LB0110">
  290. <label ref="nm"/>
  291. <value ref="cd"/>
  292. </itemset>
  293. </choices>
  294. </col>
  295. <col ref="reqno" visibility="hidden"/>
  296. <col ref="userflagcd" visibility="hidden"/>
  297. <col ref="etc1" visibility="hidden"/>
  298. <col ref="etc2" visibility="hidden"/>
  299. <col ref="etc3" visibility="hidden"/>
  300. <script type="javascript" ev:event="onaftersort">
  301. <![CDATA[
  302. grd_slidelist.gridToInstance();
  303. ]]>
  304. </script>
  305. </datagrid>
  306. </group>
  307. <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
  308. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  309. <caption>초기화</caption>
  310. <script type="javascript" ev:event="onclick">
  311. <![CDATA[
  312. fSetInit();
  313. ]]>
  314. </script>
  315. </button>
  316. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  317. <button id="button1" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  318. <caption>의뢰</caption>
  319. <script type="javascript" ev:event="onclick">
  320. <![CDATA[
  321. fSetTrustAcpt();
  322. ]]>
  323. </script>
  324. </button>
  325. <button id="button2" class="btn4_letter4" style="left:1044px; top:3px; width:80px; height:22px; ">
  326. <caption>의뢰취소</caption>
  327. <script type="javascript" ev:event="onclick">
  328. <![CDATA[
  329. //fSetTrustAcpt();
  330. fExeTrustCancel();
  331. ]]>
  332. </script>
  333. </button>
  334. </group>
  335. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  336. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:138px; height:14px; ">CMC위수탁접수관리</caption>
  337. </group>
  338. </xhtml:body>
  339. </xhtml:html>