SPPIE00730_청구서생성.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. 2007.08.08 / 최초작성 / 이종찬
  4. [화면기능]
  5. 본 업무 화면은 SAM파일 생성을 위해 청구번호를 생성시키고 해당 명세서에 명세서일련번호를 부여한다.
  6. [개발이력]
  7. 2007.08.08 사용자 입력값을 서버에 전달
  8. 2008.01.30 병원기초정보 표시기능 추가
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>청구서생성</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <list01>
  19. <hospinfo>
  20. <bizmngrgstno/>
  21. <clamprsdnm/>
  22. <prsdnm/>
  23. <clamprsdrrgstno/>
  24. </hospinfo>
  25. </list01>
  26. <list02>
  27. <comboclamdg>
  28. <clamdgval/>
  29. <clamdglab/>
  30. </comboclamdg>
  31. </list02>
  32. </main>
  33. <send>
  34. <ioflag/>
  35. <clamflag/>
  36. <insurkindflag/>
  37. <ordfildcd/>
  38. <clamfromdd/>
  39. <clamtodd/>
  40. <clamcretdd/>
  41. <clamym/>
  42. <clamdg/>
  43. </send>
  44. <init>
  45. <P0425list>
  46. <P0425>
  47. <cdid/>
  48. <cdnm/>
  49. </P0425>
  50. </P0425list>
  51. <P0408list>
  52. <P0408>
  53. <cdid/>
  54. <cdnm/>
  55. </P0408>
  56. </P0408list>
  57. <dummy>
  58. <P0235list>
  59. <P0235>
  60. <cdid>7</cdid>
  61. <cdnm>보호정신과정액</cdnm>
  62. </P0235>
  63. </P0235list>
  64. </dummy>
  65. <!-- ########## 수정추가12:JHP 2008.07.25 ########## -->
  66. <P0458kindcdlist>
  67. </P0458kindcdlist>
  68. <!-- ######### 수정추가12 : 끝 ########### -->
  69. </init>
  70. <hidden/>
  71. </root>
  72. </instance>
  73. <script type="javascript" ev:event="xforms-ready">
  74. <![CDATA[
  75. // 2007.10.22 콤보내의 공백 아이템을 제거한다.
  76. model.removenodeset("/root/init/P0235list/P0235");
  77. fInitialize();
  78. model.refresh();
  79. CommCode_Load();
  80. // 2008.01.29 병원정보를 로드한다.
  81. submit("TRPIE00521");
  82. // 2008.01.30 담당자 주민번호 일부를 *로 만든다.
  83. var rgstno = "";
  84. rgstno = model.getValue("root/main/list01/hospinfo/clamprsdrrgstno");
  85. rgstno = rgstno.substr(0,6);
  86. rgstno = rgstno + "-*******";
  87. model.setValue("root/main/list01/hospinfo/clamprsdrrgstno",rgstno);
  88. model.refresh();
  89. ]]>
  90. </script>
  91. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  92. <!-- ########## 수정추가 12 : JHP 2008.070.25 유형코드 불러오려면 ... 필요 ########## -->
  93. <submission id="TRZBC00104" mediatype="application/x-www-form-urlencoded" method="post"/>
  94. <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  95. <!-- ########## 수정추가 12 : JHP 끝 ############################################ -->
  96. <submission id="TXPIE00520" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  97. <submission id="TRPIE00521" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/list01"/>
  98. <submission id="TRPIE00523" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list02"/>
  99. </model>
  100. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  101. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  102. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  103. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  104. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  105. <script type="javascript">
  106. <![CDATA[
  107. function fInitialize() {
  108. rdo_ioflag.select(0);
  109. rdo_insurkindflag.select(0);
  110. cmb_ordfildcd.value = "";
  111. cmb_clamflag.value = "";
  112. cmb_clamdg.value = "";
  113. model.setValue("/root/send/clamym","");
  114. model.setValue("/root/send/clamcretdd",getCurrentDate());
  115. model.setValue("/root/send/clamfromdd",getCurrentDate());
  116. model.setValue("/root/send/clamtodd",getCurrentDate());
  117. model.setFocus("cmb_ordfildcd");
  118. model.refresh();
  119. }
  120. // 공통코드 Load작업
  121. function CommCode_Load() {
  122. // 관련 Control 초기화
  123. zbcfGetCodeList(new Array("P0425"), new Array("/root/init/P0425list"));
  124. zbcfGetCodeList(new Array("P0235"), new Array("/root/init/P0235list"));
  125. zbcfGetCodeList(new Array("P0408"), new Array("/root/init/P0408list"));
  126. // 2007.10.22 보호정신과정액 항목 추가
  127. copyNodeType("/root/init/P0235list/P0235","/root/init/dummy/P0235list/P0235","after");
  128. model.refresh();
  129. }
  130. ]]>
  131. </script>
  132. </xhtml:head>
  133. <xhtml:body pagewidth="450" pageheight="380" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  134. <group id="group1" style="left:0px; top:0px; width:432px; height:13px; ">
  135. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:415px; height:13px; ">청구서생성</caption>
  136. </group>
  137. <group id="group3" scroll="auto" style="left:0px; top:13px; width:432px; height:322px; ">
  138. <line id="line1" class="line_1" style="x1:0px; y1:28px; x2:432px; y2:28px; "/>
  139. <caption id="caption2" class="tit_2" style="left:5px; top:13px; width:98px; height:14px; ">생성조건입력</caption>
  140. <caption id="cap_02" class="cell_1" style="left:54px; top:171px; width:122px; height:22px; ">청구구분 :</caption>
  141. <caption id="cap_acptno" class="cell_1" style="left:54px; top:219px; width:122px; height:22px; ">청구서생성일 :</caption>
  142. <caption id="caption10" class="cell_1" style="left:54px; top:98px; width:122px; height:23px; ">내원구분 :</caption>
  143. <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="radio_search" appearance="full" cols="2" rows="1" overflow="visible" style="left:179px; top:101px; width:141px; height:16px; border-style:none; ">
  144. <choices>
  145. <item>
  146. <label>입원</label>
  147. <value>1</value>
  148. </item>
  149. <item>
  150. <label>외래</label>
  151. <value>2</value>
  152. </item>
  153. </choices>
  154. </select1>
  155. <caption id="caption19" class="cell_1" style="left:54px; top:74px; width:122px; height:22px; ">보험유형 :</caption>
  156. <select1 id="rdo_insurkindflag" ref="/root/send/insurkindflag" class="radio_search" appearance="full" cols="4" rows="1" overflow="visible" style="left:179px; top:77px; width:226px; height:16px; border-style:none; ">
  157. <choices>
  158. <item>
  159. <label>건강보험</label>
  160. <value>1</value>
  161. </item>
  162. <item>
  163. <label>의료급여</label>
  164. <value>2</value>
  165. </item>
  166. <!-- 수정추가1 : JHP 2008.07.22 보험유형에 산재 자보 추가(rdo_insurkindflag 속성 cols를 2에서 4로 변경)-->
  167. <item>
  168. <label>산재</label>
  169. <value>3</value>
  170. </item>
  171. <item>
  172. <label>자보</label>
  173. <value>4</value>
  174. </item>
  175. <!-- 수정추가1 : 끝 -->
  176. </choices>
  177. <!-- 수정추가3 : JHP 2008.07.22 보험유형에서 산재선택시 산재용 내원구분 radio button을 보여준다. -->
  178. <script type="javascript" ev:event="xforms-value-changed">
  179. <![CDATA[
  180. var insurkindflag = model.getValue("/root/send/insurkindflag");
  181. // 보험유형 산재 선택시.. 내원구분 변경, 진료분야글씨 변경, 청구구분 입력콤보 disabled변경
  182. if(insurkindflag == "3"){
  183. rdo_ioflag.visible = false;
  184. rdo_ioflag1.visible = true;
  185. caption1.visible = false;
  186. caption13.visible= true;
  187. cmb_clamflag.disabled= true;
  188. }else{
  189. rdo_ioflag.visible = true;
  190. rdo_ioflag1.visible = false;
  191. caption1.visible= true;
  192. caption13.visible= false;
  193. cmb_clamflag.disabled= false;
  194. }
  195. //보험유형 자보선택시 손보사 콤보박스 disabled 변경
  196. if(insurkindflag == "4"){
  197. cmb_claminsucmpy.disabled = false;
  198. }else{
  199. cmb_claminsucmpy.disabled = true;
  200. }
  201. // 보험유형선택시 진료분야(진료구분)의 값을 유형코드별로 변경
  202. if(insurkindflag == '1'){
  203. var bizid_list = "P0006";
  204. }else if(insurkindflag == '2'){
  205. var bizid_list = "P0007";
  206. }else if(insurkindflag == '3'){
  207. var bizid_list = "P0008";
  208. }else if(insurkindflag == '4'){
  209. var bizid_list = "P0009";
  210. }
  211. var cdgrupid_list = "P0458";
  212. var kindlistcd = bizid_list+cdgrupid_list;
  213. model.resetInstanceNode("/root/init/P0458kindcdlist/"+kindlistcd);
  214. zbcfGetKindCodeList(
  215. new Array(bizid_list),
  216. new Array(cdgrupid_list),
  217. new Array("/root/init/P0458kindcdlist"),
  218. false,
  219. new Array("dispseq"),
  220. new Array("asc")
  221. );
  222. cmb_ordfildcd.choices.itemset.attribute("nodeset") = "/root/init/P0458kindcdlist/"+kindlistcd;
  223. cmb_ordfildcd.refresh();
  224. ]]>
  225. </script>
  226. <!-- 수정추가3 : 끝 -->
  227. </select1>
  228. <caption id="caption3" class="cell_1" visibility="hidden" style="left:54px; top:243px; width:121px; height:22px; ">진료일자(작업일자) :</caption>
  229. <caption id="caption4" class="cell_1" style="left:4px; top:275px; width:87px; height:19px; ">요양기관기호 :</caption>
  230. <caption id="caption5" class="cell_1" style="left:212px; top:275px; width:97px; height:19px; ">담당자성명 :</caption>
  231. <caption id="caption7" class="cell_1" style="left:4px; top:296px; width:87px; height:19px; ">대표자성명 :</caption>
  232. <caption id="caption8" class="cell_1" style="left:212px; top:296px; width:97px; height:19px; ">담당자주민번호:</caption>
  233. <shape id="roundrect3" class="roundrect_btnset" appearance="roundrect" style="left:0px; top:35px; width:432px; height:233px; "/>
  234. <shape id="roundrect1" class="roundrect_btnset" appearance="roundrect" style="left:0px; top:270px; width:432px; height:50px; "/>
  235. <caption id="caption9" visibility="hidden" style="left:284px; top:248px; width:15px; height:15px; ">~</caption>
  236. <!-- ########## 수정추가 11 : JHP 2008.07.25 sumtypecd의 보험유형별로 유형코드보여주기 위해서 변경 ########## -->
  237. <select1 id="cmb_ordfildcd" ref="/root/send/ordfildcd" class="combo_search" appearance="minimal" style="left:179px; top:149px; width:115px; height:19px; ">
  238. <choices>
  239. <itemset nodeset="/root/init/P0458kindcdlist/">
  240. <label ref="cdnm"/>
  241. <value ref="cdid"/>
  242. </itemset>
  243. </choices>
  244. </select1>
  245. <!-- ########## 수정추가 11 : JHP 2008.07.25 끝 ############################################################# -->
  246. <!-- 기존 수정 전
  247. <select1 id="cmb_ordfildcd" ref="/root/send/ordfildcd" class="combo_search" appearance="minimal" style="left:174px; top:149px; width:115px; height:19px; ">
  248. <choices>
  249. <itemset nodeset="/root/init/P0425list/P0425">
  250. <label ref="cdnm"/>
  251. <value ref="cdid"/>
  252. </itemset>
  253. </choices>
  254. </select1>
  255. -->
  256. <select1 id="cmb_clamflag" ref="/root/send/clamflag" class="combo_search" appearance="minimal" style="left:179px; top:173px; width:115px; height:19px; ">
  257. <choices>
  258. <itemset nodeset="/root/init/P0408list/P0408">
  259. <label ref="cdnm"/>
  260. <value ref="cdid"/>
  261. </itemset>
  262. </choices>
  263. </select1>
  264. <input id="ipt_clamtodd" ref="/root/send/clamtodd" class="input_search" visibility="hidden" inputtype="date" maxlength="8" required="true" format="yyyy-mm-dd" style="left:299px; top:245px; width:100px; height:19px; "/>
  265. <input id="ipt_clamfromdd" ref="/root/send/clamfromdd" class="input_search" visibility="hidden" inputtype="date" maxlength="8" required="true" format="yyyy-mm-dd" style="left:179px; top:245px; width:100px; height:19px; "/>
  266. <input id="ipt_clamcretdd" ref="/root/send/clamcretdd" class="input_search" disabled="true" maxlength="8" required="true" format="yyyy-mm-dd" style="left:179px; top:220px; width:71px; height:19px; "/>
  267. <input id="ipt_bizmngrgstno" ref="/root/main/list01/hospinfo/bizmngrgstno" class="input_search" disabled="true" maxlength="8" required="true" style="left:94px; top:275px; width:115px; height:19px; "/>
  268. <input id="ipt_clamprsdnm" ref="/root/main/list01/hospinfo/clamprsdnm" class="input_search" disabled="true" maxlength="8" required="true" style="left:312px; top:275px; width:115px; height:19px; "/>
  269. <input id="ipt_prsdnm" ref="/root/main/list01/hospinfo/prsdnm" class="input_search" disabled="true" maxlength="8" required="true" style="left:94px; top:295px; width:115px; height:19px; "/>
  270. <input id="ipt_clamprsdrrgstno" ref="/root/main/list01/hospinfo/clamprsdrrgstno" class="input_search" disabled="true" maxlength="8" required="true" style="left:312px; top:295px; width:115px; height:19px; "/>
  271. <caption id="caption11" class="cell_1" style="left:54px; top:195px; width:122px; height:22px; ">청구월/청구차수 :</caption>
  272. <input id="input1" ref="/root/send/clamym" class="input_search" disabled="false" inputtype="date" required="true" format="yyyy-mm" style="left:179px; top:196px; width:71px; height:19px; ">
  273. <script type="javascript" ev:event="DOMFocusOut">
  274. <![CDATA[
  275. // model.setValue("/root/send/clamdg","");
  276. // submit("TRPIE00523")
  277. ]]>
  278. </script>
  279. <script type="javascript" ev:event="xforms-value-changed">
  280. <![CDATA[
  281. model.setFocus("cmb_clamdg");
  282. btn_getclamdg.dispatch("DOMActivate");
  283. ]]>
  284. </script>
  285. </input>
  286. <script type="javascript" ev:event="onkeyup">
  287. <![CDATA[
  288. //inputEnterKey("btn_getclamdg", "DOMActivate");
  289. ]]>
  290. </script>
  291. <button id="btn_getclamdg" class="btn2_letter11" visibility="hidden" style="left:10px; top:45px; width:141px; height:19px; ">
  292. <caption>[인풋박스]청구차수받기</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. model.setValue("/root/send/clamdg","");
  296. submit("TRPIE00523")
  297. ]]>
  298. </script>
  299. </button>
  300. <select1 id="cmb_clamdg" ref="/root/send/clamdg" class="combo_search" appearance="minimal" style="left:253px; top:196px; width:41px; height:19px; ">
  301. <choices>
  302. <itemset nodeset="/root/main/list02/comboclamdg">
  303. <label ref="clamdglab"/>
  304. <value ref="clamdgval"/>
  305. </itemset>
  306. </choices>
  307. </select1>
  308. <caption id="caption13" class="cell_1" style="left:54px; top:147px; width:122px; height:22px; ">청구분야 :</caption>
  309. <caption id="caption1" class="cell_1" style="left:54px; top:147px; width:122px; height:22px; ">진료분야 :</caption>
  310. <select1 id="rdo_ioflag1" ref="/root/send/ioflag" class="radio_search" appearance="full" cols="2" rows="1" overflow="visible" style="left:179px; top:101px; width:86px; height:16px; border-style:none; ">
  311. <choices>
  312. <item>
  313. <label>입원</label>
  314. <value>1</value>
  315. </item>
  316. <item>
  317. <label>통원</label>
  318. <value>2</value>
  319. </item>
  320. </choices>
  321. <script type="javascript" ev:event="xforms-value-changed">
  322. <![CDATA[
  323. // 산재선택후 내원구분 선택시 해당값을 기존 내원구분값에 매칭
  324. var ioflag1 = rdo_ioflag1.value;
  325. model.setValue("/root/send/ioflag",ioflag1);
  326. ]]>
  327. </script>
  328. </select1>
  329. <select1 id="cmb_claminsucmpy" ref="/root/send/ordfildcd" class="combo_search" disabled="true" appearance="minimal" style="left:179px; top:125px; width:115px; height:19px; ">
  330. <!-- 주석 -->
  331. <choices>
  332. <itemset nodeset="/root/init/P0425list/P0425">
  333. <label ref="cdnm"/>
  334. <value ref="cdid"/>
  335. </itemset>
  336. </choices>
  337. </select1>
  338. <caption id="caption12" class="cell_1" style="left:54px; top:123px; width:122px; height:22px; ">손 보 사 :</caption>
  339. </group>
  340. <group id="grp_btn" scroll="auto" style="left:0px; top:340px; width:432px; height:27px; ">
  341. <line id="line33" class="line_6" style="x1:0px; y1:0px; x2:432px; y2:0px; "/>
  342. <button id="button1" class="btn4_letter2" style="left:319px; top:5px; width:56px; height:22px; ">
  343. <caption>생성</caption>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. // 2008.01.31 생성 명령시 필수 입력사항 입력여부 검사
  347. if(model.getValue("root/send/ordfildcd") == ""){
  348. messageBox("[진료분야]를 입력하여주십시오.","C009");
  349. }else if(model.getValue("root/send/clamflag") == ""){
  350. messageBox("[청구구분]을 입력하여주십시오.","C009");
  351. }else if(model.getValue("root/send/clamym") == ""){
  352. messageBox("[청구년월]을 입력하여주십시오.","C009");
  353. }else if(model.getValue("root/send/clamdg") == ""){
  354. messageBox("[청구차수]을 입력하여주십시오.","C009");
  355. }
  356. // else if(model.getValue("root/send/clamfromdd") == ""){
  357. // messageBox("[진료일자(From)]를 입력하여주십시오.","C009");
  358. // }else if(model.getValue("root/send/clamtodd") == ""){
  359. // messageBox("[진료일자(To)]를 입력하여주십시오.","C009");
  360. // }
  361. else if(model.getValue("root/send/clamcretdd") == ""){
  362. messageBox("[청구생성일]을 입력하여주십시오.","C009");
  363. }else{
  364. if(submit("TXPIE00520")){
  365. var todd = getCurrentDate();
  366. todd = todd.toDate().getAddDate(+1, 'D');
  367. zsbfOpenBatchLogPopup("editrsmrecvmngtmgr.EdiMakeClamBatch",getCurrentDate(),todd.getDateFormat());
  368. fInitialize();
  369. // window.close();
  370. }
  371. }
  372. ]]>
  373. </script>
  374. </button>
  375. <button id="button2" class="btn4_letter2" style="left:376px; top:5px; width:56px; height:22px; ">
  376. <caption>닫기</caption>
  377. <script type="javascript" ev:event="DOMActivate">
  378. <![CDATA[
  379. window.close();
  380. ]]>
  381. </script>
  382. </button>
  383. <button id="button3" class="btn4_letter4" disabled="true" visibility="hidden" style="left:158px; top:5px; width:80px; height:22px; ">
  384. <caption>마감설정</caption>
  385. <script type="javascript" ev:event="DOMActivate">
  386. <![CDATA[
  387. // 필요시 화면 초기화 작업 수행
  388. ]]>
  389. </script>
  390. </button>
  391. <button id="button4" class="btn4_letter3" visibility="visible" style="left:250px; top:5px; width:68px; height:22px; ">
  392. <caption>초기화</caption>
  393. <script type="javascript" ev:event="DOMActivate">
  394. <![CDATA[
  395. fInitialize();
  396. ]]>
  397. </script>
  398. </button>
  399. </group>
  400. </xhtml:body>
  401. </xhtml:html>