SMAER00620_영상의학판독관리.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>판독현황조회</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <prcsprescondlist>
  11. <prcsprescond>
  12. <srchflag/>
  13. <lrgcd/>
  14. <rsltdd/>
  15. <cnfmmannm/>
  16. <prcpdd/>
  17. <pid/>
  18. <hngnm/>
  19. <age/>
  20. <sex/>
  21. <ioflag/>
  22. <excucdnm/>
  23. <calcscorcd/>
  24. <act_totamt/>
  25. <execdt/>
  26. <cnfmdt/>
  27. <tat/>
  28. <gubun/>
  29. <suppdeptcd/>
  30. <execprcpuniqno/>
  31. <magamflag/>
  32. <roomcd/>
  33. </prcsprescond>
  34. </prcsprescondlist>
  35. <patinfo>
  36. <patinfolist/>
  37. </patinfo>
  38. <prcsmagamlist>
  39. <item>
  40. <rsltdd/>
  41. <magamflag/>
  42. </item>
  43. </prcsmagamlist>
  44. </main>
  45. <send>
  46. <ddflag/>
  47. <fromdd/>
  48. <todd/>
  49. <suppdeptcd/>
  50. <excuroomcd/>
  51. <orddeptcd/>
  52. <wardcd/>
  53. <pid/>
  54. <patnm/>
  55. <globalinstance>
  56. <instance1/>
  57. </globalinstance>
  58. <excucd/>
  59. <excucdnm/>
  60. <prcpgenrflag/>
  61. <req>
  62. <data1/>
  63. </req>
  64. <cnfmmanid/>
  65. <cnfmmannm/>
  66. </send>
  67. <init>
  68. <cmb_info>
  69. <suppdeptlist>
  70. <suppdept>
  71. <suppdeptcd/>
  72. <depthngnm/>
  73. </suppdept>
  74. </suppdeptlist>
  75. <orddeptcdlist>
  76. <dept>
  77. <deptcd/>
  78. <depthngnm/>
  79. </dept>
  80. </orddeptcdlist>
  81. <wardcdlist>
  82. <dept>
  83. <deptcd/>
  84. <depthngnm/>
  85. </dept>
  86. </wardcdlist>
  87. <excuroomcdlist>
  88. <excuroom>
  89. <basecd/>
  90. <basecdflagdesc/>
  91. </excuroom>
  92. </excuroomcdlist>
  93. <initexecprcpstatcd/>
  94. <rsrvflaglist/>
  95. </cmb_info>
  96. <popupmenu>
  97. <grid01>
  98. <item>
  99. <name>복사하기</name>
  100. <func>astgrid_liscopy</func>
  101. </item>
  102. </grid01>
  103. </popupmenu>
  104. <baseinfo>
  105. <initexecprcpstatcd/>
  106. <initprcpgenrflagcd/>
  107. </baseinfo>
  108. </init>
  109. <hidden>
  110. <comcd/>
  111. </hidden>
  112. <temp>
  113. <userinfolist/>
  114. <userpopupinfo>
  115. <param/>
  116. <flag/>
  117. <searchitem/>
  118. <searchitem_dutplce/>
  119. </userpopupinfo>
  120. </temp>
  121. </root>
  122. </instance>
  123. <submission id="TRZSD00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  124. <submission id="TRAER00621" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcsprescondlist"/>
  125. <submission id="TRAER00622" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/prcsmagamlist"/>
  126. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  127. <script type="javascript" ev:event="xforms-ready">
  128. <![CDATA[
  129. aezfSetSuppDeptcd();
  130. model.setValue("/root/send/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
  131. //글로벌 변수에서 등록번호 갖고오기
  132. var gv_pid = getGlobalVariable("gv_pid", "A");
  133. if(gv_pid != "") {
  134. model.setValue("/root/send/pid", gv_pid);
  135. //fgetPatInfoList();
  136. }
  137. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD"));
  138. model.setValue("/root/send/todd", getCurrentDate());
  139. var instcd = getUserInfo("dutplceinstcd");
  140. var standard_yn = "orduseyn";
  141. var ord_deptflag = "D"; //외래진료실
  142. var rslt_ref = "/root/init/cmb_info/orddeptcdlist";
  143. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  144. ord_deptflag = "W"; //일반병동
  145. rslt_ref = "/root/init/cmb_info/wardcdlist";
  146. zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
  147. //zbcfGetCodeList( new Array("M0011","A0075", "M0010"), new Array("/root/init/cmb_info/initexecprcpstatcd", "/root/init/cmb_info/rsrvflaglist", "/root/init/baseinfo/initprcpgenrflagcd") );
  148. //submit("TRZBC00101", false);
  149. submit("TRAEA00503", false);
  150. submit("TRAEA00904", false);
  151. model.refresh();
  152. ]]>
  153. </script>
  154. <submission id="TRAEA00503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/excuroomcdlist"/>
  155. <submission id="TXAER00621" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
  156. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  157. <submission id="TXAER00622" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/temp/count"/>
  158. <bind id="bind_orddept" ref="/root/main/prcsprescondlist/prcsprescond/orddeptcd" readonly="../orddeptcd!=''"/>
  159. <bind id="bind_ward" ref="/root/main/prcsprescondlist/prcsprescond/wardcd" readonly="../wardcd!=''"/>
  160. <bind id="bind_room" ref="/root/main/prcsprescondlist/prcsprescond/roomcd" readonly="../roomcd!=''"/>
  161. <bind id="bind_execprcpstat" ref="/root/main/prcsprescondlist/prcsprescond/execprcpstatcd" readonly="../execprcpstatcd!=''"/>
  162. <bind id="bind_excuroom" ref="/root/main/prcsprescondlist/prcsprescond/excuroomcd" readonly="../excuroomcd!=''"/>
  163. <submission id="TRAEA00904" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/cmb_info/suppdeptlist"/>
  164. </model>
  165. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  166. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  167. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  168. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  169. <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  171. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  172. <script type="javascript">
  173. <![CDATA[
  174. /* @group :
  175. * @ver : 2010.02.06
  176. * @by : 김건기
  177. * @-----------------------------------
  178. * @type : function
  179. * @access : public
  180. * @desc : 그리드의 내용을 엑셀로 Copy하기 위한 Function
  181. */
  182. function astgrid_liscopy() {
  183. var cellValue;
  184. var rClipBoardValue = "";
  185. var row = grd_mainordlist.row;
  186. rClipBoardValue = grd_mainordlist.valueMatrix(row, grd_mainordlist.colRef("pid"));
  187. if( rClipBoardValue != "" ) {
  188. window.clipBoardData = rClipBoardValue;
  189. }
  190. }
  191. /* @group :
  192. * @ver : 2015.10.06
  193. * @by : 권영애
  194. * @-----------------------------------
  195. * @type : function
  196. * @access : public
  197. * @desc : 그리드의 내용을 엑셀로 Copy하기 위한 Function
  198. */
  199. function getRsltList() {
  200. // 2011.02.07 c y w 조회시 환자정보리스트 클리어
  201. model.removeNodeset("/root/main/prcsprescondlist/prcsprescond");
  202. var row = grd_mainordlist.row-1;
  203. if( submit("TRAER00621") ){
  204. if( model.getValue("/root/main/prcsprescondlist/prcsprescond[1]/srchflag") == "1" ){ // 재고테이블에 데이터가 있을 경우
  205. if(model.getValue("/root/main/prcsprescondlist/prcsprescond[1]/magamflag") == "S" ){ // 마감여부가 S일 경우
  206. btn_save.visible = true;
  207. btn_del.visible = true;
  208. }else{ // 마감했을경우 버튼 비활성화.
  209. btn_save.visible = false;
  210. btn_del.visible = false;
  211. }
  212. }else if( model.getValue("/root/main/prcsprescondlist/prcsprescond[1]/srchflag") == "2" ){ // 데이터가 없을경우 활성화.
  213. btn_save.visible = true;
  214. btn_del.visible = false;
  215. if(model.getValue("/root/main/prcsprescondlist/prcsprescond[1]/magamflag") == "D" ){
  216. for(var a = 1 ; a <= grd_mainordlist.rows ; a++ ){
  217. grd_mainordlist.addStatus( a ,"update");
  218. }
  219. }else{
  220. for(var a = 1 ; a <= grd_mainordlist.rows ; a++ ){
  221. grd_mainordlist.addStatus( a ,"insert");
  222. }
  223. }
  224. }else{ //1 , 2 아니고 null일 경우 비활성화.
  225. btn_save.visible = false;
  226. btn_del.visible = false;
  227. }
  228. //2015.10.06 판독자료 월별 마감일자,마감여부
  229. submit("TRAER00622");
  230. }
  231. model.refresh();
  232. }
  233. ]]>
  234. </script>
  235. </xhtml:head>
  236. <xhtml:body guideline="1,1198;2,757;2,784;">
  237. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:771px; ">
  238. <group id="group2" style="left:0px; top:10px; width:1195px; height:45px; vertical-align:top; ">
  239. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  240. <line id="line1" style="x1:1109px; y1:9px; x2:1109px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  241. <caption id="caption1" class="search_name" style="left:259px; top:10px; width:112px; height:17px; text-align:left; background-image:../../../com/commonweb/images/search_bullet1.gif; ">지원부서 :</caption>
  242. <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:10px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  243. <caption>조회</caption>
  244. <script type="javascript" ev:event="DOMActivate">
  245. <![CDATA[
  246. getRsltList();
  247. ]]>
  248. </script>
  249. </button>
  250. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" inputtype="date" style="left:130px; top:10px; width:90px; height:19px; "/>
  251. <select1 id="cmb_suppdept" ref="/root/send/suppdeptcd" class="combo_search" appearance="minimal" style="left:350px; top:10px; width:119px; height:19px; ">
  252. <choices>
  253. <itemset nodeset="/root/init/cmb_info/suppdeptlist/suppdept">
  254. <label ref="depthngnm"/>
  255. <value ref="suppdeptcd"/>
  256. </itemset>
  257. </choices>
  258. <script type="javascript" ev:event="xforms-value-changed">
  259. <![CDATA[
  260. model.setValue("/root/send/globalinstance/instance1", model.getValue("/root/send/suppdeptcd"));
  261. submit("TRAEA00503");
  262. ]]>
  263. </script>
  264. </select1>
  265. <caption id="caption11" class="search_name" style="left:15px; top:10px; width:120px; height:17px; text-align:left; background-image:../../../com/commonweb/images/search_bullet1.gif; ">판독결과일자 :</caption>
  266. </group>
  267. <caption id="caption10" class="tit_2" style="left:5px; top:60px; width:134px; height:20px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">판독현황</caption>
  268. <line id="line3" class="line_1" style="x1:0px; y1:80px; x2:1194px; y2:80px; "/>
  269. <datagrid id="grd_mainordlist" nodeset="/root/main/prcsprescondlist/prcsprescond" caption="분류^결과일자^판독의명^처방일자^등록번호^환자명^나이^성별^입/외^caption1^처방명^처방코드^행위료^판독의ID^실시일시^판독일시^TAT^구분^suppdeptcd^execprcpuniqno^magamflag" colsep="^" colwidth="55, 73, 63, 70, 67, 67, 41, 42, 45, 100, 268, 99, 80, 100, 103, 106, 47, 43, 100, 100, 100" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:85px; width:1045px; height:656px; ">
  270. <col ref="lrgcd" style="text-align:center; "/>
  271. <col ref="rsltdd" format="yyyy-mm-dd"/>
  272. <col ref="cnfmmannm" style="text-align:center; "/>
  273. <col ref="prcpdd" format="yyyy-mm-dd"/>
  274. <col ref="pid"/>
  275. <col ref="hngnm"/>
  276. <col ref="age"/>
  277. <col ref="sex"/>
  278. <col ref="roomcd"/>
  279. <col ref="ioflag" visibility="hidden"/>
  280. <col ref="excucdnm"/>
  281. <col ref="calcscorcd"/>
  282. <col ref="act_totamt" format="#,###" style="text-align:right; "/>
  283. <col ref="cnfmmanid" visibility="hidden"/>
  284. <col ref="execdt" format="yyyy-mm-dd hh:nn"/>
  285. <col ref="cnfmdt" format="yyyy-mm-dd hh:nn"/>
  286. <col ref="tat" style="text-align:right; "/>
  287. <col ref="gubun" style="text-align:center; "/>
  288. <col ref="suppdeptcd" visibility="hidden"/>
  289. <col ref="execprcpuniqno" visibility="hidden"/>
  290. <col ref="magamflag" visibility="hidden"/>
  291. <script type="javascript" ev:event="onaftersort">
  292. <![CDATA[
  293. grd_mainordlist.gridToInstance();
  294. ]]>
  295. </script>
  296. <script type="javascript" ev:event="oncopy">
  297. <![CDATA[
  298. astgrid_liscopy();
  299. ]]>
  300. </script>
  301. <script type="javascript" ev:event="onmousedown">
  302. <![CDATA[
  303. if (event.button == 3) { // 3 : 오른쪽 버튼
  304. if (grd_mainordlist.isCell(event.target) && grd_mainordlist.mouseRow >= grd_mainordlist.fixedrows) {
  305. setPopupMenu("grd_mainordlist", false, "/root/init/popupmenu/grid01/item", "name", "func");
  306. }
  307. }
  308. ]]>
  309. </script>
  310. <script type="javascript" ev:event="DOMFocusOut">
  311. <![CDATA[
  312. initPopupMenu();
  313. ]]>
  314. </script>
  315. </datagrid>
  316. <button id="btn_excel" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter2.gif" style="left:1126px; top:60px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter2.gif; ">
  317. <caption>엑셀저장</caption>
  318. <script type="javascript" ev:event="DOMActivate">
  319. <![CDATA[
  320. var file = window.fileDialog("save","","true","","xls","Excel Files(*.xls)|*.xls");
  321. if(file == "") return;
  322. grd_mainordlist.saveExcel(file, "sheet1");
  323. ]]>
  324. </script>
  325. </button>
  326. <datagrid id="grd_magmalist" nodeset="/root/main/prcsmagamlist/item" caption="마감일자^마감" colsep="^" colwidth="68, 33" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:1050px; top:85px; width:140px; height:655px; ">
  327. <col ref="rsltdd" format="yyyy-mm-dd" style="text-align:center; "/>
  328. <col ref="magamflag" style="text-align:center; "/>
  329. </datagrid>
  330. <button id="btn_save" class="btn3_letter3" style="left:905px; top:57px; width:68px; height:22px; ">
  331. <caption>일마감</caption>
  332. <script type="javascript" ev:event="DOMActivate">
  333. <![CDATA[
  334. var cnt = getNodesetCount("/root/main/prcsprescondlist/prcsprescond");
  335. if( cnt > 0 ) {
  336. //alert( grd_mainordlist.getUpdateData());
  337. if( model.getValue("/root/send/fromdd") == "" ){
  338. messageBox("결과일자를", "I007");
  339. } else {
  340. if( messageBox("판독결과 정보를","Q002")==6 ) {
  341. model.setValue("/root/send/req/data1", grd_mainordlist.getUpdateData());
  342. submit("TXAER00621");
  343. getRsltList();
  344. }
  345. }
  346. }else{
  347. messageBox("저장할 판독결과 정보가", "I004");
  348. }
  349. ]]>
  350. </script>
  351. </button>
  352. <button id="btn_del" class="btn3_letter2" style="left:985px; top:57px; width:56px; height:22px; ">
  353. <caption>수정</caption>
  354. <script type="javascript" ev:event="DOMActivate">
  355. <![CDATA[
  356. var cnt = getNodesetCount("/root/main/prcsprescondlist/prcsprescond");
  357. if( cnt > 0 ) {
  358. if( model.getValue("/root/send/fromdd") == "" ){
  359. messageBox("결과일자를", "I007");
  360. }else{
  361. if ( messageBox("판독 결과정보를","Q001")==6 ) {
  362. if( submit("TXAER00622") ){
  363. model.removenode("/root/main/prcsprescondlist");
  364. }else{
  365. getRsltList();
  366. }
  367. }
  368. }
  369. } else {
  370. messageBox("삭제할 판독 결과정보가", "I004");
  371. }
  372. model.refresh();
  373. ]]>
  374. </script>
  375. </button>
  376. </group>
  377. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  378. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:15px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">판독현황 조회</caption>
  379. </group>
  380. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  381. <button id="button1" class="btn6_letter2" disable.background-image="../../../com/commonweb/images/dis_btn6_letter2.gif" style="left:0px; top:5px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn6_letter2.gif; ">
  382. <caption>출력</caption>
  383. </button>
  384. <button id="btn_reset" class="btn4_letter3" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn4_letter3.gif" style="left:1125px; top:5px; width:68px; height:22px; background-image:../../../com/commonweb/images/btn4_letter3.gif; ">
  385. <caption>초기화</caption>
  386. <script type="javascript" ev:event="DOMActivate">
  387. <![CDATA[
  388. cmb_excuroom.deselect(0);
  389. cmb_orddept.deselect(0);
  390. cmb_ward.deselect(0);
  391. cmb_rsrvflag.deselect(0);
  392. ipt_pid.value = "";
  393. ipt_patnm.value = "";
  394. ]]>
  395. </script>
  396. </button>
  397. </group>
  398. </xhtml:body>
  399. </xhtml:html>