SMPMC04300_가정간호미수금 조회.xrw 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMPMC04100_가정간호수납내역조회.xrw
  4. * 설 명 : 가정간호중간금수납내역조회
  5. * 설 계 자 : 이형재
  6. * 작 성 자 : 이형재
  7. * 작 성 일 : 2008.3.12.
  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. <grid>
  20. <gridlist1/>
  21. </grid>
  22. <patinfo>
  23. <patinfolist/>
  24. </patinfo>
  25. </main>
  26. <source>
  27. <srchcond/>
  28. <autoflag/>
  29. <pid/>
  30. <hngnm/>
  31. <rrgstno1/>
  32. <rrgstno2/>
  33. <acptdd/>
  34. <checkfnexam/>
  35. <sex/>
  36. <age/>
  37. </source>
  38. <send>
  39. <search>
  40. <fromdd/>
  41. <todd/>
  42. <pid/>
  43. <hngnm/>
  44. <sexage/>
  45. <radio>
  46. <radio2/>
  47. <radio3/>
  48. </radio>
  49. <nurse/>
  50. <chrnursid/>
  51. <churchcd/>
  52. <grdclick>
  53. <selectedpid/>
  54. <selectedhngnm/>
  55. <selectedfromdd/>
  56. <selectedtodd/>
  57. <selectedendflag/>
  58. <selectedcareflag/>
  59. </grdclick>
  60. <chrrgstkind/>
  61. <misugoobun>1</misugoobun>
  62. <grdclickmisu>
  63. <orddd/>
  64. <specpid/>
  65. <specfromdd/>
  66. <spectodd/>
  67. <cretno/>
  68. <calcstat/>
  69. </grdclickmisu>
  70. <careflag/>
  71. </search>
  72. </send>
  73. <receive>
  74. <rcvgrid>
  75. <gridlist2/>
  76. </rcvgrid>
  77. <rcvgridmisu>
  78. <gridlistpatmisu/>
  79. </rcvgridmisu>
  80. </receive>
  81. <hidden>
  82. <currentdate/>
  83. <tmp/>
  84. <money>
  85. <preinamt/>
  86. <uncoyn/>
  87. <uncoamt/>
  88. </money>
  89. </hidden>
  90. <init>
  91. <church>
  92. <churchcd>
  93. <nm/>
  94. <cd/>
  95. <instdispseq/>
  96. </churchcd>
  97. </church>
  98. <nurse>
  99. <nursecd>
  100. <usernm/>
  101. <userid/>
  102. <gubn/>
  103. </nursecd>
  104. </nurse>
  105. <churnurse>
  106. <churnursecd>
  107. <usernm/>
  108. <userid/>
  109. <gubn/>
  110. </churnursecd>
  111. </churnurse>
  112. <P0008list>
  113. <P0008>
  114. <cdnm/>
  115. <cdid/>
  116. </P0008>
  117. </P0008list>
  118. <P6585list/>
  119. </init>
  120. <tmp>
  121. <uncoref>
  122. <info>
  123. <popup/>
  124. <pid/>
  125. <kind/>
  126. </info>
  127. </uncoref>
  128. </tmp>
  129. </root>
  130. </instance>
  131. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  132. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  133. <submission id="TRPMC04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/grid"/>
  134. <script type="javascript" ev:event="xforms-ready">
  135. <![CDATA[
  136. finitialize();
  137. reqnursid(); //병원 소속 가정간호사 조회
  138. radio2.select(0);
  139. zbcfGetCodeList(new Array("P0008"), new Array("/root/init/P0008list"));
  140. // 구분값 조회(본원과 칠곡을 분기시킴)(20160623)
  141. pamfGetCodeList(new Array("P6585"), new Array("/root/init/P6585list"));
  142. //20091211 zzui 가정간호 김숙인선생님 요청 - 환자정보설정
  143. if(isPopup() == true){
  144. if(model.getValue("/root/tmp/uncoref/info/popup") == "homecare"){ //팝업사용처구분 : homecare(가정간호)
  145. input3.value = model.getValue("/root/tmp/uncoref/info/pid"); //환자번호
  146. if(model.getValue("/root/tmp/uncoref/info/kind") == "1") {//병원
  147. radio2.value = 1
  148. radio3.value = 1
  149. }else{ //본당
  150. radio2.value = 2
  151. radio3.value = 2
  152. }
  153. }else{
  154. ;
  155. }
  156. }
  157. model.refresh();
  158. ]]>
  159. </script>
  160. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  161. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  162. <submission id="TRPMC04102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/nurse"/>
  163. <submission id="TRPMC04103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/init/churnurse"/>
  164. <submission id="TRPMC04104" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/church"/>
  165. <submission id="TRPMC04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search/grdclick" resultref="/root/receive/rcvgrid"/>
  166. <submission id="TRPMC04301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search/grdclick" resultref="/root/receive/rcvgrid"/>
  167. <submission id="TRPMC04302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search/grdclickmisu" resultref="/root/receive/rcvgridmisu"/>
  168. </model>
  169. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  170. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  171. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  172. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  173. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  174. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  175. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  176. <script type="javascript">
  177. <![CDATA[
  178. function finitialize()
  179. {
  180. model.resetInstanceNode("/root/send/search/fromdd");
  181. model.resetInstanceNode("/root/send/search/todd");
  182. model.resetInstanceNode("/root/send/search/pid");
  183. model.resetInstanceNode("/root/send/search/hngnm");
  184. model.resetInstanceNode("/root/send/search/sexage");
  185. model.resetInstanceNode("/root/source/rrgstno1");
  186. model.resetInstanceNode("/root/source/rrgstno2");
  187. model.resetInstanceNode("/root/hidden/money/preinamt");
  188. model.resetInstanceNode("/root/hidden/money/uncoyn");
  189. model.resetInstanceNode("/root/send/search/radio/radio2");
  190. model.resetInstanceNode("/root/send/search/nurse");
  191. model.resetInstanceNode("/root/send/search/radio/radio3");
  192. model.resetInstanceNode("/root/send/search/churchcd");
  193. model.resetInstanceNode("/root/send/search/chrrgstkind");
  194. model.resetInstanceNode("/root/send/search/chrnursid");
  195. model.resetInstanceNode("/root/main/grid/gridlist1");
  196. model.resetInstanceNode("/root/receive/rcvgrid/gridlist2");
  197. model.resetInstanceNode("/root/receive/rcvgridmisu/gridlistpatmisu");
  198. // 시스템 날자
  199. model.setValue("/root/hidden/currentdate", getCurrentDate());
  200. // 방문일정을 오늘날자로 세팅
  201. model.setValue("/root/send/search/fromdd",model.getValue("/root/hidden/currentdate"));
  202. model.setValue("/root/send/search/todd",model.getValue("/root/hidden/currentdate"));
  203. model.setValue("/root/send/search/careflag" , "ALL");
  204. model.refresh();
  205. }
  206. function reqnursid(){
  207. submit("TRPMC04102");
  208. model.refresh();
  209. }
  210. function reqchurnursid(){
  211. submit("TRPMC04103");
  212. model.refresh();
  213. }
  214. // 이름의 길이를 체크 한다.
  215. function fHngNmVeri(gubn)
  216. {
  217. var ptbs_hngnm;
  218. if (gubn == "xforms-next") ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
  219. else if (gubn == "onkeypress" || gubn == "onkeyup")
  220. {
  221. ptbs_hngnm = (ipt_hngnm.currentText).toString();
  222. }
  223. //한글 한글자를 그냥 길이1로 계산
  224. if (eval((ptbs_hngnm.length).toString()) < 2)
  225. {
  226. messageBox("환자성명은 2글자 이상되어야 합니다!","E999","");
  227. model.setFocus("ipt_hngnm");
  228. return false;
  229. }
  230. }
  231. function calAmt(){
  232. // 개인별 선수금 합계를 위한 로직
  233. var inamt =0;
  234. var outamt=0;
  235. var retamt=0;
  236. var restamt =0;
  237. var total=0;
  238. for(var i =1 ; i < datagrid2.rows ; i++){
  239. restamt =0;
  240. inamt += parseInt(datagrid2.valueMatrix(i,2)) ;
  241. outamt += parseInt(datagrid2.valueMatrix(i,3));
  242. retamt += parseInt(datagrid2.valueMatrix(i,4));
  243. restamt += inamt+outamt-retamt;
  244. }
  245. if(datagrid2.rows>1){
  246. datagrid2.additem();
  247. model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/inamt", (String(inamt)));
  248. model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/outamt", (String(outamt)));
  249. model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/rcptamt", (String(retamt)));
  250. model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/restamt", (String(restamt)));
  251. model.setValue("/root/receive/rcvgrid/gridlist2[" +((datagrid2.rows)-1)+ "]/remark", " 소 계");
  252. }
  253. //model.setValue("/root/receive/totgrid/totgridlist3/totinamt", inamt);
  254. //model.setvalue("/root/receive/totgrid/totgridlist3/totretamt", outamt);
  255. //model.setValue("/root/receive/totgrid/totgridlist3/totoutamt", retamt);
  256. //model.setValue("/root/receive/totgrid/totgridlist3/totamt", (inamt+outamt-retamt));
  257. //total = model.getValue("/root/receive/totgrid/totgridlist3/totamt");
  258. //if(total>0){
  259. // model.setValue("/root/receive/totgrid/totgridlist3/review", "가정간호 선수금 잔액이 있습니다.")
  260. //}else if(total == 0){
  261. // model.setValue("/root/receive/totgrid/totgridlist3/review", "가정간호 선수금 잔액이 없습니다.")
  262. //}else {
  263. // model.setValue("/root/receive/totgrid/totgridlist3/review", "가정간호 선수금 잔액이 부족합니다.")
  264. //}
  265. }
  266. ]]>
  267. </script>
  268. </xhtml:head>
  269. <xhtml:body>
  270. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:760px; ">
  271. <group id="group3" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
  272. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  273. <caption id="caption1" class="search_name" style="left:15px; top:8px; width:90px; height:17px; ">조회일자 :</caption>
  274. <input id="input2" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:201px; top:8px; width:85px; height:19px; ">
  275. <script type="javascript" ev:event="onkeypress">
  276. <![CDATA[
  277. inputEnterKey("btn_search", "DOMActivate");
  278. ]]>
  279. </script>
  280. </input>
  281. <caption id="caption2" class="search_name" style="left:300px; top:8px; width:90px; height:17px; vertical-align:middle; ">등록번호 :</caption>
  282. <input id="input3" ref="/root/send/search/pid" style="left:388px; top:8px; width:100px; height:19px; ">
  283. <script type="javascript" ev:event="onkeypress">
  284. <![CDATA[
  285. if ( event.keyCode == "13" ) {
  286. inputEnterKey("btn_search", "DOMActivate");
  287. }
  288. ]]>
  289. </script>
  290. </input>
  291. <caption id="caption8" style="left:189px; top:10px; width:20px; height:15px; ">~</caption>
  292. <button id="btn_ptbs_search" class="icon_search" style="left:493px; top:8px; width:16px; height:16px; ">
  293. <caption/>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. //조회건수가 1건일 경우 팝업창을 바로 닫는다.
  297. model.setValue("/root/source/checkfnexam", "1");
  298. model.setValue("/root/source/autoflag", "N");
  299. if( model.getValue("/root/source/srchcond") == '' ){
  300. model.setValue("/root/source/srchcond", '4');
  301. }
  302. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", " /root/send");
  303. model.resetInstanceNode("/root/source");
  304. //환자번호 copy
  305. var popupendflag = model.getValue("/root/main/popupendflag");
  306. if (popupendflag == "ok") {
  307. var test = model.getValue("/root/main/patinfo/patinfolist/pid");
  308. model.setValue("/root/send/search/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  309. model.setValue("/root/send/search/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  310. model.setValue("/root/source/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
  311. model.setValue("/root/source/age", model.getValue("/root/main/patinfo/patinfolist/age"));
  312. }
  313. var sexage ="";
  314. sexage += model.getValue("/root/source/sex");
  315. sexage +="/"
  316. sexage +=model.getValue("/root/source/age");
  317. model.setValue("/root/send/search/sexage", sexage);
  318. model.refresh();
  319. ]]>
  320. </script>
  321. </button>
  322. <input id="ipt_hngnm" ref="/root/send/search/hngnm" disabled="true" style="left:517px; top:8px; width:80px; height:19px; ">
  323. <script type="javascript" ev:event="onkeypress">
  324. <![CDATA[
  325. if(event.keyCode =="13"){
  326. if(fHngNmVeri("onkeypress")==false)return;
  327. model.setValue("/root/source/srchcond", "2");
  328. model.setValue("/root/source/hngnm", ipt_hngnm.currentText);
  329. inputEnterKey("btn_ptbs_search", "DOMActivate");
  330. }
  331. ]]>
  332. </script>
  333. </input>
  334. <input id="opt_sexage" ref="/root/send/search/sexage" disabled="true" style="left:615px; top:8px; width:50px; height:19px; text-align:center; "/>
  335. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:33px; width:56px; height:22px; ">
  336. <caption>조회</caption>
  337. <script type="javascript" ev:event="DOMActivate">
  338. <![CDATA[
  339. model.resetInstanceNode("/root/main/grid/gridlist1");
  340. model.resetInstanceNode("/root/receive/rcvgrid/gridlist2");
  341. model.resetInstanceNode("/root/receive/rcvgridmisu/gridlistpatmisu");
  342. model.resetInstanceNode("/root/send/search/hngnm");
  343. model.resetInstanceNode("/root/send/search/sexage");
  344. model.resetInstanceNode("/root/source/rrgstno1");
  345. model.resetInstanceNode("/root/source/rrgstno2");
  346. model.resetInstanceNode("/root/hidden/money/preinamt");
  347. model.resetInstanceNode("/root/hidden/money/uncoyn");
  348. submit("TRPMC04101");
  349. if(ipt_hngnm.value == ""){
  350. model.setValue("/root/send/search/sexage", "");
  351. }
  352. ]]>
  353. </script>
  354. </button>
  355. <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:103px; top:8px; width:85px; height:19px; "/>
  356. <caption id="caption11" class="search_name" style="left:513px; top:33px; width:135px; height:17px; vertical-align:middle; ">미결 총미수잔액 :</caption>
  357. <input id="input1" ref="/root/hidden/money/uncoyn" disabled="true" format="(-)#,###" style="left:646px; top:33px; width:100px; height:19px; text-align:right; "/>
  358. <caption id="caption13" class="search_name" style="left:300px; top:33px; width:104px; height:17px; vertical-align:middle; ">선수잔액 :</caption>
  359. <input id="input4" ref="/root/hidden/money/preinamt" disabled="true" format="(-)#,###" style="left:388px; top:33px; width:100px; height:19px; text-align:right; "/>
  360. <caption id="caption14" class="search_name" style="left:15px; top:33px; width:90px; height:17px; vertical-align:middle; ">주민번호 :</caption>
  361. <input id="input5" ref="/root/source/rrgstno1" disabled="true" style="left:103px; top:33px; width:85px; height:19px; text-align:center; "/>
  362. <caption id="caption15" style="left:190px; top:35px; width:20px; height:15px; ">-</caption>
  363. <input id="input6" ref="/root/source/rrgstno2" disabled="true" style="left:201px; top:33px; width:85px; height:19px; text-align:center; "/>
  364. <caption id="caption16" class="search_name" style="left:800px; top:35px; width:143px; height:17px; vertical-align:middle; ">미결 기간미수잔액 :</caption>
  365. <input id="input7" ref="/root/hidden/money/uncoamt" disabled="true" format="(-)#,###" style="left:946px; top:35px; width:100px; height:19px; text-align:right; "/>
  366. <caption id="caption17" class="search_name" style="left:800px; top:10px; width:70px; height:17px; ">구분 :</caption>
  367. <select1 id="radio5" ref="/root/send/search/careflag" appearance="full" cols="3" overflow="visible" style="left:863px; top:10px; width:252px; height:15px; border-style:none; ">
  368. <choices>
  369. <itemset nodeset="/root/init/P6585list/P6585">
  370. <label ref="cdnm"/>
  371. <value ref="cdid"/>
  372. </itemset>
  373. </choices>
  374. </select1>
  375. </group>
  376. <select1 id="radio2" ref="/root/send/search/radio/radio2" appearance="full" cols="2" overflow="visible" style="left:15px; top:80px; width:100px; height:20px; border-style:none; ">
  377. <choices>
  378. <item>
  379. <label>병원</label>
  380. <value>1</value>
  381. </item>
  382. </choices>
  383. <script type="javascript" ev:event="xforms-value-changed">
  384. <![CDATA[
  385. //model.resetInstanceNode("/root/send/search/pid");
  386. model.resetInstanceNode("/root/send/search/hngnm");
  387. model.resetInstanceNode("/root/send/search/sexage");
  388. model.resetInstanceNode("/root/source/rrgstno1");
  389. model.resetInstanceNode("/root/source/rrgstno2");
  390. model.resetInstanceNode("/root/hidden/money/preinamt");
  391. model.resetInstanceNode("/root/hidden/money/uncoyn");
  392. var select = radio2.value;
  393. if (select ==1){
  394. radio3.select(0);
  395. radio3.visible = false;
  396. caption5.visible= false;
  397. cmb_church.visible=false;
  398. caption6.visible=false;
  399. cmb_nurse2.visible=false;
  400. radio4.visible=false;
  401. line2.visible=false;
  402. radio4.select(0);
  403. cmb_nurse1.select(0);
  404. reqnursid(); //병원 소속 가정간호사 조회
  405. model.resetInstanceNode("/root/send/search/hngnm");
  406. //model.resetInstanceNode("/root/send/search/pid");
  407. model.resetInstanceNode("/root/send/search/sexage");
  408. }
  409. else {
  410. model.resetInstanceNode("/root/send/search/hngnm");
  411. //model.resetInstanceNode("/root/send/search/pid");
  412. model.resetInstanceNode("/root/send/search/sexage");
  413. radio2.visible = false;
  414. caption4.visible =false;
  415. cmb_nurse1.visible=false;
  416. radio3.select(1);
  417. radio3.visible = true;
  418. caption5.visible= true;
  419. cmb_church.visible=true;
  420. caption6.visible=true;
  421. cmb_nurse2.visible=true;
  422. radio4.visible=true;
  423. line2.visible =true;
  424. cmb_church.disabled=false;
  425. line3.visible = false;
  426. submit("TRPMC04104"); //본당조회
  427. reqchurnursid(); //본당소속 가정간호사
  428. cmb_nurse2.select(0);
  429. cmb_church.select(0);
  430. }
  431. model.refresh();
  432. ]]>
  433. </script>
  434. </select1>
  435. <caption id="caption4" class="cell_1" style="left:120px; top:80px; width:70px; height:20px; vertical-align:middle; ">담당간호사</caption>
  436. <select1 id="radio3" ref="/root/send/search/radio/radio3" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:15px; top:103px; width:100px; height:20px; border-style:none; ">
  437. <choices>
  438. <item>
  439. <label>병원</label>
  440. <value>1</value>
  441. </item>
  442. </choices>
  443. <script type="javascript" ev:event="xforms-value-changed">
  444. <![CDATA[
  445. //model.resetInstanceNode("/root/send/search/pid");
  446. model.resetInstanceNode("/root/send/search/hngnm");
  447. model.resetInstanceNode("/root/send/search/sexage");
  448. model.resetInstanceNode("/root/source/rrgstno1");
  449. model.resetInstanceNode("/root/source/rrgstno2");
  450. model.resetInstanceNode("/root/hidden/money/preinamt");
  451. model.resetInstanceNode("/root/hidden/money/uncoyn");
  452. var select = radio3.value;
  453. if (select ==1){
  454. radio3.select(0);
  455. radio3.visible = false;
  456. caption5.visible= false;
  457. cmb_church.visible=false;
  458. caption6.visible=false;
  459. cmb_nurse2.visible=false;
  460. radio4.visible=false;
  461. radio2.select(0);
  462. radio2.visible = true;
  463. caption4.visible= true;
  464. cmb_nurse1.visible=true;
  465. line3.visible = true;
  466. }
  467. ]]>
  468. </script>
  469. </select1>
  470. <caption id="caption5" class="cell_1" visibility="hidden" style="left:120px; top:103px; width:70px; height:20px; vertical-align:middle; ">본당명</caption>
  471. <caption id="caption6" class="cell_1" visibility="hidden" style="left:472px; top:103px; width:80px; height:20px; vertical-align:middle; ">담당간호사</caption>
  472. <datagrid id="datagrid1" nodeset="/root/main/grid/gridlist1" visibility="visible" scroll="auto" caption="구분^등록번호^환자명^S/A^종결^총미수^기간미수^선수잔액^선수금차액^rrgstno1^rrgstno2^종결일자" colsep="^" colwidth="30, 62, 56, 36, 35, 60, 60, 55, 66, 74, 70, 76" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:15px; top:160px; width:430px; height:570px; ">
  473. <col disabled="true" ref="careflag" type="combo">
  474. <choices>
  475. <item>
  476. <label>가정</label>
  477. <value>H</value>
  478. </item>
  479. <item>
  480. <label>방문</label>
  481. <value>V</value>
  482. </item>
  483. </choices>
  484. </col>
  485. <col ref="pid" style="text-align:center; "/>
  486. <col ref="hngnm" style="text-align:center; "/>
  487. <col ref="sexage" style="text-align:center; "/>
  488. <col ref="endflag" style="text-align:center; "/>
  489. <col ref="uncoynnum" format="(-)#,###" style="text-align:right; "/>
  490. <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
  491. <col ref="restamt" format="(-)#,###" style="text-align:right; "/>
  492. <col ref="preminusamt" format="(-)#,###" style="text-align:right; "/>
  493. <col ref="rrgstno1" visibility="hidden"/>
  494. <col ref="rrgstno2" visibility="hidden"/>
  495. <col ref="enddd" format="yyyy-mm-dd" style="text-align:center; "/>
  496. <script type="javascript" ev:event="ondblclick">
  497. <![CDATA[
  498. /*
  499. if (isDataCell() == true) {
  500. model.resetInstanceNode("/root/receive/rcvgrid/gridlist2");
  501. model.resetInstanceNode("/root/receive/rcvgridmisu/gridlistpatmisu");
  502. var rowindex=0;
  503. rowindex = datagrid1.mouseRow;
  504. if(datagrid1.valueMatrix(rowindex,2) == ""){
  505. //
  506. }else{
  507. model.setValue("/root/send/search/grdclick/selectedpid", datagrid1.valueMatrix(rowindex,2));
  508. model.setValue("/root/send/search/grdclick/selectedfromdd",model.getValue("/root/send/search/fromdd") );
  509. model.setValue(" /root/send/search/grdclick/selectedtodd", model.getValue("/root/send/search/todd") );
  510. model.setValue("/root/send/search/grdclick/selectedcareflag", datagrid1.valueMatrix(rowindex,1));
  511. model.setValue("/root/hidden/money/uncoyn", datagrid1.valueMatrix(rowindex, 6) );
  512. model.setValue("/root/hidden/money/uncoamt", datagrid1.valueMatrix(rowindex, 7) );
  513. model.setValue("/root/hidden/money/preinamt", datagrid1.valueMatrix(rowindex, 8) );
  514. model.setValue("/root/source/rrgstno1", datagrid1.valueMatrix(rowindex, 10) );
  515. model.setValue("/root/source/rrgstno2", datagrid1.valueMatrix(rowindex, 11) );
  516. model.setValue("/root/send/search/pid", datagrid1.valueMatrix(rowindex, 2) );
  517. model.setValue("/root/send/search/hngnm", datagrid1.valueMatrix(rowindex, 3) );
  518. model.setValue("/root/send/search/sexage", datagrid1.valueMatrix(rowindex, 4) );
  519. submit("TRPMC04301");
  520. }
  521. model.refresh();
  522. }
  523. */
  524. if (isDataCell() == true) {
  525. model.removenodeset("/root/receive/rcvgridmisu/gridlistpatmisu");
  526. rowindex = datagrid1.mouseRow;
  527. model.setValue("/root/send/search/grdclick/selectedpid", datagrid1.valueMatrix(rowindex,2));
  528. model.setValue("/root/send/search/grdclick/selectedfromdd",model.getValue("/root/send/search/fromdd") );
  529. model.setValue(" /root/send/search/grdclick/selectedtodd", model.getValue("/root/send/search/todd") );
  530. model.setValue("/root/send/search/grdclick/selectedcareflag", datagrid1.valueMatrix(rowindex,1));
  531. model.setValue("/root/hidden/money/uncoyn", datagrid1.valueMatrix(rowindex, 6) );
  532. model.setValue("/root/hidden/money/uncoamt", datagrid1.valueMatrix(rowindex, 7) );
  533. model.setValue("/root/hidden/money/preinamt", datagrid1.valueMatrix(rowindex, 8) );
  534. model.setValue("/root/source/rrgstno1", datagrid1.valueMatrix(rowindex, 10) );
  535. model.setValue("/root/source/rrgstno2", datagrid1.valueMatrix(rowindex, 11) );
  536. model.setValue("/root/send/search/pid", datagrid1.valueMatrix(rowindex, 2) );
  537. model.setValue("/root/send/search/hngnm", datagrid1.valueMatrix(rowindex, 3) );
  538. model.setValue("/root/send/search/sexage", datagrid1.valueMatrix(rowindex, 4) );
  539. submit("TRPMC04301");
  540. model.refresh();
  541. }
  542. ]]>
  543. </script>
  544. <script type="javascript" ev:event="onaftersort">
  545. <![CDATA[
  546. datagrid1.gridToInstance();
  547. ]]>
  548. </script>
  549. </datagrid>
  550. <datagrid id="datagrid2" nodeset="/root/receive/rcvgrid/gridlist2" caption="종결^처방일^과^보험유형^총진료비^공단부담^환자부담^수납액^미수금^선수대체^미수예정^장애기금^희귀난치^계정감면^임의감면^약번호^접수번호^감면^비고" colsep="^" colwidth="30, 70, 30, 75, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 60, 66, 70, 42, 72" mergecellsfixedrows="bycolrec" rowsep="|" style="left:450px; top:160px; width:729px; height:220px; ">
  551. <col ref="endyn"/>
  552. <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  553. <col ref="dept" style="text-align:center; "/>
  554. <col disabled="true" ref="insukind" type="combo" style="text-align:left; ">
  555. <choices>
  556. <itemset nodeset="/root/init/P0008list/P0008">
  557. <label ref="cdnm"/>
  558. <value ref="cdid"/>
  559. </itemset>
  560. </choices>
  561. </col>
  562. <col ref="totamt" format="(-)#,###" style="text-align:right; "/>
  563. <col ref="insupayamt" format="(-)#,###" style="left:262px; top:23px; width:71px; height:23px; text-align:right; "/>
  564. <col ref="ownpayamt" format="(-)#,###" style="text-align:right; "/>
  565. <col ref="payamt" format="(-)#,###" style="text-align:right; "/>
  566. <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
  567. <col ref="mdlrcptamt" format="(-)#,###" style="text-align:right; "/>
  568. <col ref="bercptamt" format="(-)#,###" style="text-align:right; "/>
  569. <col ref="handcapfund" format="(-)#,###" style="text-align:right; "/>
  570. <col ref="suppamt" format="(-)#,###" style="text-align:right; "/>
  571. <col ref="discamt" format="(-)#,###" style="text-align:right; "/>
  572. <col ref="reduamt" format="(-)#,###" style="text-align:right; "/>
  573. <col ref="hosoutdrugno" style="text-align:right; "/>
  574. <col ref="cretno" style="text-align:right; "/>
  575. <col ref="disccd"/>
  576. <col ref="remark" style="text-align:left; "/>
  577. <script type="javascript" ev:event="ondblclick">
  578. <![CDATA[
  579. var rowindex=0;
  580. rowindex = datagrid2.mouseRow;
  581. if( rowindex < 1 ){
  582. messageBox("조회할 데이타가 없습니다..","E999","");
  583. }else{
  584. model.setvalue("/root/send/search/grdclickmisu/orddd", model.getValue("/root/receive/rcvgrid/gridlist2["+rowindex+"]/orddd"));
  585. model.setvalue("/root/send/search/grdclickmisu/cretno", model.getValue("/root/receive/rcvgrid/gridlist2["+rowindex+"]/cretno"));
  586. model.setvalue("/root/send/search/grdclickmisu/specpid", model.getValue("/root/receive/rcvgrid/gridlist2["+rowindex+"]/pid"));
  587. model.setvalue("/root/send/search/grdclickmisu/calcstat", model.getValue("/root/receive/rcvgrid/gridlist2["+rowindex+"]/calcstat"));
  588. submit("TRPMC04302");
  589. }
  590. model.refresh();
  591. ]]>
  592. </script>
  593. </datagrid>
  594. <datagrid id="datagrid3" nodeset="/root/receive/rcvgridmisu/gridlistpatmisu" caption="처방일자^처방 코드^처방명^일수^수량^용법^급비^본인부담액^공단지급액^할인액" colsep="^" colwidth="70, 80, 190, 32, 30, 31, 82, 71, 75, 64" mergecellsfixedrows="bycolrec" rowsep="|" style="left:450px; top:410px; width:730px; height:320px; ">
  595. <col ref="visitdd" format="yyyy-mm-dd" style="text-align:center; "/>
  596. <col ref="snglcalcscorcd" style="text-align:left; "/>
  597. <col ref="hngnm" style="text-align:left; "/>
  598. <col ref="ordays" style="text-align:right; "/>
  599. <col ref="ordqty" style="text-align:right; "/>
  600. <col ref="ordtims" style="text-align:right; "/>
  601. <col ref="cdnm" style="text-align:center; "/>
  602. <col ref="totpayamt" format="(-)#,###" style="text-align:right; "/>
  603. <col ref="totinsuamt" format="(-)#,###" style="text-align:right; "/>
  604. <col ref="totdiscamt" format="(-)#,###" style="text-align:right; "/>
  605. </datagrid>
  606. <line id="line1" class="line_1" style="x1:15px; y1:155px; x2:445px; y2:155px; "/>
  607. <button id="button5" class="btn2_letter4" style="left:334px; top:134px; width:64px; height:19px; ">
  608. <caption>엑셀저장</caption>
  609. <script type="javascript" ev:event="DOMActivate">
  610. <![CDATA[
  611. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  612. if (fileName != "")
  613. {
  614. datagrid1.saveExcel(fileName, "SheetName", true, true, "", "");
  615. }
  616. window.exec(fileName);
  617. ]]>
  618. </script>
  619. </button>
  620. <line id="line2" class="line_3" style="x1:15px; y1:123px; x2:680px; y2:123px; "/>
  621. <line id="line3" class="line_3" style="x1:15px; y1:100px; x2:315px; y2:100px; "/>
  622. <caption id="caption9" class="tit_2" style="left:451px; top:140px; width:135px; height:13px; ">미수 내역 조회</caption>
  623. <line id="line4" class="line_1" style="x1:450px; y1:155px; x2:1179px; y2:155px; "/>
  624. <caption id="caption10" class="tit_2" style="left:18px; top:140px; width:152px; height:13px; ">가정간호환자 조회내역</caption>
  625. <caption id="caption12" class="tit_2" style="left:451px; top:390px; width:135px; height:13px; ">처방 계산내역 조회</caption>
  626. <line id="line6" class="line_1" style="x1:450px; y1:405px; x2:1179px; y2:405px; "/>
  627. <select1 id="cmb_nurse1" ref="/root/send/search/nurse" appearance="minimal" style="left:195px; top:80px; width:120px; height:19px; ">
  628. <choices>
  629. <itemset nodeset="/root/init/nurse/nursecd">
  630. <label ref="usernm"/>
  631. <value ref="userid"/>
  632. </itemset>
  633. </choices>
  634. <script type="javascript" ev:event="xforms-value-changed">
  635. <![CDATA[
  636. if(cmb_nurse1.value=='1'){
  637. model.setValue("/root/send/search/nurse","/root/init/nurse/nursecd/usernm");
  638. }
  639. //model.resetInstanceNode("/root/send/search/pid");
  640. model.resetInstanceNode("/root/send/search/hngnm");
  641. model.resetInstanceNode("/root/send/search/sexage");
  642. model.resetInstanceNode("/root/source/rrgstno1");
  643. model.resetInstanceNode("/root/source/rrgstno2");
  644. model.resetInstanceNode("/root/hidden/money/preinamt");
  645. model.resetInstanceNode("/root/hidden/money/uncoyn");
  646. ]]>
  647. </script>
  648. </select1>
  649. <select1 id="cmb_nurse2" ref="/root/send/search/chrnursid" visibility="hidden" appearance="minimal" style="left:555px; top:103px; width:125px; height:19px; ">
  650. <choices>
  651. <itemset nodeset="/root/init/churnurse/churnursecd">
  652. <label ref="usernm"/>
  653. <value ref="userid"/>
  654. </itemset>
  655. </choices>
  656. <script type="javascript" ev:event="xforms-value-changed">
  657. <![CDATA[
  658. if(cmb_nurse2.value=='1'){
  659. model.setValue("/root/send/search/chrnursid","/root/init/nurse/nursecd/usernm");
  660. }
  661. //model.resetInstanceNode("/root/send/search/pid");
  662. model.resetInstanceNode("/root/send/search/hngnm");
  663. model.resetInstanceNode("/root/send/search/sexage");
  664. model.resetInstanceNode("/root/source/rrgstno1");
  665. model.resetInstanceNode("/root/source/rrgstno2");
  666. model.resetInstanceNode("/root/hidden/money/preinamt");
  667. model.resetInstanceNode("/root/hidden/money/uncoyn");
  668. ]]>
  669. </script>
  670. </select1>
  671. <select1 id="cmb_church" ref="/root/send/search/churchcd" disabled="true" visibility="hidden" appearance="minimal" style="left:195px; top:103px; width:120px; height:19px; ">
  672. <choices>
  673. <itemset nodeset="/root/init/church/churchcd">
  674. <label ref="nm"/>
  675. <value ref="cd"/>
  676. </itemset>
  677. </choices>
  678. <script type="javascript" ev:event="xforms-value-changed">
  679. <![CDATA[
  680. if(cmb_church.value=='1'){
  681. model.setvalue("/root/send/search/churchcd", "/root/init/church/churchcd/nm");
  682. }
  683. //model.resetInstanceNode("/root/send/search/pid");
  684. model.resetInstanceNode("/root/send/search/hngnm");
  685. model.resetInstanceNode("/root/send/search/sexage");
  686. model.resetInstanceNode("/root/source/rrgstno1");
  687. model.resetInstanceNode("/root/source/rrgstno2");
  688. model.resetInstanceNode("/root/hidden/money/preinamt");
  689. model.resetInstanceNode("/root/hidden/money/uncoyn");
  690. ]]>
  691. </script>
  692. <script type="javascript" ev:event="xforms-select">
  693. <![CDATA[
  694. submit("TRPMC04103");
  695. ]]>
  696. </script>
  697. </select1>
  698. <select1 id="radio4" ref="/root/send/search/chrrgstkind" appearance="full" cols="3" overflow="visible" style="left:322px; top:103px; width:140px; height:20px; border-style:none; ">
  699. <choices>
  700. <item>
  701. <label>등록</label>
  702. <value>1</value>
  703. </item>
  704. <item>
  705. <label>무료</label>
  706. <value>2</value>
  707. </item>
  708. <item>
  709. <label>기타</label>
  710. <value>3</value>
  711. </item>
  712. </choices>
  713. </select1>
  714. <button id="button2" class="btn2_letter2" style="left:403px; top:134px; width:42px; height:19px; ">
  715. <caption>출력</caption>
  716. <script type="javascript" ev:event="DOMActivate">
  717. <![CDATA[
  718. exeReportPreview("RPPMC04301", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  719. ]]>
  720. </script>
  721. </button>
  722. <button id="button3" class="btn2_letter4" style="left:1056px; top:134px; width:64px; height:19px; ">
  723. <caption>엑셀저장</caption>
  724. <script type="javascript" ev:event="DOMActivate">
  725. <![CDATA[
  726. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  727. if (fileName != "")
  728. {
  729. datagrid2.saveExcel(fileName, "SheetName", true, true, "", "");
  730. }
  731. window.exec(fileName);
  732. ]]>
  733. </script>
  734. </button>
  735. <button id="button6" class="btn2_letter3" style="left:1125px; top:134px; width:53px; height:19px; ">
  736. <caption>출력</caption>
  737. <script type="javascript" ev:event="DOMActivate">
  738. <![CDATA[
  739. exeReportPreview("RPPMC04302", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  740. ]]>
  741. </script>
  742. </button>
  743. <button id="button7" class="btn2_letter4" style="left:1057px; top:384px; width:64px; height:19px; ">
  744. <caption>엑셀저장</caption>
  745. <script type="javascript" ev:event="DOMActivate">
  746. <![CDATA[
  747. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  748. if (fileName != "")
  749. {
  750. datagrid3.saveExcel(fileName, "SheetName", true, true, "", "");
  751. }
  752. window.exec(fileName);
  753. ]]>
  754. </script>
  755. </button>
  756. <button id="button8" class="btn2_letter3" style="left:1126px; top:384px; width:53px; height:19px; ">
  757. <caption>출력</caption>
  758. <script type="javascript" ev:event="DOMActivate">
  759. <![CDATA[
  760. exeReportPreview("RPPMC04303", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  761. ]]>
  762. </script>
  763. </button>
  764. <button id="button1" class="btn4_letter3" style="left:1110px; top:735px; width:68px; height:22px; ">
  765. <caption>초기화</caption>
  766. <script type="javascript" ev:event="onclick">
  767. <![CDATA[
  768. finitialize();
  769. reqnursid(); //병원 소속 가정간호사 조회
  770. radio2.select(0);
  771. ]]>
  772. </script>
  773. </button>
  774. </group>
  775. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  776. <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">가정간호 미수금 조회</caption>
  777. </group>
  778. </xhtml:body>
  779. </xhtml:html>