SMRAD01500_품의내역등록.xrw 78 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715
  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. <grnt>
  11. <grntlist1>
  12. <pumno/>
  13. <junpyodate/>
  14. <makedeptcd/>
  15. <makedeptnm/>
  16. <yogudeptcd/>
  17. <pumemplno/>
  18. <pumemplnm/>
  19. <pumgubun/>
  20. <naeyong/>
  21. <payyn/>
  22. <custcode/>
  23. <custnm/>
  24. <bankcode/>
  25. <bankman/>
  26. <bankno/>
  27. <usedate/>
  28. <nabdate/>
  29. <fromdate/>
  30. <todate/>
  31. <pumtot/>
  32. <gwanno/>
  33. <pumsayu/>
  34. <yesno/>
  35. <seqno/>
  36. <iudgb/>
  37. <inptgwno/>
  38. <inptgwnm/>
  39. <bugbungijan/>
  40. <taxlist/>
  41. <chulseq/>
  42. </grntlist1>
  43. <grntlist2>
  44. <cdacntcd/>
  45. <bugtamt/>
  46. <bugtexecamt/>
  47. <bugtjanamt/>
  48. <pumamt/>
  49. <hyubdate/>
  50. <yesno/>
  51. <flag/>
  52. <acntcd/>
  53. <junpyodate/>
  54. <usedate/>
  55. <makedeptcd/>
  56. <yogudeptcd/>
  57. <pumno/>
  58. <naeyong/>
  59. <pumemplno/>
  60. <bankcode/>
  61. <bankno/>
  62. <bankman/>
  63. <custcode/>
  64. <nabdate/>
  65. <fromdate/>
  66. <todate/>
  67. <gwanno/>
  68. <pumgubun/>
  69. <pumsayu/>
  70. <bugbungijan/>
  71. <inptgwno/>
  72. <taxlist/>
  73. <becdacntcd/>
  74. </grntlist2>
  75. <grntlist3/>
  76. </grnt>
  77. <codeinfo>
  78. <codelist>
  79. <cdid/>
  80. <cntlcd1/>
  81. <cdnm/>
  82. <detldesc/>
  83. <cntlcd2/>
  84. <custnm/>
  85. <useyn/>
  86. <grupcdid/>
  87. </codelist>
  88. </codeinfo>
  89. </main>
  90. <init>
  91. <combo1>
  92. <deptcdcmb>
  93. <deptcd/>
  94. <deptnm/>
  95. </deptcdcmb>
  96. </combo1>
  97. <combo2>
  98. <acntcmb>
  99. <acntcd/>
  100. <acntnm/>
  101. </acntcmb>
  102. </combo2>
  103. <combo3>
  104. <acntcmb>
  105. <acntcd/>
  106. <acntnm/>
  107. </acntcmb>
  108. </combo3>
  109. <combo4>
  110. <proccmb>
  111. <cdid/>
  112. <cdnm/>
  113. </proccmb>
  114. </combo4>
  115. </init>
  116. <send>
  117. <paydedu>
  118. <instcd/>
  119. <emplno/>
  120. <emplnm/>
  121. <acntcd/>
  122. <cnt/>
  123. <amt1/>
  124. <custcode/>
  125. <bugtflag/>
  126. <deptcd/>
  127. <usedate/>
  128. <pumno/>
  129. <pumno1/>
  130. <pumno2/>
  131. <stat/>
  132. <junpyodate/>
  133. <qtrflag/>
  134. <chulseq/>
  135. </paydedu>
  136. <save>
  137. <grntlist1/>
  138. </save>
  139. <reqdata>
  140. <grupcdid/>
  141. <srcd/>
  142. <useyn/>
  143. <detldesc/>
  144. <cntlcd2/>
  145. </reqdata>
  146. </send>
  147. <send1>
  148. <acntcd/>
  149. </send1>
  150. <custinfo>
  151. <custlist>
  152. <aactno/>
  153. <bankcd/>
  154. <depor/>
  155. <custnm/>
  156. </custlist>
  157. </custinfo>
  158. <bugtinfo>
  159. <bugtlist>
  160. <bugtamt/>
  161. <bugtexecamt/>
  162. <bugtjanamt/>
  163. <bugbungijan/>
  164. </bugtlist>
  165. </bugtinfo>
  166. <wongainfo>
  167. <wongalist>
  168. <acntcd/>
  169. </wongalist>
  170. </wongainfo>
  171. <popdata>
  172. <junpyodate/>
  173. <makedeptcd/>
  174. <yogudeptcd/>
  175. <pumgubun/>
  176. </popdata>
  177. <pop1data>
  178. <pumgubun/>
  179. <pumno/>
  180. <cdacntcd/>
  181. <pumamt/>
  182. <irow/>
  183. <chulseq/>
  184. </pop1data>
  185. <pop2data>
  186. <makedeptcd/>
  187. <instcd/>
  188. </pop2data>
  189. <pop3data>
  190. <pumgubun/>
  191. <pumno/>
  192. <pumamt/>
  193. <taxlist/>
  194. <custcode/>
  195. <custname/>
  196. <kyymd/>
  197. <pumno2/>
  198. <naeyong/>
  199. <sekeumdate/>
  200. </pop3data>
  201. <hidden>
  202. <item>
  203. <pumno/>
  204. </item>
  205. </hidden>
  206. <target>
  207. <recvref/>
  208. </target>
  209. <taxinfo>
  210. <taxlist/>
  211. </taxinfo>
  212. <closeinfo>
  213. <closelist>
  214. <closdd/>
  215. <closyn/>
  216. </closelist>
  217. </closeinfo>
  218. <acntcheckinfo>
  219. <acntchecklist>
  220. <cdid/>
  221. </acntchecklist>
  222. </acntcheckinfo>
  223. <pop4data>
  224. <chulseq/>
  225. <yogudeptcd/>
  226. </pop4data>
  227. </root>
  228. </instance>
  229. <submission id="TRRAD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo1"/>
  230. <submission id="TRRAD01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/custinfo"/>
  231. <submission id="TRRAD01503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo2"/>
  232. <submission id="TRRAD01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo3"/>
  233. <submission id="TRRAD01505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/bugtinfo"/>
  234. <submission id="TRRAD01506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/main/grnt"/>
  235. <submission id="TRRAD01508" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/wongainfo"/>
  236. <submission id="TRRAD01513" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/init/combo4"/>
  237. <submission id="TRRAD01516" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/closeinfo"/>
  238. <submission id="TRRAD01517" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/paydedu" resultref="/root/acntcheckinfo"/>
  239. <submission id="TXRAD01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden"/>
  240. <submission id="TRRAH02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/codeinfo"/>
  241. </model>
  242. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  243. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  244. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  245. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  246. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  247. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  248. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  249. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  250. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  251. <script type="javascript" ev:event="xforms-ready">
  252. <![CDATA[
  253. initialize();
  254. ]]>
  255. </script>
  256. <script type="javascript">
  257. <![CDATA[
  258. function initialize(){
  259. misfGridInit(grd_grntpsn1);
  260. misfMsterDetailSet(grd_grntpsn1,null, "TRRAD01506" ,"Y");
  261. var curdate = getCurrentDate();
  262. var instcd = getUserInfo("dutplceinstcd");
  263. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  264. var deptcd = getUserInfo("dutplcecd");
  265. var deptnm = getUserInfo("dutplcenm");
  266. var emplno = getUserInfo("userid");
  267. var emplnm = getUserInfo("usernm");
  268. misfComboInstCdListMulti("cmb_instcd", getCurrentDate(), "", "N");
  269. model.setValue("/root/main/grnt/grntlist1/junpyodate", curdate);
  270. model.setValue("/root/main/grnt/grntlist1/usedate", curdate);
  271. model.setValue("/root/main/grnt/grntlist1/makedeptcd", deptcd);
  272. model.setValue("/root/main/grnt/grntlist1/makedeptnm", deptnm);
  273. model.setValue("/root/main/grnt/grntlist1/pumemplno", emplno);
  274. model.setValue("/root/main/grnt/grntlist1/pumemplnm", emplnm);
  275. model.setValue("/root/main/grnt/grntlist1/payyn", "N");
  276. model.setValue("/root/main/grnt/grntlist1/yesno", "N");
  277. model.setValue("/root/main/grnt/grntlist1/iudgb", "I");
  278. model.setValue("/root/main/grnt/grntlist1/pumgubun", "3");
  279. model.setValue("/root/send/paydedu/bugtflag", "2");
  280. misfComboComCdListMulti("R0001","cmb_bankcd");
  281. submit("TRRAD01501");
  282. submit("TRRAD01504");
  283. submit("TRRAD01513");
  284. submit("TRRAD01516");
  285. var closdd = model.getValue("/root/closeinfo/closelist/closdd");
  286. var closyn = model.getValue("/root/closeinfo/closelist/closyn");
  287. var junpyodate = model.getValue("/root/main/grnt/grntlist1/junpyodate");
  288. /* if (closyn == "Y" && closdd >= junpyodate) {
  289. group3.disabled = true;
  290. grd_grntpsn1.disabled = true;
  291. button5.disabled = true;
  292. button4.disabled = true;
  293. button2.disabled = true;
  294. button35.disabled = true;
  295. button3.disabled = true;
  296. button36.disabled = true;
  297. btn_grdaddpaydedulist.disabled = true;
  298. btn_grddelpaydedulist.disabled = true;
  299. caption26.visible = true;
  300. }
  301. */
  302. // 2011.09.21 cyw 출장비 품의는 031 본원은 재무파트 / 교육수련팀 / 의료질관리팀만 사용가능하도록..
  303. // ( 칠곡 ) 3320100000 -- 의료질관리파트, 4110701000 -- 교육연구팀, 4010609000 --기획재무파트
  304. if( instcd == "032" ){
  305. if( deptcd != "3320100000" && deptcd != "4110701000" && deptcd != "4010609000" ){
  306. btn_chulpum.visible = false;
  307. }else{
  308. btn_chulpum.visible = true;
  309. }
  310. }
  311. if( instcd == "031" ){
  312. if( deptcd != "4030100000" && deptcd != "4110100000" && deptcd != "4071200000" ){
  313. btn_chulpum.visible = false;
  314. }else{
  315. btn_chulpum.visible = true;
  316. }
  317. }
  318. model.refresh();
  319. }
  320. function fOpenPopupDeptHelp(pControl, pInstance){
  321. misfOpenPopUpList("02", pControl, "", pInstance);
  322. model.refresh();
  323. }
  324. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName){
  325. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  326. model.refresh();
  327. }
  328. function fOpenPopupUserHelp(pCtrl, pInstance){
  329. misfOpenPopUpList("01", pCtrl, "", pInstance);
  330. model.refresh();
  331. }
  332. function Popup(){
  333. var ymd = model.getValue("/root/main/grnt/grntlist1/junpyodate");
  334. var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
  335. var ydeptcd = model.getValue("/root/main/grnt/grntlist1/yogudeptcd");
  336. if (ymd != "" && mdeptcd != "" && ydeptcd != ""){
  337. model.setValue("/root/popdata/junpyodate", ymd);
  338. model.setValue("/root/popdata/makedeptcd", mdeptcd);
  339. model.setValue("/root/popdata/yogudeptcd", ydeptcd);
  340. model.setValue("/root/popdata/pumgubun", "3");
  341. //opener 로 값던지기
  342. //clearParameter("aa");
  343. //setParmeter("aa","3");
  344. //참고
  345. //opener에서 값가져오기
  346. //getParameter("aa");
  347. modal("SPRAD00400", "", "", "", "SPRAD00400","/root/popdata","/root/popdata");
  348. model.setValue("/root/pop1data/chulseq", model.getValue("/root/send/paydedu/chulseq"));
  349. }
  350. }
  351. function Popup1(){
  352. var icnt = 0;
  353. for (var i = 1; i < grd_grntpsn1.rows; i++){
  354. var pumgubun = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumgubun");
  355. //var pumno = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumno");
  356. var pumno = model.getValue("/root/send/paydedu/pumno");
  357. var pumamt = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt");
  358. var cdacntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/cdacntcd");
  359. model.setValue("/root/send/paydedu/acntcd", cdacntcd);
  360. if (submit("TRRAD01508")){
  361. if (instance1.selectSingleNode("/root/wongainfo/wongalist/acntcd") == null){
  362. }else{
  363. icnt = parseInt(icnt) + 1;
  364. }
  365. }
  366. if (icnt > 0){
  367. model.setValue("/root/pop1data/pumno", pumno);
  368. model.setValue("/root/pop1data/cdacntcd", cdacntcd);
  369. model.setValue("/root/pop1data/pumgubun", pumgubun);
  370. model.setValue("/root/pop1data/pumamt", model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
  371. //model.setValue("/root/pop1data/pumamt", model.getValue("/root/main/grnt/grntlist1/pumtot"));
  372. var irow = parseInt(i) + 1;
  373. model.setValue("/root/pop1data/irow", irow);
  374. //modal("SPRAD00500", "", "", "", "SPRAD00500","/root/pop1data","/root/pop1data");
  375. window.load("SPRAD00500.xrw", "modal","", "caption:hidden", "/root/pop1data","/root/pop1data");
  376. }
  377. }
  378. }
  379. //계산서, 세금계산서
  380. function Popup2(){
  381. var pumamt = 0;
  382. for (var i = 1; i < grd_grntpsn1.rows; i++){
  383. var pumgubun = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumgubun");
  384. //var pumno = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumno");
  385. var pumno = model.getValue("/root/send/paydedu/pumno");
  386. // 2011.07.26 CYW 계정들의 총금액을 넣어줘야함.
  387. pumamt = pumamt + parseInt(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
  388. }
  389. model.setValue("/root/pop3data/pumgubun", pumgubun);
  390. model.setValue("/root/pop3data/pumno", pumno);
  391. model.setValue("/root/pop3data/pumno2", model.getValue("/root/send/paydedu/pumno2"));
  392. model.setValue("/root/pop3data/pumamt", pumamt);
  393. model.setValue("/root/pop3data/taxlist", model.getValue("/root/main/grnt/grntlist1/taxlist"));
  394. model.setValue("/root/pop3data/naeyong", model.getValue("/root/main/grnt/grntlist1/naeyong"));
  395. model.setValue("/root/pop3data/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
  396. model.setValue("/root/pop3data/custname", model.getValue("/root/main/grnt/grntlist1/custnm"));
  397. // 2011.03.29 박준범 - 발의일자와 거래발생일자를 모두다 SPRAD00700 으로 전달해야 함
  398. model.setValue("/root/pop3data/kyymd", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
  399. model.setValue("/root/pop3data/sekeumdate", model.getValue("/root/main/grnt/grntlist1/usedate"));
  400. window.load("SPRAD00700.xrw", "modal","", "", "/root/pop3data","/root/pop3data");
  401. }
  402. ]]>
  403. </script>
  404. </xhtml:head>
  405. <xhtml:body>
  406. <group id="group2" scroll="auto" style="left:0px; top:28px; width:1195px; height:744px; ">
  407. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  408. <button id="btn_search" class="btn1_letter2" visibility="hidden" style="left:1123px; top:11px; width:56px; height:22px; ">
  409. <caption>조회</caption>
  410. <script type="javascript" ev:event="DOMActivate">
  411. <![CDATA[
  412. model.removeNodeset("/root/main/grnt/grntlist1");
  413. misfMsterDetailRetrieve();
  414. var pumno = model.getValue("/root/main/grnt/grntlist1/pumno");
  415. model.setValue("/root/send/paydedu/pumno1", pumno.substr(0, 8));
  416. model.setValue("/root/send/paydedu/pumno2", pumno.substr(8, 4));
  417. model.setValue("/root/send/paydedu/pumno", pumno);
  418. /*
  419. if (model.getValue("/root/send/paydedu/stat") != "U"){
  420. Popup1();
  421. }
  422. */
  423. // 2011.06.29 cyw 예산합의일도 조건에 추가.
  424. if (model.getValue("/root/main/grnt/grntlist1/yesno") == "Y" ){
  425. group3.disabled = true;
  426. grd_grntpsn1.disabled = true;
  427. btn_grddelpaydedulist.disabled = true;
  428. btn_grdaddpaydedulist.disabled = true;
  429. //2011.07.07 cyw 수정시, 품의계정, 경리계정도 수정가능하도록.
  430. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("cdacntcd")) = true;
  431. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("acntcd")) = true;
  432. }else{
  433. grd_grntpsn1.disabled = false;
  434. ipt_unsldd.disabled = true;
  435. ipt_costcntrdeptcd.disabled = true;
  436. combo1.disabled = true;
  437. input4.disabled = false;
  438. btn_grddelpaydedulist.disabled = false;
  439. btn_grdaddpaydedulist.disabled = false;
  440. //grd_grntpsn1.isReadOnly(grd_grntpsn1.rows,6) = true;
  441. //2011.07.07 cyw 수정시, 품의계정, 경리계정도 수정가능하도록.
  442. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("cdacntcd")) = false;
  443. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("acntcd")) = false;
  444. }
  445. model.setValue("/root/send/paydedu/stat", "");
  446. if (model.getValue("/root/main/grnt/grntlist1/custcode") == "9001"){
  447. caption16.value = "카드번호 :";
  448. ipt_custcd.disabled = true;
  449. input7.disabled = true;
  450. }else{
  451. caption16.value = "계좌번호 :";
  452. ipt_custcd.disabled = false;
  453. input7.disabled = false;
  454. }
  455. //2011.04.26 박준범 - 조회이후 (세금)계산서의 내역이 있으면 control을 disable 시켜서
  456. // 세금계산서와 계산서의 내역이 동시에 등록되는 일도 없도록 한다.
  457. if( model.getValue("/root/main/grnt/grntlist1/taxlist") == "1" || model.getValue("/root/main/grnt/grntlist1/taxlist") == "2" ){
  458. combo3.disabled = true;
  459. } else {
  460. combo3.disabled = false;
  461. }
  462. model.refresh();
  463. ]]>
  464. </script>
  465. </button>
  466. <line id="line13" class="line_4" visibility="hidden" style="x1:1106px; y1:11px; x2:1106px; y2:33px; "/>
  467. <line id="line1" class="line_1" style="x1:0px; y1:291px; x2:1192px; y2:291px; "/>
  468. <button id="btn_grdaddpaydedulist" class="btn2_letter3" navindex="18" style="left:1078px; top:270px; width:53px; height:19px; ">
  469. <caption>행추가</caption>
  470. <script type="javascript" ev:event="DOMActivate">
  471. <![CDATA[
  472. if (model.getValue("/root/main/grnt/grntlist1/junpyodate") == ""){
  473. messageBox("발의일자는 필수 선택항목입니다.", "E999", "");
  474. return;
  475. }
  476. if (model.getValue("/root/main/grnt/grntlist1/makedeptcd") == ""){
  477. messageBox("작성부서는 필수 선택항목입니다.", "E999", "");
  478. return;
  479. }
  480. if (model.getValue("/root/main/grnt/grntlist1/yogudeptcd") == ""){
  481. messageBox("예산관련부서는 필수 선택항목입니다.", "E999", "");
  482. return;
  483. }
  484. if (model.getValue("/root/main/grnt/grntlist1/usedate") == ""){
  485. messageBox("거래발생일은 필수 입력항목입니다.", "E999", "");
  486. return;
  487. }
  488. //2011.04.11 박준범 - 거래처 check 추가
  489. if (model.getValue("/root/main/grnt/grntlist1/custcode") == ""){
  490. messageBox("거래처는 필수 입력항목입니다.", "E999", "");
  491. return;
  492. }
  493. misfGridIUD(grd_grntpsn1, "A");
  494. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("acntcd")) = false;
  495. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("cdacntcd")) = false;
  496. grd_grntpsn1.colDisabled(grd_grntpsn1.colRef("pumamt")) = false;
  497. var irow = grd_grntpsn1.row;
  498. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
  499. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/usedate", model.getValue("/root/main/grnt/grntlist1/usedate"));
  500. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/makedeptcd", model.getValue("/root/main/grnt/grntlist1/makedeptcd"));
  501. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/yogudeptcd", model.getValue("/root/main/grnt/grntlist1/yogudeptcd"));
  502. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/pumno", model.getValue("/root/main/grnt/grntlist1/pumno"));
  503. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/naeyong", model.getValue("/root/main/grnt/grntlist1/naeyong"));
  504. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/pumemplno", model.getValue("/root/main/grnt/grntlist1/pumemplno"));
  505. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/bankcode", model.getValue("/root/main/grnt/grntlist1/bankcode"));
  506. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/bankno", model.getValue("/root/main/grnt/grntlist1/bankno"));
  507. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/bankman", model.getValue("/root/main/grnt/grntlist1/bankman"));
  508. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
  509. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/nabdate", model.getValue("/root/main/grnt/grntlist1/nabdate"));
  510. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/fromdate", model.getValue("/root/main/grnt/grntlist1/fromdate"));
  511. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/todate", model.getValue("/root/main/grnt/grntlist1/todate"));
  512. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/gwanno", model.getValue("/root/main/grnt/grntlist1/gwanno"));
  513. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/pumgubun", model.getValue("/root/main/grnt/grntlist1/pumgubun"));
  514. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/pumsayu", model.getValue("/root/main/grnt/grntlist1/pumsayu"));
  515. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/inptgwno", model.getValue("/root/main/grnt/grntlist1/inptgwno"));
  516. model.setValue("/root/main/grnt/grntlist2[" + irow + "]/texlist", model.getValue("/root/main/grnt/grntlist1/texlist"));
  517. //model.setValue("/root/main/grnt/grntlist2[" + irow + "]/payyn", model.getValue("/root/main/grnt/grntlist1/payyn"));
  518. model.refresh();
  519. ]]>
  520. </script>
  521. </button>
  522. <button id="btn_inputexcel" class="btn2_letter4" visibility="hidden" style="left:858px; top:270px; width:64px; height:19px; ">
  523. <caption>엑셀입력</caption>
  524. <script type="javascript" ev:event="DOMActivate">
  525. <![CDATA[
  526. var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  527. grd_grntpsn1.loadExcel(fileName, 1, true);
  528. for (var i = 1; i < grd_grntpsn1.rows; i ++){
  529. grd_grntpsn1.rowStatus(i) = 1;
  530. }
  531. grd_grntpsn1.refresh();
  532. ]]>
  533. </script>
  534. </button>
  535. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1134px; top:270px; width:53px; height:19px; ">
  536. <caption>행삭제</caption>
  537. <script type="javascript" ev:event="DOMActivate">
  538. <![CDATA[
  539. misfGridIUD(grd_grntpsn1, "D");
  540. var amt = 0;
  541. var totamt = 0;
  542. for (var i = 1; i < grd_grntpsn1.rows; i++){
  543. if (grd_grntpsn1.rowStatus(i) != 4 && grd_grntpsn1.rowStatus(i) != 5 && grd_grntpsn1.rowStatus(i) != 6){
  544. amt = parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
  545. if (isNaN(amt) || amt == ""){
  546. amt = 0;
  547. }
  548. totamt = parseFloat(totamt) + parseFloat(amt);
  549. /*
  550. if (parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt")) > parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/bugtjanamt"))){
  551. messageBox("품의가능금액보다 품의금액이 큽니다.", "E999", "");
  552. }
  553. */
  554. }
  555. }
  556. model.setValue("/root/main/grnt/grntlist1/pumtot", totamt);
  557. model.refresh();
  558. ]]>
  559. </script>
  560. </button>
  561. <select1 id="cmb_instcd" ref="/root/send/paydedu/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:88px; top:12px; width:125px; height:19px; ">
  562. <choices>
  563. <itemset>
  564. <label/>
  565. <value/>
  566. </itemset>
  567. </choices>
  568. </select1>
  569. <caption id="caption2" class="search_name" style="left:22px; top:13px; width:61px; height:17px; ">기관 :</caption>
  570. <datagrid id="grd_grntpsn1" nodeset="/root/main/grnt/grntlist2" caption="품의계정^예산배정금액^예산집행실적^품의가능금액^caption18^품의금액^예산합의일^승인^전표^경리계정^caption1^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption9^caption10^caption11^caption12^caption13^caption14^caption15^caption16^caption17^caption19^caption20^caption21" colsep="^" colwidth="151, 154, 146, 158, 30, 147, 106, 72, 55, 157, 53, 43, 34, 28, 33, 37, 34, 36, 28, 39, 36, 38, 37, 33, 39, 34, 30, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:297px; width:1192px; height:445px; ">
  571. <col disabled="true" editmode="inputsearch" ref="cdacntcd" type="combo">
  572. <choices>
  573. <itemset nodeset="/root/init/combo2/acntcmb">
  574. <label ref="acntnm"/>
  575. <value ref="acntcd"/>
  576. </itemset>
  577. </choices>
  578. </col>
  579. <col ref="bugbungitot" format="(-)#,###" style="text-align:right; "/>
  580. <col ref="bugtexecamt" format="(-)#,###" style="text-align:right; "/>
  581. <col ref="bugtjanamt" format="(-)#,###" style="text-align:right; "/>
  582. <col ref="bugtamt" visibility="hidden" format="(-)#,###" style="text-align:right; "/>
  583. <col disabled="false" ref="pumamt" type="input" format="(-)#,###" style="text-align:right; "/>
  584. <col ref="hyubdate" format="yyyy-mm-dd" style="text-align:center; "/>
  585. <col disabled="true" ref="yesno" type="combo" style="text-align:center; ">
  586. <choices>
  587. <item>
  588. <label>승인</label>
  589. <value>Y</value>
  590. </item>
  591. <item>
  592. <label>미승인</label>
  593. <value>N</value>
  594. </item>
  595. <item>
  596. <label>취소</label>
  597. <value>C</value>
  598. </item>
  599. </choices>
  600. </col>
  601. <col ref="flag" style="text-align:center; "/>
  602. <col disabled="true" editmode="inputsearch" ref="acntcd" type="combo">
  603. <choices>
  604. <itemset nodeset="/root/init/combo3/acntcmb">
  605. <label ref="acntnm"/>
  606. <value ref="acntcd"/>
  607. </itemset>
  608. </choices>
  609. </col>
  610. <col ref="junpyodate" visibility="hidden"/>
  611. <col ref="usedate" visibility="hidden"/>
  612. <col ref="makedeptcd" visibility="hidden"/>
  613. <col ref="yogudeptcd" visibility="hidden"/>
  614. <col ref="pumno" visibility="hidden"/>
  615. <col ref="naeyong" visibility="hidden"/>
  616. <col ref="pumemplno" visibility="hidden"/>
  617. <col ref="bankcode" visibility="hidden"/>
  618. <col ref="bankno" visibility="hidden"/>
  619. <col ref="bankman" visibility="hidden"/>
  620. <col ref="custcode" visibility="hidden"/>
  621. <col ref="nabdate" visibility="hidden"/>
  622. <col ref="fromdate" visibility="hidden"/>
  623. <col ref="todate" visibility="hidden"/>
  624. <col ref="gwanno" visibility="hidden"/>
  625. <col ref="pumgubun" visibility="hidden"/>
  626. <col ref="pumsayu" visibility="hidden"/>
  627. <col ref="bugbungijan" visibility="hidden"/>
  628. <col ref="inptgwno" visibility="hidden"/>
  629. <col ref="texlist" visibility="hidden"/>
  630. <col ref="becdacntcd" visibility="hidden"/>
  631. <script type="javascript" ev:event="xforms-value-changed">
  632. <![CDATA[
  633. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "cdacntcd" ) { //계산기준코드
  634. var acntcd = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd");
  635. model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd"));
  636. model.setValue("/root/send/paydedu/usedate", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/usedate"));
  637. model.setValue("/root/send/paydedu/junpyodate", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/junpyodate") );
  638. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/acntcd", acntcd);
  639. if (grd_grntpsn1.labelMatrix(grd_grntpsn1.row, grd_grntpsn1.colRef("cdacntcd")) == ""){
  640. if (grd_grntpsn1.labelMatrix(grd_grntpsn1.row, 10) == ""){
  641. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/acntcd", "");
  642. messageBox("경리계정에 없는 품의계정입니다. 확인 후 처리하기시 바랍니다.", "E999", "");
  643. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", 0);
  644. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", 0);
  645. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", 0);
  646. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", 0);
  647. model.refresh();
  648. return;
  649. }else{
  650. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", 0);
  651. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", 0);
  652. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", 0);
  653. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", 0);
  654. }
  655. }else{
  656. if (submit("TRRAD01505")){
  657. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", model.getValue("/root/bugtinfo/bugtlist/bugtamt"));
  658. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", model.getValue("/root/bugtinfo/bugtlist/bugtexecamt"));
  659. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", model.getValue("/root/bugtinfo/bugtlist/bugtjanamt"));
  660. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", model.getValue("/root/bugtinfo/bugtlist/bugbungitot"));
  661. //model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungijan", model.getValue("/root/bugtinfo/bugtlist/bugbungijan"));
  662. model.refresh();
  663. }
  664. }
  665. }
  666. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "acntcd" ) { //계산기준코드
  667. var acntcd = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/acntcd");
  668. if (acntcd == "11290300" || acntcd == "12280300"){
  669. }else{
  670. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd", acntcd);
  671. model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd"));
  672. model.setValue("/root/send/paydedu/usedate", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/usedate"));
  673. if (submit("TRRAD01505")){
  674. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", model.getValue("/root/bugtinfo/bugtlist/bugtamt"));
  675. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", model.getValue("/root/bugtinfo/bugtlist/bugtexecamt"));
  676. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", model.getValue("/root/bugtinfo/bugtlist/bugtjanamt"));
  677. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", model.getValue("/root/bugtinfo/bugtlist/bugbungitot"));
  678. //model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungijan", model.getValue("/root/bugtinfo/bugtlist/bugbungijan"));
  679. model.refresh();
  680. }
  681. }
  682. }
  683. if (grd_grntpsn1.colAttribute(grd_grntpsn1.col,"ref") == "pumamt" ) {
  684. var acntcd = model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd");
  685. model.setValue("/root/send/paydedu/acntcd", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/cdacntcd"));
  686. model.setValue("/root/send/paydedu/usedate", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/usedate"));
  687. model.setValue("/root/send/paydedu/junpyodate", model.getValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/junpyodate") );
  688. //model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/acntcd", acntcd);
  689. // 2011.06.15 박준범 - 아래의 [품의총액을 계산하는 부분]과 [품의가능금액과 품의금액을 비교하는 부분] 을 분리하여
  690. // [품의총액을 계산하는 부분]은 현위치로 올렸음
  691. var amt = 0;
  692. var totamt = 0;
  693. for (var i = 1; i < grd_grntpsn1.rows; i++){
  694. amt = parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
  695. if (isNaN(amt) || amt == ""){
  696. amt = 0;
  697. }
  698. totamt = parseFloat(totamt) + parseFloat(amt);
  699. }
  700. model.setValue("/root/main/grnt/grntlist1/pumtot", totamt);
  701. model.refreshpart("/root/main/grnt/grntlist1/pumtot");
  702. //valueMatrix는 인스턴스에 저장된 값, labelMatrix는 셀에 보여지는 값으로 포맷이 적용된 값으로 put이 안됨.
  703. if (grd_grntpsn1.labelMatrix(grd_grntpsn1.row-1, grd_grntpsn1.colRef("cdacntcd")) == ""){
  704. if (grd_grntpsn1.labelMatrix(grd_grntpsn1.row, 10) == ""){
  705. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/acntcd", "");
  706. messageBox("경리계정에 없는 품의계정입니다. 확인 후 처리하기시 바랍니다.", "E999", "");
  707. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", 0);
  708. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", 0);
  709. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", 0);
  710. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", 0);
  711. model.refresh();
  712. return;
  713. }else{
  714. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", 0);
  715. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", 0);
  716. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", 0);
  717. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", 0);
  718. return;
  719. }
  720. }else{
  721. if (submit("TRRAD01505")){
  722. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtamt", model.getValue("/root/bugtinfo/bugtlist/bugtamt"));
  723. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtexecamt", model.getValue("/root/bugtinfo/bugtlist/bugtexecamt"));
  724. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugtjanamt", model.getValue("/root/bugtinfo/bugtlist/bugtjanamt"));
  725. model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungitot", model.getValue("/root/bugtinfo/bugtlist/bugbungitot"));
  726. //model.setValue("/root/main/grnt/grntlist2[" + grd_grntpsn1.row + "]/bugbungijan", model.getValue("/root/bugtinfo/bugtlist/bugbungijan"));
  727. model.refresh();
  728. }
  729. }
  730. /* 2011.06.15 박준범 - [품의총액을 계산하는 부분]과 [품의가능금액과 품의금액을 비교하는 부분] 을 분리하여 구현하기 의해 comment처리함
  731. - [품의총액을 계산하는 부분]은 현위치보다 위쪽에 위치시키고, [품의가능금액과 품의금액을 비교하는 부분]은 현재 위치에 그대로 둠
  732. var amt = 0;
  733. var totamt = 0;
  734. for (var i = 1; i < grd_grntpsn1.rows; i++){
  735. amt = parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
  736. if (isNaN(amt) || amt == ""){
  737. amt = 0;
  738. }
  739. totamt = parseFloat(totamt) + parseFloat(amt);
  740. if ( parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt")) > parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/bugtjanamt")) ){
  741. messageBox("품의가능금액보다 품의금액이 큽니다.", "E999", "");
  742. //ControlID.currentText
  743. // alert(grd_grntpsn1.labelMatrix(grd_grntpsn1.row, grd_grntpsn1.col));
  744. // alert(grd_grntpsn1.valueMatrix(grd_grntpsn1.row, grd_grntpsn1.col));
  745. // grd_grntpsn1.
  746. //return;
  747. }
  748. }
  749. model.setValue("/root/main/grnt/grntlist1/pumtot", totamt);
  750. model.refresh();
  751. */
  752. for (var i = 1; i < grd_grntpsn1.rows; i++){
  753. if ( parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt")) > parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/bugtjanamt")) ){
  754. messageBox("품의가능금액보다 품의금액이 큽니다.", "E999", "");
  755. //ControlID.currentText
  756. // alert(grd_grntpsn1.labelMatrix(grd_grntpsn1.row, grd_grntpsn1.col));
  757. // alert(grd_grntpsn1.valueMatrix(grd_grntpsn1.row, grd_grntpsn1.col));
  758. // grd_grntpsn1.
  759. //return;
  760. }
  761. if( model.getValue("/root/main/grnt/grntlist2[" + i + "]/hyubdate") != "" && model.getValue("/root/main/grnt/grntlist2[" + i + "]/yesno") == "Y")
  762. {
  763. messageBox("예산합의 후에는 품의금액을 변경", "E001", "");
  764. }
  765. }
  766. }
  767. ]]>
  768. </script>
  769. </datagrid>
  770. <button id="btn_savegrntpsn1excel" class="btn2_letter4" visibility="hidden" style="left:925px; top:270px; width:64px; height:19px; ">
  771. <caption>엑셀저장</caption>
  772. <script type="javascript" ev:event="DOMActivate">
  773. <![CDATA[
  774. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  775. if (fileName != ""){
  776. grd_grntpsn1.saveExcel(fileName);
  777. }
  778. ]]>
  779. </script>
  780. </button>
  781. <group id="group3" style="left:0px; top:46px; width:1190px; height:222px; ">
  782. <input id="input7" ref="/root/main/grnt/grntlist1/bankno" class="input_essential" navindex="11" style="left:450px; top:85px; width:303px; height:19px; ">
  783. <script type="javascript" ev:event="xforms-value-changed">
  784. <![CDATA[
  785. for (var i = 1; i < grd_grntpsn1.rows;i++){
  786. model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankno", model.getValue("/root/main/grnt/grntlist1/bankno"));
  787. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  788. }else{
  789. grd_grntpsn1.rowStatus(i) = 2;
  790. }
  791. }
  792. model.refresh();
  793. ]]>
  794. </script>
  795. </input>
  796. <button id="button1" class="icon_search" navindex="-1" style="left:549px; top:60px; width:16px; height:16px; ">
  797. <caption/>
  798. <script type="javascript" ev:event="DOMActivate">
  799. <![CDATA[
  800. fOpenPopupHelp("14", ipt_custcd, "custcode,custnm", "", "");
  801. if (model.getValue("/root/main/grnt/grntlist1/custcode") != ""){
  802. model.setValue("/root/send/paydedu/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
  803. if (submit("TRRAD01502")){
  804. model.setValue("/root/main/grnt/grntlist1/bankcode", model.getValue("/root/custinfo/custlist/bankcd"));
  805. model.setValue("/root/main/grnt/grntlist1/bankman", model.getValue("/root/custinfo/custlist/depor"));
  806. model.setValue("/root/main/grnt/grntlist1/bankno", model.getValue("/root/custinfo/custlist/aactno"));
  807. model.refresh();
  808. }
  809. }
  810. for (var i = 1; i < grd_grntpsn1.rows;i++){
  811. model.setValue("/root/main/grnt/grntlist2[" + i + "]/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
  812. model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankcode", model.getValue("/root/main/grnt/grntlist1/bankcode"));
  813. model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankman", model.getValue("/root/main/grnt/grntlist1/bankman"));
  814. model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankno", model.getValue("/root/main/grnt/grntlist1/bankno"));
  815. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  816. }else{
  817. grd_grntpsn1.rowStatus(i) = 2;
  818. }
  819. }
  820. if (model.getValue("/root/main/grnt/grntlist1/custcode") == "9001"){
  821. var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
  822. model.setValue("/root/pop2data/makedeptcd", mdeptcd);
  823. modal("SPRAD00600", "", "", "", "SPRAD00600","/root/pop2data","/root/pop2data");
  824. }
  825. model.refresh();
  826. ]]>
  827. </script>
  828. </button>
  829. <input id="input8" ref="/root/main/grnt/grntlist1/fromdate" class="input_s_essential" navindex="14" inputtype="date" style="left:450px; top:110px; width:95px; height:19px; text-align:center; ">
  830. <script type="javascript" ev:event="xforms-value-changed">
  831. <![CDATA[
  832. for (var i = 1; i < grd_grntpsn1.rows;i++){
  833. model.setValue("/root/main/grnt/grntlist2[" + i + "]/fromdate", model.getValue("/root/main/grnt/grntlist1/fromdate"));
  834. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  835. }else{
  836. grd_grntpsn1.rowStatus(i) = 2;
  837. }
  838. }
  839. model.refresh();
  840. ]]>
  841. </script>
  842. </input>
  843. <input id="input9" ref="/root/main/grnt/grntlist1/todate" class="input_s_essential" navindex="15" inputtype="date" style="left:570px; top:110px; width:95px; height:19px; text-align:center; ">
  844. <script type="javascript" ev:event="xforms-value-changed">
  845. <![CDATA[
  846. for (var i = 1; i < grd_grntpsn1.rows;i++){
  847. model.setValue("/root/main/grnt/grntlist2[" + i + "]/todate", model.getValue("/root/main/grnt/grntlist1/todate"));
  848. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  849. }else{
  850. grd_grntpsn1.rowStatus(i) = 2;
  851. }
  852. }
  853. model.refresh();
  854. ]]>
  855. </script>
  856. </input>
  857. <bool id="bool1" navindex="6" checkvalue="Y,N" ref="/root/main/grnt/grntlist1/payyn" style="left:965px; top:35px; width:25px; height:20px; ">
  858. <script type="javascript" ev:event="xforms-value-changed">
  859. <![CDATA[
  860. /*
  861. for (var i = 1; i < grd_grntpsn1.rows;i++){
  862. model.setValue("/root/main/grnt/grntlist2[" + i + "]/payyn", model.getValue("/root/main/grnt/grntlist1/payyn"));
  863. }
  864. */
  865. model.refresh();
  866. ]]>
  867. </script>
  868. </bool>
  869. <input id="input10" ref="/root/main/grnt/grntlist1/pumtot" disabled="true" format="(-)#,###" style="left:895px; top:110px; width:120px; height:19px; text-align:right; "/>
  870. <caption id="caption20" class="search_name" style="left:355px; top:160px; width:87px; height:17px; ">비 고 :</caption>
  871. <caption id="caption1" class="search_name" style="left:355px; top:10px; width:86px; height:17px; ">작성부서 :</caption>
  872. <caption id="caption10" class="search_name" style="left:790px; top:85px; width:99px; height:17px; ">거래발생일 :</caption>
  873. <input id="input11" ref="/root/main/grnt/grntlist1/gwanno" class="input_essential" navindex="16" visibility="hidden" style="left:450px; top:135px; width:565px; height:19px; ">
  874. <script type="javascript" ev:event="xforms-value-changed">
  875. <![CDATA[
  876. for (var i = 1; i < grd_grntpsn1.rows;i++){
  877. model.setValue("/root/main/grnt/grntlist2[" + i + "]/gwanno", model.getValue("/root/main/grnt/grntlist1/gwanno"));
  878. }
  879. model.refresh();
  880. ]]>
  881. </script>
  882. </input>
  883. <caption id="caption21" class="search_name" visibility="hidden" style="left:245px; top:185px; width:87px; height:17px; ">품의구분 :</caption>
  884. <select1 id="combo1" ref="/root/main/grnt/grntlist1/yogudeptcd" navindex="3" appearance="minimal" style="left:910px; top:10px; width:105px; height:19px; ">
  885. <choices>
  886. <itemset nodeset="/root/init/combo1/deptcdcmb">
  887. <label ref="deptnm"/>
  888. <value ref="deptcd"/>
  889. </itemset>
  890. </choices>
  891. <script type="javascript" ev:event="xforms-value-changed">
  892. <![CDATA[
  893. model.setValue("/root/send/paydedu/deptcd", model.getValue("/root/main/grnt/grntlist1/yogudeptcd"));
  894. submit("TRRAD01503");
  895. for (var i = 1; i < grd_grntpsn1.rows;i++){
  896. model.setValue("/root/main/grnt/grntlist2[" + i + "]/yogudeptcd", model.getValue("/root/main/grnt/grntlist1/yogudeptcd"));
  897. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  898. }else{
  899. grd_grntpsn1.rowStatus(i) = 2;
  900. }
  901. }
  902. //Popup();
  903. model.refresh();
  904. ]]>
  905. </script>
  906. </select1>
  907. <caption id="caption11" class="search_name" style="left:45px; top:110px; width:87px; height:17px; ">납 기 일 :</caption>
  908. <input id="input12" ref="/root/main/grnt/grntlist1/pumgubun" visibility="hidden" style="left:340px; top:185px; width:100px; height:19px; "/>
  909. <caption id="caption22" class="search_name" visibility="hidden" style="left:45px; top:180px; width:87px; height:17px; ">승인여부 :</caption>
  910. <input id="ipt_costcntrdeptnm" ref="/root/main/grnt/grntlist1/makedeptnm" class="input_essential" disabled="true" style="left:569px; top:10px; width:184px; height:19px; ">
  911. <script type="javascript" ev:event="xforms-value-changed">
  912. <![CDATA[
  913. if(model.getValue(cmb_deptflag.attribute("ref")) == "1"){
  914. racfDeptValidCheck("costcntrdeptcd,costcntrdeptnm"); // 전체부서
  915. }else if(model.getValue(cmb_deptflag.attribute("ref")) == "2"){
  916. model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
  917. fValidationCheck("47", "costcntrdeptcd,costcntrdeptnm", "", "", "ipt_acntyy", "acntyy"); //예산편성부서
  918. }
  919. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
  920. || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept)){
  921. messageBox("권한이 없습니다.", "I000");
  922. model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  923. ipt_costcntrdeptcd.refresh();
  924. ipt_costcntrdeptcd.dispatch("xforms-value-changed");
  925. return false;
  926. }
  927. if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != ""){
  928. model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  929. model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  930. model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  931. model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  932. model.refresh();
  933. }
  934. fRemoveAcntValue();
  935. ]]>
  936. </script>
  937. <script type="javascript" ev:event="onkeypress">
  938. <![CDATA[
  939. if(event.keyCode == 13){
  940. model.setFocus("ipt_acntnm");
  941. }
  942. ]]>
  943. </script>
  944. </input>
  945. <caption id="caption3" class="search_name" style="left:790px; top:10px; width:112px; height:17px; ">예산관련부서 :</caption>
  946. <caption id="caption12" class="search_name" style="left:355px; top:110px; width:87px; height:17px; ">기 간 :</caption>
  947. <input id="input13" ref="/root/main/grnt/grntlist1/yesno" visibility="hidden" style="left:140px; top:180px; width:100px; height:19px; "/>
  948. <input id="ipt_unsldd" ref="/root/main/grnt/grntlist1/junpyodate" class="input_s_essential" navindex="1" inputtype="date" style="left:140px; top:10px; width:90px; height:19px; text-align:center; ">
  949. <script type="javascript" ev:event="xforms-value-changed">
  950. <![CDATA[
  951. for (var i = 1; i < grd_grntpsn1.rows;i++){
  952. model.setValue("/root/main/grnt/grntlist2[" + i + "]/junpyodate", model.getValue("/root/main/grnt/grntlist1/junpyodate"));
  953. }
  954. model.refresh();
  955. ]]>
  956. </script>
  957. </input>
  958. <caption id="caption4" class="search_name" style="left:45px; top:35px; width:86px; height:17px; ">품의번호 :</caption>
  959. <caption id="caption13" class="search_name" style="left:355px; top:60px; width:86px; height:17px; ">거 래 처 :</caption>
  960. <input id="ipt_custcd" ref="/root/main/grnt/grntlist1/custcode" class="input_essential" navindex="8" maxlength="11" style="left:450px; top:60px; width:95px; height:19px; ">
  961. <script type="javascript" ev:event="xforms-value-changed">
  962. <![CDATA[
  963. if (model.getValue("/root/main/grnt/grntlist1/custcode") != ""){
  964. model.setValue("/root/send/paydedu/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
  965. if (submit("TRRAD01502")){
  966. model.setValue("/root/main/grnt/grntlist1/custnm", model.getValue("/root/custinfo/custlist/custnm"));
  967. model.setValue("/root/main/grnt/grntlist1/bankcode", model.getValue("/root/custinfo/custlist/bankcd"));
  968. model.setValue("/root/main/grnt/grntlist1/bankman", model.getValue("/root/custinfo/custlist/depor"));
  969. model.setValue("/root/main/grnt/grntlist1/bankno", model.getValue("/root/custinfo/custlist/aactno"));
  970. model.refresh();
  971. }
  972. }else{
  973. model.setValue("/root/main/grnt/grntlist1/custnm", "");
  974. model.setValue("/root/main/grnt/grntlist1/bankcode", "");
  975. model.setValue("/root/main/grnt/grntlist1/bankman", "");
  976. model.setValue("/root/main/grnt/grntlist1/bankno", "");
  977. }
  978. for (var i = 1; i < grd_grntpsn1.rows;i++){
  979. model.setValue("/root/main/grnt/grntlist2[" + i + "]/custcode", model.getValue("/root/main/grnt/grntlist1/custcode"));
  980. //model.setValue("/root/main/grnt/grntlist2[" + i + "]/custnm", model.getValue("/root/main/grnt/grntlist1/custnm"));
  981. model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankcode", model.getValue("/root/main/grnt/grntlist1/bankcode"));
  982. model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankman", model.getValue("/root/main/grnt/grntlist1/bankman"));
  983. model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankno", model.getValue("/root/main/grnt/grntlist1/bankno"));
  984. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  985. }else{
  986. grd_grntpsn1.rowStatus(i) = 2;
  987. }
  988. }
  989. if (model.getValue("/root/main/grnt/grntlist1/custcode") == "9001"){
  990. if (model.getValue("/root/main/grnt/grntlist1/yogudeptcd") == ""){
  991. messageBox("예산관련부서는 필수 선택항목입니다.", "E999", "");
  992. return;
  993. }
  994. var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
  995. model.setValue("/root/pop2data/makedeptcd", mdeptcd);
  996. modal("SPRAD00600", "", "", "", "SPRAD00600","/root/pop2data","/root/pop2data");
  997. }
  998. model.refresh();
  999. ]]>
  1000. </script>
  1001. </input>
  1002. <caption id="caption5" class="search_name" style="left:45px; top:10px; width:86px; height:17px; ">발의일자 :</caption>
  1003. <input id="ipt_costcntrdeptcd" ref="/root/main/grnt/grntlist1/makedeptcd" class="input_essential" navindex="2" maxlength="10" style="left:450px; top:10px; width:95px; height:19px; ">
  1004. <script type="javascript" ev:event="xforms-value-changed">
  1005. <![CDATA[
  1006. for (var i = 1; i < grd_grntpsn1.rows;i++){
  1007. model.setValue("/root/main/grnt/grntlist2[" + i + "]/makedeptcd", model.getValue("/root/main/grnt/grntlist1/makedeptcd"));
  1008. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  1009. }else{
  1010. grd_grntpsn1.rowStatus(i) = 2;
  1011. }
  1012. }
  1013. //Popup();
  1014. model.refresh();
  1015. ]]>
  1016. </script>
  1017. </input>
  1018. <button id="btn_costcntrdeptcd" class="icon_search" navindex="-1" style="left:549px; top:10px; width:16px; height:16px; ">
  1019. <caption/>
  1020. <script type="javascript" ev:event="DOMActivate">
  1021. <![CDATA[
  1022. fOpenPopupDeptHelp(ipt_costcntrdeptcd, "makedeptcd,makedeptnm");
  1023. //Popup();
  1024. ]]>
  1025. </script>
  1026. </button>
  1027. <caption id="caption14" class="search_name" style="left:790px; top:60px; width:100px; height:17px; ">은 행 :</caption>
  1028. <select1 id="cmb_bankcd" ref="/root/main/grnt/grntlist1/bankcode" class="combo_default" navindex="9" appearance="minimal" editmode="inputsearch" style="left:895px; top:60px; width:120px; height:19px; ">
  1029. <choices>
  1030. <itemset>
  1031. <label/>
  1032. <value/>
  1033. </itemset>
  1034. </choices>
  1035. <script type="javascript" ev:event="xforms-value-changed">
  1036. <![CDATA[
  1037. for (var i = 1; i < grd_grntpsn1.rows;i++){
  1038. model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankcode", model.getValue("/root/main/grnt/grntlist1/bankcode"));
  1039. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  1040. }else{
  1041. grd_grntpsn1.rowStatus(i) = 2;
  1042. }
  1043. }
  1044. model.refresh();
  1045. ]]>
  1046. </script>
  1047. </select1>
  1048. <button id="btn_emplno" class="icon_search" style="left:232px; top:60px; width:16px; height:16px; ">
  1049. <caption/>
  1050. <script type="javascript" ev:event="DOMActivate">
  1051. <![CDATA[
  1052. fOpenPopupUserHelp(ipt_emplnos, "pumemplno,pumemplnm");
  1053. for (var i = 1; i < grd_grntpsn1.rows;i++){
  1054. model.setValue("/root/main/grnt/grntlist2[" + i + "]/pumemplno", model.getValue("/root/main/grnt/grntlist1/pumemplno"));
  1055. }
  1056. model.refresh();
  1057. /*
  1058. ar recv_list = "empln,emplnm" ;
  1059. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
  1060. model.setValue("/root/main/grnt/grntlist1/pumemplno", model.getValue("/root/send/paydedu/emplno"));
  1061. model.setValue("/root/main/grnt/grntlist1/pumemplnm", model.getValue("/root/send/paydedu/emplnm"));
  1062. for (var i = 1; i < grd_grntpsn1.rows;i++){
  1063. model.setValue("/root/main/grnt/grntlist2[" + i + "]/pumemplno", model.getValue("/root/send/paydedu/emplno"));
  1064. }
  1065. model.refresh();
  1066. */
  1067. ]]>
  1068. </script>
  1069. </button>
  1070. <input id="input1" ref="/root/main/grnt/grntlist1/naeyong" navindex="5" style="left:450px; top:35px; width:510px; height:19px; ">
  1071. <script type="javascript" ev:event="xforms-value-changed">
  1072. <![CDATA[
  1073. for (var i = 1; i < grd_grntpsn1.rows;i++){
  1074. model.setValue("/root/main/grnt/grntlist2[" + i + "]/naeyong", model.getValue("/root/main/grnt/grntlist1/naeyong"));
  1075. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  1076. }else{
  1077. grd_grntpsn1.rowStatus(i) = 2;
  1078. }
  1079. }
  1080. model.refresh();
  1081. ]]>
  1082. </script>
  1083. </input>
  1084. <caption id="caption15" class="search_name" style="left:45px; top:85px; width:87px; height:17px; ">예 금 주 :</caption>
  1085. <caption id="caption7" class="search_name" style="left:45px; top:60px; width:83px; height:17px; ">작 성 자 :</caption>
  1086. <input id="input2" ref="/root/main/grnt/grntlist1/bankman" class="input_essential" navindex="10" style="left:140px; top:85px; width:190px; height:19px; ">
  1087. <script type="javascript" ev:event="xforms-value-changed">
  1088. <![CDATA[
  1089. for (var i = 1; i < grd_grntpsn1.rows;i++){
  1090. model.setValue("/root/main/grnt/grntlist2[" + i + "]/bankman", model.getValue("/root/main/grnt/grntlist1/bankman"));
  1091. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  1092. }else{
  1093. grd_grntpsn1.rowStatus(i) = 2;
  1094. }
  1095. }
  1096. model.refresh();
  1097. ]]>
  1098. </script>
  1099. </input>
  1100. <caption id="caption16" class="search_name" style="left:355px; top:85px; width:87px; height:17px; ">계좌번호 :</caption>
  1101. <textarea id="textarea1" ref="/root/main/grnt/grntlist1/pumsayu" navindex="17" style="left:450px; top:160px; width:565px; height:50px; ">
  1102. <script type="javascript" ev:event="xforms-value-changed">
  1103. <![CDATA[
  1104. for (var i = 1; i < grd_grntpsn1.rows;i++){
  1105. model.setValue("/root/main/grnt/grntlist2[" + i + "]/pumsayu", model.getValue("/root/main/grnt/grntlist1/pumsayu"));
  1106. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  1107. }else{
  1108. grd_grntpsn1.rowStatus(i) = 2;
  1109. }
  1110. }
  1111. model.refresh();
  1112. ]]>
  1113. </script>
  1114. </textarea>
  1115. <input id="ipt_emplnos" ref="/root/main/grnt/grntlist1/pumemplno" class="input_essential" navindex="7" style="left:140px; top:60px; width:90px; height:19px; ">
  1116. <script type="javascript" ev:event="onkeyup">
  1117. <![CDATA[
  1118. /*
  1119. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  1120. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  1121. inputEnterKey("btn_search", "DOMActivate");
  1122. }
  1123. */
  1124. ]]>
  1125. </script>
  1126. <script type="javascript" ev:event="xforms-value-changed">
  1127. <![CDATA[
  1128. /*
  1129. var recv_list = "emplno,emplnm" ;
  1130. rpbfValidationCheck("EMPLNO", recv_list);
  1131. for (var i = 1; i < grd_grntpsn1.rows;i++){
  1132. model.setValue("/root/main/grnt/grntlist2[" + i + "]/pumemplno", model.getValue("/root/send/paydedu/emplno"));
  1133. }
  1134. model.refresh();*/
  1135. /*
  1136. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  1137. btn_search.dispatch("DOMActivate");
  1138. }
  1139. */
  1140. ]]>
  1141. </script>
  1142. </input>
  1143. <caption id="caption8" class="search_name" style="left:355px; top:35px; width:86px; height:17px; ">건 명 :</caption>
  1144. <input id="input3" ref="/root/main/grnt/grntlist1/custnm" class="input_essential" disabled="true" style="left:569px; top:60px; width:184px; height:19px; ">
  1145. <script type="javascript" ev:event="xforms-value-changed">
  1146. <![CDATA[
  1147. if(model.getValue(cmb_deptflag.attribute("ref")) == "1"){
  1148. racfDeptValidCheck("costcntrdeptcd,costcntrdeptnm"); // 전체부서
  1149. }else if(model.getValue(cmb_deptflag.attribute("ref")) == "2"){
  1150. model.setValue("/root/hidden/acntyy", radfgetAcntYY(getUserInfo("dutplceinstcd"), model.getValue("/root/hidden/condition/unsldd"))); // 귀속부서 팝업창에 전달한 회계년도
  1151. fValidationCheck("47", "costcntrdeptcd,costcntrdeptnm", "", "", "ipt_acntyy", "acntyy"); //예산편성부서
  1152. }
  1153. if(radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition8') == "Y" && !(radfCheckBugtAuth(getUserInfo("dutplceinstcd"), getUserInfo("userid"), model.getValue(ipt_costcntrdeptcd.attribute("ref")), 'SELECTDEPTYN') == "Y"
  1154. || getUserInfo("dutplcecd") == model.getValue(ipt_costcntrdeptcd.attribute("ref")) || getUserInfo("dutplcecd") == bugtdept)){
  1155. messageBox("권한이 없습니다.", "I000");
  1156. model.setValue(ipt_costcntrdeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  1157. ipt_costcntrdeptcd.refresh();
  1158. ipt_costcntrdeptcd.dispatch("xforms-value-changed");
  1159. return false;
  1160. }
  1161. if(model.getValue("/root/main/unsl_one/bugtmngtdeptcd") != "" && model.getValue("/root/main/unsl_one/bugtmngtdeptnm") != ""){
  1162. model.setValue("/root/main/unsl_one/costbelongdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  1163. model.setValue("/root/main/unsl_one/costbelongdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  1164. model.setValue("/root/main/unsl_one/bugtmngtdeptcd", model.getValue("/root/main/unsl_one/costcntrdeptcd"));
  1165. model.setValue("/root/main/unsl_one/bugtmngtdeptnm", model.getValue("/root/main/unsl_one/costcntrdeptnm"));
  1166. model.refresh();
  1167. }
  1168. fRemoveAcntValue();
  1169. ]]>
  1170. </script>
  1171. <script type="javascript" ev:event="onkeypress">
  1172. <![CDATA[
  1173. if(event.keyCode == 13){
  1174. model.setFocus("ipt_acntnm");
  1175. }
  1176. ]]>
  1177. </script>
  1178. </input>
  1179. <caption id="caption17" style="left:550px; top:110px; width:15px; height:20px; text-align:center; ">~</caption>
  1180. <caption id="caption9" style="left:988px; top:36px; width:35px; height:20px; ">급여</caption>
  1181. <input id="input4" ref="/root/main/grnt/grntlist1/usedate" class="input_s_essential" navindex="12" inputtype="date" style="left:895px; top:85px; width:120px; height:19px; text-align:center; ">
  1182. <script type="javascript" ev:event="xforms-value-changed">
  1183. <![CDATA[
  1184. if (model.getValue("/root/main/grnt/grntlist1/usedate") < '20110101'){
  1185. messageBox("2011년 1월 1일 이전자료는 이전시스템에서 등록하시기 바랍니다.", "E999", "");
  1186. return;
  1187. }
  1188. // 2011.08.04 cyw
  1189. if( model.getValue("/root/main/grnt/grntlist1/usedate") <= model.getValue("/root/closeinfo/closelist/closdd") ){
  1190. messageBox("마감일자가 지난 후에는 이전날짜로 등록 불가능합니다.", "E000", "");
  1191. return;
  1192. }
  1193. for (var i = 1; i < grd_grntpsn1.rows;i++){
  1194. model.setValue("/root/main/grnt/grntlist2[" + i + "]/usedate", model.getValue("/root/main/grnt/grntlist1/usedate"));
  1195. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  1196. }else{
  1197. grd_grntpsn1.rowStatus(i) = 2;
  1198. }
  1199. }
  1200. model.refresh();
  1201. ]]>
  1202. </script>
  1203. </input>
  1204. <caption id="caption18" class="search_name" style="left:790px; top:110px; width:101px; height:17px; ">품 의 총 액 :</caption>
  1205. <input id="ipt_emplnms" ref="/root/main/grnt/grntlist1/pumemplnm" class="input_default" disabled="true" style="left:250px; top:60px; width:80px; height:19px; ">
  1206. <script type="javascript" ev:event="onkeyup">
  1207. <![CDATA[
  1208. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  1209. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  1210. inputEnterKey("btn_search", "DOMActivate");
  1211. }
  1212. ]]>
  1213. </script>
  1214. <script type="javascript" ev:event="xforms-value-changed">
  1215. <![CDATA[
  1216. var recv_list = "emplno,emplnm" ;
  1217. rpbfValidationCheck("EMPLNM", recv_list);
  1218. model.refresh();
  1219. /*
  1220. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  1221. btn_search.dispatch("DOMActivate");
  1222. }
  1223. */
  1224. ]]>
  1225. </script>
  1226. </input>
  1227. <input id="input5" ref="/root/main/grnt/grntlist1/nabdate" class="input_s_essential" navindex="13" inputtype="date" style="left:140px; top:110px; width:120px; height:19px; text-align:center; ">
  1228. <script type="javascript" ev:event="xforms-value-changed">
  1229. <![CDATA[
  1230. for (var i = 1; i < grd_grntpsn1.rows;i++){
  1231. model.setValue("/root/main/grnt/grntlist2[" + i + "]/nabdate", model.getValue("/root/main/grnt/grntlist1/nabdate"));
  1232. if (grd_grntpsn1.rowStatus(i) == 1 || grd_grntpsn1.rowStatus(i) == 3){
  1233. }else{
  1234. grd_grntpsn1.rowStatus(i) = 2;
  1235. }
  1236. }
  1237. model.refresh();
  1238. ]]>
  1239. </script>
  1240. </input>
  1241. <input id="input6" ref="/root/main/grnt/grntlist1/pumno" disabled="true" navindex="4" visibility="hidden" format="00000000-0000" style="left:1055px; top:135px; width:120px; height:19px; text-align:center; "/>
  1242. <input id="input14" ref="/root/send/paydedu/pumno1" disabled="true" navindex="4" style="left:140px; top:35px; width:90px; height:19px; text-align:center; "/>
  1243. <input id="input15" ref="/root/send/paydedu/pumno2" disabled="true" navindex="4" style="left:250px; top:35px; width:40px; height:19px; text-align:center; "/>
  1244. <caption id="caption23" class="search_name" visibility="hidden" style="left:45px; top:200px; width:87px; height:17px; ">수정구분 :</caption>
  1245. <input id="input16" ref="/root/main/grnt/grntlist1/iudgb" visibility="hidden" style="left:140px; top:200px; width:100px; height:19px; "/>
  1246. <select1 id="combo2" ref="/root/main/grnt/grntlist1/gwanno" disabled="true" visibility="hidden" appearance="minimal" editmode="inputsearch" style="left:140px; top:160px; width:190px; height:19px; ">
  1247. <choices>
  1248. <itemset nodeset="/root/init/combo4/proccmb">
  1249. <label ref="cdnm"/>
  1250. <value ref="cdid"/>
  1251. </itemset>
  1252. </choices>
  1253. </select1>
  1254. <caption id="caption19" class="search_name" visibility="hidden" style="left:45px; top:160px; width:99px; height:17px; ">프로젝트 :</caption>
  1255. <caption id="caption24" class="search_name" style="left:355px; top:135px; width:86px; height:17px; ">관리번호 :</caption>
  1256. <button id="button6" class="icon_search" navindex="-1" style="left:549px; top:135px; width:16px; height:16px; ">
  1257. <caption/>
  1258. <script type="javascript" ev:event="DOMActivate">
  1259. <![CDATA[
  1260. window.load("SMRPQ02000.xrw","modal","pop1", "width:200px; height:100;");
  1261. model.refresh();
  1262. ]]>
  1263. </script>
  1264. </button>
  1265. <input id="input17" ref="/root/main/grnt/grntlist1/inptgwno" class="input_essential" navindex="8" maxlength="11" style="left:450px; top:135px; width:95px; height:19px; ">
  1266. <script type="javascript" ev:event="xforms-value-changed">
  1267. <![CDATA[
  1268. ]]>
  1269. </script>
  1270. </input>
  1271. <input id="input18" ref="/root/main/grnt/grntlist1/inptgwnm" class="input_essential" disabled="true" style="left:569px; top:135px; width:184px; height:19px; ">
  1272. <script type="javascript" ev:event="xforms-value-changed">
  1273. <![CDATA[
  1274. ]]>
  1275. </script>
  1276. <script type="javascript" ev:event="onkeypress">
  1277. <![CDATA[
  1278. if(event.keyCode == 13){
  1279. model.setFocus("ipt_acntnm");
  1280. }
  1281. ]]>
  1282. </script>
  1283. </input>
  1284. <select1 id="combo3" ref="/root/main/grnt/grntlist1/taxlist" appearance="minimal" editmode="inputsearch" style="left:140px; top:135px; width:190px; height:19px; ">
  1285. <choices>
  1286. <item>
  1287. <label>기타</label>
  1288. <value>0</value>
  1289. </item>
  1290. <item>
  1291. <label>세금계산서</label>
  1292. <value>1</value>
  1293. </item>
  1294. <item>
  1295. <label>계산서</label>
  1296. <value>2</value>
  1297. </item>
  1298. </choices>
  1299. </select1>
  1300. <caption id="caption25" class="search_name" style="left:45px; top:135px; width:99px; height:17px; ">증빙유형 :</caption>
  1301. </group>
  1302. <caption id="caption26" visibility="hidden" style="left:315px; top:6px; width:540px; height:34px; font-size:16pt; font-weight:bold; color:#ff0000; ">마감되었습니다.</caption>
  1303. <button id="btn_chulpum" class="btn5_letter5" visibility="hidden" style="left:1000px; top:270px; width:75px; height:19px; ">
  1304. <caption>출장비품의</caption>
  1305. <script type="javascript" ev:event="DOMActivate">
  1306. <![CDATA[
  1307. if (model.getValue("/root/main/grnt/grntlist1/yogudeptcd") == ""){
  1308. messageBox("예산관련부서는 필수 선택항목입니다.", "E999", "");
  1309. return;
  1310. }
  1311. model.setValue("/root/pop4data/yogudeptcd", model.getValue("/root/main/grnt/grntlist1/yogudeptcd"));
  1312. modal("SPRPD08000", "", "200", "200", "popup","/root/pop4data","/root/pop4data");
  1313. model.setValue("/root/pop1data/chulseq", model.getValue("/root/pop4data/chulseq"));
  1314. model.setValue("/root/send/paydedu/chulseq", model.getValue("/root/pop4data/chulseq"));
  1315. var amt = 0;
  1316. var totamt = 0;
  1317. for (var i = 1; i < grd_grntpsn1.rows; i++){
  1318. amt = parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
  1319. if (isNaN(amt) || amt == ""){
  1320. amt = 0;
  1321. }
  1322. totamt = parseFloat(totamt) + parseFloat(amt);
  1323. }
  1324. model.setValue("/root/main/grnt/grntlist1/pumtot", totamt);
  1325. model.refreshpart("/root/main/grnt/grntlist1/pumtot");
  1326. ]]>
  1327. </script>
  1328. </button>
  1329. </group>
  1330. <group id="grp_btn" scroll="auto" style="left:0px; top:0px; width:1195px; height:27px; ">
  1331. <caption id="caption6" class="tit_1" style="left:0px; top:5px; width:245px; height:18px; ">품의내역등록</caption>
  1332. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  1333. <caption>저장</caption>
  1334. <script type="javascript" ev:event="DOMActivate">
  1335. <![CDATA[
  1336. if (model.getValue("/root/main/grnt/grntlist1/usedate") < '20110101'){
  1337. messageBox("2011년 1월 1일 이전자료는 이전시스템에서 등록하시기 바랍니다.", "E999", "");
  1338. return;
  1339. }
  1340. // 2011.08.03 cyw
  1341. if( model.getValue("/root/main/grnt/grntlist1/usedate") <= model.getValue("/root/closeinfo/closelist/closdd") ){
  1342. messageBox("마감일자가 지난 후에는 이전날짜로 등록 불가능합니다.", "E000", "");
  1343. return;
  1344. }
  1345. if (grd_grntpsn1.rows < 2){
  1346. messageBox("품의상세내역이 없습니다. 확인바랍니다.", "E999", "");
  1347. return;
  1348. }
  1349. if (model.getValue("/root/main/grnt/grntlist1/custcode") == "9001"){
  1350. if (model.getValue("/root/main/grnt/grntlist1/bankno") == ""){
  1351. messageBox("카드번호는 필수 선택항목입니다.", "E999", "");
  1352. return;
  1353. }
  1354. }
  1355. if(model.getValue("/root/main/grnt/grntlist1/taxlist") == ""){
  1356. messageBox("증빙유형은 필수 입력항목입니다.", "E999", "");
  1357. return;
  1358. }
  1359. /* 20110523_계정과목 필수체크 DB자료 검색으로 수정 - 주석처리 서원식
  1360. var check = "";
  1361. for (var i = 1; i < grd_grntpsn1.rows; i++){
  1362. var cdacntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/acntcd");
  1363. if (cdacntcd == "12280101" || cdacntcd == "12280102" || cdacntcd == "12280103" || cdacntcd == "12280109" || cdacntcd == "12280200" || cdacntcd == "12280300" || cdacntcd == "71120100" || cdacntcd == "71240900"){
  1364. check = "Y";
  1365. }
  1366. }
  1367. if (check == "Y"){
  1368. if (model.getValue("/root/main/grnt/grntlist1/inptgwno") == ""){
  1369. messageBox("해당 계정과목은 관리번호가 필수 선택항목입니다.", "E999", "");
  1370. return;
  1371. }
  1372. }
  1373. */
  1374. model.removeNodeset("/root/acntcheckinfo");
  1375. submit("TRRAD01517");
  1376. // var nodelist = instance1.selectNodes("/root/acntcheckinfo/acntchecklist");
  1377. // alert(nodelist.length);
  1378. // alert(model.getxpathvalue("count(/root/acntcheckinfo/acntchecklist)" ));
  1379. for ( var i = 1; i < grd_grntpsn1.rows; i++ ){
  1380. var cdacntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/acntcd");
  1381. var chkcnt = getNodesetCount("/root/acntcheckinfo/acntchecklist");
  1382. for ( var j = 1 ; j <= chkcnt ; j++ ) {
  1383. if( cdacntcd == model.getValue("/root/acntcheckinfo/acntchecklist[" + j + "]/cdid") ) {
  1384. if(model.getValue("/root/main/grnt/grntlist1/inptgwno") == "") {
  1385. messageBox("해당 계정과목은 관리번호가 필수 선택항목입니다.", "E999", "");
  1386. return;
  1387. }
  1388. }
  1389. }
  1390. }
  1391. /*
  1392. for (var i = 1; i < grd_grntpsn1.rows; i++){
  1393. var cdacntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/acntcd");
  1394. if (submit("TRRAD01517")){
  1395. messageBox("해당 계정과목은 관리번호가 필수 선택항목입니다.", "E999", "");
  1396. return;
  1397. }
  1398. }
  1399. */
  1400. /* 20110523_프로젝트 사용안함 - 주석처리 서원식
  1401. var schk = "";
  1402. for (var i = 1; i < grd_grntpsn1.rows; i++){
  1403. tcnt = parseInt(tcnt) + 1;
  1404. if (grd_grntpsn1.rowStatus(i) == 4 || grd_grntpsn1.rowStatus(i) == 5 || grd_grntpsn1.rowStatus(i) == 6){
  1405. dcnt = parseInt(dcnt) + 1;
  1406. }
  1407. var acntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/acntcd");
  1408. if (acntcd == "12280100" || acntcd == "12280101" || acntcd == "12280102" || acntcd == "12280103" || acntcd == "12280109" || acntcd == "12280200" || acntcd == "12280300" || acntcd == "71249900"){
  1409. schk = "Y";
  1410. }
  1411. if (acntcd >= "71240200" && acntcd <= "71240900"){
  1412. schk = "Y";
  1413. }
  1414. if (acntcd >= "71241000" && acntcd <= "71242100"){
  1415. schk = "Y";
  1416. }
  1417. }
  1418. if (schk == "Y"){
  1419. if (model.getValue("/root/main/grnt/grntlist1/gwanno") == ""){
  1420. messageBox("해당 계정과목은 프로젝트ID가 필수 선택항목입니다.", "E999", "");
  1421. return;
  1422. }
  1423. }
  1424. */
  1425. var tcnt = 0;
  1426. var dcnt = 0;
  1427. var iudgb = "";
  1428. for (var i = 1; i < grd_grntpsn1.rows; i++){
  1429. tcnt = parseInt(tcnt) + 1;
  1430. if (grd_grntpsn1.rowStatus(i) == 4 || grd_grntpsn1.rowStatus(i) == 5 || grd_grntpsn1.rowStatus(i) == 6){
  1431. dcnt = parseInt(dcnt) + 1;
  1432. }
  1433. }
  1434. if (tcnt == dcnt){
  1435. model.setValue("/root/main/grnt/grntlist1/iudgb", "D");
  1436. model.refresh();
  1437. }
  1438. iudgb = model.getValue("/root/main/grnt/grntlist1/iudgb");
  1439. if (iudgb != "D"){
  1440. for (var i = 1; i < grd_grntpsn1.rows; i++){
  1441. if (grd_grntpsn1.rowStatus(i) != 0){
  1442. amt = parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt"));
  1443. if (isNaN(amt) || amt == ""){
  1444. messageBox("품의금액은 필수 입력항목입니다.", "E999", "");
  1445. return;
  1446. }
  1447. if (model.getValue("/root/main/grnt/grntlist2[" + i + "]/custcode") == ""){
  1448. messageBox("거래처는 필수 입력항목입니다.", "E999", "");
  1449. return;
  1450. }
  1451. if (model.getValue("/root/main/grnt/grntlist2[" + i + "]/cdacntcd") == ""){
  1452. messageBox("품의계정은 필수 선택항목입니다.", "E999", "");
  1453. return;
  1454. }
  1455. if (model.getValue("/root/main/grnt/grntlist2[" + i + "]/acntcd") == ""){
  1456. messageBox("경리계정은 필수 선택항목입니다.", "E999", "");
  1457. return;
  1458. }
  1459. if (grd_grntpsn1.labelMatrix(grd_grntpsn1.row, grd_grntpsn1.colRef("cdacntcd")) != ""){
  1460. if (parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt")) > parseFloat(model.getValue("/root/main/grnt/grntlist2[" + i + "]/bugtjanamt"))){
  1461. messageBox("품의가능금액보다 품의금액이 큽니다.", "E999", "");
  1462. return;
  1463. }
  1464. }
  1465. var acntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/cdacntcd");
  1466. for (var j = 1; j < grd_grntpsn1.rows; j++){
  1467. var acntcd1 = model.getValue("/root/main/grnt/grntlist2[" + j + "]/cdacntcd");
  1468. if (i != j){
  1469. if (acntcd == acntcd1){
  1470. messageBox(j + "번째에서 중복된 품의계정이 존재합니다.", "E999", "");
  1471. return;
  1472. }
  1473. }
  1474. }
  1475. }
  1476. }
  1477. }
  1478. model.copyNode("/root/send/save/grntlist1", "/root/main/grnt/grntlist1");
  1479. model.makeValue("/root/send/save/grntlist1/chulseq", model.getValue("/root/send/paydedu/chulseq"));
  1480. //model.copyNode("/root/send/save/grntlist2", "/root/main/grnt/grntlist2");
  1481. if (misfSave("TXRAD01501")){
  1482. if (iudgb == "D"){
  1483. button35.dispatch("DOMActivate");
  1484. }else{
  1485. if (model.getValue("/root/hidden/item/pumno") != ""){
  1486. model.setValue("/root/send/paydedu/pumno", model.getValue("/root/hidden/item/pumno"));
  1487. for (var i = 1; i < grd_grntpsn1.rows; i++){
  1488. model.setValue("/root/main/grnt/grntlist2["+ i + "]/pumno", model.getValue("/root/hidden/item/pumno"));
  1489. }
  1490. model.setValue("/root/main/grnt/grntlist1/pumno", model.getValue("/root/hidden/item/pumno"));
  1491. }
  1492. //model.setValue("/root/pop1data/pumno", model.getValue("/root/hidden/item/pumno"));
  1493. //model.setValue("/root/main/grnt/grntlist1/pumno", model.getValue("/root/hidden/item/pumno"));
  1494. model.refresh();
  1495. if(model.getValue("/root/main/grnt/grntlist1/taxlist") != "0"){
  1496. Popup2();
  1497. }
  1498. if (model.getValue("/root/send/paydedu/stat") != "U"){
  1499. //for(var i = 1; i < grd_grntpsn1.rows; i++){
  1500. Popup1();
  1501. //}
  1502. }
  1503. btn_search.dispatch("DOMActivate");
  1504. button3.dispatch("DOMActivate");
  1505. }
  1506. }
  1507. ]]>
  1508. </script>
  1509. </button>
  1510. <button id="button35" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
  1511. <caption>초기화</caption>
  1512. <script type="javascript" ev:event="DOMActivate">
  1513. <![CDATA[
  1514. model.resetInstanceNode("/root/main/grnt/grntlist1");
  1515. //model.resetInstanceNode("/root/taxinfo/taxlist");
  1516. group3.disabled = false;
  1517. grd_grntpsn1.disabled = false;
  1518. ipt_unsldd.disabled = false;
  1519. ipt_costcntrdeptcd.disabled = false;
  1520. combo1.disabled = false;
  1521. input4.disabled = false;
  1522. input14.disabled = true;
  1523. input15.disabled = true;
  1524. input10.disabled = true;
  1525. // 2011.06.29 cyw
  1526. btn_grddelpaydedulist.disabled = false;
  1527. btn_grdaddpaydedulist.disabled = false;
  1528. model.setValue("/root/send/paydedu/pumno1", "");
  1529. model.setValue("/root/send/paydedu/pumno2", "");
  1530. // 저장 후 출장SEQ 없애기 2011.09.05 cyw
  1531. model.setValue("/root/pop1data/chulseq", "");
  1532. model.setValue("/root/send/paydedu/chulseq", "");
  1533. initialize();
  1534. ]]>
  1535. </script>
  1536. </button>
  1537. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  1538. <button id="button2" class="btn2_letter6" style="left:920px; top:5px; width:86px; height:19px; ">
  1539. <caption>품의내역조회</caption>
  1540. <script type="javascript" ev:event="DOMActivate">
  1541. <![CDATA[
  1542. var ymd = model.getValue("/root/main/grnt/grntlist1/junpyodate");
  1543. var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
  1544. var ydeptcd = model.getValue("/root/main/grnt/grntlist1/yogudeptcd");
  1545. if (ymd == "" || mdeptcd == "" || ydeptcd == ""){
  1546. messageBox("발생일자, 작성부서, 예산관련부서를 선택한 후 처리하시기 바랍니다.", "E999", "");
  1547. return;
  1548. }
  1549. Popup();
  1550. // 저장 후 출장SEQ 없애기 2011.09.05 cyw
  1551. // model.setValue("/root/pop1data/chulseq", "");
  1552. ]]>
  1553. </script>
  1554. </button>
  1555. <button id="button3" class="btn2_letter3" style="left:1010px; top:5px; width:53px; height:19px; ">
  1556. <caption>출력</caption>
  1557. <script type="javascript" ev:event="DOMActivate">
  1558. <![CDATA[
  1559. if( model.getValue("/root/main/grnt/grntlist1/inptgwno") != "" && model.getValue("/root/main/grnt/grntlist1/inptgwno").substring(0,5) == "C2011" ){
  1560. model.setValue("/root/send/reqdata/useyn", "Y");
  1561. model.setValue("/root/send/reqdata/grupcdid", "B");
  1562. model.setValue("/root/send/reqdata/srcd", model.getValue("/root/main/grnt/grntlist1/inptgwno"));
  1563. if (submit("TRRAH02101")){
  1564. var Cnt = getNodesetCount("/root/main/grnt/grntlist3");
  1565. for(var i = 1; i <= Cnt ; i++){
  1566. model.setValue("/root/main/grnt/grntlist3["+ i +"]/gwanno", "(" + model.getValue("/root/main/codeinfo/codelist/cdid") + ")" + model.getValue("/root/main/codeinfo/codelist/detldesc") );
  1567. }
  1568. }
  1569. }
  1570. var acntnm = model.getValue("/root/main/grnt/grntlist3["+ 1 +"]/acntnm").substr(1,8);
  1571. if(acntnm == '21150900'){
  1572. model.setValue("/root/main/grnt/grntlist3["+ 1 +"]/acntnm", model.getValue("/root/main/grnt/grntlist3["+ 2 +"]/acntnm"));
  1573. }
  1574. if( messageBox("출력하시겠습니까" , "Q99" ) == 6 ){
  1575. // exeReportPreview("RPRAD01501", "XMLSTR");
  1576. exeReportPreview("RPRAD01501", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true","","","","","","","","false");
  1577. }
  1578. ]]>
  1579. </script>
  1580. </button>
  1581. <button id="button4" class="btn2_letter6" visibility="hidden" style="left:810px; top:5px; width:86px; height:19px; ">
  1582. <caption>품의상세</caption>
  1583. <script type="javascript" ev:event="DOMActivate">
  1584. <![CDATA[
  1585. for (var i = 1; i < grd_grntpsn1.rows; i++){
  1586. var pumgubun = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumgubun");
  1587. var pumno = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumno");
  1588. var cdacntcd = model.getValue("/root/main/grnt/grntlist2[" + i + "]/cdacntcd");
  1589. var pumamt = model.getValue("/root/main/grnt/grntlist2[" + i + "]/pumamt");
  1590. model.setValue("/root/send/paydedu/acntcd", cdacntcd);
  1591. if (submit("TRRAD01508")){
  1592. if (instance1.selectSingleNode("/root/wongainfo/wongalist/acntcd") == null){
  1593. }else{
  1594. model.setValue("/root/pop1data/pumno", pumno);
  1595. model.setValue("/root/pop1data/cdacntcd", cdacntcd);
  1596. model.setValue("/root/pop1data/pumgubun", pumgubun);
  1597. model.setValue("/root/pop1data/pumamt", pumamt);
  1598. model.setValue("/root/pop1data/irow", i);
  1599. //modal("SPRAD00500", "", "", "", "SPRAD00500","/root/pop1data","/root/pop1data");
  1600. window.load("SPRAD00500.xrw", "modal","", "caption:hidden", "/root/pop1data","/root/pop1data");
  1601. }
  1602. }
  1603. }
  1604. ]]>
  1605. </script>
  1606. </button>
  1607. <button id="button5" class="btn2_letter6" visibility="hidden" style="left:725px; top:5px; width:86px; height:19px; ">
  1608. <caption>품의상세</caption>
  1609. <script type="javascript" ev:event="DOMActivate">
  1610. <![CDATA[
  1611. model.copyNode("/root/send/save/grntlist1", "/root/main/grnt/grntlist1");
  1612. if (misfSave("TXRAD01501")){
  1613. }
  1614. ]]>
  1615. </script>
  1616. </button>
  1617. </group>
  1618. </xhtml:body>
  1619. </xhtml:html>