SMAHA04700_조직처방수납여부관리.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAHB01400.xrw
  4. * 설 명 : 기관및판정의관리
  5. * 설 계 자 :
  6. * 작 성 자 :
  7. * 작 성 일 : 2007.08.01
  8. * 수정이력 : 2007.10.04 김다영 화면권한추가
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <send>
  19. <srchhealexamflag/>
  20. <srchflag>O</srchflag>
  21. <srchinstcd/>
  22. <save>
  23. <tissprcplist/>
  24. </save>
  25. <srchpnm2/>
  26. <healexamdetlflag>O</healexamdetlflag>
  27. <srchprcpstatcd/>
  28. <srchpid/>
  29. <srchfromdd/>
  30. <srchtodd/>
  31. <srchvisano/>
  32. <srchrcptflag/>
  33. <srchexamcurecd/>
  34. <srchexamcurenm/>
  35. </send>
  36. <main>
  37. <tissprcplist>
  38. <item>
  39. <prcpdd/>
  40. <orddd/>
  41. <cretno/>
  42. <pid/>
  43. <hngnm/>
  44. <execprcpstatcd/>
  45. <prcpcd/>
  46. <prcpnm/>
  47. <rgstdeptcd/>
  48. <rgstrid/>
  49. <rgstdt/>
  50. <rcptyn/>
  51. <rcptdd/>
  52. <prcpno/>
  53. <prcphistno/>
  54. <execprcpno/>
  55. </item>
  56. </tissprcplist>
  57. </main>
  58. <init>
  59. <baseinfo>
  60. <assocd/>
  61. <healexamflaglst/>
  62. <ghealexamdetlflaglst/>
  63. <chealexamdetlflaglst/>
  64. <healexamdetlflaglst>
  65. <item/>
  66. </healexamdetlflaglst>
  67. <comcode/>
  68. <initexecprcpstatcd/>
  69. </baseinfo>
  70. </init>
  71. <hidden/>
  72. <case_mode/>
  73. <temp>
  74. <addr>
  75. <zipcd1/>
  76. <zipcd2/>
  77. <addr/>
  78. <zipcdseq/>
  79. </addr>
  80. </temp>
  81. </root>
  82. </instance>
  83. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  85. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  86. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  87. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  88. <script type="javascript" src="../../../ast/healexamweb/js/healexam.js"/>
  89. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  90. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  91. <!-- <submission id="TRAHB00201" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/inqrlst"/>
  92. <submission id="TRZBC00101"/> -->
  93. <script type="javascript" ev:event="xforms-ready">
  94. <![CDATA[
  95. fGetBaseInfo();
  96. model.removeNodeset("/root/main/tissprcplist");
  97. model.refresh();
  98. model.setValue("/root/send/healexamdetlflag", getScreenMenuParameter());
  99. model.setValue("/root/send/srchfromdd", getCurrentDate());
  100. model.setValue("/root/send/srchtodd", getCurrentDate());
  101. addComboItem("cmb_execprcpstatcd","--전체--","","above");
  102. model.refresh();
  103. ]]>
  104. </script>
  105. <submission id="TRAHA04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/tissprcplist"/>
  106. <submission id="TXAHA04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/hidden"/>
  107. <submission id="TRZBC00101"/>
  108. </model>
  109. <script type="javascript">
  110. <![CDATA[
  111. function fGetBaseInfo(){
  112. // 건진기관구분
  113. zbcfGetCodeList( new Array("A0068","A0069","A0070","M0011"),
  114. new Array("/root/init/baseinfo/healexamflaglst"
  115. ,"/root/init/baseinfo/chealexamdetlflaglst"
  116. ,"/root/init/baseinfo/ghealexamdetlflaglst"
  117. ,"/root/init/baseinfo/initexecprcpstatcd"
  118. ));
  119. submit("TRZBC00101");
  120. model.makeNode("/root/init/baseinfo/healexamdetlflaglst/item[0]");
  121. model.makeNode("/root/init/baseinfo/healexamdetlflaglst/item/cdnm");
  122. model.makeNode("/root/init/baseinfo/healexamdetlflaglst/item/cdid");
  123. model.setValue("/root/init/baseinfo/healexamdetlflaglst/item/cdnm", "전체");
  124. copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item","/root/init/baseinfo/chealexamdetlflaglst/A0069", "after");
  125. copyNodesetType("/root/init/baseinfo/healexamdetlflaglst/item","/root/init/baseinfo/ghealexamdetlflaglst/A0070", "after");
  126. fGetPrcpCode();
  127. }
  128. function fGetPrcpCode() {
  129. //처방코드 목록 찾기
  130. var multiYN = "N";
  131. var desNode = "/root/temp/templst/item";
  132. if( ahzfOpenEtcCdSel( "SMAHB00100"
  133. , "F" /*대분류코드*/
  134. , "F18" /*중분류코드*/
  135. , multiYN /*multiyn*/
  136. , desNode /*목적노드셋*/
  137. , "Y" /*중분류코드 setting여부(Y/N)*/ ) ){
  138. model.setValue("/root/send/srchexamcurecd",model.getValue("/root/temp/templst/item/etcdetlcd"));
  139. model.setValue("/root/send/srchexamcurenm",model.getValue("/root/temp/templst/item/etcdetlnm"));
  140. ipt_srchexamcurecd.refresh();
  141. output1.refresh();
  142. }
  143. }
  144. function fGetStdVal(){
  145. if (model.getValue("/root/send/srchflag") == "" ) {
  146. messageBox("조회구분을 선택하셔야 합니다.", "E");
  147. return;
  148. }
  149. if (model.getValue("/root/send/srchpid") == "" && (model.getValue("/root/send/srchfromdd") == "" || model.getValue("/root/send/srchtodd") == "")) {
  150. messageBox("시행일자 혹은 환자를 선택하셔야 합니다.", "E");
  151. return;
  152. }
  153. if (model.getValue("/root/send/srchexamcurecd") == "" ) {
  154. messageBox("처방코드를 입력 하셔야 합니다.", "E");
  155. return;
  156. }
  157. model.removenode("/root/main/tissprcplist");
  158. submit("TRAHA04701");
  159. }
  160. function fSaveVal() {
  161. if( messageBox("건진조직처방 수납상태를 ","Q002") == 6){
  162. model.setValue("/root/send/save/tissprcplist" , grd_tissprcp.getUpdateData());
  163. if (submit("TXAHA04701")){
  164. submit("TRAHA04701");
  165. messageBox("저장 ", "I002");
  166. }
  167. }
  168. }
  169. ]]>
  170. </script>
  171. </xhtml:head>
  172. <xhtml:body guideline="1,1196;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  173. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  174. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:134px; height:14px; ">건진조직처방현황</caption>
  175. </group>
  176. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  177. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:58px; vertical-align:top; ">
  178. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:58px; background-color:#fffbf2; border-color:#ffd799; "/>
  179. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  180. <caption>조회</caption>
  181. <script type="javascript" ev:event="DOMActivate">
  182. <![CDATA[
  183. fGetStdVal();
  184. ]]>
  185. </script>
  186. </button>
  187. <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
  188. <select1 id="cmb_srchhealexamdetlflag" ref="/root/send/srchflag" class="combo_search" appearance="minimal" style="left:305px; top:7px; width:110px; height:19px; ">
  189. <choices>
  190. <item>
  191. <label>접수일자</label>
  192. <value>O</value>
  193. </item>
  194. <item>
  195. <label>처방일자</label>
  196. <value>P</value>
  197. </item>
  198. </choices>
  199. </select1>
  200. <input id="ipt_srchpid" ref="/root/send/srchpid" class="input_search" imemode="hangul" style="left:900px; top:7px; width:75px; height:19px; ">
  201. <script type="javascript" ev:event="onkeyup">
  202. <![CDATA[
  203. inputEnterKey("btn_srchpat", "DOMActivate");
  204. ]]>
  205. </script>
  206. </input>
  207. <button id="btn_srchpat" class="icon_search" style="left:980px; top:7px; width:16px; height:16px; ">
  208. <caption/>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. fSearchPatInfo("SMAHA00100", "pid", ipt_srchpid.currentText , "N", "/root/send" ,ipt_srchpid.attribute("ref"), opt_srchpnm.attribute("ref") );
  212. ]]>
  213. </script>
  214. </button>
  215. <caption id="caption2" class="search_name" style="left:215px; top:7px; width:86px; height:17px; ">조회구분 :</caption>
  216. <output id="opt_srchpnm" ref="/root/send/srchpnm2" class="output_fix" style="left:1000px; top:7px; width:90px; height:19px; "/>
  217. <caption id="caption47" class="search_name" style="left:471px; top:7px; width:86px; height:17px; ">시행일자 :</caption>
  218. <caption id="caption49" class="search_name" style="left:811px; top:7px; width:86px; height:17px; ">환자검색 :</caption>
  219. <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:562px; top:7px; width:100px; height:19px; ">
  220. <script type="javascript" ev:event="onkeyup">
  221. <![CDATA[
  222. fMoveFocus("ipt_todd");
  223. ]]>
  224. </script>
  225. </input>
  226. <input id="input1" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:683px; top:7px; width:100px; height:19px; ">
  227. <script type="javascript" ev:event="onkeyup">
  228. <![CDATA[
  229. fMoveFocus("ipt_todd");
  230. ]]>
  231. </script>
  232. </input>
  233. <caption id="caption1" style="left:665px; top:7px; width:15px; height:17px; text-align:center; ">~</caption>
  234. <caption id="caption3" class="search_name" style="left:215px; top:30px; width:86px; height:17px; ">수납상태 :</caption>
  235. <select1 id="radio1" ref="/root/send/srchrcptflag" appearance="full" cols="3" overflow="visible" style="left:305px; top:30px; width:150px; height:20px; border-style:none; ">
  236. <choices>
  237. <item>
  238. <label>전체</label>
  239. <value/>
  240. </item>
  241. <item>
  242. <label>수납</label>
  243. <value>Y</value>
  244. </item>
  245. <item>
  246. <label>미수납</label>
  247. <value>N</value>
  248. </item>
  249. </choices>
  250. <script type="javascript" ev:event="xforms-value-changed">
  251. <![CDATA[
  252. fGetStdVal();
  253. ]]>
  254. </script>
  255. </select1>
  256. <select1 id="cmb_healexamflag" ref="/root/send/srchhealexamflag" class="combo_search" appearance="minimal" style="left:100px; top:7px; width:90px; height:19px; ">
  257. <choices>
  258. <item>
  259. <label>--전체--</label>
  260. <value/>
  261. </item>
  262. <item>
  263. <label>종합건진</label>
  264. <value>C</value>
  265. </item>
  266. <item>
  267. <label>일반건진</label>
  268. <value>G</value>
  269. </item>
  270. </choices>
  271. </select1>
  272. <caption id="caption4" class="search_name" style="left:10px; top:7px; width:86px; height:19px; ">건진구분 :</caption>
  273. <select1 id="cmb_execprcpstatcd" ref="/root/send/srchprcpstatcd" class="combo_search" appearance="minimal" style="left:100px; top:30px; width:90px; height:19px; ">
  274. <choices>
  275. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  276. <label ref="cdnm"/>
  277. <value ref="cdid"/>
  278. </itemset>
  279. </choices>
  280. </select1>
  281. <caption id="caption5" class="search_name" style="left:10px; top:30px; width:86px; height:17px; ">처방상태 :</caption>
  282. <caption id="caption7" class="search_name" style="left:471px; top:30px; width:86px; height:17px; ">처방코드 :</caption>
  283. <input id="ipt_srchexamcurecd" ref="/root/send/srchexamcurecd" class="input_search" imemode="alpha" maxlength="12" style="left:562px; top:30px; width:115px; height:19px; ">
  284. <script type="javascript" ev:event="onkeyup">
  285. <![CDATA[
  286. inputEnterKey("btn_search", "DOMActivate");
  287. ]]>
  288. </script>
  289. <hint>
  290. <![CDATA[검사코드12자리입력가능]]>
  291. </hint>
  292. <script type="javascript" ev:event="onclick">
  293. <![CDATA[
  294. fGetPrcpCode();
  295. ]]>
  296. </script>
  297. </input>
  298. <button id="button1" class="icon_search" style="left:682px; top:30px; width:16px; height:16px; ">
  299. <caption/>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. /**
  303. * 수가내역 가져오기=======================================================================================================================================
  304. * SPAEB00201_PARAM1 : 검색구분(cd/nm)
  305. * SPAEB00201_PARAM2 : 검색조건(코드/명칭)
  306. * SPAEB00201_PARAM3 : multiyn
  307. * SPAEB00201_PARAM4 : multi선택 시 setting할 목적노드
  308. * SPAEB00201_PARAM5 : code값을 setting할 목적노드
  309. * SPAEB00201_PARAM6 : name값을 setting할 목적노드
  310. * SPAEB00201_PARAM7 : 수가를 setting할 목적노드
  311. */
  312. clearParameter("SPAEB00201_PARAM1");
  313. clearParameter("SPAEB00201_PARAM2");
  314. clearParameter("SPAEB00201_PARAM3");
  315. clearParameter("SPAEB00201_PARAM4");
  316. clearParameter("SPAEB00201_PARAM5");
  317. clearParameter("SPAEB00201_PARAM6");
  318. //clearParameter("SPAEB00201_PARAM7");
  319. setParameter ("SPAEB00201_PARAM1" , "cd");
  320. setParameter ("SPAEB00201_PARAM2" , model.getValue("/root/send/srchexamcurecd"));
  321. setParameter ("SPAEB00201_PARAM3" , "N");
  322. setParameter ("SPAEB00201_PARAM4" , "");
  323. setParameter ("SPAEB00201_PARAM5" , "/root/send/srchexamcurecd" );
  324. setParameter ("SPAEB00201_PARAM6" , "/root/send/srchexamcurenm");
  325. //setParameter ("SPAEB00201_PARAM7" , vAmtDestXPath);
  326. modal("SPAEB00201");
  327. model.refresh();
  328. ]]>
  329. </script>
  330. </button>
  331. <output id="output1" ref="/root/send/srchexamcurenm" class="output_fix" style="left:703px; top:30px; width:240px; height:19px; "/>
  332. </group>
  333. <datagrid id="grd_tissprcp" nodeset="/root/main/tissprcplist/item" caption="구분^처방일자^접수일자^접수번호^등록번호^환자명^처방상태^처방코드^처방명^처방부서^접수자^처방일시^수납여부^수납일자^caption1^caption2^caption3" colsep="^" colwidth="43, 70, 70, 60, 70, 65, 60, 90, 190, 100, 65, 120, 60, 85, 100, 100, 100" defaultrows="0" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1194px; height:655px; ">
  334. <col disabled="true" ref="healexamflag" type="combo" style="text-align:center; ">
  335. <choices>
  336. <item>
  337. <label>종건</label>
  338. <value>C</value>
  339. </item>
  340. <item>
  341. <label>일건</label>
  342. <value>G</value>
  343. </item>
  344. </choices>
  345. </col>
  346. <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
  347. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; vertical-align:middle; "/>
  348. <col ref="cretno" style="text-align:center; vertical-align:middle; "/>
  349. <col ref="pid" style="text-align:center; vertical-align:middle; "/>
  350. <col ref="hngnm" style="text-align:center; vertical-align:middle; "/>
  351. <col disabled="true" ref="execprcpstatcd" type="combo" style="text-align:center; vertical-align:middle; ">
  352. <choices>
  353. <itemset nodeset="/root/init/baseinfo/initexecprcpstatcd/M0011">
  354. <label ref="cdnm"/>
  355. <value ref="cdid"/>
  356. </itemset>
  357. </choices>
  358. </col>
  359. <col ref="prcpcd"/>
  360. <col ref="prcpnm"/>
  361. <col ref="rgstdeptcd"/>
  362. <col ref="rgstrid" style="text-align:center; "/>
  363. <col ref="rgstdt" format="yyyy-mm-dd hh:mm:ss" style="text-align:center; vertical-align:middle; "/>
  364. <col ref="rcptyn" type="combo" style="text-align:center; ">
  365. <choices>
  366. <item>
  367. <label>수납</label>
  368. <value>Y</value>
  369. </item>
  370. <item>
  371. <label>미수납</label>
  372. <value>N</value>
  373. </item>
  374. </choices>
  375. </col>
  376. <col ref="rcptdd" type="inputdate"/>
  377. <col ref="prcpno" visibility="hidden"/>
  378. <col ref="prcphistno" visibility="hidden"/>
  379. <col ref="execprcpno" visibility="hidden"/>
  380. <script type="javascript" ev:event="xforms-value-changed">
  381. <![CDATA[
  382. var row = grd_tissprcp.row;
  383. var col = grd_tissprcp.col;
  384. if (col == grd_tissprcp.colRef("rcptyn")) {
  385. var rcptyn = grd_tissprcp.valueMatrix(row, grd_tissprcp.colRef("rcptyn"));
  386. if (rcptyn == "N") {
  387. grd_tissprcp.valueMatrix(row, grd_tissprcp.colRef("rcptdd")) = "00000000";
  388. } else {
  389. grd_tissprcp.valueMatrix(row, grd_tissprcp.colRef("rcptdd")) = getCurrentDate();
  390. }
  391. }
  392. ]]>
  393. </script>
  394. <script type="javascript" ev:event="onaftersort">
  395. <![CDATA[
  396. grd_tissprcp.gridToInstance();
  397. ]]>
  398. </script>
  399. </datagrid>
  400. <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  401. </group>
  402. <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
  403. <button id="btn_print" class="btn6_letter4" style="left:0px; top:5px; width:72px; height:22px; ">
  404. <caption>엑셀출력</caption>
  405. <script type="javascript" ev:event="onclick">
  406. <![CDATA[
  407. var file = window.fileDialog("save","","false","","xls","Excel Files(*.xls)|*.xls");
  408. if(file != "") grd_tissprcp.saveExcel(file);
  409. ]]>
  410. </script>
  411. </button>
  412. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  413. <caption>저장</caption>
  414. <script type="javascript" ev:event="DOMActivate">
  415. <![CDATA[
  416. fSaveVal();
  417. ]]>
  418. </script>
  419. </button>
  420. </group>
  421. </xhtml:body>
  422. </xhtml:html>