SMRAD01400_전표자동분개.xrw 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  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. <condition>
  11. <instcd/>
  12. <slipflag>1</slipflag>
  13. <genrdd/>
  14. <alldate/>
  15. <deptcd/>
  16. <deptnm/>
  17. <slipkind/>
  18. <slipendyn>1</slipendyn>
  19. </condition>
  20. <list>
  21. <detailist/>
  22. </list>
  23. </main>
  24. <send>
  25. <data>
  26. <instcd/>
  27. <mngtcd/>
  28. </data>
  29. </send>
  30. <save>
  31. <detailist/>
  32. </save>
  33. <display>
  34. <slipflag>
  35. <cdnm>전체</cdnm>
  36. <cdid>A</cdid>
  37. </slipflag>
  38. <slipflag>
  39. <cdnm>일반전표</cdnm>
  40. <cdid>1</cdid>
  41. </slipflag>
  42. <slipflag>
  43. <cdid>2</cdid>
  44. <cdnm>
  45. <![CDATA[입원수익전표]]>
  46. </cdnm>
  47. </slipflag>
  48. <slipflag>
  49. <cdid>3</cdid>
  50. <cdnm>
  51. <![CDATA[외래수익전표]]>
  52. </cdnm>
  53. </slipflag>
  54. <slipflag>
  55. <cdid>4</cdid>
  56. <cdnm>
  57. <![CDATA[건진수익전표]]>
  58. </cdnm>
  59. </slipflag>
  60. <slipflag>
  61. <cdid>5</cdid>
  62. <cdnm>
  63. <![CDATA[급여전표]]>
  64. </cdnm>
  65. </slipflag>
  66. <slipflag>
  67. <cdid>6</cdid>
  68. <cdnm>
  69. <![CDATA[물류전표(입고)]]>
  70. </cdnm>
  71. </slipflag>
  72. <slipflag>
  73. <cdid>7</cdid>
  74. <cdnm>
  75. <![CDATA[물류전표(출고)]]>
  76. </cdnm>
  77. </slipflag>
  78. <slipflag>
  79. <cdid>8</cdid>
  80. <cdnm>
  81. <![CDATA[감가상각전표]]>
  82. </cdnm>
  83. </slipflag>
  84. <slipkind>
  85. <cd>1</cd>
  86. <nm>대체</nm>
  87. </slipkind>
  88. <slipkind>
  89. <cd>2</cd>
  90. <nm>입금</nm>
  91. </slipkind>
  92. <slipkind>
  93. <cd>3</cd>
  94. <nm>출금</nm>
  95. </slipkind>
  96. <profflag>
  97. <nm>법인카드</nm>
  98. <cd>1</cd>
  99. </profflag>
  100. <profflag>
  101. <nm>개인신용카드</nm>
  102. <cd>2</cd>
  103. </profflag>
  104. <profflag>
  105. <nm>현금영수증</nm>
  106. <cd>3</cd>
  107. </profflag>
  108. <profflag>
  109. <nm>세금계산서</nm>
  110. <cd>4</cd>
  111. </profflag>
  112. <profflag>
  113. <nm>계산서</nm>
  114. <cd>5</cd>
  115. </profflag>
  116. <profflag>
  117. <nm>기타</nm>
  118. <cd>6</cd>
  119. </profflag>
  120. <profflag>
  121. <nm>근로소득</nm>
  122. <cd>7</cd>
  123. </profflag>
  124. <profflag>
  125. <nm>비과세근로소득</nm>
  126. <cd>8</cd>
  127. </profflag>
  128. <profflag>
  129. <nm>퇴직소득</nm>
  130. <cd>9</cd>
  131. </profflag>
  132. <profflag>
  133. <nm>일용근로소득</nm>
  134. <cd>A</cd>
  135. </profflag>
  136. <profflag>
  137. <nm>사업소득</nm>
  138. <cd>B</cd>
  139. </profflag>
  140. <profflag>
  141. <nm>기타소득</nm>
  142. <cd>C</cd>
  143. </profflag>
  144. <custflag>
  145. <nm>거래처</nm>
  146. <cd>1</cd>
  147. </custflag>
  148. <custflag>
  149. <nm>부서</nm>
  150. <cd>3</cd>
  151. </custflag>
  152. <custflag>
  153. <nm>교직원</nm>
  154. <cd>4</cd>
  155. </custflag>
  156. <custflag>
  157. <nm>개인</nm>
  158. <cd>5</cd>
  159. </custflag>
  160. <custflag>
  161. <nm>기타</nm>
  162. <cd>9</cd>
  163. </custflag>
  164. <dcrflag>
  165. <nm>차변</nm>
  166. <cd>D</cd>
  167. </dcrflag>
  168. <dcrflag>
  169. <nm>대변</nm>
  170. <cd>C</cd>
  171. </dcrflag>
  172. <fixasetflag>
  173. <nm>일반매입매출</nm>
  174. <cd>00</cd>
  175. </fixasetflag>
  176. <fixasetflag>
  177. <nm>건·구축물</nm>
  178. <cd>01</cd>
  179. </fixasetflag>
  180. <fixasetflag>
  181. <nm>기계장치</nm>
  182. <cd>02</cd>
  183. </fixasetflag>
  184. <fixasetflag>
  185. <nm>차량운반구</nm>
  186. <cd>03</cd>
  187. </fixasetflag>
  188. <fixasetflag>
  189. <nm>기타감가상각물</nm>
  190. <cd>04</cd>
  191. </fixasetflag>
  192. <bankflag>
  193. <nm/>
  194. <cd/>
  195. </bankflag>
  196. <bankflag>
  197. <nm>국민카드</nm>
  198. <cd>01</cd>
  199. </bankflag>
  200. <bankflag>
  201. <nm>롯데카드</nm>
  202. <cd>02</cd>
  203. </bankflag>
  204. <bankflag>
  205. <nm>비씨카드</nm>
  206. <cd>03</cd>
  207. </bankflag>
  208. <bankflag>
  209. <nm>삼성카드</nm>
  210. <cd>04</cd>
  211. </bankflag>
  212. <bankflag>
  213. <nm>신한카드</nm>
  214. <cd>05</cd>
  215. </bankflag>
  216. <bankflag>
  217. <nm>씨티카드</nm>
  218. <cd>06</cd>
  219. </bankflag>
  220. <bankflag>
  221. <nm>엘지카드</nm>
  222. <cd>07</cd>
  223. </bankflag>
  224. <bankflag>
  225. <nm>외환카드</nm>
  226. <cd>08</cd>
  227. </bankflag>
  228. <bankflag>
  229. <nm>우리카드</nm>
  230. <cd>09</cd>
  231. </bankflag>
  232. <bankflag>
  233. <nm>조흥카드</nm>
  234. <cd>10</cd>
  235. </bankflag>
  236. <bankflag>
  237. <nm>현대카드</nm>
  238. <cd>11</cd>
  239. </bankflag>
  240. </display>
  241. <init>
  242. <R0008list>
  243. <R0008>
  244. <cdnm/>
  245. <cdid/>
  246. </R0008>
  247. </R0008list>
  248. <code>
  249. <codelist/>
  250. </code>
  251. </init>
  252. <temp/>
  253. <source>
  254. <slipinfo/>
  255. </source>
  256. </root>
  257. </instance>
  258. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  259. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  260. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  261. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  262. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  263. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  264. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  265. <script type="javascript" ev:event="xforms-ready">
  266. <![CDATA[
  267. fOpenForm();
  268. ]]>
  269. </script>
  270. <script type="javascript">
  271. <![CDATA[
  272. var deptcd = "";
  273. var acntdept = "";
  274. //========================================================================================
  275. //화면 로드시 초기화 함수
  276. //========================================================================================
  277. function fOpenForm()
  278. {
  279. var instcd = getUserInfo("dutplceinstcd");
  280. deptcd = getUserInfo("dutplcecd");
  281. var deptnm = getUserInfo("dutplcenm");
  282. model.setValue("/root/send/data/instcd", instcd);
  283. model.setValue("/root/send/data/mngtcd", "acntdept");
  284. submit("TRRAZ00001");
  285. acntdept = model.getValue("/root/init/code/code/codelist/cdid");
  286. if (deptcd != acntdept)
  287. {
  288. model.setValue(cmb_slipflag.attribute("ref"), "1");
  289. //cmb_slipflag.disabled = true;
  290. model.setValue(cmb_slipkind.attribute("ref"), "3");
  291. //cmb_slipkind.disabled = true;
  292. //model.setValue(ipt_deptcd.attribute("ref"), deptcd);
  293. //model.setValue(ipt_deptnm.attribute("ref"), deptnm);
  294. //ipt_deptcd.disabled = true;
  295. //ipt_deptnm.disabled = true;
  296. }
  297. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition7') == "Y")
  298. {
  299. misfComboComCdList("R0360", cmb_slipkind, "Y");
  300. }
  301. else
  302. {
  303. misfComboComCdList("R0359", cmb_slipkind, "Y");
  304. }
  305. misfComboComCdList("R0008", cmb_slipflag, "N");
  306. model.removenode("/root/main/notelist");
  307. var sToday = getCurrentDate().toString();
  308. model.setValue("/root/main/condition/genrdd",sToday);
  309. var instcd = getUserInfo("dutplceinstcd");
  310. model.setValue("/root/main/condition/instcd",instcd);
  311. model.resetInstanceNode("/root/main/list/detailist");
  312. model.removenode("/root/main/list/detailist");//조회시 기존 데이터 삭제
  313. for(var i = grd_autosliplist.fixedCols ; i < grd_autosliplist.cols ; i++)
  314. {
  315. grd_autosliplist.colDisabled(i) = true;
  316. }
  317. model.refresh();
  318. }
  319. function fAddDelRow(sStatus)
  320. {
  321. if(sStatus == "A")
  322. {
  323. misfGridIUD(grd_autosliplist, sStatus);
  324. grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  325. grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("genrdd")) = model.getValue("/root/main/condition/genrdd");
  326. grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("slipflag")) = model.getValue("/root/main/condition/slipflag");
  327. }
  328. else
  329. {
  330. misfGridIUD(grd_autosliplist, sStatus);
  331. }
  332. }
  333. function fSaveClick()
  334. {
  335. model.resetInstanceNode("/root/send");
  336. model.removenode("/root/send");//조회시 기존 데이터 삭제
  337. model.setValue("/root/save/detailist", grd_autosliplist.getUpdateData());
  338. model.refresh();
  339. submit("TXRAD01402");
  340. }
  341. //========================================================================================
  342. //기재사항코드 조회
  343. //========================================================================================
  344. function fRetrive()
  345. {
  346. model.resetInstanceNode("/root/main/list/detailist");
  347. model.removenode("/root/main/list/detailist");//조회시 기존 데이터 삭제
  348. model.makeNode("/root/send");
  349. model.copyNode("/root/send", "/root/main/condition");
  350. model.refresh();
  351. submit("TRRAD01401");
  352. grd_autosliplist.subtotalposition="below";
  353. grd_autosliplist.multitotals=true;
  354. grd_autosliplist.subtotal("sum", grd_autosliplist.colRef("slipseqno"), grd_autosliplist.colRef("amt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#3366ff; color:#0000ff; font-weight:bold; ", 30, "전표구분번호별합계", false);
  355. grd_autosliplist.subtotal("sum", grd_autosliplist.colRef("workflag"), grd_autosliplist.colRef("amt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#7CBBDD; color:#0000ff; font-weight:bold; ", 30, "업무별합계", false);
  356. grd_autosliplist.subtotal("sum", grd_autosliplist.colRef("unslno"), grd_autosliplist.colRef("amt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#00ffff; color:#0000ff; font-weight:bold; ", 30, "전표차대합계", false);
  357. grd_autosliplist.subtotal("sum", grd_autosliplist.colRef("drcrflag"), grd_autosliplist.colRef("amt"), "format:#,###; roundmode:round; roundpostion:2", "background-color:#ccffff; font-weight:bold; ", 30, "차대소계", false);
  358. model.refresh();
  359. }
  360. function fAutoBookClick()
  361. {
  362. model.makeNode("/root/send");
  363. model.copyNode("/root/send", "/root/main/condition");
  364. model.refresh();
  365. submit("TXRAD01403");
  366. model.refresh();
  367. }
  368. //========================================================================================
  369. //관리항목 상세정보 조회(그리드용)
  370. //========================================================================================
  371. function fGetMngItemInfo(pRow)
  372. {
  373. if ( pRow > 0 )
  374. {
  375. model.resetInstanceNode("/root/send");
  376. var strItem ;
  377. strItem = grd_notelist.valueMatrix(grd_notelist.row, grd_notelist.colRef("mngitem"));
  378. model.setValue("/root/main/condition/mngitem",strItem);
  379. model.resetInstanceNode("/root/main/list/detailist");
  380. model.removenode("/root/main/list/detailist");//조회시 기존 데이터 삭제
  381. model.copyNode("/root/send", "/root/main/condition");
  382. submit("TRRAD01002");
  383. }
  384. }
  385. //========================================================================================
  386. //각종 코드 Help Open
  387. //========================================================================================
  388. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  389. {
  390. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  391. model.refresh();
  392. }
  393. //========================================================================================
  394. //엑셀입력(excel file을 그리드에 입력)
  395. //========================================================================================
  396. function fInputExcel(pGrid)
  397. {
  398. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  399. if(fileName != "")
  400. {
  401. pGrid.loadExcel(fileName, 1, true);
  402. pGrid.deleteRow(1);
  403. for(i = 1; i < pGrid.rows; i++)
  404. {
  405. pGrid.rowStatus(i) = 1;
  406. }
  407. pGrid.refresh();
  408. }
  409. }
  410. ]]>
  411. </script>
  412. <submission id="TRRAD01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/itemlist"/>
  413. <submission id="TXRAD01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/save/detailist" resultref="/root/temp"/>
  414. <submission id="TXRAD01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/condition" resultref="/root/temp"/>
  415. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  416. <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/init/code/codelist"/>
  417. </model>
  418. </xhtml:head>
  419. <xhtml:body guideline="1,1195;2,415;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  420. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  421. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">전표자동분개</caption>
  422. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  423. </group>
  424. <group id="group3" scroll="auto" style="left:0px; top:15px; width:1195px; height:735px; ">
  425. <group id="grp_sea" visibility="visible" style="left:0px; top:33px; width:1195px; height:64px; vertical-align:top; ">
  426. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:64px; background-color:#fffbf2; border-color:#ffd799; "/>
  427. <caption id="caption7" class="search_name" style="left:16px; top:11px; width:125px; height:17px; ">전표구분 :</caption>
  428. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1130px; top:8px; width:56px; height:22px; text-align:left; ">
  429. <caption>조회</caption>
  430. <script type="javascript" ev:event="DOMActivate">
  431. <![CDATA[
  432. fRetrive();
  433. ]]>
  434. </script>
  435. </button>
  436. <caption id="caption1" class="search_name" style="left:375px; top:11px; width:89px; height:17px; ">발의일자 :</caption>
  437. <input id="input2" ref="/root/main/condition/genrdd" class="input_s_essential" inputtype="date" style="left:465px; top:10px; width:105px; height:19px; "/>
  438. <select1 id="cmb_slipflag" ref="/root/main/condition/slipflag" class="combo_default" appearance="minimal" showvalue="true" style="left:105px; top:10px; width:215px; height:19px; ">
  439. <choices>
  440. <itemset nodeset="/root/init/R0008list/R0008">
  441. <label ref="cdnm"/>
  442. <value ref="cdid"/>
  443. </itemset>
  444. </choices>
  445. </select1>
  446. <line id="line1" class="line_4" style="x1:1105px; y1:8px; x2:1105px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  447. <input id="ipt_deptnm" ref="/root/main/condition/deptnm" class="input_s_essential" navindex="10" style="left:850px; top:10px; width:145px; height:19px; "/>
  448. <button id="btn_deptcd" class="icon_search" navindex="9" style="left:830px; top:10px; width:16px; height:16px; ">
  449. <caption/>
  450. <script type="javascript" ev:event="DOMActivate">
  451. <![CDATA[
  452. misfOpenPopUpList("02", ipt_deptcd, "", "deptcd,deptnm");
  453. model.refresh();
  454. ]]>
  455. </script>
  456. </button>
  457. <input id="ipt_deptcd" ref="/root/main/condition/deptcd" class="input_s_essential" navindex="8" style="left:730px; top:10px; width:95px; height:19px; "/>
  458. <caption id="caption5" class="search_name" style="left:630px; top:11px; width:90px; height:17px; ">발의부서 :</caption>
  459. <select1 id="cmb_slipendyn" ref="/root/main/condition/slipendyn" class="combo_default" appearance="minimal" showvalue="true" style="left:465px; top:36px; width:105px; height:19px; ">
  460. <choices>
  461. <item>
  462. <label>전체</label>
  463. <value/>
  464. </item>
  465. <item>
  466. <label>분개전</label>
  467. <value>1</value>
  468. </item>
  469. <item>
  470. <label>분개후</label>
  471. <value>2</value>
  472. </item>
  473. </choices>
  474. </select1>
  475. <caption id="caption2" class="search_name" style="left:375px; top:37px; width:125px; height:17px; ">분개구분 :</caption>
  476. <select1 id="cmb_slipkind" ref="/root/main/condition/slipkind" class="combo_default" appearance="minimal" showvalue="true" style="left:105px; top:35px; width:215px; height:19px; ">
  477. <choices>
  478. <itemset>
  479. <label/>
  480. <value/>
  481. </itemset>
  482. </choices>
  483. </select1>
  484. <caption id="caption3" class="search_name" style="left:16px; top:36px; width:125px; height:17px; ">전표유형 :</caption>
  485. </group>
  486. <line id="line3" class="line_1" style="x1:0px; y1:125px; x2:1195px; y2:125px; "/>
  487. <caption id="caption21" class="tit_2" style="left:3px; top:108px; width:131px; height:13px; ">전표 자동분개</caption>
  488. <datagrid id="grd_autosliplist" nodeset="/root/main/list/detailist" caption="기관코드^순번^전표구분번호^작업 구분^발의일자^미결^미결^미결^전표구분^전표유형^차대구분^계정코드^계정명^상대계정코드^상대계정명^귀속부서^귀속부서명^기표부서^기표부서명^입출금예정일^전표적요^상대처구분^상대처코드^상대처명^기재사항제목1^기재사항코드1^기재사항내역1^기재사항제목2^기재사항코드2^기재사항내역2^기타기재사항^프로젝트ID^합계금액^공급가액^부가가치세^증빙구분^사용일자^거래처^거래처명^거래처주소^거래처대표자^거래처 업태^거래처 종목^전화번호^증빙적요^법인카드번호^카드사코드^사용자^소유부서^소유부서명^고정자산매입구분^매입매출구분^과세구분^처리일자|기관코드^순번^전표구분번호^작업 구분^발의일자^전표일자^전표번호^일련번호^전표구분^전표유형^차대구분^계정코드^계정명^상대계정코드^상대계정명^귀속부서^귀속부서명^기표부서^기표부서명^입출금예정일^전표적요^상대처구분^상대처코드^상대처명^기재사항제목1^기재사항코드1^기재사항내역1^기재사항제목2^기재사항코드2^기재사항내역2^기타기재사항^프로젝트ID^합계금액^공급가액^부가가치세^증빙구분^사용일자^거래처^거래처명^거래처주소^거래처대표자^거래처 업태^거래처 종목^전화번호^증빙적요^법인카드번호^카드사코드^사용자^소유부서^소유부서명^고정자산매입구분^매입매출구분^과세구분^처리일자" colsep="^" colwidth="0, 51, 50, 50, 81, 77, 68, 58, 108, 60, 58, 74, 77, 90, 79, 66, 88, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 120, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" explorerbar="move" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:130px; width:1195px; height:604px; ">
  489. <col ref="instcd" visibility="hidden"/>
  490. <col ref="seqno" style="text-align:left; "/>
  491. <col ref="slipseqno"/>
  492. <col ref="workflag"/>
  493. <col ref="genrdd" format="yyyy-mm-dd" style="text-align:left; "/>
  494. <col ref="unsldd" format="yyyy-mm-dd" style="text-align:left; "/>
  495. <col ref="unslno" style="text-align:left; "/>
  496. <col ref="unslseqno" style="text-align:left; "/>
  497. <col ref="slipflag" type="combo" style="text-align:left; ">
  498. <choices>
  499. <itemset nodeset="/root/display/slipflag">
  500. <label ref="cdnm"/>
  501. <value ref="cdid"/>
  502. </itemset>
  503. </choices>
  504. </col>
  505. <col ref="slipkind" type="combo" style="text-align:left; ">
  506. <choices>
  507. <itemset nodeset="/root/display/slipkind">
  508. <label ref="nm"/>
  509. <value ref="cd"/>
  510. </itemset>
  511. </choices>
  512. </col>
  513. <col ref="drcrflag" type="combo" style="text-align:left; ">
  514. <choices>
  515. <itemset nodeset="/root/display/dcrflag">
  516. <label ref="nm"/>
  517. <value ref="cd"/>
  518. </itemset>
  519. </choices>
  520. </col>
  521. <col ref="acntcd" type="inputbutton" style="text-align:left; "/>
  522. <col ref="acntnm" style="text-align:left; "/>
  523. <col ref="rlaacntcd" type="inputbutton" style="text-align:left; "/>
  524. <col ref="rlaacntnm" style="text-align:left; "/>
  525. <col ref="costcntrdeptcd" type="inputbutton" style="text-align:left; "/>
  526. <col ref="costcntrdeptnm" style="text-align:left; "/>
  527. <col ref="slipdeptcd" type="inputbutton" style="text-align:left; "/>
  528. <col ref="slipdeptnm" style="left:1137px; top:43px; width:100px; height:23px; text-align:left; "/>
  529. <col ref="defrayreqdd" type="inputdate" format="yyyy-mm-dd" style="text-align:left; "/>
  530. <col ref="slipcmt" type="input" style="text-align:left; "/>
  531. <col ref="rlaflag" type="combo" style="text-align:left; ">
  532. <choices>
  533. <itemset nodeset="/root/display/custflag">
  534. <label ref="nm"/>
  535. <value ref="cd"/>
  536. </itemset>
  537. </choices>
  538. </col>
  539. <col ref="rlacd" type="inputbutton" style="text-align:left; "/>
  540. <col ref="rlanm" type="input" style="text-align:left; "/>
  541. <col ref="notefactnm1" type="input" style="text-align:left; "/>
  542. <col ref="notefactcd1" type="inputbutton" style="text-align:left; "/>
  543. <col ref="notefactspec1" type="input" style="text-align:left; "/>
  544. <col ref="notefactnm2" type="input" style="text-align:left; "/>
  545. <col ref="notefactcd2" type="input" style="text-align:left; "/>
  546. <col ref="notefactspec2" type="input" style="text-align:left; "/>
  547. <col ref="etcnotefact" type="input" style="text-align:left; "/>
  548. <col ref="projectid" type="input" style="text-align:left; "/>
  549. <col ref="amt" type="input" format="(-)#,###" style="text-align:right; "/>
  550. <col ref="suplamt" type="input" format="(-)#,###" style="text-align:right; "/>
  551. <col ref="valaddtax" type="input" format="(-)#,###" style="text-align:right; "/>
  552. <col ref="profflag" type="combo" style="text-align:left; ">
  553. <choices>
  554. <itemset nodeset="/root/display/profflag">
  555. <label ref="nm"/>
  556. <value ref="cd"/>
  557. </itemset>
  558. </choices>
  559. </col>
  560. <col ref="usedd" type="inputdate" format="yyyy-mm-dd" style="text-align:left; "/>
  561. <col ref="entrregno" type="inputbutton" style="text-align:left; "/>
  562. <col ref="custnm" type="input" style="text-align:left; "/>
  563. <col ref="custaddr" type="input" style="text-align:left; "/>
  564. <col ref="custprsd" type="input" style="text-align:left; "/>
  565. <col ref="custbizcond" type="input" style="text-align:left; "/>
  566. <col ref="custitem" type="input" style="text-align:left; "/>
  567. <col ref="cntctel" type="input" style="text-align:left; "/>
  568. <col ref="mainrec" type="input" style="text-align:left; "/>
  569. <col ref="instcardseqno" type="input" style="text-align:left; "/>
  570. <col ref="cardcmpycd" type="combo" style="text-align:left; ">
  571. <choices>
  572. <itemset nodeset="/root/display/bankflag">
  573. <label ref="nm"/>
  574. <value ref="cd"/>
  575. </itemset>
  576. </choices>
  577. </col>
  578. <col ref="posspsn" type="input" style="text-align:left; "/>
  579. <col ref="possdeptcd" type="inputbutton" style="text-align:left; "/>
  580. <col ref="possdeptnm" style="text-align:left; "/>
  581. <col ref="fixasetflag" type="combo" style="text-align:left; ">
  582. <choices>
  583. <itemset nodeset="/root/display/fixasetflag">
  584. <label ref="nm"/>
  585. <value ref="cd"/>
  586. </itemset>
  587. </choices>
  588. </col>
  589. <col ref="taxbillflag" type="combo" style="text-align:left; ">
  590. <choices>
  591. <item>
  592. <label>매입</label>
  593. <value>1</value>
  594. </item>
  595. <item>
  596. <label>매출</label>
  597. <value>2</value>
  598. </item>
  599. </choices>
  600. </col>
  601. <col ref="taxkind" type="combo" style="text-align:left; ">
  602. <choices>
  603. <item>
  604. <label>과세</label>
  605. <value>01</value>
  606. </item>
  607. <item>
  608. <label>영세율</label>
  609. <value>02</value>
  610. </item>
  611. <item>
  612. <label>대손세액가감</label>
  613. <value>03</value>
  614. </item>
  615. </choices>
  616. </col>
  617. <col ref="prcdd" format="yyyy-mm-dd" style="text-align:left; "/>
  618. <script type="javascript" ev:event="onbuttonclick">
  619. <![CDATA[
  620. if(grd_autosliplist.col == grd_autosliplist.colRef("acntcd"))
  621. {
  622. misfOpenPopUpList("05", grd_autosliplist, "", "acntcd,acntnm");
  623. model.refresh();
  624. }
  625. if(grd_autosliplist.col == grd_autosliplist.colRef("rlaacntcd"))
  626. {
  627. misfOpenPopUpList("05", grd_autosliplist, "", "rlaacntcd,rlaacntnm");
  628. model.refresh();
  629. }
  630. if(grd_autosliplist.col == grd_autosliplist.colRef("costcntrdeptcd"))
  631. {
  632. misfOpenPopUpList("02", grd_autosliplist, "", "costcntrdeptcd,costcntrdeptnm");
  633. model.refresh();
  634. }
  635. if(grd_autosliplist.col == grd_autosliplist.colRef("slipdeptcd"))
  636. {
  637. misfOpenPopUpList("02", grd_autosliplist, "", "slipdeptcd,slipdeptnm");
  638. model.refresh();
  639. }
  640. if(grd_autosliplist.col == grd_autosliplist.colRef("possdeptcd"))
  641. {
  642. misfOpenPopUpList("02", grd_autosliplist, "", "possdeptcd,possdeptnm");
  643. model.refresh();
  644. }
  645. if(grd_autosliplist.col == grd_autosliplist.colRef("entrregno"))
  646. {
  647. misfOpenPopUpList("14", grd_autosliplist, "", "entrregno,custnm,custprsd,cntctel,custaddr,custbizcond,custitem");
  648. model.refresh();
  649. }
  650. if(grd_autosliplist.col == grd_autosliplist.colRef("rlacd"))
  651. {
  652. var strPopup;
  653. var strChk;
  654. var rownum ;
  655. rownum = grd_autosliplist.row;
  656. strChk = model.getValue("/root/main/list/detailist["+ rownum + "]/rlaflag");
  657. if ( strChk == "1" ) {
  658. strPopup = "14";
  659. } else if ( strChk == "3" ) {
  660. strPopup = "02";
  661. } else if ( strChk == "4" ) {
  662. strPopup = "01";
  663. } else if ( strChk == "5" ) {
  664. strPopup = "31";
  665. } else {
  666. return;
  667. }
  668. misfOpenPopUpList(strPopup, grd_autosliplist, "", "rlacd,rlanm");
  669. model.refresh();
  670. }
  671. if(grd_autosliplist.col == grd_autosliplist.colRef("notefactcd1"))
  672. {
  673. /* 순서 체크 해야 함 notefactnm1*/
  674. misfOpenPopUpList("15", grd_autosliplist, "", "notefactcd1,notefactspec1");
  675. var strtmp = grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("notefactcd1")) ;
  676. if (strtmp != "")
  677. {
  678. grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("notefactnm1")) = "계좌번호";
  679. }
  680. model.refresh();
  681. }
  682. ]]>
  683. </script>
  684. <script type="javascript" ev:event="ondblclick">
  685. <![CDATA[
  686. if (grd_autosliplist.isCell(event.target) && grd_autosliplist.row > 0 && grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("unsldd")) != "")
  687. {
  688. model.makeValue("/root/source/slipinfo/instcd", grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("instcd")));
  689. model.makeValue("/root/source/slipinfo/slipdt", grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("unsldd")));
  690. model.makeValue("/root/source/slipinfo/slipno", grd_autosliplist.valueMatrix(grd_autosliplist.row, grd_autosliplist.colRef("unslno")));
  691. model.refresh();
  692. modal("SMRAD08100","","","","","/root/source", "/root/target" );
  693. }
  694. ]]>
  695. </script>
  696. </datagrid>
  697. <button id="btn_delrow" class="btn2_letter3" navindex="9" style="left:1139px; top:102px; width:53px; height:19px; text-align:left; ">
  698. <caption>행삭제</caption>
  699. <script type="javascript" ev:event="DOMActivate">
  700. <![CDATA[
  701. fAddDelRow("D");
  702. ]]>
  703. </script>
  704. </button>
  705. <button id="btn_addrow" class="btn2_letter3" navindex="8" visibility="hidden" style="left:940px; top:102px; width:53px; height:19px; text-align:left; ">
  706. <caption>행추가</caption>
  707. <script type="javascript" ev:event="DOMActivate">
  708. <![CDATA[
  709. fAddDelRow("A");
  710. ]]>
  711. </script>
  712. </button>
  713. <button id="btn_autotr" class="btn4_letter2" navindex="23" style="left:1130px; top:3px; width:56px; height:22px; ">
  714. <caption>분개</caption>
  715. <script type="javascript" ev:event="DOMActivate">
  716. <![CDATA[
  717. if(deptcd == acntdept)
  718. {
  719. if((model.getValue(cmb_slipkind.attribute("ref")) == "" || model.getValue(cmb_slipkind.attribute("ref")) == "3") && model.getValue(cmb_slipflag.attribute("ref")) == "1")
  720. {
  721. messageBox("CTMS 출금전표는 임상연구지원 센터 권한입니다.", "I000");
  722. return;
  723. }
  724. }
  725. else
  726. {
  727. if((model.getValue(cmb_slipkind.attribute("ref")) == "" || model.getValue(cmb_slipkind.attribute("ref")) == "1" || model.getValue(cmb_slipkind.attribute("ref")) == "2") && model.getValue(cmb_slipflag.attribute("ref")) == "1")
  728. {
  729. messageBox("CTMS 대체, 입금 전표는 재무팀 권한입니다.", "I000");
  730. return;
  731. }
  732. }
  733. fAutoBookClick();
  734. fRetrive();
  735. ]]>
  736. </script>
  737. </button>
  738. <select id="checkbox1" ref="/root/main/condition/alldate" disabled="true" visibility="hidden" overflow="visible" appearance="full" style="left:920px; top:5px; width:135px; height:20px; border-style:none; ">
  739. <choices>
  740. <item>
  741. <label>모든 일자 자동분개</label>
  742. <value>A</value>
  743. </item>
  744. </choices>
  745. </select>
  746. <button id="btn_save" class="btn4_letter2" navindex="23" visibility="visible" style="left:1070px; top:3px; width:56px; height:22px; ">
  747. <caption>저장</caption>
  748. <script type="javascript" ev:event="DOMActivate">
  749. <![CDATA[
  750. if(deptcd == acntdept)
  751. {
  752. if((model.getValue(cmb_slipkind.attribute("ref")) == "" || model.getValue(cmb_slipkind.attribute("ref")) == "3") && model.getValue(cmb_slipflag.attribute("ref")) == "1")
  753. {
  754. messageBox("CTMS 출금전표는 임상연구지원 센터 권한입니다.", "I000");
  755. return;
  756. }
  757. }
  758. fSaveClick();
  759. fRetrive();
  760. ]]>
  761. </script>
  762. </button>
  763. <button id="btn_5" class="btn2_letter4" style="left:1070px; top:102px; width:64px; height:19px; text-align:left; ">
  764. <caption>엑셀출력</caption>
  765. <script type="javascript" ev:event="DOMActivate">
  766. <![CDATA[
  767. radfSaveExcel(grd_autosliplist);
  768. ]]>
  769. </script>
  770. </button>
  771. </group>
  772. </xhtml:body>
  773. </xhtml:html>