SMRSD04700_비품청구 등록.xrw 96 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>비품청구 등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <goodreq>
  12. <goodreqlist/>
  13. <goodmaxreqno/>
  14. </goodreq>
  15. <goodreqno>
  16. <goodmaxreqno/>
  17. </goodreqno>
  18. <lrg>
  19. <lrglist/>
  20. </lrg>
  21. <mdl>
  22. <mdllist/>
  23. </mdl>
  24. <sml>
  25. <smllist/>
  26. </sml>
  27. <fixasetcd>
  28. <fixasetcdlist/>
  29. </fixasetcd>
  30. </list>
  31. <goodreq>
  32. <goodreqlist>
  33. <reqdd/>
  34. <reqno/>
  35. <reqpsnnm/>
  36. <reqdeptnm/>
  37. <bugtexpcamt/>
  38. <reqflagnm/>
  39. <reqflag/>
  40. <reqseqno/>
  41. <workflag/>
  42. <goodnm/>
  43. <goodspec/>
  44. <goodmodel/>
  45. <prodcmpycd/>
  46. <prodcmpynm/>
  47. <bugtcd/>
  48. <bugtnm/>
  49. <bugtyy/>
  50. <stdysubjno/>
  51. <reqdeptcd/>
  52. <installplcecd/>
  53. <reqpsnid/>
  54. <reqtm/>
  55. <delivedeptcd/>
  56. <delivehopedd/>
  57. <reqqty/>
  58. <requnit/>
  59. <attfilenm/>
  60. <attfilepathnm/>
  61. <makeyn/>
  62. <deptaprvyn/>
  63. <deptaprvdd/>
  64. <acptflag/>
  65. <acptdd/>
  66. <adjtqty/>
  67. <adjtrsn/>
  68. <acptcharid/>
  69. <plceorddd/>
  70. <plceordseqno/>
  71. <deliveqty/>
  72. <unwinresn/>
  73. <deliveprcsflag/>
  74. <cmt/>
  75. <instcd/>
  76. <installplcenm/>
  77. <totamt/>
  78. <useamt/>
  79. <remamt/>
  80. <lrgcd/>
  81. <lrgnm/>
  82. <mdlcd/>
  83. <mdlnm/>
  84. <smlcd/>
  85. <smlnm/>
  86. <fixasetcd/>
  87. <bugtflag/>
  88. <stdysubjnm/>
  89. <suplplcecd/>
  90. <suplplcenm/>
  91. <wncurncyamt/>
  92. <plceordamt/>
  93. <cntrdeptcd/>
  94. <cntrdeptcdnm/>
  95. <mngtdeptcd/>
  96. <mngtdeptcdnm/>
  97. <reqtel/>
  98. </goodreqlist>
  99. </goodreq>
  100. <printdata>
  101. <data/>
  102. </printdata>
  103. <apln>
  104. <approval11/>
  105. <approval12/>
  106. <approval13/>
  107. <approval14/>
  108. <approval15/>
  109. <approval16/>
  110. <approval21/>
  111. <approval22/>
  112. <approval23/>
  113. <approval24/>
  114. <approval25/>
  115. <approval26/>
  116. <arbitrary1/>
  117. <arbitrary2/>
  118. <arbitrary3/>
  119. <arbitrary4/>
  120. <arbitrary5/>
  121. <arbitrary6/>
  122. <iudflag/>
  123. <instcd/>
  124. <deptcd/>
  125. <expansion/>
  126. </apln>
  127. </main>
  128. <send>
  129. <save>
  130. <goodreqlist/>
  131. </save>
  132. <goodreq>
  133. <instcd/>
  134. <reqdeptcd/>
  135. <reqdeptnm/>
  136. <reqflag/>
  137. <reqfrdd/>
  138. <deliveprcsflag/>
  139. <retrmaxreqnoyn/>
  140. <reqpsnid/>
  141. <reqpsnnm/>
  142. <instcdnm/>
  143. <reqtodd/>
  144. <reqdd/>
  145. <acptflag/>
  146. </goodreq>
  147. <lrgcd>
  148. <lrgcd/>
  149. <mdlcd/>
  150. <instcd/>
  151. <goodflag/>
  152. </lrgcd>
  153. <fixasetcd>
  154. <instcd/>
  155. <goodflag/>
  156. <cntrdeptcd/>
  157. </fixasetcd>
  158. <fileupcolumn>
  159. <instcd/>
  160. <reqdd/>
  161. <fileseqno/>
  162. <reqflag/>
  163. <reqno/>
  164. <reqseqno/>
  165. <reqpsnid/>
  166. <attfilenm/>
  167. <attfilepathnm/>
  168. <reqdeptcd/>
  169. <fileupload>
  170. <file>
  171. <filename/>
  172. </file>
  173. </fileupload>
  174. </fileupcolumn>
  175. <init>
  176. <instcd/>
  177. <reqflag/>
  178. <emplno/>
  179. <reqaprvflag/>
  180. </init>
  181. <retrparam>
  182. <instcd/>
  183. <frdate/>
  184. <todate/>
  185. <prntkind>RPRAD01301</prntkind>
  186. <searchflag/>
  187. <aactcd/>
  188. <aactno/>
  189. <aactnm/>
  190. <temp/>
  191. <slipkind/>
  192. <slipdeptcd/>
  193. <refundflag/>
  194. <aplnflag>1</aplnflag>
  195. <sanctnofrom/>
  196. <sanctnoto/>
  197. <paymethod/>
  198. <workflag>drawseqno</workflag>
  199. </retrparam>
  200. <reqpsn>
  201. <instcd/>
  202. <emplno/>
  203. <reqflag/>
  204. </reqpsn>
  205. </send>
  206. <temp>
  207. <selectrow/>
  208. <authinfo/>
  209. </temp>
  210. <hidden>
  211. <rptparams>
  212. <frdate/>
  213. <todate/>
  214. <approval21/>
  215. <approval22/>
  216. <approval23/>
  217. <approval24/>
  218. <approval25/>
  219. <approval26/>
  220. <arbitrary1/>
  221. <arbitrary2/>
  222. <arbitrary3/>
  223. <arbitrary4/>
  224. <arbitrary5/>
  225. <arbitrary6/>
  226. <expansion/>
  227. <usernm/>
  228. <sanctnofrom/>
  229. <sanctnoto/>
  230. <approval11/>
  231. <approval12/>
  232. <approval13/>
  233. <approval14/>
  234. <approval15/>
  235. <approval16/>
  236. <approval17/>
  237. </rptparams>
  238. <reqpsnlist/>
  239. </hidden>
  240. </root>
  241. </instance>
  242. <bind id="plceordamt" ref="/root/main/goodreq/goodreqlist/plceordamt" calculate="../wncurncyamt *../reqqty"/>
  243. <script type="javascript" ev:event="xforms-ready">
  244. <![CDATA[
  245. //화면 Control을 초기화한다
  246. fCheckAuth();
  247. fAllControlDisabled("Y")
  248. fInitialize();
  249. ]]>
  250. </script>
  251. <submission id="TRRSD11101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
  252. <submission id="TRRSD11102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/goodreq/goodreqlist" resultref="/root/main/list/goodreqno"/>
  253. <submission id="TXRSD11101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  254. <submission id="TRRSD11104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/lrg"/>
  255. <submission id="TRRSD11105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/mdl"/>
  256. <submission id="TRRSD11106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lrgcd" resultref="/root/main/list/sml"/>
  257. <submission id="TRRFC00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fixasetcd" resultref="/root/main/list/fixasetcd"/>
  258. <submission id="TXRSD00421" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/fileupcolumn" resultref="/root/temp"/>
  259. <submission id="TXRSD00422" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/fileupcolumn" resultref="/root/temp"/>
  260. <submission id="TRRSC06001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/init" resultref="/root/hidden/reqpsnlist"/>
  261. <submission id="TRRAD00151" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparam" resultref="/root/main/apln"/>
  262. <submission id="TRRSC08100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/RscsysinftLists"/>
  263. <submission id="TRRSD04701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqpsn" resultref="/root/temp/authinfo"/>
  264. </model>
  265. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  266. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  267. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  268. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  269. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  270. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  271. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  272. <script type="javascript">
  273. <![CDATA[
  274. function fInitialize()
  275. {
  276. model.resetInstanceNode("/root/send");
  277. misfComboComCdListMulti("R0246","cmb_workflag");
  278. rszfComboUnitList (cmb_requnit, getUserInfo("dutplceinstcd"), "G");
  279. rszfComboBugtList(cmb_bugtcd,getUserInfo("dutplceinstcd"));
  280. rszfReqFlagComboComCdList(getUserInfo("userid"),cmb_reqflag_search);
  281. //rszfComboAppendBlankChild("cmb_deliveprceflag");
  282. misfGridInit(grd_goodreq);
  283. misfGridInit(grd_lrglist);
  284. misfGridInit(grd_mdllist);
  285. misfGridInit(grd_smllist);
  286. misfGridInit(grd_fixasetcdlist);
  287. misfMsterDetailSet(grd_goodreq,null, "TRRSD11101" ,"Y");
  288. //청구날짜 설정
  289. var curdate = getCurrentDate();
  290. var cvtdate = curdate.toDate("YYYYMMDD");
  291. //이번달 1일 과 마지막일을 셋팅하는 부분
  292. model.setValue(ipt_reqdd_search.attribute("ref") , curdate.substr(0,6)+"01" );
  293. model.setValue(ipt_reqtodd_search.attribute("ref") , curdate.substr(0,6)+cvtdate.getMonthDay() );
  294. model.setValue(opt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  295. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm"));
  296. // 사용자의 부서가 하나가 아니면 오류메세지를 호출하며. 부서가 하나이면 부서코드와 부서명을 설정해준다.
  297. model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
  298. model.setValue(ipt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
  299. model.setValue(ipt_reqpsnid_search.attribute("ref") , getUserInfo("userid"));
  300. model.setValue(opt_reqpsnnm.attribute("ref") , getUserInfo("usernm"));
  301. // hidden
  302. model.setValue(cmb_reqflag_search.attribute("ref") , "D");
  303. model.setValue(ipt_goodflag.attribute("ref") , "GE");
  304. // 맵을 다른화면에서도 사용하기 때문에 기본값이 되는 reqdd 값을 N 으로 설정함으로써
  305. // 이화면상의 조회를 가능하게 함.
  306. model.setValue("/root/send/goodreq/reqdd", "N");
  307. btn_search.dispatch("DOMActivate");
  308. // 권한설정.
  309. fSetReqAuth();
  310. //권한자 외의 일반 사용자들의 사용부서, 의뢰자 이름 바꾸지 못하게함.
  311. model.setValue("/root/send/init/instcd", model.getValue("/root/send/goodreq/instcd"));
  312. model.setValue("/root/send/init/emplno",getUserInfo("userid"));
  313. ipt_reqflag2.value="D";
  314. submit("TRRSC06001");
  315. // 구매팀, 구매Unit 의 모든 직원들에게 청구부서를 바꿀수 있는 권한을 줌. 하드코딩_팀 바꾸고 싶다면 부서코드를 바꿔줘야..
  316. if((grd_reqpsnlist.rows - grd_reqpsnlist.fixedRows)==0 && !fCheckPurcTeam() )
  317. {
  318. ipt_reqdeptcd_search.disabled = true;
  319. btn_reqdept.disabled = true;
  320. }
  321. // 구매팀, 구매Unit 직원들만 미접수라는 표시가 뜨며 조회조건과 관계없이 미접수된 청구내역을 볼수 있다.
  322. if(fCheckPurcTeam())
  323. chb_acptflag.visible = true;
  324. // 대분류 코드 리스트 초기화
  325. fInitCodeList();
  326. model.refresh();
  327. }
  328. function fCheckAuth() {
  329. //btn_search.disabled = !checkAuth("R") ;
  330. //btn_save.disabled = !checkAuth("X") ;
  331. }
  332. // 구매팀, 구매Unit 직원 체크(하드코딩)
  333. function fCheckPurcTeam(){
  334. if(getUserInfo("dutplcecd") == "4080100000" || getUserInfo("dutplcecd") == "4080102000" || getUserInfo("dutplcecd") == "4080300000") return true;
  335. else return false;
  336. }
  337. function fSetControlDisabled(pDisabled)
  338. {
  339. ipt_reqno.disabled = pDisabled;
  340. }
  341. function fSetReqAuth()
  342. {
  343. /* ---------------------------------------------------------------------------------------
  344. * [2007.12.12 HBH ] 청구주기 추가.
  345. * 수리,장비등 청구주기가 없는 것들은 '1'로셋팅
  346. ---------------------------------------------------------------------------------------*/
  347. rszfGetPurcReqAuthInfo(model.getValue(opt_instcd.attribute("ref")), "D" , model.getValue(ipt_reqdeptcd_search.attribute("ref")), getUserInfo("userid"),"1");
  348. model.refresh();
  349. }
  350. /*--------------------------------------------------------------------------------*/
  351. /* 화면 open시 disable ..행추가시 또는 조회후 값 존재시 enable */
  352. /*--------------------------------------------------------------------------------*/
  353. function fAllControlDisabled(pDisableYn)
  354. {
  355. if(pDisableYn == "Y")
  356. {
  357. ipt_goodnm.disabled ="true";
  358. ipt_goodspec.disabled ="true";
  359. ipt_goodmodel.disabled ="true";
  360. cmb_workflag.disabled ="true";
  361. rbo_makeyn.disabled ="true";
  362. cmb_requnit.disabled ="true";
  363. ipt_prodcmpycd.disabled ="true";
  364. ipt_reqqty.disabled ="true";
  365. ipt_installplcecd.disabled ="true";
  366. ipt_reqtel.disabled = "true";
  367. ipt_reqdd.disabled ="true";
  368. ipt_cntrdeptcd.disabled ="true";
  369. btn_cntrdeptcd.disabled ="true";
  370. ipt_cntrdeptcdnm.disabled ="true";
  371. ipt_mngtdeptcd.disabled ="true";
  372. btn_mngtdeptcd.disabled ="true";
  373. ipt_mngtdeptcdnm.disabled ="true";
  374. ipt_bugtyy.disabled ="true";
  375. ipt_bugtexpcamt.disabled ="true";
  376. // ipt_attfilename.disabled ="true";
  377. ipt_attfilenm.disabled ="true";
  378. /*-----------------------------------------------------------------*/
  379. /* 하단은 disable 해놓구 우측에서 선택하게한다. */
  380. /*-----------------------------------------------------------------*/
  381. // ipt_lrgcd.disabled ="true";
  382. opt_lrgnm.disabled ="true";
  383. // ipt_mdlcd.disabled ="true";
  384. opt_mdlnm.disabled ="true";
  385. // ipt_smlcd.disabled ="true";
  386. opt_smlnm.disabled ="true";
  387. ipt_fixasetcd.disabled ="true";
  388. btn_addfile.disabled="true";
  389. btn_downfile.disabled="true";
  390. txt_cmt.disabled="true";
  391. cmb_bugtcd.disabled="true";
  392. ipt_stdysubjno.disabled="true";
  393. ipt_stdysubjnm.disabled="true";
  394. // ipt_wncurncyamt.disabled="true";
  395. // ipt_plceordamt.disabled="true";
  396. // ipt_suplplcecd.disabled="true";
  397. // ipt_suplplcenm.disabled="true";
  398. // btn_suplplcecd.disabled="true";
  399. ipt_prodcmpynm.disabled="true";
  400. ipt_installplcenm.disabled="true";
  401. }
  402. else
  403. {
  404. ipt_goodnm.disabled ="false";
  405. ipt_goodspec.disabled ="false";
  406. ipt_goodmodel.disabled ="false";
  407. cmb_workflag.disabled ="false";
  408. rbo_makeyn.disabled ="false";
  409. cmb_requnit.disabled ="false";
  410. ipt_prodcmpycd.disabled ="false";
  411. ipt_reqqty.disabled ="false";
  412. ipt_installplcecd.disabled ="false";
  413. ipt_reqtel.disabled = "false";
  414. ipt_reqdd.disabled ="true";
  415. ipt_cntrdeptcd.disabled ="false";
  416. btn_cntrdeptcd.disabled ="false";
  417. ipt_cntrdeptcdnm.disabled ="false";
  418. ipt_mngtdeptcd.disabled ="false";
  419. btn_mngtdeptcd.disabled ="false";
  420. ipt_mngtdeptcdnm.disabled ="false";
  421. ipt_bugtyy.disabled ="true";
  422. ipt_bugtexpcamt.disabled ="false";
  423. // ipt_attfilename.disabled ="false";
  424. ipt_attfilenm.disabled ="true";
  425. btn_addfile.disabled="false";
  426. btn_downfile.disabled="false";
  427. txt_cmt.disabled="false";
  428. cmb_bugtcd.disabled="false";
  429. ipt_stdysubjno.disabled="false";
  430. ipt_stdysubjnm.disabled="false";
  431. // ipt_wncurncyamt.disabled="false";
  432. // ipt_plceordamt.disabled="false";
  433. // ipt_suplplcecd.disabled="false";
  434. // ipt_suplplcenm.disabled="false";
  435. // btn_suplplcecd.disabled="false";
  436. ipt_prodcmpynm.disabled="false";
  437. ipt_installplcenm.disabled="false";
  438. }
  439. model.refresh();
  440. }
  441. function fInitCodeList(){
  442. misfGridInit(grd_lrglist);
  443. //misfGridInit(grd_mdllist);
  444. //misfGridInit(grd_smllist);
  445. model.setValue("/root/send/lrgcd/goodflag" , model.getValue(ipt_goodflag.attribute("ref")));
  446. model.setValue("/root/send/lrgcd/instcd" , model.getValue(opt_instcd.attribute("ref")));
  447. submit("TRRSD11104");
  448. if(grd_lrglist.rows>1) {
  449. grd_lrglist.row=1;
  450. }
  451. grd_lrglist.dispatch("onrowchanged");
  452. }
  453. function fMovecd(pgrid_name)
  454. {
  455. if(model.GetValue(cmb_workflag.attribute("ref")).length == 0)
  456. {
  457. messageBox("행추가를 먼저하시거나 청구사유를 먼저 " ,"C002");
  458. //model.setFocus("cmb_instcd_search");
  459. return;
  460. }
  461. if(swh_select.selectedIndex == 0)
  462. {
  463. if (pgrid_name == "grd_smllist")
  464. {
  465. if (grd_smllist.row > 0)
  466. {
  467. //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
  468. /* 대분류 */
  469. model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
  470. model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
  471. /* 중분류*/
  472. model.setValue(ipt_mdlcd.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlcd")));
  473. model.setValue(opt_mdlnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")));
  474. /* 소분류 */
  475. model.setValue(ipt_smlcd.attribute("ref"), grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlcd")));
  476. model.setValue(opt_smlnm.attribute("ref"), grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlnm")));
  477. model.setValue(ipt_goodnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")) + ' / '+
  478. grd_smllist.valueMatrix(grd_smllist.row , grd_smllist.colRef("smlnm")));
  479. model.refresh();
  480. }
  481. }
  482. else if(pgrid_name == "grd_mdllist")
  483. {
  484. if (grd_mdllist.row > 0)
  485. {
  486. //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
  487. /* 대분류 */
  488. model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
  489. model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
  490. /* 중분류*/
  491. model.setValue(ipt_mdlcd.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlcd")));
  492. model.setValue(opt_mdlnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")));
  493. /* 소분류 */
  494. model.setValue(ipt_smlcd.attribute("ref"), "");
  495. model.setValue(opt_smlnm.attribute("ref"), "");
  496. model.setValue(ipt_goodnm.attribute("ref"), grd_mdllist.valueMatrix(grd_mdllist.row , grd_mdllist.colRef("mdlnm")) );
  497. model.refresh();
  498. }
  499. }
  500. else if(pgrid_name == "grd_lrglist")
  501. {
  502. // if (grd_mdllist.row > 0)
  503. {
  504. //model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/goodcd",grd_goodlist.valueMatrix(grd_goodlist.row , grd_goodlist.colRef("goodcd")));
  505. /* 대분류 */
  506. model.setValue(ipt_lrgcd.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgcd")));
  507. model.setValue(opt_lrgnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")));
  508. /* 중분류*/
  509. model.setValue(ipt_mdlcd.attribute("ref"), "");
  510. model.setValue(opt_mdlnm.attribute("ref"), "");
  511. /* 소분류 */
  512. model.setValue(ipt_smlcd.attribute("ref"), "");
  513. model.setValue(opt_smlnm.attribute("ref"), "");
  514. //model.setValue(ipt_goodnm.attribute("ref"), grd_lrglist.valueMatrix(grd_lrglist.row , grd_lrglist.colRef("lrgnm")) );
  515. model.refresh();
  516. }
  517. }
  518. }
  519. else
  520. {
  521. if (grd_fixasetcdlist.row > 0)
  522. {
  523. model.setValue(ipt_lrgcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("lrgcd")));
  524. model.setValue(opt_lrgnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("lrgnm")));
  525. model.setValue(ipt_mdlcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("mdlcd")));
  526. model.setValue(opt_mdlnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("mdlnm")));
  527. model.setValue(ipt_smlcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("smlcd")));
  528. model.setValue(opt_smlnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("smlnm")));
  529. model.setValue(ipt_fixasetcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("fixasetcd")));
  530. model.setValue(ipt_goodnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodflaghngnm")));
  531. model.setValue(ipt_goodspec.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodspec")));
  532. model.setValue(ipt_goodmodel.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodmodel")));
  533. model.refresh();
  534. }
  535. }
  536. }
  537. function fAfterRetr()
  538. {
  539. if ( grd_goodreq.rows - grd_goodreq.fixedRows > 0) {
  540. model.resetInstanceNode("/root/main/goodreq");
  541. /* 조회건수가 있으면 행추가시까지 enable = TRUE HBH */
  542. fAllControlDisabled("N");
  543. grd_goodreq.dispatch("onrowchanged");
  544. }
  545. else
  546. {
  547. model.resetInstanceNode("/root/main/goodreq");
  548. if(model.getValue("/root/main/list/goodreq/goodmaxreqno/reqfix") == "Y")
  549. {
  550. fSetControlDisabled("true");
  551. }
  552. else
  553. {
  554. fSetControlDisabled("false");
  555. }
  556. model.setValue(ipt_reqno.attribute("ref"),model.getValue("/root/main/list/goodreq/goodmaxreqno/reqno"));
  557. model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(opt_instcd.attribute("ref")));
  558. /* 조회건수가 없으면 행추가시까지 enable = false HBH */
  559. fAllControlDisabled("Y");
  560. }
  561. /* 청구상태가 아니면 막는다*/
  562. for(var fRow = grd_goodreq.fixedRows; fRow < grd_goodreq.rows; fRow++)
  563. {
  564. if(grd_goodreq.valueMatrix(fRow, grd_goodreq.colRef("acptflag")) == "N" || grd_goodreq.valueMatrix(fRow, grd_goodreq.colRef("acptflag")).length == 0)
  565. {
  566. grd_goodreq.isReadOnly(fRow,grd_goodreq.colRef("deptaprvyn")) = false;
  567. }
  568. else
  569. {
  570. grd_goodreq.isReadOnly(fRow,grd_goodreq.colRef("deptaprvyn")) = true;
  571. }
  572. }
  573. model.refresh();
  574. }
  575. function fSaveDataSetting()
  576. {
  577. model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(opt_instcd.attribute("ref")));
  578. }
  579. function fSetReqNo(pReqControl,pAdd)
  580. {
  581. if(pAdd == "Y")
  582. {
  583. var reqno = model.getValue(ipt_reqno.attribute("ref"));
  584. reqno = parseInt(reqno) + 1;
  585. reqno = "" + reqno;
  586. reqno = reqno.getLeftPad(4,"0");
  587. }
  588. else
  589. {
  590. var reqno = model.getValue(ipt_reqno.attribute("ref"));
  591. reqno = parseInt(reqno) - 1;
  592. if(reqno == 0)reqno = 1;
  593. reqno = "" + reqno;
  594. reqno = reqno.getLeftPad(4,"0");
  595. }
  596. model.setValue(pReqControl.attribute("ref"), reqno);
  597. model.refresh();
  598. }
  599. function fRetrByReqNo()
  600. {
  601. model.removenode("/root/main/tmplist");
  602. model.makeNode("/root/main/tmplist/goodreq/goodreqlist");
  603. model.makeNode("/root/main/tmplist/goodreq/goodmaxreqno");
  604. model.copyNode("/root/main/tmplist", "/root/main/list");
  605. model.setValue("/root/send/goodreq/retrmaxreqnoyn","N");
  606. misfMsterDetailRetrieve();
  607. var rtncount = grd_goodreq.rows - grd_goodreq.fixedRows;
  608. if(rtncount == 0)
  609. {
  610. model.copyNode("/root/main/list","/root/main/tmplist");
  611. }
  612. return rtncount;
  613. }
  614. function fDefaultSetting()
  615. {
  616. model.copyNode("/root/main/goodreq/goodreqlist" ,grd_goodreq.nodeset + "["+ grd_goodreq.row + "]");
  617. model.setValue(ipt_reqdeptcd.attribute("ref") , model.getValue(ipt_reqdeptcd_search.attribute("ref"))); //청구부서
  618. model.setValue(ipt_reqflag.attribute("ref") , model.getValue(cmb_reqflag_search.attribute("ref"))); //청구구분
  619. model.setValue(opt_reqdeptnm.attribute("ref") , model.getValue(ipt_reqdeptnm_search.attribute("ref"))); //청구부서명
  620. model.setValue(ipt_reqdd.attribute("ref") , getCurrentDate()); //청구일자
  621. model.setValue(ipt_reqpsnid.attribute("ref") , model.getValue(ipt_reqpsnid_search.attribute("ref"))); //청구자ID
  622. model.setValue(rbo_makeyn.attribute("ref") , "N"); //제작여부
  623. model.setValue(ipt_deliveprcsflag.attribute("ref") , "1"); //진행상태
  624. model.setValue(cmb_requnit.attribute("ref") , "EA"); //'EACH'로 기본셋팅
  625. model.setValue("/root/main/goodreq/goodreqlist/instcd" , model.getValue(opt_instcd.attribute("ref")));
  626. model.setValue("/root/main/goodreq/goodreqlist/acptflag" , "N");
  627. // 귀속부서,관리부서 셋팅
  628. model.setValue(ipt_mngtdeptcd.attribute("ref"), ipt_reqdeptcd_search.value); //청구부서
  629. model.setValue(ipt_mngtdeptcdnm.attribute("ref"), ipt_reqdeptnm_search.value); //청구부서명
  630. model.setValue(ipt_cntrdeptcd.attribute("ref"), ipt_reqdeptcd_search.value); //사용부서
  631. model.setValue(ipt_cntrdeptcdnm.attribute("ref"), ipt_reqdeptnm_search.value); //사용부서명
  632. submit("TRRSD11102");
  633. if(model.getValue("/root/main/list/goodreq/goodmaxreqno/reqfix") == "Y")
  634. {
  635. fSetControlDisabled("true");
  636. }
  637. else
  638. {
  639. fSetControlDisabled("false");
  640. }
  641. model.setValue(ipt_reqno.attribute("ref"),model.getValue("/root/main/list/goodreqno/goodmaxreqno/reqno"));
  642. model.refresh();
  643. }
  644. function fCheckRetrieveData(pmsg)
  645. {
  646. if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
  647. {
  648. if(pmsg == true)
  649. {
  650. messageBox("기관코드를 " ,"C002");
  651. model.setFocus("opt_instcd");
  652. }
  653. return false;
  654. }
  655. if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
  656. {
  657. if(pmsg == true)
  658. {
  659. messageBox("청구부서를 " ,"C002");
  660. model.setFocus("ipt_reqdeptcd_search");
  661. }
  662. return false;
  663. }
  664. if(model.getValue(cmb_reqflag_search.attribute("ref")).length== 0 )
  665. {
  666. if(pmsg == true)
  667. {
  668. messageBox("청구구분을 " ,"C001");
  669. model.setFocus("cmb_reqflag_search");
  670. }
  671. return false;
  672. }
  673. if(model.getValue(ipt_reqdd_search.attribute("ref")).length== 0 )
  674. {
  675. if(pmsg == true)
  676. {
  677. messageBox("청구일자를 " ,"C001");
  678. model.setFocus("ipt_reqdd_search");
  679. }
  680. return false;
  681. }
  682. if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
  683. {
  684. if(pmsg == true)
  685. {
  686. messageBox("청구일자를 " ,"C001");
  687. model.setFocus("ipt_reqtodd_search");
  688. }
  689. return false;
  690. }
  691. return true;
  692. }
  693. function fCheckSaveData()
  694. {
  695. if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
  696. {
  697. messageBox("기관코드를 " ,"C002");
  698. model.setFocus("opt_instcd");
  699. return false;
  700. }
  701. if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
  702. {
  703. messageBox("청구부서를 " ,"C002");
  704. model.setFocus("ipt_reqdeptcd_search");
  705. return false;
  706. }
  707. if(model.getValue(cmb_reqflag_search.attribute("ref")).length== 0 )
  708. {
  709. messageBox("청구구분을 " ,"C001");
  710. model.setFocus("cmb_reqflag_search");
  711. return false;
  712. }
  713. if(model.getValue(ipt_reqdd_search.attribute("ref")).length== 0 )
  714. {
  715. messageBox("청구일자를 " ,"C001");
  716. model.setFocus("ipt_reqdd_search");
  717. return false;
  718. }
  719. if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
  720. {
  721. messageBox("청구일자를 " ,"C001");
  722. model.setFocus("ipt_reqtodd_search");
  723. return false;
  724. }
  725. if(model.getValue(ipt_reqno.attribute("ref")).length== 0 )
  726. {
  727. messageBox("청구번호를 " ,"C001");
  728. model.setFocus("ipt_reqno");
  729. return false;
  730. }
  731. if(model.getValue(ipt_goodnm.attribute("ref")).length== 0 )
  732. {
  733. messageBox("물품명을 " ,"C001");
  734. model.setFocus("ipt_goodnm");
  735. return false;
  736. }
  737. if(model.getValue(ipt_reqqty.attribute("ref")).length== 0 )
  738. {
  739. messageBox("청구수량을 " ,"C001");
  740. model.setFocus("ipt_reqqty");
  741. return false;
  742. }
  743. if(model.getValue(cmb_requnit.attribute("ref")).length== 0 )
  744. {
  745. messageBox("청구단위를 " ,"C001");
  746. model.setFocus("cmb_requnit");
  747. return false;
  748. }
  749. if(model.getValue(cmb_workflag.attribute("ref")).length== 0 )
  750. {
  751. messageBox("청구사유를 " ,"C001");
  752. model.setFocus("cmb_workflag");
  753. return false;
  754. }
  755. if(model.getValue(ipt_lrgcd.attribute("ref")).length== 0 )
  756. {
  757. messageBox("대분류코드를 " ,"C001");
  758. model.setFocus("ipt_lrgcd");
  759. return false;
  760. }
  761. if(model.getValue(txt_cmt.attribute("ref")).length== 0 )
  762. {
  763. messageBox("상세청구사유를 " ,"C001");
  764. model.setFocus("ipt_mdlcd");
  765. return false;
  766. }
  767. return true;
  768. }
  769. function fAttfileAdd(){
  770. //파일 다운로드 하는 기능
  771. var maxsize = upd_uploadfile.attribute("filesize");
  772. model.setValue("/root/send/fileupcolumn/instcd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("instcd") ) );
  773. model.setValue("/root/send/fileupcolumn/reqdd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqdd") ) );
  774. // model.setValue("/root/send/fileupcolumn/fileseqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("fileseqno") ) ); //seqNumber
  775. model.setValue("/root/send/fileupcolumn/reqflag" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqflag") ) );
  776. model.setValue("/root/send/fileupcolumn/reqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqno") ) );
  777. model.setValue("/root/send/fileupcolumn/reqseqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqseqno") ) );
  778. model.setValue("/root/send/fileupcolumn/reqpsnid" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqpsnid") ) );
  779. model.setValue("/root/send/fileupcolumn/reqdeptcd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqdeptcd") ) );
  780. model.setValue("/root/send/fileupcolumn/attfilenm" , model.getValue("/root/main/goodreq/goodreqlist/attfilenm") );
  781. model.setValue("/root/send/fileupcolumn/attfilepathnm" , model.getValue("/root/send/fileupcolumn/fileupload/file") );
  782. submit("TXRSD00421");
  783. if (model.getValue(gvErrorMsgPath + "/type") != "error" ){
  784. messageBox("첨부파일이 업로드" , "I002");
  785. btn_search.dispatch("DOMActivate");
  786. }
  787. //파일 업로드 후 첨부파일 팝업창을 띄워서 해당 파일이 잘 올라갔는지 확인할수 있도록 해준다.?????
  788. }
  789. function fAttfileDown(){ //첨부파일 다운로드
  790. model.setValue("/root/send/fileupcolumn/instcd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("instcd") ) );
  791. model.setValue("/root/send/fileupcolumn/reqdd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqdd") ) );
  792. // model.setValue("/root/send/fileupcolumn/fileseqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("fileseqno") ) ); //seqNumber
  793. model.setValue("/root/send/fileupcolumn/fileseqno" , model.getValue("/root/main/goodreq/goodreqlist/attfilepathnm") ); //seqNumber
  794. model.setValue("/root/send/fileupcolumn/reqflag" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqflag") ) );
  795. model.setValue("/root/send/fileupcolumn/reqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqno") ) );
  796. model.setValue("/root/send/fileupcolumn/reqseqno" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqseqno") ) );
  797. model.setValue("/root/send/fileupcolumn/reqpsnid" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqpsnid") ) );
  798. model.setValue("/root/send/fileupcolumn/reqdeptcd" , grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("reqdeptcd") ) );
  799. model.setValue("/root/send/fileupcolumn/attfilenm" , model.getValue("/root/main/goodreq/goodreqlist/attfilepathnm") );
  800. model.setValue("/root/send/fileupcolumn/attfilepathnm" , model.getValue("/root/send/fileupcolumn/fileupload/file") );
  801. //첨부파일관련 팝업을 띄워서 첨부파일을 조회도 하고 다운로드 삭제까지 할수 있도록 구현.
  802. rszfOpenPopUpListByWndName(grd_goodreq,"","","SMRSD00420","instcd,reqdd,reqflag,reqno,reqseqno,reqpsnid,reqdeptcd,attfilepathnm","instcd,reqdd,reqflag,reqno,reqseqno,reqpsnid,reqdeptcd,attfilepathnm", "Y");
  803. //submit("TRRSD00421");
  804. btn_search.dispatch("DOMActivate");
  805. }
  806. function fRetrieve()
  807. {
  808. //이현민
  809. model.setValue("/root/send/retrparam/instcd", getUserInfo("dutplceinstcd"));
  810. //model.setValue("/root/send/retrparam/slipdeptcd", getUserInfo("dutplcecd"));
  811. //비품청구서 출력시 결재라인은 로그인 부서의 결재라인을 가져오는게 아니라 각 기관의 기관별구매시스템기본정보(RSCSYSINFT)에 등록되어 있는
  812. //구매팀 부서에 해당하는 결재라인으로 가져오도록 한다. 그래서 아래에서 submit하기전에 매핑해준다.
  813. //-----------------------------------------------------------------------------------------------------------------------
  814. submit("TRRSC08100"); //각 기관의 기관별구매시스템기본정보(RSCSYSINFT)에 등록되어 있는 구매팀 부서 찾기
  815. var ApprovalLine_Deptcd = model.getValue("/root/main/RscsysinftLists/rscsysinftlist/purcdept")
  816. model.setValue("/root/send/retrparam/slipdeptcd", ApprovalLine_Deptcd);
  817. //-----------------------------------------------------------------------------------------------------------------------
  818. submit("TRRAD00151");
  819. var expansion = radfCheckInstMngt(getUserInfo("dutplceinstcd"), 'condition3');
  820. model.setValue("/root/hidden/rptparams/frdate", model.getValue("/root/send/retrparam/frdate"));
  821. model.setValue("/root/hidden/rptparams/todate", model.getValue("/root/send/retrparam/todate"));
  822. model.setValue("/root/hidden/rptparams/approval21", model.getValue("/root/main/apln/approval21"));
  823. model.setValue("/root/hidden/rptparams/approval22", model.getValue("/root/main/apln/approval22"));
  824. model.setValue("/root/hidden/rptparams/approval23", model.getValue("/root/main/apln/approval23"));
  825. model.setValue("/root/hidden/rptparams/approval24", model.getValue("/root/main/apln/approval24"));
  826. model.setValue("/root/hidden/rptparams/approval25", model.getValue("/root/main/apln/approval25"));
  827. model.setValue("/root/hidden/rptparams/approval26", model.getValue("/root/main/apln/approval26"));
  828. model.setValue("/root/hidden/rptparams/approval11", model.getValue("/root/main/apln/approval11"));
  829. model.setValue("/root/hidden/rptparams/approval12", model.getValue("/root/main/apln/approval12"));
  830. model.setValue("/root/hidden/rptparams/approval13", model.getValue("/root/main/apln/approval13"));
  831. model.setValue("/root/hidden/rptparams/approval14", model.getValue("/root/main/apln/approval14"));
  832. model.setValue("/root/hidden/rptparams/approval15", model.getValue("/root/main/apln/approval15"));
  833. model.setValue("/root/hidden/rptparams/approval16", model.getValue("/root/main/apln/approval16"));
  834. model.setValue("/root/hidden/rptparams/arbitrary1", model.getValue("/root/main/apln/arbitrary1"));
  835. model.setValue("/root/hidden/rptparams/arbitrary2", model.getValue("/root/main/apln/arbitrary2"));
  836. model.setValue("/root/hidden/rptparams/arbitrary3", model.getValue("/root/main/apln/arbitrary3"));
  837. model.setValue("/root/hidden/rptparams/arbitrary4", model.getValue("/root/main/apln/arbitrary4"));
  838. model.setValue("/root/hidden/rptparams/arbitrary5", model.getValue("/root/main/apln/arbitrary5"));
  839. model.setValue("/root/hidden/rptparams/arbitrary6", model.getValue("/root/main/apln/arbitrary6"));
  840. model.setValue("/root/hidden/rptparams/expansion", expansion);
  841. model.setValue("/root/hidden/rptparams/usernm", getUserInfo("usernm"));
  842. //이현민
  843. exeReportPreview("RPRSD04703", "XMLSTR", "/root/hidden/rptparams");
  844. }
  845. ]]>
  846. </script>
  847. </xhtml:head>
  848. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  849. <group id="group1" style="left:0px; top:0px; width:1194px; height:14px; ">
  850. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">비품청구등록</caption>
  851. </group>
  852. <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
  853. <line id="line7" class="line_2" style="x1:0px; y1:147px; x2:605px; y2:147px; "/>
  854. <line id="line6" class="line_2" style="x1:0px; y1:123px; x2:605px; y2:123px; "/>
  855. <line id="line19" class="line_2" style="x1:0px; y1:288px; x2:605px; y2:288px; "/>
  856. <line id="line2" class="line_2" style="x1:0px; y1:241px; x2:605px; y2:241px; "/>
  857. <line id="line12" class="line_2" style="x1:0px; y1:264px; x2:605px; y2:264px; "/>
  858. <line id="line11" class="line_2" style="x1:0px; y1:219px; x2:605px; y2:219px; "/>
  859. <line id="line10" class="line_2" style="x1:0px; y1:195px; x2:605px; y2:195px; "/>
  860. <line id="line8" class="line_2" style="x1:0px; y1:171px; x2:605px; y2:171px; "/>
  861. <caption id="caption9" class="tit_2" style="left:5px; top:81px; width:100px; height:13px; ">비품청구</caption>
  862. <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
  863. <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
  864. <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" caption="승인^청구일자^청구번호^청구번호^대분류^중분류^소분류^물품명^모델^규격^청구수량^청구사유^진행상태^상태^접수^청구자^승인자^승인일자^청구부서^사용부서^제작^제조회사^부서승인여부^접수^승인일자^예산금액^물품구분^제조회사코드^예산코드^계정명^예산년도" colsep="^" colwidth="35, 67, 35, 30, 57, 57, 57, 170, 60, 60, 55, 55, 55, 43, 45, 45, 45, 67, 68, 68, 30, 59, 52, 100, 82, 100, 100, 75, 65, 100, 55, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:470px; width:1195px; height:274px; ">
  865. <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox" style="left:1118px; top:23px; width:59px; height:23px; text-align:center; "/>
  866. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  867. <col ref="reqno" style="text-align:right; "/>
  868. <col ref="reqseqno" style="text-align:center; "/>
  869. <col ref="lrgnm" style="text-align:left; "/>
  870. <col ref="mdlnm" style="text-align:left; "/>
  871. <col ref="smlnm" style="text-align:left; "/>
  872. <col ref="goodnm" style="text-align:left; "/>
  873. <col ref="goodmodel" style="text-align:left; "/>
  874. <col ref="goodspec" style="text-align:left; "/>
  875. <col ref="reqqty" format="#,###" style="text-align:right; "/>
  876. <col ref="workflagnm" style="text-align:center; "/>
  877. <col disabled="true" ref="deliveprcsflag" type="combo" style="text-align:center; ">
  878. <choices>
  879. <item>
  880. <label>청구</label>
  881. <value>1</value>
  882. </item>
  883. <item>
  884. <label>발주</label>
  885. <value>3</value>
  886. </item>
  887. <item>
  888. <label>입고완료</label>
  889. <value>5</value>
  890. </item>
  891. <item>
  892. <label>강제종결</label>
  893. <value>6</value>
  894. </item>
  895. <item>
  896. <label>입고완료</label>
  897. <value>7</value>
  898. </item>
  899. <item>
  900. <label>자체제작</label>
  901. <value>8</value>
  902. </item>
  903. <item>
  904. <label>재고지급</label>
  905. <value>9</value>
  906. </item>
  907. </choices>
  908. </col>
  909. <col ref="deliveprcsflagnm" visibility="hidden" style="text-align:center; "/>
  910. <col ref="acptflagnm" style="text-align:center; "/>
  911. <col ref="reqpsnnm" style="text-align:center; "/>
  912. <col ref="deptaprvpsnnm" style="text-align:center; "/>
  913. <col ref="deptaprvdd" format="yyyy-mm-dd" style="text-align:center; "/>
  914. <col ref="reqdeptnm" style="text-align:left; "/>
  915. <col ref="mngtdeptcdnm" style="text-align:left; "/>
  916. <col ref="makeyn" style="text-align:center; "/>
  917. <col ref="prodcmpynm" visibility="hidden"/>
  918. <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox" visibility="hidden" style="left:1118px; top:23px; width:59px; height:23px; "/>
  919. <col checkvalue="Y,N" ref="acptflag" type="checkbox" visibility="hidden" style="left:1330px; top:23px; width:100px; height:23px; "/>
  920. <col ref="acptdd" visibility="hidden"/>
  921. <col ref="bugtexpcamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  922. <col ref="reqflag" visibility="hidden"/>
  923. <col ref="prodcmpycd" visibility="hidden"/>
  924. <col ref="bugtcd" visibility="hidden"/>
  925. <col ref="bugtnm" visibility="hidden"/>
  926. <col ref="bugtyy" visibility="hidden"/>
  927. <col ref="stdysubjno" visibility="hidden"/>
  928. <col ref="reqdeptcd" visibility="hidden"/>
  929. <col ref="installplcecd" visibility="hidden"/>
  930. <col ref="reqpsnid" visibility="hidden"/>
  931. <col ref="reqtm" visibility="hidden"/>
  932. <col ref="delivehopedd" visibility="hidden"/>
  933. <col ref="requnit" visibility="hidden"/>
  934. <col ref="attfilenm" visibility="hidden"/>
  935. <col ref="attfilepathnm" visibility="hidden"/>
  936. <col ref="deptaprvdd" visibility="hidden"/>
  937. <col ref="adjtqty" visibility="hidden"/>
  938. <col ref="adjtrsn" visibility="hidden"/>
  939. <col ref="acptcharid" visibility="hidden"/>
  940. <col ref="plceorddd" visibility="hidden"/>
  941. <col ref="plceordseqno" visibility="hidden"/>
  942. <col ref="plceordno" visibility="hidden"/>
  943. <col ref="workflag" visibility="hidden"/>
  944. <col ref="fixasetcd" visibility="hidden"/>
  945. <col ref="deliveqty" visibility="hidden"/>
  946. <col ref="unwinresn" visibility="hidden"/>
  947. <col ref="deliveprcsflag" visibility="hidden"/>
  948. <col ref="cmt" visibility="hidden"/>
  949. <col ref="instcd" visibility="hidden"/>
  950. <col ref="stdysubjnm" visibility="hidden"/>
  951. <col ref="installplcenm" visibility="hidden"/>
  952. <col ref="purcacptflag" visibility="hidden"/>
  953. <col ref="purcacptdd" visibility="hidden"/>
  954. <col ref="wncurncyamt" visibility="hidden"/>
  955. <col ref="plceordamt" visibility="hidden"/>
  956. <col ref="suplplcecd" visibility="hidden"/>
  957. <col ref="suplplcenm" visibility="hidden"/>
  958. <col ref="lrgcd" visibility="hidden"/>
  959. <col ref="mdlcd" visibility="hidden"/>
  960. <col ref="smlcd" visibility="hidden"/>
  961. <col ref="cntrdeptcd" visibility="hidden"/>
  962. <col ref="cntrdeptcdnm" visibility="hidden"/>
  963. <col ref="mngtdeptcd" visibility="hidden"/>
  964. <col ref="mngtdeptcdnm" visibility="hidden"/>
  965. <col ref="reqtel" visibility="hidden"/>
  966. <col ref="deptaprvpsnid" visibility="hidden"/>
  967. <col ref="deptaprvpsnnm" visibility="hidden"/>
  968. <script type="javascript" ev:event="onrowchanged">
  969. <![CDATA[
  970. if( grd_goodreq.rows >= grd_goodreq.fixedRows )
  971. {
  972. model.resetInstanceNode("/root/main/goodreq");
  973. model.copyNode("/root/main/goodreq/goodreqlist" ,grd_goodreq.nodeset + "["+ (grd_goodreq.row-grd_goodreq.fixedrows+1) + "]");
  974. // 부서장 승인이 되어 있으면 disabled = 'Y'
  975. // 구매과 접수가 접수/부결.되어 있으면 disabled = 'Y'
  976. if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
  977. grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
  978. grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y" )
  979. fAllControlDisabled("Y");
  980. else
  981. fAllControlDisabled("N");
  982. }
  983. //사용자권한에 따라 바꾸지 못하게 막거나, 진행상황에 따라 수정 가능하게 설정
  984. if(grd_reqpsnlist.rows - grd_reqpsnlist.fixedRows == 0 && !fCheckPurcTeam())
  985. {
  986. ipt_cntrdeptcd.disabled = true;
  987. btn_cntrdeptcd.disabled = true;
  988. ipt_cntrdeptcdnm.disabled = true;
  989. }
  990. model.refresh();
  991. ]]>
  992. </script>
  993. <script type="javascript" ev:event="xforms-value-changed">
  994. <![CDATA[
  995. if (grd_goodreq.valueMatrix(grd_goodreq.row , grd_goodreq.colRef("deptaprvyn")) == "Y"){
  996. grd_goodreq.rowStyle(grd_goodreq.row,"data","background-color") = "white";
  997. }else{
  998. grd_goodreq.rowStyle(grd_goodreq.row,"data","background-color") = "#FFFF66";
  999. }
  1000. if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("acptflag")) == "Y" )
  1001. {
  1002. messageBox("관리부서에서 접수된건입니다. 접수취소를 하실수 " ,"I004");
  1003. // check box의 반대값을 넣어주고 status를 원위치한다.
  1004. grd_goodreq.rowStatus(grd_goodreq.Row - grd_goodreq.fixedRows + 1) = "0";
  1005. if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("deptaprvyn")) == "N" )
  1006. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvyn" ,"Y");
  1007. else
  1008. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvyn" ,"N");
  1009. }
  1010. else
  1011. {
  1012. if(grd_goodreq.valueMatrix(grd_goodreq.Row,grd_goodreq.colRef("deptaprvyn")) == "N" )
  1013. {
  1014. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvdd", "");
  1015. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnid" , "");
  1016. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnnm", "");
  1017. }
  1018. else
  1019. {
  1020. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvdd", getCurrentDate());
  1021. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnid", getUserInfo("userid"));
  1022. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.Row - grd_goodreq.fixedrows+ 1) + "]/deptaprvpsnnm", getUserInfo("usernm"));
  1023. //model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/acptdd" , getCurrentDate());
  1024. }
  1025. }
  1026. ]]>
  1027. </script>
  1028. <script type="javascript" ev:event="onaftersort">
  1029. <![CDATA[
  1030. for(var i=grd_goodreq.fixedRows;i<grd_goodreq.rows;i++){
  1031. if (grd_goodreq.valueMatrix(i , grd_goodreq.colRef("deptaprvyn")) == "Y"){
  1032. grd_goodreq.rowStyle(i,"all","background-color") = "white";
  1033. }else{
  1034. grd_goodreq.rowStyle(i,"all","background-color") = "#FFFF66";
  1035. }
  1036. }
  1037. ]]>
  1038. </script>
  1039. </datagrid>
  1040. <line id="line3" class="line_1" style="x1:0px; y1:96px; x2:605px; y2:96px; "/>
  1041. <!--</group>-->
  1042. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
  1043. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:29px; width:56px; height:22px; ">
  1044. <caption>조회</caption>
  1045. <script type="javascript" ev:event="DOMActivate">
  1046. <![CDATA[
  1047. if(fCheckRetrieveData(false) == false)return;
  1048. model.setValue("/root/send/goodreq/retrmaxreqnoyn","Y");
  1049. // 위의 조건을 변경후 조회하면, 각 조회조건 값들이 이전값이다.
  1050. //fDefaultSetting();
  1051. misfMsterDetailRetrieve();
  1052. fAfterRetr();
  1053. // 저장후 재조회 일 경우 저장시 행을 조회
  1054. var selectrow = model.getValue("/root/temp/selectrow");
  1055. if(selectrow != ""){
  1056. grd_goodreq.row = selectrow;
  1057. grd_goodreq.dispatch("onrowchanged");
  1058. }
  1059. grd_goodreq.dispatch("onaftersort");
  1060. model.refresh();
  1061. ]]>
  1062. </script>
  1063. </button>
  1064. <button id="btn_reqdept" class="icon_search" navindex="-1" style="left:651px; top:20px; width:16px; height:16px; ">
  1065. <caption/>
  1066. <script type="javascript" ev:event="DOMActivate">
  1067. <![CDATA[
  1068. var recv_list = "reqdeptcd,reqdeptnm";
  1069. misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, opt_instcd.value, "instcd") ;
  1070. model.refresh();
  1071. var instcd = getUserInfo("dutplceinstcd") ;
  1072. if (instcd=="031"){
  1073. // 권한설정.
  1074. fSetReqAuth();
  1075. //
  1076. // // 승인권자별 선택할 수 있는 부서 제한
  1077. grd_reqpsnlist.nodeset= "/root/hidden/reqpsnlist[reqdeptcd='"+ipt_reqdeptcd_search.value+"']";
  1078. if ((grd_reqpsnlist.rows-grd_reqpsnlist.fixedRows)==0 && !fCheckPurcTeam())
  1079. {
  1080. messageBox("권한이 없는 부서입니다.","");
  1081. fInitialize();
  1082. }
  1083. }else{
  1084. model.setValue("/root/send/reqpsn/instcd", getUserInfo("dutplceinstcd") );
  1085. model.setValue("/root/send/reqpsn/emplno", getUserInfo("userid") );
  1086. submit("TRRSD04701"); //권한조회
  1087. var cnt1 = model.getValue("/root/temp/authinfo/cnt");
  1088. var userid1 =model.getValue("/root/send/reqpsn/emplno");
  1089. if(cnt1 != 0 || userid1 == "93438"){
  1090. }else{
  1091. messageBox("111권한이 없는 부서입니다.","");
  1092. fInitialize();
  1093. }
  1094. }
  1095. ]]>
  1096. </script>
  1097. </button>
  1098. <caption id="caption4" class="search_name" style="left:15px; top:19; width:117px; height:17px; ">기관코드 :</caption>
  1099. <line id="line18" class="line_4" style="x1:1110px; y1:20px; x2:1110px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
  1100. <select1 id="cmb_reqflag_search" ref="/root/send/goodreq/reqflag" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:799px; top:45px; width:90px; height:19px; ">
  1101. <choices>
  1102. <itemset>
  1103. <label/>
  1104. <value/>
  1105. </itemset>
  1106. </choices>
  1107. <script type="javascript" ev:event="xforms-value-changed">
  1108. <![CDATA[
  1109. btn_search.dispatch("DOMActivate");
  1110. ]]>
  1111. </script>
  1112. </select1>
  1113. <input id="ipt_reqdeptcd_search" ref="/root/send/goodreq/reqdeptcd" class="input_s_essential" style="left:551px; top:18px; width:96px; height:19px; ">
  1114. <script type="javascript" ev:event="xforms-value-changed">
  1115. <![CDATA[
  1116. misfSearchDept(ipt_reqdeptnm_search);
  1117. var instcd = getUserInfo("dutplceinstcd") ;
  1118. if (instcd=="031"){
  1119. // 권한설정.
  1120. fSetReqAuth();
  1121. // 승인권자별 선택할 수 있는 부서 제한
  1122. grd_reqpsnlist.nodeset= "/root/hidden/reqpsnlist[reqdeptcd='"+ipt_reqdeptcd_search.value+"']";
  1123. if ((grd_reqpsnlist.rows-grd_reqpsnlist.fixedRows)==0 && !fCheckPurcTeam())
  1124. {
  1125. messageBox("권한이 없는 부서입니다.","");
  1126. fInitialize();
  1127. }
  1128. }else{
  1129. // model.setValue("/root/send/reqpsn/instcd", getUserInfo("dutplceinstcd") );
  1130. // model.setValue("/root/send/reqpsn/emplno", getUserInfo("userid") );
  1131. //
  1132. // submit("TRRSD04701"); //권한조회
  1133. // var cnt = model.getValue("/root/temp/authinfo/cnt");
  1134. // var userid =model.getValue("/root/send/reqpsn/emplno");
  1135. if(cnt1 != 0 || userid1 == "93438"){
  1136. btn_search.dispatch("DOMActivate");
  1137. }else{
  1138. messageBox("권한이 없는 부서입니다.","");
  1139. fInitialize();
  1140. }
  1141. }
  1142. ]]>
  1143. </script>
  1144. </input>
  1145. <caption id="caption8" class="search_name" style="left:466px; top:19px; width:86px; height:17px; ">청구부서 :</caption>
  1146. <input id="ipt_reqdeptnm_search" ref="/root/send/goodreq/reqdeptnm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:671px; top:18px; width:239px; height:19px; "/>
  1147. <caption id="caption14" class="search_name" style="left:15px; top:45; width:86px; height:17px; ">청구일자 :</caption>
  1148. <input id="ipt_reqdd_search" ref="/root/send/goodreq/reqfrdd" class="input_s_essential" inputtype="date" style="left:100px; top:45px; width:90px; height:19px; ">
  1149. <script type="javascript" ev:event="xforms-value-changed">
  1150. <![CDATA[
  1151. btn_search.dispatch("DOMActivate");
  1152. ]]>
  1153. </script>
  1154. </input>
  1155. <input id="ipt_reqno" ref="/root/main/goodreq/goodreqlist/reqno" class="input_essential" visibility="hidden" editable="false" style="left:535px; top:103px; width:20px; height:19px; "/>
  1156. <output id="ipt_reqdeptcd" ref="/root/main/goodreq/goodreqlist/reqdeptcd" class="output_fix" visibility="hidden" appearance="output" style="left:560px; top:103px; width:30px; height:19px; "/>
  1157. <output id="opt_reqdeptnm" ref="/root/main/goodreq/goodreqlist/reqdeptnm" class="output_fix" visibility="hidden" appearance="output" style="left:510px; top:102px; width:25px; height:19px; "/>
  1158. <caption id="caption67" class="cell_1" style="left:0px; top:173px; width:100px; height:23px; vertical-align:middle; ">물품명칭</caption>
  1159. <input id="ipt_goodnm" ref="/root/main/goodreq/goodreqlist/goodnm" class="input_s_essential" style="left:102px; top:175px; width:503px; height:19px; "/>
  1160. <caption id="caption61" class="cell_1" style="left:304px; top:197px; width:88px; height:21px; vertical-align:middle; ">규격</caption>
  1161. <input id="ipt_goodspec" ref="/root/main/goodreq/goodreqlist/goodspec" class="input_fix" style="left:394px; top:199px; width:211px; height:19px; "/>
  1162. <input id="ipt_goodmodel" ref="/root/main/goodreq/goodreqlist/goodmodel" class="input_default" style="left:102px; top:199px; width:198px; height:19px; "/>
  1163. <caption id="caption59" class="cell_1" style="left:0px; top:197px; width:100px; height:21px; vertical-align:middle; ">모델</caption>
  1164. <button id="btn_prodcmpycd" class="icon_search" visibility="hidden" style="left:582px; top:583px; width:16px; height:16px; ">
  1165. <caption/>
  1166. <script type="javascript" ev:event="DOMActivate">
  1167. <![CDATA[
  1168. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  1169. model.refresh();
  1170. ]]>
  1171. </script>
  1172. </button>
  1173. <caption id="caption66" class="cell_1" visibility="hidden" style="left:445px; top:580px; width:100px; height:22px; vertical-align:middle; ">제조회사</caption>
  1174. <input id="ipt_prodcmpycd" ref="/root/main/goodreq/goodreqlist/prodcmpycd" class="input_default" visibility="hidden" style="left:547px; top:581px; width:33px; height:19px; ">
  1175. <script type="javascript" ev:event="xforms-value-changed">
  1176. <![CDATA[
  1177. if(ipt_prodcmpycd.value.length == 0)
  1178. {
  1179. ipt_prodcmpynm.value = "";
  1180. }
  1181. else
  1182. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd",
  1183. "prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref")) ,"","prodcmpycd,prodcmpynm" ,
  1184. ipt_prodcmpycd,"SPRSD00160","","");
  1185. model.refresh();
  1186. model.setFocus("ipt_goodmodel");
  1187. ]]>
  1188. </script>
  1189. <script type="javascript" ev:event="onkeydown">
  1190. <![CDATA[
  1191. if(event.keyCode == 9)
  1192. {
  1193. if(event.shiftKey)model.setFocus("cmb_prodplce");
  1194. else model.setFocus("ipt_goodmodel");
  1195. }
  1196. event.preventDefault();
  1197. ]]>
  1198. </script>
  1199. </input>
  1200. <input id="ipt_prodcmpynm" ref="/root/main/goodreq/goodreqlist/prodcmpynm" class="input_fix" visibility="hidden" appearance="input" style="left:600px; top:581px; width:40px; height:19px; ">
  1201. <script type="javascript" ev:event="xforms-value-changed">
  1202. <![CDATA[
  1203. if(ipt_prodcmpynm.value.length == 0)
  1204. {
  1205. ipt_prodcmpycd.value = "";
  1206. }
  1207. else
  1208. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpynm",
  1209. "prodcmpynm," + ipt_prodcmpynm.value, "", "prodcmpycd,prodcmpynm",
  1210. ipt_prodcmpynm, "SPRSD00160", "","");
  1211. model.refresh();
  1212. ]]>
  1213. </script>
  1214. </input>
  1215. <output id="opt_winacntnm" ref="/root/main/goodreq/goodreqlist/bugtnm" class="output_fix" visibility="hidden" appearance="output" style="left:560px; top:125px; width:15px; height:19px; "/>
  1216. <caption id="caption64" class="cell_1" style="left:0px; top:243px; width:100px; height:22px; vertical-align:middle; ">청구수량</caption>
  1217. <input id="ipt_reqqty" ref="/root/main/goodreq/goodreqlist/reqqty" class="input_s_essential" format="#,###" style="left:102px; top:244px; width:86px; height:19px; text-align:right; "/>
  1218. <select1 id="cmb_requnit" ref="/root/main/goodreq/goodreqlist/requnit" class="combo_s_essential" appearance="minimal" style="left:189px; top:244px; width:111px; height:19px; ">
  1219. <choices>
  1220. <itemset>
  1221. <label/>
  1222. <value/>
  1223. </itemset>
  1224. </choices>
  1225. </select1>
  1226. <input id="ipt_bugtyy" ref="/root/main/goodreq/goodreqlist/bugtyy" class="input_search" disabled="true" format="yyyy" style="left:394px; top:244px; width:165px; height:19px; text-align:left; "/>
  1227. <caption id="caption56" class="cell_1" style="left:304px; top:243px; width:88px; height:22px; vertical-align:middle; ">예산년도</caption>
  1228. <input id="ipt_bugtexpcamt" ref="/root/main/goodreq/goodreqlist/bugtexpcamt" class="input_default" visibility="hidden" format="#,###" style="left:100px; top:75px; width:20px; height:19px; text-align:right; "/>
  1229. <caption id="caption48" class="cell_1" visibility="hidden" style="left:75px; top:75px; width:25px; height:23px; vertical-align:middle; ">예산추산액</caption>
  1230. <caption id="caption71" class="cell_1" style="left:0px; top:125px; width:100px; height:23px; vertical-align:middle; ">제작여부</caption>
  1231. <input id="ipt_installplcecd" ref="/root/main/goodreq/goodreqlist/installplcecd" class="input_fix" style="left:103px; top:315px; width:132px; height:19px; ">
  1232. <script type="javascript" ev:event="xforms-value-changed">
  1233. <![CDATA[
  1234. if(ipt_installplcecd.value.length == 0)
  1235. ipt_installplcenm.value = "";
  1236. else
  1237. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm,instcd",
  1238. "deptcd," + ipt_installplcecd.value + "," + opt_instcd.value, "", "installplcecd,installplcenm",
  1239. ipt_installplcecd, "PPRAC00700", "instcd","opt_instcd");
  1240. model.refresh();
  1241. ]]>
  1242. </script>
  1243. </input>
  1244. <select1 id="rbo_makeyn" ref="/root/main/goodreq/goodreqlist/makeyn" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:102px; top:128px; width:116px; height:16px; background-color:transparent; border-style:none; ">
  1245. <choices>
  1246. <item>
  1247. <label>예</label>
  1248. <value>Y</value>
  1249. </item>
  1250. <item>
  1251. <label>아니오</label>
  1252. <value>N</value>
  1253. </item>
  1254. </choices>
  1255. </select1>
  1256. <caption id="caption3" class="cell_1" style="left:0px; top:314px; width:100px; height:23px; vertical-align:middle; ">설치장소</caption>
  1257. <caption id="caption57" class="cell_1" visibility="hidden" style="left:270px; top:75px; width:20px; height:23px; vertical-align:middle; ">예산편성액</caption>
  1258. <caption id="caption60" class="cell_1" style="left:0px; top:338px; width:100px; height:23px; vertical-align:middle; ">첨부파일</caption>
  1259. <input id="ipt_attfilenm" ref="/root/main/goodreq/goodreqlist/attfilenm" class="input_default" disabled="true" style="left:102px; top:340px; width:302px; height:19px; "/>
  1260. <button id="btn_choidel" class="btn2_letter3" style="left:553px; top:75px; width:53px; height:19px; ">
  1261. <caption>행삭제</caption>
  1262. <script type="javascript" ev:event="DOMActivate">
  1263. <![CDATA[
  1264. //해당 grid중 acptflag 항목(접수)이 Y 인것은 삭제 안되도록 막기
  1265. misfGridIUD(grd_goodreq, "D");
  1266. //20080926
  1267. //그리드 중에서 삭제할 항목들은 이미 D 상태가 되어 있으므로
  1268. //그리드 중 D 상태인것만 acptflag 를 체크해서 Y 인것은 삭제못한다고 메세지 띄우고 원래 상태(0) 로 복원하기.
  1269. // 승인 항목(deptaprvyn)이 Y 인 것도 삭제 불가
  1270. //부서장 승인이 났으므로 삭제 불가해야 함 . 부서장은 승인을 취소하고 삭제 가능함.
  1271. for (var i=grd_goodreq.fixedRows ; i< grd_goodreq.rows ; i++) {
  1272. // alert(grd_goodreq.rowStatus(i) +" "+ grd_goodreq.valueMatrix( i , grd_goodreq.colRef("reqseqno") ) );
  1273. if ( grd_goodreq.rowStatus(i) == '4' || grd_goodreq.rowStatus(i) == '6') { //행이 삭제일 경우(4는 단순삭제 , 6은 승인여부체크후 삭제시 상태값)
  1274. if ( grd_goodreq.valueMatrix( i , grd_goodreq.colRef("acptflag")) == "Y" ||
  1275. grd_goodreq.valueMatrix( i , grd_goodreq.colRef("deptaprvyn")) == "Y") {
  1276. messageBox("해당 항목은 삭제" ,"E001");
  1277. grd_goodreq.removeStatus( i , "delete");
  1278. }
  1279. }
  1280. }
  1281. ]]>
  1282. </script>
  1283. </button>
  1284. <button id="btn_insert" class="btn2_letter3" style="left:498px; top:75px; width:53px; height:19px; ">
  1285. <caption>행추가</caption>
  1286. <script type="javascript" ev:event="DOMActivate">
  1287. <![CDATA[
  1288. if(fCheckRetrieveData(true) == false)return;
  1289. model.resetInstanceNode("/root/main/goodreq");
  1290. misfGridIUD(grd_goodreq, "A");
  1291. grd_goodreq.row = grd_goodreq.rows - grd_goodreq.fixedRows ;
  1292. /* 행추가시 enable = TRUE HBH */
  1293. fAllControlDisabled("N");
  1294. fDefaultSetting(grd_goodreq.row );
  1295. ]]>
  1296. </script>
  1297. </button>
  1298. <input id="ipt_reqpsnid_search" ref="/root/send/goodreq/reqpsnid" visibility="hidden" style="left:768px; top:45px; width:30px; height:19px; "/>
  1299. <output id="opt_reqpsnnm" ref="/root/send/goodreq/reqpsnnm" class="output_fix" style="left:551px; top:45px; width:130px; height:19px; text-align:center; "/>
  1300. <caption id="caption1" class="search_name" style="left:466px; top:45px; width:84px; height:17px; ">청 구 자 :</caption>
  1301. <caption id="caption2" class="cell_1" style="left:0px; top:101px; width:100px; height:23px; vertical-align:middle; ">청구사유</caption>
  1302. <select1 id="cmb_workflag" ref="/root/main/goodreq/goodreqlist/workflag" class="combo_s_essential" appearance="minimal" style="left:102px; top:103px; width:166px; height:19px; ">
  1303. <choices>
  1304. <itemset>
  1305. <label/>
  1306. <value/>
  1307. </itemset>
  1308. </choices>
  1309. </select1>
  1310. <line id="line1" class="line_1" style="x1:0px; y1:465px; x2:1195px; y2:465px; "/>
  1311. <caption id="caption5" class="tit_2" style="left:5px; top:450px; width:100px; height:13px; ">비품청구 내역</caption>
  1312. <input id="ipt_reqflag" ref="/root/main/goodreq/goodreqlist/reqflag" visibility="hidden" style="left:500px; top:125px; width:25px; height:19px; "/>
  1313. <input id="ipt_reqdd" ref="/root/main/goodreq/goodreqlist/reqdd" class="output_fix" editable="false" format="yyyy-mm-dd" style="left:351px; top:103px; width:114px; height:19px; "/>
  1314. <input id="ipt_reqpsnid" ref="/root/main/goodreq/goodreqlist/reqpsnid" visibility="hidden" style="left:575px; top:125px; width:20px; height:19px; "/>
  1315. <input id="ipt_instcd" ref="/root/main/goodreq/goodreqlist/instcd" visibility="hidden" style="left:545px; top:125px; width:15px; height:19px; "/>
  1316. <input id="ipt_deliveprcsflag" ref="/root/main/goodreq/goodreqlist/deliveprcsflag" visibility="hidden" style="left:525px; top:125px; width:20px; height:19px; "/>
  1317. <input id="ipt_installplcenm" ref="/root/main/goodreq/goodreqlist/installplcenm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:261px; top:315px; width:296px; height:19px; "/>
  1318. <button id="btn_installplce" class="icon_search" style="left:240px; top:317px; width:16px; height:16px; ">
  1319. <caption/>
  1320. <script type="javascript" ev:event="DOMActivate">
  1321. <![CDATA[
  1322. var recv_list = "installplcecd,installplcenm";
  1323. misfOpenPopUpList("19", ipt_installplcecd,"", recv_list, opt_instcd.value, "instcd") ;
  1324. model.refresh();
  1325. ]]>
  1326. </script>
  1327. </button>
  1328. <caption id="caption11" class="cell_1" visibility="hidden" style="left:320px; top:75px; width:20px; height:23px; vertical-align:middle; ">예산집행액</caption>
  1329. <caption id="caption12" class="cell_1" visibility="hidden" style="left:375px; top:75px; width:20px; height:23px; vertical-align:middle; ">예산잔액</caption>
  1330. <output id="opt_totamt" ref="/root/main/goodreq/goodreqlist/totamt" class="output_fix" visibility="hidden" style="left:290px; top:75px; width:25px; height:19px; "/>
  1331. <output id="opt_useamt" ref="/root/main/goodreq/goodreqlist/useamt" class="output_fix" style="left:394px; top:268px; width:165px; height:19px; "/>
  1332. <output id="opt_remamt" ref="/root/main/goodreq/goodreqlist/remamt" class="output_fix" style="left:394px; top:292px; width:165px; height:19px; "/>
  1333. <input id="ipt_goodflag" ref="/root/send/lrgcd/goodflag" visibility="hidden" style="left:890px; top:45px; width:30px; height:19px; "/>
  1334. <button id="btnselect" class="btn2_letter9" style="left:231px; top:444px; width:119px; height:19px; ">
  1335. <caption>전체/전체선택 취소</caption>
  1336. <script type="javascript" ev:event="DOMActivate">
  1337. <![CDATA[
  1338. for(var liRow = grd_goodreq.fixedRows; liRow < grd_goodreq.rows ; liRow++)
  1339. {
  1340. //fCheckAprv( (liRow - grd_goodreq.fixedRows + 1) , "false");
  1341. ////////////////////////////////////////////////////
  1342. // 일괄처리는 발주상태가 발주중인것만 처리한다.
  1343. ///////////////////////////////////////////////////
  1344. if (grd_goodreq.valueMatrix(liRow,grd_goodreq.colRef("acptflag")) != "Y" )
  1345. {
  1346. if(grd_goodreq.valueMatrix(liRow,grd_goodreq.colRef("deptaprvyn")) == "Y" )
  1347. {
  1348. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvyn" , "N");
  1349. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvdd" , "");
  1350. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnid" , "");
  1351. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnnm" , "");
  1352. grd_goodreq.rowStatus(liRow - grd_goodreq.fixedRows + 1) = "2";
  1353. }
  1354. else
  1355. {
  1356. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvyn" , "Y");
  1357. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvdd" , getCurrentDate());
  1358. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnid" , getUserInfo("userid"));
  1359. model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/deptaprvpsnnm" , getUserInfo("usernm"));
  1360. grd_goodreq.rowStatus(liRow - grd_goodreq.fixedRows + 1) = "2";
  1361. }
  1362. }
  1363. }
  1364. model.refresh();
  1365. ]]>
  1366. </script>
  1367. </button>
  1368. <button id="btn_exceldown" class="btn2_letter2" style="left:1151px; top:444px; width:42px; height:19px; ">
  1369. <caption>엑셀</caption>
  1370. <script type="javascript" ev:event="DOMActivate">
  1371. <![CDATA[
  1372. if( (grd_goodreq.rows - grd_goodreq.fixedRows) > 0){
  1373. var fileName = window.fileDialog("save", ",", false, "비품청구내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1374. if (fileName != "")
  1375. {
  1376. grd_goodreq.saveExcel(fileName, "SheetName", false, false, "", "", false);
  1377. }
  1378. }
  1379. else
  1380. messageBox("엑셀 생성 대상 데이터가" ,"I004" );
  1381. ]]>
  1382. </script>
  1383. </button>
  1384. <button id="btn_accept" class="btn2_letter2" style="left:183px; top:444px; width:42px; height:19px; ">
  1385. <caption>승인</caption>
  1386. <script type="javascript" ev:event="DOMActivate">
  1387. <![CDATA[
  1388. misfSave("TXRSD11101");
  1389. if (model.getValue(gvErrorMsgPath + "/type") != "error" )btn_search.dispatch("DOMActivate");
  1390. ]]>
  1391. </script>
  1392. </button>
  1393. <caption id="caption17" class="cell_1" style="left:0px; top:149px; width:100px; height:23px; vertical-align:middle; ">대/중/소분류</caption>
  1394. <output id="opt_lrgnm" ref="/root/main/goodreq/goodreqlist/lrgnm" class="output_fix" style="left:165px; top:151px; width:103px; height:19px; "/>
  1395. <output id="opt_mdlnm" ref="/root/main/goodreq/goodreqlist/mdlnm" class="output_fix" style="left:334px; top:151px; width:103px; height:19px; "/>
  1396. <output id="opt_smlnm" ref="/root/main/goodreq/goodreqlist/smlnm" class="output_fix" style="left:503px; top:151px; width:103px; height:19px; "/>
  1397. <caption id="caption13" class="cell_1" style="left:0px; top:362px; width:100px; height:78px; vertical-align:middle; ">청구사유</caption>
  1398. <caption id="caption15" class="cell_1" style="left:269px; top:125px; width:80px; height:23px; vertical-align:middle; ">자산코드</caption>
  1399. <input id="ipt_fixasetcd" ref="/root/main/goodreq/goodreqlist/fixasetcd" class="input_fix" style="left:351px; top:127px; width:114px; height:19px; "/>
  1400. <input id="ipt_lrgcd" ref="/root/main/goodreq/goodreqlist/lrgcd" class="input_s_essential" disabled="true" style="left:128px; top:151px; width:36px; height:19px; "/>
  1401. <input id="ipt_mdlcd" ref="/root/main/goodreq/goodreqlist/mdlcd" class="input_fix" disabled="true" style="left:296px; top:151px; width:36px; height:19px; "/>
  1402. <input id="ipt_smlcd" ref="/root/main/goodreq/goodreqlist/smlcd" class="input_fix" disabled="true" style="left:465px; top:151px; width:36px; height:19px; "/>
  1403. <switch id="swh_select" style="left:610px; top:125px; width:585px; height:315px; ">
  1404. <case id="cse_lrgcd" selected="true" style="left:0px; top:0px; width:583px; height:329px; ">
  1405. <datagrid id="grd_mdllist" nodeset="/root/main/list/mdl/mdllist" visibility="hidden" allowuserresize="false" caption="중분류코드^중분류명^계정코드(입고)^계정코드(입고)^계정코드(비용)^계정코드(비용)^물품구분^대분류코드^최초등록자ID^최초등록일시^최종등록자ID^최종등록일시" colsep="^" colwidth="6, 135, 100, 120, 100, 120, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:196px; top:2px; width:190px; height:310px; ">
  1406. <col class="input_essential" disabled="true" ref="mdlcd" type="input" visibility="hidden"/>
  1407. <col ref="mdlnm" type="output"/>
  1408. <col ref="winacnt" visibility="hidden"/>
  1409. <col ref="winacntnm" visibility="hidden"/>
  1410. <col ref="amtacnt" visibility="hidden"/>
  1411. <col ref="amtacntnm" visibility="hidden"/>
  1412. <col ref="instcd" type="output" visibility="hidden"/>
  1413. <col ref="goodflag" type="output" visibility="hidden"/>
  1414. <col ref="lrgcd" type="output" visibility="hidden"/>
  1415. <col ref="fstrgstrid" type="output" visibility="hidden"/>
  1416. <col ref="fstrgstdt" type="output" visibility="hidden"/>
  1417. <col ref="lastupdtrid" type="output" visibility="hidden"/>
  1418. <script type="javascript" ev:event="onrowchanged">
  1419. <![CDATA[
  1420. model.setValue("/root/send/lrgcd/mdlcd" , grd_mdllist.valueMatrix(grd_mdllist.row, grd_mdllist.colRef("mdlcd")));
  1421. submit("TRRSD11106");
  1422. grd_mdllist.dispatch("onmouseup");
  1423. ]]>
  1424. </script>
  1425. <script type="javascript" ev:event="ondblclick">
  1426. <![CDATA[
  1427. // if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
  1428. // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
  1429. // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y" ) fMovecd("grd_mdllist");
  1430. if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" || (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
  1431. {
  1432. }else{
  1433. fMovecd("grd_mdllist");
  1434. }
  1435. ]]>
  1436. </script>
  1437. </datagrid>
  1438. <datagrid id="grd_smllist" nodeset="/root/main/list/sml/smllist" visibility="hidden" allowuserresize="false" caption="소분류코드^소분류명^계정코드(입고)^계정코드(입고)^기관코드^물품구분^대분류코드^중분류코드^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="10, 144, 100, 134, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:392px; top:2px; width:191px; height:310px; ">
  1439. <col class="input_essential" disabled="true" ref="smlcd" type="input" visibility="hidden"/>
  1440. <col ref="smlnm" type="output"/>
  1441. <col ref="winacnt" visibility="hidden"/>
  1442. <col ref="winacntnm" visibility="hidden"/>
  1443. <col ref="instcd" visibility="hidden"/>
  1444. <col ref="goodflag" visibility="hidden"/>
  1445. <col ref="lrgcd" visibility="hidden"/>
  1446. <col ref="mdlcd" visibility="hidden"/>
  1447. <col ref="fstrgstrid" visibility="hidden"/>
  1448. <col ref="fstrgstdt" visibility="hidden"/>
  1449. <col ref="lastupdtrid" visibility="hidden"/>
  1450. <col ref="lastupdtdt" visibility="hidden"/>
  1451. <script type="javascript" ev:event="ondblclick">
  1452. <![CDATA[
  1453. // if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
  1454. // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
  1455. // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y" ) fMovecd("grd_smllist");
  1456. if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" || (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
  1457. {
  1458. }else{
  1459. fMovecd("grd_smllist");
  1460. }
  1461. ]]>
  1462. </script>
  1463. </datagrid>
  1464. <datagrid id="grd_lrglist" nodeset="/root/main/list/lrg/lrglist" allowuserresize="false" caption="대분류코드^대분류명^주관부서^주관부서^계정코드(입고)^계정코드(입고)^계정코드(비용)^계정코드(비용)^기관코드^물품구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="6, 103, 130, 135, 130, 135, 130, 135, 100, 100, 130, 120, 150, 120" dataheight="25" extendlastcol="scroll" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:2px; width:583px; height:310px; ">
  1465. <col class="input_essential" disabled="true" ref="lrgcd" type="input" visibility="hidden"/>
  1466. <col ref="lrgnm" type="output"/>
  1467. <col ref="mainmngtdeptcd" visibility="hidden"/>
  1468. <col ref="mainmngtdeptnm" visibility="hidden"/>
  1469. <col ref="winacnt" visibility="hidden"/>
  1470. <col ref="winacntnm" visibility="hidden"/>
  1471. <col ref="amtacnt" visibility="hidden"/>
  1472. <col ref="amtacntnm" visibility="hidden"/>
  1473. <col ref="instcd" visibility="hidden"/>
  1474. <col ref="goodflag" visibility="hidden"/>
  1475. <col ref="fstrgstrid" type="output" visibility="hidden"/>
  1476. <col ref="fstrgstdt" type="output" visibility="hidden"/>
  1477. <col ref="lastupdtrid" type="output" visibility="hidden"/>
  1478. <col ref="lastupdtdt" type="output" visibility="hidden"/>
  1479. <script type="javascript" ev:event="onrowchanged">
  1480. <![CDATA[
  1481. /* 중분류 이하는 사용하지 않음으로 주석처리 */
  1482. /* model.setValue("/root/send/lrgcd/lrgcd" , grd_lrglist.valueMatrix(grd_lrglist.row, grd_lrglist.colRef("lrgcd")));
  1483. submit("TRRSD11105");
  1484. if(grd_mdllist.rows>1) {
  1485. grd_mdllist.row=1;
  1486. }
  1487. grd_mdllist.dispatch("onrowchanged");
  1488. grd_lrglist.dispatch("onmouseup");*/
  1489. ]]>
  1490. </script>
  1491. <script type="javascript" ev:event="ondblclick">
  1492. <![CDATA[
  1493. if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" || (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" || grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
  1494. {
  1495. }else{
  1496. fMovecd("grd_lrglist");
  1497. }
  1498. ]]>
  1499. </script>
  1500. </datagrid>
  1501. </case>
  1502. <case id="cse_fixasetcd" style="left:0px; top:0px; width:583px; height:329px; ">
  1503. <datagrid id="grd_fixasetcdlist" nodeset="/root/main/list/fixasetcd/fixasetcdlist" caption="대분류^중분류^소분류^비품코드^비품명^모델^규격^설치장소^청구부서^구입일자" colsep="^" colwidth="63, 58, 56, 91, 128, 85, 82, 74, 75, 71, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:2px; width:583px; height:310px; ">
  1504. <col ref="lrgnm"/>
  1505. <col ref="mdlnm"/>
  1506. <col ref="smlnm"/>
  1507. <col ref="fixasetcd"/>
  1508. <col ref="goodflaghngnm"/>
  1509. <col ref="goodmodel"/>
  1510. <col ref="goodspec"/>
  1511. <col ref="installplcenm"/>
  1512. <col ref="cntrdeptnm"/>
  1513. <col ref="windd" format="yyyy-mm-dd"/>
  1514. <col ref="lrgcd" visibility="hidden"/>
  1515. <col ref="mdlcd" visibility="hidden"/>
  1516. <col ref="smlcd" visibility="hidden"/>
  1517. <col ref="fixasetcd" visibility="hidden"/>
  1518. <script type="javascript" ev:event="ondblclick">
  1519. <![CDATA[
  1520. //[2008.01.23 HBH] 막음.
  1521. // if (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("deptaprvyn")) == "Y" ||
  1522. // (grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "C" ||
  1523. // grd_goodreq.valueMatrix(grd_goodreq.row, grd_goodreq.colRef("acptflag")) == "Y"))
  1524. // {
  1525. // }else{
  1526. // fMovecd("grd_fixasetcdlist");
  1527. // }
  1528. ]]>
  1529. </script>
  1530. </datagrid>
  1531. </case>
  1532. </switch>
  1533. <button id="button5" class="btn_sw" group="tab" selected="true" style="left:753px; top:103px; width:144px; height:22px; ">
  1534. <caption>부서내 비품코드</caption>
  1535. <toggle case="cse_fixasetcd" ev:event="DOMActivate"/>
  1536. <script type="javascript" ev:event="DOMActivate">
  1537. <![CDATA[
  1538. btn_exceldown.visible = true;
  1539. ]]>
  1540. </script>
  1541. </button>
  1542. <button id="button4" class="btn_sw" group="tab" selected="true" style="left:610px; top:103px; width:144px; height:22px; ">
  1543. <caption>분류코드</caption>
  1544. <toggle case="cse_lrgcd" ev:event="DOMActivate"/>
  1545. <script type="javascript" ev:event="DOMActivate">
  1546. <![CDATA[
  1547. btn_exceldown.visible = false;
  1548. ]]>
  1549. </script>
  1550. </button>
  1551. <caption id="caption16" class="cell_1" style="left:101px; top:149px; width:25px; height:23px; vertical-align:middle; ">대</caption>
  1552. <caption id="caption18" class="cell_1" style="left:269px; top:149px; width:25px; height:23px; vertical-align:middle; ">중</caption>
  1553. <caption id="caption19" class="cell_1" style="left:438px; top:149px; width:25px; height:23px; vertical-align:middle; ">소</caption>
  1554. <button id="btn_search_cd" class="btn2_letter2" style="left:1152px; top:105px; width:42px; height:19px; ">
  1555. <caption>조회</caption>
  1556. <script type="javascript" ev:event="DOMActivate">
  1557. <![CDATA[
  1558. if(swh_select.selectedIndex == 0)
  1559. {
  1560. fInitCodeList();
  1561. }
  1562. else
  1563. {
  1564. misfGridInit(grd_fixasetcdlist);
  1565. model.setValue("/root/send/fixasetcd/goodflag" , model.getValue(ipt_goodflag.attribute("ref")));
  1566. model.setValue("/root/send/fixasetcd/instcd" , model.getValue(opt_instcd.attribute("ref")));
  1567. model.setValue("/root/send/fixasetcd/cntrdeptcd" , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
  1568. submit("TRRFC00201"); //임시로 부서내 비품코드 막음(추후 마이그레션 작업후 주석 풀것
  1569. }
  1570. ]]>
  1571. </script>
  1572. </button>
  1573. <line id="line4" class="line_1" style="x1:610px; y1:96px; x2:1195px; y2:96px; "/>
  1574. <caption id="caption10" class="tit_2" style="left:615px; top:81px; width:100px; height:14px; ">비품코드 조회</caption>
  1575. <caption id="caption20" class="cell_1" visibility="hidden" style="left:123px; top:75px; width:22px; height:23px; vertical-align:middle; ">예산계정</caption>
  1576. <select1 id="cmb_bugtcd" ref="/root/main/goodreq/goodreqlist/bugtcd" class="combo_default" visibility="hidden" appearance="minimal" style="left:145px; top:75px; width:25px; height:19px; ">
  1577. <choices>
  1578. <itemset>
  1579. <label/>
  1580. <value/>
  1581. </itemset>
  1582. </choices>
  1583. </select1>
  1584. <caption id="caption21" class="cell_1" visibility="hidden" style="left:176px; top:75px; width:24px; height:23px; vertical-align:middle; ">연구과제</caption>
  1585. <input id="ipt_stdysubjnm" ref="/root/main/goodreq/goodreqlist/stdysubjnm" class="input_fix" visibility="hidden" appearance="input" style="left:240px; top:75px; width:25px; height:19px; ">
  1586. <script type="javascript" ev:event="xforms-value-changed">
  1587. <![CDATA[
  1588. if(ipt_stdysubjnm.value.length == 0)
  1589. ipt_stdysubjno.value = "";
  1590. else
  1591. rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjnm",
  1592. opt_instcd.value + ",stdysubjnm," + ipt_stdysubjnm.value, "", "stdysubjno,stdysubjnm",
  1593. ipt_stdysubjnm, "SPRSD00260", "","");
  1594. model.refresh();
  1595. ]]>
  1596. </script>
  1597. </input>
  1598. <button id="btn_stdysubjnm" class="icon_search" visibility="hidden" style="left:225px; top:75px; width:16px; height:16px; ">
  1599. <caption/>
  1600. <script type="javascript" ev:event="DOMActivate">
  1601. <![CDATA[
  1602. rszfOpenPopUpListByWndName(ipt_stdysubjno,"","stdysubjno,stdysubjnm","SPRSD00260","instcd","opt_instcd");
  1603. model.refresh();
  1604. ]]>
  1605. </script>
  1606. </button>
  1607. <input id="ipt_stdysubjno" ref="/root/main/goodreq/goodreqlist/stdysubjno" class="input_search" visibility="hidden" maxlength="4" style="left:200px; top:75px; width:25px; height:19px; ">
  1608. <script type="javascript" ev:event="xforms-value-changed">
  1609. <![CDATA[
  1610. if(ipt_stdysubjno.value.length == 0)
  1611. ipt_stdysubjnm.value = "";
  1612. else
  1613. rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjno",
  1614. opt_instcd.value + ",stdysubjno," + ipt_stdysubjno.value, "", "stdysubjno,stdysubjnm",
  1615. ipt_stdysubjno, "SPRSD00260", "","");
  1616. model.refresh();
  1617. ]]>
  1618. </script>
  1619. </input>
  1620. <output id="opt_instcd" ref="/root/send/goodreq/instcd" class="output_fix" visibility="hidden" style="left:305px; top:20px; width:25px; height:19px; "/>
  1621. <output id="opt_instcdnm" ref="/root/send/goodreq/instcdnm" class="output_fix" style="left:100px; top:20px; width:200px; height:19px; "/>
  1622. <caption id="cap_cntrdeptcd" class="cell_1" style="left:0px; top:266px; width:100px; height:22px; vertical-align:middle; ">청구부서</caption>
  1623. <caption id="cap_mngtdeptcd" class="cell_1" style="left:0px; top:290px; width:100px; height:23px; vertical-align:middle; ">사용부서</caption>
  1624. <input id="ipt_cntrdeptcdnm" ref="/root/main/goodreq/goodreqlist/cntrdeptcdnm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:194px; top:268px; width:106px; height:19px; "/>
  1625. <input id="ipt_cntrdeptcd" ref="/root/main/goodreq/goodreqlist/cntrdeptcd" class="input_fix" style="left:103px; top:268px; width:73px; height:19px; ">
  1626. <script type="javascript" ev:event="xforms-value-changed">
  1627. <![CDATA[
  1628. misfSearchDept(ipt_cntrdeptcdnm);
  1629. ]]>
  1630. </script>
  1631. </input>
  1632. <button id="btn_cntrdeptcd" class="icon_search" style="left:177px; top:269px; width:16px; height:16px; ">
  1633. <caption/>
  1634. <script type="javascript" ev:event="DOMActivate">
  1635. <![CDATA[
  1636. var recv_list = "cntrdeptcd,cntrdeptcdnm";
  1637. misfOpenPopUpList("02", ipt_cntrdeptcd,"", recv_list, opt_instcd.value, "instcd") ;
  1638. // 승인권자별 선택할 수 있는 부서 제한
  1639. grd_reqpsnlist.nodeset= "/root/hidden/reqpsnlist[reqdeptcd='"+ipt_cntrdeptcd.value+"']";
  1640. if ((grd_reqpsnlist.rows-grd_reqpsnlist.fixedRows)==0 && !fCheckPurcTeam())
  1641. {
  1642. messageBox("권한이 없는 부서입니다.","");
  1643. ipt_cntrdeptcd.value=ipt_reqdeptcd_search.value;
  1644. ipt_cntrdeptcdnm.value=ipt_reqdeptnm_search.value;
  1645. }
  1646. model.refresh();
  1647. ]]>
  1648. </script>
  1649. </button>
  1650. <input id="ipt_mngtdeptcdnm" ref="/root/main/goodreq/goodreqlist/mngtdeptcdnm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:194px; top:292px; width:106px; height:19px; "/>
  1651. <input id="ipt_mngtdeptcd" ref="/root/main/goodreq/goodreqlist/mngtdeptcd" class="input_fix" style="left:103px; top:292px; width:73px; height:19px; ">
  1652. <script type="javascript" ev:event="xforms-value-changed">
  1653. <![CDATA[
  1654. misfSearchDept(ipt_mngtdeptcdnm);
  1655. ]]>
  1656. </script>
  1657. </input>
  1658. <button id="btn_mngtdeptcd" class="icon_search" style="left:177px; top:294px; width:16px; height:16px; ">
  1659. <caption/>
  1660. <script type="javascript" ev:event="DOMActivate">
  1661. <![CDATA[
  1662. var recv_list = "mngtdeptcd,mngtdeptcdnm";
  1663. misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list, opt_instcd.value, "instcd") ;
  1664. model.refresh();
  1665. ]]>
  1666. </script>
  1667. </button>
  1668. <caption id="caption24" style="left:195px; top:45px; width:15px; height:20px; ">~</caption>
  1669. <input id="ipt_reqtodd_search" ref="/root/send/goodreq/reqtodd" class="input_s_essential" inputtype="date" style="left:210px; top:45px; width:90px; height:19px; ">
  1670. <script type="javascript" ev:event="xforms-value-changed">
  1671. <![CDATA[
  1672. btn_search.dispatch("DOMActivate");
  1673. ]]>
  1674. </script>
  1675. </input>
  1676. <caption id="caption25" class="cell_1" style="left:270px; top:101px; width:80px; height:23px; vertical-align:middle; ">청구일자</caption>
  1677. <caption id="cap_reqtel" class="cell_1" style="left:0px; top:220px; width:100px; height:22px; vertical-align:middle; ">부서 연락처</caption>
  1678. <input id="ipt_reqtel" ref="/root/main/goodreq/goodreqlist/reqtel" style="left:102px; top:221px; width:503px; height:19px; text-align:left; "/>
  1679. <textarea id="txt_cmt" ref="/root/main/goodreq/goodreqlist/cmt" class="input_s_essential" maxlength="100" style="left:102px; top:365px; width:503px; height:75px; ">
  1680. <script type="javascript" ev:event="onmaxlength">
  1681. <![CDATA[
  1682. model.setFocus("txt_cmt");
  1683. messageBox("입력 가능한 글자수 초과","I009");
  1684. ]]>
  1685. </script>
  1686. </textarea>
  1687. <line id="line5" class="line_2" style="x1:0px; y1:312px; x2:605px; y2:312px; "/>
  1688. <line id="line9" class="line_2" style="x1:0px; y1:336px; x2:605px; y2:336px; "/>
  1689. <line id="line13" class="line_2" style="x1:0px; y1:360px; x2:605px; y2:360px; "/>
  1690. <button id="button1" class="btn2_letter2" visibility="hidden" style="left:1108px; top:105px; width:42px; height:19px; ">
  1691. <caption>엑셀</caption>
  1692. <script type="javascript" ev:event="DOMActivate">
  1693. <![CDATA[
  1694. /*
  1695. if(swh_select.selectedIndex == 0)
  1696. {
  1697. messageBox("분류코드 선택시에는 엑셀버튼사용" ,"E001" );
  1698. }
  1699. else {
  1700. misfSaveExcel(grd_fixasetcdlist , "부서내비품코드");
  1701. }
  1702. */
  1703. if( (grd_fixasetcdlist.rows - grd_fixasetcdlist.fixedRows) > 0)
  1704. misfSaveExcel(grd_fixasetcdlist , "부서내비품코드");
  1705. else
  1706. messageBox("엑셀 생성 대상 데이터가" ,"I004" );
  1707. ]]>
  1708. </script>
  1709. </button>
  1710. <caption id="caption7" class="cell_1" style="left:305px; top:266px; width:88px; height:22px; vertical-align:middle; ">예산집행액</caption>
  1711. <caption id="caption22" class="cell_1" style="left:305px; top:290px; width:88px; height:23px; vertical-align:middle; ">예산잔액</caption>
  1712. <button id="btn_addfile" class="btn2_letter5" style="left:413px; top:340px; width:75px; height:19px; ">
  1713. <caption>파일업로드</caption>
  1714. <script type="javascript" ev:event="DOMActivate">
  1715. <![CDATA[
  1716. //첨부파일이 이미 있다면 파일 업로드 가 안되도록 막아버리자.
  1717. if ( model.getValue( ipt_attfilenm.attribute("ref")).length > 0) {
  1718. messageBox( "이미 첨부파일이 존재하여 첨부파일을 저장할수" , "I004" );
  1719. return;
  1720. }
  1721. //행추가를 통한 비품신규청구일경우 파일 업로드막기(저장후에 업로드가능해짐)
  1722. if (model.getValue("/root/main/list/goodreq/goodreqlist["+grd_goodreq.row+"]/reqseqno").length <=0 ) {
  1723. messageBox( "비품청구 저장후에 첨부파일 업로드 하실수" , "I010" );
  1724. return;
  1725. }
  1726. var files = window.fileDialog("open", "|", false);
  1727. var replacepath = "";
  1728. if ( files.length <= 0 ) return;
  1729. model.setValue(ipt_uploadfile.attribute("ref") , files); //전체파일경로와이름을 셋팅
  1730. var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
  1731. model.setValue(ipt_attfilenm.attribute("ref") , filename);
  1732. if (model.getValue( ipt_uploadfile.attribute("ref") ).length >0 && model.getValue( ipt_attfilenm.attribute("ref") ).length>0 ) {
  1733. fAttfileAdd(); //첨부파일 서버로 저장하는 메소드 호출
  1734. }
  1735. //btn_search.dispatch("DOMActivate");
  1736. model.refresh();
  1737. ]]>
  1738. </script>
  1739. </button>
  1740. <button id="btn_downfile" class="btn2_letter8" style="left:495px; top:340px; width:108px; height:19px; ">
  1741. <caption>파일수정/다운로드</caption>
  1742. <script type="javascript" ev:event="DOMActivate">
  1743. <![CDATA[
  1744. //첨부파일이 있는 경우에만 파일 다운로드하는 기능
  1745. // if ( ipt_attfilenm.value != '')
  1746. // {
  1747. //첨부파일 다운로드함수 호출
  1748. fAttfileDown();
  1749. // }else{
  1750. // messageBox("첨부된 파일이 없어서 다운로드 할수" , "I004");
  1751. // }
  1752. ]]>
  1753. </script>
  1754. </button>
  1755. <upload id="upd_uploadfile" nodeset="/root/send/fileupcolumn/fileupload/file" filecount="5" validate="true" style="left:565px; top:290px; width:25px; height:20px; "/>
  1756. <input id="ipt_uploadfile" ref="/root/send/fileupcolumn/fileupload/file" visibility="hidden" style="left:565px; top:315px; width:35px; height:19px; "/>
  1757. <select id="chb_acptflag" ref="/root/send/goodreq/acptflag" visibility="hidden" overflow="visible" appearance="full" style="left:939px; top:21px; width:61px; height:20px; border-style:none; ">
  1758. <choices>
  1759. <item>
  1760. <label>미접수</label>
  1761. <value>N</value>
  1762. </item>
  1763. </choices>
  1764. </select>
  1765. <input id="ipt_reqflag2" ref="/root/send/init/reqflag" visibility="hidden" style="left:75px; top:650px; width:55px; height:19px; "/>
  1766. <input id="ipt_reqaprvflag" ref="/root/send/init/reqaprvflag" visibility="hidden" style="left:195px; top:650px; width:55px; height:19px; "/>
  1767. <input id="ipt_emplno" ref="/root/send/init/emplno" visibility="hidden" style="left:135px; top:650px; width:55px; height:19px; "/>
  1768. <input id="ipt_instcd2" ref="/root/send/init/instcd" visibility="hidden" style="left:15px; top:650px; width:55px; height:19px; "/>
  1769. <datagrid id="grd_reqpsnlist" nodeset="/root/hidden/reqpsnlist" visibility="hidden" caption="청구부서^사원명^청구승인" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:15px; top:575px; width:350px; height:70px; ">
  1770. <col ref="reqdeptcd"/>
  1771. <col ref="emplnm"/>
  1772. <col ref="reqaprvflagnm"/>
  1773. </datagrid>
  1774. <datagrid id="grd_rscsysinft" nodeset="/root/main/RscsysinftLists/rscsysinftlist" visibility="hidden" caption="기관^기관명칭^기관명칭^VER^설치일^가동일^우편번호^주소^구매담당부서^구매담당부서명^구매담당자ID^구매담당자명^구매부서장ID^구매부서장명^구매팀전화번호1^구매팀전화번호2^구매팀FAX^구매최종회계전송일^구매최종마감년월^약제담당부서^약제담당부서명^약제담당자ID^약제담당자명^약제부서장ID^약제부서장명^약제팀전화번호1^약제팀전화번호2^약제팀FAX^약제최종회계전송일^약제최종마감년월^영양담당부서^영양담당부서명^영양담당자ID^영양담당자명^영양부서장ID^영양부서장명^영양팀전화번호1^영양팀전화번호2^영양팀FAX^영양최종회계전송일^영양최종마감년월^수가위원회부서(보험)^수가위원회부서명^연간단가처리일자^연간단가선정여부^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시" colsep="^" colwidth="44, 1, 159, 50, 100, 90, 63, 68, 223, 90, 100, 89, 100, 87, 100, 100, 100, 100, 125, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 116, 100, 92, 100, 100, 100, 100, 100, 100, 100, 100, 118, 100, 120, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:665px; top:200px; width:150px; height:95px; ">
  1775. <col ref="instcd" type="input" style="text-align:center; "/>
  1776. <col ref="instcdnm" visibility="hidden"/>
  1777. <col ref="instnm"/>
  1778. <col ref="version" type="input" style="text-align:center; "/>
  1779. <col ref="installdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  1780. <col ref="operationdt" type="inputdate" format="yyyy-mm-dd" style="text-align:center; "/>
  1781. <col ref="instzip" type="input" style="text-align:center; "/>
  1782. <col ref="instaddr" type="input"/>
  1783. <col ref="purcdept" type="inputbutton" visibility="visible"/>
  1784. <col ref="purcdeptnm" type="output" visibility="hidden"/>
  1785. <col ref="purcdptjobid" type="inputbutton" visibility="hidden"/>
  1786. <col ref="purcdptjobidnm" type="output" visibility="hidden"/>
  1787. <col ref="purcdptmgrid" type="inputbutton" visibility="hidden"/>
  1788. <col ref="purcdptmgridnm" type="output" visibility="hidden"/>
  1789. <col ref="purcdepttel1" type="input" visibility="hidden"/>
  1790. <col ref="purcdepttel2" type="input" visibility="hidden"/>
  1791. <col ref="purcdeptfax" type="input" visibility="hidden"/>
  1792. <col ref="purcacctdate" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
  1793. <col ref="purccloseyymm" type="inputdate" visibility="hidden" format="yyyy-mm"/>
  1794. <col ref="drugdept" type="inputbutton" visibility="hidden"/>
  1795. <col ref="drugdeptnm" type="output" visibility="hidden"/>
  1796. <col ref="drugdptjobid" type="inputbutton" visibility="hidden"/>
  1797. <col ref="drugdptjobidnm" type="output" visibility="hidden"/>
  1798. <col ref="drugdptmgrid" type="inputbutton" visibility="hidden"/>
  1799. <col ref="drugdptmgridnm" type="output" visibility="hidden"/>
  1800. <col ref="drugdepttel1" type="input" visibility="hidden"/>
  1801. <col ref="drugdepttel2" type="input" visibility="hidden"/>
  1802. <col ref="drugdeptfax" type="input" visibility="hidden"/>
  1803. <col ref="drugacctdate" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
  1804. <col ref="drugcloseyymm" type="inputdate" visibility="hidden" format="yyyy-mm"/>
  1805. <col ref="nutrdept" type="inputbutton" visibility="hidden"/>
  1806. <col ref="nutrdeptnm" type="output" visibility="hidden"/>
  1807. <col ref="nutrdptjobid" type="inputbutton" visibility="hidden"/>
  1808. <col ref="nutrdptjobidnm" type="output" visibility="hidden"/>
  1809. <col ref="nutrdptmgrid" type="inputbutton" visibility="hidden"/>
  1810. <col ref="nutrdptmgridnm" type="output" visibility="hidden"/>
  1811. <col ref="nutrdepttel1" type="input" visibility="hidden"/>
  1812. <col ref="nutrdepttel2" type="input" visibility="hidden"/>
  1813. <col ref="nutrdeptfax" type="input" visibility="hidden"/>
  1814. <col ref="nutracctdate" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
  1815. <col ref="nutrcloseyymm" type="inputdate" visibility="hidden" format="yyyy-mm"/>
  1816. <col ref="insucdeptcd" type="inputbutton" visibility="hidden"/>
  1817. <col ref="insucdeptcdnm" type="output" visibility="hidden"/>
  1818. <col ref="yearcostdt" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
  1819. <col checkvalue="Y,N" ref="yearcostyn" type="checkbox" visibility="hidden"/>
  1820. <col ref="fstrgstrid" visibility="hidden"/>
  1821. <col ref="fstrgstdt" visibility="hidden"/>
  1822. <col ref="lastupdtrid" visibility="hidden"/>
  1823. <col ref="lastupdtdt" visibility="hidden"/>
  1824. </datagrid>
  1825. </group>
  1826. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  1827. <button id="button46" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  1828. <caption>초기화</caption>
  1829. <script type="javascript" ev:event="DOMActivate">
  1830. <![CDATA[
  1831. fInitialize()
  1832. ]]>
  1833. </script>
  1834. </button>
  1835. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  1836. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  1837. <caption>저장</caption>
  1838. <script type="javascript" ev:event="DOMActivate">
  1839. <![CDATA[
  1840. if(fCheckSaveData() == false)return;
  1841. if ( grd_goodreq.rows - grd_goodreq.fixedRows == 0) {
  1842. misfGridInit(grd_goodreq);
  1843. misfGridIUD(grd_goodreq, "A");
  1844. model.refresh();
  1845. }
  1846. misfGridRowStatusChange(grd_goodreq,"/root/main/list/goodreq","/root/main/goodreq");
  1847. model.setValue( "/root/main/goodreq/goodreqlist/attfilepathnm" , model.getValue( "/root/send/fileupcolumn/fileupload/file" ) );
  1848. model.refresh();
  1849. if(model.getValue(ipt_installplcecd.attribute("ref")) == "") {
  1850. messageBox("설치장소코드를 선택하여 주세요.", "I");
  1851. btn_installplce.dispatch("DOMActivate");
  1852. return;
  1853. }
  1854. var needAlert = false;
  1855. for(var i=grd_goodreq.fixedRows;i<grd_goodreq.rows;i++){
  1856. if (grd_goodreq.valueMatrix(i , grd_goodreq.colRef("deptaprvyn")) != "Y"){
  1857. needAlert = true;
  1858. }
  1859. }
  1860. model.removenode("/root/temp/selectrow");
  1861. var selectrow = grd_goodreq.row;
  1862. misfSave("TXRSD11101");
  1863. if(needAlert){
  1864. body.disabled = true;
  1865. window.alert( "부서장님의 승인이 필요합니다.", "정보", "64" );
  1866. body.disabled = false;
  1867. }
  1868. if (model.getValue(gvErrorMsgPath + "/type") != "error" ){
  1869. model.makeValue("/root/temp/selectrow", selectrow);
  1870. btn_search.dispatch("DOMActivate");
  1871. }
  1872. //fAttfileAdd(); //첨부파일 서버로 저장하는 메소드 호출
  1873. ]]>
  1874. </script>
  1875. </button>
  1876. <button id="btn_print" class="btn6_letter5" style="left:0; top:3px; width:92px; height:22px; ">
  1877. <caption>청구서출력</caption>
  1878. <script type="javascript" ev:event="DOMActivate">
  1879. <![CDATA[
  1880. exeReportPreview("RPRSD04701", "XMLSTR"); // 기본 폼으로 변경(경북대)
  1881. ]]>
  1882. </script>
  1883. </button>
  1884. </group>
  1885. </xhtml:body>
  1886. </xhtml:html>