SMICS02900_부과세신고관리.xrw 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>부가세신고관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <gridacclist>
  11. <item>
  12. <subjno/>
  13. <stmntseqno/>
  14. <taxyn/>
  15. <taxdd/>
  16. <taxyy/>
  17. <taxqurtyy/>
  18. <mistrsmyn/>
  19. <mistaxdd/>
  20. <mistaxyy/>
  21. <mistaxqurtyy/>
  22. <depodd/>
  23. <reqinstcd/>
  24. <cmpynm/>
  25. <prsdnm/>
  26. <addr/>
  27. <bizcond/>
  28. <bizcondkind/>
  29. <supplyamt/>
  30. <direcamt/>
  31. <crccamt/>
  32. <hospamt/>
  33. <judgamt/>
  34. <drugmngtamt/>
  35. <documngtamt/>
  36. <mistrsmdd/>
  37. <mistrsmid/>
  38. <hidtaxyn/>
  39. <hidmistrsmyn/>
  40. <hidmistaxdd/>
  41. <hidmistaxyy/>
  42. <hidmistaxqurtyy/>
  43. </item>
  44. <item2>
  45. <subjno/>
  46. <stmntseqno/>
  47. <taxyn/>
  48. <taxdd/>
  49. <taxyy/>
  50. <taxqurtyy/>
  51. <mistrsmyn/>
  52. <mistaxdd/>
  53. <mistaxyy/>
  54. <mistaxqurtyy/>
  55. <confdd/>
  56. <reqinstcd/>
  57. <cmpynm/>
  58. <prsdnm/>
  59. <addr/>
  60. <bizcond/>
  61. <bizcondkind/>
  62. <supplyamt/>
  63. <direcamt/>
  64. <crccamt/>
  65. <hospamt/>
  66. <judgamt/>
  67. <drugmngtamt/>
  68. <documngtamt/>
  69. <mistrsmdd/>
  70. <mistrsmid/>
  71. <hidtaxyn/>
  72. <hidmistrsmyn/>
  73. <hidmistaxdd/>
  74. <hidmistaxyy/>
  75. <hidmistaxqurtyy/>
  76. </item2>
  77. </gridacclist>
  78. <gridtranlist>
  79. <item>
  80. <suprecvinstcls/>
  81. <depodd/>
  82. <reqinstcd/>
  83. <cmpynm/>
  84. <prsdnm/>
  85. <addr/>
  86. <bizcond/>
  87. <bizcondkind/>
  88. <amt/>
  89. <taxamt/>
  90. <amt/>
  91. <rcpttypecd/>
  92. <flag/>
  93. <addtax/>
  94. <count/>
  95. <subjno/>
  96. </item>
  97. </gridtranlist>
  98. </main>
  99. <send>
  100. <searchaccwh>
  101. <startyy/>
  102. <endyy/>
  103. <getyy/>
  104. <startseqno/>
  105. <endseqno/>
  106. <getseqno/>
  107. <teamyy/>
  108. <teamqurt/>
  109. <teamdate/>
  110. <chkmisyn/>
  111. <srchdate/>
  112. </searchaccwh>
  113. <searchtran>
  114. <taxyy/>
  115. <taxqurt/>
  116. <mistaxyy/>
  117. <mistaxqurt/>
  118. <taxdate1/>
  119. <taxdate2/>
  120. <mistaxdate1/>
  121. <mistaxdate2/>
  122. <suprecvinstcls/>
  123. <taxrdo1/>
  124. <taxrdo2/>
  125. </searchtran>
  126. <data/>
  127. </send>
  128. <hidden>
  129. </hidden>
  130. <init>
  131. <baseinfo>
  132. <instinfo>
  133. <instcd/>
  134. <hospnm/>
  135. </instinfo>
  136. </baseinfo>
  137. <dateyy>
  138. <item/>
  139. <item2/>
  140. </dateyy>
  141. <dateyy2>
  142. <item/>
  143. </dateyy2>
  144. </init>
  145. <tmp>
  146. <acctinfo>
  147. </acctinfo>
  148. </tmp>
  149. </root>
  150. </instance>
  151. <submission id="TRICS03001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchaccwh" replace="instance" resultref="/root/main/gridacclist"/>
  152. <submission id="TRICS03002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchaccwh" replace="instance" resultref="/root/hidden"/>
  153. <submission id="TRICS03003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/searchtran" replace="instance" resultref="/root/main/gridtranlist"/>
  154. <submission id="TRIRZ00000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" replace="instance" resultref="/root/init/baseinfo"/>
  155. <submission id="TRICS02901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" replace="instance" resultref="/root/init/dateyy"/>
  156. <submission id="TXICS01012" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
  157. <script type="javascript" ev:event="xforms-ready">
  158. <![CDATA[
  159. func_search();
  160. model.refresh();
  161. ]]>
  162. </script>
  163. </model>
  164. <script type="javascript">
  165. <![CDATA[
  166. function func_search() {
  167. // datagrid 조회
  168. //submit("TRICS03001");
  169. model.removeNodeset("/root/main/gridacclist");
  170. model.removeNodeset("/root/main/gridtranlist");
  171. // 검색란의 날짜값 조회
  172. var getdate = new Date().getDateFormat().substring(0,4);
  173. model.makeValue("/root/hidden/getyear", getdate);
  174. submit("TRICS02901");
  175. model.removenode("/root/hidden");
  176. combo_year1.value = getdate;
  177. combo_year2.value = getdate;
  178. combo_year3.value = getdate;
  179. model.copyNode("/root/init/dateyy2", "/root/init/dateyy");
  180. model.removeNodeset("/root/init/dateyy2/item2");
  181. model.removenode("/root/init/dateyy2/item"); // "없음" 항목을 뺌
  182. combo_year4.value = getdate;
  183. // 조회기간 데이터 초기값 지정
  184. input8.value = new Date(new Date().getFullYear(), "-6", new Date().getDate()).getDateFormat();
  185. input1.value = new Date(new Date().getFullYear(), "-6", new Date().getDate()).getDateFormat();
  186. input3.value = new Date().getDateFormat();
  187. input2.value = new Date().getDateFormat();
  188. combo3.select(0);
  189. combo5.select(0);
  190. group1.visible = true;
  191. group2.visible = false;
  192. // 부가세신고 전송내역(매출)
  193. model.setValue("/root/send/searchtran/taxrdo2", "1");
  194. input1.disabled = false;
  195. input2.disabled = false;
  196. }
  197. ]]>
  198. </script>
  199. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  200. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  201. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  202. <script type="javascript" src="../../../crc/clinicresearchweb/js/ZME00100.js"/>
  203. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  204. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  205. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  206. <script type="javascript" src="../../../com/emailsenderweb/js/ZME00100.js"/>
  207. </xhtml:head>
  208. <xhtml:body>
  209. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:14px; ">
  210. <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">부가세신고관리</caption>
  211. </group>
  212. <group id="group2" visibility="hidden" style="left:0px; top:20px; width:1194px; height:70px; vertical-align:top; ">
  213. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  214. <button id="button1" class="btn1_letter2" _auth="R" style="left:1065px; top:20px; width:56px; height:22px; ">
  215. <caption>조회</caption>
  216. <script type="javascript" ev:event="DOMActivate">
  217. <![CDATA[
  218. switch (model.getValue("/root/send/searchtran/taxrdo1")) {
  219. case "1":
  220. if (model.getValue("/root/send/searchtran/taxdate1") == "" && model.getValue("/root/send/searchtran/taxdate2") == "") {
  221. messageBox("부가세신고기간의 날짜 범위를 입력해 주세요", "I999");
  222. return;
  223. }
  224. break;
  225. case "2":
  226. if (model.getValue("/root/send/searchtran/taxyy") == "" && model.getValue("/root/send/searchtran/taxqurt") == "") {
  227. messageBox("부가세신고분기의 년도 및 분기를 선택해 주세요", "I999");
  228. return;
  229. }
  230. break;
  231. }
  232. switch (model.getValue("/root/send/searchtran/taxrdo2")) {
  233. case "1":
  234. if (model.getValue("/root/send/searchtran/mistaxdate1") == "" && model.getValue("/root/send/searchtran/mistaxdate2") == "") {
  235. messageBox("재무팀 부가세신고기간의 날짜 범위를 입력해 주세요", "I999");
  236. return;
  237. }
  238. break;
  239. case "2":
  240. if (model.getValue("/root/send/searchtran/mistaxyy") == "" && model.getValue("/root/send/searchtran/mistaxqurt") == "") {
  241. messageBox("재무팀 부가세신고분기의 년도 및 분기를 선택해 주세요", "I999");
  242. return;
  243. }
  244. break;
  245. }
  246. submit("TRICS03003");
  247. model.refresh();
  248. ]]>
  249. </script>
  250. </button>
  251. <caption id="caption2" class="search_n_b" visibility="hidden" style="left:844px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  252. <line id="line1" style="x1:1049px; y1:7px; x2:1049px; y2:58px; border-color:#ffe4bb; border-left-style:solid; "/>
  253. <input id="input8" ref="/root/send/searchtran/taxdate1" disabled="true" visibility="hidden" inputtype="date" style="left:738px; top:8px; width:100px; height:19px; "/>
  254. <input id="input3" ref="/root/send/searchtran/taxdate2" disabled="true" visibility="hidden" inputtype="date" style="left:861px; top:8px; width:100px; height:19px; "/>
  255. <line id="line3" visibility="hidden" style="x1:605px; y1:7px; x2:605px; y2:58px; border-color:#ffe4bb; border-left-style:solid; "/>
  256. <caption id="caption1" class="search_name" style="left:428px; top:9px; width:102px; height:17px; ">공급받는자 :</caption>
  257. <select1 id="combo1" ref="/root/send/searchtran/suprecvinstcls" class="input_default" appearance="minimal" style="left:528px; top:8px; width:68px; height:19px; ">
  258. <choices>
  259. <item>
  260. <label>-전 체-</label>
  261. <value/>
  262. </item>
  263. <item>
  264. <label>의뢰자</label>
  265. <value>1</value>
  266. </item>
  267. <item>
  268. <label>대행사</label>
  269. <value>2</value>
  270. </item>
  271. </choices>
  272. </select1>
  273. <select1 id="rdo_date1" ref="/root/send/searchtran/taxrdo1" visibility="hidden" appearance="full" itemheight="30" rows="2" overflow="visible" style="left:615px; top:1px; width:115px; height:34px; border-style:none; ">
  274. <choices>
  275. <item>
  276. <label>부가세신고기간 :</label>
  277. <value>1</value>
  278. </item>
  279. <item>
  280. <label>부가세신고분기 :</label>
  281. <value>2</value>
  282. </item>
  283. </choices>
  284. <script type="javascript" ev:event="xforms-value-changed">
  285. <![CDATA[
  286. model.setValue("/root/send/searchtran/taxrdo2", "");
  287. switch (model.getValue("/root/send/searchtran/taxrdo1")) {
  288. case "1":
  289. input8.disabled = false;
  290. input3.disabled = false;
  291. input1.disabled = true;
  292. input2.disabled = true;
  293. combo3.disabled = true;
  294. combo2.disabled = true;
  295. combo5.disabled = true;
  296. combo4.disabled = true;
  297. break;
  298. case "2":
  299. input8.disabled = true;
  300. input3.disabled = true;
  301. input1.disabled = true;
  302. input2.disabled = true;
  303. combo3.disabled = false;
  304. combo2.disabled = false;
  305. combo5.disabled = true;
  306. combo4.disabled = true;
  307. break;
  308. }
  309. model.refresh();
  310. ]]>
  311. </script>
  312. </select1>
  313. <select1 id="combo2" ref="/root/send/searchtran/taxqurt" class="input_default" disabled="true" visibility="hidden" appearance="minimal" style="left:809px; top:35px; width:68px; height:19px; ">
  314. <choices>
  315. <itemset nodeset="/root/init/dateyy/item2">
  316. <label ref="labelnm"/>
  317. <value ref="valuenm"/>
  318. </itemset>
  319. </choices>
  320. </select1>
  321. <select1 id="combo3" ref="/root/send/searchtran/taxyy" class="input_default" disabled="true" visibility="hidden" appearance="minimal" style="left:738px; top:35px; width:68px; height:19px; ">
  322. <choices>
  323. <itemset nodeset="/root/init/dateyy2/item">
  324. <label ref="labelnm"/>
  325. <value ref="valuenm"/>
  326. </itemset>
  327. </choices>
  328. </select1>
  329. <input id="input1" ref="/root/send/searchtran/mistaxdate1" disabled="true" inputtype="date" style="left:183px; top:8px; width:100px; height:19px; "/>
  330. <caption id="caption3" class="search_n_b" style="left:289px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  331. <select1 id="combo4" ref="/root/send/searchtran/mistaxqurt" class="input_default" disabled="true" appearance="minimal" style="left:254px; top:35px; width:68px; height:19px; ">
  332. <choices>
  333. <itemset nodeset="/root/init/dateyy/item2">
  334. <label ref="labelnm"/>
  335. <value ref="valuenm"/>
  336. </itemset>
  337. </choices>
  338. </select1>
  339. <select1 id="combo5" ref="/root/send/searchtran/mistaxyy" class="input_default" disabled="true" appearance="minimal" style="left:183px; top:35px; width:68px; height:19px; ">
  340. <choices>
  341. <itemset nodeset="/root/init/dateyy2/item">
  342. <label ref="labelnm"/>
  343. <value ref="valuenm"/>
  344. </itemset>
  345. </choices>
  346. </select1>
  347. <input id="input2" ref="/root/send/searchtran/mistaxdate2" disabled="true" inputtype="date" style="left:306px; top:8px; width:100px; height:19px; "/>
  348. <select1 id="rdo_date2" ref="/root/send/searchtran/taxrdo2" appearance="full" itemheight="30" overflow="visible" row="2" style="left:20px; top:1px; width:155px; height:34px; border-style:none; ">
  349. <choices>
  350. <item>
  351. <label>재무팀 부가세신고기간 :</label>
  352. <value>1</value>
  353. </item>
  354. <item>
  355. <label>재무팀 부가세신고분기 :</label>
  356. <value>2</value>
  357. </item>
  358. </choices>
  359. <script type="javascript" ev:event="xforms-value-changed">
  360. <![CDATA[
  361. model.setValue("/root/send/searchtran/taxrdo1", "");
  362. switch (model.getValue("/root/send/searchtran/taxrdo2")) {
  363. case "1":
  364. input8.disabled = true;
  365. input3.disabled = true;
  366. input1.disabled = false;
  367. input2.disabled = false;
  368. combo3.disabled = true;
  369. combo2.disabled = true;
  370. combo5.disabled = true;
  371. combo4.disabled = true;
  372. break;
  373. case "2":
  374. input8.disabled = true;
  375. input3.disabled = true;
  376. input1.disabled = true;
  377. input2.disabled = true;
  378. combo3.disabled = true;
  379. combo2.disabled = true;
  380. combo5.disabled = false;
  381. combo4.disabled = false;
  382. break;
  383. }
  384. model.refresh();
  385. ]]>
  386. </script>
  387. </select1>
  388. <button id="button2" class="btn4_letter2" _auth="R" style="left:1125px; top:20px; width:56px; height:22px; ">
  389. <caption>엑셀</caption>
  390. <script type="javascript" ev:event="DOMActivate">
  391. <![CDATA[
  392. var filename = window.fileDialog("save", ",", false, "부가세신고_전송내역(매출)", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  393. if (filename != "") {
  394. datagrid2.saveExcel(filename, "datagrid2", true, false, "", "", "");
  395. }
  396. ]]>
  397. </script>
  398. </button>
  399. </group>
  400. <group id="group1" style="left:0px; top:20px; width:1194px; height:70px; vertical-align:top; ">
  401. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  402. <button id="btn_clear" class="btn4_letter3" navindex="6" style="left:1053px; top:20px; width:68px; height:22px; ">
  403. <caption>초기화</caption>
  404. <script type="javascript" ev:event="onclick">
  405. <![CDATA[
  406. var getdate = new Date().getDateFormat().substring(0,4);
  407. // 검색조건 초기화
  408. model.setValue("/root/send/searchaccwh/startyy", getdate);
  409. model.setValue("/root/send/searchaccwh/startseqno", "");
  410. model.setValue("/root/send/searchaccwh/endyy", getdate);
  411. model.setValue("/root/send/searchaccwh/endseqno", "");
  412. model.setValue("/root/send/searchaccwh/getyy", "");
  413. model.setValue("/root/send/searchaccwh/getseqno", "");
  414. model.setValue("/root/send/searchaccwh/teamyy", "");
  415. model.setValue("/root/send/searchaccwh/teamqurt", "");
  416. model.setValue("/root/send/searchaccwh/teamdate", "");
  417. input3.disabled = false;
  418. // datagrid 초기화
  419. model.removeNodeset("/root/main/gridacclist");
  420. model.refresh();
  421. ]]>
  422. </script>
  423. </button>
  424. <button id="button6" class="btn4_letter2" _auth="X" style="left:992px; top:20px; width:56px; height:22px; ">
  425. <caption>저장</caption>
  426. <script type="javascript" ev:event="DOMActivate">
  427. <![CDATA[
  428. var today = new Date().getDateFormat();
  429. var irow = datagrid1.row - 1;
  430. // datagrid1.rows
  431. for (var i = 1; i < datagrid1.rows - 1; i++) {
  432. // 재무팀 전송여부 = "Y"
  433. if (model.getValue("/root/main/gridacclist/item["+ i +"]/mistrsmyn") == "Y") {
  434. if (model.getValue("/root/main/gridacclist/item["+ i +"]/taxyn") == "N") {
  435. messageBox( irow +" 번째 줄에서 [재무팀전송여부]가 check 되었는데, [부가세신고여부]가 check 되지 않았습니다. 확인하여 주십시요", "I999");
  436. return;
  437. }
  438. }
  439. // update 여부 결정(재무팀 전송여부에 따라, 즉 기존의 전송상태값이 변경되지 않은 경우)
  440. if (model.getValue("/root/main/gridacclist/item["+ i +"]/mistrsmyn") == model.getValue("/root/main/gridacclist/item["+ i +"]/hidmistrsmyn")) {
  441. var ii = i + 1; // 상단의 항목이 2row 이므로 +1 처리함
  442. datagrid1.removeStatus(ii, "update"); // update대상에서 제외
  443. }
  444. else {
  445. if (model.getValue("/root/main/gridacclist/item["+ i +"]/mistrsmyn") == "Y") {
  446. model.setValue("/root/main/gridacclist/item["+ i +"]/mistrsmdd", today);
  447. model.setValue("/root/main/gridacclist/item["+ i +"]/mistrsmid", "userid"); // 로그인ID(쿼리상에서 변경해줌)
  448. }
  449. else {
  450. model.setValue("/root/main/gridacclist/item["+ i +"]/mistrsmdd", "99991231");
  451. model.setValue("/root/main/gridacclist/item["+ i +"]/mistrsmid", "00000000");
  452. model.setValue("/root/main/gridacclist/item["+ i +"]/mistaxyy", "");
  453. model.setValue("/root/main/gridacclist/item["+ i +"]/mistaxqurtyy", "");
  454. }
  455. }
  456. // update 여부 결정(부가세신고여부에 따라)
  457. /*
  458. if (model.getValue("/root/main/gridacclist/item["+ i +"]/mistrsmyn") != model.getValue("/root/main/gridacclist/item["+ i +"]/hidmistrsmyn"))
  459. {
  460. alert(model.getValue("/root/main/gridacclist/item["+ i +"]/subjno"))
  461. alert(model.getValue("/root/main/gridacclist/item["+ i +"]/mistrsmyn"));
  462. alert(model.getValue("/root/main/gridacclist/item["+ i +"]/hidmistrsmyn"));
  463. datagrid1.addStatus(i, "update");
  464. }
  465. */
  466. }
  467. var update = getGridUpdateData(datagrid1);
  468. model.setValue("/root/send/data", update);
  469. if (submit("TXICS01012")) {
  470. messageBox("저장이 완료되었습니다", "I999");
  471. model.refresh();
  472. }
  473. ]]>
  474. </script>
  475. </button>
  476. <button id="button3" class="btn4_letter2" _auth="R" style="left:1125px; top:20px; width:56px; height:22px; ">
  477. <caption>엑셀</caption>
  478. <script type="javascript" ev:event="DOMActivate">
  479. <![CDATA[
  480. var filename = window.fileDialog("save", ",", false, "부가세신고", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  481. if (filename != "") {
  482. datagrid1.saveExcel(filename, "datagrid1", true, false, "", "", "");
  483. }
  484. ]]>
  485. </script>
  486. </button>
  487. <button id="button4" class="btn1_letter2" _auth="R" style="left:932px; top:20px; width:56px; height:22px; ">
  488. <caption>조회</caption>
  489. <script type="javascript" ev:event="DOMActivate">
  490. <![CDATA[
  491. submit("TRICS03001");
  492. model.refresh();
  493. ]]>
  494. </script>
  495. </button>
  496. <caption id="caption16" class="search_name" style="left:5px; top:9px; width:156px; height:17px; ">계산서 일련번호 조회:</caption>
  497. <select1 id="combo_year2" ref="/root/send/searchaccwh/endyy" class="input_default" appearance="minimal" style="left:328px; top:8px; width:65px; height:19px; ">
  498. <choices>
  499. <itemset nodeset="/root/init/dateyy/item">
  500. <label ref="labelnm"/>
  501. <value ref="valuenm"/>
  502. </itemset>
  503. </choices>
  504. <script type="javascript" ev:event="xforms-value-changed">
  505. <![CDATA[
  506. if (model.getValue("/root/send/searchaccwh/endyy") == "") {
  507. model.setValue("/root/send/searchaccwh/endseqno", "");
  508. model.refresh();
  509. }
  510. ]]>
  511. </script>
  512. </select1>
  513. <select1 id="combo_year1" ref="/root/send/searchaccwh/startyy" class="input_default" appearance="minimal" style="left:163px; top:8px; width:68px; height:19px; ">
  514. <choices>
  515. <itemset nodeset="/root/init/dateyy/item">
  516. <label ref="labelnm"/>
  517. <value ref="valuenm"/>
  518. </itemset>
  519. </choices>
  520. <script type="javascript" ev:event="xforms-value-changed">
  521. <![CDATA[
  522. if (model.getValue("/root/send/searchaccwh/endyy") == "") {
  523. model.setValue("/root/send/searchaccwh/startseqno", "");
  524. model.refresh();
  525. }
  526. ]]>
  527. </script>
  528. </select1>
  529. <caption id="caption24" class="search_n_b" style="left:314px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
  530. <line id="line13" style="x1:914px; y1:7px; x2:914px; y2:58px; border-color:#ffe4bb; border-left-style:solid; "/>
  531. <select1 id="combo_year3" ref="/root/send/searchaccwh/getyy" class="input_default" appearance="minimal" style="left:163px; top:35px; width:68px; height:19px; ">
  532. <choices>
  533. <itemset nodeset="/root/init/dateyy/item">
  534. <label ref="labelnm"/>
  535. <value ref="valuenm"/>
  536. </itemset>
  537. </choices>
  538. </select1>
  539. <input id="input4" ref="/root/send/searchaccwh/endseqno" navindex="2" maxlength="6" format="99-9999" style="left:396px; top:8px; width:80px; height:19px; ">
  540. <script type="javascript" ev:event="onkeyup">
  541. <![CDATA[
  542. if (event.keyCode == 13) {
  543. inputEnterKey("button4","DOMActivate");
  544. }
  545. ]]>
  546. </script>
  547. </input>
  548. <input id="input5" ref="/root/send/searchaccwh/startseqno" navindex="1" maxlength="6" format="99-9999" style="left:233px; top:8px; width:80px; height:19px; ">
  549. <script type="javascript" ev:event="onkeyup">
  550. <![CDATA[
  551. if (event.keyCode == 13) {
  552. inputEnterKey("button4","DOMActivate");
  553. }
  554. ]]>
  555. </script>
  556. </input>
  557. <input id="input6" ref="/root/send/searchaccwh/getseqno" navindex="3" maxlength="6" format="99-9999" style="left:233px; top:35px; width:80px; height:19px; ">
  558. <script type="javascript" ev:event="onkeyup">
  559. <![CDATA[
  560. if (event.keyCode == 13) {
  561. inputEnterKey("input6", "xforms-value-changed");
  562. if (submit("TRICS03002")) {
  563. // 검색 되어진 데이터를 추가로 넣어줌
  564. if (input6.value != "" && model.getValue("/root/hidden/item2[1]/count") > 0) {
  565. // 기존 데이터가 있는 경우
  566. messageBox("이미 화면에 조회되어 있습니다", "I999");
  567. for (var i = 1; i < datagrid1.rows; i++) {
  568. if (model.getValue("/root/main/gridacclist/item["+ i +"]/stmntseqno") == model.getValue("/root/hidden/item2[1]/stmntseqno")) {
  569. datagrid1.select(i + 1, 1) = true;
  570. datagrid1.topRow = datagrid1.row;
  571. break;
  572. }
  573. }
  574. } else {
  575. messageBox("조회하신 [세금계산서 일련번호]는 없습니다", "I999");
  576. return;
  577. /*
  578. // 데이터가 없는 경우 행추가
  579. datagrid1.addItem(datagrid1.row);
  580. var i = datagrid1.rows - 2;
  581. model.copyNode("/root/main/gridacclist/item["+ i +"]", "/root/hidden/item2[1]");
  582. datagrid1.topRow = datagrid1.row;
  583. */
  584. }
  585. model.removenode("/root/hidden");
  586. model.refresh();
  587. }
  588. }
  589. ]]>
  590. </script>
  591. </input>
  592. <select1 id="chkmisyn" ref="/root/send/searchaccwh/chkmisyn" class="input_default" appearance="minimal" style="left:665px; top:35px; width:68px; height:19px; ">
  593. <choices>
  594. <item>
  595. <label>-전 체-</label>
  596. <value/>
  597. </item>
  598. <item>
  599. <label>전송</label>
  600. <value>Y</value>
  601. </item>
  602. <item>
  603. <label>미전송</label>
  604. <value>N</value>
  605. </item>
  606. </choices>
  607. </select1>
  608. <input id="input9" ref="/root/send/searchaccwh/srchdate" inputtype="date" maxlength="10" style="left:665px; top:8px; width:100px; height:19px; "/>
  609. <caption id="caption4" class="search_name" style="left:530px; top:9px; width:125px; height:17px; ">부과세 신고일자:</caption>
  610. <caption id="caption8" class="search_name" style="left:530px; top:35px; width:125px; height:17px; ">재무팀 전송여부:</caption>
  611. </group>
  612. <upload id="upload_attach" nodeset="/root/send/attach/file" filecount="5" filesize="100000000" validate="true" style="left:240px; top:195px; width:100px; height:19px; "/>
  613. <button id="button9" class="btn_sw" group="tab" style="left:95px; top:96px; width:163px; height:22px; ">
  614. <caption>부가세신고 전송내역(매출)</caption>
  615. <toggle case="case2" ev:event="onclick"/>
  616. <script type="javascript" ev:event="DOMActivate">
  617. <![CDATA[
  618. group1.visible = false;
  619. group2.visible = true;
  620. // if ( (datagrid2.row < 1 )||(model.getValue("/root/main/gridacclist/item["+ datagrid2.row +"]/subjno") =="") ) {
  621. //
  622. // button10.dispatch("onclick");
  623. // return;
  624. // }
  625. // if ( ( datagrid2.row >=1 )&&(datagrid2.rows > 1 )) {
  626. // datagrid2.dispatch("onclick");
  627. // datagrid2.dispatch("ondblclick");
  628. // }
  629. ]]>
  630. </script>
  631. </button>
  632. <button id="button10" class="btn_sw" group="tab" selected="true" style="left:2px; top:96px; width:93px; height:22px; ">
  633. <caption>부가세신고</caption>
  634. <toggle case="case1" ev:event="onclick"/>
  635. <script type="javascript" ev:event="DOMActivate">
  636. <![CDATA[
  637. group1.visible = true;
  638. group2.visible = false;
  639. // if ( submit("TRIPG00101")) {
  640. // if (datagrid2.rows > 1 ) {
  641. // for (var i = 1; i < datagrid2.rows; i ++) {
  642. // if ( model.getValue("/root/main/gridacclist/item["+i+"]/confyn") == "2" ) {
  643. // datagrid2.isReadOnly(i, 13) = true;
  644. // datagrid2.isReadOnly(i, 14) = true;
  645. // }
  646. // }
  647. // }
  648. // }
  649. //
  650. // fSetButtonText();
  651. //
  652. // model.refresh();
  653. ]]>
  654. </script>
  655. </button>
  656. <switch id="switch1" style="left:0px; top:116px; width:1194px; height:594px; border-color:#c7a3cf; border-style:solid; ">
  657. <case id="case1" selected="true" style="left:0px; top:0px; width:1192px; height:623px; ">
  658. <datagrid id="datagrid1" nodeset="/root/main/gridacclist/item" caption="계산서 일련번호^과제번호^부가세신고^부가세신고^부가세신고^부가세신고^재무팀 전송^재무팀 전송^재무팀 전송^재무팀 전송^공급받는자^공급받는자^공급받는자^공급받는자^공급받는자^공급받는자^공급받는자^공급가액^품목^품목^품목^품목^품목^품목^전송일자^전송자|계산서 일련번호^과제번호^신고여부^신고일자^년도^분기^전송여부^재무신고일자^년도^분기^작성일자^사업자등록번호^상호(법인명)^성명^주소^업태^종목^공급가액^직접비^센터간접비^병원간접비^심사비^약제관리비^문서보관비^전송일자^전송자" colsep="^" colwidth="55, 100, 70, 70, 40, 55, 60, 80, 40, 50, 90, 88, 80, 65, 75, 60, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:35px; width:1190px; height:560px; ">
  659. <col ref="stmntseqno" format="99-9999" style="left:48px; top:23px; width:96px; height:23px; text-align:center; "/>
  660. <col ref="subjno" style="text-align:center; "/>
  661. <col checkvalue="Y,N" ref="taxyn" type="checkbox" style="text-align:center; "/>
  662. <col ref="taxdd" format="yyyy-mm-dd" style="text-align:center; "/>
  663. <col ref="taxyy" style="text-align:center; "/>
  664. <col ref="taxqurtyy" style="text-align:center; "/>
  665. <col checkvalue="Y,N" ref="mistrsmyn" type="checkbox" style="text-align:center; "/>
  666. <col ref="mistaxdd" format="yyyy-mm-dd" style="text-align:center; "/>
  667. <col ref="mistaxyy" style="text-align:center; "/>
  668. <col ref="mistaxqurtyy" style="text-align:center; "/>
  669. <col ref="depodd" format="yyyy-mm-dd" style="text-align:center; "/>
  670. <col ref="reqinstcd" style="text-align:center; "/>
  671. <col ref="cmpynm"/>
  672. <col ref="prsdnm"/>
  673. <col ref="addr"/>
  674. <col ref="bizcond"/>
  675. <col ref="bizcondkind"/>
  676. <col ref="supplyamt" format="(-)#,###" style="text-align:right; "/>
  677. <col ref="direcamt" format="(-)#,###" style="text-align:right; "/>
  678. <col ref="crccamt" format="(-)#,###" style="text-align:right; "/>
  679. <col ref="hospamt" format="(-)#,###" style="text-align:right; "/>
  680. <col ref="judgamt" format="(-)#,###" style="text-align:right; "/>
  681. <col ref="drugmngtamt" format="(-)#,###" style="text-align:right; "/>
  682. <col ref="documngtamt" format="(-)#,###" style="text-align:right; "/>
  683. <col ref="mistrsmdd" format="yyyy-mm-dd" style="text-align:right; "/>
  684. <col ref="mistrsmnm" style="text-align:center; "/>
  685. <col ref="hidtaxyn" visibility="hidden"/>
  686. <col ref="hidmistrsmyn" visibility="hidden"/>
  687. <col ref="hidmistaxdd" visibility="hidden"/>
  688. <col ref="hidmistaxqurtyy" visibility="hidden"/>
  689. <col ref="hidmistrsmyn" visibility="hidden"/>
  690. <col ref="subjid" visibility="hidden"/>
  691. <col ref="seqno" visibility="hidden"/>
  692. <col ref="depokind" visibility="hidden"/>
  693. <col ref="instcd" visibility="hidden"/>
  694. <col ref="mistrsmid" visibility="hidden"/>
  695. <script type="javascript" ev:event="xforms-value-changed">
  696. <![CDATA[
  697. //var c = confirm("장바구니에 담으시겠습니까?");
  698. var irow = 0;
  699. irow = datagrid1.row - 1;
  700. // 부가세 신고여부 클릭시
  701. if (datagrid1.col == datagrid1.colRef("taxyn")) {
  702. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/hidtaxyn") == "Y") {
  703. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistrsmyn") == "Y") {
  704. messageBox("재무팀으로 전송이 완료되었습니다", "I999");
  705. model.setValue("/root/main/gridacclist/item["+ irow +"]/taxyn", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidtaxyn"));
  706. return;
  707. }
  708. }
  709. }
  710. // 재무팀 전송여부 클릭시
  711. if (datagrid1.col == datagrid1.colRef("mistrsmyn")) {
  712. /*
  713. var misyn = ""; // 전송여부에 대한 기존값 저장
  714. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/mistrsmyn") == "Y")
  715. misyn = "N";
  716. else
  717. misyn = "Y";
  718. */
  719. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistrsmyn") == "Y") {
  720. // 현재 재무팀 전송여부(hidden) == "Y"
  721. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/mistrsmyn") == "N") {
  722. if ( messageBox("재무팀으로 전송이 완료되었습니다. 전송을 해제하시겠습니까?", "Q999") == 7 )
  723. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistrsmyn", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistrsmyn"));
  724. }
  725. } else {
  726. // 현재 재무팀 전송여부(hidden) == "N"
  727. model.setValue("/root/main/gridacclist/item["+ irow +"]/taxyn", "Y");
  728. /*
  729. var taxyn = ""; // 부가세 신고여부에 대한 기존값 저장
  730. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/taxyn") == "Y")
  731. taxyn = "N";
  732. else
  733. taxyn = "Y";
  734. */
  735. if (model.getValue("/root/send/searchaccwh/teamdate") != "")
  736. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxdd", model.getValue("/root/send/searchaccwh/teamdate"));
  737. if (model.getValue("/root/send/searchaccwh/teamyy") != "")
  738. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxyy", model.getValue("/root/send/searchaccwh/teamyy"));
  739. if (model.getValue("/root/send/searchaccwh/teamqurt") != "")
  740. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxqurtyy", model.getValue("/root/send/searchaccwh/teamqurt"));
  741. }
  742. // 체크를 풀 때(재무팀 전송여부 == "N") 재무신고일자, 년도, 분기 값을 원래대로 복원
  743. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/mistrsmyn") == "N") {
  744. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxdd", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistaxdd"));
  745. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxyy", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistaxyy"));
  746. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxqurtyy", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistaxqurtyy"));
  747. model.setValue("/root/main/gridacclist/item["+ irow +"]/taxyn", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidtaxyn"));
  748. } else {
  749. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/mistaxyy") == "" | model.getValue("/root/main/gridacclist/item["+ irow +"]/mistaxqurtyy") == "") {
  750. messageBox("부가세 분기 및 신고일자를 선택해 주세요", "I999");
  751. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistrsmyn", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistrsmyn"));
  752. model.setValue("/root/main/gridacclist/item["+ irow +"]/taxyn", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidtaxyn"));
  753. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxdd", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistaxdd"));
  754. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxyy", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistaxyy"));
  755. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxqurtyy", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistaxqurtyy"));
  756. return;
  757. }
  758. }
  759. }
  760. model.refresh();
  761. ]]>
  762. </script>
  763. </datagrid>
  764. <caption id="caption5" class="tit_2" style="left:10px; top:9px; width:156px; height:13px; ">부가세 작업기간 선택 :</caption>
  765. <select1 id="combo_year4" ref="/root/send/searchaccwh/teamyy" class="input_default" appearance="minimal" style="left:202px; top:8px; width:68px; height:19px; ">
  766. <choices>
  767. <itemset nodeset="/root/init/dateyy2/item">
  768. <label ref="labelnm"/>
  769. <value ref="valuenm"/>
  770. </itemset>
  771. </choices>
  772. </select1>
  773. <caption id="caption6" class="search_no_b" style="left:172px; top:7px; width:28px; height:17px; ">년도</caption>
  774. <caption id="caption7" class="search_no_b" style="left:277px; top:7px; width:28px; height:17px; ">분기</caption>
  775. <select1 id="combo_qurt" ref="/root/send/searchaccwh/teamqurt" class="input_default" appearance="minimal" style="left:306px; top:8px; width:68px; height:19px; ">
  776. <choices>
  777. <itemset nodeset="/root/init/dateyy/item2">
  778. <label ref="labelnm"/>
  779. <value ref="valuenm"/>
  780. </itemset>
  781. </choices>
  782. <script type="javascript" ev:event="xforms-value-changed">
  783. <![CDATA[
  784. if (model.getValue("/root/send/searchaccwh/teamqurt") != "") {
  785. var i = parseInt(model.getValue("/root/send/searchaccwh/teamqurt")) + 1;
  786. var getqurt = model.getValue("/root/init/dateyy/item2["+ i +"]/detldesc");
  787. var nowdate = new Date().getDateFormat();
  788. if (getqurt < nowdate) {
  789. messageBox("신고일자가 이전날짜 입니다. 분기를 재 선택하여 주십시오", "I999");
  790. model.setValue("/root/send/searchaccwh/teamqurt", "");
  791. model.setValue("/root/send/searchaccwh/teamdate", "");
  792. input7.disabled = false;
  793. model.refresh();
  794. return;
  795. }
  796. var getyy = "";
  797. if (i == 5)
  798. getyy = parseInt(model.getValue("/root/send/searchaccwh/teamyy")) + 1;
  799. else
  800. getyy = model.getValue("/root/send/searchaccwh/teamyy");
  801. model.setValue("/root/send/searchaccwh/teamdate", getqurt);
  802. input7.disabled = true;
  803. }
  804. else {
  805. model.setValue("/root/send/searchaccwh/teamdate", "");
  806. input7.disabled = false;
  807. }
  808. model.refresh();
  809. ]]>
  810. </script>
  811. </select1>
  812. <caption id="caption10" class="search_no_b" style="left:380px; top:7px; width:58px; height:17px; ">신고일자</caption>
  813. <input id="input7" ref="/root/send/searchaccwh/teamdate" inputtype="date" maxlength="10" style="left:436px; top:8px; width:100px; height:19px; "/>
  814. <line id="line4" style="x1:544px; y1:6px; x2:544px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
  815. <button id="btn_excel" class="btn2_letter5" style="left:553px; top:8px; width:75px; height:19px; ">
  816. <caption>All Check</caption>
  817. <script type="javascript" ev:event="onclick">
  818. <![CDATA[
  819. if (model.getValue("/root/send/searchaccwh/teamdate").length < 8) {
  820. messageBox("[재무팀 부가세 신고일자]를 확인하십시요", "I999");
  821. return;
  822. }
  823. if (model.getValue("/root/send/searchaccwh/teamdate") == "" | model.getValue("/root/send/searchaccwh/teamyy") == "" | model.getValue("/root/send/searchaccwh/teamqurt") == "") {
  824. messageBox("[재무팀 부가세 신고일자]를 확인하십시요", "I999");
  825. return;
  826. }
  827. for (var i=1; i < datagrid1.rows - 1; i++) {
  828. if (model.getValue("/root/main/gridacclist/item["+ i +"]/mistrsmyn") != "Y") {
  829. if (model.getValue("/root/main/gridacclist/item["+ i +"]/taxyn") != "Y")
  830. model.setValue("/root/main/gridacclist/item["+ i +"]/taxyn", "Y");
  831. }
  832. if (model.getValue("/root/main/gridacclist/item["+ i +"]/mistrsmyn") != "Y") {
  833. model.setValue("/root/main/gridacclist/item["+ i +"]/mistrsmyn", "Y");
  834. model.setValue("/root/main/gridacclist/item["+ i +"]/mistaxdd", model.getValue("/root/send/searchaccwh/teamdate"));
  835. model.setValue("/root/main/gridacclist/item["+ i +"]/mistaxyy", model.getValue("/root/send/searchaccwh/teamyy"));
  836. model.setValue("/root/main/gridacclist/item["+ i +"]/mistaxqurtyy", model.getValue("/root/send/searchaccwh/teamqurt"));
  837. }
  838. }
  839. model.refresh();
  840. ]]>
  841. </script>
  842. </button>
  843. </case>
  844. <case id="case2" style="left:0px; top:0px; width:1192px; height:623px; ">
  845. <caption id="caption36" class="tit_2" style="left:10px; top:268px; width:170px; height:13px; ">연구비 입금정보</caption>
  846. <line id="line5" class="line_3" style="x1:3px; y1:618px; x2:1185px; y2:618px; "/>
  847. <datagrid id="datagrid2" nodeset="/root/main/gridtranlist/item" caption="과제번호^공급받는자^작성일자^사업자등록번호^상호(법인명)^성명^주소^업태^종목^공급가액^세액^합계^문서구분^매입/매출^과세/비과세^재무신고일자" colsep="^" colwidth="100, 70, 70, 90, 80, 70, 80, 50, 75, 65, 70, 65, 60, 70, 75, 75" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:35px; width:1190px; height:560px; ">
  848. <col ref="subjno" style="left:48px; top:23px; width:96px; height:23px; text-align:center; "/>
  849. <col disabled="true" ref="suprecvinstcls" type="combo" style="text-align:center; ">
  850. <choices>
  851. <item>
  852. <label>의뢰자</label>
  853. <value>1</value>
  854. </item>
  855. <item>
  856. <label>대행사</label>
  857. <value>2</value>
  858. </item>
  859. </choices>
  860. </col>
  861. <col ref="depodd" format="yyyy-mm-dd" style="text-align:center; "/>
  862. <col ref="reqinstcd" style="text-align:center; "/>
  863. <col ref="cmpynm" style="text-align:center; "/>
  864. <col ref="prsdnm" format="yyyy-mm-dd" style="text-align:center; "/>
  865. <col ref="addr"/>
  866. <col ref="bizcond" style="text-align:center; "/>
  867. <col ref="bizcondkind" format="yyyy-mm-dd" style="text-align:center; "/>
  868. <col ref="amt" format="(-)#,###" style="text-align:right; "/>
  869. <col ref="taxamt" format="(-)#,###" style="text-align:right; "/>
  870. <col ref="sumamt" format="(-)#,###" style="text-align:right; "/>
  871. <col ref="rcpttypecd" style="text-align:center; "/>
  872. <col ref="flag" style="text-align:center; "/>
  873. <col ref="addtax" style="text-align:center; "/>
  874. <col ref="mistaxdd" format="yyyy-mm-dd" style="text-align:center; "/>
  875. <script type="javascript" ev:event="xforms-value-changed">
  876. <![CDATA[
  877. //var c = confirm("장바구니에 담으시겠습니까?");
  878. var irow = 0;
  879. irow = datagrid1.row - 1;
  880. // 부가세 신고여부 클릭시
  881. if (datagrid1.col == datagrid1.colRef("taxyn")) {
  882. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/hidtaxyn") == "Y") {
  883. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistrsmyn") == "Y") {
  884. messageBox("재무팀으로 전송이 완료되었습니다", "I999");
  885. model.setValue("/root/main/gridacclist/item["+ irow +"]/taxyn", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidtaxyn"));
  886. return;
  887. }
  888. }
  889. }
  890. // 재무팀 전송여부 클릭시
  891. if (datagrid1.col == datagrid1.colRef("mistrsmyn")) {
  892. var misyn = ""; // 전송여부에 대한 기존값 저장
  893. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/mistrsmyn") == "Y")
  894. misyn = "N";
  895. else
  896. misyn = "Y";
  897. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistrsmyn") == "Y") {
  898. // 재무팀 전송여부(hidden) == "Y"
  899. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/mistrsmyn") == "N") {
  900. if ( messageBox("재무팀으로 전송이 완료되었습니다. 전송을 해제하시겠습니까?", "Q999") == 7 )
  901. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistrsmyn", misyn);
  902. }
  903. } else {
  904. // 재무팀 전송여부(hidden) == "N"
  905. model.setValue("/root/main/gridacclist/item["+ irow +"]/taxyn", "Y");
  906. var taxyn = ""; // 부가세 신고여부에 대한 기존값 저장
  907. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/taxyn") == "Y")
  908. taxyn = "N";
  909. else
  910. taxyn = "Y";
  911. if (model.getValue("/root/send/searchaccwh/teamdate") != "")
  912. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxdd", model.getValue("/root/send/searchaccwh/teamdate"));
  913. if (model.getValue("/root/send/searchaccwh/teamyy") != "")
  914. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxyy", model.getValue("/root/send/searchaccwh/teamyy"));
  915. if (model.getValue("/root/send/searchaccwh/teamqurt") != "")
  916. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxqurtyy", model.getValue("/root/send/searchaccwh/teamqurt"));
  917. }
  918. // 재무팀 전송여부 == "N" (재무신고일자, 년도, 분기 값을 원래대로 복원)
  919. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/mistrsmyn") == "N") {
  920. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxdd", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistaxdd"));
  921. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxyy", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistaxyy"));
  922. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistaxqurtyy", model.getValue("/root/main/gridacclist/item["+ irow +"]/hidmistaxqurtyy"));
  923. } else {
  924. if (model.getValue("/root/main/gridacclist/item["+ irow +"]/mistaxyy") == "" | model.getValue("/root/main/gridacclist/item["+ irow +"]/mistaxqurtyy") == "") {
  925. messageBox("[재무팀 부가세 신고일자]를 확인하십시요", "I999");
  926. model.setValue("/root/main/gridacclist/item["+ irow +"]/mistrsmyn", misyn);
  927. model.setValue("/root/main/gridacclist/item["+ irow +"]/taxyn", taxyn);
  928. return;
  929. }
  930. }
  931. }
  932. model.refresh();
  933. ]]>
  934. </script>
  935. </datagrid>
  936. </case>
  937. </switch>
  938. </xhtml:body>
  939. </xhtml:html>