SMLLP00600_특이결과기록관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLLP00600_특이결과기록관리.xrw
  4. * 설 명 : 특이결과기록관리
  5. * 설 계 자 : (주)에이씨케이 -
  6. * 작 성 자 : (주)에이씨케이 - 송요셉
  7. * 작 성 일 : 2007.07.04
  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. <spcfrsltreflist>
  20. <chio/>
  21. <rgstdt/>
  22. <patnm/>
  23. <pid/>
  24. <orddept/>
  25. <wardroom/>
  26. <testitem/>
  27. <rslt/>
  28. <perchgr/>
  29. <cnfmr/>
  30. <cfmdt/>
  31. <notipsn/>
  32. <notitm/>
  33. <measfact/>
  34. <bcno/>
  35. <testcd/>
  36. <bigo/>
  37. </spcfrsltreflist>
  38. </main>
  39. <send>
  40. <codeflag/>
  41. <data1/>
  42. <data2/>
  43. <sectcd/>
  44. <tsectcd/>
  45. <deptflag/>
  46. <testlrdcd/>
  47. <testmdlcd/>
  48. </send>
  49. <init>
  50. </init>
  51. <hidden>
  52. <ref>
  53. <refrgstsdd/>
  54. <refrgstedd/>
  55. <deptgbn>1</deptgbn>
  56. <deptL>00</deptL>
  57. <deptM>00</deptM>
  58. </ref>
  59. <search>
  60. <searchflag>1</searchflag>
  61. <searchtest/>
  62. <selectgbn/>
  63. </search>
  64. <testlrg>00</testlrg>
  65. <testmdl>
  66. <cd>00</cd>
  67. </testmdl>
  68. </hidden>
  69. </root>
  70. </instance>
  71. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  74. <script type="javascript" ev:event="xforms-ready">
  75. <![CDATA[
  76. fsetstart();
  77. ]]>
  78. </script>
  79. <submission id="TRLLP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/spcfrsltreflist"/>
  80. <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0106"/>
  81. <submission id="TXLLP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance" resultref="/root/main/spcfrsltreflist"/>
  82. <instance id="instance2">
  83. <root/>
  84. </instance>
  85. </model>
  86. <script type="javascript">
  87. <![CDATA[
  88. //특이결과 조회
  89. function fGetSpcfRslttreflist(){
  90. //model.copyNode("/root/send/data2" ,"/root/hidden/ref"); 이재오 막다
  91. //model.copyNode("/root/send/data2/refrgstsdd" ,"/root/hidden/ref/refrgstsdd");
  92. //model.copyNode("/root/send/data2/refrgstedd" ,"/root/hidden/ref/refrgstedd");
  93. model.makeValue("/root/send/refrgstsdd",model.getValue("/root/hidden/ref/refrgstsdd"));
  94. model.makeValue("/root/send/refrgstedd",model.getValue("/root/hidden/ref/refrgstedd"));
  95. model.makeValue("/root/send/selectgbn", model.getValue("/root/hidden/search/selectgbn"));
  96. if (cmb_selectgbn.value == "1"){
  97. model.setValue("/root/send/testlrdcd", model.getValue("/root/hidden/testlrg"));
  98. model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/testmdl/cd"));
  99. }
  100. //조회구분 시행부서 선택시
  101. else if(cmb_selectgbn.value == "2"){
  102. model.setValue("/root/send/sectcd", model.getValue("/root/hidden/testlrg"));
  103. model.setValue("/root/send/tsectcd", model.getValue("/root/hidden/testmdl/cd"));
  104. }
  105. model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  106. submit("TRLLP00601");
  107. /*
  108. model.removeNodeset("/root/main/testlist");
  109. grd_testList.rebuild();
  110. model.setValue("/root/send/refgbn" , model.getValue("/root/hidden/search/searchflag"));
  111. model.setValue("/root/send/refcont" , model.getValue("/root/hidden/search/searchtext"));
  112. model.setValue("/root/send/deptflag" , model.getValue("/root/init/LB0000/nm"));
  113. //조회구분
  114. if (cmb_selectgbn.value == "1"){
  115. model.setValue("/root/send/testmdlcd" , model.getValue("/root/hidden/testmdl/cd"));
  116. model.setValue("/root/send/testlrgcd" , model.getValue("/root/hidden/testlrg"));
  117. }
  118. //조회구분 시행부서 선택시
  119. else if(cmb_selectgbn.value == "2"){
  120. model.setValue("/root/send/sectcd", model.getValue("/root/hidden/testlrg"));
  121. model.setValue("/root/send/tsectcd", model.getValue("/root/hidden/testmdl/cd"));
  122. }
  123. if(model.getValue("/root/hidden/search/searchtext") == ""){ //텍스트 검색이 아니면 등록된 검사코드 모두 조회
  124. submit("TRLQF00301");
  125. }else{
  126. submit("TRLQF00304");
  127. }
  128. */
  129. }
  130. // 특이결과삭제
  131. function fExeEqmtdel(){
  132. for(i=1; i< grd_spcfrsltlist.rows; i++){
  133. if(model.getValue("/root/main/spcfrsltreflist["+i+"]/chio") =="Y"){
  134. grd_spcfrsltlist.rowStatus(i) = 4;
  135. }else{
  136. grd_spcfrsltlist.rowStatus(i) = 0;
  137. }
  138. }
  139. model.setValue("/root/send/data1", grd_spcfrsltlist.getUpdateData());
  140. //model.alert(grd_spcfrsltlist.getUpdateData());
  141. submit("TXLLP00601");
  142. //alert(model.getValue("/root/send/data1"));
  143. fGetSpcfRslttreflist();
  144. }
  145. //특이결과확인
  146. function fExeEqmtSave(){
  147. for(i=1; i< grd_spcfrsltlist.rows; i++){
  148. if(model.getValue("/root/main/spcfrsltreflist["+i+"]/chio") =="Y"){
  149. grd_spcfrsltlist.rowStatus(i) = 2;
  150. }else{
  151. grd_spcfrsltlist.rowStatus(i) = 0;
  152. }
  153. }
  154. model.setValue("/root/send/data1", grd_spcfrsltlist.getUpdateData());
  155. //model.alert(grd_spcfrsltlist.getUpdateData());
  156. submit("TXLLP00601");
  157. //alert(model.getValue("/root/send/data1"));
  158. fGetSpcfRslttreflist();
  159. }
  160. function fSelectGbn(){
  161. //검사분류 선택
  162. if(cmb_selectgbn.value == "1"){
  163. //첫번째 콤보에 대분류 셋팅
  164. cmb_testLrgCd.choices.itemset.attribute("nodeset") = "/root/init/LB0104";
  165. //두번째 콤보에 중분류 셋팅
  166. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  167. }
  168. //시행부서 선택
  169. else if(cmb_selectgbn.value == "2"){
  170. //첫번째 콤보에 계코드 셋팅
  171. cmb_testLrgCd.choices.itemset.attribute("nodeset") = "/root/init/LB0111";
  172. //두번째 콤보에 검사계코드 셋팅
  173. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  174. }
  175. model.setvalue("/root/hidden/testlrg", "00");
  176. model.setvalue("/root/hidden/testmdl/cd", "00");
  177. cmb_testLrgCd.refresh();
  178. cmb_testMdlCd.refresh();
  179. }
  180. function fSetSelect02(){
  181. var select01 = model.getvalue("/root/hidden/testlrg");
  182. //검사분류선택
  183. if(cmb_selectgbn.value == "1"){
  184. if(select01 == "00"){
  185. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102";
  186. }
  187. else{
  188. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0102[cd= '00' or etc01='"+ select01 +"']";
  189. }
  190. //model.setValue("/root/hidden/select01" , "00");
  191. cmb_testMdlCd.refresh();
  192. }
  193. //시행부서 선택
  194. else if(cmb_selectgbn.value == "2"){
  195. if(select01 == "00"){
  196. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106";
  197. }
  198. else{
  199. cmb_testMdlCd.choices.itemset.attribute("nodeset") = "/root/init/LB0106[cd= '00' or etc01='"+ select01 +"']";
  200. }
  201. //model.setValue("/root/hidden/select02" , "00");
  202. cmb_testMdlCd.refresh();
  203. }
  204. }
  205. function fsetstart(){
  206. grd_spcfrsltlist.fixedcellcheckbox(0, 1) = true;
  207. var toDay = getCurrentDate();
  208. model.removeNodeset("/root/init");
  209. model.setValue("/root/send/codeflag", "0102|0104|0000|0111|0106|"); // 0102= 중분류 // 0104 대분류 // 0000 userdeptflagcd
  210. model.setValue("/root/hidden/ref/refrgstsdd", toDay);
  211. model.setValue("/root/hidden/ref/refrgstedd", toDay);
  212. // model.setValue("/root/send/codeflag", "0104|0102|"); //막다
  213. model.removeNodeset("/root/main/spcfrsltreflist");
  214. submit("TRLZZ00101");
  215. }
  216. function fSetInit() {
  217. var toDay = getCurrentDate();
  218. model.setValue("/root/hidden/ref/refrgstsdd", toDay);
  219. model.setValue("/root/hidden/ref/refrgstedd", toDay);
  220. model.setValue("/root/hidden/dept", '00');
  221. model.removeNodeset("/root/main/spcfrsltreflist");
  222. //fGetHospTclscd(); //검사코드상세내역 조회
  223. fSelectGbn();
  224. model.setValue("/root/hidden/search/selectgbn","1");
  225. model.refresh();
  226. }
  227. function fComboAalue(){
  228. if(model.getValue("/root/hidden/ref/deptgbn") == "1"){
  229. cmb_dept.visible = true;
  230. combo2.visible = false;
  231. }
  232. else{
  233. cmb_dept.visible = false;
  234. combo2.visible = true;
  235. }
  236. }
  237. // 검사코드 리스트 조회
  238. function fGetTclscdList(){
  239. model.removeNodeset("/root/main/tclscdlist");
  240. grd_tclsList.rebuild();
  241. model.makeValue("/root/send/selectgbn", model.getValue("/root/hidden/search/selectgbn"));
  242. if (cmb_selectgbn.value == "1"){
  243. model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/testlrg"));
  244. model.setValue("/root/send/testmdlcd", model.getValue("/root/hidden/testmdl/cd"));
  245. }
  246. //조회구분 시행부서 선택시
  247. else if(cmb_selectgbn.value == "2"){
  248. model.setValue("/root/send/sectcd", model.getValue("/root/hidden/testlrg"));
  249. model.setValue("/root/send/tsectcd", model.getValue("/root/hidden/testmdl/cd"));
  250. }
  251. model.setValue("/root/send/deptflag", model.getValue("/root/init/LB0000/nm"));
  252. //submit("TRLLF00608");
  253. submit("TRLQF00303");
  254. }
  255. function fExeExcel(pGridId) {
  256. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  257. if (fileName != "")
  258. {
  259. pGridId.saveExcel(fileName);
  260. }
  261. }
  262. ]]>
  263. </script>
  264. </xhtml:head>
  265. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  266. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
  267. <datagrid id="grd_spcfrsltlist" nodeset="/root/main/spcfrsltreflist" caption="^등록일시^환자명^등록번호^진료과^병동/병실^검사항목^결과^통보자^확인자^확인일시^피통보자^통보시간^조치사항^bcno^testcd^비고" colwidth="30, 100, 50, 60, 50, 84, 130, 60, 50, 50, 100, 55, 104, 100, 0, 0,130" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:1194px; height:646px; font-weight:normal; ">
  268. <col checkvalue="Y,N" ref="chio" type="checkbox"/>
  269. <col ref="rgstdt" type="output" format="yyyy-mm-dd hh:nn"/>
  270. <col ref="patnm"/>
  271. <col ref="pid"/>
  272. <col ref="orddept"/>
  273. <col ref="wardroom"/>
  274. <col ref="testitem"/>
  275. <col ref="rslt"/>
  276. <col ref="perchgr"/>
  277. <col ref="cnfmr"/>
  278. <col ref="cfmdt" type="output" format="yyyy-mm-dd hh:nn"/>
  279. <col ref="notipsn"/>
  280. <col ref="notitm" type="output" format="yyyy-mm-dd hh:nn"/>
  281. <col ref="measfact"/>
  282. <col ref="bcno" visibility="hidden"/>
  283. <col ref="testcd" visibility="hidden"/>
  284. <col ref="bigo" type="input"/>
  285. <script type="javascript" ev:event="onaftersort">
  286. <![CDATA[
  287. grd_spcfrsltlist.gridToInstance();
  288. ]]>
  289. </script>
  290. </datagrid>
  291. <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  292. <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">특이결과 조회</caption>
  293. <button id="button2" class="btn2_letter2" style="left:1152px; top:49px; width:42px; height:19px; ">
  294. <caption>엑셀</caption>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. fExeExcel (grd_spcfrsltlist);
  298. ]]>
  299. </script>
  300. </button>
  301. <group id="group1" style="left:0px; top:5px; width:1195px; height:40px; ">
  302. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1190px; height:35px; "/>
  303. <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
  304. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">등록일자 :</caption>
  305. <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  306. <caption>조회</caption>
  307. <script type="javascript" ev:event="DOMActivate">
  308. <![CDATA[
  309. fGetSpcfRslttreflist();
  310. ]]>
  311. </script>
  312. </button>
  313. <caption id="caption11" class="search_n_b" style="left:211px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  314. <caption id="caption1" class="search_name" visibility="hidden" style="left:790px; top:10px; width:86px; height:17px; ">시행부서 :</caption>
  315. <select1 id="cmb_dept" ref="/root/hidden/ref/deptL" visibility="hidden" appearance="minimal" style="left:965px; top:10px; width:50px; height:19px; font-weight:normal; ">
  316. <choices>
  317. <itemset nodeset="/root/init/LB0104">
  318. <label ref="nm"/>
  319. <value ref="cd"/>
  320. </itemset>
  321. </choices>
  322. </select1>
  323. <input id="ipt_usdt" ref="/root/hidden/ref/refrgstsdd" class="input_s_essential" inputtype="date" style="left:107px; top:8px; width:100px; height:19px; "/>
  324. <input id="ipt_uedt" ref="/root/hidden/ref/refrgstedd" class="input_s_essential" inputtype="date" style="left:227px; top:8px; width:100px; height:19px; "/>
  325. <select1 id="combo1" ref="/root/hidden/ref/deptgbn" visibility="hidden" appearance="minimal" style="left:880px; top:10px; width:85px; height:19px; font-weight:normal; ">
  326. <choices>
  327. <item>
  328. <label>대분류</label>
  329. <value>1</value>
  330. </item>
  331. <item>
  332. <label>중분류</label>
  333. <value>2</value>
  334. </item>
  335. </choices>
  336. <script type="javascript" ev:event="xforms-value-changed">
  337. <![CDATA[
  338. fComboAalue();
  339. ]]>
  340. </script>
  341. </select1>
  342. <select1 id="combo2" ref="/root/hidden/ref/deptM" visibility="hidden" appearance="minimal" style="left:1010px; top:5px; width:60px; height:19px; font-weight:normal; ">
  343. <choices>
  344. <itemset nodeset="/root/init/LB0102">
  345. <label ref="nm"/>
  346. <value ref="cd"/>
  347. </itemset>
  348. </choices>
  349. </select1>
  350. <select1 id="cmb_testLrgCd" ref="/root/hidden/testlrg" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:545px; top:10px; width:110px; height:19px; ">
  351. <choices>
  352. <itemset nodeset="/root/init/LB0104">
  353. <label ref="nm"/>
  354. <value ref="cd"/>
  355. </itemset>
  356. </choices>
  357. <script type="javascript" ev:event="xforms-value-changed">
  358. <![CDATA[
  359. fSetSelect02();
  360. //fSetTestLrgCd();
  361. ]]>
  362. </script>
  363. </select1>
  364. <select1 id="cmb_testMdlCd" ref="/root/hidden/testmdl/cd" class="combo_s_essential" appearance="minimal" itemcount="10" style="left:660px; top:10px; width:115px; height:19px; ">
  365. <choices>
  366. <itemset nodeset="/root/init/LB0102">
  367. <label ref="nm"/>
  368. <value ref="cd"/>
  369. </itemset>
  370. </choices>
  371. <script type="javascript" ev:event="xforms-select">
  372. <![CDATA[
  373. //검사코드리스트조회
  374. //fGetTclscdList();
  375. ]]>
  376. </script>
  377. </select1>
  378. <caption id="caption25" class="search_name" style="left:355px; top:10px; width:87px; height:17px; ">조회구분 :</caption>
  379. <select1 id="cmb_selectgbn" ref="/root/hidden/search/selectgbn" class="combo_search" visibility="visible" appearance="minimal" style="left:450px; top:10px; width:90px; height:19px; ">
  380. <choices>
  381. <item>
  382. <label>검사분류</label>
  383. <value>1</value>
  384. </item>
  385. <item>
  386. <label>시행부서</label>
  387. <value>2</value>
  388. </item>
  389. </choices>
  390. <script type="javascript" ev:event="xforms-select">
  391. <![CDATA[
  392. fSelectGbn();
  393. ]]>
  394. </script>
  395. </select1>
  396. </group>
  397. </group>
  398. <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
  399. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">특이결과 기록관리</caption>
  400. </group>
  401. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  402. <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  403. <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  404. <caption>초기화</caption>
  405. <script type="javascript" ev:event="DOMActivate">
  406. <![CDATA[
  407. fSetInit();
  408. ]]>
  409. </script>
  410. </button>
  411. <button id="btn_print" class="btn6_letter2" style="left:0px; top:3px; width:56px; height:22px; ">
  412. <caption>출력</caption>
  413. <script type="javascript" ev:event="onclick">
  414. <![CDATA[
  415. // for(i=1; i < grd_spcfrsltlist.rows; i++ ){
  416. //
  417. // find = grd_spcfrsltlist.findRow("Y",i,1,true)
  418. //
  419. // if(find <= 0 ) {
  420. // copyNodeListType("/root/hidden/report" , "/root/main/spcfrsltreflist["+ i +"]" , "after");
  421. //
  422. // }
  423. // else{
  424. // copyNodeListType("/root/hidden/report" , "/root/main/spcfrsltreflist["+ find +"]" , "after");
  425. //
  426. // }
  427. // }
  428. exeReportPreview("RPLLP90200", "XMLSTR", "/root/main/spcfrsltreflist");
  429. ]]>
  430. </script>
  431. </button>
  432. <button id="btn_cnfm" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  433. <caption>확인</caption>
  434. <script type="javascript" ev:event="DOMActivate">
  435. <![CDATA[
  436. fExeEqmtSave();
  437. ]]>
  438. </script>
  439. </button>
  440. <button id="but_del" class="btn4_letter2" style="left:1009px; top:3px; width:56px; height:22px; ">
  441. <caption>삭제</caption>
  442. <script type="javascript" ev:event="DOMActivate">
  443. <![CDATA[
  444. fExeEqmtdel();
  445. ]]>
  446. </script>
  447. </button>
  448. </group>
  449. </xhtml:body>
  450. </xhtml:html>