SMPIF70100_미수정보생성(자보).xrw 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. [2007.09.08]
  4. (-) 정보생성 실패 원인 파악
  5. [2007.09.10]
  6. 진료월 2006.06 입원데이터만 테스트 할 것
  7. [2007.09.19]
  8. (-) 개별생성에서 조회 조건에 손보사 선택 콤보가 필요함
  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. <main>
  19. <list01>
  20. <griduncoinfo>
  21. <chkbox/>
  22. <acptrtnflag/>
  23. <uncoyn/>
  24. <clamym/>
  25. <uncoym/>
  26. <ioflag/>
  27. <clamflag/>
  28. <orddeptcd/>
  29. <clamdg/>
  30. <insuno/>
  31. <docuseqno/>
  32. <pid/>
  33. <patnm/>
  34. <patrrgstno/>
  35. <insuclamamt/>
  36. <clamno/>
  37. <insucd/>
  38. <acdacptno/>
  39. <cretfromdd/>
  40. <crettodd/>
  41. </griduncoinfo>
  42. <griduncoinfo_prnt>
  43. <docuseqno/>
  44. <insucd/>
  45. <insuno/>
  46. <patnm/>
  47. <pid/>
  48. <patrrgstno/>
  49. <acdacptno/>
  50. <cretfromdd/>
  51. <crettodd/>
  52. <orddeptcd/>
  53. <insuclamamt/>
  54. <choiordamt/>
  55. </griduncoinfo_prnt>
  56. </list01>
  57. <rCSV/>
  58. </main>
  59. <send>
  60. <ioflag>A</ioflag>
  61. <tmp>
  62. <list/>
  63. </tmp>
  64. <termflag/>
  65. <fromdd/>
  66. <todd/>
  67. <clamdg/>
  68. <clamflag/>
  69. <claminsucmpy/>
  70. <batch>
  71. <clamym/>
  72. <reclamflag/>
  73. <clamdd/>
  74. </batch>
  75. <send_clamdgref>
  76. <dateflag/>
  77. <fromdd/>
  78. <todd/>
  79. <ioflag/>
  80. <insukind/>
  81. <clamflag/>
  82. <ordfildcd/>
  83. <acptno/>
  84. </send_clamdgref>
  85. </send>
  86. <init>
  87. <P0155list>
  88. <P0155>
  89. <cdid/>
  90. <cdnm/>
  91. </P0155>
  92. </P0155list>
  93. <P0028list>
  94. <P0028>
  95. <cdid/>
  96. <cdnm/>
  97. </P0028>
  98. </P0028list>
  99. <U0001list>
  100. <U0001>
  101. <cd/>
  102. <nm/>
  103. </U0001>
  104. </U0001list>
  105. <clamdglist>
  106. <clamdg>
  107. <cdid/>
  108. <cdnm/>
  109. </clamdg>
  110. </clamdglist>
  111. </init>
  112. <hidden>
  113. <errormsg>
  114. <error>
  115. <error/>
  116. </error>
  117. </errormsg>
  118. <U0001>
  119. <cd/>
  120. <nm>전체</nm>
  121. </U0001>
  122. <clamdg>
  123. <cdid/>
  124. <cdnm/>
  125. </clamdg>
  126. <con>
  127. <acptdd/>
  128. </con>
  129. </hidden>
  130. </root>
  131. </instance>
  132. <script type="javascript" ev:event="xforms-ready">
  133. <![CDATA[
  134. CommCode_Load();
  135. fInitialize();
  136. // 청구차수 조회
  137. fDateChk();
  138. model.refresh();
  139. cmb_clamdg.select(0);
  140. cmb_claminsucmpy.select(0);
  141. ]]>
  142. </script>
  143. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  144. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
  145. <submission id="TRPIF20101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/send_clamdgref" resultref="/root/init/clamdglist/clamdg"/>
  146. <submission id="TRPIF70305" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/U0001list"/>
  147. <submission id="TRPIF70100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
  148. <submission id="TXPIF70101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  149. <submission id="TXPIF70102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/tmp"/>
  150. <submission id="TXPIF70103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/batch" resultref="/root/hidden/errormsg"/>
  151. </model>
  152. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  153. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  154. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  155. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  156. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  157. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  158. <script type="javascript">
  159. <![CDATA[
  160. // 공통코드 Load작업
  161. function CommCode_Load() {
  162. // 관련 Control 초기화
  163. zbcfGetCodeList(new Array("P0155","P0028"), new Array( "/root/init/P0155list","/root/init/P0028list"));
  164. //손보사 콤보 data 조회(자보미수관리 참조)
  165. submit("TRPIF70305");
  166. // 손보자 조회 조건에 전체가없어서 추가 해달라고 했는데 해당 조회 쿼리는 공통으로 쓰는거라
  167. // 임의로 추가함.
  168. // 20090108. JHP
  169. var node = root.init.U0001list;
  170. var addnode = root.hidden.U0001;
  171. var refnode = root.init.U0001list.U0001;
  172. node.insertbefore(addnode,refnode);
  173. // 청구차수 전체 추가
  174. // fClamDg();
  175. }
  176. function fClamDg(){
  177. var node = root.init.clamdglist;
  178. var addnode = root.hidden.clamdg;
  179. // 2009.02.11 syjung
  180. // 청구차수가 없는 경우 clamdglist에 clamdg 하위노드가 없기 때문에 clamdg 하위노드를 먼저 만들어준다.
  181. var clamdgnode = root.init.clamdglist;
  182. var hasChild = clamdgnode.hasChildNodes();
  183. if (hasChild == 0) {
  184. model.makeNode("/root/init/clamdglist/clamdg");
  185. }
  186. var refnode = root.init.clamdglist.clamdg;
  187. node.insertbefore(addnode,refnode);
  188. model.makeNode("/root/hidden/clamdg");
  189. model.copyNode("/root/hidden/clamdg","/root/init/clamdglist/clamdg");
  190. }
  191. //초기화
  192. function fInitialize(){
  193. //grid제목줄에 checkbox 생성
  194. grduncoinfo.fixedcellcheckbox(0,1) = true;
  195. rdo_ioflag.select(0);
  196. rdo_srchym.select(0);
  197. model.setValue("/root/send/todd", getCurrentDate().substr(0, 6));
  198. model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-90).getDateFormat("YYYYMM"));
  199. // 그리드 초기화(행을 모두 삭제한다.)
  200. model.removeNodeset("/root/main/list01/grduncoinfo");
  201. model.setValue("/root/hidden/con/acptdd", "");
  202. model.refresh();
  203. }
  204. // 생성할 내역중 이미 생성된 건이 있는지 검색하여 생성자에게 알려준다. 없으면 그대로 진행
  205. function fCretChk() {
  206. var rows = grduncoinfo.rows;
  207. var frows = grduncoinfo.fixedRows;
  208. var nrows = rows - frows;
  209. var acptdd2 = model.getValue("/root/hidden/con/acptdd");
  210. for(i = 1; i <= nrows; i++){
  211. var chkbox = grduncoinfo.valueMatrix(i+1, grduncoinfo.colRef("chkbox"));
  212. var uncoyn = grduncoinfo.valueMatrix(i+1, grduncoinfo.colRef("uncoyn"));
  213. var acptrtnflag = grduncoinfo.valueMatrix(i+1, grduncoinfo.colRef("acptrtnflag"));
  214. var clamflag = grduncoinfo.valueMatrix(i+1, grduncoinfo.colRef("clamflag"));
  215. var docuseqno = grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("docuseqno"));
  216. var pid = grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("pid"));
  217. var patnm = grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("patnm"));
  218. var clamno = grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("clamno"));
  219. //청구일자입력시 해당 청구일자가 그리드의 acptdd 컬럼 세팅된다. 그 값이 정확시 세팅됐는지 확인하기 위한 값
  220. var acptdd = grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("acptdd"));
  221. var clamym = grduncoinfo.valueMatrix(i+1, grduncoinfo.colRef("clamym"));
  222. // 2009.02.12 syjung 접수반송증 체크하지 않음.
  223. // if(chkbox == 'true' && acptrtnflag == 'N'){
  224. // grduncoinfo.row= i;
  225. // var ok = messageBox("명일련 : "+ docuseqno +", 등록번호 : "+ pid +", 수진자 : "+ patnm +"은 접수반송증 내용이 없습니다.. 해당건을 취소하고","Q003");
  226. // if(ok == '6'){
  227. // grduncoinfo.valueMatrix(i,grduncoinfo.colRef("chkbox")) = 'false';
  228. // } else{
  229. // break;
  230. // return false;
  231. // }
  232. // }
  233. if(chkbox == 'true' && uncoyn == 'Y'){
  234. var ok = messageBox("명일련 : "+ docuseqno +", 등록번호 : "+ pid +", 수진자 : "+ patnm +" 은(는) 이미 생성된 내역이 존재합니다. 해당건을 취소하고","Q003");
  235. // 아니오
  236. if(ok == '7'){
  237. grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("chkbox")) = 'false';
  238. grduncoinfo.row = i+1;
  239. grduncoinfo.topRow = i+1;
  240. model.setFocus("grduncoinfo");
  241. return false;
  242. }
  243. }
  244. if(chkbox == 'true' && clamno == '-'){
  245. var ok = messageBox("청구번호 : " + clamno + ", 등록번호 : "+ pid +", 수진자 : "+ patnm +" 은(는) 청구내역이 존재하지 않습니다. 청구내역을","I007");
  246. grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("chkbox")) = 'false';
  247. grduncoinfo.row = i+1;
  248. grduncoinfo.topRow = i+1;
  249. model.setFocus("grduncoinfo");
  250. return false;
  251. }
  252. //생성하기 위해 체크선택된 값 중 청구일자가 정확히 세팅되지 않은 것을 체크
  253. if(chkbox == 'true' && (acptdd == '-' || acptdd == '' || acptdd != acptdd2) && clamflag != '0'){ //clamflag != '0' 원청구일 경우에는 자기월기준으로 청구를 생성. 그 외의 경우는 입력한 청구일자 기준으로 생성한다.
  254. messageBox("청구일자가 정확히 들어오지 않았습니다. 청구일자를 정확히 선택하신 후에 다시 생성하세요.", "E999", "");
  255. grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("chkbox")) = 'false';
  256. grduncoinfo.row = i+1;
  257. grduncoinfo.topRow = i+1;
  258. model.setFocus("grduncoinfo");
  259. return false;
  260. }
  261. // 2010.03.23 청구구분 상관없이 청구일자로 셋팅하게 변경함.
  262. //선택된 내역 중 원청구인 경우 접수일자(미수월)을 청구월 + '01' 로 세팅한다.
  263. // if(chkbox == 'true' && clamflag == '0'){
  264. //
  265. // var clamym = grduncoinfo.valueMatrix(i+1, grduncoinfo.colRef("clamym"));
  266. // model.makeNode("/root/main/list01/griduncoinfo["+ i +"]/acptdd");
  267. // model.setValue("/root/main/list01/griduncoinfo["+ i +"]/acptdd", clamym + '01');
  268. // }
  269. }
  270. }
  271. // 생성할 내역중 생성되지 않은 건이 있는지 검색하여 삭제자에게 알려준다. 없으면 그대로 진행
  272. function fDelChk() {
  273. var rows = grduncoinfo.rows;
  274. var frows = grduncoinfo.fixedRows;
  275. var nrows = rows - frows;
  276. for(i = 1; i <= nrows; i++){
  277. var chkbox = grduncoinfo.valueMatrix(i+1, grduncoinfo.colRef("chkbox"));
  278. var uncoyn = grduncoinfo.valueMatrix(i+1, grduncoinfo.colRef("uncoyn"));
  279. var acptrtnflag = grduncoinfo.valueMatrix(i+1, grduncoinfo.colRef("acptrtnflag"));
  280. var docuseqno = grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("docuseqno"));
  281. var pid = grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("pid"));
  282. var patnm = grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("patnm"));
  283. // 2009.02.12 syjung 접수반송증 체크하지 않음.
  284. // if(chkbox == 'true' && acptrtnflag == 'N'){
  285. // grduncoinfo.row= i;
  286. // var ok = messageBox("명일련 : "+ docuseqno +", 등록번호 : "+ pid +", 수진자 : "+ patnm +" 은 접수반송증내역이 없습니다. 해당건을 취소하고","Q003");
  287. // if(ok == '6'){
  288. // grduncoinfo.valueMatrix(i,grduncoinfo.colRef("chkbox")) = 'false';
  289. // } else{
  290. // break;
  291. // return false;
  292. // }
  293. // }
  294. if(chkbox == 'true' && uncoyn == 'N'){
  295. var ok = messageBox("명일련 : "+ docuseqno +", 등록번호 : "+ pid +", 수진자 : "+ patnm +" 은 생성되지 않은 내역입니다. 미수생성내역을","I007");
  296. grduncoinfo.valueMatrix(i+1,grduncoinfo.colRef("chkbox")) = 'false';
  297. }
  298. }
  299. }
  300. // 청구차수 가져오려고 확인.
  301. function fDateChk(){
  302. var dateflag = model.getValue("/root/send/termflag");
  303. var fromdd = model.getValue("/root/send/fromdd");
  304. var todd = model.getValue("/root/send/todd");
  305. if(model.getValue("/root/send/ioflag") == "A"){
  306. var ioflag = '';
  307. } else {
  308. var ioflag = model.getValue("/root/send/ioflag")
  309. }
  310. var insukind = '31';
  311. var clamflag = model.getValue("/root/send/clamflag");
  312. var ordfildcd = '';
  313. var acptno = '';
  314. if(dateflag == ""){
  315. messageBox("기간의 월구분을","C001");
  316. model.setFocus("rdo_ioflag");
  317. }else if(fromdd == ""){
  318. messageBox("기간의 시작일자를","C001");
  319. model.setFocus("ipt_fromdd");
  320. }else if(todd == ""){
  321. messageBox("기간의 종료일자를","C001");
  322. model.setFocus("ipt_todd");
  323. }else{
  324. model.setValue("/root/send/send_clamdgref/dateflag",dateflag);
  325. model.setValue("/root/send/send_clamdgref/fromdd",fromdd);
  326. model.setValue("/root/send/send_clamdgref/todd",todd);
  327. model.setValue("/root/send/send_clamdgref/ioflag",ioflag);
  328. model.setValue("/root/send/send_clamdgref/insukind",insukind);
  329. model.setValue("/root/send/send_clamdgref/clamflag",clamflag);
  330. model.setValue("/root/send/send_clamdgref/ordfildcd",ordfildcd);
  331. model.setValue("/root/send/send_clamdgref/acptno",acptno);
  332. submit("TRPIF20101");
  333. // 청구차수 전체 추가
  334. fClamDg();
  335. cmb_clamdg.refresh();
  336. cmb_clamdg.select(0);
  337. }
  338. }
  339. // 미수일괄생성처리(자보)시 일괄생성 실행시 오류가 발생하면 해당오류에 대하여 미리 정의해놓은 오류메세지를보여준다.
  340. function fErrorMsg(){
  341. var errormsg = model.getValue("/root/hidden/errormsg/error/error");
  342. if(errormsg != "") {
  343. messageBox(errormsg,"E001");
  344. }
  345. }
  346. ]]>
  347. </script>
  348. </xhtml:head>
  349. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  350. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  351. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">미수정보생성(자보)</caption>
  352. </group>
  353. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  354. <caption id="caption11" style="left:860px; top:77px; width:80px; height:20px; font-weight:bold; ">* 청구일자 :</caption>
  355. <caption id="caption1" class="tit_2" style="left:6px; top:80px; width:121px; height:13px; ">미수내역</caption>
  356. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1194px; y2:95px; "/>
  357. <group id="group4" style="left:0px; top:10px; width:1194px; height:60px; vertical-align:top; ">
  358. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:57px; background-color:#fffbf2; border-color:#ffd799; "/>
  359. <button id="button15" class="btn1_letter2" navindex="4" style="left:1119px; top:19px; width:56px; height:22px; ">
  360. <caption>조회</caption>
  361. <script type="javascript" ev:event="DOMActivate">
  362. <![CDATA[
  363. var fromdd = model.getValue("/root/send/fromdd");
  364. var todd = model.getValue("/root/send/todd");
  365. if(fromdd == "" || todd == "") {
  366. messageBox("기간은","I003");
  367. } else {
  368. if ( submit("TRPIF70100") ) {
  369. // var rows = grduncoinfo.rows -1;
  370. // for (i = 1; i < rows; i++) {
  371. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/docuseqno" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/docuseqno") );
  372. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/insucd" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/insucd") );
  373. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/insuno" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/insuno") );
  374. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/patnm" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/patnm") );
  375. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/pid" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/pid") );
  376. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/patrrgstno" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/patrrgstno") );
  377. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/acdacptno" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/acdacptno") );
  378. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/cretfromdd" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/cretfromdd") );
  379. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/crettodd" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/crettodd") );
  380. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/orddeptcd" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/orddeptcd") );
  381. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/insuclamamt" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/insuclamamt") );
  382. // model.makeValue("/root/main/list01/griduncoinfo_prnt[" + i + "]/choiordamt" , model.getValue("/root/main/list01/griduncoinfo[" + i + "]/choiordamt") );
  383. // }
  384. model.setValue("/root/hidden/con/acptdd", "");
  385. model.refresh();
  386. }
  387. }
  388. // 플래그 색깔 넣기
  389. //var ROW_POS = 1;
  390. //var FLAG_POS = 1;
  391. //var FROZEN_COL = 2;
  392. //int = 0;
  393. //for(i = 1; i <grduncoinfo.rows; i++){
  394. // grduncoinfo.frozencols = parseInt(FROZEN_COL);
  395. // if(grduncoinfo.textmatrix(i,FLAG_POS) == "N"){
  396. // grduncoinfo.forecolorfrozen = "#FF0000";
  397. // model.refresh();
  398. // }else if(grduncoinfo.textmatrix(i,FLAG_POS) == "Y"){
  399. // grduncoinfo.forecolorfrozen = "#0000FF";
  400. // model.refresh();
  401. // }
  402. //}
  403. ]]>
  404. </script>
  405. </button>
  406. <line id="line2" class="line_4" style="x1:1101px; y1:14px; x2:1101px; y2:47px; border-color:#ffe4bb; border-left-style:solid; "/>
  407. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" maxlength="6" format="yyyy-mm" style="left:400px; top:19px; width:70px; height:19px; ">
  408. <script type="javascript" ev:event="xforms-value-changed">
  409. <![CDATA[
  410. ipt_todd.value = ipt_fromdd.value;
  411. fDateChk();
  412. ]]>
  413. </script>
  414. </input>
  415. <caption id="caption9" class="search_name" style="left:605px; top:32px; width:86px; height:17px; ">청구구분 :</caption>
  416. <select1 id="cmb_judgdg" ref="/root/send/clamflag" class="combo_search" navindex="3" appearance="minimal" style="left:696px; top:31px; width:100px; height:19px; ">
  417. <choices>
  418. <itemset nodeset="/root/init/P0155list/P0155">
  419. <label ref="cdnm"/>
  420. <value ref="cdid"/>
  421. </itemset>
  422. </choices>
  423. <script type="javascript" ev:event="xforms-select">
  424. <![CDATA[
  425. fDateChk();
  426. ]]>
  427. </script>
  428. </select1>
  429. <caption id="caption19" class="search_name" style="left:20px; top:20px; width:86px; height:17px; ">내원유형 :</caption>
  430. <caption id="caption4" class="search_name" style="left:268px; top:20px; width:66px; height:17px; ">기간 :</caption>
  431. <select1 id="rdo_ioflag" ref="/root/send/ioflag" appearance="full" cols="3" rows="1" vcellspacing="-2" overflow="visible" style="left:109px; top:21px; width:151px; height:15px; border-style:none; ">
  432. <choices>
  433. <item>
  434. <label>전체</label>
  435. <value>A</value>
  436. </item>
  437. <item>
  438. <label>입원</label>
  439. <value>I</value>
  440. </item>
  441. <item>
  442. <label>외래</label>
  443. <value>O</value>
  444. </item>
  445. </choices>
  446. <script type="javascript" ev:event="xforms-value-changed">
  447. <![CDATA[
  448. fDateChk();
  449. ]]>
  450. </script>
  451. </select1>
  452. <select1 id="rdo_srchym" ref="/root/send/termflag" appearance="full" cols="1" rows="2" vcellspacing="3" overflow="visible" style="left:331px; top:9px; width:66px; height:39px; border-style:none; ">
  453. <choices>
  454. <item>
  455. <label>청구년월</label>
  456. <value>1</value>
  457. </item>
  458. <item>
  459. <label>미수년월</label>
  460. <value>2</value>
  461. </item>
  462. </choices>
  463. <script type="javascript" ev:event="xforms-select">
  464. <![CDATA[
  465. model.setFocus("ipt_fromdd");
  466. ]]>
  467. </script>
  468. <script type="javascript" ev:event="xforms-value-changed">
  469. <![CDATA[
  470. // fDateChk();
  471. ]]>
  472. </script>
  473. </select1>
  474. <caption id="caption2" style="left:474px; top:19px; width:15px; height:20px; ">~</caption>
  475. <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" maxlength="6" format="yyyy-mm" style="left:489px; top:19px; width:70px; height:19px; ">
  476. <script type="javascript" ev:event="xforms-value-changed">
  477. <![CDATA[
  478. fDateChk();
  479. ]]>
  480. </script>
  481. </input>
  482. <caption id="caption3" class="search_name" style="left:833px; top:21px; width:86px; height:17px; ">손보사 :</caption>
  483. <select1 id="cmb_claminsucmpy" ref="/root/send/claminsucmpy" class="combo_search" navindex="3" appearance="minimal" style="left:912px; top:20px; width:151px; height:19px; ">
  484. <choices>
  485. <itemset nodeset="/root/init/U0001list/U0001">
  486. <label ref="nm"/>
  487. <value ref="cd"/>
  488. </itemset>
  489. </choices>
  490. </select1>
  491. <select1 id="cmb_clamdg" ref="/root/send/clamdg" class="combo_search" navindex="3" appearance="minimal" style="left:696px; top:8px; width:100px; height:19px; ">
  492. <choices>
  493. <itemset nodeset="/root/init/clamdglist/clamdg">
  494. <label ref="cdnm"/>
  495. <value ref="cdid"/>
  496. </itemset>
  497. </choices>
  498. </select1>
  499. <caption id="caption8" class="search_name" style="left:605px; top:9px; width:86px; height:17px; ">청구차수 :</caption>
  500. </group>
  501. <col type="checkbox"/>
  502. <button id="button1" class="btn2_letter2" style="left:1087px; top:74px; width:42px; height:19px; ">
  503. <caption>삭제</caption>
  504. <script type="javascript" ev:event="DOMActivate">
  505. <![CDATA[
  506. // 삭제할 건에 대하여 검수
  507. var boolRet = fDelChk();
  508. if (boolRet != false) {
  509. // 체크된 행을 가져온다.
  510. var nodeList = instance1.selectNodes("/root/main/list01/griduncoinfo[chkbox='true']");
  511. var rCSV = getNodeListCSV(nodeList);
  512. model.setValue("/root/main/rCSV", rCSV);
  513. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  514. var CSV = model.getValue("/root/main/rCSV");
  515. // 노드 초기화
  516. model.destroy("/root/send/tmp");
  517. model.makeNode("/root/send/tmp");
  518. setCSVToNode("/root/send/tmp", CSV);
  519. if (submit("TXPIF70102")) {
  520. submit("TRPIF70100");
  521. }
  522. }
  523. ]]>
  524. </script>
  525. </button>
  526. <button id="button3" class="btn2_letter4" style="left:1130px; top:74px; width:64px; height:19px; ">
  527. <caption>엑셀저장</caption>
  528. <script type="javascript" ev:event="DOMActivate">
  529. <![CDATA[
  530. var fileName = window.fileDialog("save", ",", false, "자보리스트", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  531. if (fileName != "")
  532. {
  533. grduncoinfo_prnt.saveExcel(fileName, "SheetName", true, true, "", "", "");
  534. }
  535. ]]>
  536. </script>
  537. </button>
  538. <datagrid id="grduncoinfo" nodeset="/root/main/list01/griduncoinfo" caption="^도착^생성^청구월^미수월^내원유형^청구구분^청구과^청구차수^손보사명^명일련^등록번호^수진자^주민번호^청구액^선택진료료^청구일자^청구번호^조합^사고접수번호^청구시작일자^청구종료일자^청구일자|^도착^생성^청구월^미수월^내원유형^청구구분^청구과^청구차수^손보사명^명일련^등록번호^수진자^주민번호^청구액^선택진료료^청구일자^청구번호^조합^사고접수번호^청구시작일자^청구종료일자^청구일자" colsep="^" colwidth="25, 36, 36, 70, 70, 60, 80, 90, 35, 130, 60, 80, 90, 119, 90, 90, 85, 90, 39, 100, 100, 100, 100" dataheight="25" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:100px; width:1194px; height:642px; ">
  539. <col checkvalue="true,false" ref="chkbox" type="checkbox"/>
  540. <col ref="acptrtnflag" visibility="hidden" style="text-align:center; "/>
  541. <col ref="uncoyn" style="text-align:center; "/>
  542. <col ref="clamym" format="yyyy-mm" style="text-align:center; "/>
  543. <col ref="uncoym" format="yyyy-mm" style="text-align:center; "/>
  544. <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
  545. <choices>
  546. <itemset nodeset="/root/init/P0028list/P0028">
  547. <label ref="cdnm"/>
  548. <value ref="cdid"/>
  549. </itemset>
  550. </choices>
  551. </col>
  552. <col disabled="true" ref="clamflag" type="combo" style="text-align:center; ">
  553. <choices>
  554. <itemset nodeset="/root/init/P0155list/P0155">
  555. <label ref="cdnm"/>
  556. <value ref="cdid"/>
  557. </itemset>
  558. </choices>
  559. </col>
  560. <col ref="orddeptcd" style="text-align:left; "/>
  561. <col ref="clamdg" style="text-align:center; "/>
  562. <col ref="insuno" style="text-align:center; "/>
  563. <col ref="docuseqno" style="text-align:center; "/>
  564. <col ref="pid" style="text-align:center; "/>
  565. <col ref="patnm" style="text-align:center; "/>
  566. <col ref="patrrgstno" format="aaaaaa-aaaa&quot;***&quot;" style="text-align:center; "/>
  567. <col ref="insuclamamt" format="#,###" style="text-align:right; "/>
  568. <col ref="choiordamt" format="#,###" style="text-align:right; "/>
  569. <col ref="clamdd" format="yyyy-mm-dd" style="text-align:center; "/>
  570. <col ref="clamno" style="text-align:center; "/>
  571. <col ref="insucd" style="text-align:center; "/>
  572. <col ref="acdacptno" style="text-align:center; "/>
  573. <col ref="cretfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  574. <col ref="crettodd" format="yyyy-mm-dd" style="text-align:center; "/>
  575. <col ref="acptdd" visibility="hidden" style="text-align:center; "/>
  576. </datagrid>
  577. <button id="button14" class="btn2_letter6" visibility="hidden" style="left:767px; top:74px; width:86px; height:19px; ">
  578. <caption>미수일괄생성</caption>
  579. <script type="javascript" ev:event="onclick">
  580. <![CDATA[
  581. // ***** *****
  582. // * *
  583. // * 사용유보 *
  584. // * *
  585. // ***** *****
  586. // //window.load("SMPIF70200_미수정보일괄생성(자보).xrw", "modal", "pop", "width:1140; height:640;", "/root/send/srchym", "/root/send/clamym");
  587. //
  588. // modal("SMPIF70200", "", "400", "400" ,"", "/root/send/srchym", "/root/send/clamym");
  589. // //modal("SMPIF70200", 1, 1, 1, "SMPIF70200", "", "");
  590. // //modal("SMPIF70200", "modal", "pop", "width:1140; height:640;", "SMPIF70200", "/root/send/clamym", "/root/send/clamym");
  591. // submit("TRPIF70100");
  592. ]]>
  593. </script>
  594. </button>
  595. <button id="button4" class="btn2_letter2" style="left:1044px; top:74px; width:42px; height:19px; ">
  596. <caption>생성</caption>
  597. <script type="javascript" ev:event="DOMActivate">
  598. <![CDATA[
  599. // 생성할 내역 검수
  600. fCretChk();
  601. // 체크된 행을 가져온다.
  602. var nodeList = instance1.selectNodes("/root/main/list01/griduncoinfo[chkbox='true']");
  603. var rCSV = getNodeListCSV(nodeList);
  604. model.setValue("/root/main/rCSV", rCSV);
  605. // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  606. var CSV = model.getValue("/root/main/rCSV");
  607. // 노드 초기화
  608. model.destroy("/root/send/tmp");
  609. model.makeNode("/root/send/tmp");
  610. setCSVToNode("/root/send/tmp", CSV);
  611. if (submit("TXPIF70101")) {
  612. model.setValue("/root/hidden/con/acptdd", "");
  613. submit("TRPIF70100");
  614. model.refresh();
  615. }
  616. ]]>
  617. </script>
  618. </button>
  619. <!--
  620. 미수일괄생성처리(자보)는 원래 팝업화면으로 따로 있었는데 화면을 합쳤다.
  621. 기존 팝업화면에서의 comment(이종찬작성)를 가져왔다.
  622. [개발사상]
  623. 본 업무 화면에서는 접수정보와 검토서정보를 동시에 생성한다.
  624. [할 일]
  625. (-) 이전자료 존재여부를 확인 할 수 있도록 하고, 삭제를 가능하도록 할 것인지 고객과 협의 해야 함
  626. (-) 재청구여부와 청구일자를 구체적으로 어떻게 사용 할 것인지 확인 후 적용해야 함
  627. [테스트]
  628. 필수입력: 청구년월('200606')
  629. 조작: 저장 버튼을 누른다.
  630. -->
  631. <group id="grd_batch" visibility="hidden" style="left:846px; top:584px; width:330px; height:140px; vertical-align:top; ">
  632. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:330px; height:140px; background-color:#ffffff; border-color:#000066; "/>
  633. <group id="group6" style="left:15px; top:13px; width:265px; height:13px; ">
  634. <caption id="caption5" class="tit_1" style="left:0px; top:0px; width:160px; height:13px; ">미수일괄생성처리(자보)</caption>
  635. </group>
  636. <caption id="caption7" class="tit_2" style="left:20px; top:39px; width:98px; height:13px; ">입력내용</caption>
  637. <line id="line3" class="line_1" style="x1:15px; y1:54px; x2:315px; y2:54px; "/>
  638. <caption id="caption66" class="cell_1" style="left:15px; top:59px; width:96px; height:20px; vertical-align:middle; ">미수월</caption>
  639. <input id="ipt_uncodd" ref="/root/send/batch/clamym" class="input_default" navindex="1" inputtype="date" maxlength="6" format="yyyy-mm" style="left:113px; top:59px; width:100px; height:19px; "/>
  640. <select id="chk_delfalg" ref="/root/send/batch/reclamflag" disabled="true" navindex="2" overflow="visible" appearance="full" style="left:216px; top:59px; width:84px; height:19px; border-style:none; ">
  641. <choices>
  642. <item>
  643. <label>재청구여부</label>
  644. <value>1</value>
  645. </item>
  646. </choices>
  647. </select>
  648. <line id="line5" class="line_2" style="x1:15px; y1:80px; x2:213px; y2:80px; "/>
  649. <caption id="caption86" class="cell_1" style="left:15px; top:83px; width:96px; height:20px; vertical-align:middle; ">청구(발송)일자</caption>
  650. <input id="ipt_delivedd" ref="/root/send/batch/clamdd" class="input_default" navindex="3" inputtype="date" format="yyyy-mm-dd" style="left:113px; top:83px; width:100px; height:19px; "/>
  651. <line id="line4" class="line_3" style="x1:15px; y1:104px; x2:315px; y2:104px; "/>
  652. <button id="button43" class="btn4_letter2" style="left:201px; top:111px; width:56px; height:22px; ">
  653. <caption>실행</caption>
  654. <script type="javascript" ev:event="DOMActivate">
  655. <![CDATA[
  656. //submit("TXPIF70200");
  657. if (submit("TXPIF70103")) {
  658. submit("TRPIF70100");
  659. }
  660. fErrorMsg();
  661. ]]>
  662. </script>
  663. </button>
  664. <button id="button5" class="btn4_letter2" style="left:260px; top:111px; width:56px; height:22px; ">
  665. <caption>닫기</caption>
  666. <script type="javascript" ev:event="DOMActivate">
  667. <![CDATA[
  668. grd_batch.visible = false;
  669. ]]>
  670. </script>
  671. </button>
  672. </group>
  673. <datagrid id="grduncoinfo_prnt" nodeset="/root/main/list01/griduncoinfo_prnt" visibility="hidden" caption="명세서일련번호^조합^조합명^환자명^등록번호^주민번호^사고접수번호^청구과^청구액^지불종결일^선택진료료^청구일자^청구번호" colsep="^" colwidth="86, 60, 102, 70, 70, 94, 130, 90, 85, 80" dataheight="25" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:40px; top:230px; width:1135px; height:165px; ">
  674. <col ref="docuseqno" style="text-align:center; "/>
  675. <col ref="insucd" style="text-align:center; "/>
  676. <col ref="insuno" style="text-align:center; "/>
  677. <col ref="patnm" style="text-align:center; "/>
  678. <col ref="pid" style="text-align:center; "/>
  679. <col ref="patrrgstno" format="aaaaaa-aaaaaaa" style="text-align:center; "/>
  680. <col ref="acdacptno" style="text-align:center; "/>
  681. <col ref="orddeptcd" style="text-align:left; "/>
  682. <col ref="insuclamamt" format="#,###" style="text-align:right; "/>
  683. <col ref="aprvtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  684. </datagrid>
  685. <input id="input1" ref="/root/hidden/con/acptdd" inputtype="date" format="yyyy-mm-dd" style="left:940px; top:75px; width:100px; height:19px; ">
  686. <script type="javascript" ev:event="xforms-value-changed">
  687. <![CDATA[
  688. var acptdd = model.getValue("/root/hidden/con/acptdd");
  689. var cnt = getNodesetCount("/root/main/list01/griduncoinfo/chkbox");
  690. for( var i = 1; i <= parseInt(cnt); i++ ){
  691. //if( 'true' = model.getValue("/root/main/list01/griduncoinfo["+ i +"]/chkbox") ){
  692. model.makeNode("/root/main/list01/griduncoinfo["+ i +"]/acptdd");
  693. model.setValue("/root/main/list01/griduncoinfo["+ i +"]/acptdd", acptdd);
  694. //}
  695. }
  696. grduncoinfo.rebuild();
  697. // model.refresh();
  698. ]]>
  699. </script>
  700. </input>
  701. </group>
  702. <group id="group2" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  703. <button id="button42" class="btn4_letter2" visibility="hidden" style="left:1032px; top:4px; width:56px; height:22px; ">
  704. <caption>저장</caption>
  705. <script type="javascript" ev:event="DOMActivate">
  706. <![CDATA[
  707. // ***** *****
  708. // * *
  709. // * 사용유보 *
  710. // * *
  711. // ***** *****
  712. // // 체크된 행을 가져온다.
  713. // var nodeList = instance1.selectNodes("/root/main/list01/griduncoinfo[chkbox='true']");
  714. // var rCSV = getNodeListCSV(nodeList);
  715. //
  716. // model.setValue("/root/main/rCSV", rCSV);
  717. //
  718. // // rCSV에 있는 자료를 전송보낼 인스턴스에 담는댜.
  719. // var CSV = model.getValue("/root/main/rCSV");
  720. //
  721. // // 노드 초기화
  722. // model.destroy("/root/send/tmp");
  723. // model.makeNode("/root/send/tmp");
  724. //
  725. // setCSVToNode("/root/send/tmp", CSV);
  726. //
  727. // submit("TXPIF70101");
  728. // submit("TRPIF70100");
  729. ]]>
  730. </script>
  731. </button>
  732. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  733. <button id="button2" class="btn4_letter6" visibility="hidden" style="left:1089px; top:4px; width:104px; height:22px; ">
  734. <caption>미수일괄생성</caption>
  735. <script type="javascript" ev:event="DOMActivate">
  736. <![CDATA[
  737. grd_batch.visible = true;
  738. var dd = getCurrentDate();
  739. ipt_uncodd.value=dd;
  740. ipt_delivedd.value= dd;
  741. ]]>
  742. </script>
  743. </button>
  744. <caption id="caption10" style="left:5px; top:5px; width:260px; height:15px; font-family:바탕체; font-weight:bold; color:#0000ff; ">* 청구액 = 총진료비(선택진료료포함) *</caption>
  745. </group>
  746. </xhtml:body>
  747. </xhtml:html>