SMRSD00500_물품청구관리(성의교정).xrw 70 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : 물품청구관리.xrw
  4. * 설 명 : 물품청구관리
  5. * 설 계 자 : 최학록
  6. * 작 성 자 : 최학록
  7. * 작 성 일 : 2008.06.12
  8. * 수정이력 :
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>물품청구관리_성의교정</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <list>
  20. <goodreq>
  21. <goodreqlist/>
  22. <goodmaxreqno/>
  23. </goodreq>
  24. <reqset>
  25. <reqsetlist/>
  26. </reqset>
  27. <reqmst>
  28. <reqsetmst/>
  29. </reqmst>
  30. </list>
  31. <item/>
  32. <rsdhdeymlist>
  33. <todd/>
  34. </rsdhdeymlist>
  35. <codelist>
  36. <allsizespecid/>
  37. <goodspec/>
  38. </codelist>
  39. <GoodLists>
  40. <goodlist/>
  41. </GoodLists>
  42. <ReqpsnLists>
  43. <reqpsnlist>
  44. <instcd>
  45. </instcd>
  46. <emplno/>
  47. <emplnm/>
  48. <reqdeptcd>
  49. </reqdeptcd>
  50. <reqdeptnm>
  51. </reqdeptnm>
  52. <reqaprvflag>
  53. </reqaprvflag>
  54. <reqflag>
  55. </reqflag>
  56. <fstrgstrid>
  57. </fstrgstrid>
  58. <fstrgstdt>
  59. </fstrgstdt>
  60. <lastupdtrid>
  61. </lastupdtrid>
  62. <lastupdtdt>
  63. </lastupdtdt>
  64. <reqprid/>
  65. <reqpridnm/>
  66. <reqaprvflagnm>
  67. </reqaprvflagnm>
  68. <reqflagnm>
  69. </reqflagnm>
  70. </reqpsnlist>
  71. </ReqpsnLists>
  72. <DeptReqnoLists>
  73. <reqnolist/>
  74. </DeptReqnoLists>
  75. <BugLists>
  76. <bugtlist>
  77. <bugtcd/>
  78. <bugtcdnm/>
  79. <projectid/>
  80. <projectnm/>
  81. <totamt/>
  82. <bugtexpcamt/>
  83. <bugtexecamt/>
  84. <remainder/>
  85. </bugtlist>
  86. </BugLists>
  87. </main>
  88. <send>
  89. <save>
  90. <goodreqlist/>
  91. <autoaprv>
  92. <autoaprvyn/>
  93. <reqnonew/>
  94. <instcd/>
  95. <reqdeptcd/>
  96. <reqdd/>
  97. </autoaprv>
  98. </save>
  99. <goodreq>
  100. <workflag>1</workflag>
  101. <instcd/>
  102. <studyinstcd/>
  103. <reqflag/>
  104. <deliveflag/>
  105. <reqdd/>
  106. <reqpridflag/>
  107. <flag/>
  108. <reqdeptcd/>
  109. <reqdeptnm/>
  110. <reqpsnid/>
  111. <retrmaxreqnoyn/>
  112. <reqno/>
  113. <stdysubjno/>
  114. <stdysubjnm/>
  115. <bugtflag/>
  116. <bugtflagnm/>
  117. <tmp_goodcd/>
  118. <tmp_goodnm/>
  119. <inputmethod/>
  120. <instcdgood/>
  121. <groupbugt/>
  122. <totamt/>
  123. <bugtexpcamt/>
  124. <bugtexecamt/>
  125. <remainder/>
  126. <projectyn/>
  127. <projectid/>
  128. <projectnm/>
  129. <deptcd/>
  130. <supacntcd4/>
  131. <pgoodflag/>
  132. <bugtproject/>
  133. </goodreq>
  134. <chkgoodreq>
  135. <s/>
  136. </chkgoodreq>
  137. <goodflag/>
  138. <lastdatesearch>
  139. <instcd/>
  140. <deldeptcd/>
  141. <reqym/>
  142. </lastdatesearch>
  143. <reqmst>
  144. <instcd/>
  145. <reqdeptcd/>
  146. <reqflag/>
  147. <reqpridflag/>
  148. </reqmst>
  149. <reqset>
  150. <instcd/>
  151. <reqdeptcd/>
  152. <reqprid/>
  153. <goodsetcd/>
  154. <reqflag/>
  155. <goodsetnm/>
  156. </reqset>
  157. <allsize>
  158. <goodcd/>
  159. <instcd/>
  160. <goodspec/>
  161. </allsize>
  162. <goodlist>
  163. <refcond/>
  164. <instcd/>
  165. <goodflag>Y</goodflag>
  166. <goodcd/>
  167. <goodnm/>
  168. <indexnm/>
  169. <indexgb/>
  170. <reqflag/>
  171. <lrgcd/>
  172. <lrgnm/>
  173. <mdlcd/>
  174. <mdlnm/>
  175. <prodcmpycd/>
  176. <prodcmpynm/>
  177. <goodspec/>
  178. <goodmodel/>
  179. <oldcd/>
  180. <reqdeptcd/>
  181. <reqprid/>
  182. <instcdnm/>
  183. <reqflagnm/>
  184. <reqpridnm/>
  185. <reqcheck/>
  186. <purcdeptflag/>
  187. <workflag/>
  188. </goodlist>
  189. <reqpsn>
  190. <instcd/>
  191. <emplno/>
  192. </reqpsn>
  193. </send>
  194. <init>
  195. <CopyData>
  196. <label/>
  197. <value/>
  198. </CopyData>
  199. <ReqDeptLists>
  200. <reqdeptlist>
  201. <label/>
  202. <value/>
  203. </reqdeptlist>
  204. </ReqDeptLists>
  205. <ReqpridLists>
  206. <reqpridlist>
  207. <reqprid>1</reqprid>
  208. <reqpridnm>
  209. <![CDATA[일]]>
  210. </reqpridnm>
  211. </reqpridlist>
  212. <reqpridlist>
  213. <reqprid>4</reqprid>
  214. <reqpridnm>
  215. <![CDATA[월]]>
  216. </reqpridnm>
  217. </reqpridlist>
  218. </ReqpridLists>
  219. <instcd>
  220. <label>성의교정</label>
  221. <value>103</value>
  222. <label>산학협력단</label>
  223. <value>114</value>
  224. </instcd>
  225. <reqselflag>
  226. <label>일반청구</label>
  227. <value>1</value>
  228. <label>정량보충</label>
  229. <value>2</value>
  230. </reqselflag>
  231. <workflag>
  232. <label>청 구</label>
  233. <value>1</value>
  234. <label>반 품</label>
  235. <value>2</value>
  236. </workflag>
  237. <reqdeptcd/>
  238. <reqdeptnm/>
  239. <requserno/>
  240. <requsernm/>
  241. <reqfinaldeptcd/>
  242. <reqfinaldeptnm/>
  243. <reqflag/>
  244. </init>
  245. <hidden/>
  246. <temp/>
  247. <copynode/>
  248. <tempdept>
  249. <tempdeptcd/>
  250. <tempdeptnm/>
  251. </tempdept>
  252. </root>
  253. </instance>
  254. <script type="javascript" ev:event="xforms-ready">
  255. <![CDATA[
  256. fInit();
  257. var cmbworkflagold = ""; //작업구분콤보의 예전값을 가지고 있는 변수
  258. ]]>
  259. </script>
  260. <submission id="TRRSD00415" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/list/goodreq"/>
  261. <submission id="TXRSD00411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  262. <submission id="TXRSD07002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqaprvlist" resultref="/root/temp"/>
  263. <submission id="TRRSC01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/lastdatesearch" resultref="/root/main/rsdhdeymlist"/>
  264. <submission id="TRRSD00211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqmst" resultref="/root/main/list/reqmst"/>
  265. <submission id="TRRSD00210" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqset" resultref="/root/main/list/reqset"/>
  266. <submission id="TRRSD00281" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/allsize" resultref="/root/main/codelist"/>
  267. <submission id="TRRSD00406" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodlist" resultref="/root/main/GoodLists"/>
  268. <submission id="TRRSD00407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqpsn" resultref="/root/main/ReqpsnLists"/>
  269. <submission id="TRRSD00408" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/DeptReqnoLists"/>
  270. <submission id="TRRSD00414" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodreq" resultref="/root/main/BugLists"/>
  271. </model>
  272. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  273. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  274. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  275. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  276. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  277. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  278. <script type="javascript" src="../../../mis/reqweb/js/SMRSD00500.js"/>
  279. </xhtml:head>
  280. <xhtml:body autorefresh="true" guideline="2,799;2,162;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  281. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:23px; ">
  282. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">물품청구관리_성의교정</caption>
  283. <button id="btn_init" class="btn4_letter3" style="left:1115px; top:0px; width:68px; height:22px; ">
  284. <caption>초기화</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. fInitialize();
  288. ]]>
  289. </script>
  290. </button>
  291. </group>
  292. <group id="grp_biz" scroll="auto" style="left:0px; top:21px; width:1195px; height:759px; ">
  293. <group id="grp_sea" style="left:0px; top:2px; width:1195px; height:108px; vertical-align:top; ">
  294. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:107px; background-color:#fffbf2; border-color:#ffd799; "/>
  295. <caption id="caption4" class="search_name" style="left:310px; top:6px; width:86px; height:17px; ">작업구분 :</caption>
  296. <caption id="caption11" class="search_name" style="left:11px; top:6px; width:86px; height:17px; ">기관코드 :</caption>
  297. <caption id="caption16" class="search_name" style="left:310px; top:31px; width:86px; height:17px; ">청구일자 :</caption>
  298. <select1 id="cmb_workflag" ref="/root/send/goodreq/workflag" class="combo_default" appearance="minimal" style="left:395px; top:5px; width:164px; height:19px; ">
  299. <choices>
  300. <item>
  301. <label>일반청구</label>
  302. <value>1</value>
  303. </item>
  304. <item>
  305. <label>반납청구</label>
  306. <value>2</value>
  307. </item>
  308. <item>
  309. <label>상비품청구</label>
  310. <value>3</value>
  311. </item>
  312. <item>
  313. <label>상비품반납</label>
  314. <value>4</value>
  315. </item>
  316. </choices>
  317. <script type="javascript" ev:event="xforms-value-changed">
  318. <![CDATA[
  319. fWorkFlagChange();
  320. ]]>
  321. </script>
  322. <script type="javascript" ev:event="onclick">
  323. <![CDATA[
  324. cmbworkflagold = cmb_workflag.value; //작업구분콤보의 변경전 값을 변수에 저장함
  325. ]]>
  326. </script>
  327. </select1>
  328. <select1 id="cmb_reqpridflag" ref="/root/send/goodreq/reqpridflag" class="combo_default" appearance="minimal" style="left:395px; top:54px; width:100px; height:19px; ">
  329. <choices>
  330. <itemset nodeset="/root/init/ReqpridLists/reqpridlist">
  331. <label ref="label"/>
  332. <value ref="value"/>
  333. </itemset>
  334. </choices>
  335. <script type="javascript" ev:event="xforms-value-changed">
  336. <![CDATA[
  337. misfGridInit(grd_goodreq);
  338. fSetReqAuth();
  339. // fDeptReqNoQuery(); // 청구부서별 청구번호를 조회한다 [20090129 YYJ] 중복 항목으로 제외 처리
  340. if (cmb_reqno.value != "")
  341. btn_search.dispatch("DOMActivate");
  342. ]]>
  343. </script>
  344. </select1>
  345. <output id="opt_requsernm" ref="/root/init/requsernm" class="output_fix" appearance="output" style="left:160px; top:54px; width:106px; height:19px; "/>
  346. <output id="opt_requser" ref="/root/init/requserno" class="output_fix" appearance="output" style="left:96px; top:54px; width:63px; height:19px; "/>
  347. <output id="opt_reqfinaldept" ref="/root/init/reqfinaldeptcd" class="output_fix" visibility="hidden" appearance="output" style="left:515px; top:5px; width:28px; height:19px; "/>
  348. <line id="line14" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:97px; "/>
  349. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:1120px; top:35px; width:56px; height:22px; text-align:left; ">
  350. <caption>조회</caption>
  351. <script type="javascript" ev:event="DOMActivate">
  352. <![CDATA[
  353. fSearchData();
  354. ]]>
  355. </script>
  356. </button>
  357. <select1 id="rdo_inputmethod" ref="/root/send/goodreq/inputmethod" disabled="true" appearance="full" cellspacing="10" cols="2" rows="1" overflow="visible" style="left:96px; top:79px; width:169px; height:20px; border-style:none; ">
  358. <choices>
  359. <item>
  360. <label>일반청구</label>
  361. <value>1</value>
  362. </item>
  363. <item>
  364. <label>정량보충</label>
  365. <value>2</value>
  366. </item>
  367. </choices>
  368. <script type="javascript" ev:event="xforms-value-changed">
  369. <![CDATA[
  370. /*------------------------------------------------------------------------------------------------
  371. * 일반청구 와 정량보충에 따라서 col을 control한다.
  372. ------------------------------------------------------------------------------------------------*/
  373. if (model.getValue(rdo_inputmethod.attribute("ref"))=="1")
  374. {
  375. grd_goodreq.colDisabled(grd_goodreq.colRef("stocqty")) = true;
  376. grd_goodreq.colDisabled(grd_goodreq.colRef("reqqty")) = false;
  377. }
  378. else
  379. {
  380. grd_goodreq.colDisabled(grd_goodreq.colRef("stocqty")) = false;
  381. grd_goodreq.colDisabled(grd_goodreq.colRef("reqqty")) = true;
  382. }
  383. ]]>
  384. </script>
  385. </select1>
  386. <caption id="caption1" class="search_name" style="left:11px; top:81px; width:86px; height:17px; ">입력방식 :</caption>
  387. <caption id="caption3" class="search_name" style="left:310px; top:55px; width:86px; height:17px; ">청구부서 :</caption>
  388. <output id="ipt_todd" ref="/root/main/rsdhdeymlist/todd" class="output_fix" format="yyyy-mm-dd" style="left:395px; top:31px; width:69px; height:19px; color:#ff0000; text-align:center; "/>
  389. <select1 id="cmb_reqdeptcd" ref="/root/send/goodreq/reqdeptcd" class="combo_default" appearance="minimal" style="left:395px; top:54px; width:166px; height:19px; ">
  390. <choices>
  391. <itemset nodeset="/root/init/ReqDeptLists/reqdeptlist">
  392. <label ref="label"/>
  393. <value ref="value"/>
  394. </itemset>
  395. </choices>
  396. <script type="javascript" ev:event="xforms-value-changed">
  397. <![CDATA[
  398. misfGridInit(grd_goodreq);
  399. model.setValue(cmb_groupbugt.attribute("ref"), "");
  400. cmb_groupbugt.dispatch("xforms-value-changed");
  401. if (btn_reqset.selected)
  402. fReqSetList() ; // 청구Set목록 조회
  403. fDeptReqNoQuery();
  404. if (cmb_reqno.value != "")
  405. btn_search.dispatch("DOMActivate");
  406. ]]>
  407. </script>
  408. </select1>
  409. <select1 id="cmb_hidden" appearance="minimal" style="left:505px; top:31px; width:55px; height:19px; "/>
  410. <select1 id="cmb_reqno" ref="/root/send/goodreq/reqno" class="combo_default" appearance="minimal" style="left:505px; top:31px; width:55px; height:19px; ">
  411. <choices>
  412. <itemset nodeset="/root/main/DeptReqnoLists/reqnolist">
  413. <label ref="reqno"/>
  414. <value ref="reqno"/>
  415. </itemset>
  416. </choices>
  417. <script type="javascript" ev:event="xforms-value-changed">
  418. <![CDATA[
  419. if (fCheckRetrieveData(false) == false)return;
  420. misfGridInit(grd_goodreq); // Data Clear
  421. // btn_search.dispatch("DOMActivate");
  422. ]]>
  423. </script>
  424. </select1>
  425. <select id="chk_reqnonew" ref="/root/send/save/autoaprv/reqnonew" overflow="visible" appearance="full" style="left:568px; top:32px; width:50px; height:15px; font-weight:bold; border-style:none; ">
  426. <choices>
  427. <item>
  428. <label>신규</label>
  429. <value>Y</value>
  430. </item>
  431. </choices>
  432. <script type="javascript" ev:event="xforms-value-changed">
  433. <![CDATA[
  434. if (chk_reqnonew.value == "Y" )
  435. cmb_reqno.value ="";
  436. fNewReqNo(); // 신규생성
  437. cmb_reqno.refresh();
  438. ]]>
  439. </script>
  440. </select>
  441. <input id="ipt_reqddnew" ref="/root/send/save/autoaprv/reqdd" class="input_s_essential" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:395px; top:31px; width:94px; height:19px; color:#ff0000; ">
  442. <script type="javascript" ev:event="xforms-value-changed">
  443. <![CDATA[
  444. if (model.getValue(ipt_reqddnew.attribute("ref")) < getCurrentDate()) {
  445. var nowdeptcd = rszfGetPurcDeptCd( getUserInfo("dutplceinstcd") );
  446. if (nowdeptcd != getUserInfo("dutplcecd") ) {
  447. messageBox("신규의 경우는 현재일자 보다 작은 청구일자를 입력 ", "C001");
  448. ipt_reqddnew.value = getCurrentDate();
  449. }
  450. }
  451. ]]>
  452. </script>
  453. </input>
  454. <input id="ipt_reqdd" ref="/root/send/goodreq/reqdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:395px; top:31px; width:94px; height:19px; ">
  455. <script type="javascript" ev:event="xforms-value-changed">
  456. <![CDATA[
  457. // 청구부서별 청구번호를 조회한다
  458. misfGridInit(grd_goodreq);
  459. fDeptReqNoQuery();
  460. //if (cmb_reqno.value != "")
  461. // btn_search.dispatch("DOMActivate");
  462. ]]>
  463. </script>
  464. </input>
  465. <caption id="caption9" class="search_name" style="left:11px; top:55px; width:86px; height:17px; ">청 구 자 :</caption>
  466. <select1 id="rdo_instcd" ref="/root/send/goodreq/instcd" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:96px; top:6px; width:170px; height:20px; border-style:none; ">
  467. <choices>
  468. <item>
  469. <label>성의교정</label>
  470. <value>103</value>
  471. </item>
  472. <item>
  473. <label>산학협력단</label>
  474. <value>114</value>
  475. </item>
  476. </choices>
  477. <script type="javascript" ev:event="xforms-value-changed">
  478. <![CDATA[
  479. fInstcdChange(rdo_instcd.value);
  480. ]]>
  481. </script>
  482. </select1>
  483. <output id="opt_instcdgood" ref="/root/send/goodreq/instcdgood" visibility="hidden" style="left:215px; top:6px; width:55px; height:19px; "/>
  484. <output id="opt_projectyn" ref="/root/send/goodreq/projectyn" style="left:545px; top:5px; width:10px; height:19px; "/>
  485. <input id="ipt_stdysubjnm" ref="/root/send/goodreq/stdysubjnm" class="input_fix" appearance="input" style="left:521px; top:79px; width:147px; height:19px; ">
  486. <script type="javascript" ev:event="xforms-value-changed">
  487. <![CDATA[
  488. if(ipt_stdysubjnm.value.length == 0)
  489. {
  490. ipt_stdysubjno.value = "";
  491. }else{
  492. // var fprojectyn = model.getValue( cmb_bugtflag.choices.itemset.attribute("nodeset") + "[" + (cmb_bugtflag.focusIndex+1) + "]/projectyn" );
  493. rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjnm,reqdd",
  494. rd7o_instcd.value + ",stdysubjnm," + ipt_stdysubjnm.value + "," + ipt_reqdd.value, "", "stdysubjno,stdysubjnm",
  495. ipt_stdysubjnm, "SPRSD00260", "instcd,reqdd", rdo_instcd.value + "," + ipt_reqdd.value);
  496. }
  497. model.refresh();
  498. ]]>
  499. </script>
  500. </input>
  501. <input id="ipt_stdysubjno" ref="/root/send/goodreq/stdysubjno" class="input_search" maxlength="4" style="left:395px; top:79px; width:104px; height:19px; ">
  502. <script type="javascript" ev:event="xforms-value-changed">
  503. <![CDATA[
  504. if(ipt_stdysubjno.value.length == 0)
  505. {
  506. ipt_stdysubjnm.value = "";
  507. }else{
  508. // var fprojectyn = model.getValue( cmb_bugtflag.choices.itemset.attribute("nodeset") + "[" + (cmb_bugtflag.focusIndex+1) + "]/projectyn" );
  509. rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjno,reqdd",
  510. rdo_instcd.value + ",stdysubjno," + ipt_stdysubjno.value + "," + ipt_reqdd.value, "", "stdysubjno,stdysubjnm",
  511. ipt_stdysubjno, "SPRSD00260", "instcd,reqdd", rdo_instcd.value + "," + ipt_reqdd.value);
  512. }
  513. model.refresh();
  514. ]]>
  515. </script>
  516. </input>
  517. <caption id="caption2" class="search_name" style="left:310px; top:81px; width:86px; height:17px; ">연구과제 :</caption>
  518. <button id="btn_stdysubjnm" class="icon_search" style="left:501px; top:79px; width:16px; height:16px; ">
  519. <caption/>
  520. <script type="javascript" ev:event="DOMActivate">
  521. <![CDATA[
  522. // var fprojectyn = model.getValue( cmb_bugtflag.choices.itemset.attribute("nodeset") + "[" + (cmb_bugtflag.focusIndex+1) + "]/projectyn" );
  523. rszfOpenPopUpListByWndName(ipt_stdysubjno,"","stdysubjno,stdysubjnm","SPRSD00260","instcd,reqdd", rdo_instcd.value + "," + ipt_reqdd.value);
  524. model.refresh();
  525. ]]>
  526. </script>
  527. </button>
  528. <caption id="caption18" class="search_name" style="left:695px; top:5px; width:86px; height:17px; ">계 정 :</caption>
  529. <select1 id="cmb_groupbugt" ref="/root/send/goodreq/groupbugt" class="combo_default" appearance="minimal" style="left:785px; top:5px; width:104px; height:19px; ">
  530. <choices>
  531. <itemset>
  532. <label/>
  533. <value/>
  534. </itemset>
  535. </choices>
  536. <script type="javascript" ev:event="xforms-value-changed">
  537. <![CDATA[
  538. fAcctDataClear();
  539. if (cmb_groupbugt.value !="") {
  540. model.setValue("/root/send/goodreq/deptcd" , cmb_reqdeptcd.value);
  541. model.setValue("/root/send/goodreq/supacntcd4", cmb_groupbugt.value);
  542. submit("TRRSD00414");
  543. }
  544. model.refresh();
  545. ]]>
  546. </script>
  547. </select1>
  548. <output id="opt_remainder" ref="/root/send/goodreq/remainder" class="output_fix" format="#,###" style="left:1020px; top:79px; width:78px; height:19px; text-align:right; "/>
  549. <output id="opt_totamt" ref="/root/send/goodreq/totamt" class="output_fix" format="#,###" style="left:1020px; top:6px; width:78px; height:19px; text-align:right; "/>
  550. <output id="opt_projectnm" ref="/root/send/goodreq/projectnm" class="output_fix" style="left:840px; top:56px; width:110px; height:19px; "/>
  551. <output id="opt_bugtexpcamt" ref="/root/send/goodreq/bugtexpcamt" class="output_fix" format="#,###" style="left:1020px; top:31px; width:78px; height:19px; text-align:right; "/>
  552. <caption id="caption24" style="left:962px; top:6px; width:54px; height:20px; font-weight:bold; ">예산편성</caption>
  553. <caption id="caption27" style="left:975px; top:80px; width:45px; height:20px; font-weight:bold; ">가능액</caption>
  554. <output id="opt_bugtexecamt" ref="/root/send/goodreq/bugtexecamt" class="output_fix" format="#,###" style="left:1020px; top:55px; width:78px; height:19px; text-align:right; "/>
  555. <caption id="caption28" style="left:988px; top:31px; width:28px; height:20px; font-weight:bold; ">추산</caption>
  556. <caption id="caption30" style="left:988px; top:56px; width:28px; height:20px; font-weight:bold; ">집행</caption>
  557. <output id="opt_projectid" ref="/root/send/goodreq/projectid" class="output_fix" style="left:785px; top:56px; width:50px; height:19px; "/>
  558. <select1 id="cmb_studyinstcd" ref="/root/send/goodreq/studyinstcd" appearance="minimal" style="left:96px; top:31px; width:170px; height:19px; ">
  559. <choices>
  560. <itemset>
  561. <label/>
  562. <value/>
  563. </itemset>
  564. </choices>
  565. <script type="javascript" ev:event="xforms-value-changed">
  566. <![CDATA[
  567. btn_search.dispatch("DOMActivate");
  568. // misfGridInit(grd_goodreq);
  569. //
  570. // rszfUserReqFlagList(cmb_reqflag, opt_instcdtemp.value, getUserInfo("userid"),"1","S"); // preqpgmgubun : '1' :구매재고 , S :청구ALL
  571. // rszfGridComboBugtList(grd_goodreq,"bugtcd", opt_instcdtemp.value);
  572. ]]>
  573. </script>
  574. </select1>
  575. <caption id="caption31" class="search_name" style="left:11px; top:31px; width:86px; height:17px; ">연구기관 :</caption>
  576. <caption id="caption32" style="left:490px; top:33px; width:15px; height:20px; font-weight:bold; ">~</caption>
  577. <caption id="caption7" class="search_name" style="left:695px; top:56px; width:86px; height:17px; ">프로젝트 :</caption>
  578. <caption id="caption29" class="search_name" style="left:695px; top:31px; width:86px; height:17px; ">예산계정 :</caption>
  579. <button id="btn_purcdept" class="btn1_letter2" navindex="7" visibility="hidden" style="left:565px; top:52px; width:56px; height:22px; text-align:left; ">
  580. <caption>조회</caption>
  581. <script type="javascript" ev:event="DOMActivate">
  582. <![CDATA[
  583. cmb_reqno.value = "";
  584. chk_reqnonew.value = "Y";
  585. fSearchData("P");
  586. if (grd_goodreq.rows > 1) {
  587. chk_reqnonew.dispatch("xforms-value-changed");
  588. }
  589. // fNewReqNo(); // 신규생성
  590. ]]>
  591. </script>
  592. </button>
  593. <output id="opt_bugtflag" ref="/root/send/goodreq/bugtflag" class="output_fix" style="left:785px; top:30px; width:85px; height:19px; "/>
  594. <select1 id="cmb_bugtflag" ref="/root/send/goodreq/bugtproject" class="combo_default" appearance="minimal" style="left:785px; top:30px; width:166px; height:19px; ">
  595. <choices>
  596. <itemset nodeset="/root/main/BugLists/bugtlist">
  597. <label ref="bugtprojectnm"/>
  598. <value ref="bugtproject"/>
  599. </itemset>
  600. </choices>
  601. <script type="javascript" ev:event="xforms-value-changed">
  602. <![CDATA[
  603. fBugtflagChange();
  604. ]]>
  605. </script>
  606. </select1>
  607. </group>
  608. <switch id="swt_search" style="left:1px; top:141px; width:583px; height:615px; ">
  609. <case id="gd_set" style="left:0px; top:0px; width:581px; height:613px; ">
  610. <datagrid id="grd_setlist" nodeset="/root/main/list/reqmst/reqsetmst" caption="기관코드^청구부서^청구주기^청구주기^청구SET명^물품구분^물품코드^물품명^청구량^청구단위^setcd" colsep="^" colwidth="0, 0, 0, 0, 257, 0, 0, 0, 0, 0, 0" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:5px; top:25px; width:300px; height:125px; ">
  611. <col ref="instcd" visibility="hidden"/>
  612. <col ref="reqdeptcd" visibility="hidden"/>
  613. <col ref="reqprid" visibility="hidden"/>
  614. <col ref="reqprnm" visibility="hidden"/>
  615. <col ref="goodsetnm"/>
  616. <col ref="goodflag" visibility="hidden"/>
  617. <col ref="goodcd" visibility="hidden"/>
  618. <col ref="goodnm" visibility="hidden"/>
  619. <col ref="goodqty" visibility="hidden"/>
  620. <col ref="requnit" visibility="hidden"/>
  621. <col ref="goodsetcd" visibility="hidden"/>
  622. <script type="javascript" ev:event="onrowchanged">
  623. <![CDATA[
  624. fReqSetRead(grd_setlist.row);
  625. ]]>
  626. </script>
  627. </datagrid>
  628. <line id="line3" class="line_1" style="x1:5px; y1:20px; x2:305px; y2:20px; "/>
  629. <caption id="caption17" class="tit_2" style="left:5px; top:5px; width:100px; height:13px; vertical-align:middle; ">부서 청구SET</caption>
  630. <line id="line1" class="line_1" style="x1:5px; y1:180px; x2:579px; y2:180px; "/>
  631. <datagrid id="grd_reqset" nodeset="/root/main/list/reqset/reqsetlist" caption="^기관코드^청구부서^청구주기^물품구분^물품코드^물품코드^물품명^규격^모델^포장구성단위^제조원^주기" colsep="^" colwidth="19, 0, 0, 0, 0, 63, 26, 195, 50, 56, 90, 58, 50, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 100" dataheight="25" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:185px; width:575px; height:428px; ">
  632. <col ref="select" type="checkbox"/>
  633. <col ref="instcd"/>
  634. <col ref="reqdeptcd"/>
  635. <col ref="reqprid"/>
  636. <col ref="goodflagnm"/>
  637. <col ref="goodcd"/>
  638. <col ref="allsizespecid" visibility="hidden"/>
  639. <col ref="goodnm"/>
  640. <col ref="goodspec"/>
  641. <col ref="goodmodel"/>
  642. <col ref="constunit"/>
  643. <col ref="prodcmpynm"/>
  644. <col ref="reqpridnm"/>
  645. <col ref="goodqty" visibility="hidden"/>
  646. <col ref="prodcmpynm" visibility="hidden"/>
  647. <col ref="reqflagnm" visibility="hidden"/>
  648. <col ref="purcunit" visibility="hidden"/>
  649. <col ref="minexch" visibility="hidden"/>
  650. <col ref="stocqty" visibility="hidden"/>
  651. <col ref="ddavguseqty" visibility="hidden"/>
  652. <col ref="goodsetnm" visibility="hidden"/>
  653. <col ref="goodsetcd" visibility="hidden"/>
  654. <col ref="goodflag" visibility="hidden"/>
  655. <col ref="allsizeyn" visibility="hidden"/>
  656. <col ref="allsizespecid" visibility="hidden"/>
  657. <col ref="allsizespecidnm" visibility="hidden"/>
  658. <script type="javascript" ev:event="onclick">
  659. <![CDATA[
  660. if (grd_reqset.row < 1 ) return;
  661. if ((model.getValue(grd_reqset.nodeset + "[" + grd_reqset.row + "]/select" ) == "true" ) &&
  662. (model.getValue(grd_reqset.nodeset + "[" + grd_reqset.row + "]/reqprid") != cmb_reqpridflag.value)) {
  663. model.setValue(grd_reqset.nodeset + "[" + grd_reqset.row + "]/select" , "false");
  664. alert("청구불가능!! 청구주기를 확인하십시요 !!");
  665. }
  666. // reqmthd 청구방법 1:처방,2:정량,3:일반
  667. // purcflag 구매구분 1:구매,2:수탁,3:가납
  668. if (cmb_workflag.value ==3 || cmb_workflag.value ==4 || cmb_workflag.value ==5 ) {
  669. if ((model.getValue(grd_reqset.nodeset + "[" + grd_reqset.row + "]/reqmthd" ) != "1" ) &&
  670. (model.getValue(grd_reqset.nodeset + "[" + grd_reqset.row + "]/purcflag") != "2") ) {
  671. model.setValue(grd_reqset.nodeset + "[" + grd_reqset.row + "]/select" , "false");
  672. alert("상비품이 아닙니다. 확인하십시요!!");
  673. }
  674. }
  675. ]]>
  676. </script>
  677. </datagrid>
  678. <caption id="caption5" class="tit_2" style="left:5px; top:165px; width:145px; height:13px; vertical-align:middle; ">부서 청구SET 물품</caption>
  679. <button id="btn_apply" class="btn4_letter2" style="left:522px; top:155px; width:56px; height:22px; ">
  680. <caption>선택</caption>
  681. <script type="javascript" ev:event="DOMActivate">
  682. <![CDATA[
  683. // 선택물품을 적용하는 처리하는 함수
  684. fSelectDataApply(grd_reqset, grd_goodreq, "goodreqlist", "goodqty");
  685. ]]>
  686. </script>
  687. </button>
  688. </case>
  689. <case id="gd_find" selected="true" style="left:0px; top:0px; width:582px; height:613px; ">
  690. <group id="group2" style="left:3px; top:3px; width:576px; height:113px; ">
  691. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:574px; height:112px; "/>
  692. <caption id="caption12" class="search_name" style="left:5px; top:24px; width:86px; height:17px; ">대 분 류 :</caption>
  693. <select1 id="ipt_lrgcd" ref="/root/send/goodlist/lrgcd" appearance="minimal" style="left:91px; top:24px; width:152px; height:19px; ">
  694. <choices>
  695. <itemset>
  696. <label/>
  697. <value/>
  698. </itemset>
  699. </choices>
  700. <script type="javascript" ev:event="xforms-value-changed">
  701. <![CDATA[
  702. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), ipt_lrgcd.value, "", "ipt_mdlcd", "", "M", "Y");
  703. model.refresh();
  704. ]]>
  705. </script>
  706. </select1>
  707. <caption id="caption15" class="search_name" style="left:5px; top:46px; width:86px; height:17px; ">중 분 류 :</caption>
  708. <select1 id="ipt_mdlcd" ref="/root/send/goodlist/mdlcd" appearance="minimal" style="left:91px; top:45px; width:152px; height:19px; ">
  709. <choices>
  710. <itemset>
  711. <label/>
  712. <value/>
  713. </itemset>
  714. </choices>
  715. </select1>
  716. <caption id="caption10" class="search_name" style="left:5px; top:89px; width:86px; height:17px; ">물 품 명 :</caption>
  717. <input id="ipt_goodnm" ref="/root/send/goodlist/goodnm" class="input_s_essential" style="left:91px; top:89px; width:475px; height:19px; ">
  718. <script type="javascript" ev:event="onkeyup">
  719. <![CDATA[
  720. inputEnterKey("btn_search", "DOMActivate");
  721. ]]>
  722. </script>
  723. <hint>
  724. <![CDATA[조회구분을 먼저선택하세요!]]>
  725. </hint>
  726. </input>
  727. <input id="ipt_oldcd_search" ref="/root/send/goodlist/oldcd" class="input_search" maxlength="12" style="left:345px; top:67px; width:65px; height:19px; ">
  728. <hint>
  729. <![CDATA[구 MIS시스템 앞자리를 구분없이 입력하세요(70101)]]>
  730. </hint>
  731. </input>
  732. <caption id="caption22" class="search_name" style="left:259px; top:68px; width:83px; height:17px; ">구 자 재 :</caption>
  733. <caption id="caption23" style="left:415px; top:67px; width:58px; height:20px; ">ex) 70101</caption>
  734. <button id="btn_prodcmpycd" class="icon_search" style="left:416px; top:47px; width:16px; height:16px; ">
  735. <caption/>
  736. <script type="javascript" ev:event="DOMActivate">
  737. <![CDATA[
  738. rszfOpenPopUpListByWndName(ipt_prodcmpycd,"","prodcmpycd,prodcmpynm","SPRSD00160","","");
  739. model.refresh();
  740. ]]>
  741. </script>
  742. </button>
  743. <caption id="caption20" class="search_name" style="left:259px; top:45px; width:86px; height:17px; ">제조회사 :</caption>
  744. <input id="ipt_prodcmpynm" ref="/root/send/goodlist/prodcmpynm" class="input_search" style="left:435px; top:45px; width:134px; height:19px; ">
  745. <script type="javascript" ev:event="xforms-value-changed">
  746. <![CDATA[
  747. if(ipt_prodcmpynm.value != "")
  748. {
  749. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpynm,," + model.getValue(ipt_prodcmpynm.attribute("ref")) ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  750. }else{
  751. ipt_prodcmpycd.value = "";
  752. }
  753. model.refresh();
  754. ]]>
  755. </script>
  756. </input>
  757. <input id="ipt_prodcmpycd" ref="/root/send/goodlist/prodcmpycd" class="input_default" style="left:345px; top:45px; width:65px; height:19px; ">
  758. <script type="javascript" ev:event="xforms-value-changed">
  759. <![CDATA[
  760. if(ipt_prodcmpycd.value != ""){
  761. rszfValidationCheck("TRRSD00161", "prodcmpylist", "refcond,prodcmpycd,prodcmpynm","prodcmpycd," + model.getValue(ipt_prodcmpycd.attribute("ref")) + "," ,"","prodcmpycd,prodcmpynm" ,ipt_prodcmpycd,"SPRSD00160","","");
  762. }else{
  763. ipt_prodcmpynm.value ="";
  764. }
  765. model.refresh();
  766. ]]>
  767. </script>
  768. </input>
  769. <caption id="caption21" class="search_name" style="left:259px; top:24px; width:86px; height:17px; ">모 델 :</caption>
  770. <input id="ipt_goodspec" ref="/root/send/goodlist/goodspec" class="input_default" style="left:345px; top:3px; width:225px; height:19px; "/>
  771. <input id="ipt_goodmodel" ref="/root/send/goodlist/goodmodel" class="input_default" maxlength="150" style="left:345px; top:24px; width:225px; height:19px; "/>
  772. <caption id="caption19" class="search_name" style="left:259px; top:3px; width:86px; height:17px; ">규 격 :</caption>
  773. <caption id="caption14" class="search_name" style="left:5px; top:3px; width:86px; height:17px; ">청구구분 :</caption>
  774. <select1 id="cmb_reqflag" ref="/root/init/reqflag" class="combo_default" appearance="minimal" style="left:91px; top:3px; width:152px; height:19px; ">
  775. <choices>
  776. <itemset nodeset="/root/init/reqflag">
  777. <label ref="reqflagnm"/>
  778. <value ref="reqflag"/>
  779. </itemset>
  780. </choices>
  781. <script type="javascript" ev:event="xforms-value-changed">
  782. <![CDATA[
  783. ipt_mdlcd.value = "";
  784. fReqFagChange(cmb_reqflag.value);
  785. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "ipt_lrgcd", "", "L","Y");
  786. ]]>
  787. </script>
  788. </select1>
  789. <input id="cmb_goodflag" ref="/root/send/goodlist/goodflag" class="input_default" navindex="1" visibility="hidden" appearance="minimal" style="left:426px; top:89px; width:120px; height:19px; ">
  790. <script type="javascript" ev:event="xforms-value-changed">
  791. <![CDATA[
  792. rszfLMSComboList(model.getValue(cmb_goodflag.attribute("ref")), "", "", "cmb_lrgcd", "", "L");
  793. // addComboItem("cmb_lrgcd", "전체", "*", "above");
  794. cmb_lrgcd.select(0);
  795. // btn_search.dispatch("DOMActivate");
  796. ]]>
  797. </script>
  798. </input>
  799. <input id="ipt_goodcd" ref="/root/send/goodlist/goodcd" class="input_s_essential" style="left:91px; top:67px; width:152px; height:19px; ">
  800. <script type="javascript" ev:event="onkeyup">
  801. <![CDATA[
  802. inputEnterKey("btn_search", "DOMActivate");
  803. ]]>
  804. </script>
  805. <hint>
  806. <![CDATA[조회구분을 먼저선택하세요!]]>
  807. </hint>
  808. </input>
  809. <caption id="caption13" class="search_name" style="left:5px; top:68px; width:86px; height:17px; ">물품코드 :</caption>
  810. </group>
  811. <!--
  812. <line id="lin_goodlist" class="line_1" style="x1:2px; y1:280px; x2:578px; y2:280px; "/>
  813. <datagrid id="grd_goodlist" nodeset="/root/main/GoodLists/goodlist" class="grd_agtplcelist" caption="^코드^물품명^제조회사코드^규격^물품한글명^물품영문명^모델^제조회사^기관코드^물품구분^최소청구량^기준량^재고량^사용자수량^단위^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^a" colsep="^" colwidth="20, 73, 170, 0, 69, 0, 0, 56, 73, 0, 0, 67, 50, 49, 0, 50, 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, 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, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="never" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:2px; top:285px; width:576px; height:372px; ">
  814. -->
  815. <line id="lin_goodlist" class="line_1" style="x1:3px; y1:144px; x2:579px; y2:143px; "/>
  816. <datagrid id="grd_goodlist" nodeset="/root/main/GoodLists/goodlist" class="grd_agtplcelist" caption="^물품코드^물품코드^물품명^제조회사^규격^주기^모델^제조회사^기관코드^물품구분^최소청구량^기준량^재고량^사용자수량^포장구성단위^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^a" colsep="^" colwidth="20, 75, 25, 170, 0, 44, 44, 44, 65, 0, 0, 69, 0, 0, 0, 116, 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, 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, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:3px; top:149px; width:576px; height:463px; ">
  817. <col ref="select" type="checkbox"/>
  818. <col ref="goodcd" type="output"/>
  819. <col ref="allsizespecid" visibility="hidden"/>
  820. <col ref="goodnm"/>
  821. <col ref="prodcmpycd" visibility="hidden"/>
  822. <col ref="goodspec"/>
  823. <col ref="reqpridnm"/>
  824. <col ref="goodmodel"/>
  825. <col ref="prodcmpynm"/>
  826. <col ref="instcd" visibility="hidden"/>
  827. <col ref="goodflag" visibility="hidden"/>
  828. <col ref="minexch" style="text-align:right; "/>
  829. <col ref="safestocqty"/>
  830. <col ref="stocqty"/>
  831. <col ref="userqty" visibility="hidden"/>
  832. <col ref="constunit"/>
  833. <col ref="todd" visibility="hidden"/>
  834. <col ref="useyn" visibility="hidden"/>
  835. <col ref="fromdd" visibility="hidden"/>
  836. <col ref="asetflag" visibility="hidden"/>
  837. <col ref="lrgcd" visibility="hidden"/>
  838. <col ref="lrgnm" visibility="hidden"/>
  839. <col ref="mdlcd" visibility="hidden"/>
  840. <col ref="mdlnm" visibility="hidden"/>
  841. <col ref="smlcd" visibility="hidden"/>
  842. <col ref="smlnm" visibility="hidden"/>
  843. <col ref="proddrugsetflag" visibility="hidden"/>
  844. <col ref="winacnt" visibility="hidden"/>
  845. <col ref="winacntnm" visibility="hidden"/>
  846. <col ref="amtacnt" visibility="hidden"/>
  847. <col ref="amtacntnm" visibility="hidden"/>
  848. <col ref="mainmngtdeptcd" visibility="hidden"/>
  849. <col ref="mainmngtdeptnm" visibility="hidden"/>
  850. <col ref="mainusedeptcd" visibility="hidden"/>
  851. <col ref="mainusedeptnm" visibility="hidden"/>
  852. <col ref="purclnkgoodcd" visibility="hidden"/>
  853. <col ref="stocmngtflag" visibility="hidden"/>
  854. <col ref="purcunit" visibility="hidden"/>
  855. <col ref="purcunitnm" visibility="hidden"/>
  856. <col ref="deliveunitnm" visibility="hidden"/>
  857. <col ref="exchqty" visibility="hidden"/>
  858. <col ref="reuseyn" visibility="hidden"/>
  859. <col ref="divusenvalqty" visibility="hidden"/>
  860. <col ref="calcscorinfoacptstat" visibility="hidden"/>
  861. <col ref="calcscorinfoacptdd" visibility="hidden"/>
  862. <col ref="insuyn" visibility="hidden"/>
  863. <col ref="edicd" visibility="hidden"/>
  864. <col ref="newrgstdd" visibility="hidden"/>
  865. <col ref="reqdeptcd" visibility="hidden"/>
  866. <col ref="reqdeptnm" visibility="hidden"/>
  867. <col ref="reqpsn" visibility="hidden"/>
  868. <col ref="reqpsnnm" visibility="hidden"/>
  869. <col ref="reqflag" visibility="hidden"/>
  870. <col ref="reqflagnm" visibility="hidden"/>
  871. <col ref="reqmthd" visibility="hidden"/>
  872. <col ref="reqprid" visibility="hidden"/>
  873. <col ref="iopsnflag" visibility="hidden"/>
  874. <col ref="prodplce" visibility="hidden"/>
  875. <col ref="prodplcenm" visibility="hidden"/>
  876. <col ref="maincustlastsuplplce" visibility="hidden"/>
  877. <col ref="maincustlastsuplplcenm" visibility="hidden"/>
  878. <col ref="suppcustcd" visibility="hidden"/>
  879. <col ref="suppcustnm" visibility="hidden"/>
  880. <col ref="conflag" visibility="hidden"/>
  881. <col ref="fromconterm" visibility="hidden"/>
  882. <col ref="toconterm" visibility="hidden"/>
  883. <col ref="estmamt" visibility="hidden"/>
  884. <col ref="forgncurncyunitcost" visibility="hidden"/>
  885. <col ref="curncyunit" visibility="hidden"/>
  886. <col ref="curncyunitnm" visibility="hidden"/>
  887. <col ref="goodunitcost" visibility="hidden"/>
  888. <col ref="purcflag" visibility="hidden"/>
  889. <col ref="allsizeyn" visibility="hidden"/>
  890. <col ref="setplceordflag" visibility="hidden"/>
  891. <col ref="plceordbase" visibility="hidden"/>
  892. <col ref="plceordqtycretflag" visibility="hidden"/>
  893. <col ref="plceordnonusedd" visibility="hidden"/>
  894. <col ref="addtaxrate" visibility="hidden"/>
  895. <col ref="lastpurcdd" visibility="hidden"/>
  896. <col ref="nonusetretresn" visibility="hidden"/>
  897. <col ref="mngtflag" visibility="hidden"/>
  898. <col ref="bnscd" visibility="hidden"/>
  899. <col ref="cntrdrugyn" visibility="hidden"/>
  900. <col ref="narcflag" visibility="hidden"/>
  901. <col ref="expnyn" visibility="hidden"/>
  902. <col ref="cntsunit" visibility="hidden"/>
  903. <col ref="cntsqty" visibility="hidden"/>
  904. <col ref="specvol" visibility="hidden"/>
  905. <col ref="drugkind" visibility="hidden"/>
  906. <col ref="cooppurcyn" visibility="hidden"/>
  907. <col ref="autrampharm" visibility="hidden"/>
  908. <col ref="keepmthd" visibility="hidden"/>
  909. <col ref="specldrug" visibility="hidden"/>
  910. <col ref="gnrlspcl" visibility="hidden"/>
  911. <col ref="welfprt" visibility="hidden"/>
  912. <col ref="goodtype" visibility="hidden"/>
  913. <col ref="com" visibility="hidden"/>
  914. <col ref="limdrugyn" visibility="hidden"/>
  915. <col ref="cmt" visibility="hidden"/>
  916. <col ref="safestocappdd" visibility="hidden"/>
  917. <col ref="ddavguseqty" visibility="hidden"/>
  918. <col ref="mmavgusescheqty" visibility="hidden"/>
  919. <col ref="mmavguseqty" visibility="hidden"/>
  920. <col ref="prprtystocpossndayno" visibility="hidden"/>
  921. <col ref="orgloc" visibility="hidden"/>
  922. <col ref="oldcd" visibility="hidden"/>
  923. <col ref="goodhngnm" visibility="hidden"/>
  924. <col ref="goodengnm" visibility="hidden"/>
  925. <script type="javascript" ev:event="onaftersort">
  926. <![CDATA[
  927. grd_goodlist.gridToInstance();
  928. ]]>
  929. </script>
  930. <script type="javascript" ev:event="onclick">
  931. <![CDATA[
  932. if (grd_goodlist.row < 1 ) return;
  933. if ((model.getValue(grd_goodlist.nodeset + "[" + grd_goodlist.row + "]/select" ) == "true" ) &&
  934. (model.getValue(grd_goodlist.nodeset + "[" + grd_goodlist.row + "]/reqprid") != cmb_reqpridflag.value)) {
  935. model.setValue(grd_goodlist.nodeset + "[" + grd_goodlist.row + "]/select" , "false");
  936. alert("청구 불가능!! 청구주기를 확인하십시요 !!");
  937. return;
  938. }
  939. // reqmthd 청구방법 1:처방,2:정량,3:일반
  940. // purcflag 구매구분 1:구매,2:수탁,3:가납
  941. if (cmb_workflag.value ==3 || cmb_workflag.value ==4 || cmb_workflag.value ==5 ) {
  942. if ((model.getValue(grd_goodlist.nodeset + "[" + grd_goodlist.row + "]/reqmthd" ) != "1" ) &&
  943. (model.getValue(grd_goodlist.nodeset + "[" + grd_goodlist.row + "]/purcflag") != "2") ) {
  944. model.setValue(grd_goodlist.nodeset + "[" + grd_goodlist.row + "]/select" , "false");
  945. alert("상비품이 아닙니다. 확인하십시요!!");
  946. return;
  947. }
  948. }
  949. // model.setValue(grd_goodlist.nodeset + "[" + grd_goodlist.row + "]/select" , "true");
  950. //bbt_apply2.dispatch("DOMActivate");
  951. //if( grd_goodlist.isCell( event.target ) && grd_goodlist.row >= grd_goodlist.fixedRows ) {
  952. //}
  953. ]]>
  954. </script>
  955. </datagrid>
  956. <!--
  957. <button id="bbt_apply2" class="btn4_letter2" style="left:522px; top:258px; width:56px; height:22px; ">
  958. -->
  959. <button id="bbt_apply2" class="btn4_letter2" style="left:520px; top:120px; width:56px; height:23px; ">
  960. <caption>적용</caption>
  961. <script type="javascript" ev:event="DOMActivate">
  962. <![CDATA[
  963. fSelectDataApply(grd_goodlist, grd_goodreq, "goodreqlist", "minexch");
  964. ]]>
  965. </script>
  966. </button>
  967. <!--
  968. <button id="btn_dtail" class="btn3_letter4" style="left:2px; top:258px; width:80px; height:22px; ">
  969. -->
  970. <caption id="cpt_cls" visibility="hidden" style="left:500px; top:70px; width:65px; height:19px; font-weight:bold; ">1</caption>
  971. <button id="bbt_goodfind" class="btn1_letter2" style="left:450px; top:120px; width:56px; height:23px; ">
  972. <caption>조회</caption>
  973. <script type="javascript" ev:event="DOMActivate">
  974. <![CDATA[
  975. fGoodListSearch() ;
  976. ]]>
  977. </script>
  978. </button>
  979. </case>
  980. </switch>
  981. <button id="bbt_reqdata" class="btn_sw" group="tab" selected="true" style="left:1px; top:120px; width:89px; height:22px; ">
  982. <caption>물품청구내역</caption>
  983. <script type="javascript" ev:event="DOMActivate">
  984. <![CDATA[
  985. fViewToggle(1); // 1 :늘리기, 2 : 줄이기
  986. ]]>
  987. </script>
  988. </button>
  989. <button id="btn_reqset" class="btn_sw" group="tab" selected="false" style="left:90px; top:120px; width:110px; height:22px; ">
  990. <caption>청구 Set 목록</caption>
  991. <toggle case="gd_set" ev:event="onclick"/>
  992. <script type="javascript" ev:event="onclick">
  993. <![CDATA[
  994. fViewToggle(2); // 1 :늘리기, 2 : 줄이기
  995. fReqSetList() ;
  996. ]]>
  997. </script>
  998. </button>
  999. <button id="bbt_good" class="btn_sw" group="tab" selected="false" style="left:200px; top:120px; width:70px; height:22px; ">
  1000. <caption>물품검색</caption>
  1001. <toggle case="gd_find" ev:event="onclick"/>
  1002. <script type="javascript" ev:event="onclick">
  1003. <![CDATA[
  1004. fViewToggle(2); // 1 :늘리기, 2 : 줄이기
  1005. if (model.getValue("/root/init/reqflag")=="") {
  1006. cmb_reqflag.select(0);
  1007. fReqFagChange(cmb_reqflag.value);
  1008. }
  1009. fGoodListReady("",""); // 물품찾기 처리하는 함수
  1010. ]]>
  1011. </script>
  1012. </button>
  1013. <!--
  1014. <group id="grp_main" style="left:593px; top:90px; width:602px; height:663px; border-color:#c0c0c0; border-style:solid; ">
  1015. <line id="lin_main" class="line_1" style="x1:4px; y1:27px; x2:593px; y2:28px; "/>
  1016. <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" caption="기관코드^청구구분^청구일자^청구번호^순번^물품코드^물품명^규격(ALL SIZE)^모델^제조회사^기준량^수액집계^재고량^청구^청구/구매단위^청구/구매단위^청구/구매단위^전월^승인^승인" colsep="^" colwidth="0, 0, 0, 0, 35, 95, 251, 135, 96, 78, 48, 62, 53, 58, 43, 40, 35, 45, 30, 59, 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="|" tooltip="true" style="left:3px; top:29px; width:592px; height:628px; ">
  1017. -->
  1018. <button id="bbt_large" class="icon_pre_month" visibility="hidden" style="left:594px; top:122px; width:16px; height:16px; ">
  1019. <caption/>
  1020. <script type="javascript" ev:event="DOMActivate">
  1021. <![CDATA[
  1022. bbt_reqdata.dispatch("DOMActivate");
  1023. bbt_reqdata.selected = true;
  1024. ]]>
  1025. </script>
  1026. </button>
  1027. <button id="bbt_right" class="icon_next_month" visibility="hidden" style="left:612px; top:122px; width:16px; height:16px; ">
  1028. <caption/>
  1029. <script type="javascript" ev:event="DOMActivate">
  1030. <![CDATA[
  1031. bbt_reqdata.dispatch("DOMActivate");
  1032. bbt_reqdata.selected = true;
  1033. ]]>
  1034. </script>
  1035. </button>
  1036. <caption id="caption25" style="left:718px; top:119px; width:50px; height:15px; ">All Size</caption>
  1037. <caption id="caption26" class="color_6" style="left:700px; top:118px; width:15px; height:15px; background-color:#FFFF00; "/>
  1038. <input id="ipt_tempdeptnm" ref="/root/tempdept/tempdeptnm" class="input_search" visibility="hidden" appearance="input" style="left:470px; top:119px; width:110px; height:19px; ">
  1039. <script type="javascript" ev:event="xforms-value-changed">
  1040. <![CDATA[
  1041. if(ipt_tempdeptnm.value == ""){
  1042. ipt_tempdeptcd.value = "";
  1043. }else {
  1044. misfValidationCheck("02", "", "tempdeptcd,tempdeptnm");
  1045. vDeptcd = model.getValue("/root/tempdept/tempdeptcd");
  1046. if (vDeptcd == "") {
  1047. return
  1048. }
  1049. if (model.getValue("/root/init/ReqDeptLists/reqdeptlist[value='"+vDeptcd+"']/value") == "") {
  1050. fAddReqDeptcdCombo();
  1051. } else {
  1052. cmb_reqdeptcd.value = vDeptcd;
  1053. }
  1054. }
  1055. model.refresh();
  1056. ]]>
  1057. </script>
  1058. <script type="javascript" ev:event="onkeyup">
  1059. <![CDATA[
  1060. if (event.keyCode == 13) {
  1061. setInputNodeCurText(); // 현재 인풋값 노드 반영
  1062. if(ipt_tempdeptnm.value == ""){
  1063. ipt_tempdeptcd.value = "";
  1064. }else {
  1065. misfValidationCheck("02", "", "tempdeptcd,tempdeptnm");
  1066. vDeptcd = model.getValue("/root/tempdept/tempdeptcd");
  1067. if (vDeptcd == "") {
  1068. return
  1069. }
  1070. if (model.getValue("/root/init/ReqDeptLists/reqdeptlist[value='"+vDeptcd+"']/value") == "") {
  1071. fAddReqDeptcdCombo();
  1072. } else {
  1073. cmb_reqdeptcd.value = vDeptcd;
  1074. }
  1075. }
  1076. model.refresh();
  1077. }
  1078. ]]>
  1079. </script>
  1080. </input>
  1081. <input id="ipt_tempdeptcd" ref="/root/tempdept/tempdeptcd" class="input_search" visibility="hidden" style="left:360px; top:119px; width:80px; height:19px; ">
  1082. <script type="javascript" ev:event="xforms-value-changed">
  1083. <![CDATA[
  1084. if(ipt_tempdeptcd.value == ""){
  1085. ipt_tempdeptnm.value = "";
  1086. }else {
  1087. misfValidationCheck("02", "", "tempdeptcd,tempdeptnm");
  1088. vDeptcd = model.getValue("/root/tempdept/tempdeptcd");
  1089. if (vDeptcd == "") {
  1090. return
  1091. }
  1092. if (model.getValue("/root/init/ReqDeptLists/reqdeptlist[value='"+vDeptcd+"']/value") == "") {
  1093. fAddReqDeptcdCombo();
  1094. } else {
  1095. cmb_reqdeptcd.value = vDeptcd;
  1096. }
  1097. }
  1098. model.refresh();
  1099. ]]>
  1100. </script>
  1101. <script type="javascript" ev:event="onkeyup">
  1102. <![CDATA[
  1103. if (event.keyCode == 13) {
  1104. setInputNodeCurText(); // 현재 인풋값 노드 반영
  1105. if(ipt_tempdeptcd.value == ""){
  1106. ipt_tempdeptnm.value = "";
  1107. }else {
  1108. misfValidationCheck("02", "", "tempdeptcd,tempdeptnm");
  1109. vDeptcd = model.getValue("/root/tempdept/tempdeptcd");
  1110. if (vDeptcd == "") {
  1111. return
  1112. }
  1113. if (model.getValue("/root/init/ReqDeptLists/reqdeptlist[value='"+vDeptcd+"']/value") == "") {
  1114. fAddReqDeptcdCombo();
  1115. } else {
  1116. cmb_reqdeptcd.value = vDeptcd;
  1117. }
  1118. }
  1119. model.refresh();
  1120. }
  1121. ]]>
  1122. </script>
  1123. </input>
  1124. <button id="btn_tempdeptcd" class="icon_search" visibility="hidden" style="left:445px; top:122px; width:16px; height:16px; ">
  1125. <caption/>
  1126. <script type="javascript" ev:event="DOMActivate">
  1127. <![CDATA[
  1128. var tempolddeptcd = model.getValue("/root/tempdept/tempdeptcd");
  1129. misfOpenPopUpList("02", ipt_tempdeptcd,"","tempdeptcd,tempdeptnm");
  1130. var vDeptcd = model.getValue("/root/tempdept/tempdeptcd");
  1131. //tempdeptcd가 예전의 값이랑 다를 경우에만 해당 이벤트가 발생하도록 하자
  1132. //찾아온 부서를 청구부서콤보에 붙이는 함수를 호출한다.
  1133. if (vDeptcd == "") {
  1134. return
  1135. }
  1136. if (model.getValue("/root/init/ReqDeptLists/reqdeptlist[value='"+vDeptcd+"']/value") == "") {
  1137. fAddReqDeptcdCombo();
  1138. } else {
  1139. cmb_reqdeptcd.value = vDeptcd;
  1140. }
  1141. model.refresh();
  1142. ]]>
  1143. </script>
  1144. </button>
  1145. <caption id="cpt_dept" class="search_name" visibility="hidden" style="left:278px; top:121px; width:86px; height:17px; ">부서선택:</caption>
  1146. <group id="grp_main" style="left:1px; top:140px; width:1193px; height:616px; border-color:#c0c0c0; border-style:solid; ">
  1147. <line id="lin_main" class="line_1" style="x1:1px; y1:27px; x2:1190px; y2:28px; "/>
  1148. <datagrid id="grd_goodreq" nodeset="/root/main/list/goodreq/goodreqlist" caption="기관코드^청구구분^청구일자^청구번호^순번^물품코드^물품명^규격^모델^제조회사^포장구성단위^연구과제^재고량^청구^청구^승인^승인^계정^프로젝트^예산편성액^예산추산액^예산집행액^예산잔액^비고" colsep="^" colwidth="0, 0, 0, 0, 35, 94, 225, 124, 74, 66, 88, 83, 60, 48, 42, 30, 43, 137, 100, 112, 82, 83, 82, 168, 83, 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, 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="|" tooltip="true" style="left:-1px; top:29px; width:1192px; height:585px; ">
  1149. <col ref="instcd" visibility="hidden"/>
  1150. <col ref="reqflag" visibility="hidden"/>
  1151. <col ref="reqdd" visibility="hidden"/>
  1152. <col ref="reqno" visibility="hidden"/>
  1153. <col ref="reqseqno" style="text-align:center; "/>
  1154. <col ref="goodcd" type="inputbutton" _chartype="upper" _key="true"/>
  1155. <col ref="goodnm" type="input"/>
  1156. <col ref="goodspec" type="inputbutton"/>
  1157. <col ref="goodmodel" type="output"/>
  1158. <col ref="prodcmpynm" type="output"/>
  1159. <col ref="constunit"/>
  1160. <col ref="stdysubjnm" type="inputbutton"/>
  1161. <col ref="stocqty" type="input" format="#,###" style="text-align:right; "/>
  1162. <col ref="reqqty" type="input" format="#,###" maxlength="9" style="text-align:right; "/>
  1163. <col ref="requnit"/>
  1164. <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox"/>
  1165. <col ref="deptaprvnm"/>
  1166. <col ref="bugtnm" type="inputbutton"/>
  1167. <col ref="projectnm"/>
  1168. <col ref="totamt" format="#,###" style="text-align:right; "/>
  1169. <col ref="bugtexpcamt" format="#,###" style="text-align:right; "/>
  1170. <col ref="bugtexecamt" format="#,###" style="text-align:right; "/>
  1171. <col ref="remainder" format="#,###" style="text-align:right; "/>
  1172. <col ref="cmt" type="input"/>
  1173. <col ref="groupbugt" visibility="hidden"/>
  1174. <col ref="workflag" visibility="hidden"/>
  1175. <col ref="reqmthdflag" visibility="hidden"/>
  1176. <col ref="deliveflag" visibility="hidden"/>
  1177. <col ref="reqpridflag" visibility="hidden"/>
  1178. <col ref="goodcd" visibility="hidden"/>
  1179. <col ref="allsizespecid" visibility="hidden"/>
  1180. <col ref="goodflag" visibility="hidden"/>
  1181. <col ref="purcunit" visibility="hidden"/>
  1182. <col ref="purcunitnm" visibility="hidden"/>
  1183. <col ref="stocmngtflag" visibility="hidden"/>
  1184. <col ref="bugtcd" visibility="hidden"/>
  1185. <col ref="stdysubjno" visibility="hidden"/>
  1186. <col ref="reqdeptcd" visibility="hidden"/>
  1187. <col ref="reqcollcdeptcd" visibility="hidden"/>
  1188. <col ref="delivedeptcd" visibility="hidden"/>
  1189. <col ref="delivehopedd" visibility="hidden"/>
  1190. <col ref="reqpsnid" visibility="hidden"/>
  1191. <col ref="reqpsnnm" visibility="hidden"/>
  1192. <col ref="reqtm" visibility="hidden"/>
  1193. <col ref="ddavguseqty" visibility="hidden"/>
  1194. <col ref="minexch" visibility="hidden"/>
  1195. <col ref="basevol" visibility="hidden"/>
  1196. <col ref="prereqqty" visibility="hidden"/>
  1197. <col ref="adjtqty" visibility="hidden"/>
  1198. <col ref="preadjtqty" visibility="hidden"/>
  1199. <col ref="adjtrsn" visibility="hidden"/>
  1200. <col ref="predeptaprvyn" visibility="hidden"/>
  1201. <col ref="deptaprvdd" visibility="hidden"/>
  1202. <col ref="acptflag" visibility="hidden"/>
  1203. <col ref="acptflagnm" visibility="hidden"/>
  1204. <col ref="acptdd" visibility="hidden"/>
  1205. <col ref="acptcharid" visibility="hidden"/>
  1206. <col ref="purcdmnddd" visibility="hidden"/>
  1207. <col ref="purcdmndno" visibility="hidden"/>
  1208. <col ref="purcdmndseq" visibility="hidden"/>
  1209. <col ref="colreqdd" visibility="hidden"/>
  1210. <col ref="colreqno" visibility="hidden"/>
  1211. <col ref="colreqseqno" visibility="hidden"/>
  1212. <col ref="deliveqty" visibility="hidden"/>
  1213. <col ref="unwinresn" visibility="hidden"/>
  1214. <col ref="deliveprcsflag" visibility="hidden"/>
  1215. <col ref="chkcmt" visibility="hidden"/>
  1216. <col ref="reqarthyn" visibility="hidden"/>
  1217. <col ref="aprvyn" visibility="hidden"/>
  1218. <col ref="lrgnm" visibility="hidden"/>
  1219. <col ref="csrsafestocqty" visibility="hidden"/>
  1220. <col ref="csrddavguseqty" visibility="hidden"/>
  1221. <col ref="allsizespecidnm" visibility="hidden"/>
  1222. <col ref="allsizeyn" visibility="hidden"/>
  1223. <col ref="studyinstcd" visibility="hidden"/>
  1224. <col ref="rgstqty" visibility="hidden"/>
  1225. <col ref="exchqty" visibility="hidden"/>
  1226. <col ref="projectid" visibility="hidden"/>
  1227. <col ref="reqdeptnm" visibility="hidden"/>
  1228. <col ref="reqflagnm" visibility="hidden"/>
  1229. <col ref="reqflagnm" visibility="hidden"/>
  1230. <col ref="setunit" visibility="hidden"/>
  1231. <col ref="suppcustcd" visibility="hidden"/>
  1232. <col ref="suppcustcdnm" visibility="hidden"/>
  1233. <col ref="befmonreqqty" visibility="hidden"/>
  1234. <col ref="jobstatus" visibility="hidden"/>
  1235. <script type="javascript" ev:event="onclick">
  1236. <![CDATA[
  1237. grp_allsize.attribute("visibility") ="hidden" ;
  1238. grp_bugtflag.attribute("visibility") ="hidden" ;
  1239. ]]>
  1240. </script>
  1241. <script type="javascript" ev:event="onbuttonclick">
  1242. <![CDATA[
  1243. fGoodreqButtonClick() ;
  1244. ]]>
  1245. </script>
  1246. <script type="javascript" ev:event="xforms-value-changed">
  1247. <![CDATA[
  1248. fGoodreqOnChange();
  1249. ]]>
  1250. </script>
  1251. <script type="javascript" ev:event="onkeydown">
  1252. <![CDATA[
  1253. fGoodreqOnKeyDown();
  1254. ]]>
  1255. </script>
  1256. <script type="javascript" ev:event="onentercell">
  1257. <![CDATA[
  1258. fGoodreqOnEnterCell();
  1259. ]]>
  1260. </script>
  1261. <script type="javascript" ev:event="onaftersort">
  1262. <![CDATA[
  1263. grd_goodreq.gridToInstance();
  1264. ]]>
  1265. </script>
  1266. </datagrid>
  1267. <textarea id="tar_cmt" visibility="hidden" style="left:31px; top:79px; width:50px; height:16px; ">
  1268. <script type="javascript" ev:event="xforms-value-changed">
  1269. <![CDATA[
  1270. if(grd_goodreq.row > 0 &&( tar_cmt.value != model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/cmt")))
  1271. {
  1272. model.setValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/cmt", tar_cmt.value);
  1273. if(grd_goodreq.rowStatus(grd_goodreq.row) == "0")grd_goodreq.rowStatus(grd_goodreq.row) = "2";
  1274. model.refresh();
  1275. }
  1276. ]]>
  1277. </script>
  1278. </textarea>
  1279. <group id="grp_allsize" visibility="hidden" showeffect="slidepositive 500" style="left:519px; top:79px; width:364px; height:300px; ">
  1280. <shape id="rectangle1" appearance="rectangle" style="left:0px; top:0px; width:362px; height:300px; border-color:#339966; border-width:2px; "/>
  1281. <datagrid id="grd_codelist" nodeset="/root/main/codelist" class="grd_prodcmpylist" caption="C^ID^명칭^모델^수량" colsep="^" colwidth="30, 40, 140, 76, 51" dataheight="23" defaultrows="0" ellipsis="true" extendlastcol="false" rowheight="23" rowsep="|" selectionmode="free" tooltip="true" style="left:2px; top:40px; width:357px; height:257px; ">
  1282. <col ref="chk" type="checkbox"/>
  1283. <col ref="allsizespecid" style="text-align:center; "/>
  1284. <col ref="goodspec"/>
  1285. <col ref="goodmodel"/>
  1286. <col ref="qty" type="input"/>
  1287. <script type="javascript" ev:event="ondblclick">
  1288. <![CDATA[
  1289. //if (grd_codelist.isCell(event.target ) && grd_codelist.row >= grd_codelist.fixedRows ) {
  1290. // fAllSizeSelect(grd_codelist.row) ;
  1291. // btn_confirm.dispatch("DOMActivate");
  1292. //}
  1293. ]]>
  1294. </script>
  1295. <script type="javascript" ev:event="onaftersort">
  1296. <![CDATA[
  1297. grd_codelist.gridToInstance();
  1298. ]]>
  1299. </script>
  1300. </datagrid>
  1301. <button id="btn_confirm" class="btn4_letter2" style="left:285px; top:10px; width:56px; height:22px; ">
  1302. <caption>확인</caption>
  1303. <script type="javascript" ev:event="DOMActivate">
  1304. <![CDATA[
  1305. fAllSizeSelect() ;
  1306. ]]>
  1307. </script>
  1308. </button>
  1309. </group>
  1310. <group id="grp_button" style="left:589px; top:4px; width:592px; height:22px; ">
  1311. <button id="btn_delete" class="btn2_letter3" style="left:56px; top:0px; width:53px; height:19px; ">
  1312. <caption>행삭제</caption>
  1313. <script type="javascript" ev:event="DOMActivate">
  1314. <![CDATA[
  1315. /* 접수된건은 삭제할수 없음 */
  1316. if (model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/acptflag") == "Y")
  1317. {
  1318. messageBox("구매접수된 내역은 삭제","E001");
  1319. return;
  1320. }
  1321. if(model.getValue(cmb_reqpridflag.attribute("ref")) !="1")
  1322. {
  1323. if(rszfGetPurcAuthInfoByCond("reqaprvflag") =="1" &&
  1324. model.getValue(grd_goodreq.nodeset + "[" + (grd_goodreq.row - grd_goodreq.fixedRows + 1)+ "]/deptaprvyn") == "Y")
  1325. {
  1326. messageBox("미승인권자가 승인된 내역은 삭제","E001");
  1327. return;
  1328. }
  1329. }
  1330. misfGridIUD(grd_goodreq, "D");
  1331. ]]>
  1332. </script>
  1333. </button>
  1334. <button id="btn_choice" class="btn2_letter10" visibility="visible" style="left:111px; top:0px; width:130px; height:19px; ">
  1335. <caption>승인전체/접수전체취소</caption>
  1336. <script type="javascript" ev:event="DOMActivate">
  1337. <![CDATA[
  1338. fSettingReqAprv();
  1339. ]]>
  1340. </script>
  1341. </button>
  1342. <button id="btn_excel" class="btn6_letter2" style="left:250px; top:0px; width:56px; height:22px; ">
  1343. <caption>엑셀</caption>
  1344. <script type="javascript" ev:event="DOMActivate">
  1345. <![CDATA[
  1346. misfSaveExcel(grd_goodreq);
  1347. ]]>
  1348. </script>
  1349. </button>
  1350. <select id="ckb_accept" ref="/root/send/save/autoaprv/autoaprvyn" overflow="visible" appearance="full" style="left:525px; top:3px; width:67px; height:15px; border-style:none; ">
  1351. <choices>
  1352. <item>
  1353. <label>동시승인</label>
  1354. <value>Y</value>
  1355. </item>
  1356. </choices>
  1357. </select>
  1358. <button id="btn_save" class="btn4_letter2" disabled="false" style="left:465px; top:0px; width:56px; height:22px; ">
  1359. <caption>저장</caption>
  1360. <script type="javascript" ev:event="DOMActivate">
  1361. <![CDATA[
  1362. fSaveData(); // Data를 저장한다.
  1363. ]]>
  1364. </script>
  1365. </button>
  1366. <button id="btn_accept" class="btn4_letter5" visibility="visible" style="left:369px; top:0px; width:92px; height:22px; ">
  1367. <caption>승인/미승인</caption>
  1368. <script type="javascript" ev:event="DOMActivate">
  1369. <![CDATA[
  1370. fSaveReqAprv();
  1371. ]]>
  1372. </script>
  1373. </button>
  1374. <button id="btn_print" class="btn6_letter2" style="left:309px; top:0px; width:56px; height:22px; ">
  1375. <caption>출력</caption>
  1376. <script type="javascript" ev:event="DOMActivate">
  1377. <![CDATA[
  1378. if(cmb_reqflag.label == "약품")
  1379. {
  1380. exeReportPreview("RPRSD00401","XMLSTR");
  1381. }else{
  1382. exeReportPreview("RPRSD00402","XMLSTR");
  1383. }
  1384. ]]>
  1385. </script>
  1386. </button>
  1387. <button id="btn_insert" class="btn2_letter3" style="left:1px; top:0px; width:53px; height:19px; ">
  1388. <caption>행추가</caption>
  1389. <script type="javascript" ev:event="DOMActivate">
  1390. <![CDATA[
  1391. if(fCheckRetrieveData(true) == false)return;
  1392. misfGridIUD(grd_goodreq, "A");
  1393. grd_goodreq.row = grd_goodreq.rows - grd_goodreq.fixedRows ;
  1394. tar_cmt.value = "";
  1395. fDefaultSetting(grd_goodreq.row );
  1396. grd_goodreq.col = grd_goodreq.colRef("goodcd");
  1397. grd_goodreq.editCell();
  1398. ]]>
  1399. </script>
  1400. </button>
  1401. </group>
  1402. <group id="grp_bugtflag" visibility="hidden" showeffect="slidepositive 500" style="left:519px; top:80px; width:275px; height:214px; ">
  1403. <shape id="rectangle2" appearance="rectangle" style="left:0px; top:0px; width:275px; height:212px; border-color:#339966; border-width:2px; "/>
  1404. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:3px; width:268px; height:27px; background-color:#fffbf2; border-color:#ffd799; "/>
  1405. <button id="button2" class="btn4_letter2" style="left:207px; top:5px; width:56px; height:22px; ">
  1406. <caption>확인</caption>
  1407. <script type="javascript" ev:event="DOMActivate">
  1408. <![CDATA[
  1409. fBugtDataSet(grd_goodreq.row);
  1410. grp_bugtflag.attribute("visibility") = "hidden" ;
  1411. ]]>
  1412. </script>
  1413. </button>
  1414. <output id="output1" ref="/root/send/goodreq/remainder" class="output_fix" format="#,###" style="left:156px; top:183px; width:110px; height:19px; text-align:right; "/>
  1415. <output id="output2" ref="/root/send/goodreq/totamt" class="output_fix" format="#,###" style="left:156px; top:110px; width:110px; height:19px; text-align:right; "/>
  1416. <output id="output3" ref="/root/send/goodreq/projectnm" class="output_fix" style="left:156px; top:86px; width:110px; height:19px; "/>
  1417. <caption id="caption33" style="left:122px; top:160px; width:28px; height:20px; font-weight:bold; ">집행</caption>
  1418. <select1 id="combo2" ref="/root/send/goodreq/bugtproject" class="combo_default" appearance="minimal" style="left:100px; top:60px; width:166px; height:19px; ">
  1419. <choices>
  1420. <itemset nodeset="/root/main/BugLists/bugtlist">
  1421. <label ref="bugtprojectnm"/>
  1422. <value ref="bugtproject"/>
  1423. </itemset>
  1424. </choices>
  1425. <script type="javascript" ev:event="xforms-value-changed">
  1426. <![CDATA[
  1427. fBugtflagChange();
  1428. ]]>
  1429. </script>
  1430. </select1>
  1431. <output id="output4" ref="/root/send/goodreq/bugtexpcamt" class="output_fix" format="#,###" style="left:156px; top:135px; width:110px; height:19px; text-align:right; "/>
  1432. <caption id="caption34" style="left:96px; top:110px; width:54px; height:20px; font-weight:bold; ">예산편성</caption>
  1433. <output id="output5" ref="/root/send/goodreq/bugtexecamt" class="output_fix" format="#,###" style="left:156px; top:159px; width:110px; height:19px; text-align:right; "/>
  1434. <caption id="caption35" class="search_name" style="left:10px; top:86px; width:86px; height:17px; ">프로젝트 :</caption>
  1435. <caption id="caption36" style="left:105px; top:184px; width:45px; height:20px; font-weight:bold; ">가능액</caption>
  1436. <caption id="caption37" style="left:122px; top:135px; width:28px; height:20px; font-weight:bold; ">추산</caption>
  1437. <caption id="caption38" class="search_name" style="left:10px; top:61px; width:86px; height:17px; ">예산계정 :</caption>
  1438. <caption id="caption39" class="search_name" style="left:10px; top:35px; width:86px; height:17px; ">계 정 :</caption>
  1439. <output id="output6" ref="/root/send/goodreq/projectid" class="output_fix" style="left:100px; top:86px; width:50px; height:19px; "/>
  1440. <select1 id="combo3" ref="/root/send/goodreq/groupbugt" class="combo_default" appearance="minimal" style="left:100px; top:35px; width:166px; height:19px; ">
  1441. <choices>
  1442. <itemset nodeset="/root/init/rscmbgcdlist">
  1443. <label ref="label"/>
  1444. <value ref="value"/>
  1445. </itemset>
  1446. </choices>
  1447. <script type="javascript" ev:event="xforms-value-changed">
  1448. <![CDATA[
  1449. fAcctDataClear();
  1450. if (cmb_groupbugt.value !="") {
  1451. model.setValue("/root/send/goodreq/deptcd" , cmb_reqdeptcd.value);
  1452. model.setValue("/root/send/goodreq/supacntcd4", cmb_groupbugt.value);
  1453. submit("TRRSD00414");
  1454. }
  1455. model.refresh();
  1456. ]]>
  1457. </script>
  1458. </select1>
  1459. </group>
  1460. </group>
  1461. </group>
  1462. </xhtml:body>
  1463. </xhtml:html>