SMRSD02601_구매 전자결재 취소.xrw 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>검수 및 입고 관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <purcchkinfo>
  12. <purcchkmainlist>
  13. <purcchkdd/>
  14. <purcchkno/>
  15. <teamflag/>
  16. <acntcd/>
  17. <acntnm/>
  18. <supdd/>
  19. <newyn/>
  20. <purccondd/>
  21. <purcconno/>
  22. <calcdocukind/>
  23. <stmntamt/>
  24. <taxstmntamt/>
  25. <totchkamt/>
  26. <zerotaxrateyn/>
  27. <surtaxyn/>
  28. <exchrate/>
  29. <exchrateunit/>
  30. </purcchkmainlist>
  31. <purcchksublist/>
  32. </purcchkinfo>
  33. <purcdmndinfo>
  34. <purcdmndlist/>
  35. </purcdmndinfo>
  36. <bfpurcchkmaininfo>
  37. <bfpurcchkmainlist/>
  38. </bfpurcchkmaininfo>
  39. <purcchknoinfo>
  40. <maxpurcchkno>
  41. <purcchkno/>
  42. </maxpurcchkno>
  43. </purcchknoinfo>
  44. <balsonginfo>
  45. <balsongymd>
  46. <balsongymd/>
  47. </balsongymd>
  48. </balsonginfo>
  49. <purcconinfo>
  50. <purcconsublist/>
  51. </purcconinfo>
  52. </list>
  53. </main>
  54. <send>
  55. <search>
  56. <instcd/>
  57. <wareflag/>
  58. <purcchkdd/>
  59. <purcchkno/>
  60. <purccondd/>
  61. <purcconno/>
  62. </search>
  63. <save>
  64. <purcchklist/>
  65. </save>
  66. <nosearch>
  67. <instcd/>
  68. <purcchkdd/>
  69. </nosearch>
  70. </send>
  71. <init>
  72. </init>
  73. <temp>
  74. </temp>
  75. <tmp>
  76. <teamflag/>
  77. </tmp>
  78. <popchild>
  79. <send>
  80. <instcd/>
  81. <teamflag/>
  82. <acntcd/>
  83. <purccondd/>
  84. <purcconno/>
  85. <bizflag>C</bizflag>
  86. <scrnid>SPRSI10200</scrnid>
  87. <purccnsttndd/>
  88. <purccnsttnno/>
  89. <calcdocukind/>
  90. <zerotaxrateyn/>
  91. <taxstmntamt/>
  92. <stmntamt/>
  93. <purcchkdd/>
  94. <purcchkno/>
  95. <purcdmnddd/>
  96. <purcdmndno/>
  97. </send>
  98. <result>
  99. <flag/>
  100. <instcd/>
  101. <purcchkdd/>
  102. <purcchkno/>
  103. </result>
  104. </popchild>
  105. <dtemp>
  106. <purcchkdd/>
  107. <purcchkno/>
  108. </dtemp>
  109. </root>
  110. </instance>
  111. <submission id="TRRSI10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purcchkinfo"/>
  112. <submission id="TRRSI10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/nosearch" resultref="/root/main/list/purcchknoinfo"/>
  113. <submission id="TRRSI10103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purcdmndinfo"/>
  114. <submission id="TRRSI10106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/list/purcchkinfo/purcchkmainlist" resultref="/root/main/list/balsonginfo"/>
  115. <submission id="TRRSP00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list/purcconinfo"/>
  116. <submission id="TXRSI10101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  117. <submission id="TRRSP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/popchild/send" resultref="/root/main/list/purcconinfo"/>
  118. <submission id="TXRSI10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/popchild/send" resultref="/root/tmp"/>
  119. </model>
  120. <script type="javascript" ev:event="xforms-ready">
  121. <![CDATA[
  122. //화면 Control을 초기화한다
  123. fInitialize();
  124. rszfRscsysordtLists(getUserInfo("dutplceinstcd"),getUserInfo("dutplcecd"), getUserInfo("userid"));
  125. var modelnm = model.getValue("/root/popchild/result/flag");
  126. if(modelnm == "SMRSK01000"){
  127. window.visible = false;
  128. btn_insert.dispatch("DOMActivate");
  129. model.setValue("/root/popchild/send/instcd", model.getValue("/root/popchild/result/instcd"));
  130. model.setValue("/root/popchild/send/purccondd", model.getValue("/root/popchild/result/purccondd"));
  131. model.setValue("/root/popchild/send/purcconno", model.getValue("/root/popchild/result/purcconno"));
  132. model.setValue("/root/popchild/send/purccnsttndd", model.getValue("/root/popchild/result/purccnsttndd"));
  133. model.setValue("/root/popchild/send/purccnsttnno", model.getValue("/root/popchild/result/purccnsttnno"));
  134. model.setValue("/root/popchild/send/purcdmnddd", model.getValue("/root/popchild/result/purcdmnddd"));
  135. model.setValue("/root/popchild/send/purcdmndno", model.getValue("/root/popchild/result/purcdmndno"));
  136. model.setValue("/root/main/list/purcchkinfo/purcchkmainlist/calcdocukind", model.getValue("/root/popchild/result/calcdocukind")); //계산서유형
  137. model.setValue("/root/main/list/purcchkinfo/purcchkmainlist/stmntamt", model.getValue("/root/popchild/result/stmntamt")); //계산서금액
  138. model.setValue("/root/main/list/purcchkinfo/purcchkmainlist/taxstmntamt", model.getValue("/root/popchild/result/taxstmntamt")); //세금계산서금액
  139. model.setValue("/root/main/list/purcchkinfo/purcchkmainlist/zerotaxrateyn", model.getValue("/root/popchild/result/zerotaxrateyn")); //영세율
  140. model.setValue("/root/main/list/purcchkinfo/purcchkmainlist/purcchkdd", model.getValue("/root/popchild/result/purccondd"));
  141. cal_purcchkdd.dispatch("xforms-value-changed");
  142. if (submit("TRRSP00101")){
  143. grd_coninfo.refresh();
  144. model.removenode("/root/main/list/purcconinfo/purcconsublist[conqty=0]");
  145. for (var i = grd_coninfo.fixedRows;i<grd_coninfo.rows;i++){
  146. var chkqty = parseFloat(grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkqty" )));
  147. var conqty = parseFloat(grd_coninfo.valueMatrix(i, grd_coninfo.colRef("conqty" )));
  148. var spreqty = parseFloat(grd_coninfo.valueMatrix(i, grd_coninfo.colRef("spreqty")));
  149. if (spreqty <= 0){
  150. grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkflag")) = "";
  151. }else if ((conqty - chkqty) > spreqty){
  152. grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkflag")) = "M";
  153. }else if ((conqty - chkqty) == spreqty){
  154. grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkflag")) = "Y";
  155. }else{
  156. grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkflag")) = "";
  157. }
  158. grd_coninfo.valueMatrix(i, grd_coninfo.colRef("chkyn")) = "Y"; // 부분검수 비활성화 주석처리&컬럼히든처리
  159. }
  160. grd_coninfo.rebuild();
  161. grd_coninfo.refresh();
  162. var iParam = model.getValue(grd_coninfo.nodeset);
  163. var nodelist = instance1.selectNodes(grd_coninfo.nodeset);
  164. var rCVS = getNodeListCSV(nodelist);
  165. if(grd_coninfo.rows == "1"){
  166. opener.model.setValue("/root/popparent/result","3-1"); //3-1 : 조회된 계약건자료 X
  167. window.close();
  168. }
  169. model.removenode("/root/copynode");
  170. model.makeNode("/root/copynode");
  171. var cur_row = grd_purcchk.row;
  172. var status = grd_purcchk.valueMatrix(cur_row, grd_purcchk.colRef("m"));
  173. setCSVToNode("/root/copynode", rCVS, "purcchksublist");
  174. fDataSet("/root/copynode", "purcchksublist");
  175. for (var i = grd_purcchk.fixedRows; i <= grd_purcchk.rows ; i++) {
  176. grd_purcchk.isReadOnly(i , grd_purcchk.colRef("chkflag")) = true;
  177. grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkamt")) = parseFloat(grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkgoodunitcost"))) * parseFloat(grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkqty")));
  178. }
  179. fDispSumAmt();
  180. model.setValue(ipt_stmntamt.attribute("ref") , "");
  181. model.setValue(ipt_taxstmntamt.attribute("ref") , "");
  182. model.refresh();
  183. fSave();
  184. model.setValue("/root/popchild/send/purcchkdd", model.getValue("/root/send/search/purcchkdd"));
  185. model.setValue("/root/popchild/send/purcchkno", model.getValue("/root/send/search/purcchkno"));
  186. submit("TXRSI10102");
  187. window.close();
  188. }else{
  189. opener.model.setValue("/root/popparent/result","3-2"); //3-2 : 단가나품지시_구매요구자료 조회중 ERROR
  190. window.close();
  191. }
  192. }
  193. ]]>
  194. </script>
  195. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  196. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  197. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  198. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  199. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  200. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  201. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  202. <script type="javascript" src="../../../mis/winweb/js/SMRSI10100.js"/>
  203. <script type="javascript">
  204. <![CDATA[]]>
  205. </script>
  206. </xhtml:head>
  207. <xhtml:body style="font-family:굴림; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  208. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  209. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:15px; ">구매 전자결재 취소</caption>
  210. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  211. </group>
  212. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  213. <button id="btn_choidel" class="btn2_letter3" visibility="hidden" style="left:1082px; top:71px; width:53px; height:19px; ">
  214. <caption>행삭제</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. var prestatus = grd_purcchk.valueMatrix(grd_purcchk.row,grd_purcchk.colRef("prestatus"));
  218. if (prestatus == "U"){
  219. /*if (grd_purcchk.valueMatrix(grd_purcchk.row, grd_purcchk.colRef("lastwindd")) != ""){
  220. messageBox(grd_purcchk.row+"번째는 입고 처리된", "I009");
  221. }else{*/
  222. grd_purcchk.rowStatus(grd_purcchk.row) = "4";
  223. //}
  224. }else{
  225. grd_purcchk.deleteRow(grd_purcchk.row);
  226. }
  227. if (grd_purcchk.rows - grd_purcchk.fixedRows == 0){
  228. btn_acntcd.disabled = "false";
  229. ipt_acntcd.disabled = "false";
  230. }else{
  231. btn_acntcd.disabled = "true";
  232. ipt_acntcd.disabled = "true";
  233. }
  234. //fDelSetting(grd_purcchk);
  235. ]]>
  236. </script>
  237. </button>
  238. <group id="grp_search" style="left:0px; top:17px; width:1195px; height:48px; vertical-align:top; ">
  239. <caption id="cap_allsizespecid" class="search_name" style="left:975px; top:10px; width:111px; height:17px; ">규격코드 :</caption>
  240. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
  241. <button id="btn_search" class="btn1_letter2" navindex="5" style="left:1065px; top:7px; width:56px; height:22px; ">
  242. <caption>조회</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. var spath = "/root/main/list/purcchkinfo"
  246. var chkteamflag = model.getValue("/root/tmp/teamflag");
  247. model.removeNodeset(spath);
  248. //약품일경우 teamflag 03으로 파라미터 주기
  249. if(chkteamflag=="03"){
  250. model.makeValue("/root/send/search/teamflag" , chkteamflag);
  251. }else{
  252. model.removeNodeset("/root/send/search/teamflag");
  253. }
  254. model.setValue("/root/send/search/purccondd" , "");
  255. model.setValue("/root/send/search/purcconno" , "");
  256. if (submit("TRRSI10101")){
  257. model.removeNodeset("/root/submain/list/purcchkinfo");
  258. model.makeNode("/root/submain/list/purcchkinfo");
  259. model.copyNode("/root/submain/list/purcchkinfo", "/root/main/list/purcchkinfo");
  260. }
  261. var vInstance = document.models(0).instances(0);
  262. var cnt = vInstance.selectNodes("/root/main/list/purcchkinfo/purcchkmainlist").length;
  263. if (cnt == 0){
  264. var spath = "/root/main/list/purcchkinfo/purcchkmainlist";
  265. model.makeNode(spath+"/purcchkdd" );
  266. model.makeNode(spath+"/purcchkno" );
  267. model.makeNode(spath+"/purccondd" );
  268. model.makeNode(spath+"/purcconno" );
  269. model.makeNode(spath+"/supdd" );
  270. model.makeNode(spath+"/teamflag" );
  271. model.makeNode(spath+"/calcdocukind");
  272. model.makeNode(spath+"/acntcd" );
  273. model.makeNode(spath+"/acntnm" );
  274. model.makeNode(spath+"/newyn" );
  275. model.makeNode(spath+"/stmntamt" );
  276. model.makeNode(spath+"/taxstmntamt" );
  277. model.makeNode(spath+"/totchkamt" );
  278. model.makeNode(spath+"/zerotaxrateyn");
  279. }
  280. fDispSumAmt();
  281. fVisiSumAmt();
  282. if (model.getValue(cal_purcchkdd.attribute("ref")).getTrim() == ""){
  283. fConDisabledControl(true);
  284. if(document.all("btn_elctsanct") != null) btn_elctsanct.disabled = true;
  285. if(document.all("btn_elctsanctsearch") != null) btn_elctsanctsearch.disabled = true;
  286. }else{
  287. fConDisabledControl(false);
  288. if(document.all("btn_elctsanct") != null) btn_elctsanct.disabled = false;
  289. if(document.all("btn_elctsanctsearch") != null) btn_elctsanctsearch.disabled = false;
  290. }
  291. fDisabledControl(true);
  292. for (var i = grd_purcchk.fixedRows; i <= grd_purcchk.rows ; i++){
  293. grd_purcchk.isReadOnly(i , grd_purcchk.colRef("chkflag")) = true;
  294. }
  295. //그리드 순번 출력. 구매품의일련번호 히든처리 -- 2011.02.22 박진억 수정
  296. var numberNode = "/root/main/list/purcchkinfo/purcchksublist";
  297. var rowNo;
  298. for(var i=grd_purcchk.fixedRows;i<grd_purcchk.rows;i++){
  299. rowNo = i - grd_purcchk.fixedRows + 1;
  300. model.makeValue(numberNode + "[" + i + "]/rowno" , rowNo);
  301. }
  302. fChkSurtaxDisabled(); // 부가가치세 활성/비활성
  303. model.refresh();
  304. ]]>
  305. </script>
  306. </button>
  307. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_default" disabled="true" navindex="1" appearance="minimal" style="left:99px; top:10px; width:136px; height:19px; ">
  308. <choices>
  309. <itemset nodeset="/root/main/init">
  310. <label ref="cnstnm"/>
  311. <value ref="cnstcd"/>
  312. </itemset>
  313. </choices>
  314. </select1>
  315. <caption id="cap_instcd" class="search_name" style="left:8px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  316. <input id="cal_purcchkdd_search" ref="/root/send/search/purcchkdd" navindex="3" inputtype="date" style="left:596px; top:10px; width:105px; height:19px; ">
  317. <script type="javascript" ev:event="xforms-value-changed">
  318. <![CDATA[
  319. fGetMaxChkNo(model.getValue(cal_purcchkdd_search.attribute("ref")), "ipt_purcchkno_search");
  320. ]]>
  321. </script>
  322. </input>
  323. <caption id="caption20" class="search_name" style="left:505px; top:10px; width:96px; height:17px; vertical-align:middle; ">요청일자 :</caption>
  324. <line id="line30" class="line_4" style="x1:1055px; y1:3px; x2:1055px; y2:35px; "/>
  325. <input id="ipt_purcchkno_search" ref="/root/send/search/purcchkno" class="input_default" navindex="4" maxlength="4" style="left:710px; top:10px; width:75px; height:19px; text-align:center; ">
  326. <script type="javascript" ev:event="onkeyup">
  327. <![CDATA[
  328. if(event.keyCode == "13") misfNoFormat();
  329. inputEnterKey("btn_search", "DOMActivate");
  330. ]]>
  331. </script>
  332. <script type="javascript" ev:event="xforms-value-changed">
  333. <![CDATA[
  334. misfNoFormat();
  335. ]]>
  336. </script>
  337. </input>
  338. <button id="btn_save" class="btn4_letter2" navindex="6" style="left:1126px; top:7px; width:56px; height:22px; ">
  339. <caption>저장</caption>
  340. <script type="javascript" ev:event="DOMActivate">
  341. <![CDATA[
  342. fSave();
  343. ]]>
  344. </script>
  345. </button>
  346. <select id="checkbox1" ref="/root/tmp/teamflag" overflow="visible" appearance="full" style="left:796px; top:11px; width:50px; height:20px; border-style:none; ">
  347. <choices>
  348. <item>
  349. <label>약품</label>
  350. <value>03</value>
  351. </item>
  352. </choices>
  353. </select>
  354. </group>
  355. <line id="line1" class="line_1" style="x1:0px; y1:93px; x2:1190px; y2:93px; "/>
  356. <caption id="caption1" class="tit_2" style="left:0px; top:74px; width:180px; height:14px; ">구매검수 관리</caption>
  357. <button id="btn_excel" class="btn2_letter2" navindex="24" style="left:1142px; top:71px; width:42px; height:19px; ">
  358. <caption>엑셀</caption>
  359. <script type="javascript" ev:event="DOMActivate">
  360. <![CDATA[
  361. misfSaveExcel(grd_purcchk);
  362. ]]>
  363. </script>
  364. </button>
  365. <line id="line2" class="line_1" style="x1:0px; y1:150px; x2:1190px; y2:150px; "/>
  366. <button id="btn_purccon" class="btn2_letter5" navindex="22" style="left:1001px; top:71px; width:75px; height:19px; ">
  367. <caption>계약건조회</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. if(grd_purcchk.rows - grd_purcchk.fixedRows > 0){
  371. if(messageBox("한번에 한건의 계약만 검수가 가능합니다.\n계속 하시겠습니까?", "Q") == 6){
  372. model.removeNodeset("/root/main/list/purcchkinfo/purcchksublist");
  373. }else{
  374. return;
  375. }
  376. }
  377. if(fChkBalsong()==false) return; // 이미 지출결의 발송한 건에 대해 계약건조회 못하도록 처리
  378. if (fDataValiChk() == false) return;
  379. model.removenode("/root/copynode");
  380. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  381. model.makeNode("/root/copynode");
  382. setParameter("parainfo_acntcd" , model.getValue(ipt_acntcd.attribute("ref")));
  383. setParameter("parainfo_teamflag", model.getValue(cmb_teamflag.attribute("ref")));
  384. setParameter("parainfo_basedd" , model.getValue(cal_purcchkdd.attribute("ref")));
  385. modal("SPRSI10200");
  386. var cur_row = grd_purcchk.row;
  387. var status = grd_purcchk.valueMatrix(cur_row, grd_purcchk.colRef("m"));
  388. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  389. setCSVToNode("/root/copynode", CSV, "purcchksublist");
  390. fDataSet("/root/copynode", "purcchksublist");
  391. if (grd_purcchk.rows - grd_purcchk.fixedRows == 0){
  392. ipt_acntcd.disabled = false;
  393. btn_acntcd.disabled = false;
  394. }else{
  395. ipt_acntcd.disabled = true;
  396. btn_acntcd.disabled = true;
  397. }
  398. for (var i = grd_purcchk.fixedRows; i <= grd_purcchk.rows ; i++) {
  399. grd_purcchk.isReadOnly(i , grd_purcchk.colRef("chkflag")) = true;
  400. grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkamt")) = parseFloat(grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkgoodunitcost"))) * parseFloat(grd_purcchk.valueMatrix(i, grd_purcchk.colRef("chkqty")));
  401. }
  402. if (grd_purcchk.rows - grd_purcchk.fixedRows == 0){
  403. btn_acntcd.disabled = "false";
  404. ipt_acntcd.disabled = "false";
  405. }else{
  406. btn_acntcd.disabled = "true";
  407. ipt_acntcd.disabled = "true";
  408. }
  409. fDispSumAmt();
  410. model.setValue(ipt_stmntamt.attribute("ref") , "");
  411. model.setValue(ipt_taxstmntamt.attribute("ref") , "");
  412. model.refresh();
  413. ]]>
  414. </script>
  415. </button>
  416. <button id="btn_insert" class="btn2_letter2" navindex="21" style="left:958px; top:71px; width:42px; height:19px; ">
  417. <caption>입력</caption>
  418. <script type="javascript" ev:event="DOMActivate">
  419. <![CDATA[
  420. // 금일 날자 설정
  421. var curdate = getCurrentDate();
  422. var cvtdate = curdate.toDate("YYYYMMDD");
  423. fConDisabledControl(false);
  424. fDisabledControl(false);
  425. model.resetInstanceNode("/root/main/list/purcchkinfo/purcchkmainlist");
  426. model.makeValue(ipt_newyn.attribute("ref"), "Y");
  427. model.makeValue("/root/main/list/purcchkinfo/purcchkmainlist/surtaxyn","N");
  428. model.removeNodeset("/root/main/list/purcchkinfo/purcchksublist");
  429. model.setValue(cal_purcchkdd.attribute("ref") , curdate);
  430. //model.setValue(cal_supdd.attribute("ref") , cvtdate.getAddDate(1,"M").getDateFormat("YYYYMMDD"));
  431. cal_purcchkdd.dispatch("xforms-value-changed");
  432. model.setValue(ipt_stmntamt.attribute("ref") , "");
  433. model.setValue(ipt_taxstmntamt.attribute("ref") , "");
  434. /* 경북대버전 수정 - 입력시 계산서 유형 Default 로 세금계산서 선택 2011.02.18 박진억 */
  435. cmb_calcdocukind.select(0);
  436. model.refresh();
  437. ]]>
  438. </script>
  439. </button>
  440. <input id="ipt_newyn" ref="/root/main/list/purcchkinfo/purcchkmainlist/newyn" class="input_default" disabled="true" visibility="hidden" maxlength="1" style="left:124px; top:72px; width:61px; height:19px; text-align:center; "/>
  441. <caption id="caption36" class="cell_1" style="left:510px; top:100px; width:90px; height:23px; vertical-align:middle; ">팀구분</caption>
  442. <line id="line18" class="line_2" style="x1:0px; y1:124px; x2:1195px; y2:124px; "/>
  443. <caption id="caption11" class="cell_1" style="left:800px; top:100px; width:90px; height:23px; vertical-align:middle; ">계정과목</caption>
  444. <caption id="caption15" class="cell_1" style="left:265px; top:100px; width:90px; height:23px; vertical-align:middle; ">납품일</caption>
  445. <line id="line3" class="line_2" style="x1:0px; y1:149px; x2:650px; y2:149px; "/>
  446. <line id="line4" class="line_2" style="x1:0px; y1:149px; x2:1190px; y2:149px; "/>
  447. <input id="cal_supdd" ref="/root/main/list/purcchkinfo/purcchkmainlist/supdd" navindex="9" inputtype="date" style="left:358px; top:102px; width:146px; height:19px; text-align:center; "/>
  448. <select1 id="cmb_teamflag" ref="/root/main/list/purcchkinfo/purcchkmainlist/teamflag" disabled="true" navindex="10" appearance="minimal" style="left:604px; top:102px; width:150px; height:19px; text-align:left; padding-left:10; ">
  449. <choices>
  450. <itemset nodeset="/root/init/wareflag">
  451. <label ref="cdnm"/>
  452. <value ref="cdid"/>
  453. </itemset>
  454. </choices>
  455. </select1>
  456. <output id="opt_acntnm" ref="/root/main/list/purcchkinfo/purcchkmainlist/acntnm" class="output_fix" appearance="output" style="left:1006px; top:102px; width:184px; height:19px; text-align:left; padding-left:10; "/>
  457. <input id="ipt_acntcd" ref="/root/main/list/purcchkinfo/purcchkmainlist/acntcd" class="input_default" disabled="true" navindex="11" style="left:894px; top:102px; width:90px; height:19px; text-align:center; ">
  458. <script type="javascript" ev:event="xforms-value-changed">
  459. <![CDATA[
  460. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt","1,,," + model.getValue(ipt_acntcd.attribute("ref")) ,"","acntcd,acntnm" ,ipt_acntcd,"PPRAC00100","","");
  461. model.refresh();
  462. model.setFocus("ipt_amtacnt");
  463. ]]>
  464. </script>
  465. <script type="javascript" ev:event="onkeydown">
  466. <![CDATA[
  467. if(event.keyCode == 9)
  468. {
  469. if(event.shiftKey)model.setFocus("cmb_lrgcd");
  470. else model.setFocus("ipt_amtacnt");
  471. }
  472. //event.preventDefault();
  473. ]]>
  474. </script>
  475. </input>
  476. <button id="btn_acntcd" class="icon_search" disabled="true" navindex="12" style="left:987px; top:102px; width:16px; height:16px; ">
  477. <caption/>
  478. <script type="javascript" ev:event="DOMActivate">
  479. <![CDATA[
  480. rszfOpenPopUpListByWndName(ipt_acntcd,"","acntcd,acntnm","PPRAC00100","","");
  481. model.refresh();
  482. ]]>
  483. </script>
  484. </button>
  485. <input id="cal_purcchkdd" ref="/root/main/list/purcchkinfo/purcchkmainlist/purcchkdd" navindex="7" inputtype="date" format="yyyy-mm-dd" style="left:94px; top:102px; width:110px; height:19px; text-align:center; ">
  486. <script type="javascript" ev:event="xforms-value-changed">
  487. <![CDATA[
  488. fGetMaxChkNo(model.getValue(cal_purcchkdd.attribute("ref")), "ipt_purcchkno");
  489. ]]>
  490. </script>
  491. </input>
  492. <input id="ipt_purcchkno" ref="/root/main/list/purcchkinfo/purcchkmainlist/purcchkno" class="input_default" disabled="true" navindex="8" maxlength="4" style="left:210px; top:102px; width:51px; height:19px; text-align:center; "/>
  493. <caption id="cap_purcchkdd" class="cell_1" style="left:0px; top:100px; width:90px; height:23px; vertical-align:middle; ">검수일자/NO</caption>
  494. <input id="cal_purccondd" ref="/root/main/list/purcchkinfo/purcchkmainlist/purccondd" disabled="true" navindex="13" inputtype="date" format="yyyy-mm-dd" style="left:94px; top:127px; width:110px; height:19px; text-align:center; ">
  495. <script type="javascript" ev:event="xforms-value-changed">
  496. <![CDATA[
  497. model.setValue("/root/send/nosearch/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  498. model.setValue("/root/send/nosearch/purccondd" , model.getValue(cal_purccondd.attribute("ref")));
  499. if (submit("TRRSP00102")){
  500. var purcconno = model.getValue("/root/main/list/purcconnoinfo/maxpurcconno/purcconno");
  501. model.setValue(ipt_purcconno.attribute("ref"), purcconno);
  502. }
  503. model.setValue("/root/send/nosearch/instcd" , "");
  504. model.setValue("/root/send/nosearch/purccondd" , "");
  505. ipt_purcconno.refresh();
  506. ]]>
  507. </script>
  508. </input>
  509. <input id="ipt_purcconno" ref="/root/main/list/purcchkinfo/purcchkmainlist/purcconno" class="input_default" disabled="true" navindex="14" maxlength="4" style="left:210px; top:127px; width:51px; height:19px; text-align:center; "/>
  510. <caption id="cap_purccondd" class="cell_1" style="left:0px; top:125px; width:90px; height:23px; vertical-align:middle; ">계약일자/NO</caption>
  511. <datagrid id="grd_purcchk" nodeset="/root/main/list/purcchkinfo/purcchksublist" caption="이전 상태값^일자^순번^문서종류^문서일자^문서&#xA;번호^건명^금액^전자문서번호^취소사유^신청부서^신청자^신청자^승인&#xA;여부^승인자^검수구분^기관코드^신규여부|이전 상태값^일자^순번^문서종류^문서일자^문서&#xA;번호^건명^금액^전자문서번호^취소사유^신청부서^사번^성명^승인&#xA;여부^승인자^검수구분^기관코드^신규여부" colsep="^" colwidth="36, 75, 40, 100, 75, 40, 100, 100, 100, 100, 100, 60, 60, 35, 100, 90, 19, 15" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" navindex="20" style="left:0px; top:155px; width:1190px; height:553px; font-weight:normal; text-align:center; ">
  512. <col ref="prestatus" visibility="hidden" style="text-align:center; "/>
  513. <col/>
  514. <col ref="rowno" style="text-align:center; "/>
  515. <col/>
  516. <col/>
  517. <col/>
  518. <col/>
  519. <col/>
  520. <col/>
  521. <col/>
  522. <col/>
  523. <col/>
  524. <col/>
  525. <col/>
  526. <col/>
  527. <col disabled="true" ref="chkflag" type="combo">
  528. <choices>
  529. <itemset nodeset="/root/init/cmb_chkflag/comcodelist">
  530. <label ref="cdnm"/>
  531. <value ref="cdid"/>
  532. </itemset>
  533. </choices>
  534. </col>
  535. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  536. <col ref="newyn" visibility="hidden" style="text-align:center; "/>
  537. <script type="javascript" ev:event="onbuttonclick">
  538. <![CDATA[
  539. rszfOpenPopUpListByWndName(grd_purcchk,"","goodcd,goodnm","SPRSD00190","instcd,goodflag","cmb_instcd,cmb_goodflag");
  540. ]]>
  541. </script>
  542. <script type="javascript" ev:event="xforms-value-changed">
  543. <![CDATA[
  544. fCalcAmt();
  545. ]]>
  546. </script>
  547. </datagrid>
  548. <select1 id="cmb_chkflag" visibility="hidden" appearance="minimal" style="left:190px; top:72px; width:55px; height:19px; ">
  549. <choices>
  550. <itemset>
  551. <label/>
  552. <value/>
  553. </itemset>
  554. </choices>
  555. </select1>
  556. <select1 id="cmb_calcdocukind" ref="/root/main/list/purcchkinfo/purcchkmainlist/calcdocukind" class="combo_search" navindex="15" appearance="minimal" style="left:358px; top:127px; width:146px; height:19px; ">
  557. <choices>
  558. <itemset nodeset="/root/init/calcdocukind">
  559. <label ref="cdnm"/>
  560. <value ref="cdid"/>
  561. </itemset>
  562. </choices>
  563. <script type="javascript" ev:event="xforms-value-changed">
  564. <![CDATA[
  565. fVisiSumAmt();
  566. fChkSurtaxDisabled();
  567. ]]>
  568. </script>
  569. </select1>
  570. <caption id="caption3" class="cell_1" style="left:265px; top:125px; width:90px; height:23px; vertical-align:middle; ">계산서 유형</caption>
  571. <button id="btn_alldel" class="btn2_letter4" navindex="23" style="left:1077px; top:71px; width:64px; height:19px; ">
  572. <caption>전체삭제</caption>
  573. <script type="javascript" ev:event="DOMActivate">
  574. <![CDATA[
  575. fAllDel();
  576. ]]>
  577. </script>
  578. </button>
  579. <caption id="cap_stmntamt" class="cell_1" style="left:510px; top:125px; width:90px; height:23px; vertical-align:middle; ">계산서 금액</caption>
  580. <input id="ipt_stmntamt" ref="/root/main/list/purcchkinfo/purcchkmainlist/stmntamt" class="input_default" disabled="false" navindex="16" format="#,###" style="left:604px; top:127px; width:100px; height:19px; text-align:right; ">
  581. <script type="javascript" ev:event="xforms-value-changed">
  582. <![CDATA[
  583. var taxstmntamt = parseFloat(model.getValue(ipt_totchkamt.attribute("ref"))) - parseFloat(model.getValue(ipt_stmntamt.attribute("ref")))
  584. model.setValue(ipt_taxstmntamt.attribute("ref") , taxstmntamt);
  585. model.refresh();
  586. ]]>
  587. </script>
  588. </input>
  589. <caption id="cap_taxstmntamt" class="cell_1" style="left:710px; top:125px; width:100px; height:23px; vertical-align:middle; ">세금계산서 금액</caption>
  590. <input id="ipt_taxstmntamt" ref="/root/main/list/purcchkinfo/purcchkmainlist/taxstmntamt" class="input_default" disabled="false" navindex="17" format="#,###" style="left:813px; top:127px; width:100px; height:19px; text-align:right; ">
  591. <script type="javascript" ev:event="xforms-value-changed">
  592. <![CDATA[
  593. var stmntamt = parseFloat(model.getValue(ipt_totchkamt.attribute("ref"))) - parseFloat(model.getValue(ipt_taxstmntamt.attribute("ref")))
  594. model.setValue(ipt_stmntamt.attribute("ref") , stmntamt);
  595. model.refresh();
  596. ]]>
  597. </script>
  598. </input>
  599. <caption id="cap_totchkamt" class="cell_1" style="left:917px; top:125px; width:55px; height:23px; vertical-align:middle; ">총금액</caption>
  600. <input id="ipt_totchkamt" ref="/root/main/list/purcchkinfo/purcchkmainlist/totchkamt" class="input_default" disabled="true" navindex="18" format="#,###" style="left:976px; top:127px; width:100px; height:19px; text-align:right; "/>
  601. <caption id="cap_zerotaxrateyn" class="cell_1" style="left:1080px; top:125px; width:55px; height:23px; vertical-align:middle; ">영세율</caption>
  602. <bool id="chk_zerotaxrateyn" navindex="19" checkvalue="Y,N" ref="/root/main/list/purcchkinfo/purcchkmainlist/zerotaxrateyn" style="left:1145px; top:130px; width:35px; height:15px; "/>
  603. <select id="chk_surtaxyn" ref="/root/main/list/purcchkinfo/purcchkmainlist/surtaxyn" disabled="true" navindex="-1" overflow="visible" appearance="full" style="left:451px; top:69px; width:15px; height:15px; border-style:none; ">
  604. <choices>
  605. <item>
  606. <label/>
  607. <value>Y</value>
  608. </item>
  609. </choices>
  610. </select>
  611. <caption id="cap_surtaxyn" class="search_name" style="left:335px; top:70px; width:115px; height:17px; ">미용성형포함 :</caption>
  612. </group>
  613. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  614. <line id="line7" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  615. <button id="btn_init" class="btn4_letter3" navindex="27" style="left:1126; top:3; width:68px; height:22px; ">
  616. <caption>초기화</caption>
  617. <script type="javascript" ev:event="DOMActivate">
  618. <![CDATA[
  619. fInitialize();
  620. ]]>
  621. </script>
  622. </button>
  623. <button id="btn_elctsanct" class="btn6_letter4" disabled="true" navindex="-1" style="left:372px; top:5px; width:80px; height:22px; ">
  624. <caption>전자결재</caption>
  625. <script type="javascript" ev:event="DOMActivate">
  626. <![CDATA[
  627. fElctSanct();
  628. ]]>
  629. </script>
  630. </button>
  631. <button id="btn_elctsanctsearch" class="btn6_letter4" disabled="true" navindex="-1" style="left:452px; top:5px; width:80px; height:22px; ">
  632. <caption>결재조회</caption>
  633. <script type="javascript" ev:event="DOMActivate">
  634. <![CDATA[
  635. fElctSanctSearch();
  636. ]]>
  637. </script>
  638. </button>
  639. </group>
  640. </xhtml:body>
  641. </xhtml:html>