SMRAD00200_전표승인관리.xrw 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <unsllist>
  11. <instcd/>
  12. <selchk/>
  13. <slipdt/>
  14. <slipno/>
  15. <unslwrit/>
  16. <usernm/>
  17. <unsldt/>
  18. <unslno/>
  19. <slipflag/>
  20. <checkyn/>
  21. <slipkind/>
  22. <slipdeptcd/>
  23. <slipdeptnm/>
  24. <etcnotefact/>
  25. </unsllist>
  26. <apsllist>
  27. <instcd/>
  28. <slipdt/>
  29. <slipno/>
  30. <unslwrit/>
  31. <usernm/>
  32. <unsldt/>
  33. <unslno/>
  34. <slipflag/>
  35. <checkyn/>
  36. <slipkind/>
  37. <slipdeptcd/>
  38. <slipdeptnm/>
  39. <etcnotefact/>
  40. </apsllist>
  41. <unsllistinfo>
  42. <slipseqno/>
  43. <acntcd/>
  44. <acntnm/>
  45. <custnm/>
  46. <etcnotefact/>
  47. <dramt/>
  48. <cramt/>
  49. <amt/>
  50. <drcrflag/>
  51. <suppitemcd/>
  52. <custflag/>
  53. <custcd/>
  54. <notefactspec1/>
  55. <notefactspec2/>
  56. <notefactspec3/>
  57. <notefactspec4/>
  58. <notefactspec5/>
  59. <notefactspec6/>
  60. <slipdt/>
  61. <slipno/>
  62. <instcd/>
  63. <slipdd/>
  64. <profflag/>
  65. <custbalyn/>
  66. <defrayreqdd/>
  67. </unsllistinfo>
  68. <apsllistinfo>
  69. <slipseqno/>
  70. <acntcd/>
  71. <acntnm/>
  72. <custnm/>
  73. <etcnotefact/>
  74. <dramt/>
  75. <cramt/>
  76. <amt/>
  77. <drcrflag/>
  78. <suppitemcd/>
  79. <custflag/>
  80. <custcd/>
  81. <notefactspec1/>
  82. <notefactspec2/>
  83. <notefactspec3/>
  84. <notefactspec4/>
  85. <notefactspec5/>
  86. <notefactspec6/>
  87. <slipdt/>
  88. <slipno/>
  89. <instcd/>
  90. <profflag/>
  91. <custbalyn/>
  92. <defrayreqdd/>
  93. </apsllistinfo>
  94. <acntyylist>
  95. <frdd/>
  96. <todd/>
  97. </acntyylist>
  98. </main>
  99. <send>
  100. <data1>
  101. <instcd/>
  102. <ddkind/>
  103. <slipfr/>
  104. <slipto/>
  105. <slipkind/>
  106. <checkyn/>
  107. <slipdeptcd/>
  108. <slipgubn/>
  109. <framt/>
  110. <toamt/>
  111. <unslno/>
  112. </data1>
  113. <data2>
  114. <instcd/>
  115. <slipdt/>
  116. <slipno/>
  117. </data2>
  118. <data3>
  119. <instcd/>
  120. <unsldd/>
  121. <unslno/>
  122. <sanctyn/>
  123. <refreshyn/>
  124. </data3>
  125. <data4>
  126. <chkacntyy/>
  127. </data4>
  128. <unsllistinfo/>
  129. <apsllistinfo/>
  130. <data5>
  131. <status/>
  132. <instcd/>
  133. <unsldd/>
  134. <unslno/>
  135. <checkyn/>
  136. <slipstatus/>
  137. </data5>
  138. <condition>
  139. <instcd/>
  140. <unsldd/>
  141. <unslno/>
  142. </condition>
  143. </send>
  144. <hidden>
  145. <condition>
  146. <ddkind>wd</ddkind>
  147. <slipfr/>
  148. <slipto/>
  149. <slipgubn>R</slipgubn>
  150. <slipkind/>
  151. <slipdeptcd/>
  152. <slipdeptnm/>
  153. <slipdt/>
  154. <instcd/>
  155. <framt/>
  156. <toamt/>
  157. <unslno/>
  158. <checkyn/>
  159. <drawseqno>1</drawseqno>
  160. </condition>
  161. <unsl>
  162. <drsum/>
  163. <crsum/>
  164. <totdrsum/>
  165. <totcrsum/>
  166. </unsl>
  167. <apsl>
  168. <drsum/>
  169. <crsum/>
  170. <totdrsum/>
  171. <totcrsum/>
  172. </apsl>
  173. <maxdrawcnt>
  174. <maxdrawcnt/>
  175. </maxdrawcnt>
  176. <drawrestriction/>
  177. </hidden>
  178. <temp/>
  179. </root>
  180. </instance>
  181. <submission id="TRRAD00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/unsllist"/>
  182. <submission id="TRRAD00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/main/apsllist"/>
  183. <submission id="TRRAD00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/unsllistinfo"/>
  184. <submission id="TRRAD00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/main/apsllistinfo"/>
  185. <submission id="TXRAD00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unsllistinfo" resultref="/root/temp"/>
  186. <submission id="TXRAD00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/apsllistinfo" resultref="/root/temp"/>
  187. <submission id="TXRAD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data3" resultref="/root/temp"/>
  188. <bind id="bind_cpt_apdrsum" ref="/root/hidden/apsl/drsum" calculate="sum(/root/main/apsllistinfo/dramt)"/>
  189. <bind id="bind_cpt_apcrsum" ref="/root/hidden/apsl/crsum" calculate="sum(/root/main/apsllistinfo/cramt)"/>
  190. <bind id="bind_cpt_undrsum" ref="/root/hidden/unsl/drsum" calculate="sum(/root/main/unsllistinfo/dramt)"/>
  191. <bind id="bind_cpt_uncrsum" ref="/root/hidden/unsl/crsum" calculate="sum(/root/main/unsllistinfo/cramt)"/>
  192. <bind id="bind1" ref="/root/hidden/apsl/totdrsum" calculate="sum(/root/main/apsllist/dramt)"/>
  193. <bind id="bind2" ref="/root/hidden/apsl/totcrsum" calculate="sum(/root/main/apsllist/cramt)"/>
  194. <script type="javascript" ev:event="xforms-ready">
  195. <![CDATA[
  196. fCheckAuth();
  197. fInitialize();
  198. ]]>
  199. </script>
  200. <submission id="TRRAD00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data4/chkacntyy" resultref="/root/main/acntyylist"/>
  201. <submission id="TXRAD00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unsllistinfo" resultref="/root/temp"/>
  202. <submission id="TXRAD00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data5" resultref="/root/temp"/>
  203. <submission id="TRRAD00206" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/condition" resultref="/root/hidden/maxdrawcnt"/>
  204. </model>
  205. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  206. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  207. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  208. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  209. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  210. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  211. <script type="javascript">
  212. <![CDATA[
  213. //========================================================================================
  214. //초기화
  215. //========================================================================================
  216. function fInitialize() {
  217. var sToday = getCurrentDate().toString();
  218. model.removenode("/root/main/unsllist");
  219. model.removenode("/root/main/unsllistinfo");
  220. model.removenode("/root/main/apsllist");
  221. model.removenode("/root/main/apsllistinfo");
  222. model.refresh();
  223. model.setValue("/root/hidden/condition/slipfr", sToday);
  224. model.setValue("/root/hidden/condition/slipto", sToday);
  225. model.setValue("/root/hidden/condition/slipdt", sToday);
  226. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition7') == "Y")
  227. {
  228. misfComboComCdList("R0360", rdo_slipkind, "Y");
  229. }
  230. else
  231. {
  232. misfComboComCdList("R0359", rdo_slipkind, "Y");
  233. }
  234. fbtnSetting();
  235. fCheckAcountClose();
  236. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition9') == "Y")
  237. {
  238. model.setValue("/root/hidden/drawrestriction", "Y");
  239. ipt_drawseqno.disabled = true;
  240. btn_pre.disabled = true;
  241. btn_next.disabled = true;
  242. }
  243. else
  244. {
  245. model.setValue("/root/hidden/drawrestriction", "N");
  246. }
  247. model.setValue("/root/hidden/condition/instcd", getUserInfo("dutplceinstcd"));
  248. model.refresh();
  249. }
  250. //========================================================================================
  251. //화면 권한 체크
  252. //========================================================================================
  253. function fCheckAuth() {
  254. btn_search.disabled = !checkAuth("R") ;
  255. //btn_delete.disabled = !checkAuth("X") ;
  256. //btn_prt.disabled = !checkAuth("P") ;
  257. }
  258. //========================================================================================
  259. //각종 코드 Help Open
  260. //========================================================================================
  261. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  262. {
  263. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  264. model.refresh();
  265. }
  266. //========================================================================================
  267. //코드 Validation Check
  268. //========================================================================================
  269. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName)
  270. {
  271. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  272. {
  273. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  274. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName);
  275. model.refresh();
  276. model.setFocus(pNextIndex);
  277. }
  278. }
  279. //========================================================================================
  280. //회계 마감 Check
  281. //========================================================================================
  282. function fCheckAcountClose()
  283. {
  284. if(radfcheckAcountClose(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/slipdt")) == 'close')
  285. {
  286. btn_allreq.disabled = true;
  287. btn_req.disabled = true;
  288. btn_allaprv.disabled = true;
  289. btn_aprv.disabled = true;
  290. ipt_drawseqno.disabled = true;
  291. btn_pre.disabled = true;
  292. btn_next.disabled = true;
  293. btn_reqcanceal.disabled = true;
  294. btn_aprvcanceal.disabled = true;
  295. }
  296. }
  297. //========================================================================================
  298. //버튼 setting
  299. //========================================================================================
  300. function fbtnSetting()
  301. {
  302. var gubn = model.getValue("/root/hidden/condition/slipgubn");
  303. if (gubn == "U") {
  304. model.removeNodeset("/root/main/apsllist");
  305. model.removeNodeset("/root/main/apsllistinfo");
  306. //caption5.attribute("text") = "작성일자";
  307. caption35.attribute("text") = "미승인전표 목록";
  308. btn_allreq.visible = true;
  309. btn_req.visible = true;
  310. btn_allaprv.visible = false;
  311. btn_aprv.visible = false;
  312. ipt_drawseqno.visible = false;
  313. btn_pre.visible = false;
  314. btn_next.visible = false;
  315. btn_reqcanceal.visible = false;
  316. btn_aprvcanceal.visible = false;
  317. grd_unsllist.visible = true;
  318. grd_unsllistinfo.visible = true;
  319. grd_apsllist.visible = false;
  320. grd_apsllistinfo.visible = false;
  321. cpt_undrsum.visible = true;
  322. cpt_uncrsum.visible = true;
  323. cpt_apdrsum.visible = false;
  324. cpt_apcrsum.visible = false;
  325. cpt_totundrsum.visible = true;
  326. cpt_totuncrsum.visible = true;
  327. cpt_totapdrsum.visible = false;
  328. cpt_totapcrsum.visible = false;
  329. cap_slipdt.value = "전표승인요청일자";
  330. // grd_unsllist.colHidden(grd_unsllist.colRef("aprvreqdd")) = true;
  331. // sColWidth = "0, 30, 66, 65, 0, 0, 66, 0, 0, 60, 0, 0, 110, 0";
  332. //
  333. // var arrColWidth = sColWidth.split(",");
  334. // for(var i=0; i<arrColWidth.length; i++)
  335. // {
  336. // grd_unsllist.colWidth(i+1) = parseFloat(arrColWidth[i]);
  337. // }
  338. btn_search.dispatch("DOMActivate");
  339. model.removeNodeset("/root/main/unsllistinfo");
  340. model.refresh();
  341. }
  342. else if(gubn == "R") {
  343. model.removeNodeset("/root/main/apsllist");
  344. model.removeNodeset("/root/main/apsllistinfo");
  345. //caption5.attribute("text") = "승인요청일자";
  346. caption35.attribute("text") = "미승인전표 목록";
  347. btn_allreq.visible = false;
  348. btn_req.visible = false;
  349. btn_allaprv.visible = true;
  350. btn_aprv.visible = true;
  351. ipt_drawseqno.visible = true;
  352. btn_pre.visible = true;
  353. btn_next.visible = true;
  354. btn_reqcanceal.visible = true;
  355. btn_aprvcanceal.visible = false;
  356. grd_unsllist.visible = true;
  357. grd_unsllistinfo.visible = true;
  358. grd_apsllist.visible = false;
  359. grd_apsllistinfo.visible = false;
  360. cpt_undrsum.visible = true;
  361. cpt_uncrsum.visible = true;
  362. cpt_apdrsum.visible = false;
  363. cpt_apcrsum.visible = false;
  364. cpt_totundrsum.visible = true;
  365. cpt_totuncrsum.visible = true;
  366. cpt_totapdrsum.visible = false;
  367. cpt_totapcrsum.visible = false;
  368. cap_slipdt.value = "전표승인일자";
  369. // grd_unsllist.colHidden(grd_unsllist.colRef("aprvreqdd")) = false;
  370. // sColWidth = "0, 30, 66, 55, 0, 66, 50, 0, 0, 55, 0, 0, 125, 0";
  371. //
  372. // var arrColWidth = sColWidth.split(",");
  373. // for(var i=0; i<arrColWidth.length; i++)
  374. // {
  375. // grd_unsllist.colWidth(i+1) = parseFloat(arrColWidth[i]);
  376. // }
  377. // 출금번호 예외처리
  378. ipt_slipdt.dispatch("xforms-value-changed");
  379. btn_search.dispatch("DOMActivate");
  380. model.removeNodeset("/root/main/unsllistinfo");
  381. model.refresh();
  382. }
  383. else
  384. {
  385. model.removeNodeset("/root/main/unsllist");
  386. model.removeNodeset("/root/main/unsllistinfo");
  387. //caption5.attribute("text") = "승인일자";
  388. caption35.attribute("text") = "승인전표 목록";
  389. btn_allreq.visible = false;
  390. btn_req.visible = false;
  391. btn_allaprv.visible = false;
  392. btn_aprv.visible = false;
  393. ipt_drawseqno.visible = false;
  394. btn_pre.visible = false;
  395. btn_next.visible = false;
  396. btn_reqcanceal.visible = false;
  397. btn_aprvcanceal.visible = true;
  398. grd_unsllist.visible = false;
  399. grd_unsllistinfo.visible = false;
  400. grd_apsllist.visible = true;
  401. grd_apsllistinfo.visible = true;
  402. cpt_undrsum.visible = false;
  403. cpt_uncrsum.visible = false;
  404. cpt_apdrsum.visible = true;
  405. cpt_apcrsum.visible = true;
  406. cpt_totundrsum.visible = false;
  407. cpt_totuncrsum.visible = false;
  408. cpt_totapdrsum.visible = true;
  409. cpt_totapcrsum.visible = true;
  410. cap_slipdt.value = "전표승인일자";
  411. btn_search.dispatch("DOMActivate");
  412. model.removeNodeset("/root/main/apsllistinfo");
  413. model.refresh();
  414. }
  415. }
  416. //========================================================================================
  417. //날짜 형식 CHECK
  418. //========================================================================================
  419. function fCheckDate()
  420. {
  421. if(ipt_slipdt.value.length != 8)
  422. {
  423. messageBox("날짜 형식이 올바르지 않습니다.","I000");
  424. return false;
  425. }
  426. return true;
  427. }
  428. //========================================================================================
  429. //CHECK 금액 합산
  430. //========================================================================================
  431. function fSumCheckAmt()
  432. {
  433. var vSumDrAmt = 0;
  434. var vSumCrAmt = 0;
  435. for(var i = grd_unsllist.fixedRows ; i < grd_unsllist.rows ; i++)
  436. {
  437. if(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("selchk")) == "Y")
  438. {
  439. vSumDrAmt = vSumDrAmt + parseFloat(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("dramt")));
  440. vSumCrAmt = vSumCrAmt + parseFloat(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("cramt")));
  441. }
  442. }
  443. cpt_totundrsum.value = vSumDrAmt;
  444. cpt_totuncrsum.value = vSumCrAmt;
  445. cpt_totundrsum.refresh();
  446. cpt_totuncrsum.refresh();
  447. }
  448. //========================================================================================
  449. //CHECK 금액 합산
  450. //========================================================================================
  451. function fSlipCheck(gridlist, slipstatus)
  452. {
  453. if(gridlist.isCell(event.target) && gridlist.col == gridlist.colRef("checkyn"))
  454. {
  455. var cur_row = gridlist.row;
  456. model.setValue("/root/send/data5/status", "u");
  457. model.setValue("/root/send/data5/instcd", model.getValue(gridlist.nodeset + "["+cur_row+"]/instcd"));
  458. model.setValue("/root/send/data5/unsldd", model.getValue(gridlist.nodeset + "["+cur_row+"]/slipdt"));
  459. model.setValue("/root/send/data5/unslno", model.getValue(gridlist.nodeset + "["+cur_row+"]/slipno"));
  460. model.setValue("/root/send/data5/checkyn", model.getValue(gridlist.nodeset + "["+cur_row+"]/checkyn"));
  461. model.setValue("/root/send/data5/slipstatus", slipstatus);
  462. submit("TXRAD00204");
  463. }
  464. }
  465. ]]>
  466. </script>
  467. </xhtml:head>
  468. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1193;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  469. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  470. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">전표승인</caption>
  471. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  472. </group>
  473. <group id="group3" scroll="auto" style="left:0px; top:13; width:1195px; height:744px; ">
  474. <datagrid id="grd_apsllistinfo" nodeset="/root/main/apsllistinfo" visibility="hidden" caption="연번^발의부서코드^귀속부서코드^귀속부서명^계정코드^계정과목^상대처^적요^차변금액^대변금액^금액^차/대변구분^보조과목코드^거래처구분^거래처코드^기재사항1^기재사항2^기재사항3^기재사항4^기재사항5^기재사항6^미결전표일자^미결전표번호^기관코드^증빙구분^거래처잔액여부^출금요청일^전표구분" colsep="^" colwidth="48, 0, 0, 0, 71, 152, 80, 155, 92, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:485px; top:41px; width:710px; height:678px; ">
  475. <col ref="slipseqno"/>
  476. <col ref="slipdeptcd"/>
  477. <col ref="costcntrdeptcd"/>
  478. <col ref="costcntrdeptnm"/>
  479. <col ref="acntcd"/>
  480. <col ref="acntnm"/>
  481. <col ref="custnm"/>
  482. <col ref="etcnotefact"/>
  483. <col ref="dramt" format="(-)#,###" style="text-align:right; "/>
  484. <col ref="cramt" format="(-)#,###" style="text-align:right; "/>
  485. <col ref="amt" visibility="hidden"/>
  486. <col ref="drcrflag" visibility="hidden"/>
  487. <col ref="suppitemcd" visibility="hidden"/>
  488. <col ref="custflag" visibility="hidden"/>
  489. <col ref="custcd" visibility="hidden"/>
  490. <col ref="notefact1" visibility="hidden"/>
  491. <col ref="notefact2" visibility="hidden"/>
  492. <col ref="notefact3" visibility="hidden"/>
  493. <col ref="notefact4" visibility="hidden"/>
  494. <col ref="notefact5" visibility="hidden"/>
  495. <col ref="notefact6" visibility="hidden"/>
  496. <col ref="slipdt" visibility="hidden"/>
  497. <col ref="slipno" visibility="hidden"/>
  498. <col ref="instcd" visibility="hidden"/>
  499. <col ref="profflag" visibility="hidden"/>
  500. <col ref="custbalyn" visibility="hidden"/>
  501. <col ref="defrayreqdd" visibility="hidden"/>
  502. <col ref="slipflag" visibility="hidden"/>
  503. </datagrid>
  504. <datagrid id="grd_unsllistinfo" nodeset="/root/main/unsllistinfo" caption="연번^발의부서코드^귀속부서코드^귀속부서명^계정코드^계정과목^상대처^적요^차변금액^대변금액^금액^차/대변구분^보조과목코드^거래처구분^거래처코드^기재사항1^기재사항2^기재사항3^기재사항4^기재사항5^기재사항6^미결전표일자^미결전표번호^기관코드^승인일자^증빙구분^거래처잔액여부^출금요청일^승인요청일^승인요청여부^전표구분^자동분개구분" colsep="^" colwidth="48, 0, 0, 0, 71, 152, 80, 155, 92, 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:485px; top:41px; width:710px; height:678px; ">
  505. <col ref="slipseqno"/>
  506. <col ref="slipdeptcd"/>
  507. <col ref="costcntrdeptcd"/>
  508. <col ref="costcntrdeptnm"/>
  509. <col ref="acntcd"/>
  510. <col ref="acntnm"/>
  511. <col ref="custnm"/>
  512. <col ref="etcnotefact"/>
  513. <col ref="dramt" format="(-)#,###" style="text-align:right; "/>
  514. <col ref="cramt" format="(-)#,###" style="text-align:right; "/>
  515. <col ref="amt" visibility="hidden"/>
  516. <col ref="drcrflag" visibility="hidden"/>
  517. <col ref="suppitemcd" visibility="hidden"/>
  518. <col ref="custflag" visibility="hidden"/>
  519. <col ref="custcd" visibility="hidden"/>
  520. <col ref="notefact1" visibility="hidden"/>
  521. <col ref="notefact2" visibility="hidden"/>
  522. <col ref="notefact3" visibility="hidden"/>
  523. <col ref="notefact4" visibility="hidden"/>
  524. <col ref="notefact5" visibility="hidden"/>
  525. <col ref="notefact6" visibility="hidden"/>
  526. <col ref="slipdt" visibility="hidden"/>
  527. <col ref="slipno" visibility="hidden"/>
  528. <col ref="instcd" visibility="hidden"/>
  529. <col ref="slipdd" visibility="hidden"/>
  530. <col ref="profflag" visibility="hidden"/>
  531. <col ref="custbalyn" visibility="hidden"/>
  532. <col ref="defrayreqdd" visibility="hidden"/>
  533. <col ref="aprvreqdd" visibility="hidden"/>
  534. <col ref="aprvreqyn" visibility="hidden"/>
  535. <col ref="slipflag" visibility="hidden"/>
  536. <col ref="autjournflag" visibility="hidden"/>
  537. <col ref="drawseqno" visibility="hidden"/>
  538. </datagrid>
  539. <button id="btn_allreq" class="btn2_letter6" disabled="false" style="left:393px; top:125px; width:86px; height:19px; ">
  540. <caption>일괄승인요청</caption>
  541. <script type="javascript" ev:event="DOMActivate">
  542. <![CDATA[
  543. if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "slipreqapproval", "Y") != "Y")
  544. {
  545. messageBox("권한이 없습니다.","I000");
  546. return false;
  547. }
  548. if(!fCheckDate())return;
  549. if (model.getValue("/root/hidden/condition/slipgubn") == "U")
  550. {
  551. var iFindrow = grd_unsllist.findRow("Y",1,2);
  552. if (iFindrow == -1) {
  553. messageBox("일괄승인요청할 항목을 선택하세요.","I000");
  554. return;
  555. }
  556. if (messageBox("전표 일괄승인요청 작업을","Q004") != "6") {
  557. return;
  558. }
  559. grd_unsllist.col = 3;
  560. for (i=1; i<grd_unsllist.rows; i++)
  561. {
  562. selchk = grd_unsllist.valueMatrix(i,2); //grd_unsllist.findRow("Y", 1, 2, false, false);
  563. if (selchk == "Y") {
  564. grd_unsllist.row = i;
  565. grd_unsllist.dispatch("onrowchanged");
  566. //btn_aprv.dispatch("DOMActivate");
  567. if (model.getValue("/root/hidden/condition/slipgubn") == "U")
  568. {
  569. for (j=1; j<grd_unsllistinfo.rows; j++) {
  570. grd_unsllistinfo.addStatus(j, "update");
  571. model.setValue("/root/main/unsllistinfo["+j+"]/aprvreqyn","Y");
  572. model.setValue("/root/main/unsllistinfo["+j+"]/aprvreqdd",ipt_slipdt.value);
  573. }
  574. model.refresh();
  575. model.setValue("/root/send/unsllistinfo",grd_unsllistinfo.getUpdateData());
  576. if (submit("TXRAD00203"))
  577. {
  578. grd_unsllistinfo.clearStatus();
  579. model.setValue("/root/send/unsllistinfo","");
  580. grd_unsllist.valueMatrix(i,2) = "N";
  581. model.removeNodeset("/root/main/unsllistinfo");
  582. model.refresh();
  583. }
  584. }
  585. }
  586. }
  587. btn_search.dispatch("DOMActivate");
  588. }
  589. ]]>
  590. </script>
  591. </button>
  592. <datagrid id="grd_apsllist" nodeset="/root/main/apsllist" visibility="hidden" caption="기관코드^발의일자^전표번호^승인일자^승인번호^미결전표작성자^승인자^전표구분^확인^전표유형^발의부서^발의부서^적요^차변금액^대변금액^출금차수" colsep="^" colwidth="0, 74, 57, 74, 57, 0, 75, 90, 30, 0, 0, 125, 0, 0, 0, 65" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:152px; width:484px; height:566px; ">
  593. <col ref="instcd" visibility="hidden"/>
  594. <col ref="unsldt" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  595. <col ref="unslno"/>
  596. <col ref="slipdt" type="output" format="yyyy-mm-dd" style="text-align:center; "/>
  597. <col ref="slipno"/>
  598. <col ref="unslwrit" visibility="hidden"/>
  599. <col ref="usernm"/>
  600. <col ref="slipflag"/>
  601. <col checkvalue="Y,N" ref="checkyn" type="checkbox"/>
  602. <col ref="slipkind" visibility="hidden"/>
  603. <col ref="slipdeptcd" visibility="hidden"/>
  604. <col ref="slipdeptnm"/>
  605. <col ref="etcnotefact" visibility="hidden"/>
  606. <col ref="dramt" visibility="hidden"/>
  607. <col ref="cramt" visibility="hidden"/>
  608. <col ref="drawseqno" style="text-align:center; "/>
  609. <script type="javascript" ev:event="onrowchanged">
  610. <![CDATA[
  611. var cur_row = grd_apsllist.row;
  612. if ( cur_row > 0 ) {
  613. model.setValue("/root/send/data2/instcd", model.getValue("/root/main/apsllist["+cur_row+"]/instcd"));
  614. model.setValue("/root/send/data2/slipdt", model.getValue("/root/main/apsllist["+cur_row+"]/slipdt"));
  615. model.setValue("/root/send/data2/slipno", model.getValue("/root/main/apsllist["+cur_row+"]/slipno"));
  616. model.refresh();
  617. submit("TRRAD00204");
  618. model.setFocus("grd_apsllistinfo");
  619. }
  620. model.setValue("/root/hidden/condition/slipdt", grd_apsllist.valueMatrix(grd_apsllist.row, grd_apsllist.colRef("slipdt")));
  621. ipt_slipdt.refresh();
  622. ipt_slipdt.dispatch("xforms-value-changed");
  623. grd_apsllist.dispatch("onmouseup");
  624. ]]>
  625. </script>
  626. <script type="javascript" ev:event="ondblclick">
  627. <![CDATA[
  628. if (grd_apsllist.row > 0) {
  629. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/apsllist["+grd_apsllist.row+"]/instcd"));
  630. model.makeValue("/root/source/slipinfo/slipdt", model.getValue("/root/main/apsllist["+grd_apsllist.row+"]/unsldt"));
  631. model.makeValue("/root/source/slipinfo/slipno", model.getValue("/root/main/apsllist["+grd_apsllist.row+"]/unslno"));
  632. model.refresh();
  633. modal("SMRAD00100","","","","","/root/source", "/root/target" );
  634. }
  635. ]]>
  636. </script>
  637. <script type="javascript" ev:event="onclick">
  638. <![CDATA[
  639. fSlipCheck(grd_apsllist, "A");
  640. ]]>
  641. </script>
  642. </datagrid>
  643. <datagrid id="grd_unsllist" nodeset="/root/main/unsllist" caption="기관코드^선택^발의일자^전표번호^미결전표작성자^요청일자^발의자^미결전표일자^미결전표번호^전표구분^전표유형^발의부서^발의부서^확인^차변금액^대변금액^예산사용계정^압류거래처여부" colsep="^" colwidth="0, 30, 66, 55, 0, 66, 50, 0, 0, 55, 0, 0, 105, 30, 0, 0, 100, 0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:152px; width:480px; height:566px; ">
  644. <col ref="instcd" visibility="hidden"/>
  645. <col checkvalue="Y,N" ref="selchk" type="checkbox"/>
  646. <col ref="slipdt" type="output" format="yyyy-mm-dd"/>
  647. <col ref="slipno"/>
  648. <col ref="unslwrit" visibility="hidden"/>
  649. <col ref="aprvreqdd" type="output" format="yyyy-mm-dd"/>
  650. <col ref="usernm"/>
  651. <col ref="unsldt" visibility="hidden"/>
  652. <col ref="unslno" visibility="hidden"/>
  653. <col ref="slipflag"/>
  654. <col ref="slipkind" visibility="hidden"/>
  655. <col ref="slipdeptcd" visibility="hidden"/>
  656. <col ref="slipdeptnm" style="left:342px; top:23px; width:105px; height:23px; "/>
  657. <col checkvalue="Y,N" ref="checkyn" type="checkbox" style="left:447px; top:23px; width:30px; height:23px; "/>
  658. <col ref="dramt" visibility="hidden"/>
  659. <col ref="cramt" visibility="hidden"/>
  660. <col ref="bugtacntyn" visibility="hidden"/>
  661. <col ref="seizureyn" visibility="hidden"/>
  662. <script type="javascript" ev:event="onrowchanged">
  663. <![CDATA[
  664. if(grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")) > model.getValue("/root/hidden/condition/slipdt"))
  665. {
  666. model.setValue("/root/hidden/condition/slipdt", grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")))
  667. }
  668. var cur_row = grd_unsllist.row;
  669. if (grd_unsllist.col == 2)
  670. {
  671. return;
  672. }
  673. if ( cur_row > 0)
  674. {
  675. model.setValue("/root/send/data2/instcd", model.getValue("/root/main/unsllist["+cur_row+"]/instcd"));
  676. model.setValue("/root/send/data2/slipdt", model.getValue("/root/main/unsllist["+cur_row+"]/slipdt"));
  677. model.setValue("/root/send/data2/slipno", model.getValue("/root/main/unsllist["+cur_row+"]/slipno"));
  678. model.refresh();
  679. submit("TRRAD00203");
  680. model.setFocus("grd_unsllistinfo");
  681. }
  682. grd_unsllist.dispatch("onmouseup");
  683. ]]>
  684. </script>
  685. <script type="javascript" ev:event="ondblclick">
  686. <![CDATA[
  687. if (grd_unsllist.isCell(event.target) && grd_unsllist.row > 0) {
  688. model.makeValue("/root/source/slipinfo/instcd", model.getValue("/root/main/unsllist["+grd_unsllist.row+"]/instcd"));
  689. model.makeValue("/root/source/slipinfo/slipdt", model.getValue("/root/main/unsllist["+grd_unsllist.row+"]/slipdt"));
  690. model.makeValue("/root/source/slipinfo/slipno", model.getValue("/root/main/unsllist["+grd_unsllist.row+"]/slipno"));
  691. model.refresh();
  692. modal("SMRAD08100","","","","","/root/source", "/root/target" );
  693. }
  694. ]]>
  695. </script>
  696. <script type="javascript" ev:event="xforms-value-changed">
  697. <![CDATA[
  698. // if(grd_unsllist.col == grd_unsllist.colRef("selchk") && model.getValue("/root/hidden/condition/slipgubn") == "U")
  699. // {
  700. // if(grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("selchk")) == "Y")
  701. // {
  702. // if(model.getValue("/root/main/unsllist[" + grd_unsllist.row + "]/bugtaprvyn") == "N" && model.getValue("/root/main/unsllist[" + grd_unsllist.row + "]/bugtautoaprvyn") == "N")
  703. // {
  704. // messageBox("기획팀 예산 승인되지 않은 항목을 승인", "E001");
  705. //
  706. // grd_unsllist.rowStatus(grd_unsllist.row) = 0;
  707. // grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("selchk")) = "N";
  708. // }
  709. // }
  710. // } --> 한출 씩 검색해야 한다. 계산식을 오른쪽 그리드로 빼야한다.
  711. fSumCheckAmt();
  712. ]]>
  713. </script>
  714. <script type="javascript" ev:event="onclick">
  715. <![CDATA[
  716. fSlipCheck(grd_unsllist, "U");
  717. ]]>
  718. </script>
  719. </datagrid>
  720. <line id="line1" class="line_1" style="x1:0px; y1:147px; x2:478px; y2:147px; "/>
  721. <group id="group4" style="left:0px; top:10px; width:480px; height:110px; vertical-align:top; ">
  722. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:479px; height:109px; background-color:#fffbf2; border-color:#ffd799; "/>
  723. <caption id="caption5" class="search_name" style="left:11px; top:10px; width:17px; height:17px; ">발의일자 :</caption>
  724. <caption id="caption7" class="search_name" style="left:11px; top:33px; width:87px; height:17px; ">전표종류 :</caption>
  725. <line id="line30" class="line_4" style="x1:411px; y1:8px; x2:411px; y2:49px; "/>
  726. <caption id="caption8" class="search_name" style="left:11px; top:57px; width:87px; height:17px; ">전표유형 :</caption>
  727. <caption id="caption37" class="search_name" style="left:11px; top:81px; width:87px; height:17px; ">발의부서 :</caption>
  728. <input id="input6" ref="/root/hidden/condition/slipfr" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:100px; height:19px; "/>
  729. <input id="input2" ref="/root/hidden/condition/slipto" class="input_s_essential" inputtype="date" style="left:255px; top:8px; width:100px; height:19px; "/>
  730. <caption id="caption38" style="left:225px; top:10px; width:15px; height:20px; ">~</caption>
  731. <select1 id="rdo_gubn" ref="/root/hidden/condition/slipgubn" class="radio_search" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:105px; top:32px; width:225px; height:20px; vertical-align:middle; border-style:none; ">
  732. <choices>
  733. <item>
  734. <label>미승인</label>
  735. <value>U</value>
  736. </item>
  737. <item>
  738. <label>승인요청</label>
  739. <value>R</value>
  740. </item>
  741. <item>
  742. <label>승인</label>
  743. <value>A</value>
  744. </item>
  745. </choices>
  746. <script type="javascript" ev:event="xforms-value-changed">
  747. <![CDATA[
  748. // if(rdo_gubn.value == 'U')
  749. // {
  750. // model.setValue(cmb_checkyn.attribute("ref"), "");
  751. // cmb_checkyn.disabled = false;
  752. // }
  753. // else
  754. // {
  755. // model.setValue(cmb_checkyn.attribute("ref"), "");
  756. // cmb_checkyn.disabled = true;
  757. // }
  758. // cmb_checkyn.refresh();
  759. fbtnSetting();
  760. fCheckAcountClose();
  761. ]]>
  762. </script>
  763. </select1>
  764. <select1 id="rdo_slipkind" ref="/root/hidden/condition/slipkind" class="radio_search" overflow="visible" appearance="full" cellspacing="10" cols="5" style="left:105px; top:56px; width:290px; height:20px; vertical-align:middle; border-style:none; ">
  765. <choices>
  766. <itemset>
  767. <label/>
  768. <value/>
  769. </itemset>
  770. </choices>
  771. </select1>
  772. <input id="ipt_slipdeptnm" ref="/root/hidden/condition/slipdeptnm" class="input_essential" navindex="7" style="left:209px; top:81px; width:166px; height:19px; ">
  773. <script type="javascript" ev:event="onkeypress">
  774. <![CDATA[
  775. if (event.keyCode == "13") {
  776. model.setFocus("btn_search");
  777. }
  778. ]]>
  779. </script>
  780. <script type="javascript" ev:event="xforms-value-changed">
  781. <![CDATA[
  782. fValidationCheck("02", "slipdeptcd,slipdeptnm", "", "btn_search");
  783. ]]>
  784. </script>
  785. </input>
  786. <button id="btn_slipdeptcd" class="icon_search" style="left:189px; top:83px; width:16px; height:16px; ">
  787. <caption/>
  788. <script type="javascript" ev:event="DOMActivate">
  789. <![CDATA[
  790. fOpenPopupHelp("02", ipt_slipdeptcd, "slipdeptcd,slipdeptnm", "");
  791. model.setFocus("rdo_profflag");
  792. ]]>
  793. </script>
  794. </button>
  795. <input id="ipt_slipdeptcd" ref="/root/hidden/condition/slipdeptcd" class="input_essential" navindex="6" style="left:105px; top:81px; width:80px; height:19px; ">
  796. <script type="javascript" ev:event="onkeypress">
  797. <![CDATA[
  798. if (event.keyCode == "13") {
  799. model.setFocus("btn_search");
  800. }
  801. ]]>
  802. </script>
  803. <script type="javascript" ev:event="xforms-value-changed">
  804. <![CDATA[
  805. fValidationCheck("02", "slipdeptcd,slipdeptnm", "", "btn_search");
  806. ]]>
  807. </script>
  808. </input>
  809. <button id="btn_search" class="btn1_letter2" style="left:417px; top:19px; width:56px; height:22px; ">
  810. <caption>조회</caption>
  811. <script type="javascript" ev:event="DOMActivate">
  812. <![CDATA[
  813. model.setValue("/root/send/data1/instcd", model.getValue("/root/hidden/condition/instcd"));
  814. model.setValue("/root/send/data1/ddkind", model.getValue("/root/hidden/condition/ddkind"));
  815. model.setValue("/root/send/data1/slipfr", model.getValue("/root/hidden/condition/slipfr"));
  816. model.setValue("/root/send/data1/slipto", model.getValue("/root/hidden/condition/slipto"));
  817. model.setValue("/root/send/data1/slipkind", model.getValue("/root/hidden/condition/slipkind"));
  818. model.setValue("/root/send/data1/checkyn", model.getValue("/root/hidden/condition/checkyn"));
  819. model.setValue("/root/send/data1/slipdeptcd", model.getValue("/root/hidden/condition/slipdeptcd"));
  820. model.setValue("/root/send/data1/slipgubn", model.getValue("/root/hidden/condition/slipgubn"));
  821. model.setValue("/root/send/data1/framt", model.getValue("/root/hidden/condition/framt"));
  822. model.setValue("/root/send/data1/toamt", model.getValue("/root/hidden/condition/toamt"));
  823. model.setValue("/root/send/data1/unslno", model.getValue("/root/hidden/condition/unslno"));
  824. model.refresh();
  825. model.removeNodeset("/root/main/unsllistinfo");
  826. model.removeNodeset("/root/main/apsllistinfo");
  827. model.refresh();
  828. if (model.getValue("/root/hidden/condition/slipgubn") == "U" || model.getValue("/root/hidden/condition/slipgubn") == "R")
  829. {
  830. submit("TRRAD00201");
  831. ipt_slipdt.disabled = false;
  832. }
  833. else
  834. {
  835. submit("TRRAD00202");
  836. ipt_slipdt.disabled = true;
  837. }
  838. ipt_slipdt.dispatch("xforms-value-changed");
  839. ]]>
  840. </script>
  841. </button>
  842. <input id="ipt_instcd" ref="/root/hidden/condition/instcd" class="input_essential" navindex="6" visibility="hidden" style="left:420px; top:56px; width:10px; height:19px; ">
  843. <script type="javascript" ev:event="onkeypress">
  844. <![CDATA[
  845. if (event.keyCode == "13") {
  846. model.setFocus("btn_search");
  847. }
  848. ]]>
  849. </script>
  850. <script type="javascript" ev:event="xforms-value-changed">
  851. <![CDATA[
  852. fValidationCheck("02", "slipdeptcd,slipdeptnm", "", "btn_search");
  853. ]]>
  854. </script>
  855. </input>
  856. <input id="input1" ref="/root/hidden/condition/framt" class="input_essential" navindex="6" visibility="hidden" format="(-)#,###" style="left:400px; top:56px; width:10px; height:19px; text-align:right; "/>
  857. <input id="input3" ref="/root/hidden/condition/toamt" class="input_essential" navindex="6" visibility="hidden" format="(-)#,###" style="left:410px; top:56px; width:10px; height:19px; text-align:right; "/>
  858. <select1 id="cmb_ddkind" ref="/root/hidden/condition/ddkind" appearance="minimal" style="left:31px; top:8px; width:75px; height:19px; font-family:굴림체; font-size:8pt; font-weight:bold; ">
  859. <choices>
  860. <item>
  861. <label>발의일자</label>
  862. <value>wd</value>
  863. </item>
  864. <item>
  865. <label>출금일자</label>
  866. <value>od</value>
  867. </item>
  868. <item>
  869. <label>요청일자</label>
  870. <value>rd</value>
  871. </item>
  872. </choices>
  873. </select1>
  874. <input id="ipt_unslno" ref="/root/hidden/condition/unslno" class="input_essential" navindex="7" style="left:426px; top:81px; width:46px; height:19px; ">
  875. <script type="javascript" ev:event="onkeypress">
  876. <![CDATA[
  877. if (event.keyCode == "13")
  878. {
  879. model.setFocus("btn_search");
  880. }
  881. ]]>
  882. </script>
  883. <script type="javascript" ev:event="xforms-value-changed">
  884. <![CDATA[
  885. var vUnslno = model.getValue("/root/hidden/condition/unslno").getLeftPad(4,"0");
  886. if(vUnslno != "0000")
  887. {
  888. model.setValue("/root/hidden/condition/unslno",vUnslno);
  889. }
  890. else
  891. {
  892. model.setValue("/root/hidden/condition/unslno","");
  893. }
  894. ipt_unslno.refresh();
  895. btn_search.dispatch("DOMActivate");
  896. ]]>
  897. </script>
  898. </input>
  899. <output id="output1" style="left:430px; top:60px; width:40px; height:19px; text-align:center; vertical-align:middle; ">번호</output>
  900. <select1 id="cmb_checkyn" ref="/root/hidden/condition/checkyn" appearance="minimal" style="left:330px; top:32px; width:75px; height:19px; font-family:굴림체; font-size:8pt; font-weight:bold; ">
  901. <choices>
  902. <item>
  903. <label>전체</label>
  904. <value/>
  905. </item>
  906. <item>
  907. <label>확인</label>
  908. <value>Y</value>
  909. </item>
  910. <item>
  911. <label>미확인</label>
  912. <value>N</value>
  913. </item>
  914. </choices>
  915. </select1>
  916. </group>
  917. <line id="line4" class="line_1" style="x1:486px; y1:33px; x2:1193px; y2:33px; "/>
  918. <caption id="cap_slipdt" class="cell_1" style="left:486px; top:10px; width:150px; height:23px; text-align:center; vertical-align:middle; ">전표승인일자</caption>
  919. <input id="ipt_slipdt" ref="/root/hidden/condition/slipdt" class="input_essential" inputtype="date" style="left:638px; top:12px; width:120px; height:19px; ">
  920. <script type="javascript" ev:event="xforms-value-changed">
  921. <![CDATA[
  922. fCheckAcountClose();
  923. // 출금번호 예외처리
  924. if(model.getValue("/root/hidden/drawrestriction") == "Y" && rdo_gubn.value == 'R')
  925. {
  926. submit("TRRAD00206");
  927. model.setValue(ipt_drawseqno.attribute("ref"), model.getValue("/root/hidden/maxdrawcnt/maxdrawcnt"));
  928. ipt_drawseqno.refresh();
  929. }
  930. ]]>
  931. </script>
  932. </input>
  933. <caption id="caption35" class="tit_2" style="left:5px; top:131px; width:118px; height:13px; ">전표 목록</caption>
  934. <line id="line9" class="line_3" style="x1:486px; y1:9px; x2:1193px; y2:9px; "/>
  935. <caption id="caption10" class="cell_1" style="left:830px; top:719px; width:120px; height:23px; text-align:center; vertical-align:middle; ">금액합계</caption>
  936. <caption id="cpt_undrsum" ref="/root/hidden/unsl/drsum" format="(-)#,###" style="left:951px; top:719px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcccc; "/>
  937. <caption id="cpt_apdrsum" ref="/root/hidden/apsl/drsum" visibility="hidden" format="(-)#,###" style="left:951px; top:719px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcccc; "/>
  938. <caption id="cpt_uncrsum" ref="/root/hidden/unsl/crsum" format="(-)#,###" style="left:1072px; top:719px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcc99; "/>
  939. <caption id="cpt_apcrsum" ref="/root/hidden/apsl/crsum" visibility="hidden" format="(-)#,###" style="left:1072px; top:719px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcc99; "/>
  940. <button id="btn_allaprv" class="btn2_letter4" disabled="false" style="left:415px; top:125px; width:64px; height:19px; ">
  941. <caption>일괄승인</caption>
  942. <script type="javascript" ev:event="DOMActivate">
  943. <![CDATA[
  944. ipt_slipdt.dispatch("xforms-value-changed"); // 출금번호 예외처리
  945. if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "sliprecognition", "Y") != "Y")
  946. {
  947. messageBox("권한이 없습니다.","I000");
  948. return false;
  949. }
  950. if(!fCheckDate())return;
  951. var vDD = model.getValue("/root/hidden/condition/slipdt");
  952. if (model.getValue("/root/hidden/condition/slipgubn") == "R")
  953. {
  954. var i,j;
  955. var selchk;
  956. var iFindrow = grd_unsllist.findRow("Y",1,2);
  957. if (iFindrow == -1) {
  958. messageBox("일괄승인할 항목을 선택하세요.","I000");
  959. return;
  960. }
  961. if (messageBox("전표 일괄승인 작업을","Q004") != "6") {
  962. return;
  963. }
  964. for (i=1; i<grd_unsllist.rows; i++) {
  965. selchk = grd_unsllist.valueMatrix(i,grd_unsllist.colRef("selchk"));
  966. if (selchk == "Y")
  967. {
  968. model.setValue("/root/send/data4/chkacntyy", grd_unsllist.valueMatrix(i, grd_unsllist.colRef("slipdt")));
  969. submit("TRRAD00205");
  970. if(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("bugtacntyn")) == "Y" && (model.getValue("/root/hidden/condition/slipdt") < model.getValue("/root/main/acntyylist/frdd") || model.getValue("/root/hidden/condition/slipdt") > model.getValue("/root/main/acntyylist/todd") || model.getValue("/root/main/acntyylist/frdd") == "" || model.getValue("/root/main/acntyylist/todd") == ""))
  971. {
  972. messageBox("회계년도가 다름", "I000");
  973. return;
  974. }
  975. }
  976. }
  977. grd_unsllist.col = 3;
  978. for (i=1; i<grd_unsllist.rows; i++)
  979. {
  980. selchk = grd_unsllist.valueMatrix(i,2); //grd_unsllist.findRow("Y", 1, 2, false, false);
  981. if (selchk == "Y") {
  982. grd_unsllist.row = i;
  983. grd_unsllist.dispatch("onrowchanged");
  984. //btn_aprv.dispatch("DOMActivate");
  985. if (model.getValue("/root/hidden/condition/slipgubn") == "R")
  986. {
  987. var drsumamt = 0;
  988. var crsumamt = 0;
  989. for(var m = grd_unsllistinfo.fixedRows ; m < grd_unsllistinfo.rows ; m ++)
  990. {
  991. drsumamt += parseInt(grd_unsllistinfo.valueMatrix(m, grd_unsllistinfo.colRef("dramt")));
  992. crsumamt += parseInt(grd_unsllistinfo.valueMatrix(m, grd_unsllistinfo.colRef("cramt")));
  993. if(grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("custflag")) == "1")
  994. {
  995. if(radfseizureynCheck(getUserInfo("dutplceinstcd"), grd_unsllistinfo.valueMatrix(m, grd_unsllistinfo.colRef("custcd")), "N") == "Y")
  996. {
  997. messageBox("연번[" + grd_unsllistinfo.valueMatrix(m, grd_unsllistinfo.colRef("slipseqno")) + "] " + grd_unsllistinfo.valueMatrix(m, grd_unsllistinfo.colRef("custnm")) + "(은)는 압류 거래처입니다." ,"I000");
  998. }
  999. }
  1000. }
  1001. if(drsumamt != crsumamt)
  1002. {
  1003. alert("차대변금액이 일치하지 않습니다.");
  1004. return;
  1005. }
  1006. //alert(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("slipdt")));
  1007. //alert(model.getValue("/root/hidden/condition/slipdt"));
  1008. if(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("slipdt")) > vDD)
  1009. {
  1010. // 출금번호 예외처리
  1011. if (model.getValue("/root/hidden/drawrestriction") != "Y" && messageBox("승인일이 전송일보다 빠릅니다.\n승인일을 전송일로 설정하시겠습니까?\n (예 : 승인일->" + grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")) + " 아니오->" + vDD + ")", "Q000") == "6")
  1012. {
  1013. model.setValue("/root/hidden/condition/slipdt", grd_unsllist.valueMatrix(i, grd_unsllist.colRef("slipdt")))
  1014. }
  1015. else
  1016. {
  1017. model.setValue("/root/hidden/condition/slipdt", vDD);
  1018. }
  1019. }
  1020. for (j=1; j<grd_unsllistinfo.rows; j++) {
  1021. grd_unsllistinfo.addStatus(j, "insert");
  1022. model.setValue("/root/main/unsllistinfo["+j+"]/slipdd",model.getValue("/root/hidden/condition/slipdt"));
  1023. model.setValue("/root/main/unsllistinfo["+j+"]/drawseqno",model.getValue("/root/hidden/condition/drawseqno"));
  1024. }
  1025. model.refresh();
  1026. model.setValue("/root/send/unsllistinfo",grd_unsllistinfo.getUpdateData());
  1027. if (submit("TXRAD00201"))
  1028. {
  1029. grd_unsllistinfo.clearStatus();
  1030. model.setValue("/root/send/unsllistinfo","");
  1031. grd_unsllist.valueMatrix(i,2) = "N";
  1032. model.removeNodeset("/root/main/unsllistinfo");
  1033. model.refresh();
  1034. }
  1035. }
  1036. }
  1037. }
  1038. btn_search.dispatch("DOMActivate");
  1039. }
  1040. ]]>
  1041. </script>
  1042. </button>
  1043. <button id="btn_unsltrans" class="btn2_letter4" visibility="hidden" style="left:1129px; top:13px; width:64px; height:19px; ">
  1044. <caption>전송취소</caption>
  1045. <script type="javascript" ev:event="DOMActivate">
  1046. <![CDATA[
  1047. var row = grd_unsllist.row;
  1048. if (row == -1) {
  1049. messageBox("취소할 전표를 선택하세요.","I000");
  1050. return;
  1051. }
  1052. ret = messageBox("재무팀으로 전송된 내역을 취소합니다.\n\n작업을","Q004");
  1053. if (ret == "6") {
  1054. model.setValue("/root/send/data3/instcd",model.getValue("/root/main/unsllist["+ row +"]/instcd"));
  1055. model.setValue("/root/send/data3/unsldd",model.getValue("/root/main/unsllist["+ row +"]/unsldt"));
  1056. model.setValue("/root/send/data3/unslno",model.getValue("/root/main/unsllist["+ row +"]/unslno"));
  1057. model.setValue("/root/send/data3/sanctyn","N");
  1058. model.setValue("/root/send/data3/refreshyn","N");
  1059. model.refresh();
  1060. if (submit("TXRAD00102")) {
  1061. btn_search.dispatch("DOMActivate");
  1062. model.removeNodeset("/root/main/unsllistinfo");
  1063. model.refresh();
  1064. }
  1065. } else {
  1066. return;
  1067. }
  1068. ]]>
  1069. </script>
  1070. </button>
  1071. <button id="btn_aprvcanceal" class="btn2_letter4" disabled="false" style="left:763px; top:13px; width:64px; height:19px; ">
  1072. <caption>승인취소</caption>
  1073. <script type="javascript" ev:event="DOMActivate">
  1074. <![CDATA[
  1075. if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "slipcancel", "Y") != "Y")
  1076. {
  1077. messageBox("권한이 없습니다.","I000");
  1078. return false;
  1079. }
  1080. if (model.getValue("/root/hidden/condition/slipgubn") == "A")
  1081. {
  1082. if (grd_apsllistinfo.rows == 1) {
  1083. messageBox("승인취소할 전표를 선택하세요.","I000");
  1084. return;
  1085. }
  1086. for (i=1; i<grd_apsllistinfo.rows; i++) {
  1087. grd_apsllistinfo.addStatus(i, "delete");
  1088. }
  1089. model.refresh();
  1090. model.setValue("/root/send/apsllistinfo",grd_apsllistinfo.getUpdateData());
  1091. if (submit("TXRAD00202"))
  1092. {
  1093. grd_apsllistinfo.clearStatus();
  1094. model.setValue("/root/send/apsllistinfo","");
  1095. btn_search.dispatch("DOMActivate");
  1096. model.removeNodeset("/root/main/apsllistinfo");
  1097. model.refresh();
  1098. }
  1099. }
  1100. ]]>
  1101. </script>
  1102. </button>
  1103. <button id="btn_req" class="btn2_letter6" disabled="false" style="left:763px; top:13px; width:86px; height:19px; ">
  1104. <caption>전표승인요청</caption>
  1105. <script type="javascript" ev:event="DOMActivate">
  1106. <![CDATA[
  1107. if(!fCheckDate())return;
  1108. if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "slipreqapproval", "Y") != "Y")
  1109. {
  1110. messageBox("권한이 없습니다.","I000");
  1111. return false;
  1112. }
  1113. if (model.getValue("/root/hidden/condition/slipgubn") == "U")
  1114. {
  1115. if (grd_unsllistinfo.rows == 1) {
  1116. messageBox("승인요청할 전표를 선택하세요.","I000");
  1117. return;
  1118. }
  1119. for (i=1; i<grd_unsllistinfo.rows; i++)
  1120. {
  1121. grd_unsllistinfo.addStatus(i, "update");
  1122. model.setValue("/root/main/unsllistinfo["+i+"]/aprvreqyn","Y");
  1123. model.setValue("/root/main/unsllistinfo["+i+"]/aprvreqdd",ipt_slipdt.value);
  1124. }
  1125. model.refresh();
  1126. model.setValue("/root/send/unsllistinfo",grd_unsllistinfo.getUpdateData());
  1127. if (submit("TXRAD00203"))
  1128. {
  1129. grd_unsllistinfo.clearStatus();
  1130. model.setValue("/root/send/unsllistinfo","");
  1131. btn_search.dispatch("DOMActivate");
  1132. model.removeNodeset("/root/main/unsllistinfo");
  1133. model.refresh();
  1134. }
  1135. }
  1136. ]]>
  1137. </script>
  1138. </button>
  1139. <button id="btn_aprv" class="btn2_letter4" disabled="false" style="left:848px; top:13px; width:64px; height:19px; ">
  1140. <caption>전표승인</caption>
  1141. <script type="javascript" ev:event="DOMActivate">
  1142. <![CDATA[
  1143. ipt_slipdt.dispatch("xforms-value-changed"); // 출금번호 예외처리
  1144. if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "sliprecognition", "Y") != "Y")
  1145. {
  1146. messageBox("권한이 없습니다.","I000");
  1147. return false;
  1148. }
  1149. if (model.getValue("/root/hidden/condition/slipgubn") == "R")
  1150. {
  1151. if (grd_unsllistinfo.rows == 1) {
  1152. messageBox("승인할 전표를 선택하세요.","I000");
  1153. return;
  1154. }
  1155. if(grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")) > model.getValue("/root/hidden/condition/slipdt"))
  1156. {
  1157. // 출금번호 예외처리
  1158. if (model.getValue("/root/hidden/drawrestriction") != "Y" && messageBox("승인일이 전송일보다 빠릅니다.\n승인일을 전송일로 설정하시겠습니까?\n (예 : 승인일->" + grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")) + " 아니오->" + model.getValue("/root/hidden/condition/slipdt") + ")", "Q000") == "6")
  1159. {
  1160. model.setValue("/root/hidden/condition/slipdt", grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")))
  1161. }
  1162. }
  1163. model.setValue("/root/send/data4/chkacntyy", grd_unsllist.valueMatrix(grd_unsllist.row, grd_unsllist.colRef("slipdt")));
  1164. submit("TRRAD00205");
  1165. if(grd_unsllist.valueMatrix(i, grd_unsllist.colRef("bugtacntyn")) == "Y" && (model.getValue("/root/hidden/condition/slipdt") < model.getValue("/root/main/acntyylist/frdd") || model.getValue("/root/hidden/condition/slipdt") > model.getValue("/root/main/acntyylist/todd") || model.getValue("/root/main/acntyylist/frdd") == "" || model.getValue("/root/main/acntyylist/todd") == ""))
  1166. {
  1167. messageBox("회계년도가 다름", "I000");
  1168. return;
  1169. }
  1170. var drsumamt = 0;
  1171. var crsumamt = 0;
  1172. for(var i = grd_unsllistinfo.fixedRows ; i < grd_unsllistinfo.rows ; i ++)
  1173. {
  1174. drsumamt += parseInt(grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("dramt")));
  1175. crsumamt += parseInt(grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("cramt")));
  1176. if(grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("custflag")) == "1")
  1177. {
  1178. if(radfseizureynCheck(getUserInfo("dutplceinstcd"), grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("custcd")), "N") == "Y")
  1179. {
  1180. messageBox("연번[" +grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("slipseqno")) + "] " + grd_unsllistinfo.valueMatrix(i, grd_unsllistinfo.colRef("custnm")) + "(은)는 압류 거래처입니다." ,"I000");
  1181. }
  1182. }
  1183. }
  1184. if(drsumamt != crsumamt)
  1185. {
  1186. messageBox("차대변금액이 일치하지 않습니다.", "I000");
  1187. return;
  1188. }
  1189. for (i=1; i<grd_unsllistinfo.rows; i++)
  1190. {
  1191. grd_unsllistinfo.addStatus(i, "insert");
  1192. model.setValue("/root/main/unsllistinfo["+i+"]/slipdd",model.getValue("/root/hidden/condition/slipdt"));
  1193. model.setValue("/root/main/unsllistinfo["+i+"]/drawseqno",model.getValue("/root/hidden/condition/drawseqno"));
  1194. }
  1195. model.refresh();
  1196. model.setValue("/root/send/unsllistinfo",grd_unsllistinfo.getUpdateData());
  1197. submit("TRRAD00203");
  1198. if (submit("TXRAD00201"))
  1199. {
  1200. grd_unsllistinfo.clearStatus();
  1201. model.setValue("/root/send/unsllistinfo","");
  1202. btn_search.dispatch("DOMActivate");
  1203. model.removeNodeset("/root/main/unsllistinfo");
  1204. model.refresh();
  1205. }
  1206. }
  1207. ]]>
  1208. </script>
  1209. </button>
  1210. <button id="btn_reqcanceal" class="btn2_letter6" disabled="false" style="left:915px; top:13px; width:86px; height:19px; ">
  1211. <caption>승인요청취소</caption>
  1212. <script type="javascript" ev:event="DOMActivate">
  1213. <![CDATA[
  1214. if(radfCheckAcntAuth(getUserInfo("dutplceinstcd"), getUserId(), "slipreqcancel", "Y") != "Y")
  1215. {
  1216. messageBox("권한이 없습니다.","I000");
  1217. return;
  1218. }
  1219. if (model.getValue("/root/hidden/condition/slipgubn") == "R")
  1220. {
  1221. if (grd_unsllistinfo.rows == 1)
  1222. {
  1223. messageBox("승인요청을 취소할 전표를 선택하세요.","I000");
  1224. return;
  1225. }
  1226. for (i=1; i<grd_unsllistinfo.rows; i++)
  1227. {
  1228. grd_unsllistinfo.addStatus(i, "update");
  1229. model.setValue("/root/main/unsllistinfo["+i+"]/aprvreqyn","N");
  1230. model.setValue("/root/main/unsllistinfo["+i+"]/aprvreqdd","");
  1231. }
  1232. model.refresh();
  1233. model.setValue("/root/send/unsllistinfo",grd_unsllistinfo.getUpdateData());
  1234. if (submit("TXRAD00203"))
  1235. {
  1236. grd_unsllistinfo.clearStatus();
  1237. model.setValue("/root/send/unsllistinfo","");
  1238. btn_search.dispatch("DOMActivate");
  1239. model.removeNodeset("/root/main/unsllistinfo");
  1240. model.refresh();
  1241. }
  1242. }
  1243. ]]>
  1244. </script>
  1245. </button>
  1246. <button id="btn_all" class="btn2_letter4" style="left:125px; top:125px; width:64px; height:19px; ">
  1247. <caption>전체선택</caption>
  1248. <script type="javascript" ev:event="DOMActivate">
  1249. <![CDATA[
  1250. for(var i = 1 ; i <= model.instance1.selectNodes(grd_unsllist.nodeset).length ; i++)
  1251. {
  1252. model.setValue(grd_unsllist.nodeset + "[" + i + "]/selchk", "Y");
  1253. }
  1254. grd_unsllist.rebuild();
  1255. fSumCheckAmt();
  1256. ]]>
  1257. </script>
  1258. </button>
  1259. <button id="btn_cancel" class="btn2_letter4" style="left:195px; top:125px; width:64px; height:19px; ">
  1260. <caption>전체해제</caption>
  1261. <script type="javascript" ev:event="DOMActivate">
  1262. <![CDATA[
  1263. for(var i = 1 ; i <= model.instance1.selectNodes(grd_unsllist.nodeset).length ; i++)
  1264. {
  1265. model.setValue(grd_unsllist.nodeset + "[" + i + "]/selchk", "N");
  1266. }
  1267. grd_unsllist.rebuild();
  1268. fSumCheckAmt();
  1269. ]]>
  1270. </script>
  1271. </button>
  1272. <caption id="caption1" class="cell_1" style="left:5px; top:717px; width:120px; height:23px; text-align:center; vertical-align:middle; ">금액합계</caption>
  1273. <caption id="cpt_totuncrsum" ref="/root/hidden/unsl/totcrsum" format="(-)#,###" style="left:247px; top:717px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcc99; "/>
  1274. <caption id="cpt_totundrsum" ref="/root/hidden/unsl/totdrsum" format="(-)#,###" style="left:126px; top:717px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcccc; "/>
  1275. <caption id="cpt_totapcrsum" ref="/root/hidden/apsl/totcrsum" visibility="hidden" format="(-)#,###" style="left:247px; top:717px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcc99; "/>
  1276. <caption id="cpt_totapdrsum" ref="/root/hidden/apsl/totdrsum" visibility="hidden" format="(-)#,###" style="left:126px; top:717px; width:120px; height:23px; text-align:right; vertical-align:middle; background-color:#ffcccc; "/>
  1277. <button id="button1" visibility="hidden" style="left:1030px; top:10px; width:100px; height:20px; ">
  1278. <caption>button1</caption>
  1279. <script type="javascript" ev:event="onclick">
  1280. <![CDATA[
  1281. alert(getUserId());
  1282. ]]>
  1283. </script>
  1284. </button>
  1285. <input id="ipt_drawseqno" ref="/root/hidden/condition/drawseqno" class="input_essential" disabled="false" navindex="6" visibility="visible" format="9" style="left:779px; top:12px; width:49px; height:19px; text-align:center; vertical-align:middle; ">
  1286. <script type="javascript" ev:event="xforms-value-changed">
  1287. <![CDATA[
  1288. if(model.getValue(ipt_drawseqno.attribute("ref")) == "0" || model.getValue(ipt_drawseqno.attribute("ref")) == "")
  1289. {
  1290. model.setValue(ipt_drawseqno.attribute("ref"), "1");
  1291. ipt_drawseqno.refresh();
  1292. }
  1293. ]]>
  1294. </script>
  1295. </input>
  1296. <button id="btn_next" class="icon_next" disabled="false" navindex="-1" visibility="visible" style="left:830px; top:15px; width:13px; height:15px; ">
  1297. <caption/>
  1298. <script type="javascript" ev:event="DOMActivate">
  1299. <![CDATA[
  1300. var vDrawseqno = model.getValue(ipt_drawseqno.attribute("ref"));
  1301. var vNum = parseInt(vDrawseqno, 10);
  1302. if (vNum != 9)
  1303. {
  1304. vNum++;
  1305. }
  1306. else
  1307. {
  1308. return;
  1309. }
  1310. model.setValue(ipt_drawseqno.attribute("ref"), vNum);
  1311. ipt_drawseqno.refresh();
  1312. ]]>
  1313. </script>
  1314. </button>
  1315. <button id="btn_pre" class="icon_pre" disabled="false" navindex="-1" visibility="visible" style="left:764px; top:15px; width:13px; height:15px; ">
  1316. <caption/>
  1317. <script type="javascript" ev:event="DOMActivate">
  1318. <![CDATA[
  1319. var vDrawseqno = model.getValue(ipt_drawseqno.attribute("ref"));
  1320. var vNum = parseInt(vDrawseqno, 10);
  1321. if (vNum != 1)
  1322. {
  1323. vNum--;
  1324. }
  1325. else
  1326. {
  1327. return;
  1328. }
  1329. model.setValue(ipt_drawseqno.attribute("ref"), vNum);
  1330. ipt_drawseqno.refresh();
  1331. ]]>
  1332. </script>
  1333. </button>
  1334. </group>
  1335. <group id="group2" scroll="auto" style="left:0px; top:757; width:1195px; height:27px; ">
  1336. <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  1337. </group>
  1338. </xhtml:body>
  1339. </xhtml:html>