SMPMC04100_가정간호중간금수납내역조회.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMPMC04100_가정간호선수금수납내역조회.xrw
  4. * 설 명 : 가정간호선수금 수납내역조회
  5. * 설 계 자 : 이형재
  6. * 작 성 자 : 이형재
  7. * 작 성 일 : 2007.12.
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <selectedcareflag/>
  56. </grdclick>
  57. <chrrgstkind/>
  58. <careflag/>
  59. <endyn/>
  60. </search>
  61. </send>
  62. <receive>
  63. <rcvgrid>
  64. <gridlist2/>
  65. </rcvgrid>
  66. <rcvgrid>
  67. <gridlist3>
  68. <totinamt/>
  69. <totretamt/>
  70. <totoutamt/>
  71. <totamt/>
  72. <remark/>
  73. </gridlist3>
  74. </rcvgrid>
  75. </receive>
  76. <hidden>
  77. <currentdate/>
  78. <tmp/>
  79. </hidden>
  80. <init>
  81. <church>
  82. <churchcd>
  83. <nm/>
  84. <cd/>
  85. <instdispseq/>
  86. </churchcd>
  87. </church>
  88. <nurse>
  89. <nursecd>
  90. <usernm/>
  91. <userid/>
  92. <gubn/>
  93. </nursecd>
  94. </nurse>
  95. <churnurse>
  96. <churnursecd>
  97. <usernm/>
  98. <userid/>
  99. <gubn/>
  100. </churnursecd>
  101. </churnurse>
  102. <P6585list/>
  103. </init>
  104. <tmp>
  105. <uncoref>
  106. <info>
  107. <popup/>
  108. <pid/>
  109. <kind/>
  110. </info>
  111. </uncoref>
  112. </tmp>
  113. </root>
  114. </instance>
  115. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  116. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  117. <submission id="TRPMC04101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/grid"/>
  118. <script type="javascript" ev:event="xforms-ready">
  119. <![CDATA[
  120. finitialize();
  121. reqnursid(); //병원 소속 가정간호사 조회
  122. radio2.select(0);
  123. //20091211 zzui 가정간호 김숙인선생님 요청 - 환자정보설정
  124. if(isPopup() == true){
  125. if(model.getValue("/root/tmp/uncoref/info/popup") == "homecare"){ //팝업사용처구분 : nurse(가정간호)
  126. input3.value = model.getValue("/root/tmp/uncoref/info/pid"); //환자번호
  127. if(model.getValue("/root/tmp/uncoref/info/kind") == "1") {//병원
  128. radio2.value = 1
  129. radio3.value = 1
  130. }else{ //본당
  131. radio2.value = 2
  132. radio3.value = 2
  133. }
  134. }else{
  135. ;
  136. }
  137. }
  138. ]]>
  139. </script>
  140. <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
  141. <submission id="TRPMC04102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/nurse"/>
  142. <submission id="TRPMC04103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" replace="instance" resultref="/root/init/churnurse"/>
  143. <submission id="TRPMC04104" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/church"/>
  144. <submission id="TRPMC04105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search/grdclick" resultref="/root/receive/rcvgrid"/>
  145. </model>
  146. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  147. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  148. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  149. <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  151. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  152. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  153. <script type="javascript">
  154. <![CDATA[
  155. function finitialize()
  156. {
  157. // 시스템 날자
  158. model.setValue("/root/hidden/currentdate", getCurrentDate());
  159. // 방문일정을 오늘날자로 세팅
  160. model.setValue("/root/send/search/fromdd",model.getValue("/root/hidden/currentdate"));
  161. model.setValue("/root/send/search/todd",model.getValue("/root/hidden/currentdate"));
  162. model.setValue("/root/send/search/careflag","ALL");
  163. model.setValue("/root/send/search/endyn","N");
  164. // 구분값 조회(본원과 칠곡을 분기시킴)(20160623)
  165. pamfGetCodeList(new Array("P6585"), new Array("/root/init/P6585list"));
  166. model.refresh();
  167. }
  168. function reqnursid(){
  169. submit("TRPMC04102");
  170. model.refresh();
  171. }
  172. function reqchurnursid(){
  173. submit("TRPMC04103");
  174. model.refresh();
  175. }
  176. // 이름의 길이를 체크 한다.
  177. function fHngNmVeri(gubn)
  178. {
  179. var ptbs_hngnm;
  180. if (gubn == "xforms-next") ptbs_hngnm = model.getValue("/root/main/ptbs/ptbs_hngnm");
  181. else if (gubn == "onkeypress" || gubn == "onkeyup")
  182. {
  183. ptbs_hngnm = (ipt_hngnm.currentText).toString();
  184. }
  185. //한글 한글자를 그냥 길이1로 계산
  186. if (eval((ptbs_hngnm.length).toString()) < 2)
  187. {
  188. messageBox("환자성명은 2글자 이상되어야 합니다!","E999","");
  189. model.setFocus("ipt_hngnm");
  190. return false;
  191. }
  192. }
  193. /*
  194. function calAmt(){
  195. var ina = 0;
  196. var out = 0;
  197. var ret = 0;
  198. var rest = 0;
  199. if ( datagrid2.rows > 1 ) {
  200. for ( var a = datagrid2.rows - 1; a > 0 ; a-- ) {
  201. var ina = 0;
  202. var out = 0;
  203. var ret = 0;
  204. var rest = 0;
  205. if ( a < datagrid2.rows -1){
  206. var o = a + 1;
  207. rest = parseInt(model.getValue("/root/receive/rcvgrid/gridlist2[" + o + "]/restamt"));
  208. }
  209. ina = parseInt(model.getValue("/root/receive/rcvgrid/gridlist2[" + a + "]/inamt"));
  210. out = parseInt(model.getValue("/root/receive/rcvgrid/gridlist2[" + a + "]/outamt"));
  211. ret = parseInt(model.getValue("/root/receive/rcvgrid/gridlist2[" + a + "]/rcptamt"));
  212. model.setValue("/root/receive/rcvgrid/gridlist2[" + a + "]/restamt", rest + ina - out - ret );
  213. }
  214. }
  215. // 개인별 선수금 합계를 위한 로직
  216. var inamt =0;
  217. var outamt=0;
  218. var retamt=0;
  219. var restamt =0;
  220. var total=0;
  221. for(var i =1 ; i < datagrid2.rows ; i++){
  222. restamt =0;
  223. inamt += parseInt(datagrid2.valueMatrix(i,2)) ;
  224. outamt += parseInt(datagrid2.valueMatrix(i,3));
  225. retamt += parseInt(datagrid2.valueMatrix(i,4));
  226. restamt += inamt-outamt-retamt;
  227. }
  228. if(datagrid2.rows>1){
  229. datagrid2.additem();
  230. model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/inamt", (String(inamt)));
  231. model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/outamt", (String(outamt)));
  232. model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/rcptamt", (String(retamt)));
  233. model.setValue("/root/receive/rcvgrid/gridlist2["+((datagrid2.rows)-1)+"]/restamt", (String(restamt)));
  234. model.setValue("/root/receive/rcvgrid/gridlist2[" +((datagrid2.rows)-1)+ "]/inoutgubn", " 합 계");
  235. }
  236. model.setValue("/root/receive/totgrid/totgridlist3/totinamt", inamt);
  237. model.setvalue("/root/receive/totgrid/totgridlist3/totretamt", outamt);
  238. model.setValue("/root/receive/totgrid/totgridlist3/totoutamt", retamt);
  239. model.setValue("/root/receive/totgrid/totgridlist3/totamt", (inamt-outamt-retamt));
  240. total = model.getValue("/root/receive/totgrid/totgridlist3/totamt");
  241. if(total>0){
  242. model.setValue("/root/receive/totgrid/totgridlist3/review", "가정간호 선수금 잔액이 있습니다.")
  243. }else if(total == 0){
  244. model.setValue("/root/receive/totgrid/totgridlist3/review", "가정간호 선수금 잔액이 없습니다.")
  245. }else {
  246. model.setValue("/root/receive/totgrid/totgridlist3/review", "가정간호 선수금 잔액이 부족합니다.")
  247. }
  248. }
  249. */
  250. ]]>
  251. </script>
  252. </xhtml:head>
  253. <xhtml:body>
  254. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:760px; ">
  255. <group id="group3" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  256. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  257. <caption id="caption1" class="search_name" style="left:15px; top:8px; width:80; height:17px; ">조회일자</caption>
  258. <input id="input2" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:193px; top:8px; width:85px; height:19px; ">
  259. <script type="javascript" ev:event="onkeypress">
  260. <![CDATA[
  261. inputEnterKey("btn_search", "DOMActivate");
  262. ]]>
  263. </script>
  264. </input>
  265. <caption id="caption2" class="search_name" style="left:288px; top:8px; width:80px; height:17px; vertical-align:middle; ">등록번호</caption>
  266. <input id="input3" ref="/root/send/search/pid" style="left:368px; top:8px; width:100px; height:19px; ">
  267. <script type="javascript" ev:event="onkeypress">
  268. <![CDATA[
  269. if(event.keyCode =="13"){
  270. inputEnterKey("btn_search", "DOMActivate");
  271. }
  272. ]]>
  273. </script>
  274. </input>
  275. <caption id="caption8" style="left:181px; top:10px; width:20px; height:15px; ">~</caption>
  276. <button id="btn_ptbs_search" class="icon_search" style="left:473px; top:8px; width:16px; height:16px; ">
  277. <caption/>
  278. <script type="javascript" ev:event="DOMActivate">
  279. <![CDATA[
  280. //조회건수가 1건일 경우 팝업창을 바로 닫는다.
  281. model.setValue("/root/source/checkfnexam", "1");
  282. model.setValue("/root/source/autoflag", "N");
  283. if( model.getValue("/root/source/srchcond") == '' ){
  284. model.setValue("/root/source/srchcond", '4');
  285. }
  286. modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", " /root/send");
  287. model.resetInstanceNode("/root/source");
  288. //환자번호 copy
  289. var popupendflag = model.getValue("/root/main/popupendflag");
  290. if (popupendflag == "ok") {
  291. var test = model.getValue("/root/main/patinfo/patinfolist/pid");
  292. model.setValue("/root/send/search/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
  293. model.setValue("/root/send/search/hngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
  294. model.setValue("/root/source/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
  295. model.setValue("/root/source/age", model.getValue("/root/main/patinfo/patinfolist/age"));
  296. }
  297. var sexage ="";
  298. sexage += model.getValue("/root/source/sex");
  299. sexage +="/"
  300. sexage +=model.getValue("/root/source/age");
  301. model.setValue("/root/send/search/sexage", sexage);
  302. model.refresh();
  303. ]]>
  304. </script>
  305. </button>
  306. <input id="ipt_hngnm" ref="/root/send/search/hngnm" disabled="true" style="left:497px; top:8px; width:80px; height:19px; ">
  307. <script type="javascript" ev:event="onkeypress">
  308. <![CDATA[
  309. if(event.keyCode =="13"){
  310. if(fHngNmVeri("onkeypress")==false)return;
  311. model.setValue("/root/source/srchcond", "2");
  312. model.setValue("/root/source/hngnm", ipt_hngnm.currentText);
  313. inputEnterKey("btn_ptbs_search", "DOMActivate");
  314. }
  315. ]]>
  316. </script>
  317. </input>
  318. <input id="opt_sexage" ref="/root/send/search/sexage" disabled="true" style="left:581px; top:8px; width:50px; height:19px; "/>
  319. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:8px; width:56px; height:20px; ">
  320. <caption>조회</caption>
  321. <script type="javascript" ev:event="DOMActivate">
  322. <![CDATA[
  323. submit("TRPMC04101");
  324. if(ipt_hngnm.value == ""){
  325. model.setValue("/root/send/search/sexage", "");
  326. }
  327. ]]>
  328. </script>
  329. </button>
  330. <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:95px; top:8px; width:85px; height:19px; "/>
  331. <caption id="caption11" class="search_name" style="left:642px; top:8px; width:60px; height:17px; ">구분</caption>
  332. <select1 id="radio5" ref="/root/send/search/careflag" appearance="full" cols="3" overflow="visible" style="left:698px; top:9px; width:182px; height:15px; border-style:none; ">
  333. <choices>
  334. <itemset nodeset="/root/init/P6585list/P6585">
  335. <label ref="cdnm"/>
  336. <value ref="cdid"/>
  337. </itemset>
  338. </choices>
  339. </select1>
  340. <caption id="caption3" class="search_name" style="left:890px; top:8px; width:55px; height:17px; ">종결여부</caption>
  341. <select1 id="radio1" ref="/root/send/search/endyn" appearance="full" cols="3" overflow="visible" style="left:945px; top:9px; width:150px; height:15px; border-style:none; ">
  342. <choices>
  343. <item>
  344. <label>전체</label>
  345. <value>%</value>
  346. </item>
  347. <item>
  348. <label>종결</label>
  349. <value>Y</value>
  350. </item>
  351. <item>
  352. <label>미종결</label>
  353. <value>N</value>
  354. </item>
  355. </choices>
  356. </select1>
  357. </group>
  358. <select1 id="radio2" ref="/root/send/search/radio/radio2" appearance="full" cols="2" overflow="visible" style="left:15px; top:60px; width:100px; height:20px; border-style:none; ">
  359. <choices>
  360. <item>
  361. <label>병원</label>
  362. <value>1</value>
  363. </item>
  364. </choices>
  365. <script type="javascript" ev:event="xforms-value-changed">
  366. <![CDATA[
  367. var select = radio2.value;
  368. if (select ==1){
  369. radio3.select(0);
  370. radio3.visible = false;
  371. caption5.visible= false;
  372. cmb_church.visible=false;
  373. caption6.visible=false;
  374. cmb_nurse2.visible=false;
  375. radio4.visible=false;
  376. radio4.select(0);
  377. cmb_nurse1.select(0);
  378. reqnursid(); //병원 소속 가정간호사 조회
  379. model.resetInstanceNode("/root/send/search/hngnm");
  380. model.resetInstanceNode("/root/send/search/pid");
  381. model.resetInstanceNode("/root/send/search/sexage");
  382. }
  383. else {
  384. model.resetInstanceNode("/root/send/search/hngnm");
  385. model.resetInstanceNode("/root/send/search/pid");
  386. model.resetInstanceNode("/root/send/search/sexage");
  387. radio2.visible = false;
  388. caption4.visible =false;
  389. cmb_nurse1.visible=false;
  390. radio3.select(1);
  391. radio3.visible = true;
  392. caption5.visible= true;
  393. cmb_church.visible=true;
  394. caption6.visible=true;
  395. cmb_nurse2.visible=true;
  396. radio4.visible=true;
  397. cmb_church.disabled=false;
  398. submit("TRPMC04104"); //본당조회
  399. reqchurnursid(); //본당소속 가정간호사
  400. cmb_nurse2.select(0);
  401. cmb_church.select(0);
  402. }
  403. model.refresh();
  404. ]]>
  405. </script>
  406. </select1>
  407. <caption id="caption4" class="cell_1" style="left:120px; top:60px; width:70px; height:20px; vertical-align:middle; ">담당간호사</caption>
  408. <select1 id="radio3" ref="/root/send/search/radio/radio3" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:15px; top:83px; width:100px; height:20px; border-style:none; ">
  409. <choices>
  410. <item>
  411. <label>병원</label>
  412. <value>1</value>
  413. </item>
  414. </choices>
  415. <script type="javascript" ev:event="xforms-value-changed">
  416. <![CDATA[
  417. var select = radio3.value;
  418. if (select ==1){
  419. radio3.select(0);
  420. radio3.visible = false;
  421. caption5.visible= false;
  422. cmb_church.visible=false;
  423. caption6.visible=false;
  424. cmb_nurse2.visible=false;
  425. radio4.visible=false;
  426. radio2.select(0);
  427. radio2.visible = true;
  428. caption4.visible= true;
  429. cmb_nurse1.visible=true;
  430. }
  431. ]]>
  432. </script>
  433. </select1>
  434. <caption id="caption5" class="cell_1" visibility="hidden" style="left:120px; top:83px; width:70px; height:20px; vertical-align:middle; ">본당명</caption>
  435. <caption id="caption6" class="cell_1" visibility="hidden" style="left:472px; top:83px; width:80px; height:20px; vertical-align:middle; ">담당간호사</caption>
  436. <datagrid id="datagrid1" nodeset="/root/main/grid/gridlist1" scroll="auto" caption="구분^등록번호^환자명^S/A^구분^종결여부^종결일자^미수" colsep="^" colwidth="40, 65, 60, 50, 40, 55, 68, 40" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:15px; top:150px; width:465px; height:595px; ">
  437. <col ref="careflag" type="combo" style="text-align:center; ">
  438. <choices>
  439. <item>
  440. <label>가정</label>
  441. <value>H</value>
  442. </item>
  443. <item>
  444. <label>방문</label>
  445. <value>V</value>
  446. </item>
  447. </choices>
  448. </col>
  449. <col ref="pid" style="text-align:center; "/>
  450. <col ref="hngnm" style="text-align:center; "/>
  451. <col ref="sexage" style="text-align:center; "/>
  452. <col ref="chrrgstkind" style="text-align:center; "/>
  453. <col ref="endflag" style="text-align:center; "/>
  454. <col ref="enddd" format="yyyy-mm-dd"/>
  455. <col disabled="true" ref="uncoyn" type="combo" style="text-align:center; ">
  456. <choices>
  457. <item>
  458. <label>존재</label>
  459. <value>Y</value>
  460. </item>
  461. <item>
  462. <label>완료</label>
  463. <value>N</value>
  464. </item>
  465. </choices>
  466. </col>
  467. <script type="javascript" ev:event="ondblclick">
  468. <![CDATA[
  469. if (isDataCell() == true) {
  470. var rowindex=0;
  471. rowindex = datagrid1.mouseRow;
  472. if(datagrid1.valueMatrix(rowindex,2) == ""){
  473. //
  474. }else{
  475. model.setvalue("/root/send/search/grdclick/selectedcareflag" , datagrid1.valueMatrix(rowindex,1));
  476. model.setvalue("/root/send/search/grdclick/selectedpid" , datagrid1.valueMatrix(rowindex,2));
  477. model.setvalue("/root/send/search/grdclick/selectedhngnm" , datagrid1.valueMatrix(rowindex,3));
  478. submit("TRPMC04105");
  479. }
  480. //calAmt();
  481. model.refresh();
  482. datagrid2.rebuild();
  483. datagrid2.subtotalposition = "below";
  484. datagrid2.multitotals = true;
  485. datagrid2.subtotal("sum", -1, 2 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
  486. datagrid2.subtotal("sum", -1, 3 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
  487. datagrid2.subtotal("sum", -1, 4 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
  488. datagrid2.subtotal("sum", -1, 5 , "format:(-)#,###; roundmode:round; roundpostion:2", "background-color:#fcd2c1; color:#0000; font-weight:bold; ", 0, "합계 ", false);
  489. }
  490. ]]>
  491. </script>
  492. </datagrid>
  493. <datagrid id="datagrid2" nodeset="/root/receive/rcvgrid/gridlist2" caption="수납일자^입(출)금 구분^입금금액^환불금액^대체금액^납입금^카드^비고" colsep="^" colwidth="80, 120, 90, 90, 90, 80, 40, 102" mergecellsfixedrows="bycolrec" rowsep="|" style="left:486px; top:135px; width:694px; height:485px; ">
  494. <col ref="rcptexecdd" format="yyyy-mm-dd" style="text-align:center; "/>
  495. <col ref="inoutgubn" style="text-align:center; "/>
  496. <col ref="inamt" format="(-)#,###" style="text-align:right; "/>
  497. <col ref="outamt" format="(-)#,###" style="text-align:right; "/>
  498. <col ref="rcptamt" format="(-)#,###" style="text-align:right; "/>
  499. <col ref="restamt" format="(-)#,###" style="text-align:right; "/>
  500. <col ref="cardyn" style="text-align:center; "/>
  501. <col ref="remark" style="text-align:left; "/>
  502. </datagrid>
  503. <datagrid id="datagrid3" nodeset="/root/receive/rcvgrid/gridlist3" caption="선수금 입금^선수금 환불^선수금 대체^잔 액^비고" colsep="^" colwidth="100, 100, 100, 100, 293" mergecellsfixedrows="bycolrec" rowsep="|" style="left:485px; top:650px; width:695px; height:80px; ">
  504. <col ref="totinamt" format="(-)#,###" style="text-align:right; "/>
  505. <col ref="totretamt" format="(-)#,###" style="text-align:right; "/>
  506. <col ref="totoutamt" format="(-)#,###" style="text-align:right; "/>
  507. <col ref="totamt" format="(-)#,###" style="text-align:right; "/>
  508. <col ref="remark" style="text-align:left; "/>
  509. </datagrid>
  510. <line id="line1" class="line_1" style="x1:15px; y1:130px; x2:480; y2:130px; "/>
  511. <button id="button4" class="btn6_letter2" style="left:1042px; top:80px; width:56px; height:22px; ">
  512. <caption>출력</caption>
  513. <script type="javascript" ev:event="DOMActivate">
  514. <![CDATA[
  515. exeReportPreview("RPPMC04100", "XMLSTR", "", "", "false", "", "", "", "", "","", "", "", "", "", "1", "");
  516. ]]>
  517. </script>
  518. </button>
  519. <button id="button5" class="btn6_letter4" style="left:1100px; top:80px; width:80px; height:22px; ">
  520. <caption>엑셀저장</caption>
  521. <script type="javascript" ev:event="DOMActivate">
  522. <![CDATA[
  523. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  524. if (fileName != "")
  525. {
  526. datagrid2.saveExcel(fileName, "SheetName", true, true, "", "");
  527. }
  528. window.exec(fileName);
  529. ]]>
  530. </script>
  531. </button>
  532. <line id="line2" class="line_3" style="x1:15px; y1:103px; x2:1180px; y2:103px; "/>
  533. <line id="line3" class="line_3" style="x1:15px; y1:80px; x2:315px; y2:80px; "/>
  534. <caption id="caption9" class="tit_2" style="left:486px; top:115px; width:140px; height:13px; ">입금/대체/환불 내역</caption>
  535. <line id="line4" class="line_1" style="x1:486px; y1:130px; x2:1180px; y2:130px; "/>
  536. <caption id="caption10" class="tit_2" style="left:15px; top:115px; width:152px; height:13px; ">가정간호환자 조회내역</caption>
  537. <caption id="caption12" class="tit_2" style="left:485px; top:630px; width:144px; height:14px; ">가정간호 선수금 합계</caption>
  538. <line id="line6" class="line_1" style="x1:485px; y1:645px; x2:1180px; y2:645px; "/>
  539. <select1 id="cmb_nurse1" ref="/root/send/search/nurse" appearance="minimal" style="left:195px; top:60px; width:120px; height:19px; ">
  540. <choices>
  541. <itemset nodeset="/root/init/nurse/nursecd">
  542. <label ref="usernm"/>
  543. <value ref="userid"/>
  544. </itemset>
  545. </choices>
  546. <script type="javascript" ev:event="xforms-value-changed">
  547. <![CDATA[
  548. if(cmb_nurse1.value=='1'){
  549. model.setValue("/root/send/search/nurse","/root/init/nurse/nursecd/usernm");
  550. }
  551. ]]>
  552. </script>
  553. </select1>
  554. <select1 id="cmb_nurse2" ref="/root/send/search/chrnursid" visibility="hidden" appearance="minimal" style="left:555px; top:83px; width:125px; height:19px; ">
  555. <choices>
  556. <itemset nodeset="/root/init/churnurse/churnursecd">
  557. <label ref="usernm"/>
  558. <value ref="userid"/>
  559. </itemset>
  560. </choices>
  561. <script type="javascript" ev:event="xforms-value-changed">
  562. <![CDATA[
  563. if(cmb_nurse2.value=='1'){
  564. model.setValue("/root/send/search/chrnursid","/root/init/nurse/nursecd/usernm");
  565. }
  566. ]]>
  567. </script>
  568. </select1>
  569. <select1 id="cmb_church" ref="/root/send/search/churchcd" disabled="true" visibility="hidden" appearance="minimal" style="left:195px; top:83px; width:120px; height:19px; ">
  570. <choices>
  571. <itemset nodeset="/root/init/church/churchcd">
  572. <label ref="nm"/>
  573. <value ref="cd"/>
  574. </itemset>
  575. </choices>
  576. <script type="javascript" ev:event="xforms-value-changed">
  577. <![CDATA[
  578. if(cmb_church.value=='1'){
  579. model.setvalue("/root/send/search/churchcd", "/root/init/church/churchcd/nm");
  580. }
  581. ]]>
  582. </script>
  583. <script type="javascript" ev:event="xforms-select">
  584. <![CDATA[
  585. //submit("TRPMC04103");
  586. ]]>
  587. </script>
  588. </select1>
  589. <select1 id="radio4" ref="/root/send/search/chrrgstkind" appearance="full" cols="3" overflow="visible" style="left:322px; top:83px; width:140px; height:20px; border-style:none; ">
  590. <choices>
  591. <item>
  592. <label>등록</label>
  593. <value>1</value>
  594. </item>
  595. <item>
  596. <label>무료</label>
  597. <value>2</value>
  598. </item>
  599. <item>
  600. <label>기타</label>
  601. <value>3</value>
  602. </item>
  603. </choices>
  604. </select1>
  605. </group>
  606. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  607. <caption id="caption7" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">가정간호선수금 수납내역 조회</caption>
  608. </group>
  609. </xhtml:body>
  610. </xhtml:html>