SMLLC00650_외래치과검체조회.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 외래채혈실핵의학검체조회.xrw
  4. * 설 명 : ㅇㅇ
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 : 2009.07.24
  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>핵의학 검체 조회</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <spclist>
  20. <choi/>
  21. <bcno/>
  22. <orddeptnm/>
  23. <pid/>
  24. <hngnm/>
  25. <tclsnm/>
  26. <spcnm/>
  27. <spcstat/>
  28. <bcoll/>
  29. <spcpseuacpt/>
  30. <spcacpt/>
  31. <spccncl/>
  32. <tsectnm/>
  33. <prcpdd/>
  34. <execprcpuniqno/>
  35. <tclscd/>
  36. <rsltstat/>
  37. </spclist>
  38. </main>
  39. <send>
  40. <refflag/>
  41. <reftext/>
  42. <fromdd/>
  43. <todd/>
  44. <spcflag>00</spcflag>
  45. <genrflag>2</genrflag>
  46. <codeflag/>
  47. <execdept/>
  48. <data1/>
  49. </send>
  50. <init/>
  51. <hidden>
  52. <spcacpt>
  53. <testmdlcd>00</testmdlcd>
  54. <testlrgcd>00</testlrgcd>
  55. </spcacpt>
  56. <check>0</check>
  57. </hidden>
  58. </root>
  59. </instance>
  60. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  61. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  64. <script type="javascript" ev:event="xforms-model-construct-done">
  65. <![CDATA[
  66. fSetInit();
  67. ]]>
  68. </script>
  69. <!-- 시행부서 조회-->
  70. <submission id="TRLLC00604" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spclist"/>
  71. <submission id="TXLLR91201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  72. <!-- *사용* 시행부서 조회 -->
  73. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0102"/>
  74. </model>
  75. <script type="javascript">
  76. <![CDATA[
  77. // 초기화
  78. function fSetInit() {
  79. grd_nspclist.fixedcellcheckbox(0,1)=true;
  80. model.removeNodeset("/root/init");
  81. model.setValue("/root/send/codeflag", "0102|0106|0104|0111|0000|"); // 0102= 중분류 // 0106=시행부서(검사계) // 0104 대분류 // 0111 계(시행) // 0000 userdeptflag
  82. // 초기정보 조회
  83. submit("TRLZZ00101");
  84. model.removeNodeset("/root/main/spclist");
  85. var today = getCurrentDate();
  86. model.setValue("/root/send/fromdd", today);
  87. model.setValue("/root/send/todd", today);
  88. model.setFocus("ipt_text");
  89. model.refresh();
  90. }
  91. //조회
  92. function fGetNSpcList() {
  93. // model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testmdlcd"));
  94. model.setValue("/root/send/execdept", model.getValue("/root/hidden/spcacpt/testlrgcd"));
  95. submit("TRLLC00604");
  96. // 진행상황 및 처방일 색깔 빨강색으로 둔다
  97. if(grd_nspclist.rows > 0) {
  98. for(iRow = 1; iRow < grd_nspclist.rows;iRow++)
  99. {
  100. if( model.getvalue("/root/main/spclist["+iRow+"]/rsltstat") == "4" || model.getvalue("/root/main/spclist["+iRow+"]/rsltstat") == "5" )
  101. {
  102. grd_nspclist.cellstyle("color", iRow, grd_nspclist.colRef("rsltstat")) = "#ff3300";
  103. }
  104. if( model.getvalue("/root/main/spclist["+iRow+"]/spcstat") == "5")
  105. {
  106. grd_nspclist.cellstyle("color", iRow, grd_nspclist.colRef("spcstat")) = "#ff3300";
  107. }
  108. }
  109. }
  110. }
  111. function fSetTLrgCd() {
  112. var etc = model.getvalue("/root/hidden/spcacpt/testlrgcd");
  113. if(etc == "00"){
  114. cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  115. model.setValue("/root/hidden/spcacpt/testmdlcd" , "00");
  116. }
  117. else{
  118. model.setValue("/root/hidden/spcacpt/testmdlcd" , "00");
  119. cmd_TMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ etc +"']";
  120. }
  121. cmd_TMdlCd.refresh();
  122. }
  123. function fSetallcheck(){
  124. for(var tRow = 1; tRow < grd_nspclist.rows ; tRow++){
  125. if(model.getValue("/root/main/spclist["+ tRow +"]/choi") == "true"){
  126. grd_nspclist.rowStatus(tRow) = 2; // 수정
  127. }else{
  128. grd_nspclist.rowStatus(tRow) = 0; // 취소
  129. }
  130. }
  131. grd_nspclist.refresh();
  132. }
  133. function btnAllCheck(){
  134. var checked = model.getValue("/root/hidden/check");
  135. // alert(checked);
  136. if(checked=="0") {
  137. checked ="1";
  138. } else {
  139. checked ="0";
  140. }
  141. for(i=1;i<grd_nspclist.rows;i++){
  142. var vRsltstat = model.getvalue("/root/main/spclist["+i+"]/rsltstat");
  143. if(vRsltstat == "4" || vRsltstat == "5"){
  144. model.setValue("/root/main/spclist["+i+"]/choi", "false");
  145. } else{
  146. if( checked=="1" ) {
  147. model.setValue("/root/main/spclist["+i+"]/choi", "true");
  148. } else {
  149. model.setValue("/root/main/spclist["+i+"]/choi", "false");
  150. }
  151. }
  152. }
  153. model.setValue("/root/hidden/check", checked);
  154. model.refresh();
  155. }
  156. function fKeyEvent(){
  157. if(event.keyCode == "13"){
  158. if(event.target == "ipt_text"){
  159. if(ipt_text.currentText != "") {
  160. model.setValue("/root/send/reftext", (ipt_text.currentText).toUpperCase());
  161. fGetNSpcList();
  162. } else {
  163. messageBox("검색어를", "C001");
  164. }
  165. ipt_text.selBegin = 0;
  166. ipt_text.selEnd = ipt_text.currentText.length;
  167. }
  168. }
  169. }
  170. ]]>
  171. </script>
  172. </xhtml:head>
  173. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  174. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  175. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">치과병원 이관 검체검사 내역 조회</caption>
  176. </group>
  177. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:744px; ">
  178. <group id="group2" style="left:0px; top:0px; width:1195px; height:70px; font-weight:bold; ">
  179. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:65px; "/>
  180. <line id="line3" class="line_4" style="x1:1050px; y1:10px; x2:1050px; y2:52px; "/>
  181. <button id="btn_Ref" class="btn1_letter2" style="left:825px; top:25px; width:56px; height:22px; ">
  182. <caption>조회</caption>
  183. <script type="javascript" ev:event="DOMActivate">
  184. <![CDATA[
  185. fGetNSpcList();
  186. ]]>
  187. </script>
  188. </button>
  189. <caption id="caption4" class="search_name" style="left:16px; top:24px; width:90px; height:17px; ">조회기간 :</caption>
  190. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:25px; width:106px; height:19px; "/>
  191. <caption id="caption5" class="search_no_b" style="left:220px; top:25px; width:15px; height:17px; ">~</caption>
  192. <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:240px; top:25px; width:106px; height:19px; "/>
  193. <select1 id="cmb_spcflag" ref="/root/send/spcflag" class="combo_search" navindex="11" visibility="hidden" appearance="minimal" style="left:885px; top:25px; width:55px; height:19px; ">
  194. <choices>
  195. <item>
  196. <label>-전체-</label>
  197. <value>00</value>
  198. </item>
  199. <item>
  200. <label>취소</label>
  201. <value>0</value>
  202. </item>
  203. <item>
  204. <label>채혈</label>
  205. <value>2</value>
  206. </item>
  207. <item>
  208. <label>가접수</label>
  209. <value>3</value>
  210. </item>
  211. <item>
  212. <label>접수</label>
  213. <value>4</value>
  214. </item>
  215. </choices>
  216. </select1>
  217. <select1 id="cmd_TMdlCd" ref="/root/hidden/spcacpt/testmdlcd" class="combo_s_essential" visibility="hidden" appearance="minimal" itemcount="10" style="left:890px; top:25px; width:35px; height:19px; text-align:left; ">
  218. <choices>
  219. <itemset nodeset="/root/init/LB0106">
  220. <label ref="nm"/>
  221. <value ref="cd"/>
  222. </itemset>
  223. </choices>
  224. </select1>
  225. <select1 id="cmb_TLrgCd" ref="/root/hidden/spcacpt/testlrgcd" class="combo_s_essential" visibility="visible" appearance="minimal" itemcount="10" style="left:445px; top:25px; width:154px; height:19px; text-align:left; ">
  226. <choices>
  227. <itemset nodeset="/root/init/LB0111">
  228. <label ref="nm"/>
  229. <value ref="cd"/>
  230. </itemset>
  231. </choices>
  232. <script type="javascript" ev:event="xforms-value-changed">
  233. <![CDATA[
  234. fSetTLrgCd();
  235. ]]>
  236. </script>
  237. </select1>
  238. <button id="button23" class="btn3_letter2" style="left:955px; top:20px; width:62px; height:22px; ">
  239. <caption>전송</caption>
  240. <script type="javascript" ev:event="onclick">
  241. <![CDATA[
  242. var execddyncnt = 0;
  243. for(i = 1 ; i < grd_nspclist.rows ; i ++){
  244. grd_nspclist.rowStatus(i) = 0;
  245. if(model.getValue("/root/main/spclist["+i+"]/choi") == "true"){
  246. grd_nspclist.rowStatus(i) = 2;
  247. }
  248. }
  249. // //액팅이 된 처방인지 체크
  250. // if(model.getValue("/root/main/getPoctlist/getTestInfoCnts["+i+"]/execdd") != "00000000") {
  251. // execddyncnt++;
  252. // }
  253. // model.setValue("/root/send/userid", model.getValue("/root/hidden/ref/userid"));
  254. // model.setValue("/root/send/pid", model.getValue("/root/hidden/ref/pid"));
  255. model.setValue("/root/send/data1", grd_nspclist.getUpdateData());
  256. submit("TXLLR91201");
  257. ]]>
  258. </script>
  259. </button>
  260. <input id="ipt_text" ref="/root/send/refflag" class="input_button" navindex="12" imemode="disabled" inputtype="button" _chartype="upper" style="left:710px; top:25px; width:100px; height:19px; ">
  261. <script type="javascript" ev:event="onkeypress">
  262. <![CDATA[
  263. fKeyEvent();
  264. ]]>
  265. </script>
  266. </input>
  267. <caption id="caption1" class="search_name" style="left:625px; top:25px; width:90px; height:17px; ">차트번호:</caption>
  268. <caption id="caption2" class="search_name" style="left:360px; top:25px; width:90px; height:17px; ">시행부서</caption>
  269. </group>
  270. <line id="line2" class="line_1" style="x1:0px; y1:80px; x2:1194px; y2:80px; "/>
  271. <datagrid id="grd_nspclist" nodeset="/root/main/spclist" caption="^시행부서^검체번호^치과진행상태^진료과^등록번호^성명^검사명^검사코드^검체명^본원 결과상태^채취시각^채취자^결과일^병동^처방일^작업번호" colsep="^" colwidth="60,0,80,100,75, 70, 65, 180,70, 130, 100, 0,0,130, 0, 100, 0" dataheight="25" defaultrows="1" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:85px; width:1194px; height:657px; text-align:center; ">
  272. <col checkvalue="true,false" ref="choi" type="checkbox"/>
  273. <col ref="tsectnm"/>
  274. <col ref="bcno" type="input"/>
  275. <col ref="rsltstat" type="combo">
  276. <choices>
  277. <item>
  278. <label/>
  279. <value>-</value>
  280. </item>
  281. <item>
  282. <label>최종보고</label>
  283. <value>4</value>
  284. </item>
  285. <item>
  286. <label>수정보고</label>
  287. <value>5</value>
  288. </item>
  289. </choices>
  290. </col>
  291. <col ref="orddeptnm"/>
  292. <col ref="pid" type="input"/>
  293. <col ref="hngnm"/>
  294. <col ref="tclsnm"/>
  295. <col ref="tclscd"/>
  296. <col ref="spcnm"/>
  297. <col ref="spcstat" type="combo">
  298. <choices>
  299. <item>
  300. <label>최종</label>
  301. <value>4</value>
  302. </item>
  303. <item>
  304. <label>수정보고</label>
  305. <value>5</value>
  306. </item>
  307. </choices>
  308. </col>
  309. <col ref="bcoll"/>
  310. <col ref="spcpseuacpt"/>
  311. <col ref="spcacpt"/>
  312. <col ref="spccncl"/>
  313. <script type="javascript" ev:event="onaftersort">
  314. <![CDATA[
  315. grd_nspclist.gridToInstance();
  316. ]]>
  317. </script>
  318. <col ref="prcpdd"/>
  319. <col ref="execprcpuniqno"/>
  320. <script type="javascript" ev:event="xforms-select">
  321. <![CDATA[
  322. //alert("col= " + grd_outer.col+ " row = " + grd_outer.row);
  323. // alert("1");
  324. if(grd_nspclist.row == "0"){
  325. btnAllCheck();
  326. }
  327. ]]>
  328. </script>
  329. <script type="javascript" ev:event="xforms-deselect">
  330. <![CDATA[
  331. // alert("2");
  332. if(grd_nspclist.row == "0"){
  333. btnAllCheck();
  334. }
  335. ]]>
  336. </script>
  337. </datagrid>
  338. <button id="btn_excel" class="btn2_letter4" style="left:1120px; top:25px; width:64px; height:19px; ">
  339. <caption>엑셀저장</caption>
  340. <script type="javascript" ev:event="DOMActivate">
  341. <![CDATA[
  342. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  343. if (fileName != ""){
  344. grd_nspclist.saveExcel(fileName);
  345. }
  346. ]]>
  347. </script>
  348. </button>
  349. <button id="btn_check" style="left:1060px; top:40px; width:20px; height:20px; background-image:../../../lis/commonweb/images/chkRPT0.gif; ">
  350. <caption/>
  351. <script type="javascript" ev:event="DOMActivate">
  352. <![CDATA[
  353. btnAllCheck();
  354. ]]>
  355. </script>
  356. </button>
  357. </group>
  358. <button id="btn_reset" class="btn4_letter3" style="left:1120px; top:15px; width:68px; height:22px; ">
  359. <caption>초기화</caption>
  360. <script type="javascript" ev:event="onclick">
  361. <![CDATA[
  362. window.reload();
  363. ]]>
  364. </script>
  365. </button>
  366. </xhtml:body>
  367. </xhtml:html>