SPRAD00300_반제전표지급내역관리.xrw 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>반제지급내역관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <unsl>
  11. </unsl>
  12. </main>
  13. <send>
  14. <data>
  15. <instcd/>
  16. <arngmnunsldd/>
  17. <arngmnunslno/>
  18. </data>
  19. <unsl/>
  20. <data1>
  21. <instcd/>
  22. <drcrflag/>
  23. <acntcd/>
  24. </data1>
  25. <data2>
  26. <instcd/>
  27. <mngtcd/>
  28. </data2>
  29. </send>
  30. <hidden>
  31. <acntcdinfo>
  32. <instcd/>
  33. <acntcd/>
  34. <acntnm/>
  35. <slipyn/>
  36. <expsprofyn/>
  37. <balflag/>
  38. <custflag/>
  39. <notecd1/>
  40. <notecdnm1/>
  41. <mngtkind1/>
  42. <inptkind1/>
  43. <frmt1/>
  44. <popwnd1/>
  45. <notecd2/>
  46. <notecdnm2/>
  47. <mngtkind2/>
  48. <inptkind2/>
  49. <frmt2/>
  50. <popwnd2/>
  51. <notecd3/>
  52. <notecdnm3/>
  53. <mngtkind3/>
  54. <inptkind3/>
  55. <frmt3/>
  56. <popwnd3/>
  57. <notecd4/>
  58. <notecdnm4/>
  59. <mngtkind4/>
  60. <inptkind4/>
  61. <frmt4/>
  62. <popwnd4/>
  63. <notecd5/>
  64. <notecdnm5/>
  65. <mngtkind5/>
  66. <inptkind5/>
  67. <frmt5/>
  68. <popwnd5/>
  69. <notecd6/>
  70. <notecdnm6/>
  71. <mngtkind6/>
  72. <inptkind6/>
  73. <frmt6/>
  74. <popwnd6/>
  75. <bugtcostacntcd/>
  76. <bugtuseyn/>
  77. <bugtcntryn/>
  78. <bugtautoaprvyn/>
  79. <fundscd/>
  80. <suppitemcd/>
  81. <option1/>
  82. <option2/>
  83. <option3/>
  84. <option4/>
  85. <option5/>
  86. <option6/>
  87. </acntcdinfo>
  88. <unsl_one>
  89. <instcd/>
  90. <arngmnunsldd/>
  91. <arngmnunslno/>
  92. <seqno/>
  93. <drcrflag>C</drcrflag>
  94. <acntcd/>
  95. <acntnm/>
  96. <bugtcd>01</bugtcd>
  97. <amt/>
  98. <costcntrdeptcd/>
  99. <costcntrdeptnm/>
  100. <bugtmngtdeptcd/>
  101. <bugtmngtdeptnm/>
  102. <slipdeptcd/>
  103. <slipdeptnm/>
  104. <notefactnm1/>
  105. <notefactcd1/>
  106. <notefactspec1/>
  107. <notefactnm2/>
  108. <notefactcd2/>
  109. <notefactspec2/>
  110. <notefactnm3/>
  111. <notefactcd3/>
  112. <notefactspec3/>
  113. <notefactnm4/>
  114. <notefactcd4/>
  115. <notefactspec4/>
  116. <notefactnm5/>
  117. <notefactcd5/>
  118. <notefactspec5/>
  119. <notefactnm6/>
  120. <notefactcd6/>
  121. <notefactspec6/>
  122. <etcnotefact/>
  123. <unslwrit/>
  124. <slipcmt/>
  125. </unsl_one>
  126. <sumamt/>
  127. <maxseqno/>
  128. <slipyn>Y</slipyn>
  129. </hidden>
  130. <init>
  131. <condition>
  132. <instcd/>
  133. <arngmnunsldd/>
  134. <arngmnunslno/>
  135. <amt/>
  136. <costcntrdeptcd/>
  137. <costcntrdeptnm/>
  138. <bugtmngtdeptcd/>
  139. <slipdeptcd/>
  140. <bugtcd/>
  141. </condition>
  142. <code>
  143. <codelist/>
  144. </code>
  145. </init>
  146. <temp>
  147. <returnunslno>
  148. <returnunslno/>
  149. </returnunslno>
  150. </temp>
  151. <target>
  152. <slipinfo>
  153. <instcd/>
  154. <amt/>
  155. <arngmnunsldd/>
  156. <costcntrdeptcd/>
  157. <costcntrdeptnm/>
  158. <bugtmngtdeptcd/>
  159. <bugtmngtdeptnm/>
  160. <slipdeptcd/>
  161. <slipdeptnm/>
  162. <unslwrit/>
  163. <slipyn/>
  164. </slipinfo>
  165. </target>
  166. </root>
  167. </instance>
  168. <submission id="TRZBC00101" method="urlencoded-post" replace="instance"/>
  169. <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/init/code"/>
  170. <bind id="bind1" ref="/root/hidden/maxseqno" calculate="max(/root/main/unsl/seqno)"/>
  171. <submission id="TRRAD00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/acntcdinfo"/>
  172. <submission id="TXRAD00391" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unsl" resultref="/root/temp"/>
  173. <submission id="TRRAD00391" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/unsl"/>
  174. </model>
  175. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  176. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  177. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  178. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  179. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  180. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  181. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  182. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  183. <script type="javascript" ev:event="xforms-ready">
  184. <![CDATA[
  185. fCheckAuth();//화면 권한체크
  186. fOpenForm();
  187. ]]>
  188. </script>
  189. <script type="javascript">
  190. <![CDATA[
  191. //========================================================================================
  192. //버튼에 대한 화면 권한 체크(R : 읽기, X : 입력/수정/삭제, P : 출력)
  193. //========================================================================================
  194. function fCheckAuth()
  195. {
  196. btn_search.disabled = !checkAuth("R") ;
  197. btn_save.disabled = !checkAuth("X") ;
  198. }
  199. var cashcd = ""; //현금 계정코드 default 값 "11101001"
  200. var arrCashAcntCd = new Array();
  201. var arrTransAcntCd = new Array();
  202. //========================================================================================
  203. //화면 로드시 초기화 함수
  204. //========================================================================================
  205. function fOpenForm()
  206. {
  207. model.removeNodeset(grd_unsl.nodeset);
  208. grd_unsl.rebuild();
  209. btn_reset.disabled = false;
  210. btn_grdadd.disabled = false;
  211. btn_grdset.disabled = true;
  212. var instcd = model.getValue("/root/target/slipinfo/instcd");
  213. var arngmnunsldd = model.getValue("/root/target/slipinfo/arngmnunsldd");
  214. var arngmnunslno = model.getValue("/root/target/slipinfo/arngmnunslno");
  215. var costcntrdeptcd = model.getValue("/root/target/slipinfo/costcntrdeptcd");
  216. var costcntrdeptnm = model.getValue("/root/target/slipinfo/costcntrdeptnm");
  217. var bugtmngtdeptcd = model.getValue("/root/target/slipinfo/bugtmngtdeptcd");
  218. var bugtmngtdeptnm = model.getValue("/root/target/slipinfo/bugtmngtdeptnm");
  219. var slipdeptcd = model.getValue("/root/target/slipinfo/slipdeptcd");
  220. var slipdeptnm = model.getValue("/root/target/slipinfo/slipdeptnm");
  221. var unslwrit = model.getValue("/root/target/slipinfo/unslwrit");
  222. var slipyn = model.getValue("/root/target/slipinfo/slipyn");
  223. if(slipyn == 'Y')
  224. {
  225. ipt_arngmnunsldd.disabled = true;
  226. }
  227. var sToday = getCurrentDate().toString();
  228. if(arngmnunsldd == "")
  229. {
  230. arngmnunsldd = sToday;
  231. ipt_arngmnunsldd.disabled = false;
  232. }
  233. if(instance1.selectNodes("/root/target/slipinfo").length != 0)
  234. {
  235. model.setValue("/root/hidden/unsl_one/instcd", instcd );
  236. model.setValue("/root/hidden/unsl_one/arngmnunsldd", arngmnunsldd );
  237. model.setValue("/root/hidden/unsl_one/arngmnunslno", arngmnunslno );
  238. model.setValue("/root/hidden/unsl_one/costcntrdeptcd", costcntrdeptcd );
  239. model.setValue("/root/hidden/unsl_one/costcntrdeptnm", costcntrdeptnm );
  240. model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", bugtmngtdeptcd);
  241. model.setValue("/root/hidden/unsl_one/bugtmngtdeptnm", bugtmngtdeptnm);
  242. model.setValue("/root/hidden/unsl_one/slipdeptcd", slipdeptcd );
  243. model.setValue("/root/hidden/unsl_one/slipdeptnm", slipdeptnm );
  244. model.setValue("/root/hidden/unsl_one/unslwrit", unslwrit );
  245. }
  246. // if(sanctyn == "Y")
  247. // {
  248. //
  249. // }
  250. //=========기초정보(상수값) Loding===================================================
  251. model.setValue("/root/send/data2/instcd", instcd);
  252. model.setValue("/root/send/data2/mngtcd", "%");
  253. model.refresh();
  254. submit("TRRAZ00001");
  255. for (i=1; i<=instance1.selectNodes("root/init/code/code/codelist").length; i++)
  256. {
  257. cdgbn = model.getValue("/root/init/code/code/codelist[" + i + "]/cdgbn");
  258. if (cdgbn == "cashcd")
  259. {
  260. cashcd = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  261. cashcdnm = model.getValue("/root/init/code/code/codelist[" + i + "]/cdnm");
  262. }
  263. else if (cdgbn == "cashacntcd")
  264. {
  265. arrCashAcntCd[arrCashAcntCd.length] = model.getValue("/root/init/code/code/codelist[" + i + "]/cdid");
  266. }
  267. }
  268. for(var i = 0 ; i < arrCashAcntCd.length ; i++)
  269. {
  270. if(arrCashAcntCd[i] != cashcd)
  271. {
  272. arrTransAcntCd[arrTransAcntCd.length] = arrCashAcntCd[i];
  273. }
  274. }
  275. fSearch();
  276. }
  277. //========================================================================================
  278. // 지급 내역 조회
  279. //========================================================================================
  280. function fSearch()
  281. {
  282. model.removenode(grd_unsl.nodeset);//조회시 기존 데이터 삭제
  283. grd_unsl.refresh();
  284. model.setValue("/root/send/data/instcd", model.getValue("/root/hidden/unsl_one/instcd"));
  285. model.setValue("/root/send/data/arngmnunsldd", model.getValue("/root/hidden/unsl_one/arngmnunsldd"));
  286. model.setValue("/root/send/data/arngmnunslno", model.getValue("/root/hidden/unsl_one/arngmnunslno"));
  287. submit("TRRAD00391");
  288. if(grd_unsl.fixedRows != grd_unsl.rows)
  289. {
  290. model.setValue(ipt_slipcmt.attribute("ref"), grd_unsl.valueMatrix(grd_unsl.fixedRows, grd_unsl.colRef("slipcmt")));
  291. ipt_slipcmt.refresh();
  292. }
  293. fCalcAmt();
  294. }
  295. //========================================================================================
  296. // 저장
  297. //========================================================================================
  298. function fSave()
  299. {
  300. model.setValue("/root/main/unsl", grd_unsl.getUpdateData());
  301. submit("");
  302. }
  303. function fNotNullCheck()
  304. {
  305. if(model.getValue(ipt_slipcmt.attribute("ref")) == "") { messageBox("전표적요를", "C002"); return false; };
  306. if(model.getValue(ipt_acntcd.attribute("ref")) == "") { messageBox("계정코드를", "C002"); return false; };
  307. if(model.getValue(ipt_acntnm.attribute("ref")) == "") { messageBox("계정코드를", "C002"); return false; };
  308. if(model.getValue(ipt_amt.attribute("ref")) == "") { messageBox("금액을", "C002"); return false; };
  309. if(model.getValue(ipt_etcnotefact.attribute("ref")) == "") { messageBox("세부적요를", "C002"); return false; };
  310. return true;
  311. }
  312. //========================================================================================
  313. // 행추가
  314. //========================================================================================
  315. function fSetGridData()
  316. {
  317. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/instcd", model.getValue("/root/hidden/unsl_one/instcd" ));
  318. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/arngmnunsldd", model.getValue("/root/hidden/unsl_one/arngmnunsldd" ));
  319. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/arngmnunslno", model.getValue("/root/hidden/unsl_one/arngmnunslno" ));
  320. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/drcrflag", model.getValue("/root/hidden/unsl_one/drcrflag" ));
  321. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/acntcd", model.getValue("/root/hidden/unsl_one/acntcd" ));
  322. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/acntnm", model.getValue("/root/hidden/unsl_one/acntnm" ));
  323. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/bugtcd", model.getValue("/root/hidden/unsl_one/bugtcd" ));
  324. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/amt", parseInt(model.getValue("/root/hidden/unsl_one/amt"), 10));
  325. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/costcntrdeptcd", model.getValue("/root/hidden/unsl_one/costcntrdeptcd" ));
  326. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/costcntrdeptnm", model.getValue("/root/hidden/unsl_one/costcntrdeptnm" ));
  327. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/bugtmngtdeptcd", model.getValue("/root/hidden/unsl_one/bugtmngtdeptcd" ));
  328. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/bugtmngtdeptnm", model.getValue("/root/hidden/unsl_one/bugtmngtdeptnm" ));
  329. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/slipdeptcd", model.getValue("/root/hidden/unsl_one/slipdeptcd" ));
  330. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/slipdeptnm", model.getValue("/root/hidden/unsl_one/slipdeptnm" ));
  331. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm1", model.getValue("/root/hidden/unsl_one/notefactnm1" ));
  332. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd1", model.getValue("/root/hidden/unsl_one/notefactcd1" ));
  333. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec1", model.getValue("/root/hidden/unsl_one/notefactspec1" ));
  334. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm2", model.getValue("/root/hidden/unsl_one/notefactnm2" ));
  335. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd2", model.getValue("/root/hidden/unsl_one/notefactcd2" ));
  336. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec2", model.getValue("/root/hidden/unsl_one/notefactspec2" ));
  337. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm3", model.getValue("/root/hidden/unsl_one/notefactnm3" ));
  338. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd3", model.getValue("/root/hidden/unsl_one/notefactcd3" ));
  339. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec3", model.getValue("/root/hidden/unsl_one/notefactspec3" ));
  340. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm4", model.getValue("/root/hidden/unsl_one/notefactnm4" ));
  341. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd4", model.getValue("/root/hidden/unsl_one/notefactcd4" ));
  342. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec4", model.getValue("/root/hidden/unsl_one/notefactspec4" ));
  343. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm5", model.getValue("/root/hidden/unsl_one/notefactnm5" ));
  344. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd5", model.getValue("/root/hidden/unsl_one/notefactcd5" ));
  345. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec5", model.getValue("/root/hidden/unsl_one/notefactspec5" ));
  346. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm6", model.getValue("/root/hidden/unsl_one/notefactnm6" ));
  347. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd6", model.getValue("/root/hidden/unsl_one/notefactcd6" ));
  348. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec6", model.getValue("/root/hidden/unsl_one/notefactspec6" ));
  349. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/etcnotefact", model.getValue("/root/hidden/unsl_one/etcnotefact" ));
  350. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/unslwrit", model.getValue("/root/hidden/unsl_one/unslwrit" ));
  351. model.setValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/slipcmt", model.getValue("/root/hidden/unsl_one/slipcmt" ));
  352. }
  353. function fMakeSeqNo(iRowIdx)
  354. {
  355. var sSeqno = "";
  356. var iSeqNo = 0;
  357. if(model.getValue("/root/hidden/maxseqno") == "")
  358. {
  359. sSeqno = "00000";
  360. }
  361. else
  362. {
  363. sSeqno = model.getValue("/root/hidden/maxseqno");
  364. }
  365. var iSeqno = parseFloat(sSeqno);
  366. if(iSeqno >= 0)
  367. {
  368. iSeqno ++ ;
  369. sSeqno = (iSeqno).toString().getLeftPad(5, "0");
  370. }
  371. else
  372. {
  373. sSeqno = "00001";
  374. }
  375. grd_unsl.valueMatrix(iRowIdx, grd_unsl.colRef("seqno")) = sSeqno;
  376. model.recalculate();
  377. }
  378. function fResetControls()
  379. {
  380. model.setValue("/root/hidden/unsl_one/acntcd", "");
  381. model.setValue("/root/hidden/unsl_one/acntnm", "");
  382. model.setValue("/root/hidden/unsl_one/notefactnm1", "");
  383. model.setValue("/root/hidden/unsl_one/notefactcd1", "");
  384. model.setValue("/root/hidden/unsl_one/notefactspec1", "");
  385. model.setValue("/root/hidden/unsl_one/notefactnm2", "");
  386. model.setValue("/root/hidden/unsl_one/notefactcd2", "");
  387. model.setValue("/root/hidden/unsl_one/notefactspec2", "");
  388. model.setValue("/root/hidden/unsl_one/notefactnm3", "");
  389. model.setValue("/root/hidden/unsl_one/notefactcd3", "");
  390. model.setValue("/root/hidden/unsl_one/notefactspec3", "");
  391. model.setValue("/root/hidden/unsl_one/notefactnm4", "");
  392. model.setValue("/root/hidden/unsl_one/notefactcd4", "");
  393. model.setValue("/root/hidden/unsl_one/notefactspec4", "");
  394. model.setValue("/root/hidden/unsl_one/notefactnm5", "");
  395. model.setValue("/root/hidden/unsl_one/notefactcd5", "");
  396. model.setValue("/root/hidden/unsl_one/notefactspec5", "");
  397. model.setValue("/root/hidden/unsl_one/notefactnm6", "");
  398. model.setValue("/root/hidden/unsl_one/notefactcd6", "");
  399. model.setValue("/root/hidden/unsl_one/notefactspec6", "");
  400. fCalcAmt();
  401. //기재사항clear
  402. fSetNoteClear();
  403. model.refresh();
  404. }
  405. //========================================================================================
  406. //진행중인 작업 여부 Check
  407. //========================================================================================
  408. function fCheckStatus()
  409. {
  410. var grd_rows = grd_unsl.rows;
  411. var grd_fixedRows = grd_unsl.fixedRows;
  412. for(var i = grd_fixedRows ; i <= grd_rows ; i++)
  413. {
  414. if(grd_unsl.rowStatus(i) != 0)
  415. {
  416. messageBox("진행중인 작업 완료/취소 후 실행하십시요" ,"");
  417. return false;
  418. }
  419. }
  420. return true;
  421. }
  422. //========================================================================================
  423. //저장전 유효성 검사
  424. //========================================================================================
  425. function fIsValidForSave()
  426. {
  427. var stransacnt = getGridUpdateData(grd_transacnt);
  428. if(stransacnt == "")
  429. {
  430. messageBox("변경된 데이터가","I004");
  431. return false;
  432. }
  433. else if(stransacnt != "")
  434. {
  435. return true;
  436. }
  437. }
  438. //========================================================================================
  439. //계정 코드 정보 조회
  440. //========================================================================================
  441. function fAcntInfoSelect()
  442. {
  443. model.setValue("/root/send/data1/instcd", model.getValue("/root/hidden/unsl_one/instcd"));
  444. model.setValue("/root/send/data1/acntcd", model.getValue("/root/hidden/unsl_one/acntcd"));
  445. model.setValue("/root/send/data1/drcrflag", model.getValue("/root/hidden/unsl_one/drcrflag"));
  446. model.refresh();
  447. submit("TRRAD00103");
  448. //기재사항clear
  449. fSetNoteClear();
  450. //기재사항 setting
  451. fSetNote();
  452. }
  453. //========================================================================================
  454. //기재사항 setting
  455. //========================================================================================
  456. function fSetNote()
  457. {
  458. //기재사항setting
  459. for (i=1; i<7; i++) {
  460. var kind = model.getValue("/root/hidden/acntcdinfo/mngtkind"+i);
  461. var title = model.getValue("/root/hidden/acntcdinfo/notecdnm"+i);
  462. var option = model.getValue("/root/hidden/acntcdinfo/option"+i);
  463. //alert(kind);
  464. //alert(title);
  465. model.setValue("/root/hidden/unsl_one/notefactnm"+i, title);
  466. switch (kind)
  467. {
  468. case "1": //코드
  469. model.toggle("case_notecd"+i);
  470. break;
  471. case "2": //내역
  472. model.toggle("case_notenm"+i);
  473. //format지정
  474. var cControl = document.controls("ipt_notenm"+i);
  475. cControl.attribute("format") = model.getValue("/root/hidden/acntcdinfo/frmt"+i);
  476. cControl.attribute("showmask") = "true";
  477. break;
  478. case "3": //콤보
  479. model.toggle("case_notecombo"+i);
  480. break;
  481. default :
  482. model.toggle("case_noteblank"+i);
  483. break;
  484. }
  485. }
  486. model.refresh();
  487. }
  488. //========================================================================================
  489. //기재사항 clear
  490. //========================================================================================
  491. function fSetNoteClear()
  492. {
  493. model.getValue("/root/hidden/acntcdinfo/notecd1") == "";
  494. model.getValue("/root/hidden/acntcdinfo/notecd2") == "";
  495. model.getValue("/root/hidden/acntcdinfo/notecd3") == "";
  496. model.getValue("/root/hidden/acntcdinfo/notecd4") == "";
  497. model.getValue("/root/hidden/acntcdinfo/notecd5") == "";
  498. model.getValue("/root/hidden/acntcdinfo/notecd6") == "";
  499. //항목 초기화
  500. for (i=1; i<7; i++)
  501. {
  502. model.setValue("/root/hidden/unsl_one/notefactnm"+i,"");
  503. model.setValue("/root/hidden/unsl_one/notefactcd"+i,"");
  504. model.setValue("/root/hidden/unsl_one/notefactspec"+i,"");
  505. model.toggle("case_noteblank"+i);
  506. }
  507. model.refresh();
  508. }
  509. //========================================================================================
  510. // 출금계좌 일치 예외처리 - 계좌 선택 시 경고만 출력
  511. //========================================================================================
  512. function fAactCheck()
  513. {
  514. var crrAcntCd = model.getValue("/root/hidden/unsl_one/acntcd");
  515. var crrDrCrFlag = model.getValue("/root/hidden/unsl_one/drcrflag");
  516. var bTransAcntCdYN = false;
  517. if(crrDrCrFlag == "C")
  518. {
  519. for(var j=0; j<arrTransAcntCd.length; j++)
  520. {
  521. if(arrTransAcntCd[j] == crrAcntCd) bTransAcntCdYN = true;
  522. }
  523. }
  524. var bExist = false;
  525. if(bTransAcntCdYN == true)
  526. {
  527. for(var i=1; i<grd_unsl.rows; i++)
  528. {
  529. var sAcntCd = grd_unsl.valueMatrix(i, grd_unsl.colRef("acntcd"));
  530. var sDrCrFlag = grd_unsl.valueMatrix(i, grd_unsl.colRef("drcrflag"));
  531. if(sDrCrFlag == "C")
  532. {
  533. for(var j=0; j<arrTransAcntCd.length; j++)
  534. {
  535. if(arrTransAcntCd[j] == sAcntCd) bExist = true;
  536. }
  537. }
  538. if(bExist)
  539. {
  540. if(grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")) != model.getValue("/root/hidden/unsl_one/notefactcd1") && grd_unsl.row != i)
  541. {
  542. messageBox("하나의 전표에는 하나의 출금계좌만 설정할수 있습니다.\n연번[" + grd_unsl.valueMatrix(i, grd_unsl.colRef("seqno")) + "]와 지출계좌가 다릅니다." ,"I000");
  543. // model.setValue("/root/main/unsl_one/notefactcd1", grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactcd1")));
  544. // model.setValue("/root/main/unsl_one/notefactspec1", grd_unsl.valueMatrix(i, grd_unsl.colRef("notefactspec1")));
  545. // ipt_notecd1.refresh();
  546. // ipt_notecdnm1.refresh();
  547. return false;
  548. }
  549. else
  550. {
  551. bExist = false;
  552. }
  553. }
  554. }
  555. }
  556. return true;
  557. }
  558. //========================================================================================
  559. // 필수 기재사항 예외처리
  560. //========================================================================================
  561. function fcheckAcntOption()
  562. {
  563. for (i=1; i<7; i++)
  564. {
  565. var kind = model.getValue("/root/hidden/acntcdinfo/mngtkind"+i);
  566. var title = model.getValue("/root/hidden/acntcdinfo/notecdnm"+i);
  567. var option = model.getValue("/root/hidden/acntcdinfo/option"+i);
  568. if(option == "Y")
  569. {
  570. if((kind == "1" || kind == "3") && model.getValue("/root/hidden/unsl_one/notefactcd" + i) == "")
  571. {
  572. messageBox(title + "은(는)","I003");
  573. return false;
  574. }
  575. else if(kind == "2" && model.getValue("/root/hidden/unsl_one/notefactspec" + i) == "")
  576. {
  577. messageBox(title + "은(는)","I003");
  578. return false;
  579. }
  580. }
  581. }
  582. return true;
  583. }
  584. //========================================================================================
  585. //코드 Validation Check
  586. //========================================================================================
  587. function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
  588. {
  589. if(event.keyCode == 13 || event.name == "xforms-value-changed")
  590. {
  591. document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
  592. misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
  593. model.refresh();
  594. if (pNextIndex != "") {
  595. model.setFocus(pNextIndex);
  596. }
  597. }
  598. }
  599. //========================================================================================
  600. //각종 코드 Help Open
  601. //========================================================================================
  602. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  603. {
  604. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  605. model.refresh();
  606. }
  607. //========================================================================================
  608. // 입력 금액 계산
  609. //========================================================================================
  610. function fCalcAmt()
  611. {
  612. var vSumAmt = 0;
  613. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  614. {
  615. if(grd_unsl.rowStatus(i) != 4 && grd_unsl.rowStatus(i) != 5 && grd_unsl.rowStatus(i) != 6)
  616. {
  617. vSumAmt = vSumAmt + parseInt(grd_unsl.valueMatrix(i, grd_unsl.colRef("amt")), 10);
  618. }
  619. }
  620. model.setValue(ipt_amt.attribute("ref"), parseInt(model.getValue(opt_amt.attribute("ref")), 10) - parseInt(vSumAmt, 10));
  621. model.setValue(opt_sumamt.attribute("ref"), parseInt(vSumAmt, 10));
  622. ipt_amt.refresh();
  623. opt_sumamt.refresh();
  624. }
  625. //========================================================================================
  626. // 합계금액계산
  627. //========================================================================================
  628. // function fCalcBalAmt();
  629. // {
  630. // var amt = model.getValue("/root/target/slipinfo/amt");
  631. // var sumamt = 0;
  632. // for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  633. // {
  634. // sumamt += parseInt(grd_unsl.valueMatrix(i, grd_unsl.colRef("amt")));
  635. // }
  636. // model.setValue("/root/hidden/sumamt", sumamt);
  637. // model.setValue("/root/hidden/unsl_one/amt", parseInt(amt, 10) - parseInt(sumamt, 10));
  638. // }
  639. //========================================================================================
  640. //그리드 삭제
  641. //========================================================================================
  642. function fAddDelRow(rowid)
  643. {
  644. var tmpStatus;
  645. tmpStatus = grd_unsl.rowStatus(rowid);
  646. if (tmpStatus == 1 || tmpStatus == 3)
  647. {
  648. grd_unsl.deleteRow(rowid);
  649. } else
  650. {
  651. grd_unsl.rowStatus(rowid) = 4;
  652. }
  653. }
  654. ]]>
  655. </script>
  656. </xhtml:head>
  657. <xhtml:body pagewidth="910" pageheight="550" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  658. <group id="group4" scroll="auto" style="left:0px; top:19px; width:890px; height:35px; ">
  659. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:890px; height:35px; "/>
  660. <button id="btn_search" class="btn1_letter2" visibility="visible" style="left:824px; top:7px; width:56px; height:22px; text-align:left; ">
  661. <caption>조회</caption>
  662. <script type="javascript" ev:event="DOMActivate">
  663. <![CDATA[
  664. fSearch();
  665. ]]>
  666. </script>
  667. </button>
  668. <caption id="caption7" class="search_name" visibility="visible" style="left:2px; top:9px; width:86px; height:17px; ">전표정보 :</caption>
  669. <output id="opt_arngmnunslno" ref="/root/hidden/unsl_one/arngmnunslno" class="output_fix" visibility="visible" style="left:220px; top:8px; width:50px; height:19px; text-align:center; "/>
  670. <line id="line5" class="line_4" style="x1:809px; y1:7px; x2:809px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  671. <output id="opt_amt" ref="/root/target/slipinfo/amt" class="output_fix" visibility="visible" format="(-)#,###" style="left:375px; top:8px; width:115px; height:19px; text-align:right; padding-right:5; "/>
  672. <caption id="caption2" class="search_name" visibility="visible" style="left:280px; top:9px; width:88px; height:17px; ">전표금액 :</caption>
  673. <input id="ipt_arngmnunsldd" ref="/root/hidden/unsl_one/arngmnunsldd" class="input_s_essential" disabled="true" inputtype="date" style="left:95px; top:8px; width:120px; height:19px; "/>
  674. </group>
  675. <group id="group1" style="left:0px; top:0px; width:890px; height:13px; ">
  676. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">지급 내역 등록</caption>
  677. </group>
  678. <group id="group3" scroll="auto" style="left:0px; top:54px; width:890px; height:441px; ">
  679. <button id="btn_grdset" class="btn2_letter3" style="left:717px; top:170px; width:53px; height:19px; ">
  680. <caption>행수정</caption>
  681. <script type="javascript" ev:event="onclick">
  682. <![CDATA[
  683. if(!fNotNullCheck()) return; //저장전 유효성 검사
  684. if(!fcheckAcntOption()) return; // 필수기재사항 입력 여부 검사
  685. fSetGridData();
  686. grd_unsl.refresh();
  687. fResetControls();
  688. grd_unsl.rowStatus(grd_unsl.row) = 2;
  689. model.setFocus("btn_save");
  690. ]]>
  691. </script>
  692. </button>
  693. <line id="line3" class="line_1" style="x1:0px; y1:189px; x2:888px; y2:189px; "/>
  694. <datagrid id="grd_unsl" nodeset="/root/main/unsl" caption="일련번호^기관코드^발생결재전표일자^발생결재전표번호^일련번호^차/대변구분^계정코드^계정명^예산코드^미결금액^귀속부서코드^귀속부서^예산관리부서코드^예산관리부서명^기표부서코드^기표부서명^기재사항명1^기재사항코드1^기재사항내역1^기재사항명2^기재사항코드2^기재사항내역2^기재사항명3^기재사항코드3^기재사항내역3^기재사항명4^기재사항코드4^기재사항내역4^기재사항명5^기재사항코드5^기재사항내역5^기재사항명6^기재사항코드6^기재사항내역6^기타기재사항^미결전표작성자^전표적요" colsep="^" colwidth="0, 0, 0, 0, 60, 100, 100, 150, 0, 100, 0, 150, 0, 0 ,0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 0, 0" dataheight="25" ellipsis="true" focuscolor="#ccffff" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="free" tooltip="true" style="left:0px; top:190px; width:890px; height:218px; ">
  695. <col ref="seqno"/>
  696. <col ref="instcd"/>
  697. <col ref="arngmnunsldd"/>
  698. <col ref="arngmnunslno"/>
  699. <col ref="seqno"/>
  700. <col ref="drcrflag" type="combo" style="text-align:center; ">
  701. <choices>
  702. <item>
  703. <label>차변</label>
  704. <value>D</value>
  705. </item>
  706. <item>
  707. <label>대변</label>
  708. <value>C</value>
  709. </item>
  710. </choices>
  711. </col>
  712. <col ref="acntcd" style="text-align:center; "/>
  713. <col ref="acntnm" style="text-align:center; "/>
  714. <col ref="bugtcd"/>
  715. <col ref="amt" format="(-)#,###" style="text-align:right; "/>
  716. <col ref="costcntrdeptcd"/>
  717. <col ref="costcntrdeptnm" style="text-align:left; padding-left:5; "/>
  718. <col ref="bugtmngtdeptcd"/>
  719. <col ref="bugtmngtdeptnm"/>
  720. <col ref="slipdeptcd"/>
  721. <col ref="slipdeptnm"/>
  722. <col ref="notefactnm1"/>
  723. <col ref="notefactcd1"/>
  724. <col ref="notefactspec1"/>
  725. <col ref="notefactnm2"/>
  726. <col ref="notefactcd2"/>
  727. <col ref="notefactspec2"/>
  728. <col ref="notefactnm3"/>
  729. <col ref="notefactcd3"/>
  730. <col ref="notefactspec3"/>
  731. <col ref="notefactnm4"/>
  732. <col ref="notefactcd4"/>
  733. <col ref="notefactspec4"/>
  734. <col ref="notefactnm5"/>
  735. <col ref="notefactcd5"/>
  736. <col ref="notefactspec5"/>
  737. <col ref="notefactnm6"/>
  738. <col ref="notefactcd6"/>
  739. <col ref="notefactspec6"/>
  740. <col ref="etcnotefact" style="text-align:left; padding-left:5; "/>
  741. <col ref="unslwrit"/>
  742. <col ref="slipcmt"/>
  743. <script type="javascript" ev:event="onclick">
  744. <![CDATA[
  745. if(grd_unsl.isCell(event.target) && grd_unsl.fixedRows <= grd_unsl.row)
  746. {
  747. //fAcntInfoSelect();
  748. btn_reset.disabled = false;
  749. btn_grdadd.disabled = true;
  750. btn_grdset.disabled = false;
  751. model.setValue("/root/hidden/unsl_one/instcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/instcd" ));
  752. model.setValue("/root/hidden/unsl_one/arngmnunsldd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/arngmnunsldd" ));
  753. model.setValue("/root/hidden/unsl_one/arngmnunslno", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/arngmnunslno" ));
  754. model.setValue("/root/hidden/unsl_one/drcrflag", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/drcrflag" ));
  755. model.setValue("/root/hidden/unsl_one/acntcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/acntcd" ));
  756. model.setValue("/root/hidden/unsl_one/acntnm", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/acntnm" ));
  757. model.setValue("/root/hidden/unsl_one/bugtcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/bugtcd" ));
  758. model.setValue("/root/hidden/unsl_one/amt", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/amt" ));
  759. model.setValue("/root/hidden/unsl_one/costcntrdeptcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/costcntrdeptcd" ));
  760. model.setValue("/root/hidden/unsl_one/costcntrdeptnm", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/costcntrdeptnm" ));
  761. model.setValue("/root/hidden/unsl_one/bugtmngtdeptcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/bugtmngtdeptcd" ));
  762. model.setValue("/root/hidden/unsl_one/slipdeptcd", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/slipdeptcd" ));
  763. model.setValue("/root/hidden/unsl_one/notefactnm1", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm1" ));
  764. model.setValue("/root/hidden/unsl_one/notefactcd1", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd1" ));
  765. model.setValue("/root/hidden/unsl_one/notefactspec1", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec1" ));
  766. model.setValue("/root/hidden/unsl_one/notefactnm2", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm2" ));
  767. model.setValue("/root/hidden/unsl_one/notefactcd2", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd2" ));
  768. model.setValue("/root/hidden/unsl_one/notefactspec2", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec2" ));
  769. model.setValue("/root/hidden/unsl_one/notefactnm3", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm3" ));
  770. model.setValue("/root/hidden/unsl_one/notefactcd3", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd3" ));
  771. model.setValue("/root/hidden/unsl_one/notefactspec3", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec3" ));
  772. model.setValue("/root/hidden/unsl_one/notefactnm4", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm4" ));
  773. model.setValue("/root/hidden/unsl_one/notefactcd4", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd4" ));
  774. model.setValue("/root/hidden/unsl_one/notefactspec4", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec4" ));
  775. model.setValue("/root/hidden/unsl_one/notefactnm5", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm5" ));
  776. model.setValue("/root/hidden/unsl_one/notefactcd5", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd5" ));
  777. model.setValue("/root/hidden/unsl_one/notefactspec5", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec5" ));
  778. model.setValue("/root/hidden/unsl_one/notefactnm6", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactnm6" ));
  779. model.setValue("/root/hidden/unsl_one/notefactcd6", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactcd6" ));
  780. model.setValue("/root/hidden/unsl_one/notefactspec6", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/notefactspec6" ));
  781. model.setValue("/root/hidden/unsl_one/etcnotefact", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/etcnotefact" ));
  782. model.setValue("/root/hidden/unsl_one/unslwrit", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/unslwrit" ));
  783. model.setValue("/root/hidden/unsl_one/slipcmt", model.getValue(grd_unsl.nodeset +"[" + grd_unsl.row + "]/slipcmt" ));
  784. model.refresh();
  785. }
  786. ]]>
  787. </script>
  788. </datagrid>
  789. <caption id="caption1" class="tit_2" style="left:5px; top:171px; width:183px; height:13px; ">지급 내역</caption>
  790. <output id="opt_sumamt" ref="/root/hidden/sumamt" format="(-)#,###" style="left:761px; top:416px; width:125px; height:19px; "/>
  791. <caption id="caption3" style="left:671px; top:416px; width:100px; height:20px; ">지급 금액 합계 :</caption>
  792. <caption id="caption23" class="cell_1" style="left:277px; top:30px; width:110px; height:23px; vertical-align:middle; ">계정과목</caption>
  793. <caption id="caption24" class="cell_1" style="left:7px; top:30px; width:110px; height:23px; vertical-align:middle; ">차/대 구분</caption>
  794. <caption id="caption25" class="cell_1" style="left:7px; top:4px; width:110px; height:23px; vertical-align:middle; ">전표적요</caption>
  795. <caption id="caption4" class="cell_1" style="left:665px; top:30px; width:110px; height:23px; vertical-align:middle; ">금액</caption>
  796. <line id="line10" class="line_2" style="x1:1px; y1:133px; x2:890px; y2:133px; "/>
  797. <line id="line1" class="line_2" style="x1:0px; y1:107px; x2:889px; y2:107px; "/>
  798. <line id="line2" class="line_2" style="x1:0px; y1:159px; x2:889px; y2:159px; "/>
  799. <line id="line4" class="line_2" style="x1:0px; y1:54px; x2:889px; y2:54px; "/>
  800. <line id="line6" class="line_2" style="x1:0px; y1:28px; x2:889px; y2:28px; "/>
  801. <line id="line7" class="line_2" style="x1:0px; y1:79px; x2:889px; y2:79px; "/>
  802. <input id="ipt_slipcmt" ref="/root/hidden/unsl_one/slipcmt" class="input_search" navindex="2" style="left:120px; top:6px; width:765px; height:19px; ">
  803. <script type="javascript" ev:event="onkeypress">
  804. <![CDATA[
  805. if (event.keyCode == "13") {model.setFocus("ipt_acntcd");}
  806. ]]>
  807. </script>
  808. <script type="javascript" ev:event="xforms-value-changed">
  809. <![CDATA[
  810. for(var i = 1 ; i < grd_unsl.rows - grd_unsl.fixedRows + 1 ; i++)
  811. {
  812. model.setValue(grd_unsl.nodeset + "[" + i + "]/slipcmt", model.getValue(ipt_slipcmt.attribute("ref")));
  813. }
  814. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  815. {
  816. grd_unsl.addStatus(i, "update");
  817. }
  818. if(model.getValue(ipt_etcnotefact.attribute("ref")) == "" && model.getValue(ipt_slipcmt.attribute("ref")) != "")
  819. {
  820. model.setValue(ipt_etcnotefact.attribute("ref"), model.getValue(ipt_slipcmt.attribute("ref")));
  821. ipt_etcnotefact.refresh();
  822. }
  823. ]]>
  824. </script>
  825. </input>
  826. <input id="ipt_amt" ref="/root/hidden/unsl_one/amt" class="input_search" navindex="6" format="(-)#,###" style="left:779px; top:32px; width:106px; height:19px; text-align:right; padding-right:5; ">
  827. <script type="javascript" ev:event="onkeypress">
  828. <![CDATA[
  829. if (event.keyCode == "13"){model.setFocus("ipt_etcnotefact");}
  830. ]]>
  831. </script>
  832. </input>
  833. <button id="btn_grddel" class="btn2_letter3" style="left:832px; top:170px; width:53px; height:19px; ">
  834. <caption>행삭제</caption>
  835. <script type="javascript" ev:event="onclick">
  836. <![CDATA[
  837. fAddDelRow(grd_unsl.row);
  838. fCalcAmt();
  839. ]]>
  840. </script>
  841. </button>
  842. <button id="btn_reset" class="btn2_letter3" style="left:662px; top:169px; width:53px; height:19px; text-align:left; ">
  843. <caption>행정리</caption>
  844. <script type="javascript" ev:event="onclick">
  845. <![CDATA[
  846. btn_grdset.disabled = true;
  847. btn_grdadd.disabled = false;
  848. fResetControls();
  849. ]]>
  850. </script>
  851. </button>
  852. <button id="btn_grdadd" class="btn2_letter3" navindex="7" style="left:777px; top:170px; width:53px; height:19px; ">
  853. <caption>행추가</caption>
  854. <script type="javascript" ev:event="onclick">
  855. <![CDATA[
  856. if(!fNotNullCheck()) return; //저장전 유효성 검사
  857. if(!fcheckAcntOption()) return; // 필수기재사항 입력 여부 검사
  858. misfGridIUD(grd_unsl, "A");
  859. if(grd_unsl.valueMatrix(grd_unsl.row, grd_unsl.colRef("seqno")) == "")
  860. { //alert("1");
  861. fMakeSeqNo(grd_unsl.row);
  862. }
  863. fSetGridData();
  864. grd_unsl.refresh();
  865. fResetControls();
  866. fCalcAmt();
  867. model.setFocus("btn_save");
  868. ]]>
  869. </script>
  870. </button>
  871. <select1 id="rdo_drcrflag" ref="/root/hidden/unsl_one/drcrflag" disabled="true" navindex="-1" overflow="visible" appearance="full" cellspacing="40" cols="2" style="left:122px; top:32px; width:158px; height:17px; border-style:none; ">
  872. <choices>
  873. <item>
  874. <label>차변</label>
  875. <value>D</value>
  876. </item>
  877. <item>
  878. <label>대변</label>
  879. <value>C</value>
  880. </item>
  881. </choices>
  882. </select1>
  883. <input id="ipt_acntnm" ref="/root/hidden/unsl_one/acntnm" class="input_essential" navindex="3" imemode="hangul" style="left:489px; top:32px; width:171px; height:19px; ">
  884. <script type="javascript" ev:event="onkeypress">
  885. <![CDATA[
  886. if (event.keyCode == "13") {model.setFocus("ipt_amt"); }
  887. ]]>
  888. </script>
  889. <script type="javascript" ev:event="xforms-value-changed">
  890. <![CDATA[
  891. fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn,ipt_instcd", "slipyn,instcd");
  892. fAcntInfoSelect();
  893. ]]>
  894. </script>
  895. </input>
  896. <button id="btn_acntcd" class="icon_search" navindex="-1" style="left:469px; top:32px; width:16px; height:16px; ">
  897. <caption/>
  898. <script type="javascript" ev:event="DOMActivate">
  899. <![CDATA[
  900. fOpenPopupHelp("05", ipt_acntcd, "acntcd,acntnm", "", "ipt_slipyn,ipt_instcd", "slipyn,instcd");
  901. fAcntInfoSelect();
  902. ]]>
  903. </script>
  904. </button>
  905. <input id="ipt_acntcd" ref="/root/hidden/unsl_one/acntcd" class="input_essential" navindex="-1" style="left:390px; top:32px; width:75px; height:19px; ">
  906. <script type="javascript" ev:event="onkeypress">
  907. <![CDATA[
  908. if (event.keyCode == "13") {model.setFocus("ipt_amt");}
  909. ]]>
  910. </script>
  911. <script type="javascript" ev:event="xforms-value-changed">
  912. <![CDATA[
  913. fValidationCheck("05", "acntcd,acntnm", "", "", "ipt_slipyn,ipt_instcd", "slipyn,instcd");
  914. fAcntInfoSelect();
  915. ]]>
  916. </script>
  917. </input>
  918. <switch id="switch1" class="sw_no_border" style="left:6px; top:57px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  919. <case id="case_notenm1" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  920. <caption id="caption34" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  921. <output id="opt_notenm1" ref="/root/hidden/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  922. <input id="ipt_notenm1" ref="/root/hidden/unsl_one/notefactspec1" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  923. </case>
  924. <case id="case_notecd1" sgetUserInfoelected="true" style="background-color:transparent; ">
  925. <caption id="caption5" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  926. <output id="opt_notecd1" ref="/root/hidden/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  927. <input id="ipt_notecd1" ref="/root/hidden/unsl_one/notefactcd1" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  928. <script type="javascript" ev:event="xforms-value-changed">
  929. <![CDATA[
  930. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd1"), "notefactcd1,notefactspec1", "", "ipt_amt", "ipt_acntcd", "acntcd");
  931. fAactCheck();
  932. ]]>
  933. </script>
  934. </input>
  935. <input id="ipt_notecdnm1" ref="/root/hidden/unsl_one/notefactspec1" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  936. <script type="javascript" ev:event="xforms-value-changed">
  937. <![CDATA[
  938. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd1"), "notefactcd1,notefactspec1", "", "ipt_amt", "ipt_acntcd", "acntcd");
  939. fAactCheck();
  940. ]]>
  941. </script>
  942. </input>
  943. <button id="btn_notecd1" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  944. <caption/>
  945. <script type="javascript" ev:event="DOMActivate">
  946. <![CDATA[
  947. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd1"), ipt_notecd1, "notefactcd1,notefactspec1", "", "ipt_acntcd", "acntcd");
  948. fAactCheck();
  949. ]]>
  950. </script>
  951. </button>
  952. </case>
  953. <case id="case_notecombo1" style="background-color:transparent; border-color:transparent; ">
  954. <caption id="caption40" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  955. <output id="opt_notecombo1" ref="/root/hidden/unsl_one/notefactnm1" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  956. <select1 id="cmb_notecombo1" ref="/root/hidden/unsl_one/notefactcd1" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  957. <choices>
  958. <itemset nodeset="/root/hidden/acntcdcombo/notecombo1">
  959. <label ref="cdnm"/>
  960. <value ref="cdid"/>
  961. </itemset>
  962. </choices>
  963. </select1>
  964. </case>
  965. <case id="case_noteblank1" selected="true">
  966. <caption id="caption39" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  967. </case>
  968. </switch>
  969. <switch id="switch2" class="sw_no_border" style="left:409px; top:57px; width:402px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  970. <case id="case_notenm2" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  971. <caption id="caption9" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  972. <output id="opt_notenm2" ref="/root/hidden/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  973. <input id="ipt_notenm2" ref="/root/hidden/unsl_one/notefactspec2" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  974. </case>
  975. <case id="case_notecd2" style="background-color:transparent; ">
  976. <caption id="caption20" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  977. <output id="opt_notecd2" ref="/root/hidden/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  978. <input id="ipt_notecd2" ref="/root/hidden/unsl_one/notefactcd2" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  979. <script type="javascript" ev:event="xforms-value-changed">
  980. <![CDATA[
  981. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd2"), "notefactcd2,notefactspec2", "", "ipt_amt", "ipt_acntcd", "acntcd");
  982. ]]>
  983. </script>
  984. </input>
  985. <input id="ipt_notecdnm2" ref="/root/hidden/unsl_one/notefactspec2" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  986. <script type="javascript" ev:event="xforms-value-changed">
  987. <![CDATA[
  988. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd2"), "notefactcd2,notefactspec2", "", "ipt_amt", "ipt_acntcd", "acntcd");
  989. ]]>
  990. </script>
  991. </input>
  992. <button id="btn_notecd2" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  993. <caption/>
  994. <script type="javascript" ev:event="DOMActivate">
  995. <![CDATA[
  996. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd2"), ipt_notecd1, "notefactcd2,notefactspec2", "", "ipt_acntcd", "acntcd");
  997. ]]>
  998. </script>
  999. </button>
  1000. </case>
  1001. <case id="case_notecombo2" style="background-color:transparent; border-color:transparent; ">
  1002. <caption id="caption21" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1003. <output id="opt_notecombo2" ref="/root/hidden/unsl_one/notefactnm2" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1004. <select1 id="cmb_notecombo2" ref="/root/hidden/unsl_one/notefactcd2" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  1005. <choices>
  1006. <itemset nodeset="/root/hidden/acntcdcombo/notecombo2">
  1007. <label ref="cdnm"/>
  1008. <value ref="cdid"/>
  1009. </itemset>
  1010. </choices>
  1011. </select1>
  1012. </case>
  1013. <case id="case_noteblank2" selected="true">
  1014. <caption id="caption29" ref="/root/hidden/unsl_one/notefactnm2" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1015. </case>
  1016. </switch>
  1017. <switch id="switch3" class="sw_no_border" style="left:6px; top:82px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  1018. <case id="case_notenm3" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  1019. <caption id="caption31" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  1020. <output id="opt_notenm3" ref="/root/hidden/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1021. <input id="ipt_notenm3" ref="/root/hidden/unsl_one/notefactspec3" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  1022. </case>
  1023. <case id="case_notecd3" style="background-color:transparent; ">
  1024. <caption id="caption32" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1025. <output id="opt_notecd3" ref="/root/hidden/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1026. <input id="ipt_notecd3" ref="/root/hidden/unsl_one/notefactcd3" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  1027. <script type="javascript" ev:event="xforms-value-changed">
  1028. <![CDATA[
  1029. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd3"), "notefactcd3,notefactspec3", "", "ipt_amt", "ipt_acntcd", "acntcd");
  1030. ]]>
  1031. </script>
  1032. </input>
  1033. <input id="ipt_notecdnm3" ref="/root/hidden/unsl_one/notefactspec3" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  1034. <script type="javascript" ev:event="xforms-value-changed">
  1035. <![CDATA[
  1036. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd3"), "notefactcd3,notefactspec3", "", "ipt_amt", "ipt_acntcd", "acntcd");
  1037. ]]>
  1038. </script>
  1039. </input>
  1040. <button id="btn_notecd3" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  1041. <caption/>
  1042. <script type="javascript" ev:event="DOMActivate">
  1043. <![CDATA[
  1044. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd3"), ipt_notecd1, "notefactcd3,notefactspec3", "", "ipt_acntcd", "acntcd");
  1045. ]]>
  1046. </script>
  1047. </button>
  1048. </case>
  1049. <case id="case_notecombo3" style="background-color:transparent; border-color:transparent; ">
  1050. <caption id="caption35" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1051. <output id="opt_notecombo3" ref="/root/hidden/unsl_one/notefactnm3" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1052. <select1 id="cmb_notecombo3" ref="/root/hidden/unsl_one/notefactcd3" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  1053. <choices>
  1054. <itemset nodeset="/root/hidden/acntcdcombo/notecombo3">
  1055. <label ref="cdnm"/>
  1056. <value ref="cdid"/>
  1057. </itemset>
  1058. </choices>
  1059. </select1>
  1060. </case>
  1061. <case id="case_noteblank3" selected="true">
  1062. <caption id="caption36" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1063. </case>
  1064. </switch>
  1065. <switch id="switch4" class="sw_no_border" style="left:409px; top:82px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  1066. <case id="case_notenm4" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  1067. <caption id="caption37" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  1068. <output id="opt_notenm4" ref="/root/hidden/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1069. <input id="ipt_notenm4" ref="/root/hidden/unsl_one/notefactspec4" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  1070. </case>
  1071. <case id="case_notecd4" style="background-color:transparent; ">
  1072. <caption id="caption38" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1073. <output id="opt_notecd4" ref="/root/hidden/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1074. <input id="ipt_notecd4" ref="/root/hidden/unsl_one/notefactcd4" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  1075. <script type="javascript" ev:event="xforms-value-changed">
  1076. <![CDATA[
  1077. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd4"), "notefactcd4,notefactspec4", "", "ipt_amt", "ipt_acntcd", "acntcd");
  1078. ]]>
  1079. </script>
  1080. </input>
  1081. <input id="ipt_notecdnm4" ref="/root/hidden/unsl_one/notefactspec4" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  1082. <script type="javascript" ev:event="xforms-value-changed">
  1083. <![CDATA[
  1084. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd4"), "notefactcd4,notefactspec4", "", "ipt_amt", "ipt_acntcd", "acntcd");
  1085. ]]>
  1086. </script>
  1087. </input>
  1088. <button id="btn_notecd4" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  1089. <caption/>
  1090. <script type="javascript" ev:event="DOMActivate">
  1091. <![CDATA[
  1092. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd4"), ipt_notecd1, "notefactcd4,notefactspec4", "", "ipt_acntcd", "acntcd");
  1093. ]]>
  1094. </script>
  1095. </button>
  1096. </case>
  1097. <case id="case_notecombo4" style="background-color:transparent; border-color:transparent; ">
  1098. <caption id="caption41" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1099. <output id="opt_notecombo4" ref="/root/hidden/unsl_one/notefactnm4" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1100. <select1 id="cmb_notecombo4" ref="/root/hidden/unsl_one/notefactcd4" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  1101. <choices>
  1102. <itemset nodeset="/root/hidden/acntcdcombo/notecombo4">
  1103. <label ref="cdnm"/>
  1104. <value ref="cdid"/>
  1105. </itemset>
  1106. </choices>
  1107. </select1>
  1108. </case>
  1109. <case id="case_noteblank4" selected="true" style="left:0px; top:0px; width:403px; height:25px; ">
  1110. <caption id="caption42" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1111. </case>
  1112. </switch>
  1113. <switch id="switch5" class="sw_no_border" style="left:6px; top:107px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  1114. <case id="case_notenm5" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  1115. <caption id="caption43" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  1116. <output id="opt_notenm5" ref="/root/hidden/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1117. <input id="ipt_notenm5" ref="/root/hidden/unsl_one/notefactspec5" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  1118. </case>
  1119. <case id="case_notecd5" style="background-color:transparent; ">
  1120. <caption id="caption44" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1121. <output id="opt_notecd5" ref="/root/hidden/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1122. <input id="ipt_notecd5" ref="/root/hidden/unsl_one/notefactcd5" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  1123. <script type="javascript" ev:event="xforms-value-changed">
  1124. <![CDATA[
  1125. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd5"), "notefactcd5,notefactspec5", "", "ipt_amt", "ipt_acntcd", "acntcd");
  1126. ]]>
  1127. </script>
  1128. </input>
  1129. <input id="ipt_notecdnm5" ref="/root/hidden/unsl_one/notefactspec5" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  1130. <script type="javascript" ev:event="xforms-value-changed">
  1131. <![CDATA[
  1132. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd5"), "notefactcd5,notefactspec5", "", "ipt_amt", "ipt_acntcd", "acntcd");
  1133. ]]>
  1134. </script>
  1135. </input>
  1136. <button id="btn_notecd5" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  1137. <caption/>
  1138. <script type="javascript" ev:event="DOMActivate">
  1139. <![CDATA[
  1140. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwn5"), ipt_notecd1, "notefactcd5,notefactspec5", "", "ipt_acntcd", "acntcd");
  1141. ]]>
  1142. </script>
  1143. </button>
  1144. </case>
  1145. <case id="case_notecombo5" style="background-color:transparent; border-color:transparent; ">
  1146. <caption id="caption45" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1147. <output id="opt_notecombo5" ref="/root/hidden/unsl_one/notefactnm5" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1148. <select1 id="cmb_notecombo5" ref="/root/hidden/unsl_one/notefactcd5" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  1149. <choices>
  1150. <itemset nodeset="/root/hidden/acntcdcombo/notecombo5">
  1151. <label ref="cdnm"/>
  1152. <value ref="cdid"/>
  1153. </itemset>
  1154. </choices>
  1155. </select1>
  1156. </case>
  1157. <case id="case_noteblank5" selected="true">
  1158. <caption id="caption46" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1159. </case>
  1160. </switch>
  1161. <switch id="switch6" class="sw_no_border" style="left:409px; top:107px; width:403px; height:25px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  1162. <case id="case_notenm6" style="left:0px; top:0px; width:401px; height:23px; border-style:hidden; border-left-style:hidden; border-top-style:hidden; border-right-style:hidden; border-bottom-style:hidden; ">
  1163. <caption id="caption48" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; border-style:none; "/>
  1164. <output id="opt_notenm6" ref="/root/hidden/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1165. <input id="ipt_notenm6" ref="/root/hidden/unsl_one/notefactspec6" class="input_default" style="left:112px; top:2px; width:288px; height:19px; "/>
  1166. </case>
  1167. <case id="case_notecd6" style="background-color:transparent; ">
  1168. <caption id="caption50" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1169. <output id="opt_notecd6" ref="/root/hidden/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1170. <input id="ipt_notecd6" ref="/root/hidden/unsl_one/notefactcd6" class="input_essential" navindex="-1" style="left:112px; top:2px; width:80px; height:19px; ">
  1171. <script type="javascript" ev:event="xforms-value-changed">
  1172. <![CDATA[
  1173. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd6"), "notefactcd6,notefactspec6", "", "ipt_amt", "ipt_acntcd", "acntcd");
  1174. ]]>
  1175. </script>
  1176. </input>
  1177. <input id="ipt_notecdnm6" ref="/root/hidden/unsl_one/notefactspec6" class="input_essential" style="left:216px; top:2px; width:184px; height:19px; ">
  1178. <script type="javascript" ev:event="xforms-value-changed">
  1179. <![CDATA[
  1180. fValidationCheck(model.getValue("/root/hidden/acntcdinfo/popwnd6"), "notefactcd6,notefactspec6", "", "ipt_amt", "ipt_acntcd", "acntcd");
  1181. ]]>
  1182. </script>
  1183. </input>
  1184. <button id="btn_notecd6" class="icon_search" navindex="-1" style="left:196px; top:4px; width:16px; height:16px; ">
  1185. <caption/>
  1186. <script type="javascript" ev:event="DOMActivate">
  1187. <![CDATA[
  1188. fOpenPopupHelp(model.getValue("/root/hidden/acntcdinfo/popwnd6"), ipt_notecd1, "notefactcd6,notefactspec6", "", "ipt_acntcd", "acntcd");
  1189. ]]>
  1190. </script>
  1191. </button>
  1192. </case>
  1193. <case id="case_notecombo6" style="background-color:transparent; border-color:transparent; ">
  1194. <caption id="caption52" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1195. <output id="opt_notecombo6" ref="/root/hidden/unsl_one/notefactnm6" style="left:0px; top:2px; width:110px; height:19px; padding-left:5; "/>
  1196. <select1 id="cmb_notecombo6" ref="/root/hidden/unsl_one/notefactcd6" class="combo_essential" appearance="minimal" style="left:112px; top:2px; width:289px; height:19px; ">
  1197. <choices>
  1198. <itemset nodeset="/root/hidden/acntcdcombo/notecombo6">
  1199. <label ref="cdnm"/>
  1200. <value ref="cdid"/>
  1201. </itemset>
  1202. </choices>
  1203. </select1>
  1204. </case>
  1205. <case id="case_noteblank6" selected="true">
  1206. <caption id="caption54" class="cell_1" style="left:0px; top:0px; width:110px; height:23px; text-align:center; vertical-align:middle; "/>
  1207. </case>
  1208. </switch>
  1209. <input id="ipt_etcnotefact" ref="/root/hidden/unsl_one/etcnotefact" class="input_search" navindex="2" style="left:120px; top:136px; width:765px; height:19px; ">
  1210. <script type="javascript" ev:event="onkeypress">
  1211. <![CDATA[
  1212. if (event.keyCode == "13") {model.setFocus("btn_grdadd");}
  1213. ]]>
  1214. </script>
  1215. </input>
  1216. <caption id="caption8" class="cell_1" style="left:7px; top:134px; width:110px; height:23px; vertical-align:middle; ">세부적요</caption>
  1217. <select id="checkbox1" ref="/root/hidden/acntcdinfo/option1" visibility="hidden" overflow="visible" appearance="full" style="left:430px; top:375px; width:100px; height:20px; border-style:none; ">
  1218. <choices>
  1219. <item>
  1220. <label>option1</label>
  1221. <value>Y</value>
  1222. </item>
  1223. </choices>
  1224. </select>
  1225. <select id="checkbox2" ref="/root/hidden/acntcdinfo/option2" visibility="hidden" overflow="visible" appearance="full" style="left:430px; top:390px; width:100px; height:20px; border-style:none; ">
  1226. <choices>
  1227. <item>
  1228. <label>option2</label>
  1229. <value>Y</value>
  1230. </item>
  1231. </choices>
  1232. </select>
  1233. <select id="checkbox3" ref="/root/hidden/acntcdinfo/option3" visibility="hidden" overflow="visible" appearance="full" style="left:430px; top:410px; width:100px; height:20px; border-style:none; ">
  1234. <choices>
  1235. <item>
  1236. <label>option3</label>
  1237. <value>Y</value>
  1238. </item>
  1239. </choices>
  1240. </select>
  1241. <select id="checkbox4" ref="/root/hidden/acntcdinfo/option4" visibility="hidden" overflow="visible" appearance="full" style="left:540px; top:375px; width:100px; height:20px; border-style:none; ">
  1242. <choices>
  1243. <item>
  1244. <label>option3</label>
  1245. <value>Y</value>
  1246. </item>
  1247. </choices>
  1248. </select>
  1249. <select id="checkbox5" ref="/root/hidden/acntcdinfo/option5" visibility="hidden" overflow="visible" appearance="full" style="left:540px; top:390px; width:100px; height:20px; border-style:none; ">
  1250. <choices>
  1251. <item>
  1252. <label>option5</label>
  1253. <value>Y</value>
  1254. </item>
  1255. </choices>
  1256. </select>
  1257. <select id="checkbox6" ref="/root/hidden/acntcdinfo/option6" visibility="hidden" overflow="visible" appearance="full" style="left:540px; top:410px; width:100px; height:20px; border-style:none; ">
  1258. <choices>
  1259. <item>
  1260. <label>option6</label>
  1261. <value>Y</value>
  1262. </item>
  1263. </choices>
  1264. </select>
  1265. </group>
  1266. <group id="group2" scroll="auto" style="left:0px; top:494px; width:890px; height:27px; ">
  1267. <button id="btn_cancel" class="btn4_letter2" style="left:832px; top:2px; width:56px; height:22px; ">
  1268. <caption>닫기</caption>
  1269. <script type="javascript" ev:event="DOMActivate">
  1270. <![CDATA[
  1271. if(!fCheckStatus()) return;
  1272. window.close();
  1273. ]]>
  1274. </script>
  1275. </button>
  1276. <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:885px; y2:0px; "/>
  1277. <button id="btn_save" class="btn4_letter2" navindex="8" style="left:770px; top:2px; width:56px; height:22px; ">
  1278. <caption>저장</caption>
  1279. <script type="javascript" ev:event="DOMActivate">
  1280. <![CDATA[
  1281. var vDcnt = 0;
  1282. var vRcnt = grd_unsl.rows - grd_unsl.fixedRows;
  1283. for(var i = grd_unsl.fixedRows ; i < grd_unsl.rows ; i++)
  1284. {
  1285. if(grd_unsl.rowStatus(i) == 4 || grd_unsl.rowStatus(i) == 5 || grd_unsl.rowStatus(i) == 6)
  1286. {
  1287. vDcnt = vDcnt + 1;
  1288. }
  1289. }
  1290. if(vDcnt == vRcnt)
  1291. {
  1292. messageBox("모두 삭제하면 전표를 생성할 수 없습니다.\n 전표를 삭제하시려면 부채계정을 모두 삭제하시면 됩니다." ,"I000");
  1293. fSearch();
  1294. return false;
  1295. }
  1296. if(getGridUpdateData(grd_unsl) == "") return;
  1297. if(!fIsValidForSave) return;
  1298. model.makeValue("/root/send/unsl",grd_unsl.getUpdateData());
  1299. misfSave("TXRAD00391");
  1300. var receiveref = model.getValue("/root/target/receiveref");
  1301. if(opt_arngmnunslno.value == "" && model.getValue("/root/temp/returnunslno/returnunslno") != "")
  1302. {
  1303. model.setValue(opt_arngmnunslno.attribute("ref"), model.getValue("/root/temp/returnunslno/returnunslno"));
  1304. ipt_arngmnunsldd.disabled = true;
  1305. }
  1306. if (checkOpener())
  1307. {
  1308. opener.model.setValue(receiveref + "/payamt" , model.getValue(opt_sumamt.attribute("ref")));
  1309. opener.model.setValue(receiveref + "/payarngmnunsldd" , model.getValue(ipt_arngmnunsldd.attribute("ref")));
  1310. opener.model.setValue(receiveref + "/payarngmnunslno" , model.getValue(opt_arngmnunslno.attribute("ref")));
  1311. opener.model.setValue(receiveref + "/updateflag" , 'Y');
  1312. messageBox("저장이 " ,"I002");
  1313. btn_search.dispatch("DOMActivate");
  1314. }
  1315. else
  1316. {
  1317. messagebox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  1318. }
  1319. ]]>
  1320. </script>
  1321. </button>
  1322. </group>
  1323. <input id="ipt_slipyn" ref="/root/hidden/slipyn" navindex="-1" visibility="hidden" style="left:825px; top:140px; width:35px; height:19px; "/>
  1324. <input id="ipt_instcd" ref="/root/target/slipinfo/instcd" navindex="-1" visibility="hidden" style="left:835px; top:160px; width:35px; height:19px; "/>
  1325. </xhtml:body>
  1326. </xhtml:html>