SMAHA02900_단체미수관리.xrw 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>단체미수관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <cmpylst>
  11. <item>
  12. <sel/>
  13. <cmpynm/>
  14. <claminwon/>
  15. <clamdd/>
  16. <clamamt/>
  17. <lastpaydd/>
  18. <cmpypayamt/>
  19. <ownpayamt/>
  20. <restamt/>
  21. <discamt/>
  22. <uncoamt/>
  23. <cmpycd/>
  24. <cmpyno/>
  25. <fromdd/>
  26. <todd/>
  27. <clamdd/>
  28. <condflag/>
  29. </item>
  30. </cmpylst>
  31. <cmpydetllst>
  32. <item>
  33. <sel/>
  34. <instnm/>
  35. <pid/>
  36. <rsrvdd/>
  37. <rsrvno/>
  38. <cmpynm/>
  39. <clntempid/>
  40. <hngnm/>
  41. <hopedd/>
  42. <rrgstno/>
  43. <contype/>
  44. <contamt/>
  45. <addexamamt/>
  46. <ownbamt/>
  47. <clntdeptnm/>
  48. <famyrelanm/>
  49. <remcnts/>
  50. <cmpyamt/>
  51. <incomeamt/>
  52. <discamt/>
  53. <chngamt/>
  54. <ownincomeamt/>
  55. </item>
  56. <incmlst>
  57. <sel/>
  58. <incomedd/>
  59. <cashcardflag/>
  60. <incomeamt/>
  61. <discamt/>
  62. <chngamt/>
  63. <incomestat/>
  64. <clamtrgtcd/>
  65. <remfact/>
  66. <bankid/>
  67. <lastupdtrid/>
  68. <lastupdtdt/>
  69. <incomeflag/>
  70. <clamseqno/>
  71. <incomeseqno/>
  72. <allotmm/>
  73. <aprvdd/>
  74. <aprvflag/>
  75. <aprvtm/>
  76. <aprvno/>
  77. <cardcmpycd/>
  78. <cardcashno/>
  79. <valiterm/>
  80. <vangb/>
  81. <keyinptflag/>
  82. </incmlst>
  83. </cmpydetllst>
  84. <prnt>
  85. <clamdetl>
  86. <item/>
  87. </clamdetl>
  88. <ownbill>
  89. <item/>
  90. </ownbill>
  91. </prnt>
  92. </main>
  93. <send>
  94. <srchinfo>
  95. <cmpycd/>
  96. <cmpynm/>
  97. <pkgcd/>
  98. <pkgnm/>
  99. <fromdd/>
  100. <todd/>
  101. <condflag>H</condflag>
  102. <clamend/>
  103. </srchinfo>
  104. <srchdetl>
  105. <cmpydata/>
  106. </srchdetl>
  107. <save>
  108. <clam/>
  109. <clamdetl/>
  110. <cnclinfo/>
  111. <card/>
  112. </save>
  113. <cardcashdata>
  114. <aprv>
  115. <depoAmt/>
  116. <cashcardflag>C</cashcardflag>
  117. <indinstflag/>
  118. <cardcashno/>
  119. <valiterm/>
  120. <allotmm/>
  121. <keyinptflag>S</keyinptflag>
  122. <qualcnfmflag>
  123. </qualcnfmflag>
  124. <swipedata/>
  125. </aprv>
  126. </cardcashdata>
  127. </send>
  128. <sendincm>
  129. <cashcardflag/>
  130. <clam/>
  131. <clamdetl/>
  132. <cardcash/>
  133. </sendincm>
  134. <init>
  135. <baseinfo>
  136. <initaddrinfo/>
  137. <P0032list/>
  138. </baseinfo>
  139. <session/>
  140. <send>
  141. <inputitem>
  142. <incomeamt/>
  143. <ownincomeamt/>
  144. <chngamt/>
  145. <discamt/>
  146. </inputitem>
  147. </send>
  148. </init>
  149. <tmp>
  150. <appvanif/>
  151. </tmp>
  152. <hidden/>
  153. </root>
  154. </instance>
  155. <submission id="TRAHA00001"/>
  156. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  157. <submission id="TXPAC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp"/>
  158. <submission id="TRAHA02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchinfo" resultref="/root/main/cmpylst"/>
  159. <submission id="TRAHA02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchdetl" resultref="/root/main/cmpydetllst"/>
  160. <submission id="TXAHA02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/hidden"/>
  161. <submission id="TXAHA02902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendincm" resultref="/hidden"/>
  162. <submission id="TXAHA02903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendincm" resultref="/hidden"/>
  163. <submission id="TXAHA02304" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/hidden"/>
  164. <submission id="TRPAO00005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/magm/magminfo" resultref="/root/magm/aprvinfo"/>
  165. <submission id="TRPAO00006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/rcptuser/rcptuserinfosend" resultref="/root/rcptuser/rcptuserinfo"/>
  166. <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
  167. </model>
  168. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  169. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  170. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  171. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  172. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  173. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  174. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  175. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
  176. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  177. <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
  178. <script type="javascript" src="../../../ast/healthexambaseweb/js/healcombolist.js"/>
  179. <script type="javascript" src="../../../ast/healexamrcptweb/js/SMAHA02200.js"/>
  180. <script type="javascript" src="../../../ast/healexamreqweb/js/SMAHA02900.js"/>
  181. <script type="javascript" ev:event="xforms-ready">
  182. <![CDATA[
  183. fGetBaseInfo();
  184. fInitUnco();
  185. pamfGetCodeList(new Array("P0032"), new Array("/root/init/baseinfo/P0032list"));
  186. model.refresh();
  187. ]]>
  188. </script>
  189. </xhtml:head>
  190. <xhtml:body>
  191. <caption id="caption8" class="cell_1" style="left:740px; top:269px; width:73px; height:20px; text-align:center; vertical-align:middle; ">할인액</caption>
  192. <button id="btn_set" class="btn2_letter4" style="left:905px; top:269px; width:64px; height:19px; ">
  193. <caption>일괄적용</caption>
  194. <script type="javascript" ev:event="DOMActivate">
  195. <![CDATA[
  196. var vincomeamt = model.getValue("/root/init/send/inputitem/incomeamt");
  197. var vownincomeamt = model.getValue("/root/init/send/inputitem/ownincomeamt");
  198. var vchngamt = model.getValue("/root/init/send/inputitem/chngamt");
  199. var vdiscamt = model.getValue("/root/init/send/inputitem/discamt");
  200. for(var i =1; i < grd_cmpydetllst.rows; i++) {
  201. if (vincomeamt != "0") {
  202. grd_cmpydetllst.valueMatrix( i , grd_cmpydetllst.colRef("incomeamt")) = vincomeamt;
  203. }
  204. if (vownincomeamt != "0") {
  205. grd_cmpydetllst.valueMatrix( i , grd_cmpydetllst.colRef("ownincomeamt")) = vownincomeamt;
  206. }
  207. if (vchngamt != "0") {
  208. grd_cmpydetllst.valueMatrix( i , grd_cmpydetllst.colRef("chngamt")) = vchngamt;
  209. }
  210. if (vdiscamt != "0") {
  211. grd_cmpydetllst.valueMatrix( i , grd_cmpydetllst.colRef("discamt")) = vdiscamt;
  212. }
  213. }
  214. fSetRcptSum(); //총계 및 입금대상금액 설정
  215. ]]>
  216. </script>
  217. </button>
  218. <caption id="caption7" class="cell_1" style="left:580px; top:269px; width:73px; height:20px; text-align:center; vertical-align:middle; ">삭감액</caption>
  219. <input id="ipt_ownincomeamt" ref="/root/init/send/inputitem/ownincomeamt" class="input_search" format="(-,+)#,###" style="left:495px; top:269px; width:80px; height:19px; text-align:right; ">
  220. <script type="javascript" ev:event="onkeyup">
  221. <![CDATA[
  222. if(event.keyCode == 13){
  223. model.setFocus("ipt_chngamt");
  224. }
  225. ]]>
  226. </script>
  227. </input>
  228. <caption id="caption6" class="cell_1" style="left:420px; top:269px; width:73px; height:20px; text-align:center; vertical-align:middle; ">개인입금액</caption>
  229. <input id="ipt_chngamt" ref="/root/init/send/inputitem/chngamt" class="input_search" format="(-,+)#,###" style="left:655px; top:269px; width:80px; height:19px; text-align:right; ">
  230. <script type="javascript" ev:event="onkeyup">
  231. <![CDATA[
  232. if(event.keyCode == 13){
  233. model.setFocus("ipt_discamt");
  234. }
  235. ]]>
  236. </script>
  237. </input>
  238. <caption id="caption4" class="cell_1" style="left:260px; top:269px; width:73px; height:20px; text-align:center; vertical-align:middle; ">단체입금액</caption>
  239. <input id="ipt_discamt" ref="/root/init/send/inputitem/discamt" class="input_search" format="(-,+)#,###" style="left:815px; top:269px; width:80px; height:19px; text-align:right; ">
  240. <script type="javascript" ev:event="onkeyup">
  241. <![CDATA[
  242. if(event.keyCode == 13){
  243. model.setFocus("btn_set");
  244. }
  245. ]]>
  246. </script>
  247. </input>
  248. <input id="ipt_incomeamt" ref="/root/init/send/inputitem/incomeamt" class="input_search" format="(-,+)#,###" style="left:335px; top:269px; width:80px; height:19px; text-align:right; ">
  249. <script type="javascript" ev:event="onkeyup">
  250. <![CDATA[
  251. if(event.keyCode == 13){
  252. model.setFocus("ipt_ownincomeamt");
  253. }
  254. ]]>
  255. </script>
  256. </input>
  257. <button id="btn_dsamll" class="icon_bottom" style="left:1169px; top:268px; width:26px; height:19px; ">
  258. <caption/>
  259. <script type="javascript" ev:event="DOMActivate">
  260. <![CDATA[
  261. fSetGrdSize(false,"D");
  262. ]]>
  263. </script>
  264. </button>
  265. <button id="btn_usmall" class="icon_top" visibility="hidden" style="left:1169px; top:67px; width:26px; height:19px; ">
  266. <caption/>
  267. <script type="javascript" ev:event="DOMActivate">
  268. <![CDATA[
  269. fSetGrdSize(false,"U");
  270. ]]>
  271. </script>
  272. </button>
  273. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:22px; width:1194px; height:38px; "/>
  274. <line id="line8" class="line_4" style="x1:1110px; y1:29px; x2:1110px; y2:54px; "/>
  275. <button id="btn_selcmpy" class="icon_search" style="left:175px; top:32px; width:16px; height:16px; ">
  276. <caption/>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. fGetComnCd("SMAHA02300", "08" , "nm", ipt_cmpycd.currentText ,ipt_cmpycd.attribute("ref"),opt_cmpynm.attribute("ref"));
  280. ]]>
  281. </script>
  282. </button>
  283. <output id="opt_cmpynm" ref="/root/send/srchinfo/cmpynm" class="output_fix" style="left:195px; top:32px; width:150px; height:19px; "/>
  284. <button id="btn_srchtrgtman" class="btn1_letter2" style="left:1125px; top:32px; width:56px; height:22px; ">
  285. <caption>조회</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. model.resetInstanceNode("/root/send/cardcashdata/aprv");
  289. model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "S");
  290. model.setValue("/root/send/cardcashdata/aprv/cashcardflag" , "C"); //R-카드, S-현금영수증, C-현금
  291. rdo_cashcardflag.dispatch("xforms-value-changed");
  292. model.removeNodeset("/root/main/cmpydetllst/item");
  293. model.removeNodeset("/root/main/cmpydetllst/incmlst");
  294. model.setValue("/root/init/send/inputitem/incomeamt" , "0");
  295. model.setValue("/root/init/send/inputitem/ownincomeamt" , "0");
  296. model.setValue("/root/init/send/inputitem/chngamt" , "0");
  297. model.setValue("/root/init/send/inputitem/discamt" , "0");
  298. //H-건진일, C-청구일, I-입금일
  299. if(model.getValue("/root/send/srchinfo/condflag") == "H"){
  300. btn_examseqprnt.disabled = true;
  301. btn_prntcustspec.disabled = true;
  302. btn_prntpsnspec.disabled = true;
  303. btn_rsrvprnt.disabled = false;
  304. btn_delclam.disabled = true;
  305. }else if(model.getValue("/root/send/srchinfo/condflag") == "C" || model.getValue("/root/send/srchinfo/condflag") == "I" ){
  306. btn_examseqprnt.disabled = false;
  307. btn_prntcustspec.disabled = false;
  308. btn_prntpsnspec.disabled = false;
  309. btn_rsrvprnt.disabled = true;
  310. btn_delclam.disabled = false;
  311. }
  312. submit("TRAHA02901");
  313. model.refresh();
  314. ]]>
  315. </script>
  316. </button>
  317. <caption id="caption42" class="search_name" style="left:10px; top:32px; width:99px; height:17px; ">사업체 :</caption>
  318. <input id="ipt_cmpycd" ref="/root/send/srchinfo/cmpycd" class="input_search" style="left:89px; top:32px; width:81px; height:19px; ">
  319. <script type="javascript" ev:event="onkeyup">
  320. <![CDATA[
  321. inputEnterKey("btn_selcmpy", "DOMActivate");
  322. ]]>
  323. </script>
  324. </input>
  325. <caption id="caption5" class="search_name" style="left:355px; top:32px; width:100px; height:17px; ">시작일자 :</caption>
  326. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  327. <caption id="caption2" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">단체미수관리</caption>
  328. </group>
  329. <caption id="caption3" class="search_name" style="left:710px; top:32px; width:117px; height:17px; ">조회구분 :</caption>
  330. <input id="ipt_fromdate" ref="/root/send/srchinfo/fromdd" class="input_s_essential" inputtype="date" style="left:445px; top:32px; width:115px; height:19px; "/>
  331. <input id="ipt_todate" ref="/root/send/srchinfo/todd" class="input_s_essential" inputtype="date" style="left:585px; top:32px; width:115px; height:19px; "/>
  332. <group id="group1" style="left:0px; top:734px; width:1200px; height:27px; ">
  333. <button id="btn_prntpsnspec" class="btn6_letter8" visibility="hidden" style="left:120px; top:3px; width:128px; height:22px; ">
  334. <caption>개인별영수증출력</caption>
  335. </button>
  336. <button id="btn_prntcustspec" class="btn6_letter7" style="left:0px; top:3px; width:116px; height:22px; ">
  337. <caption>청구내역서출력</caption>
  338. <script type="javascript" ev:event="onclick">
  339. <![CDATA[
  340. exeReportPreview("RPAHA02305","XMLSTR");
  341. ]]>
  342. </script>
  343. </button>
  344. <button id="button1" class="btn4_letter3" style="left:816px; top:3px; width:68px; height:22px; ">
  345. <caption>초기화</caption>
  346. <script type="javascript" ev:event="DOMActivate">
  347. <![CDATA[
  348. model.resetInstanceNode("/root/send/cardcashdata/aprv");
  349. model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "S");
  350. model.setValue("/root/send/cardcashdata/aprv/cashcardflag" , "C"); //R-카드, S-현금영수증, C-현금
  351. rdo_cashcardflag.dispatch("xforms-value-changed");
  352. model.removeNodeset("/root/main/cmpylst/item");
  353. model.removeNodeset("/root/main/cmpydetllst/item");
  354. model.setValue("/root/init/send/inputitem/incomeamt" , "0");
  355. model.setValue("/root/init/send/inputitem/ownincomeamt" , "0");
  356. model.setValue("/root/init/send/inputitem/chngamt" , "0");
  357. model.setValue("/root/init/send/inputitem/discamt" , "0");
  358. model.refresh();
  359. ]]>
  360. </script>
  361. </button>
  362. <button id="btn_examseqprnt" class="btn4_letter5" style="left:888px; top:3px; width:92px; height:22px; ">
  363. <caption>수금액저장</caption>
  364. <script type="javascript" ev:event="onclick">
  365. <![CDATA[
  366. if(isMagmAprv()){
  367. return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
  368. }
  369. if(fSaveClamAmt()){
  370. btn_srchtrgtman.dispatch("DOMActivate");
  371. }
  372. ]]>
  373. </script>
  374. </button>
  375. <button id="btn_rsrvprnt" class="btn4_letter6" style="left:984px; top:3px; width:104px; height:22px; ">
  376. <caption>청구내역생성</caption>
  377. <script type="javascript" ev:event="onclick">
  378. <![CDATA[
  379. if(isMagmAprv()){
  380. return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
  381. }
  382. fCretClam();
  383. btn_srchtrgtman.dispatch("DOMActivate");
  384. ]]>
  385. </script>
  386. </button>
  387. <button id="btn_delclam" class="btn4_letter6" style="left:1092px; top:3px; width:104px; height:22px; ">
  388. <caption>청구내역삭제</caption>
  389. <script type="javascript" ev:event="onclick">
  390. <![CDATA[
  391. if(isMagmAprv()){
  392. return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
  393. }
  394. var srcCardCashFlag = "";
  395. var cardamt = 0;
  396. var cashamt = 0;
  397. if(grd_incm.rows > 1){
  398. messageBox("입금내역이 존재하는 청구내역은 삭제", "E001");
  399. return;
  400. }
  401. for(var i=0; i<=grd_incm.rows; i++){
  402. srcCardCashFlag = grd_incm.valueMatrix(i, grd_incm.colRef("cashcardflag"));
  403. if(srcCardCashFlag == "R"){
  404. cardamt = cardamt + parseInt(grd_incm.valueMatrix(i , grd_incm.colRef("incomeamt")));
  405. }else if(srcCardCashFlag == "S"){
  406. cashamt = cashamt + parseInt(grd_incm.valueMatrix(i , grd_incm.colRef("incomeamt")));
  407. }
  408. }
  409. if(cardamt != 0){
  410. messageBox("카드 승인취소 후 청구내역 삭제", "C003");
  411. return;
  412. }
  413. if(cashamt != 0){
  414. messageBox("현금영수증 승인취소 후 청구내역 삭제", "C003");
  415. return;
  416. }
  417. if(fDelClam()){
  418. btn_srchtrgtman.dispatch("DOMActivate");
  419. }
  420. ]]>
  421. </script>
  422. </button>
  423. </group>
  424. <select1 id="combo1" ref="/root/send/srchinfo/condflag" class="combo_search" appearance="minimal" style="left:800px; top:32px; width:115px; height:19px; ">
  425. <choices>
  426. <item>
  427. <label>건진일</label>
  428. <value>H</value>
  429. </item>
  430. <item>
  431. <label>청구일</label>
  432. <value>C</value>
  433. </item>
  434. <item>
  435. <label>입금일</label>
  436. <value>I</value>
  437. </item>
  438. </choices>
  439. </select1>
  440. <caption id="caption93" class="search_n_b" style="left:567px; top:32px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  441. <datagrid id="grd_cmpylst" nodeset="/root/main/cmpylst/item" caption="^계약처명^계약명^실시시작일^실시종료일^청구인원^청구일^청구금액^최종입급일^입금액^삭감액^할인액^미수금액^cmpycd^cmpyno^contype^fromdd^todd^condflag^clamseqno^cmpyamt^ownincomeamt^condflag" colsep="^" colwidth="30, 203, 100, 80, 80, 70, 80, 100, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 0, 0, 0, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:90px; width:1195px; height:169px; ">
  442. <col checkvalue="Y,N" ref="sel" type="checkbox"/>
  443. <col ref="cmpynm"/>
  444. <col ref="contnm"/>
  445. <col ref="clamfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  446. <col ref="clamtodd" format="yyyy-mm-dd" style="text-align:center; "/>
  447. <col ref="claminwon" format="(-,+)#,###" style="text-align:center; "/>
  448. <col ref="clamdd" format="yyyy-mm-dd" style="text-align:center; "/>
  449. <col ref="clamamt" format="(-,+)#,###" style="text-align:right; "/>
  450. <col ref="lastpaydd" format="yyyy-mm-dd" style="text-align:center; "/>
  451. <col ref="incomeamt" format="(-,+)#,###" style="text-align:right; "/>
  452. <col ref="chngamt" format="(-,+)#,###" style="text-align:right; "/>
  453. <col ref="discamt" format="(-,+)#,###" style="text-align:right; "/>
  454. <col ref="uncoamt" format="(-,+)#,###" style="text-align:right; "/>
  455. <col ref="cmpycd" visibility="hidden"/>
  456. <col ref="cmpyno" visibility="hidden"/>
  457. <col ref="contype" visibility="hidden"/>
  458. <col ref="clamfromdd" visibility="hidden"/>
  459. <col ref="clamtodd" visibility="hidden"/>
  460. <col ref="condflag" visibility="hidden"/>
  461. <col ref="clamseqno" visibility="hidden"/>
  462. <col ref="cmpyamt" visibility="hidden"/>
  463. <col ref="ownincomeamt" visibility="hidden"/>
  464. <col ref="condflag" visibility="hidden"/>
  465. <script type="javascript" ev:event="onclick">
  466. <![CDATA[
  467. if(grd_cmpylst.isCell(event.target) && grd_cmpylst.mouseRow >= grd_cmpylst.fixedrows){
  468. fGetCmpyDetlList();
  469. }
  470. ]]>
  471. </script>
  472. <script type="javascript" ev:event="onaftersort">
  473. <![CDATA[
  474. grd_cmpylst.gridToInstance();
  475. ]]>
  476. </script>
  477. </datagrid>
  478. <caption id="cam_clam" class="tit_2" style="left:5px; top:72px; width:108px; height:13px; ">계약처내역</caption>
  479. <button id="btn_dlarge" class="icon_top" style="left:1169px; top:267px; width:26px; height:19px; ">
  480. <caption/>
  481. <script type="javascript" ev:event="DOMActivate">
  482. <![CDATA[
  483. fSetGrdSize(true, "D");
  484. ]]>
  485. </script>
  486. </button>
  487. <button id="btn_ularge" class="icon_bottom" style="left:1169px; top:67px; width:26px; height:19px; ">
  488. <caption/>
  489. <script type="javascript" ev:event="DOMActivate">
  490. <![CDATA[
  491. fSetGrdSize(true, "U");
  492. ]]>
  493. </script>
  494. </button>
  495. <switch id="switch1" style="left:0px; top:290px; width:1195px; height:360px; border-color:#c7a3cf; border-style:solid; ">
  496. <case id="case1" selected="true">
  497. <datagrid id="grd_cmpydetllst" nodeset="/root/main/cmpydetllst/item" caption="^기관명^등록번호^성명^주민번호^건진일^계약종류^계약금액^추가검사금액^개인선납금^단체청구금액^단체입금액^개인입금액^삭감액^할인액^cmpycd" colsep="^" colwidth="30, 120, 80, 90, 100, 100, 90, 90, 90, 90, 90, 90, 90, 90, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" subtotalposition="below" style="left:0px; top:25px; width:1190px; height:330px; ">
  498. <col checkvalue="Y,N" ref="sel" type="checkbox" style="text-align:center; "/>
  499. <col ref="instnm" style="text-align:center; "/>
  500. <col ref="pid" style="text-align:center; "/>
  501. <col ref="hngnm" style="text-align:center; "/>
  502. <col ref="rrgstno" format="999999-999" style="text-align:center; "/>
  503. <col ref="hopedd" format="yyyy-mm-dd" style="text-align:center; "/>
  504. <col ref="contnm" style="text-align:center; "/>
  505. <col ref="contamt" format="(-,+)#,###" style="text-align:right; "/>
  506. <col ref="addexamamt" format="(-,+)#,###" style="text-align:right; "/>
  507. <col ref="ownbamt" format="(-,+)#,###" style="text-align:right; "/>
  508. <col ref="cmpyamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
  509. <col ref="incomeamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
  510. <col ref="ownincomeamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
  511. <col ref="chngamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
  512. <col ref="discamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
  513. <col ref="cmpycd" visibility="hidden"/>
  514. <col ref="cmpynm" visibility="hidden"/>
  515. <col ref="rsrvdd" visibility="hidden"/>
  516. <col ref="rsrvno" visibility="hidden"/>
  517. <col ref="condflag" visibility="hidden"/>
  518. <col ref="clamseqno" visibility="hidden"/>
  519. <col ref="pkgnm" visibility="hidden"/>
  520. <col ref="totamt" visibility="hidden"/>
  521. <script type="javascript" ev:event="xforms-value-changed">
  522. <![CDATA[
  523. //H-건진일, C-청구일, I-입금일
  524. var condflag = grd_cmpylst.valueMatrix(grd_cmpylst.row, grd_cmpylst.colRef("condflag"));
  525. if(condflag == "H"){
  526. return;
  527. }
  528. var chk = "";
  529. if(grd_cmpydetllst.col == grd_cmpydetllst.colRef("sel")){
  530. chk = grd_cmpydetllst.valueMatrix(grd_cmpydetllst.row, grd_cmpydetllst.colRef("sel"));
  531. if(chk == "Y"){
  532. model.setValue("/root/main/cmpydetllst/item[" + grd_cmpydetllst.row + "]/incomeamt", model.getValue("/root/main/cmpydetllst/item[" + grd_cmpydetllst.row + "]/cmpyamt"));
  533. }else if(chk == "N"){
  534. model.setValue("/root/main/cmpydetllst/item[" + grd_cmpydetllst.row + "]/incomeamt", 0);
  535. }
  536. }
  537. fSetRcptSum(); //총계 및 입금대상금액 설정
  538. ]]>
  539. </script>
  540. <script type="javascript" ev:event="xforms-select">
  541. <![CDATA[
  542. var condflag = grd_cmpylst.valueMatrix(grd_cmpylst.row, grd_cmpylst.colRef("condflag"));
  543. if(condflag == "H"){
  544. return;
  545. }
  546. var chk = "";
  547. if(grd_cmpydetllst.row == 0 && grd_cmpydetllst. fixedcellischeck(grd_cmpydetllst.row, grd_cmpydetllst.colRef("sel"))){
  548. for(var i=1; i<grd_cmpydetllst.rows; i++){
  549. chk = grd_cmpydetllst.valueMatrix(i, grd_cmpydetllst.colRef("sel"));
  550. if(chk == "Y"){
  551. model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", model.getValue("/root/main/cmpydetllst/item[" + i + "]/cmpyamt"));
  552. }else if(chk == "N"){
  553. model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", 0);
  554. }
  555. }
  556. fSetRcptSum(); //총계 및 입금대상금액 설정
  557. }
  558. ]]>
  559. </script>
  560. <script type="javascript" ev:event="xforms-deselect">
  561. <![CDATA[
  562. var condflag = grd_cmpylst.valueMatrix(grd_cmpylst.row, grd_cmpylst.colRef("condflag"));
  563. if(condflag == "H"){
  564. return;
  565. }
  566. var chk = "";
  567. if(grd_cmpydetllst.row == 0 && grd_cmpydetllst. fixedcellischeck(grd_cmpydetllst.row, grd_cmpydetllst.colRef("sel")) == false){
  568. for(var i=1; i<grd_cmpydetllst.rows; i++){
  569. chk = grd_cmpydetllst.valueMatrix(i, grd_cmpydetllst.colRef("sel"));
  570. if(chk == "Y"){
  571. model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", model.getValue("/root/main/cmpydetllst/item[" + i + "]/cmpyamt"));
  572. }else if(chk == "N"){
  573. model.setValue("/root/main/cmpydetllst/item[" + i + "]/incomeamt", 0);
  574. }
  575. }
  576. fSetRcptSum(); //총계 및 입금대상금액 설정
  577. }
  578. ]]>
  579. </script>
  580. <script type="javascript" ev:event="onbeforesort">
  581. <![CDATA[
  582. grd_cmpydetllst.subtotal("clear", 0, 12)
  583. ]]>
  584. </script>
  585. <script type="javascript" ev:event="onaftersort">
  586. <![CDATA[
  587. fSetRcptSum(); //총계 및 입금대상금액 설정
  588. grd_cmpydetllst.gridToInstance();
  589. ]]>
  590. </script>
  591. </datagrid>
  592. <line id="line1" class="line_1" style="x1:0px; y1:22px; x2:1190px; y2:22px; "/>
  593. <caption id="caption9" class="tit_2" style="left:5px; top:5px; width:108px; height:15px; ">청구내역</caption>
  594. </case>
  595. <case id="case2">
  596. <datagrid id="grd_incm" nodeset="/root/main/cmpydetllst/incmlst" caption="선택^입금일^현금/카드^입금액^할인액^대체액^입금상태^청구처코드^비고사항^은행코드^입력자^입력일^입금구분^청구번호^입금번호^할부개월^승인일자^승인구분^승인시간^승인번호^카드회사^카드번호^유효일자^Van사^입력구분" colsep="^" colwidth="40, 80, 100, 100, 100, 100, 100, 100, 155, 84, 90, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:25px; width:1190px; height:330px; ">
  597. <col checkvalue="Y,N" ref="sel" type="radio"/>
  598. <col ref="incomedd" format="yyyy-mm-dd" style="text-align:center; "/>
  599. <col disabled="true" ref="cashcardflag" type="combo" style="text-align:center; ">
  600. <choices>
  601. <item>
  602. <label>카드</label>
  603. <value>R</value>
  604. </item>
  605. <item>
  606. <label>현금영수증</label>
  607. <value>S</value>
  608. </item>
  609. <item>
  610. <label>현금</label>
  611. <value>C</value>
  612. </item>
  613. </choices>
  614. </col>
  615. <col ref="incomeamt" format="(-,+)#,###" style="text-align:right; "/>
  616. <col ref="discamt" format="(-,+)#,###" style="text-align:right; "/>
  617. <col ref="chngamt" format="(-,+)#,###" style="text-align:right; "/>
  618. <col ref="incomestat" visibility="hidden" style="text-align:center; "/>
  619. <col ref="clamtrgtcd" visibility="hidden" style="text-align:center; "/>
  620. <col ref="remfact" style="text-align:left; "/>
  621. <col ref="bankid" visibility="hidden" style="text-align:right; "/>
  622. <col ref="lastupdtrid" format="yyyy-mm-dd" style="text-align:center; "/>
  623. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  624. <col ref="incomeflag" visibility="hidden"/>
  625. <col ref="clamseqno" visibility="hidden"/>
  626. <col ref="incomeseqno" visibility="hidden"/>
  627. <col ref="allotmm" visibility="hidden"/>
  628. <col ref="aprvdd" visibility="hidden"/>
  629. <col ref="aprvflag" visibility="hidden"/>
  630. <col ref="aprvtm" visibility="hidden"/>
  631. <col ref="aprvno" visibility="hidden"/>
  632. <col ref="cardcmpycd" visibility="hidden"/>
  633. <col ref="cardcashno" visibility="hidden"/>
  634. <col ref="valiterm" visibility="hidden"/>
  635. <col ref="vangb" visibility="hidden"/>
  636. <col ref="keyinptflag" visibility="hidden"/>
  637. <script type="javascript" ev:event="onclick">
  638. <![CDATA[
  639. if(grd_incm.isCell(event.target) && grd_incm.mouseRow >= grd_incm.fixedrows){
  640. for(var i=1; i<grd_incm.rows; i++){
  641. model.setValue("/root/main/cmpydetllst/incmlst[" + i + "]/sel", "N");
  642. }
  643. model.setValue("/root/main/cmpydetllst/incmlst[" + grd_incm.row + "]/sel", "Y");
  644. model.refresh();
  645. }
  646. ]]>
  647. </script>
  648. </datagrid>
  649. <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:108px; height:14px; ">입금내역</caption>
  650. <line id="line12" class="line_1" x0="5px" style="x1:0px; y1:22px; x2:1190px; y2:22px; "/>
  651. <button id="button2" class="btn5_letter4" style="left:1126px; top:3px; width:64px; height:19px; ">
  652. <caption>승인취소</caption>
  653. <script type="javascript" ev:event="DOMActivate">
  654. <![CDATA[
  655. model.resetInstanceNode("/root/sendincm");
  656. var cashcardflag = grd_incm.valueMatrix(grd_incm.row , grd_incm.colRef("cashcardflag"));
  657. if(cashcardflag=="R"){
  658. if(!fCardReceipt("D")){
  659. return;
  660. }
  661. }else if(cashcardflag=="S"){
  662. if(!fCashReceipt("D")){
  663. return;
  664. }
  665. }
  666. /* 2017/10/20 카드 및 현금영수증 일원화작업
  667. var idx = grd_incm.row;
  668. var cashcardflag = grd_incm.valueMatrix(idx , grd_incm.colRef("cashcardflag"));
  669. var vangb = grd_incm.valueMatrix(idx , grd_incm.colRef("vangb"));
  670. var gPid = "3134314"; //기관미수 환자
  671. var keyinptflag = grd_incm.valueMatrix(idx , grd_incm.colRef("keyinptflag"));
  672. var sdata10 = "";
  673. var sdata11 = "";
  674. var cardcashno = grd_incm.valueMatrix(idx , grd_incm.colRef("cardcashno"));
  675. var valiterm = grd_incm.valueMatrix(idx , grd_incm.colRef("valiterm"));
  676. var allotmm = grd_incm.valueMatrix(idx , grd_incm.colRef("allotmm"));
  677. var aprvflag = grd_incm.valueMatrix(idx , grd_incm.colRef("aprvflag"));
  678. var depoAmt = grd_incm.valueMatrix(idx , grd_incm.colRef("incomeamt"));
  679. //R-카드, S-현금영수증, C-현금
  680. if("R" == cashcardflag){
  681. //승인 취소 내역 존재 체크
  682. if(aprvflag == "11" || aprvflag == "12"){
  683. if(keyinptflag == "S"){
  684. sdata10 = cardcashno;
  685. sdata11 = cardcashno.split('=');
  686. sdata11 = sdata11[0];
  687. }else{
  688. sdata10 = "";
  689. sdata11 = cardcashno;
  690. }
  691. fAppCardVanData(vangb //data1 //vangb van사구분
  692. ,"21" //data2 //ordergb 거래구분
  693. ,getCurrentDate() //data3 //mdate 회계일자
  694. ,gPid //data4 //pano 등록번호
  695. ,"H" //data5 //iogb 입외구분
  696. ,"" //data6 //deptcode 진료과코드
  697. ,"" //data7 //diagdate 진료일자
  698. ,model.getValue("/root/init/session/userid") //data8 //clientid 수납자
  699. ,keyinptflag //data9 //entrymode 입력구분
  700. ,sdata10 //data10 //track2data 트랙data
  701. ,sdata11 //data11 //cardnumber 카드번호
  702. ,valiterm //data12 //cardperiod 유효기간/자격확인구분(valiterm/qualcnfmflag)
  703. ,allotmm //data13 //carddivide 할부개월수/개인법인구분(allotmm/indinstflag)
  704. ,depoAmt //data14 //netamt 금액
  705. ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvdd")) //data15 //oldappdate 원거래승인일자(취소시)
  706. ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvtm")) //data16 //oldapptime 원거래승인시간(취소시)
  707. ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvno")) //data17 //oldappno 원거래승인번호(취소시)
  708. );
  709. if(model.getValue("/root/tmp/appvanif/replystat") != "0000" ){
  710. messageBox("카드승인취소실패 => "+ model.getValue("/root/tmp/appvanif/cardname") ,"E999","");
  711. return;
  712. }else{
  713. copyNodesetType("/root/sendincm/cardcash" , "/root/tmp/appvanif", "replace");
  714. model.makeValue("/root/sendincm/cardcash/vangb" , vangb);
  715. model.makeValue("/root/sendincm/cardcash/incomeamt" , depoAmt);
  716. model.makeValue("/root/sendincm/cardcash/keyinptflag" , keyinptflag);
  717. model.makeValue("/root/sendincm/cardcash/valiterm" , valiterm);
  718. model.makeValue("/root/sendincm/cardcash/allotmm" , allotmm);
  719. if(keyinptflag == "S"){
  720. model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata10);
  721. }else{
  722. model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata11);
  723. }
  724. //전자서명 처리
  725. var parm = gPid + "▦" + //PID
  726. grd_incm.valueMatrix(idx , grd_incm.colRef("incomeamt")) + "▦" + //수납대상금액
  727. "22" + "▦" + //승인구분
  728. model.getValue("/root/tmp/appvanif/approvaldate") + "▦" + //승인일자
  729. model.getValue("/root/tmp/appvanif/approvaltime") + "▦" + //승인시간
  730. model.getValue("/root/tmp/appvanif/approvalno") + "▦" + //승인번호
  731. model.getValue("/root/init/session/posinstcd") + "▦"; //기관코드
  732. setParameter("SPPAO02101_PARM", parm);
  733. modal("../../../pam/pamcomnweb/xrw/SPPAO02101", "1","400", "400", "SPPAO02101", "", "");
  734. }
  735. }else{
  736. messageBox("선택된 입금내역은 이미 카드 취소가 완료된 내역", "I009");
  737. return;
  738. }
  739. }else if("S" == cashcardflag){
  740. //승인 취소 내역 존재 체크
  741. if(aprvflag == "41" || aprvflag == "42"){
  742. if(keyinptflag == "S"){
  743. sdata10 = cardcashno;
  744. sdata11 = cardcashno.split('=');
  745. sdata11 = sdata11[0];
  746. }else{
  747. var sdata10 = "";
  748. var sdata11 = cardcashno;
  749. }
  750. fAppCardVanData(vangb //data1 //vangb van사구분
  751. ,"51" //data2 //ordergb 거래구분
  752. ,getCurrentDate() //data3 //mdate 회계일자
  753. ,gPid //data4 //pano 등록번호
  754. ,"H" //data5 //iogb 입외구분
  755. ,"" //data6 //deptcode 진료과코드
  756. ,"" //data7 //diagdate 진료일자
  757. ,model.getValue("/root/init/session/userid") //data8 //clientid 수납자
  758. ,keyinptflag //data9 //entrymode 입력구분
  759. ,sdata10 //data10 //track2data 트랙data
  760. ,sdata11 //data11 //qualcnfmno 자격확인번호
  761. ,valiterm //data12 //cardperiod 유효기간/자격확인구분(valiterm/qualcnfmflag)
  762. ,allotmm //data13 //carddivide 할부개월수/개인법인구분(allotmm/indinstflag)
  763. ,depoAmt //data14 //netamt 금액
  764. ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvdd")) //data15 //oldappdate 원거래승인일자(취소시)
  765. ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvtm")) //data16 //oldapptime 원거래승인시간(취소시)
  766. ,grd_incm.valueMatrix(idx , grd_incm.colRef("aprvno")) //data17 //oldappno 원거래승인번호(취소시)
  767. );
  768. if (model.getValue("/root/tmp/appvanif/replystat") != "0000" ) {
  769. messageBox("현금영수증승인실패 => "+ model.getValue("/root/send/updatedata/bogj/bogj_cardno") ,"E999","");
  770. return;
  771. }else{
  772. copyNodesetType("/root/sendincm/cardcash" , "/root/tmp/appvanif", "replace");
  773. model.makeValue("/root/sendincm/cardcash/vangb" , vangb);
  774. model.makeValue("/root/sendincm/cardcash/incomeamt" , depoAmt);
  775. model.makeValue("/root/sendincm/cardcash/keyinptflag" , keyinptflag);
  776. model.makeValue("/root/sendincm/cardcash/valiterm" , valiterm);
  777. model.makeValue("/root/sendincm/cardcash/allotmm" , allotmm);
  778. if(keyinptflag == "S"){
  779. model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata10);
  780. }else{
  781. model.makeValue("/root/sendincm/cardcash/cardcashno" , sdata11);
  782. }
  783. }
  784. }else{
  785. messageBox("선택된 입금내역은 이미 현금영수증 취소가 완료된 내역", "I009");
  786. return;
  787. }
  788. }else if("C" == cashcardflag){
  789. return;
  790. }
  791. */
  792. grd_cmpylst.clearStatus();
  793. grd_cmpylst.addStatus(grd_cmpylst.row, "update");
  794. model.makeValue("/root/sendincm/clam", getGridUpdateData(grd_cmpylst));
  795. model.setValue("/root/sendincm/cashcardflag", cashcardflag);
  796. if(submit("TXAHA02903")){
  797. btn_srchtrgtman.dispatch("DOMActivate");
  798. }
  799. ]]>
  800. </script>
  801. </button>
  802. </case>
  803. </switch>
  804. <button id="btn_clam" class="btn_sw" group="sub_tab" selected="true" style="left:0px; top:269px; width:70px; height:22px; ">
  805. <caption>청구내역</caption>
  806. <script type="javascript" ev:event="DOMActivate">
  807. <![CDATA[
  808. model.toggle("case1");
  809. ]]>
  810. </script>
  811. </button>
  812. <button id="btn_incm" class="btn_sw" group="sub_tab" style="left:70px; top:269px; width:70px; height:22px; ">
  813. <caption>입금내역</caption>
  814. <script type="javascript" ev:event="DOMActivate">
  815. <![CDATA[
  816. model.toggle("case2");
  817. ]]>
  818. </script>
  819. </button>
  820. <button id="btn_cmpyexcel" class="btn6_letter10" style="left:1013px; top:66px; width:156px; height:22px; ">
  821. <caption>계약처내역 엑셀저장</caption>
  822. <script type="javascript" ev:event="DOMActivate">
  823. <![CDATA[
  824. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  825. if(fileName != "") grd_cmpylst.saveExcel(fileName, "SheetName", false, false, "", "", false);
  826. ]]>
  827. </script>
  828. </button>
  829. <select id="checkbox1" ref="/root/send/srchinfo/clamend" overflow="visible" appearance="full" style="left:925px; top:34px; width:120px; height:20px; border-style:none; ">
  830. <choices>
  831. <item>
  832. <label>입금완료건 포함</label>
  833. <value>Y</value>
  834. </item>
  835. </choices>
  836. </select>
  837. <button id="btn_detlexcel" class="btn6_letter9" style="left:1024px; top:266px; width:140px; height:22px; ">
  838. <caption>상세내역 엑셀저장</caption>
  839. <script type="javascript" ev:event="DOMActivate">
  840. <![CDATA[
  841. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  842. if(fileName != "") grd_cmpydetllst.saveExcel(fileName, "SheetName", false, false, "", "", false);
  843. ]]>
  844. </script>
  845. </button>
  846. <group id="group5" style="left:0px; top:655px; width:1195px; height:80px; ">
  847. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  848. <caption id="caption10" class="tit_2" style="left:5px; top:10px; width:162px; height:14px; ">입금정보</caption>
  849. <output id="output3" ref="/root/send/cardcashdata/aprv/depoAmt" class="output_fix" format="(-,+)#,###" appearance="output" style="left:88px; top:32px; width:122px; height:19px; text-align:right; "/>
  850. <line id="line27" class="line_2" style="x1:0px; y1:53px; x2:1194px; y2:53px; "/>
  851. <caption id="caption14" class="cell_1" style="left:0px; top:30px; width:85px; height:23px; vertical-align:middle; ">입금대상금액</caption>
  852. <caption id="caption15" class="cell_1" style="left:215px; top:31px; width:60px; height:23px; vertical-align:middle; ">수납방법</caption>
  853. <caption id="caption16" class="cell_1" style="left:695px; top:30px; width:89px; height:23px; vertical-align:middle; ">카드/현금 번호</caption>
  854. <caption id="caption17" class="cell_1" style="left:455px; top:30px; width:65px; height:23px; vertical-align:middle; ">개인/법인</caption>
  855. <caption id="caption18" class="cell_1" style="left:920px; top:30px; width:90px; height:23px; vertical-align:middle; ">유효기간/힐부</caption>
  856. <caption id="caption20" style="left:1067px; top:32px; width:51px; height:20px; ">(YYMM)</caption>
  857. <caption id="caption21" style="left:1160px; top:32px; width:31px; height:20px; ">(NN)</caption>
  858. <input id="ipt_cardno" ref="/root/send/cardcashdata/aprv/cardcashno" navindex="10" style="left:788px; top:31px; width:127px; height:19px; ">
  859. <script type="javascript" ev:event="onkeypress">
  860. <![CDATA[
  861. if (event.keyCode == "13"){
  862. //R-카드, S-현금영수증, C-현금
  863. if(rdo_cashcardflag.value == "R"){
  864. fAfterChangeCardNo();
  865. }else if(rdo_cashcardflag.value == "S"){
  866. fAfterChangeCashNo();
  867. }
  868. }
  869. ]]>
  870. </script>
  871. </input>
  872. <select1 id="rdo_cashcardflag" ref="/root/send/cardcashdata/aprv/cashcardflag" appearance="full" cols="3" overflow="visible" style="left:280px; top:34px; width:172px; height:20px; border-style:none; ">
  873. <choices>
  874. <item>
  875. <label>카드</label>
  876. <value>R</value>
  877. </item>
  878. <item>
  879. <label>현금영수증</label>
  880. <value>S</value>
  881. </item>
  882. <item>
  883. <label>현금</label>
  884. <value>C</value>
  885. </item>
  886. </choices>
  887. <script type="javascript" ev:event="xforms-value-changed">
  888. <![CDATA[
  889. //R-카드, S-현금영수증, C-현금
  890. if(rdo_cashcardflag.value == "R"){
  891. model.setValue("/root/send/cardcashdata/aprv/indinstflag" ,"00"); //00-개인, 01-법인
  892. model.setValue("/root/send/cardcashdata/aprv/cardcashno" ,"");
  893. model.setValue("/root/send/cardcashdata/aprv/valiterm" ,"");
  894. model.setValue("/root/send/cardcashdata/aprv/allotmm" ,"");
  895. model.setValue("/root/send/cardcashdata/aprv/keyinptflag" ,"S");
  896. model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" ,"");
  897. cmb_qualcnfmflag.disabled = true;
  898. ipt_cardno.disabled = false;
  899. ipt_valiterm.disabled = false;
  900. ipt_allotmm.disabled = false;
  901. }else if(rdo_cashcardflag.value == "S"){
  902. var cmpyno = model.getValue("/root/main/cmpylst/item[" + grd_cmpylst.row + "]/cmpyno");
  903. model.setValue("/root/send/cardcashdata/aprv/indinstflag" ,"01"); //00-개인, 01-법인
  904. model.setValue("/root/send/cardcashdata/aprv/cardcashno" ,cmpyno);
  905. model.setValue("/root/send/cardcashdata/aprv/valiterm" ,"");
  906. model.setValue("/root/send/cardcashdata/aprv/allotmm" ,"");
  907. model.setValue("/root/send/cardcashdata/aprv/keyinptflag" ,"K");
  908. model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" ,"4");
  909. cmb_qualcnfmflag.disabled = false;
  910. ipt_cardno.disabled = false;
  911. ipt_valiterm.disabled = true;
  912. ipt_allotmm.disabled = true;
  913. }else if(rdo_cashcardflag.value == "C"){
  914. model.setValue("/root/send/cardcashdata/aprv/indinstflag" ,"00"); //00-개인, 01-법인
  915. model.setValue("/root/send/cardcashdata/aprv/cardcashno" ,"");
  916. model.setValue("/root/send/cardcashdata/aprv/valiterm" ,"");
  917. model.setValue("/root/send/cardcashdata/aprv/allotmm" ,"");
  918. model.setValue("/root/send/cardcashdata/aprv/keyinptflag" ,"K");
  919. model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" ,"");
  920. cmb_qualcnfmflag.disabled = true;
  921. ipt_cardno.disabled = true;
  922. ipt_valiterm.disabled = true;
  923. ipt_allotmm.disabled = true;
  924. }
  925. model.refresh();
  926. ]]>
  927. </script>
  928. </select1>
  929. <select1 id="rdo_indyn" ref="/root/send/cardcashdata/aprv/indinstflag" appearance="full" cols="3" overflow="visible" style="left:523px; top:34px; width:87px; height:20px; border-style:none; ">
  930. <choices>
  931. <item>
  932. <label>개인</label>
  933. <value>00</value>
  934. </item>
  935. <item>
  936. <label>법인</label>
  937. <value>01</value>
  938. </item>
  939. </choices>
  940. <script type="javascript" ev:event="xforms-value-changed">
  941. <![CDATA[
  942. var cashcardflag = model.getValue("/root/send/cardcashdata/aprv/cashcardflag");
  943. if(cashcardflag == 'R'){
  944. model.setValue("/root/send/cardcashdata/aprv/cardcashno", "");
  945. }else if(cashcardflag == 'S'){
  946. if(model.getValue("/root/send/cardcashdata/aprv/indinstflag")=='00'){
  947. model.setValue("/root/send/cardcashdata/aprv/cardcashno", "");
  948. model.setValue("/root/send/cardcashdata/aprv/keyinptflag", "K");
  949. model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag", "1");
  950. }else if(model.getValue("/root/send/cardcashdata/aprv/indinstflag")=='01'){
  951. model.setValue("/root/send/cardcashdata/aprv/cardcashno", model.getValue("/root/main/cmpylst/item[" + grd_cmpylst.row + "]/cmpyno"));
  952. model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag", "4");
  953. }
  954. }
  955. model.refresh();
  956. ]]>
  957. </script>
  958. </select1>
  959. <input id="ipt_allotmm" ref="/root/send/cardcashdata/aprv/allotmm" navindex="12" maxlength="2" style="left:1125px; top:32px; width:34px; height:19px; "/>
  960. <input id="ipt_valiterm" ref="/root/send/cardcashdata/aprv/valiterm" navindex="11" maxlength="4" style="left:1016px; top:32px; width:49px; height:19px; "/>
  961. <button id="button8" class="btn2_letter5" style="left:615px; top:32px; width:75px; height:19px; ">
  962. <caption>국세청코드</caption>
  963. <script type="javascript" ev:event="DOMActivate">
  964. <![CDATA[
  965. model.setValue("/root/send/cardcashdata/aprv/cashcardflag" , "S"); //현금영수증
  966. rdo_cashcardflag.dispatch("xforms-value-changed");
  967. model.setValue("/root/send/cardcashdata/aprv/indinstflag" , "01"); //법인
  968. model.setValue("/root/send/cardcashdata/aprv/cardcashno" , "0100001234"); //차후 공통코드에 내용으로 대체
  969. model.setValue("/root/send/cardcashdata/aprv/keyinptflag" , "K");
  970. model.setValue("/root/send/cardcashdata/aprv/qualcnfmflag" , "4"); //사업자번호
  971. model.refresh();
  972. ]]>
  973. </script>
  974. </button>
  975. <caption id="caption11" class="cell_1" style="left:215px; top:55px; width:85px; height:19px; text-align:center; vertical-align:middle; ">자격확인구분</caption>
  976. <select1 id="cmb_qualcnfmflag" ref="/root/send/cardcashdata/aprv/qualcnfmflag" appearance="minimal" style="left:302px; top:54px; width:150px; height:19px; ">
  977. <choices>
  978. <itemset nodeset="/root/init/baseinfo/P0073">
  979. <label ref="cdnm"/>
  980. <value ref="cdid"/>
  981. </itemset>
  982. </choices>
  983. </select1>
  984. <caption id="caption12" class="cell_1" style="left:0px; top:55px; width:85px; height:19px; text-align:center; vertical-align:middle; ">입력구분</caption>
  985. <select1 id="rdo_keyinptflag" ref="/root/send/cardcashdata/aprv/keyinptflag" navindex="16" appearance="full" cellspacing="7" cols="2" overflow="visible" style="left:88px; top:54px; width:122px; height:20px; border-style:none; ">
  986. <choices>
  987. <item>
  988. <label>Swipe</label>
  989. <value>S</value>
  990. </item>
  991. <item>
  992. <label>Key in</label>
  993. <value>K</value>
  994. </item>
  995. </choices>
  996. </select1>
  997. <line id="line16" class="line_3" style="x1:0px; y1:75px; x2:1194px; y2:75px; "/>
  998. </group>
  999. </xhtml:body>
  1000. </xhtml:html>