SMPAE00200_KU일일마감관리.xrw 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. SMPAE00101_KU일일마감관리.xrw
  4. 2013.07.30 / 최초작성 / 서원식
  5. -->
  6. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  7. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  8. <xhtml:head>
  9. <xhtml:title>일일마감관리</xhtml:title>
  10. <model id="model1">
  11. <instance id="instance1">
  12. <root xmlns="">
  13. <main>
  14. <endinfo>
  15. <endinfolist>
  16. <cashamt/>
  17. <cardamt/>
  18. <onlineamt/>
  19. <uncoamt/>
  20. <ocashamt/>
  21. <ocardamt/>
  22. <oonlineamt/>
  23. <icashamt/>
  24. <icardamt/>
  25. <ionlineamt/>
  26. <bogjdcashamt/>
  27. <bogjdcardamt/>
  28. <bogjdonlineamt/>
  29. <bogjdreplamt/>
  30. <bogjrcashamt/>
  31. <bogjrcardamt/>
  32. <bogjronlineamt/>
  33. <bogjrreplamt/>
  34. <bldcuamt/>
  35. <bloddiscamt/>
  36. <carduamt/>
  37. <carddcamt/>
  38. <heallifeamtclamamt/>
  39. <heallifeuamt/>
  40. <pregdmndamt/>
  41. <preguamt/>
  42. <clamuamt/>
  43. <clamnamt/>
  44. <cvapuamt/>
  45. <cmpyuamt/>
  46. <cmpycashamt/>
  47. <cmpycardamt/>
  48. <cmpyonlineamt/>
  49. <insuuamt/>
  50. <insuonlineamt/>
  51. <uncouamt/>
  52. <uncocashamt/>
  53. <uncocardamt/>
  54. <uncoonlineamt/>
  55. <uncodebtamt/>
  56. <uncoaprvamt/>
  57. <ptuncashamt/>
  58. <ptuncardamt/>
  59. <ptunonlineamt/>
  60. <kpamamt/>
  61. <kpamdamt/>
  62. <taxamt/>
  63. <discamt/>
  64. <reduamt/>
  65. <aprv3/>
  66. <aprv4/>
  67. </endinfolist>
  68. <rcptmagmlist/>
  69. <cntlist>
  70. <cntinfo/>
  71. </cntlist>
  72. <errlist>
  73. <errinfo/>
  74. <rcptrid/>
  75. <worktype/>
  76. </errlist>
  77. </endinfo>
  78. </main>
  79. <send>
  80. <search>
  81. <enddd/>
  82. <endid/>
  83. <pamid/>
  84. <worktype/>
  85. <rcpttype/>
  86. <gubun/>
  87. <acpttype/>
  88. <remark/>
  89. <hiflag/>
  90. <rcptposcd/>
  91. </search>
  92. <memo>
  93. <enddd/>
  94. <jobflag/>
  95. <magmtype>H</magmtype>
  96. <memo/>
  97. </memo>
  98. </send>
  99. <init>
  100. <rcptrinfo/>
  101. <worktypelist/>
  102. </init>
  103. <hidden>
  104. <stafflist>
  105. <staffinfo/>
  106. </stafflist>
  107. <suminfo/>
  108. <errinfo>
  109. <rcptrid/>
  110. <worktype/>
  111. </errinfo>
  112. <cntinfo>
  113. <rcptcnt/>
  114. <errcnt/>
  115. <magmcnt/>
  116. <aprvcnt/>
  117. <magmrcptcnt/>
  118. </cntinfo>
  119. <memoinfo>
  120. <memo/>
  121. </memoinfo>
  122. <rcptposlist>
  123. <rcptposinfo>
  124. <cd/>
  125. <nm/>
  126. </rcptposinfo>
  127. </rcptposlist>
  128. </hidden>
  129. <temp>
  130. <endinfo>
  131. <endinfolist/>
  132. </endinfo>
  133. </temp>
  134. <rex/>
  135. </root>
  136. </instance>
  137. <submission id="TRPAO00000" mediatype="application/x-www-form-urlencoded" method="post"/>
  138. <submission id="TRPAE00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/rex/prtinfo"/>
  139. <submission id="TRPAE00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/hidden/suminfo"/>
  140. <submission id="TRPAE00109" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden/stafflist/staffinfo"/>
  141. <submission id="TRPAE00116" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/memo" resultref="/root/hidden/memoinfo"/>
  142. <submission id="TXPAE00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
  143. <submission id="TXPAE00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/memo" resultref="/root/hidden/memoinfo"/>
  144. <submission id="TRPAE00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/endinfo"/>
  145. <submission id="TXPAE00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/temp"/>
  146. </model>
  147. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  148. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  149. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  150. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  151. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  152. <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
  153. <script type="javascript" ev:event="xforms-ready">
  154. <![CDATA[
  155. btn_xlserr.attribute("top") = "245";
  156. var enddd = getCurrentDate().toDate().getAddDate(-1).getDateFormat();
  157. model.setValue("/root/send/search/enddd", enddd);
  158. ipt_enddd.refresh();
  159. fGetStaffKind();
  160. cap_aprv3nm.value = APRV3_NM;
  161. cap_aprv4nm.value = APRV4_NM;
  162. // 부서장 결재 및 결재 취소 버튼 Visible 설정
  163. if (STAFFKIND != "") {
  164. btn_compare.visible = true;
  165. btn_prtmagm.visible = true;
  166. btn_prtlist.visible = true;
  167. btn_aprv2.visible = true;
  168. btn_aprv2_cncl.visible = true;
  169. if (STAFFKIND == "3") {
  170. btn_aprv3.disabled = false;
  171. btn_aprv3_cncl.disabled = false;
  172. } else if (STAFFKIND == "4" || STAFFKIND == "A") {
  173. btn_aprv3.disabled = false;
  174. btn_aprv3_cncl.disabled = false;
  175. btn_aprv4.disabled = false;
  176. btn_aprv4_cncl.disabled = false;
  177. }
  178. }
  179. addComboItem("cmb_rcptrid", "전체", "all", "above");
  180. addComboItem("cmb_worktype", "전체", "all", "above");
  181. btn_search.dispatch("DOMActivate");
  182. ]]>
  183. </script>
  184. <script type="javascript">
  185. <![CDATA[
  186. var STAFFKIND = "";
  187. var APRV3_NM = "";
  188. var APRV4_NM = "";
  189. function fSetEndAcpt(enddd, endid, gubun, aprvstat, aprvstr) {
  190. var acpttype = "";
  191. if (aprvstat == "" || aprvstat == "미결") {
  192. acpttype = "aprv";
  193. if (messageBox(aprvstr + "를 하시겠습니까?", "Q000", "") != 6 ) {
  194. return false;
  195. }
  196. } else {
  197. acpttype = "cncl";
  198. if (messageBox(aprvstr + "를 취소 하시겠습니까?", "Q000", "") != 6 ) {
  199. return false;
  200. }
  201. }
  202. model.setValue("/root/send/search/enddd" , enddd);
  203. model.setValue("/root/send/search/endid" , endid);
  204. model.setValue("/root/send/search/gubun" , gubun);
  205. model.setValue("/root/send/search/acpttype" , acpttype);
  206. if (submit("TXPAE00102")) {
  207. btn_search.dispatch("DOMActivate");
  208. }
  209. }
  210. function fSetEndTotAcpt(gubun, acpttype){
  211. var enddd = grd_rcptlist.valueMatrix(1, grd_rcptlist.colRef("rcptexecdd"));
  212. if(acpttype == "aprv"){
  213. if(messageBox("결재 하시겠습니까?", "Q000", "") != 6 ){
  214. return false;
  215. }
  216. }else if(acpttype == "cncl"){
  217. if(messageBox("결재를 취소 하시겠습니까?", "Q000", "") != 6 ){
  218. return false;
  219. }
  220. }
  221. model.setValue("/root/send/search/enddd", enddd);
  222. model.setValue("/root/send/search/gubun", gubun);
  223. model.setValue("/root/send/search/acpttype", acpttype);
  224. if(submit("TXPAE00201")){
  225. btn_search.dispatch("DOMActivate");
  226. }
  227. }
  228. /*
  229. * 총계를 생성
  230. */
  231. function fSetDetAmtSum(){
  232. grd_rcptlist.subtotalPosition = "below";
  233. grd_rcptlist.subtotal("clear", 0, 0, "", "", 0, "");
  234. for(var i=0; i < grd_rcptlist.cols; i++){
  235. if(i >=grd_rcptlist.colRef("cashamt") && i<=grd_rcptlist.colRef("onlineamt")){
  236. grd_rcptlist.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:right", 0, "총계" );
  237. }
  238. }
  239. }
  240. /*
  241. * 수납내역 상세조회
  242. */
  243. function fGetRcptdetinfo(grdtype){
  244. var worktype = "";
  245. var rcpttype = "";
  246. if(grdtype == "grd_rcptlist"){
  247. worktype = "all";
  248. rcpttype = grd_rcptlist.colAttribute(grd_rcptlist.col, "ref");
  249. }else{
  250. if(grd_endlist.colAttribute(grd_endlist.col, "ref") == "execnt"){
  251. worktype = grd_endlist.valueMatrix(grd_endlist.row, grd_endlist.colRef("worktype"));
  252. rcpttype = "all";
  253. }else{
  254. worktype = grd_endlist.valueMatrix(grd_endlist.row, grd_endlist.colRef("worktype"));
  255. rcpttype = grd_endlist.colAttribute(grd_endlist.col, "ref");
  256. }
  257. }
  258. model.setValue("/root/send/search/worktype", worktype);
  259. model.setValue("/root/send/search/rcpttype", rcpttype);
  260. if(submit("TRPAE00102")){
  261. fSetDetAmtSum(); //총계를 생성
  262. model.toggle("case2");
  263. button2.selected = true;
  264. }
  265. }
  266. /*
  267. * 오류내역 조회
  268. */
  269. function fGetErrinfo(){
  270. var worktype = grd_endlist.valueMatrix(grd_endlist.row, grd_endlist.colRef("worktype"));
  271. model.setValue("/root/send/search/worktype", worktype);
  272. submit("TRPAE00103");
  273. }
  274. function fGetStaffKind() {
  275. submit("TRPAE00109", false);
  276. var cnt = instance1.selectNodes("/root/hidden/stafflist/staffinfo").length;
  277. for (var i = 1; i <= cnt; i++) {
  278. var stid = model.getValue("/root/hidden/stafflist/staffinfo[" + i + "]/staffid");
  279. var stkind = model.getValue("/root/hidden/stafflist/staffinfo[" + i + "]/staffkind");
  280. if (stid == getUserId()) {
  281. STAFFKIND = stkind;
  282. } else if (stid == "nm") {
  283. if (stkind == "3") {
  284. APRV3_NM = model.getValue("/root/hidden/stafflist/staffinfo[" + i + "]/staffnm");
  285. } else if (stkind == "4") {
  286. APRV4_NM = model.getValue("/root/hidden/stafflist/staffinfo[" + i + "]/staffnm");
  287. }
  288. }
  289. }
  290. if (getUserId() == "PAM") {
  291. STAFFKIND = "A";
  292. }
  293. }
  294. function fSetErrControl(show) {
  295. var val = show ? 595 : 0;
  296. grd_rcptlist.attribute("width") = String(1195 - val);
  297. line_magm.attribute("x2") = String(1195 - val);
  298. btn_excsave.attribute("left") = String(1153 - val);
  299. cap_err.visible = show;
  300. line_err.visible = show;
  301. btn_errclose.visible = show;
  302. grd_errlist.visible = show;
  303. btn_xlserr.visible = show;
  304. cmb_rcptrid.visible = show;
  305. cmb_worktype.visible = show;
  306. }
  307. ]]>
  308. </script>
  309. </xhtml:head>
  310. <xhtml:body style="font-size:12pt; text-align:left; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  311. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:163px; height:15px; ">일일 마감관리</caption>
  312. <shape id="roundrect1" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:20px; width:360px; height:40px; "/>
  313. <button id="btn_search" class="btn1_letter2" navindex="15" style="left:285px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  314. <caption>조회</caption>
  315. <script type="javascript" ev:event="DOMActivate">
  316. <![CDATA[
  317. // 메모 조회
  318. model.setValue("/root/send/memo/enddd", model.getValue("/root/send/search/enddd"));
  319. submit("TRPAE00116");
  320. if (instance1.selectNodes("/root/hidden/memoinfo").length < 1) {
  321. model.makeValue("/root/hidden/memoinfo/memo", "");
  322. }
  323. if (model.getValue("/root/hidden/memoinfo/memo") == "") {
  324. btn_memo.visible = true;
  325. } else {
  326. btn_memo.visible = false;
  327. }
  328. img_memo.hint = model.getValue("/root/hidden/memoinfo/memo");
  329. grd_rcptlist.rebuildStyle();
  330. cap_magmcnt.attribute("background-color") = "#ffffff";
  331. cap_magmcnt.attribute("color") = "";
  332. cap_magmcnt.attribute("font-weight") = "";
  333. cap_aprvcnt.attribute("background-color") = "#ffffff";
  334. cap_aprvcnt.attribute("color") = "";
  335. cap_aprvcnt.attribute("font-weight") = "";
  336. cap_magmrcptcnt.attribute("background-color") = "#ffffff";
  337. cap_magmrcptcnt.attribute("font-weight") = "";
  338. fSetErrControl(false);
  339. var path = "/root/main/endinfo/rcptmagmlist";
  340. if (submit("TRPAE00201", false)) {
  341. addComboItem("cmb_rcptrid", "전체", "all", "above");
  342. addComboItem("cmb_worktype", "전체", "all", "above");
  343. model.setValue("/root/hidden/errinfo/rcptrid", "all");
  344. model.setValue("/root/hidden/errinfo/worktype", "all");
  345. model.refresh();
  346. grd_rcptlist.rebuild();
  347. grd_errlist.rebuild();
  348. var cnt_tot = 0;
  349. var cnt_rcpt = 0;
  350. var cnt_magm = 0;
  351. var cnt_aprv = 0;
  352. var cnt_magmrcpt = 0;
  353. var cnt_toterr = 0;
  354. var errflag = "";
  355. var errstr = "";
  356. var cnt = instance1.selectNodes(path).length;
  357. model.removeNode("/root/hidden/rcptposlist");
  358. var posPath = "/root/hidden/rcptposlist/rcptposinfo";
  359. for (var i = 1; i <= cnt; i++) {
  360. var rcptrid = model.getValue(path + "[" + i + "]/rcptrid");
  361. if (rcptrid == "") {
  362. var rcptrnm = model.getValue(path + "[" + i + "]/rcptrnm");
  363. if (rcptrnm == "합계") {
  364. cnt_rcpt = model.getValue(path + "[" + i + "]/rcptcnt");
  365. cnt_aprv = model.getValue(path + "[" + i + "]/aprvcnt");
  366. cnt_toterr = model.getValue(path + "[" + i + "]/errcnt");
  367. grd_rcptlist.rowStyle(i, "all", "background-color") = "#ffffa0";
  368. grd_rcptlist.rowStyle(i, "all", "font-weight") = "bold";
  369. } else if (rcptrnm == "소계") {
  370. grd_rcptlist.rowStyle(i, "all", "background-color") = "#ffffd7";
  371. grd_rcptlist.rowStyle(i, "all", "font-weight") = "bold";
  372. }
  373. var rcptposcd = model.getValue(path + "[" + i + "]/rcptposcd");
  374. if (instance1.selectNodes(posPath + "[cd='" + rcptposcd + "']").length < 1) {
  375. var idx = instance1.selectNodes(posPath).length + 1;
  376. model.makeValue(posPath + "[" + idx + "]/cd", rcptposcd);
  377. model.makeValue(posPath + "[" + idx + "]/nm", model.getValue(path + "[" + i + "]/rcptpos"));
  378. }
  379. continue;
  380. }
  381. cnt_magm++;
  382. cnt_tot++;
  383. // 자동 수납 행 표시
  384. if (model.getValue(path + "[" + i + "]/autoflag") == "Y") {
  385. grd_rcptlist.rowStyle(i, "all", "background-color") = "#f0f0ff";
  386. }
  387. errflag = model.getValue(path + "[" + i + "]/errflag");
  388. errstr = model.getValue(path + "[" + i + "]/errstr");
  389. if (errflag == "M" || errflag == "R") { // 마감 내역 없음 or 마감 후 수납 내역 있음
  390. model.setValue(path + "[" + i + "]/cashamt", errstr);
  391. grd_rcptlist.mergeByFree(i, grd_rcptlist.colRef("cashamt"), i, grd_rcptlist.cols - 1);
  392. grd_rcptlist.cellStyle("font-weight", i, grd_rcptlist.colRef("rcptrnm"), i, grd_rcptlist.cols - 1) = "bold";
  393. grd_rcptlist.cellStyle("text-align", i, grd_rcptlist.colRef("cashamt")) = "left";
  394. grd_rcptlist.cellStyle("padding-left", i, grd_rcptlist.colRef("cashamt")) = "5";
  395. if (errflag == "M") {
  396. cnt_magm--;
  397. grd_rcptlist.cellStyle("background-color", i, grd_rcptlist.colRef("rcptrnm"), i, grd_rcptlist.cols - 1) = "#ffffbe";
  398. grd_rcptlist.cellStyle("color", i, grd_rcptlist.colRef("rcptrnm"), i, grd_rcptlist.cols - 1) = "red";
  399. } else {
  400. cnt_magmrcpt++;
  401. hasCntErr = true;
  402. grd_rcptlist.rowStyle(i, "all", "background-color") = "#ffa0a0";
  403. }
  404. } else if (errflag == "A") { // 미결
  405. model.setValue(path + "[" + i + "]/aprv1", errstr);
  406. grd_rcptlist.cellStyle("background-color", i, grd_rcptlist.colRef("aprv1"), i, grd_rcptlist.colRef("rcptrnm")) = "#ffffbe";
  407. grd_rcptlist.cellStyle("color", i, grd_rcptlist.colRef("aprv1"), i, grd_rcptlist.colRef("rcptrnm")) = "blue";
  408. grd_rcptlist.cellStyle("font-weight", i, grd_rcptlist.colRef("aprv1"), i, grd_rcptlist.colRef("rcptrnm")) = "bold";
  409. grd_rcptlist.cellStyle("text-align", i, grd_rcptlist.colRef("aprv1")) = "center";
  410. }
  411. }
  412. model.setValue("/root/send/search/rcptposcd", "00");
  413. cmb_rcptpos.refresh();
  414. model.setValue("/root/hidden/cntinfo/rcptcnt", cnt_rcpt);
  415. model.setValue("/root/hidden/cntinfo/errcnt", cnt_toterr);
  416. model.setValue("/root/hidden/cntinfo/magmcnt", cnt_magm + " / " + cnt_tot);
  417. model.setValue("/root/hidden/cntinfo/aprvcnt", cnt_aprv + " / " + cnt_tot);
  418. model.setValue("/root/hidden/cntinfo/magmrcptcnt", cnt_magmrcpt + " / " + cnt_tot);
  419. cap_magmcnt.refresh();
  420. cap_aprvcnt.refresh();
  421. cap_magmrcptcnt.refresh();
  422. if (cnt_magm < cnt_tot) {
  423. cap_magmcnt.attribute("color") = "red";
  424. cap_magmcnt.attribute("background-color") = "#ffffbe";
  425. cap_magmcnt.attribute("font-weight") = "bold";
  426. }
  427. if (cnt_aprv < cnt_tot) {
  428. cap_aprvcnt.attribute("color") = "blue";
  429. cap_aprvcnt.attribute("background-color") = "#ffffbe";
  430. cap_aprvcnt.attribute("font-weight") = "bold";
  431. }
  432. if (cnt_magmrcpt > 0) {
  433. cap_magmrcptcnt.attribute("background-color") = "#ffa0a0";
  434. cap_magmrcptcnt.attribute("font-weight") = "bold";
  435. }
  436. if (cnt_magmrcpt > 0) {
  437. messageBox("[ " + cnt_magmrcpt + " ] 건의 마감 후 수납건이 있습니다.", "E999");
  438. }
  439. // 마감 합계 정보 복사해 두기 (수납위치별 별도 조회를 위함)
  440. model.removenode("/root/temp/endinfo");
  441. model.makeNode("/root/temp/endinfo");
  442. cnt = instance1.selectNodes("/root/main/endinfo/endinfolist").length;
  443. for (var i = 1; i <= cnt; i++) {
  444. model.duplicate("/root/temp/endinfo", "/root/main/endinfo/endinfolist[" + i + "]");
  445. }
  446. }
  447. ]]>
  448. </script>
  449. </button>
  450. <caption id="caption35" class="search_name" style="left:5px; top:32px; width:90px; height:17px; ">조회일자 :</caption>
  451. <input id="ipt_enddd" ref="/root/send/search/enddd" navindex="6" inputtype="date" style="left:97px; top:31px; width:95px; height:19px; "/>
  452. <line id="line14" class="line_4" style="x1:266px; y1:28px; x2:266px; y2:53px; font-family:돋움체; border-color:#ffd799; "/>
  453. <table id="tb_mgsm" cellspacing="-1" style="left:0px; top:65px; width:1195px; height:193px; text-align:right; vertical-align:middle; border-color:#ffffff; ">
  454. <tr>
  455. <td colspan="2" style="width:66px; height:23px; font-weight:bold; background-color:#cce8ff; border-color:#d4d0c8; ">현금</td>
  456. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  457. <caption id="cap_cashamt" ref="/root/main/endinfo/endinfolist/cashamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; font-weight:bold; text-align:right; padding-right:4; padding-bottom:2; background-color:#ffffd7; "/>
  458. </td>
  459. <td colspan="2" style="width:66px; height:23px; background-color:#cce8ff; ">미수발생</td>
  460. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  461. <caption id="cap_uncouamt" ref="/root/main/endinfo/endinfolist/uncouamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  462. </td>
  463. <td rowspan="2" style="width:38px; height:46px; background-color:#cce8ff; ">
  464. <![CDATA[청구
  465. 미수]]>
  466. </td>
  467. <td style="width:60px; height:23px; background-color:#e6f5ff; ">발생</td>
  468. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  469. <caption id="cap_insuuamt" ref="/root/main/endinfo/endinfolist/insuuamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  470. </td>
  471. <td rowspan="4" style="width:38px; height:92px; line-spacing:3; background-color:#cce8ff; ">
  472. <![CDATA[외래
  473. 선수금]]>
  474. </td>
  475. <td style="width:50px; height:23px; background-color:#e6f5ff; ">현금</td>
  476. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  477. <caption id="cap_bogjdcashamt" ref="/root/main/endinfo/endinfolist/bogjdcashamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  478. </td>
  479. <td rowspan="4" style="width:38px; height:92px; line-spacing:3; background-color:#cce8ff; ">
  480. <![CDATA[가정
  481. 간호
  482. 선수금]]>
  483. </td>
  484. <td style="width:38px; height:23px; background-color:#e6f5ff; ">현금</td>
  485. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  486. <caption id="cap_bogjrcashamt" ref="/root/main/endinfo/endinfolist/bogjrcashamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  487. </td>
  488. <td rowspan="2" style="width:38px; height:46px; background-color:#cce8ff; ">
  489. <![CDATA[수혈
  490. 보상
  491. 액]]>
  492. </td>
  493. <td style="width:38px; height:23px; background-color:#e6f5ff; ">발생</td>
  494. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  495. <caption id="cap_bloddiscamt" ref="/root/main/endinfo/endinfolist/bloddiscamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  496. </td>
  497. <td rowspan="2" style="width:38px; height:46px; background-color:#cce8ff; ">건유비</td>
  498. <td style="width:28px; height:23px; background-color:#e6f5ff; ">발생</td>
  499. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  500. <caption id="cap_heallifeamtclamamt" ref="/root/main/endinfo/endinfolist/heallifeamtclamamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  501. </td>
  502. </tr>
  503. <tr>
  504. <td colspan="2" style="width:66px; height:23px; font-weight:bold; background-color:#cce8ff; border-color:#d4d0c8; ">카드</td>
  505. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  506. <caption id="cap_cardamt" ref="/root/main/endinfo/endinfolist/cardamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; font-weight:bold; text-align:right; padding-right:4; padding-bottom:2; background-color:#ffffd7; "/>
  507. </td>
  508. <td rowspan="3" style="width:28px; height:69px; line-spacing:3; background-color:#cce8ff; ">
  509. <![CDATA[미수
  510. 입금]]>
  511. </td>
  512. <td style="width:38px; height:23px; background-color:#e6f5ff; ">현금</td>
  513. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  514. <caption id="cap_uncocashamt" ref="/root/main/endinfo/endinfolist/uncocashamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  515. </td>
  516. <td style="width:60px; height:23px; background-color:#e6f5ff; ">입금</td>
  517. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  518. <caption id="cap_insuonlineamt" ref="/root/main/endinfo/endinfolist/insuonlineamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  519. </td>
  520. <td style="width:50px; height:23px; background-color:#e6f5ff; ">카드</td>
  521. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  522. <caption id="cap_bogjdcardamt" ref="/root/main/endinfo/endinfolist/bogjdcardamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  523. </td>
  524. <td style="width:38px; height:23px; background-color:#e6f5ff; ">카드</td>
  525. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  526. <caption id="cap_bogjrcardamt" ref="/root/main/endinfo/endinfolist/bogjrcardamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  527. </td>
  528. <td style="width:38px; height:23px; background-color:#e6f5ff; ">입금</td>
  529. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  530. <caption id="cap_bldcuamt" ref="/root/main/endinfo/endinfolist/bldcuamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  531. </td>
  532. <td style="width:28px; height:23px; background-color:#e6f5ff; ">입금</td>
  533. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  534. <caption id="cap_heallifeuamt" ref="/root/main/endinfo/endinfolist/heallifeuamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  535. </td>
  536. </tr>
  537. <tr>
  538. <td colspan="2" style="width:66px; height:23px; font-weight:bold; background-color:#cce8ff; border-color:#d4d0c8; ">온라인</td>
  539. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  540. <caption id="cap_onlineamt" ref="/root/main/endinfo/endinfolist/onlineamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; font-weight:bold; text-align:right; padding-right:4; padding-bottom:2; background-color:#ffffd7; "/>
  541. </td>
  542. <td style="width:38px; height:23px; background-color:#e6f5ff; ">카드</td>
  543. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  544. <caption id="cap_uncocardamt" ref="/root/main/endinfo/endinfolist/uncocardamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  545. </td>
  546. <td colspan="2" style="width:97px; height:23px; background-color:#cce8ff; ">미수대손처리</td>
  547. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  548. <caption id="cap_uncodebtamt" ref="/root/main/endinfo/endinfolist/uncodebtamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  549. </td>
  550. <td style="width:50px; height:23px; background-color:#e6f5ff; ">온라인</td>
  551. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  552. <caption id="cap_bogjdonlineamt" ref="/root/main/endinfo/endinfolist/bogjdonlineamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  553. </td>
  554. <td style="width:38px; height:23px; background-color:#e6f5ff; ">온라인</td>
  555. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  556. <caption id="cap_bogjronlineamt" ref="/root/main/endinfo/endinfolist/bogjronlineamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  557. </td>
  558. <td rowspan="2" style="width:38px; height:46px; line-spacing:3; background-color:#cce8ff; ">
  559. <![CDATA[카드
  560. 입금]]>
  561. </td>
  562. <td style="width:38px; height:23px; background-color:#e6f5ff; ">금액</td>
  563. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  564. <caption id="cap_carduamt" ref="/root/main/endinfo/endinfolist/carduamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  565. </td>
  566. <td rowspan="2" style="width:38px; height:46px; background-color:#cce8ff; ">
  567. <![CDATA[산전
  568. 지원비]]>
  569. </td>
  570. <td style="width:28px; height:23px; background-color:#e6f5ff; ">발생</td>
  571. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  572. <caption id="cap_pregdmndamt" ref="/root/main/endinfo/endinfolist/pregdmndamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  573. </td>
  574. </tr>
  575. <tr>
  576. <td colspan="2" style="width:66px; height:23px; font-weight:bold; background-color:#cce8ff; border-color:#d4d0c8; ">미수</td>
  577. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  578. <caption id="cap_uncoamt" ref="/root/main/endinfo/endinfolist/uncoamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; font-weight:bold; text-align:right; padding-right:4; padding-bottom:2; background-color:#ffffd7; "/>
  579. </td>
  580. <td style="width:38px; height:23px; background-color:#e6f5ff; ">온라인</td>
  581. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  582. <caption id="cap_uncoonlineamt" ref="/root/main/endinfo/endinfolist/uncoonlineamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  583. </td>
  584. <td colspan="2" style="width:97px; height:23px; background-color:#cce8ff; ">미수승인미수처리</td>
  585. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  586. <caption id="cap_uncoaprvamt" ref="/root/main/endinfo/endinfolist/uncoaprvamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  587. </td>
  588. <td style="width:50px; height:23px; background-color:#e6f5ff; ">대체</td>
  589. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  590. <caption id="cap_bogjdreplamt" ref="/root/main/endinfo/endinfolist/bogjdreplamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  591. </td>
  592. <td style="width:38px; height:23px; background-color:#e6f5ff; ">대체</td>
  593. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  594. <caption id="cap_bogjrreplamt" ref="/root/main/endinfo/endinfolist/bogjrreplamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  595. </td>
  596. <td style="width:38px; height:23px; background-color:#e6f5ff; ">수수료</td>
  597. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  598. <caption id="cap_carddcamt" ref="/root/main/endinfo/endinfolist/carddcamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  599. </td>
  600. <td style="width:28px; height:23px; background-color:#e6f5ff; ">입금</td>
  601. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  602. <caption id="cap_preguamt" ref="/root/main/endinfo/endinfolist/preguamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  603. </td>
  604. </tr>
  605. <tr>
  606. <td rowspan="3" style="width:28px; height:69px; line-spacing:3; background-color:#cce8ff; border-color:#d4d0c8; ">
  607. <![CDATA[외래
  608. 수납]]>
  609. </td>
  610. <td style="width:38px; height:23px; background-color:#e6f5ff; border-color:#d4d0c8; ">현금</td>
  611. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  612. <caption id="cap_ocashamt" ref="/root/main/endinfo/endinfolist/ocashamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  613. </td>
  614. <td rowspan="3" style="width:28px; height:69px; line-spacing:3; background-color:#cce8ff; ">
  615. <![CDATA[입원
  616. 수납]]>
  617. </td>
  618. <td style="width:38px; height:23px; background-color:#e6f5ff; ">현금</td>
  619. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  620. <caption id="cap_icashamt" ref="/root/main/endinfo/endinfolist/icashamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  621. </td>
  622. <td rowspan="2" style="width:38px; height:46px; background-color:#cce8ff; ">
  623. <![CDATA[장기
  624. 요양
  625. 소견서]]>
  626. </td>
  627. <td style="width:60px; height:23px; background-color:#e6f5ff; ">청구</td>
  628. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  629. <caption id="cap_clamuamt" ref="/root/main/endinfo/endinfolist/clamnamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  630. </td>
  631. <td rowspan="3" style="width:38px; height:69px; line-spacing:3; background-color:#cce8ff; ">
  632. <![CDATA[사업체
  633. 미수]]>
  634. </td>
  635. <td style="width:50px; height:23px; background-color:#e6f5ff; ">발생</td>
  636. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  637. <caption id="cap_cmpyuamt" ref="/root/main/endinfo/endinfolist/cmpyuamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  638. </td>
  639. <td rowspan="3" style="width:38px; height:69px; line-spacing:3; background-color:#cce8ff; ">
  640. <![CDATA[독촉
  641. 미수
  642. 입금]]>
  643. </td>
  644. <td style="width:38px; height:23px; background-color:#e6f5ff; ">현금</td>
  645. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  646. <caption id="cap_ptuncashamt" ref="/root/main/endinfo/endinfolist/ptuncashamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  647. </td>
  648. <td colspan="2" style="width:76px; height:23px; background-color:#cce8ff; ">부가가치세</td>
  649. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  650. <caption id="cap_taxamt" ref="/root/main/endinfo/endinfolist/taxamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  651. </td>
  652. <td rowspan="2" style="width:38px; height:46px; background-color:#cce8ff; ">보관금</td>
  653. <td style="width:28px; height:23px; background-color:#e6f5ff; ">발생</td>
  654. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  655. <caption id="cap_kpamamt" ref="/root/main/endinfo/endinfolist/kpamamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  656. </td>
  657. </tr>
  658. <tr>
  659. <td style="width:38px; height:23px; background-color:#e6f5ff; border-color:#d4d0c8; ">카드</td>
  660. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  661. <caption id="cap_ocardamt" ref="/root/main/endinfo/endinfolist/ocardamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  662. </td>
  663. <td style="width:38px; height:23px; background-color:#e6f5ff; ">카드</td>
  664. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  665. <caption id="cap_icardamt" ref="/root/main/endinfo/endinfolist/icardamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  666. </td>
  667. <td style="width:60px; height:23px; background-color:#e6f5ff; ">미수입금</td>
  668. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  669. <caption id="cap_clamnamt" ref="/root/main/endinfo/endinfolist/clamuamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  670. </td>
  671. <td style="width:50px; height:23px; background-color:#e6f5ff; ">현금입금</td>
  672. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  673. <caption id="cap_cmpycashamt" ref="/root/main/endinfo/endinfolist/cmpycashamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  674. </td>
  675. <td style="width:38px; height:23px; background-color:#e6f5ff; ">카드</td>
  676. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  677. <caption id="cap_ptuncardamt" ref="/root/main/endinfo/endinfolist/ptuncardamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  678. </td>
  679. <td colspan="2" style="width:76px; height:23px; background-color:#cce8ff; ">할인금액</td>
  680. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  681. <caption id="cap_discamt" ref="/root/main/endinfo/endinfolist/discamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  682. </td>
  683. <td style="width:28px; height:23px; background-color:#e6f5ff; ">환불</td>
  684. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  685. <caption id="cap_kpamdamt" ref="/root/main/endinfo/endinfolist/kpamdamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  686. </td>
  687. </tr>
  688. <tr>
  689. <td style="width:38px; height:23px; background-color:#e6f5ff; border-style:none; ">온라인</td>
  690. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  691. <caption id="cap_oonlineamt" ref="/root/main/endinfo/endinfolist/oonlineamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  692. </td>
  693. <td style="width:38px; height:23px; background-color:#e6f5ff; ">온라인</td>
  694. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  695. <caption id="cap_ionlineamt" ref="/root/main/endinfo/endinfolist/ionlineamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  696. </td>
  697. <td colspan="2" style="width:97px; height:23px; background-color:#cce8ff; ">민원입금</td>
  698. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  699. <caption id="cap_cvapuamt" ref="/root/main/endinfo/endinfolist/cvapuamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  700. </td>
  701. <td style="width:50px; height:23px; background-color:#e6f5ff; ">카드입금</td>
  702. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  703. <caption id="cap_cmpycardamt" ref="/root/main/endinfo/endinfolist/cmpycardamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  704. </td>
  705. <td style="width:38px; height:23px; background-color:#e6f5ff; ">온라인</td>
  706. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  707. <caption id="cap_ptunonlineamt" ref="/root/main/endinfo/endinfolist/ptunonlineamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  708. </td>
  709. <td colspan="2" style="width:76px; height:23px; background-color:#cce8ff; ">감액</td>
  710. <td style="width:91px; height:23px; border-color:#d4d0c8; border-style:solid; ">
  711. <caption id="cap_reduamt" ref="/root/main/endinfo/endinfolist/reduamt" format="(-)#,###" style="left:0px; top:0px; width:89px; height:23px; text-align:right; padding-right:4; padding-bottom:2; "/>
  712. </td>
  713. <td colspan="3" style="width:157px; height:23px; "/>
  714. </tr>
  715. </table>
  716. <line id="line1" style="x1:0px; y1:64px; x2:1195px; y2:64px; text-align:right; border-color:#b0b0b0; "/>
  717. <line id="line2" style="x1:0px; y1:234px; x2:1034px; y2:234px; border-color:#b0b0b0; "/>
  718. <caption id="caption77" class="tit_2" style="left:0px; top:250px; width:144px; height:13px; ">수납자별 마감내역</caption>
  719. <button id="btn_excsave" class="btn2_letter2" style="left:1110px; top:245px; width:42px; height:19px; ">
  720. <caption>엑셀</caption>
  721. <script type="javascript" ev:event="DOMActivate">
  722. <![CDATA[
  723. var today = model.getValue("/root/send/search/enddd");
  724. var file = window.fileDialog("save", "", "false", "수납자별 마감내역_" + today, "xls", "Excel Files(*.xls)|*.xls");
  725. grd_rcptlist.saveExcel(file);
  726. ]]>
  727. </script>
  728. </button>
  729. <button id="btn_aprv2" class="btn4_letter8" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:912px; top:750px; width:128px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  730. <caption>담당자 전체 결재</caption>
  731. <script type="javascript" ev:event="DOMActivate">
  732. <![CDATA[
  733. if(grd_rcptlist.rows > 0){
  734. var cnt = instance1.selectNodes("/root/main/endinfo/rcptmagmlist").length;
  735. for (var i = 1; i <= cnt; i++) {
  736. if (model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/magmflag") == "N") {
  737. messageBox("마감 내역이 없는 수납자가 있습니다.", "E999");
  738. return;
  739. }
  740. if (model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/aprv1") == "미결") {
  741. messageBox("결제하지 않은 수납자가 있습니다.", "E999");
  742. return;
  743. }
  744. }
  745. if (model.getValue("/root/main/endinfo/endinfolist/aprv3").length > 0) {
  746. messageBox(APRV3_NM + "이 결재한 내역이 있습니다.", "E999");
  747. return;
  748. }
  749. fSetEndTotAcpt("approvalid_2", "aprv");
  750. }
  751. ]]>
  752. </script>
  753. </button>
  754. <button id="btn_aprv2_cncl" class="btn4_letter10" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1044px; top:750px; width:152px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  755. <caption>담당자 전체 결재 취소</caption>
  756. <script type="javascript" ev:event="DOMActivate">
  757. <![CDATA[
  758. if(grd_rcptlist.rows > 0){
  759. var cnt = instance1.selectNodes("/root/main/endinfo/rcptmagmlist").length;
  760. if (model.getValue("/root/main/endinfo/endinfolist/aprv3").length > 0) {
  761. messageBox(APRV3_NM + "이 결재한 내역이 있습니다.", "E999");
  762. return;
  763. }
  764. fSetEndTotAcpt("approvalid_2", "cncl");
  765. }
  766. ]]>
  767. </script>
  768. </button>
  769. <line id="line_magm" class="line_1" style="x1:0px; y1:265px; x2:1195px; y2:265px; "/>
  770. <datagrid id="grd_rcptlist" nodeset="/root/main/endinfo/rcptmagmlist" backcoloralternate="transparent" caption="No^수납수행일자^수납자ID^마감예외여부^부서장 결재^담당자 결재^수납자 결제^수납자^수납위치^수납^마감^오류^errflag^errstr^현금금액^카드금액^온라인금액^미수금액^외래수납(현금)^외래수납(카드)^외래수납(온라인)^입원수납(현금)^입원수납(카드)^입원수납(온라인)^외래선수금(현금)^외래선수금(카드)^외래선수금(통장)^외래선수금(대체)^가정간호선수금(현금)^가정간호선수금(카드)^가정간호선수금(통장)^가정간호선수금(대체)^수혈보상액입금액^수혈보상액발생액^카드입금금액^카드입금수수료^건유비발생^건유비입금^산전지원비발생^산전지원비입금^장기요양소견서청구미수입금^장기요양소견서청구액^민원입금^사업체발생^사업체입금(현금)^사업체입금(카드)^사업체입금(통장)^청구미수발생^청구미수입금^미수발생^미수입금(현금)^미수입금(카드)^미수입금(통장)^미수대손처리^미수승인미수처리^독촉미수현금입금액^독촉미수카드입금액^독촉미수통장입금액^보관금발생^보관금환불^부가가치세^할인금액^감액^수납자마감^수납자마감시간^담당자마감^담당자마감시간^팀장마감^팀장마감시간^부서장마감^부저장마감시간^최초등록자^최초등록일시^최종수정자^최종수정일시^비고" colsep="^" colwidth="25, 0, 0, 0, 0, 165, 150, 60, 60, 45, 45, 40, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" fixedcols="1" frozencols="7" rowsep="|" style="left:0px; top:270px; width:1195px; height:475px; text-align:center; ">
  771. <col ref="rk"/>
  772. <col ref="rcptexecdd"/>
  773. <col ref="rcptrid"/>
  774. <col ref="autoflag"/>
  775. <col ref="aprv3"/>
  776. <col editable="false" ref="aprv2" type="inputbutton" style="text-align:left; "/>
  777. <col ref="aprv1" style="text-align:left; "/>
  778. <col ref="rcptrnm"/>
  779. <col ref="rcptpos"/>
  780. <col ref="rcptcnt" style="text-align:center; "/>
  781. <col ref="magmcnt" style="text-align:center; "/>
  782. <col ref="errcnt" visibility="hidden" style="text-align:center; "/>
  783. <col ref="errflag"/>
  784. <col ref="errstr"/>
  785. <col ref="cashamt" format="(-)#,###" style="text-align:right; "/>
  786. <col ref="cardamt" format="(-)#,###" style="text-align:right; "/>
  787. <col ref="onlineamt" format="(-)#,###" style="text-align:right; "/>
  788. <col ref="uncoamt" format="(-)#,###" style="text-align:right; "/>
  789. <col ref="ocashamt" format="(-)#,###" style="text-align:right; "/>
  790. <col ref="ocardamt" format="(-)#,###" style="text-align:right; "/>
  791. <col ref="oonlineamt" format="(-)#,###" style="text-align:right; "/>
  792. <col ref="icashamt" format="(-)#,###" style="text-align:right; "/>
  793. <col ref="icardamt" format="(-)#,###" style="text-align:right; "/>
  794. <col ref="ionlineamt" format="(-)#,###" style="text-align:right; "/>
  795. <col ref="bogjdcashamt" format="(-)#,###" style="text-align:right; "/>
  796. <col ref="bogjdcardamt" format="(-)#,###" style="text-align:right; "/>
  797. <col ref="bogjdonlineamt" format="(-)#,###" style="text-align:right; "/>
  798. <col ref="bogjdreplamt" format="(-)#,###" style="text-align:right; "/>
  799. <col ref="bogjrcashamt" format="(-)#,###" style="text-align:right; "/>
  800. <col ref="bogjrcardamt" format="(-)#,###" style="text-align:right; "/>
  801. <col ref="bogjronlineamt" format="(-)#,###" style="text-align:right; "/>
  802. <col ref="bogjrreplamt" format="(-)#,###" style="text-align:right; "/>
  803. <col ref="bldcuamt" format="(-)#,###" style="text-align:right; "/>
  804. <col ref="bloddiscamt" format="(-)#,###" style="text-align:right; "/>
  805. <col ref="carduamt" format="(-)#,###" style="text-align:right; "/>
  806. <col ref="carddcamt" format="(-)#,###" style="text-align:right; "/>
  807. <col ref="heallifeamtclamamt" format="(-)#,###" style="text-align:right; "/>
  808. <col ref="heallifeuamt" format="(-)#,###" style="text-align:right; "/>
  809. <col ref="pregdmndamt" format="(-)#,###" style="text-align:right; "/>
  810. <col ref="preguamt" format="(-)#,###" style="text-align:right; "/>
  811. <col ref="clamuamt" format="(-)#,###" style="text-align:right; "/>
  812. <col ref="clamnamt" format="(-)#,###" style="text-align:right; "/>
  813. <col ref="cvapuamt" format="(-)#,###" style="text-align:right; "/>
  814. <col ref="cmpyuamt" format="(-)#,###" style="text-align:right; "/>
  815. <col ref="cmpycashamt" format="(-)#,###" style="text-align:right; "/>
  816. <col ref="cmpycardamt" format="(-)#,###" style="text-align:right; "/>
  817. <col ref="cmpyonlineamt" format="(-)#,###" style="text-align:right; "/>
  818. <col ref="insuuamt" format="(-)#,###" style="text-align:right; "/>
  819. <col ref="insuonlineamt" format="(-)#,###" style="text-align:right; "/>
  820. <col ref="uncouamt" format="(-)#,###" style="text-align:right; "/>
  821. <col ref="uncocashamt" format="(-)#,###" style="text-align:right; "/>
  822. <col ref="uncocardamt" format="(-)#,###" style="text-align:right; "/>
  823. <col ref="uncoonlineamt" format="(-)#,###" style="text-align:right; "/>
  824. <col ref="uncodebtamt" format="(-)#,###" style="text-align:right; "/>
  825. <col ref="uncoaprvamt" format="(-)#,###" style="text-align:right; "/>
  826. <col ref="ptuncashamt" format="(-)#,###" style="text-align:right; "/>
  827. <col ref="ptuncardamt" format="(-)#,###" style="text-align:right; "/>
  828. <col ref="ptunonlineamt" format="(-)#,###" style="text-align:right; "/>
  829. <col ref="kpamamt" format="(-)#,###" style="text-align:right; "/>
  830. <col ref="kpamdamt" format="(-)#,###" style="text-align:right; "/>
  831. <col ref="taxamt" format="(-)#,###" style="text-align:right; "/>
  832. <col ref="discamt" format="(-)#,###" style="text-align:right; "/>
  833. <col ref="reduamt" format="(-)#,###" style="text-align:right; "/>
  834. <col ref="approvalid_1" visibility="hidden"/>
  835. <col ref="approvaldt_1" visibility="hidden"/>
  836. <col ref="approvalid_2" visibility="hidden"/>
  837. <col ref="approvaldt_2" visibility="hidden"/>
  838. <col ref="approvalid_3" visibility="hidden"/>
  839. <col ref="approvaldt_3" visibility="hidden"/>
  840. <col ref="approvalid_4" visibility="hidden"/>
  841. <col ref="approvaldt_4" visibility="hidden"/>
  842. <col ref="fstrgstrid" visibility="hidden"/>
  843. <col ref="fstrgstdt" visibility="hidden"/>
  844. <col ref="lastupdtrid" visibility="hidden"/>
  845. <col ref="lastupdtdt" visibility="hidden"/>
  846. <col ref="remark" visibility="hidden"/>
  847. <script type="javascript" ev:event="ondblclick">
  848. <![CDATA[
  849. if (isDataCell()) {
  850. if (grd_rcptlist.rows > 0) {
  851. var rcptrid = model.getValue("/root/main/endinfo/rcptmagmlist[" + grd_rcptlist.row + "]/rcptrid");
  852. if (rcptrid == "") {
  853. return;
  854. }
  855. var enddd = model.getValue("/root/main/endinfo/rcptmagmlist[" + grd_rcptlist.row + "]/rcptexecdd");
  856. if (enddd == "") {
  857. enddd = model.getValue("/root/send/search/enddd");
  858. }
  859. setParameter("SMPAE00100_enddd", enddd);
  860. setParameter("SMPAE00100_endid", rcptrid);
  861. setParameter("SMPAE00100_rcpttype", "rcptrnm");
  862. modal("SMPAE00100");
  863. btn_search.dispatch("DOMActivate");
  864. // 속도 개선을 위해 오류 조회 기능 막음
  865. /*
  866. if (rcpttype == "errcnt") {
  867. var rcptrid = model.getValue("/root/main/endinfo/rcptmagmlist[" + grd_rcptlist.row + "]/rcptrid");
  868. model.setValue("/root/hidden/errinfo/rcptrid", rcptrid);
  869. cmb_rcptrid.refresh();
  870. grd_errlist.nodeset = "/root/main/endinfo/errlist/errinfo[rcptrid = '" + rcptrid + "']";
  871. fSetErrControl(true);
  872. }
  873. */
  874. }
  875. }
  876. ]]>
  877. </script>
  878. <script type="javascript" ev:event="onbuttonclick">
  879. <![CDATA[
  880. if(grd_rcptlist.rows > 0){
  881. var enddd = grd_rcptlist.valueMatrix(grd_rcptlist.row, grd_rcptlist.colRef("rcptexecdd"));
  882. var endid = grd_rcptlist.valueMatrix(grd_rcptlist.row, grd_rcptlist.colRef("rcptrid"));
  883. var aprv1 = grd_rcptlist.valueMatrix(grd_rcptlist.row, grd_rcptlist.colRef("aprv1")); //수납자
  884. var aprv2 = grd_rcptlist.valueMatrix(grd_rcptlist.row, grd_rcptlist.colRef("aprv2")); //담당자
  885. var aprv3 = grd_rcptlist.valueMatrix(grd_rcptlist.row, grd_rcptlist.colRef("aprv3")); //부서장
  886. if(grd_rcptlist.col == grd_rcptlist.colRef("aprv2")) { // 담당자 결재
  887. if (model.getValue("/root/main/endinfo/rcptmagmlist[" + grd_rcptlist.row + "]/rcptrnm") == "합계") {
  888. return;
  889. }
  890. if (STAFFKIND != "A" && STAFFKIND != "C") {
  891. return;
  892. }
  893. if (aprv2 == "") {
  894. if (model.getValue("/root/main/endinfo/rcptmagmlist[" + grd_rcptlist.row + "]/errflag") == "M") {
  895. messageBox("수납자의 마감 내역이 없습니다.", "E999");
  896. return;
  897. }
  898. if (model.getValue("/root/main/endinfo/rcptmagmlist[" + grd_rcptlist.row + "]/errflag") == "A") {
  899. messageBox("수납자가 결제하지 않았습니다.", "E999");
  900. return;
  901. }
  902. } else {
  903. if (model.getValue("/root/main/endinfo/rcptmagmlist[" + grd_rcptlist.row + "]/aprv3") != "") {
  904. messageBox(APRV3_NM + "의 결재 내역이 있습니다.", "E999");
  905. return;
  906. }
  907. }
  908. fSetEndAcpt(enddd, endid, "approvalid_2", aprv2, "담당자 결재");
  909. }
  910. }
  911. ]]>
  912. </script>
  913. </datagrid>
  914. <table id="table1" class="cell_1" cellspacing="-1" style="left:842px; top:9px; width:175px; height:51px; border-color:#b0b0b0; ">
  915. <tr>
  916. <td style="width:173px; height:25px; font-weight:bold; vertical-align:middle; padding-left:9; padding-top:1; "/>
  917. </tr>
  918. <tr>
  919. <td style="width:173px; height:23px; ">
  920. <caption id="cap_haprv" ref="/root/main/endinfo/endinfolist/aprv3" style="left:0px; top:0px; width:173px; height:23; text-align:center; line-spacing:3; background-color:#ffffff; "/>
  921. </td>
  922. </tr>
  923. </table>
  924. <table id="table2" class="cell_1" cellspacing="-1" style="left:1020px; top:9px; width:175px; height:51px; border-color:#b0b0b0; ">
  925. <tr>
  926. <td style="width:173px; height:25px; font-weight:bold; vertical-align:middle; padding-left:9; padding-top:1; "/>
  927. </tr>
  928. <tr>
  929. <td style="width:173px; height:23px; ">
  930. <caption id="caption1" ref="/root/main/endinfo/endinfolist/aprv4" style="left:0px; top:0px; width:173px; height:23; text-align:center; line-spacing:3; background-color:#ffffff; "/>
  931. </td>
  932. </tr>
  933. </table>
  934. <button id="btn_aprv4" class="btn4_letter2" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1079px; top:12px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  935. <caption>결재</caption>
  936. <script type="javascript" ev:event="DOMActivate">
  937. <![CDATA[
  938. if (STAFFKIND != "A" && STAFFKIND != "4") {
  939. return;
  940. }
  941. if (model.getValue("/root/main/endinfo/endinfolist/aprv3").length < 1) {
  942. //messageBox(APRV3_NM + " 결재가 완료되지 않았습니다.", "E999");
  943. //return;
  944. }
  945. fSetEndTotAcpt("approvalid_4", "aprv");
  946. ]]>
  947. </script>
  948. </button>
  949. <button id="btn_aprv4_cncl" class="btn4_letter2" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:1137px; top:12px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  950. <caption>취소</caption>
  951. <script type="javascript" ev:event="DOMActivate">
  952. <![CDATA[
  953. if (STAFFKIND != "A" && STAFFKIND != "4") {
  954. return;
  955. }
  956. if(grd_rcptlist.rows > 0){
  957. fSetEndTotAcpt("approvalid_4", "cncl");
  958. }
  959. ]]>
  960. </script>
  961. </button>
  962. <datagrid id="grd_errlist" nodeset="/root/main/endinfo/errlist/errinfo" visibility="hidden" caption="수납자ID^수납자^업무코드^업무구분^등록번호^환자명^진료일자^수납일자^rcptno^rcptseqno^오류코드^오류메세지" colsep="^" colwidth="0, 65, 0, 85, 60, 65, 70, 70, 0, 0, 0, 600" mergecellsfixedrows="bycolrec" rowsep="|" style="left:610px; top:270px; width:585px; height:475px; ">
  963. <col ref="rcptrid"/>
  964. <col explorerbar="sortshow" ref="rcptrnm" style="text-align:center; "/>
  965. <col ref="worktype"/>
  966. <col explorerbar="sortshow" ref="worktypenm" style="text-align:center; "/>
  967. <col explorerbar="sort" ref="pid" style="text-align:center; "/>
  968. <col explorerbar="sortshow" ref="hngnm" style="text-align:center; "/>
  969. <col explorerbar="sort" ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
  970. <col explorerbar="sort" ref="rcptdd" format="yyyy-mm-dd" style="text-align:center; "/>
  971. <col ref="rcptno"/>
  972. <col ref="rcptseqno"/>
  973. <col ref="errcode"/>
  974. <col explorerbar="sortshow" ref="errtext"/>
  975. </datagrid>
  976. <line id="line_err" class="line_1" visibility="hidden" style="x1:610px; y1:265px; x2:1195px; y2:265px; "/>
  977. <caption id="cap_err" class="tit_2" visibility="hidden" style="left:610px; top:250px; width:80px; height:13px; ">오류 내역</caption>
  978. <button id="btn_xlserr" class="btn2_letter2" visibility="hidden" style="left:1110px; top:225px; width:42px; height:19px; ">
  979. <caption>엑셀</caption>
  980. <script type="javascript" ev:event="DOMActivate">
  981. <![CDATA[
  982. var today = model.getValue("/root/send/search/enddd");
  983. var file = window.fileDialog("save", "", "false", "마감 관리 - 오류 내역_" + today, "xls", "Excel Files(*.xls)|*.xls");
  984. grd_errlist.saveExcel(file);
  985. ]]>
  986. </script>
  987. </button>
  988. <select1 id="cmb_rcptrid" ref="/root/hidden/errinfo/rcptrid" visibility="hidden" appearance="minimal" style="left:906px; top:245px; width:80px; height:19px; ">
  989. <choices>
  990. <itemset nodeset="/root/main/endinfo/errlist/rcptrid">
  991. <label ref="nm"/>
  992. <value ref="id"/>
  993. </itemset>
  994. </choices>
  995. <script type="javascript" ev:event="xforms-value-changed">
  996. <![CDATA[
  997. var rcptrid = model.getValue("/root/hidden/errinfo/rcptrid");
  998. var worktype = model.getValue("/root/hidden/errinfo/worktype");
  999. if (rcptrid != "all" && worktype != "all") {
  1000. grd_errlist.nodeset = "/root/main/endinfo/errlist/errinfo[rcptrid = '" + rcptrid + "' and worktype = '" + worktype + "']";
  1001. } else if (rcptrid != "all") {
  1002. grd_errlist.nodeset = "/root/main/endinfo/errlist/errinfo[rcptrid = '" + rcptrid + "']";
  1003. } else if (worktype != "all") {
  1004. grd_errlist.nodeset = "/root/main/endinfo/errlist/errinfo[worktype = '" + worktype + "']";
  1005. } else {
  1006. grd_errlist.nodeset = "/root/main/endinfo/errlist/errinfo";
  1007. }
  1008. ]]>
  1009. </script>
  1010. </select1>
  1011. <select1 id="cmb_worktype" ref="/root/hidden/errinfo/worktype" visibility="hidden" appearance="minimal" style="left:988px; top:245px; width:120px; height:19px; ">
  1012. <choices>
  1013. <itemset nodeset="/root/main/endinfo/errlist/worktype">
  1014. <label ref="nm"/>
  1015. <value ref="cd"/>
  1016. </itemset>
  1017. </choices>
  1018. <script type="javascript" ev:event="xforms-value-changed">
  1019. <![CDATA[
  1020. var rcptrid = model.getValue("/root/hidden/errinfo/rcptrid");
  1021. var worktype = model.getValue("/root/hidden/errinfo/worktype");
  1022. if (rcptrid != "all" && worktype != "all") {
  1023. grd_errlist.nodeset = "/root/main/endinfo/errlist/errinfo[rcptrid = '" + rcptrid + "' and worktype = '" + worktype + "']";
  1024. } else if (rcptrid != "all") {
  1025. grd_errlist.nodeset = "/root/main/endinfo/errlist/errinfo[rcptrid = '" + rcptrid + "']";
  1026. } else if (worktype != "all") {
  1027. grd_errlist.nodeset = "/root/main/endinfo/errlist/errinfo[worktype = '" + worktype + "']";
  1028. } else {
  1029. grd_errlist.nodeset = "/root/main/endinfo/errlist/errinfo";
  1030. }
  1031. ]]>
  1032. </script>
  1033. </select1>
  1034. <button id="btn_errclose" class="btn2_letter2" visibility="hidden" style="left:695px; top:245px; width:42px; height:19px; ">
  1035. <caption>닫기</caption>
  1036. <script type="javascript" ev:event="DOMActivate">
  1037. <![CDATA[
  1038. fSetErrControl(false);
  1039. ]]>
  1040. </script>
  1041. </button>
  1042. <table id="tbl_cnt" class="cell_1" cellspacing="-1" style="left:396px; top:35px; width:402px; height:25px; border-color:#b0b0b0; ">
  1043. <tr>
  1044. <!--
  1045. <td style="width:35px; height:23px; text-align:center; vertical-align:middle; ">수납</td>
  1046. <td style="width:80px; height:23px; ">
  1047. <caption id="cap_rcptcnt" ref="/root/hidden/cntinfo/rcptcnt" format="#,###" style="left:0px; top:0px; width:80px; height:23px; font-size:10pt; font-weight:bold; text-align:center; background-color:#ffffff; "/>
  1048. </td>
  1049. <td style="width:35px; height:23px; text-align:center; vertical-align:middle; ">오류</td>
  1050. <td style="width:80px; height:23px; ">
  1051. <caption id="cap_errcnt" ref="/root/hidden/cntinfo/errcnt" format="#,###" style="left:0px; top:0px; width:80px; height:23px; font-size:10pt; font-weight:bold; text-align:center; background-color:#ffffff; ">
  1052. <script type="javascript" ev:event="ondblclick">
  1053. <![CDATA[
  1054. model.setValue("/root/hidden/errinfo/rcptrid", "all");
  1055. cmb_rcptrid.refresh();
  1056. grd_errlist.nodeset = "/root/main/endinfo/errlist/errinfo";
  1057. fSetErrControl(true);
  1058. ]]>
  1059. </script>
  1060. </caption>
  1061. </td>
  1062. -->
  1063. <td style="width:35px; height:23px; text-align:center; vertical-align:middle; ">마감</td>
  1064. <td style="width:80px; height:23px; ">
  1065. <caption id="cap_magmcnt" ref="/root/hidden/cntinfo/magmcnt" style="left:0px; top:0px; width:80px; height:23px; font-size:10pt; text-align:center; background-color:#ffffff; "/>
  1066. </td>
  1067. <td style="width:35px; height:23px; text-align:center; vertical-align:middle; ">결제</td>
  1068. <td style="width:80px; height:23px; ">
  1069. <caption id="cap_aprvcnt" ref="/root/hidden/cntinfo/aprvcnt" style="left:0px; top:0px; width:80px; height:23px; font-size:10pt; text-align:center; background-color:#ffffff; "/>
  1070. </td>
  1071. <td style="width:85px; height:23px; text-align:center; vertical-align:middle; ">마감 후 수납</td>
  1072. <td style="width:80px; height:23px; ">
  1073. <caption id="cap_magmrcptcnt" ref="/root/hidden/cntinfo/magmrcptcnt" style="left:0px; top:0px; width:80px; height:23px; font-size:10pt; text-align:center; background-color:#ffffff; "/>
  1074. </td>
  1075. </tr>
  1076. </table>
  1077. <button id="btn_compare" class="btn3_letter8" visibility="hidden" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:256px; top:750px; width:128px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1078. <caption>개편마감 금액비교</caption>
  1079. <script type="javascript" ev:event="DOMActivate">
  1080. <![CDATA[
  1081. var wndobj = getOpenWindow("SMPAE00201");
  1082. if (wndobj != null) {
  1083. wndobj.close();
  1084. submit("TRPAO00000");
  1085. }
  1086. open("../../../pam/pamendstatsweb/xrw/SMPAE00201_수납자별마감금액비교.xrw", "", "", "" ,"", "", "");
  1087. ]]>
  1088. </script>
  1089. </button>
  1090. <shape id="rectangle1" appearance="rectangle" style="left:400px; top:753px; width:15px; height:15px; background-color:#f0f0ff; border-color:#b0b0b0; "/>
  1091. <caption id="caption23" style="left:420px; top:751px; width:55px; height:20px; color:#646464; ">자동 마감</caption>
  1092. <button id="btn_kiosk" class="btn3_letter6" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:146px; top:750px; width:104px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1093. <caption>무인수납내역</caption>
  1094. <script type="javascript" ev:event="DOMActivate">
  1095. <![CDATA[
  1096. setParameter("SMPAE00202_fromdd", model.getValue("/root/send/search/enddd"));
  1097. open("../../../pam/pamendstatsweb/xrw/SMPAE00202_무인수납기수납내역.xrw", "", "", "" ,"", "", "");
  1098. ]]>
  1099. </script>
  1100. </button>
  1101. <button id="btn_prtlist" class="btn2_letter2" visibility="hidden" style="left:1153px; top:245px; width:42px; height:19px; ">
  1102. <caption>출력</caption>
  1103. <script type="javascript" ev:event="DOMActivate">
  1104. <![CDATA[
  1105. model.removenode("/root/rex");
  1106. model.makeNode("/root/rex/endinfo");
  1107. var cnt = instance1.selectNodes("/root/main/endinfo/rcptmagmlist").length;
  1108. var idx = 0;
  1109. for (var i = 1; i <= cnt; i++) {
  1110. var rcptrid = model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/rcptrid");
  1111. if (rcptrid != "") {
  1112. idx++;
  1113. }
  1114. model.makeValue("/root/rex/endinfo/rcptmagmlist[" + i + "]/rk", model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/rk"));
  1115. model.makeValue("/root/rex/endinfo/rcptmagmlist[" + i + "]/rcptrid", rcptrid);
  1116. model.makeValue("/root/rex/endinfo/rcptmagmlist[" + i + "]/rcptrnm", model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/rcptrnm"));
  1117. model.makeValue("/root/rex/endinfo/rcptmagmlist[" + i + "]/rcptpos", model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/rcptpos"));
  1118. model.makeValue("/root/rex/endinfo/rcptmagmlist[" + i + "]/rcptcnt", model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/rcptcnt"));
  1119. model.makeValue("/root/rex/endinfo/rcptmagmlist[" + i + "]/cashamt", model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/cashamt"));
  1120. model.makeValue("/root/rex/endinfo/rcptmagmlist[" + i + "]/cardamt", model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/cardamt"));
  1121. model.makeValue("/root/rex/endinfo/rcptmagmlist[" + i + "]/onlineamt", model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/onlineamt"));
  1122. model.makeValue("/root/rex/endinfo/rcptmagmlist[" + i + "]/uncoamt", model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/uncoamt"));
  1123. }
  1124. model.setValue("/root/send/search/endid", "");
  1125. submit("TRPAE00107", false);
  1126. model.makeValue("/root/rex/prtinfo/enddd", model.getValue("/root/send/search/enddd"));
  1127. exeReportPreview("RPPAE00102", "XMLSTR");
  1128. ]]>
  1129. </script>
  1130. </button>
  1131. <button id="btn_prtmagm" class="btn4_letter2" visibility="hidden" style="left:1139px; top:211px; width:56px; height:22px; ">
  1132. <caption>출력</caption>
  1133. <script type="javascript" ev:event="DOMActivate">
  1134. <![CDATA[
  1135. model.removenode("/root/rex");
  1136. model.makeNode("/root/rex/rcptlist");
  1137. model.copyNode("/root/rex/rcptlist", "/root/main/endinfo/endinfolist");
  1138. model.setValue("/root/send/search/endid", "");
  1139. submit("TRPAE00107", false);
  1140. model.makeValue("/root/rex/prtinfo/enddd", model.getValue("/root/send/search/enddd"));
  1141. model.makeValue("/root/rex/prtinfo/rcptpos", cmb_rcptpos.label);
  1142. model.makeValue("/root/rex/prtinfo/hiflag", model.getValue("/root/send/search/hiflag"));
  1143. model.makeValue("/root/rex/prtinfo/aprv3nm", APRV3_NM);
  1144. model.makeValue("/root/rex/prtinfo/aprv4nm", APRV4_NM);
  1145. exeReportPreview("RPPAE00101", "XMLSTR");
  1146. ]]>
  1147. </script>
  1148. </button>
  1149. <select id="chk_hiflag" ref="/root/send/search/hiflag" overflow="visible" appearance="full" style="left:207px; top:33px; width:45px; height:15px; border-style:none; ">
  1150. <choices>
  1151. <item>
  1152. <label>건진</label>
  1153. <value>Y</value>
  1154. </item>
  1155. </choices>
  1156. </select>
  1157. <button id="btn_magmstat" class="btn3_letter9" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:0px; top:750px; width:140px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1158. <caption>일일 마감관리 현황</caption>
  1159. <script type="javascript" ev:event="DOMActivate">
  1160. <![CDATA[
  1161. var wndobj = getOpenWindow("SPPAE00203");
  1162. if (wndobj != null) {
  1163. wndobj.close();
  1164. submit("TRPAO00000");
  1165. }
  1166. open("../../../pam/pamendstatsweb/xrw/SPPAE00203_마감현황.xrw", "", "", "" ,"", "", "");
  1167. ]]>
  1168. </script>
  1169. </button>
  1170. <button id="btn_aprv3" class="btn4_letter2" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:901px; top:12px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1171. <caption>결재</caption>
  1172. <script type="javascript" ev:event="DOMActivate">
  1173. <![CDATA[
  1174. if (STAFFKIND != "A" && STAFFKIND != "3" && STAFFKIND != "4") {
  1175. return;
  1176. }
  1177. if(grd_rcptlist.rows > 0){
  1178. var cnt = instance1.selectNodes("/root/main/endinfo/rcptmagmlist").length;
  1179. for (var i = 1; i <= cnt; i++) {
  1180. if (model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/rcptrid") != "" &&
  1181. model.getValue("/root/main/endinfo/rcptmagmlist[" + i + "]/aprv2") == "") {
  1182. messageBox("담당자 결재가 완료되지 않았습니다.", "E999");
  1183. return;
  1184. }
  1185. }
  1186. if (model.getValue("/root/main/endinfo/endinfolist/aprv4").length > 0) {
  1187. messageBox(APRV4_NM + "이 결재한 내역이 있습니다.", "E999");
  1188. return;
  1189. }
  1190. fSetEndTotAcpt("approvalid_3", "aprv");
  1191. }
  1192. ]]>
  1193. </script>
  1194. </button>
  1195. <button id="btn_aprv3_cncl" class="btn4_letter2" disabled="true" disable.background-image="../../../com/commonweb/images/dis_btn4_letter2.gif" style="left:959px; top:12px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
  1196. <caption>취소</caption>
  1197. <script type="javascript" ev:event="DOMActivate">
  1198. <![CDATA[
  1199. if (STAFFKIND != "A" && STAFFKIND != "3") {
  1200. return;
  1201. }
  1202. if (model.getValue("/root/main/endinfo/endinfolist/aprv4").length > 0) {
  1203. messageBox(APRV4_NM + "이 결재한 내역이 있습니다.", "E999");
  1204. return;
  1205. }
  1206. if(grd_rcptlist.rows > 0){
  1207. fSetEndTotAcpt("approvalid_3", "cncl");
  1208. }
  1209. ]]>
  1210. </script>
  1211. </button>
  1212. <caption id="cap_aprv3nm" style="left:848px; top:15px; width:50px; height:15px; font-weight:bold; "/>
  1213. <caption id="cap_aprv4nm" style="left:1026px; top:15px; width:50px; height:15px; font-weight:bold; "/>
  1214. <img id="img_memo" src="../../../com/commonweb/images/icon_list.gif" style="left:370px; top:44px; width:14px; height:16px; background-stretch:stretch; cursor:hand; ">
  1215. <script type="javascript" ev:event="onclick">
  1216. <![CDATA[
  1217. grp_memo.visible = !grp_memo.visible;
  1218. if (grp_memo.visible) {
  1219. model.setFocus("tar_memo");
  1220. }
  1221. ]]>
  1222. </script>
  1223. </img>
  1224. <button id="btn_memo" style="left:370px; top:44px; width:14px; height:16px; background-color:#f8f8f8; border-color:#a3a5a3; border-style:solid; cursor:hand; focus-rect:hidden; ">
  1225. <caption/>
  1226. <script type="javascript" ev:event="DOMActivate">
  1227. <![CDATA[
  1228. grp_memo.visible = !grp_memo.visible;
  1229. if (grp_memo.visible) {
  1230. model.setFocus("tar_memo");
  1231. }
  1232. ]]>
  1233. </script>
  1234. </button>
  1235. <group id="grp_memo" visibility="hidden" style="left:370px; top:74px; width:402px; height:145px; background-color:#ffffdc; border-color:#a0a0a0; border-style:solid; ">
  1236. <textarea id="tar_memo" ref="/root/hidden/memoinfo/memo" scroll="autovscroll" style="left:4px; top:4px; width:392px; height:110px; line-spacing:3; padding-left:5; padding-top:5; "/>
  1237. <button id="btn_memoset" class="btn2_letter2" style="left:260px; top:119px; width:42px; height:19px; ">
  1238. <caption>저장</caption>
  1239. <script type="javascript" ev:event="DOMActivate">
  1240. <![CDATA[
  1241. model.setValue("/root/send/memo/enddd", model.getValue("/root/send/search/enddd"));
  1242. model.setValue("/root/send/memo/jobflag", "S");
  1243. model.setValue("/root/send/memo/memo", model.getValue("/root/hidden/memoinfo/memo"));
  1244. submit("TXPAE00103");
  1245. if (instance1.selectNodes("/root/hidden/memoinfo").length < 1) {
  1246. model.makeValue("/root/hidden/memoinfo/memo", "");
  1247. }
  1248. if (model.getValue("/root/hidden/memoinfo/memo") == "") {
  1249. btn_memo.visible = true;
  1250. } else {
  1251. btn_memo.visible = false;
  1252. }
  1253. img_memo.hint = model.getValue("/root/hidden/memoinfo/memo");
  1254. ]]>
  1255. </script>
  1256. </button>
  1257. <button id="btn_memodel" class="btn2_letter2" style="left:307px; top:119px; width:42px; height:19px; ">
  1258. <caption>삭제</caption>
  1259. <script type="javascript" ev:event="DOMActivate">
  1260. <![CDATA[
  1261. model.setValue("/root/send/memo/enddd", model.getValue("/root/send/search/enddd"));
  1262. model.setValue("/root/send/memo/jobflag", "D");
  1263. model.setValue("/root/send/memo/memo", "");
  1264. submit("TXPAE00103");
  1265. if (instance1.selectNodes("/root/hidden/memoinfo").length < 1) {
  1266. model.makeValue("/root/hidden/memoinfo/memo", "");
  1267. }
  1268. btn_memo.visible = true;
  1269. img_memo.hint = model.getValue("/root/hidden/memoinfo/memo");
  1270. grp_memo.visible = false;
  1271. ]]>
  1272. </script>
  1273. </button>
  1274. <button id="btn_memoclose" class="btn2_letter2" style="left:354px; top:119px; width:42px; height:19px; ">
  1275. <caption>닫기</caption>
  1276. <script type="javascript" ev:event="DOMActivate">
  1277. <![CDATA[
  1278. grp_memo.visible = false;
  1279. ]]>
  1280. </script>
  1281. </button>
  1282. </group>
  1283. <select1 id="cmb_rcptpos" ref="/root/send/search/rcptposcd" class="combo_search" appearance="minimal" style="left:1037px; top:212px; width:100px; height:19px; ">
  1284. <choices>
  1285. <itemset nodeset="/root/hidden/rcptposlist/rcptposinfo">
  1286. <label ref="nm"/>
  1287. <value ref="cd"/>
  1288. </itemset>
  1289. </choices>
  1290. <script type="javascript" ev:event="xforms-value-changed">
  1291. <![CDATA[
  1292. var cd = model.getValue("/root/send/search/rcptposcd");
  1293. model.removeNodeset("/root/main/endinfo/endinfolist");
  1294. model.makeNode("/root/main/endinfo/endinfolist");
  1295. model.copyNode("/root/main/endinfo/endinfolist", "/root/temp/endinfo/endinfolist[rcptposcd='" + cd + "']");
  1296. model.refresh();
  1297. ]]>
  1298. </script>
  1299. </select1>
  1300. </xhtml:body>
  1301. </xhtml:html>