SMRSD05500_장비청구(성의교정).xrw 117 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>장비청구관리(성의교정)</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <instutcnstrneedyn>
  11. <label>예</label>
  12. <value>Y</value>
  13. <label>아니오</label>
  14. <value>N</value>
  15. </instutcnstrneedyn>
  16. <calcscorgenryn>
  17. <label>예</label>
  18. <value>Y</value>
  19. <label>아니오</label>
  20. <value>N</value>
  21. </calcscorgenryn>
  22. <installspcepossnyn>
  23. <label>예</label>
  24. <value>Y</value>
  25. <label>아니오</label>
  26. <value>N</value>
  27. </installspcepossnyn>
  28. <instcd>
  29. <label>성의교정</label>
  30. <value>103</value>
  31. <label>산학협력단</label>
  32. <value>114</value>
  33. <label>가톨릭의과학연구원</label>
  34. <value>032</value>
  35. </instcd>
  36. <reqdd/>
  37. <reqseqno/>
  38. <usemthd>
  39. <label>과전용</label>
  40. <value>1</value>
  41. <label>공동사용</label>
  42. <value>2</value>
  43. <label>중앙과</label>
  44. <value>3</value>
  45. </usemthd>
  46. <prcsstat>
  47. <label>신청</label>
  48. <value>A</value>
  49. <label>접수</label>
  50. <value>C</value>
  51. <label>발주</label>
  52. <value>P</value>
  53. <label>입고</label>
  54. <value>W</value>
  55. </prcsstat>
  56. <qchgrate>
  57. <label>환율조회</label>
  58. <value>http://spd.wooribank.com</value>
  59. </qchgrate>
  60. <cstgoodflag/>
  61. </init>
  62. <send>
  63. <sendlist>
  64. <instcd/>
  65. <reqdeptcd/>
  66. <reqdeptnm/>
  67. <workflag/>
  68. <reqfrmdd/>
  69. <reqtodd/>
  70. <prcsstat/>
  71. <goodflag/>
  72. <cntrdeptcd/>
  73. <reqflag/>
  74. <instcdnm/>
  75. <studyinstcd/>
  76. <view>
  77. <viewinstcd/>
  78. <deptinstcd/>
  79. </view>
  80. <instcdgood/>
  81. <groupbugt/>
  82. </sendlist>
  83. <save>
  84. <reqeqmtlist/>
  85. <publusedeptlist/>
  86. <smlartyeqmtlist/>
  87. <recmeqmtlist/>
  88. <psgedeptlist/>
  89. </save>
  90. <grid>
  91. <reqeqmtlist_row/>
  92. </grid>
  93. </send>
  94. <main>
  95. <list>
  96. <reqeqmtlist/>
  97. <publusedeptlist/>
  98. <smlartyeqmtlist/>
  99. <recmeqmtlist/>
  100. <psgedeptlist/>
  101. <fixasetcd>
  102. <fixasetcdlist/>
  103. <fixasetcdlistv/>
  104. </fixasetcd>
  105. <mon1cdlist/>
  106. <mon2cdlist/>
  107. </list>
  108. <reqeqmtlist>
  109. <instcd/>
  110. <reqdd/>
  111. <reqseqno/>
  112. <reqdeptcd/>
  113. <reqdeptnm/>
  114. <workflag>1</workflag>
  115. <goodflagengnm/>
  116. <goodflaghngnm/>
  117. <reqpsnid/>
  118. <reqpsnnm/>
  119. <appqty/>
  120. <bugtyy/>
  121. <bugtflag/>
  122. <usemthd/>
  123. <cntrdeptcd/>
  124. <cntrdeptnm/>
  125. <mngtdeptcd/>
  126. <mngtdeptnm/>
  127. <installplcecd/>
  128. <installplcenm/>
  129. <presteqmtmmexeccnt/>
  130. <neweqmtmmexeccnt/>
  131. <calcscorprctnmpresteqmt/>
  132. <calcscorprctnmneweqmt/>
  133. <presteqmtmnpwr/>
  134. <prestneweqmtmnpwr/>
  135. <usgepurcneed/>
  136. <instutcnstrneedyn/>
  137. <installspcepossnyn/>
  138. <addmnpwrdr/>
  139. <addmnpwrnurs/>
  140. <addmnpwrengr/>
  141. <addmnpwretc/>
  142. <calcscorgenryn/>
  143. <bugtwncurncy/>
  144. <bugtforgnamt/>
  145. <bugtforgnamtunit/>
  146. <medcare/>
  147. <actamtincl/>
  148. <undecicurematr/>
  149. <medcareinsu/>
  150. <reqqty/>
  151. <acptflag/>
  152. <acptdd/>
  153. <acptseqno/>
  154. <prcsstat/>
  155. <plceorddd/>
  156. <plceordseqno/>
  157. <attfilenm/>
  158. <attfilepathnm/>
  159. <stdysubjno/>
  160. <stdysubjnm/>
  161. <fixasetcd/>
  162. <etccostrt/>
  163. <fundorigin/>
  164. </reqeqmtlist>
  165. <calc/>
  166. </main>
  167. <hidden/>
  168. <temp>
  169. <qchgrate/>
  170. </temp>
  171. </root>
  172. </instance>
  173. <script type="javascript" ev:event="xforms-ready">
  174. <![CDATA[
  175. fInitialize();
  176. ]]>
  177. </script>
  178. <submission id="TRRSD05501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/list/reqeqmtlist"/>
  179. <submission id="TRRSD05502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/publusedeptlist"/>
  180. <submission id="TRRSD05503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/smlartyeqmtlist"/>
  181. <submission id="TRRSD05504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/recmeqmtlist"/>
  182. <submission id="TRRSD05505" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/psgedeptlist"/>
  183. <submission id="TXRSC11901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  184. <submission id="TRRSD05506" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/reqeqmtlist" resultref="/root/main/list/mon1cdlist"/>
  185. <submission id="TRRSD05507" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/reqeqmtlist_row" resultref="/root/main/list/mon2cdlist"/>
  186. <submission id="TRRSD05508" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/list/fixasetcd"/>
  187. <submission id="TRRSD05509" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/list/fixasetcd"/>
  188. </model>
  189. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  190. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  191. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  192. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  193. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  194. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  195. <script type="javascript">
  196. <![CDATA[
  197. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  198. function fInitialize() {
  199. misfGridInit(grd_reqeqmtlist);
  200. misfGridInit(grd_publusedeptlist);
  201. misfGridInit(grd_smlartyeqmtlist);
  202. misfGridInit(grd_recmeqmtlist);
  203. misfGridInit(grd_psgedeptlist);
  204. misfGridInit(grd_fixasetcdlistv);
  205. misfGridInit(grd_fixasetcdlist);
  206. misfGridInit(grd_mon1cdlist);
  207. misfGridInit(grd_mon2cdlist);
  208. model.resetInstanceNode("/root/send");
  209. model.resetInstanceNode("/root/main/reqeqmtlist");
  210. misfGridComboComCdList("R0035", grd_recmeqmtlist, "prodplce");
  211. misfGridComboComCdList("R0047", grd_recmeqmtlist, "curncyunit");
  212. misfComboComCdListMulti("R0050,R0047,R0052,R0116,Z0007,R0316","cmb_workflag_search,cmb_bugtforgnamtunit,cmb_usemthd,cmb_prcsstat_search,cmb_studyinstcd,cmb_fundorigin");
  213. //rszfComboBugtList(cmb_bugtflag,getUserInfo("dutplceinstcd"));
  214. // 전체
  215. rszfComboAppendBlankChild("cmb_prcsstat_search");
  216. rszfComboAppendBlankChild("cmb_workflag_search");
  217. //model.setValue(rdo_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  218. rdo_instcd.select(0);
  219. fInstcdCheck();
  220. // rdo_instcd.dispatch("xforms-value-changed");
  221. rszfComboBgcdBugtList("cmb_groupbugt", rdo_instcd.value, '2');
  222. // if(rdo_instcd.value != '103')
  223. // {
  224. // rszfComboBugtList(cmb_bugtflag,rdo_instcd.value, '', '2');
  225. // }else{
  226. // rszfComboBugtList(cmb_bugtflag,rdo_instcd.value, cmb_groupbugt.value, '2');
  227. // }
  228. // 사용자의 부서가 하나가 아니면 오류메세지를 호출하며. 부서가 하나이면 부서코드와 부서명을 설정해준다.
  229. var fcheck = rszfGetUserInfo(getUserInfo("userid"), getUserInfo("dutplceinstcd")) ;
  230. if( ( fcheck > 1 ) || ( fcheck == 0 ) ){
  231. model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
  232. model.setValue(opt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
  233. }else{
  234. model.setValue(ipt_reqdeptcd_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptcd"));
  235. model.setValue(opt_reqdeptnm_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptnm"));
  236. }
  237. // model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
  238. // model.setValue(opt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
  239. var curdate = getCurrentDate();
  240. var cvtdate = curdate.toDate("YYYYMMDD");
  241. model.setValue(ipt_reqfrmdd_search.attribute("ref"), cvtdate.getAddDate(-10,"D").getDateFormat("YYYYMMDD") );
  242. model.setValue(ipt_reqtodd_search.attribute("ref"), curdate );
  243. // hidden
  244. model.setValue(ipt_reqflag.attribute("ref") , "G");
  245. model.setValue(ipt_goodflag_search.attribute("ref"), "E" );
  246. model.setValue(opt_instcdgood.attribute("ref"), "103" );
  247. model.setValue(opt_cstgoodflag.attribute("ref"), "Y" );
  248. misfMsterDetailSet(grd_reqeqmtlist ,null, "TRRSD05501", "Y");
  249. misfMsterDetailSet(grd_publusedeptlist, grd_reqeqmtlist, "TRRSD05502", "Y");
  250. misfMsterDetailSet(grd_smlartyeqmtlist, grd_reqeqmtlist, "TRRSD05503", "Y");
  251. misfMsterDetailSet(grd_recmeqmtlist, grd_reqeqmtlist, "TRRSD05504", "Y");
  252. misfMsterDetailSet(grd_psgedeptlist, grd_reqeqmtlist, "TRRSD05505", "Y");
  253. misfMsterDetailSet(grd_mon1cdlist, grd_reqeqmtlist, "TRRSD05506", "Y");
  254. // 컨트롤의 자동 초기화로 인하여 월간재료비 그리드만 Master에 연결하지 않고 따로 관리합니다.(Submit을 따로 보내야함.)
  255. misfMsterDetailSet(grd_mon2cdlist, null, "TRRSD05507", "Y");
  256. fAllControlDisabled("Y");
  257. btn_search.dispatch("DOMActivate");
  258. // 권한설정.
  259. fSetReqAuth();
  260. model.refresh();
  261. }
  262. //예산 계정 Disabled 유무 설정!!
  263. function fDisabledComboflag()
  264. {
  265. if( rdo_instcd.value == '103' || rdo_instcd.value == '032') //성의교정과 의과학연구원은 예산계정을 열어준다.
  266. {
  267. cmb_groupbugt.disabled = false;
  268. // if(cmb_groupbugt.value == '')
  269. // {
  270. // cmb_bugtflag.disabled = true;
  271. // }else
  272. // {
  273. // cmb_bugtflag.disabled = false;
  274. // }
  275. }else{
  276. cmb_groupbugt.disabled = true;
  277. }
  278. }
  279. function fInstcdCheck()
  280. {
  281. if(rdo_instcd.value == '103')
  282. {
  283. cmb_groupbugt.value = '';
  284. //cmb_bugtflag.value = '';
  285. model.setValue(opt_instcd.attribute("ref"), rdo_instcd.value);
  286. model.setValue(opt_deptinstcd.attribute("ref"), rdo_instcd.value);
  287. // 사용자의 부서가 하나가 아니면 오류메세지를 호출하며. 부서가 하나이면 부서코드와 부서명을 설정해준다.
  288. var fcheck = rszfGetUserInfo(getUserInfo("userid"), getUserInfo("dutplceinstcd")) ;
  289. if( ( fcheck > 1 ) || ( fcheck == 0 ) ){
  290. model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
  291. model.setValue(opt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
  292. }else{
  293. model.setValue(ipt_reqdeptcd_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptcd"));
  294. model.setValue(opt_reqdeptnm_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptnm"));
  295. }
  296. // model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
  297. // model.setValue(opt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
  298. cmb_studyinstcd.value = '';
  299. cmb_studyinstcd.disabled = true;
  300. }else if(rdo_instcd.value == '114')
  301. {
  302. cmb_groupbugt.value = '';
  303. //cmb_bugtflag.value = '';
  304. model.setValue(opt_instcd.attribute("ref"), rdo_instcd.value);
  305. model.setValue(opt_deptinstcd.attribute("ref"), cmb_studyinstcd.value);
  306. model.setValue(ipt_reqdeptcd_search.attribute("ref") , "");
  307. model.setValue(opt_reqdeptnm_search.attribute("ref") , "");
  308. cmb_studyinstcd.disabled = false;
  309. cmb_studyinstcd.select(0);
  310. }else if(rdo_instcd.value == '032'){
  311. cmb_groupbugt.value = '';
  312. //cmb_bugtflag.value = '';
  313. model.setValue(opt_instcd.attribute("ref"), rdo_instcd.value);
  314. model.setValue(opt_deptinstcd.attribute("ref"), rdo_instcd.value);
  315. // 사용자의 부서가 하나가 아니면 오류메세지를 호출하며. 부서가 하나이면 부서코드와 부서명을 설정해준다.
  316. var fcheck = rszfGetUserInfo(getUserInfo("userid"), getUserInfo("dutplceinstcd")) ;
  317. if( ( fcheck > 1 ) || ( fcheck == 0 ) ){
  318. model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
  319. model.setValue(opt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
  320. }else{
  321. model.setValue(ipt_reqdeptcd_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptcd"));
  322. model.setValue(opt_reqdeptnm_search.attribute("ref") , model.getValue("/root/init/resultdata/rscmreaplist/deptnm"));
  323. }
  324. // model.setValue(ipt_reqdeptcd_search.attribute("ref") , getUserInfo("dutplcecd"));
  325. // model.setValue(opt_reqdeptnm_search.attribute("ref") , getUserInfo("dutplcenm"));
  326. cmb_studyinstcd.value = '';
  327. cmb_studyinstcd.disabled = true;
  328. }
  329. model.refresh();
  330. }
  331. function fAfterRetr()
  332. {
  333. /* 접수부서의 접수가 되었으면*/
  334. for(var fRow = grd_reqeqmtlist.fixedRows; fRow < grd_reqeqmtlist.rows; fRow++)
  335. {
  336. if(grd_reqeqmtlist.valueMatrix(fRow, grd_reqeqmtlist.colRef("acptflag")) == "Y")
  337. {
  338. grd_reqeqmtlist.isReadOnly(fRow,grd_reqeqmtlist.colRef("deptaprvyn")) = true;
  339. }
  340. else
  341. {
  342. grd_reqeqmtlist.isReadOnly(fRow,grd_reqeqmtlist.colRef("deptaprvyn")) = false;
  343. }
  344. }
  345. }
  346. /*--------------------------------------------------------------------------------*/
  347. /* 화면 open시 disable ..행추가시 또는 조회후 값 존재시 enable */
  348. /*--------------------------------------------------------------------------------*/
  349. function fAllControlDisabled(pDisableYn)
  350. {
  351. if(pDisableYn == "Y")
  352. {
  353. cmb_workflag.disabled="true"
  354. ipt_reqdeptcd.disabled="true"
  355. // ipt_reqpsnid.disabled="true"
  356. ipt_goodflagengnm.disabled="true"
  357. ipt_goodflaghngnm.disabled="true"
  358. cmb_groupbugt.disabled="true"
  359. // cmb_bugtflag.disabled="true"
  360. ipt_stdysubjno.disabled="true"
  361. ipt_bugtyy.disabled="true"
  362. ipt_cntrdeptcd.disabled="true"
  363. ipt_mngtdeptcd.disabled="true"
  364. cmb_usemthd.disabled="true"
  365. ipt_installplcecd.disabled="true"
  366. ipt_appqty.disabled="true"
  367. cmb_bugtforgnamtunit.disabled="true"
  368. ipt_bugtwncurncy.disabled="true"
  369. ipt_bugtforgnamt.disabled="true"
  370. ipt_addmnpwrdr.disabled="true"
  371. ipt_addmnpwrnurs.disabled="true"
  372. ipt_addmnpwrengr.disabled="true"
  373. ipt_addmnpwretc.disabled="true"
  374. rdo_instutcnstrneedyn.disabled="true"
  375. rdo_calcscorgenryn.disabled="true"
  376. rdo_installspcepossnyn.disabled="true"
  377. tar_usgepurcneed.disabled="true"
  378. ipt_presteqmtmmexeccnt.disabled="true"
  379. ipt_neweqmtmmexeccnt.disabled="true"
  380. ipt_calcscorprctnmpresteqmt.disabled="true"
  381. ipt_calcscorprctnmneweqmt.disabled="true"
  382. ipt_presteqmtmnpwr.disabled="true"
  383. ipt_prestneweqmtmnpwr.disabled="true"
  384. ipt_etccostrt.disabled="true"
  385. btn_goodflagengnm.disabled="true"
  386. btn_stdysubjnm.disabled="true"
  387. btn_cntrdeptcd.disabled="true"
  388. btn_mngtdeptcd.disabled="true"
  389. btn_installplcecd.disabled="true"
  390. ipt_chgrate.disabled="true"
  391. cmb_iopsnflag.disabled="true"
  392. ipt_stdysubjnm.disabled="true"
  393. ipt_mngtdeptnm.disabled="true"
  394. ipt_installplcenm.disabled="true"
  395. ipt_cntrdeptnm.disabled="true"
  396. tar_subestbcmt.disabled="true"
  397. tar_machcmt.disabled="true"
  398. tar_eleccmt.disabled="true"
  399. tar_mutplecmt.disabled="true"
  400. tar_compucmt.disabled="true"
  401. tar_etccmt.disabled="true"
  402. ipt_bugtflagnm.disabled="true"
  403. opt_projectnm.disabled="true"
  404. btn_bugtflagnm.disabled="true"
  405. cmb_fundorigin.disabled="true"
  406. }
  407. else
  408. {
  409. cmb_workflag.disabled="false"
  410. ipt_reqdeptcd.disabled="false"
  411. // ipt_reqpsnid.disabled="false"
  412. ipt_goodflagengnm.disabled="false"
  413. ipt_goodflaghngnm.disabled="false"
  414. // cmb_groupbugt.disabled="false"
  415. // cmb_bugtflag.disabled="false"
  416. fDisabledComboflag();
  417. ipt_stdysubjno.disabled="false"
  418. ipt_bugtyy.disabled="false"
  419. ipt_cntrdeptcd.disabled="false"
  420. ipt_mngtdeptcd.disabled="false"
  421. cmb_usemthd.disabled="false"
  422. ipt_installplcecd.disabled="false"
  423. ipt_appqty.disabled="false"
  424. cmb_bugtforgnamtunit.disabled="false"
  425. ipt_bugtwncurncy.disabled="false"
  426. ipt_bugtforgnamt.disabled="false"
  427. ipt_addmnpwrdr.disabled="false"
  428. ipt_addmnpwrnurs.disabled="false"
  429. ipt_addmnpwrengr.disabled="false"
  430. ipt_addmnpwretc.disabled="false"
  431. rdo_instutcnstrneedyn.disabled="false"
  432. rdo_calcscorgenryn.disabled="false"
  433. rdo_installspcepossnyn.disabled="false"
  434. tar_usgepurcneed.disabled="false"
  435. ipt_presteqmtmmexeccnt.disabled="false"
  436. ipt_neweqmtmmexeccnt.disabled="false"
  437. ipt_calcscorprctnmpresteqmt.disabled="false"
  438. ipt_calcscorprctnmneweqmt.disabled="false"
  439. ipt_presteqmtmnpwr.disabled="false"
  440. ipt_prestneweqmtmnpwr.disabled="false"
  441. ipt_etccostrt.disabled="false"
  442. btn_goodflagengnm.disabled="false"
  443. btn_stdysubjnm.disabled="false"
  444. btn_cntrdeptcd.disabled="false"
  445. btn_mngtdeptcd.disabled="false"
  446. btn_installplcecd.disabled="false"
  447. ipt_chgrate.disabled="false"
  448. cmb_iopsnflag.disabled="false"
  449. ipt_stdysubjnm.disabled="false"
  450. ipt_mngtdeptnm.disabled="false"
  451. ipt_installplcenm.disabled="false"
  452. ipt_cntrdeptnm.disabled="false"
  453. tar_subestbcmt.disabled="false"
  454. tar_machcmt.disabled="false"
  455. tar_eleccmt.disabled="false"
  456. tar_mutplecmt.disabled="false"
  457. tar_compucmt.disabled="false"
  458. tar_etccmt.disabled="false"
  459. ipt_bugtflagnm.disabled="false"
  460. opt_projectnm.disabled="false"
  461. btn_bugtflagnm.disabled="false"
  462. cmb_fundorigin.disabled="false"
  463. }
  464. model.refresh();
  465. }
  466. function fSettingGoodList(pnode, nodename)
  467. {
  468. var codynode = instance1.selectNodes(pnode + "/*");
  469. var addRow = grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows;
  470. if(model.getValue(grd_mon2cdlist.nodeset + "[" + addRow + "]/goodcd").length > 0)addRow = addRow + 1;
  471. for (var j = 1; j <= codynode.length ; j++) {
  472. if((grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows == 0) || (addRow > grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows))
  473. {
  474. misfGridIUD(grd_mon2cdlist,"A");
  475. // grd_mon2cdlist.addRow(true, true);
  476. // misfGridDefaultSet(grd_mon2cdlist);
  477. addRow = grd_mon2cdlist.rows - grd_mon2cdlist.fixedRows;
  478. }
  479. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/cstcd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
  480. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/cstcdnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
  481. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/suplplce" , model.getValue(pnode +"/" + nodename + "[" + j + "]/maincustlastsuplplce"));
  482. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/suplplcenm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/maincustlastsuplplcenm"));
  483. model.setValue(grd_mon2cdlist.attribute("nodeset") + "[" + grd_mon2cdlist.row + "]/purcunitcost" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
  484. addRow = addRow + 1;
  485. }
  486. //model.removenode(pnode);
  487. model.refresh();
  488. }
  489. function fCheckRetrieveData(pmsg)
  490. {
  491. if(model.getValue(opt_instcd.attribute("ref")).length== 0 )
  492. {
  493. if(pmsg == true)
  494. {
  495. messageBox("기관코드를 " ,"C002");
  496. model.setFocus("opt_instcd");
  497. }
  498. return false;
  499. }
  500. if(model.getValue(ipt_reqdeptcd_search.attribute("ref")).length== 0 )
  501. {
  502. if(pmsg == true)
  503. {
  504. messageBox("청구부서를 " ,"C002");
  505. model.setFocus("ipt_reqdeptcd_search");
  506. }
  507. return false;
  508. }
  509. if(model.getValue(ipt_reqfrmdd_search.attribute("ref")).length== 0 )
  510. {
  511. if(pmsg == true)
  512. {
  513. messageBox("청구조회시작일자를 " ,"C001");
  514. model.setFocus("ipt_reqfrmdd_search");
  515. }
  516. return false;
  517. }
  518. if(model.getValue(ipt_reqtodd_search.attribute("ref")).length== 0 )
  519. {
  520. if(pmsg == true)
  521. {
  522. messageBox("청구조회종료일자를 " ,"C001");
  523. model.setFocus("ipt_reqtodd_search");
  524. }
  525. return false;
  526. }
  527. return true;
  528. }
  529. function fDataCheck( ) {
  530. if ( grd_reqeqmtlist.rows > 1 )
  531. misfGridRowStatusChange(grd_reqeqmtlist,"/root/main/list","/root/main");
  532. var updtdata = getGridUpdateData(grd_reqeqmtlist);
  533. model.refresh();
  534. if (updtdata != "" ) return true;
  535. updtdata = getGridUpdateData(grd_publusedeptlist);
  536. if (updtdata != "" ) return true;
  537. updtdata = getGridUpdateData(grd_smlartyeqmtlist);
  538. if (updtdata != "" ) return true;
  539. updtdata = getGridUpdateData(grd_recmeqmtlist);
  540. if (updtdata != "" ) return true;
  541. updtdata = getGridUpdateData(grd_psgedeptlist);
  542. if (updtdata != "" ) return true;
  543. updtdata = getGridUpdateData(grd_mon1cdlist);
  544. if (updtdata != "" ) return true;
  545. updtdata = getGridUpdateData(grd_mon2cdlist);
  546. if (updtdata != "" ) return true;
  547. else return false;
  548. }
  549. function fSetAddRow( grd_temp ) {
  550. misfGridIUD(grd_temp,"A","N");
  551. // grd_temp.addRow(false);
  552. model.setValue( grd_temp.attribute("nodeset")+"["+grd_temp.row+"]/instcd", model.getValue(opt_instcd.attribute("ref")) );
  553. model.setValue( grd_temp.attribute("nodeset")+"["+grd_temp.row+"]/reqdd", model.getValue(opt_reqdd.attribute("ref")) );
  554. model.setValue( grd_temp.attribute("nodeset")+"["+grd_temp.row+"]/reqseqno", model.getValue(opt_reqseqno.attribute("ref")) );
  555. }
  556. function fCheckSaveData()
  557. {
  558. if(model.getValue(ipt_reqdeptcd.attribute("ref")).length==0)
  559. {
  560. messageBox("신청부서는" ,"I003");
  561. model.setFocus("ipt_reqdeptcd");
  562. return false;
  563. }
  564. if(model.getValue(cmb_workflag.attribute("ref")).length==0)
  565. {
  566. messageBox("청구구분은","I003");
  567. model.setFocus("cmb_workflag");
  568. return false;
  569. }
  570. if(model.getValue(ipt_appqty.attribute("ref")).length==0 || model.getValue(ipt_appqty.attribute("ref"))==0)
  571. {
  572. messageBox("청구수량은","I003");
  573. model.setFocus("ipt_appqty");
  574. return false;
  575. }
  576. if(model.getValue(ipt_goodflagengnm.attribute("ref")).length==0)
  577. {
  578. messageBox("장비영문명을","I003");
  579. model.setFocus("ipt_goodflagengnm");
  580. return false;
  581. }
  582. if(model.getValue(ipt_mngtdeptcd.attribute("ref")).length==0)
  583. {
  584. messageBox("관리부서를","I003");
  585. model.setFocus("ipt_mngtdeptcd");
  586. return false;
  587. }
  588. if(model.getValue(ipt_cntrdeptcd.attribute("ref")).length==0)
  589. {
  590. messageBox("귀속부서를","I003");
  591. model.setFocus("ipt_cntrdeptcd");
  592. return false;
  593. }
  594. if( checkKeyColumn("grd_recmeqmtlist") == false) return;
  595. if( checkKeyColumn("grd_smlartyeqmtlist") == false) return;
  596. if( checkKeyColumn("grd_psgedeptlist") == false) return;
  597. if( checkKeyColumn("grd_publusedeptlist") == false) return;
  598. if( checkKeyColumn("grd_mon1cdlist") == false) return;
  599. if( checkKeyColumn("grd_mon2cdlist") == false) return;
  600. return true;
  601. }
  602. function fDefaultSetting()
  603. {
  604. model.copyNode("/root/main/reqeqmtlist" , grd_reqeqmtlist.nodeset + "["+ (grd_reqeqmtlist.row-grd_reqeqmtlist.fixedrows+1) + "]");
  605. model.setValue(opt_reqdd.attribute("ref"), getCurrentDate() );
  606. model.setValue(ipt_reqdeptcd.attribute("ref"), ipt_reqdeptcd_search.value);
  607. model.setValue(ipt_reqpsnid.attribute("ref"), getUserInfo("userid"));
  608. model.setValue(opt_reqpsnnm.attribute("ref"), getUserInfo("usernm"));
  609. // 진행상태 "1" :청구
  610. model.setValue(ipt_prcsstat.attribute("ref"), "1");
  611. model.setValue(cmb_iopsnflag.attribute("ref"), "H");
  612. var curdate = getCurrentDate();
  613. var cvtdate = curdate.toDate("YYYYMMDD");
  614. model.setValue(ipt_bugtyy.attribute("ref"), cvtdate.getYear());
  615. // 귀속부서,관리부서 셋팅
  616. model.setValue(ipt_mngtdeptcd.attribute("ref"), ipt_reqdeptcd_search.value);
  617. model.setValue(ipt_mngtdeptnm.attribute("ref"), opt_reqdeptnm_search.value);
  618. model.setValue(ipt_cntrdeptcd.attribute("ref"), ipt_reqdeptcd_search.value);
  619. model.setValue(ipt_cntrdeptnm.attribute("ref"), opt_reqdeptnm_search.value);
  620. model.refresh();
  621. }
  622. function fMovecd(pgrid_name)
  623. {
  624. if(model.GetValue(cmb_workflag.attribute("ref")).length == 0)
  625. {
  626. messageBox("행추가를 먼저하시거나 '청구구분' 란을 먼저 " ,"C002");
  627. //model.setFocus("opt_instcd");
  628. return;
  629. }
  630. if (grd_fixasetcdlist.row > 0)
  631. {
  632. //model.setValue(ipt_fixasetcd.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("fixasetcd")));
  633. model.setValue(ipt_goodflaghngnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodflaghngnm")));
  634. model.setValue(ipt_goodflagengnm.attribute("ref"), grd_fixasetcdlist.valueMatrix(grd_fixasetcdlist.row , grd_fixasetcdlist.colRef("goodflagengnm")));
  635. model.refresh();
  636. }
  637. }
  638. function fSetAmt()
  639. {
  640. if(cmb_iopsnflag.value == "H")
  641. {
  642. ipt_bugtwncurncy.disabled="false";
  643. ipt_bugtforgnamt.disabled="true";
  644. ipt_chgrate.disabled="true";
  645. ipt_etccostrt.disabled="true";
  646. model.setValue(ipt_chgrate.attribute("ref"),"0" );
  647. model.setValue(ipt_bugtforgnamt.attribute("ref"),"0" );
  648. model.setValue(ipt_etccostrt.attribute("ref"),"0" );
  649. }
  650. else
  651. {
  652. ipt_bugtwncurncy.disabled="true";
  653. ipt_bugtforgnamt.disabled="false";
  654. ipt_chgrate.disabled="false";
  655. ipt_etccostrt.disabled="false";
  656. // 원화 := 외화*환율 + ((외화*환율*부대비용율)/100)
  657. var bugtwncurncy = ( parseInt(ipt_bugtforgnamt.value) * parseInt(ipt_chgrate.value) ) +
  658. ( ( parseInt(ipt_bugtforgnamt.value) * parseInt(ipt_chgrate.value) * parseInt(ipt_etccostrt.value) ) / 100 ) ;
  659. //var bugtwncurncy = ( parseInt(ipt_bugtforgnamt.value) * parseInt(ipt_chgrate.value) ) ;
  660. model.setValue(ipt_bugtwncurncy.attribute("ref"),bugtwncurncy );
  661. }
  662. model.refresh();
  663. }
  664. function fSetReqAuth()
  665. {
  666. /* ---------------------------------------------------------------------------------------
  667. * [2007.12.12 HBH ] 청구주기 추가.
  668. * 수리,장비등 청구주기가 없는 것들은 '1'로셋팅
  669. ---------------------------------------------------------------------------------------*/
  670. rszfGetPurcReqAuthInfo(model.getValue(opt_instcd.attribute("ref")), model.getValue(ipt_reqflag.attribute("ref")) , ipt_reqdeptcd_search.value, getUserInfo("userid"),"1");
  671. /*
  672. if(purcGetPurcAuthInfoByCond("reqauth") != "Y")btn_save.disabled = true;
  673. else btn_save.disabled = false;
  674. if(purcGetPurcAuthInfoByCond("reqaprvflag") != "2")btn_accept.disabled = true;
  675. else btn_accept.disabled = false;
  676. */
  677. btn_accept.disabled = true;
  678. //btn_save.disabled = true;
  679. btnselect.disabled = true;
  680. if(rszfGetPurcAuthInfoByCond("reqaprvflag") =="1")
  681. {
  682. btn_save.disabled = false;
  683. for(var fRow = grd_reqeqmtlist.fixedRows; fRow < grd_reqeqmtlist.rows-1; fRow++)
  684. {
  685. grd_reqeqmtlist.isReadOnly(fRow, grd_reqeqmtlist.colRef("deptaprvyn")) = true;
  686. }
  687. }
  688. if(rszfGetPurcAuthInfoByCond("reqaprvflag") == "2")
  689. {
  690. btn_save.disabled = false;
  691. btn_accept.disabled = false;
  692. btnselect.disabled = false;
  693. }
  694. //alert(getUserInfo("userid"));
  695. if(getUserInfo("userid")=="84040451" || getUserInfo("userid")=="99057308")
  696. {
  697. btn_save.disabled = false;
  698. btn_accept.disabled = false;
  699. btnselect.disabled = false;
  700. }
  701. model.refresh();
  702. }
  703. function fControlDisabled(fBool)
  704. {
  705. button13.disabled = fBool;
  706. button14.disabled = fBool;
  707. grd_recmeqmtlist.disabled = fBool;
  708. button16.disabled = fBool;
  709. button18.disabled = fBool;
  710. grd_smlartyeqmtlist.disabled = fBool;
  711. button17.disabled = fBool;
  712. button15.disabled = fBool;
  713. grd_psgedeptlist.disabled = fBool;
  714. button6.disabled = fBool;
  715. button4.disabled = fBool;
  716. grd_publusedeptlist.disabled = fBool;
  717. button12.disabled = fBool;
  718. button11.disabled = fBool;
  719. grd_mon1cdlist.disabled = fBool;
  720. button20.disabled = fBool;
  721. button19.disabled = fBool;
  722. grd_mon2cdlist.disabled = fBool;
  723. grd_fixasetcdlist.disabled = fBool;
  724. }
  725. function fSetNum(grd_temp, node)
  726. {
  727. var num = new String(grd_temp.row);
  728. if(num.length == 1){
  729. num = "00" + num;
  730. }
  731. else if(num.length == 2){
  732. num = "0" + num;
  733. }
  734. grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef(node)) = num;
  735. }
  736. function fDispCalc(pointyn)
  737. {
  738. // 그룹위치 설정.
  739. var pos = 0;
  740. if(pointyn == true)
  741. {
  742. pos = 330;
  743. }else{
  744. pos = event.y + 360;
  745. }
  746. //group3.disabled = true;
  747. //grp_btn.disabled= true;
  748. grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("money")) = grd_recmeqmtlist.valueMatrix(grd_recmeqmtlist.row, grd_recmeqmtlist.colRef("forgncurncyamt"));
  749. grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("persent")) = 0;
  750. grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("exchange")) = 0;
  751. grd_calc.valueMatrix(grd_calc.rows-1, grd_calc.colRef("currency")) = 0;
  752. grd_calc.isReadOnly(grd_calc.rows-1, grd_calc.colRef("money")) = false;
  753. gro_calc.attribute("style") = 'left:500px; width:375px; height:99px; top:' + pos + 'px';
  754. gro_calc.attribute("visibility") = 'visible';
  755. grd_calc.col = grd_calc.colRef("persent");
  756. grd_calc.editCell();
  757. model.refresh();
  758. }
  759. ]]>
  760. </script>
  761. </xhtml:head>
  762. <xhtml:body guideline="1,-12;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  763. <group id="group1" style="left:0px; top:0px; width:1194px; height:14px; ">
  764. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">장비청구(성의교정)</caption>
  765. </group>
  766. <group id="group3" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  767. <line id="line5" class="line_2" style="x1:0px; y1:145px; x2:1195px; y2:145px; "/>
  768. <line id="line4" class="line_3" style="x1:0px; y1:338px; x2:1195px; y2:338px; "/>
  769. <line id="line19" class="line_2" style="x1:0px; y1:217px; x2:282px; y2:217px; "/>
  770. <line id="line16" class="line_2" style="x1:0px; y1:266px; x2:1195px; y2:266px; "/>
  771. <line id="line22" class="line_3" style="x1:0px; y1:169px; x2:1195px; y2:169px; "/>
  772. <line id="line21" class="line_2" style="x1:0px; y1:121px; x2:1195px; y2:121px; "/>
  773. <line id="line20" class="line_2" style="x1:0px; y1:193px; x2:1195px; y2:193px; "/>
  774. <line id="line7" class="line_2" style="x1:0px; y1:169px; x2:1195px; y2:169px; "/>
  775. <line id="line12" class="line_2" style="x1:0px; y1:290px; x2:1195px; y2:290px; "/>
  776. <caption id="caption9" class="tit_2" style="left:5px; top:561px; width:100px; height:13px; ">장비청구 목록</caption>
  777. <button id="btn_del" class="btn2_letter3" visibility="visible" style="left:1141px; top:73px; width:53px; height:19px; ">
  778. <caption>행삭제</caption>
  779. <script type="javascript" ev:event="DOMActivate">
  780. <![CDATA[
  781. if( grd_reqeqmtlist.row >= grd_reqeqmtlist.fixedRows ) {
  782. if ( model.getValue(grd_reqeqmtlist.nodeset+"[" + grd_reqeqmtlist.row + "]/acptflag") != "Y" ) {
  783. misfGridIUD(grd_reqeqmtlist, "D");
  784. } else {
  785. messageBox("청구가 접수상태로 청구 삭제를 할 수 ","I004");
  786. }
  787. }
  788. model.refresh();
  789. ]]>
  790. </script>
  791. </button>
  792. <line id="line9" class="line_1" style="x1:0px; y1:94px; x2:1195; y2:94px; "/>
  793. <input id="ipt_goodflagengnm" ref="/root/main/reqeqmtlist/goodflagengnm" class="input_s_essential" style="left:103px; top:125px; width:454px; height:19px; "/>
  794. <caption id="caption52" class="cell_1" style="left:-126px; top:310px; width:108px; height:23px; vertical-align:middle; ">포장단위</caption>
  795. <caption id="caption54" class="cell_1" style="left:-126px; top:334px; width:108px; height:23px; vertical-align:middle; ">근속기준일/년</caption>
  796. <datagrid id="grd_reqeqmtlist" nodeset="/root/main/list/reqeqmtlist" caption="진행상태^입고예정일^접수^청구번호^신청자^장비명^모델^제조회사^원화금액^외화금액^설치장소^신청수량^승인^청구수량^예산년도^예산구분^사용방법^귀속부서^관리부서^설치장소^월간시행건수(현장비)^월간시행건수(신장비)^수가처방코드명(현장비)^수가처방코드명(신장비)^현장비운영인력(현장비)^현장비운영인력(신장비)^용도및구입필요성^시설공사필요여부^설치공간확보여부^추가인력의사^추가인력간호사^추가인력기사^추가인력기타^수가신설여부^예산원화^예산외화^예산외화화폐단위^요양급여^행위료포함^미결정치료재료^의료보험^접수여부^접수일자^접수순번^발주일자^발주순번^첨부파일명^첨부파일경로명^caption1" colsep="^" colwidth="54, 84, 42, 90, 60, 240, 120, 120, 75, 75, 108, 59, 38, 100, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 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" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:581px; width:1195px; height:153px; ">
  797. <col ref="prcsstatnm"/>
  798. <col ref="realwinschedd" format="yyyy-mm-dd"/>
  799. <col ref="acptflagnm"/>
  800. <col ref="reqno"/>
  801. <col ref="reqpsnnm"/>
  802. <col ref="goodflagengnm"/>
  803. <col ref="model"/>
  804. <col ref="prodcmpynm"/>
  805. <col ref="wncurncyamt" format="#,###" style="text-align:right; "/>
  806. <col ref="forgncurncyamt" format="#,###" style="text-align:right; "/>
  807. <col ref="installplcenm"/>
  808. <col ref="appqty" format="#,###" style="text-align:right; "/>
  809. <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox"/>
  810. <col ref="reqqty" visibility="hidden" format="#,###" style="text-align:right; "/>
  811. <col ref="bugtyy" visibility="hidden"/>
  812. <col ref="bugtflag" visibility="hidden"/>
  813. <col ref="usemthd" visibility="hidden"/>
  814. <col ref="cntrdeptcd" visibility="hidden"/>
  815. <col ref="mngtdeptcd" visibility="hidden"/>
  816. <col ref="installplcecd" visibility="hidden"/>
  817. <col ref="presteqmtmmexeccnt" visibility="hidden"/>
  818. <col ref="neweqmtmmexeccnt" visibility="hidden"/>
  819. <col ref="calcscorprctnmpresteqmt" visibility="hidden"/>
  820. <col ref="calcscorprctnmneweqmt" visibility="hidden"/>
  821. <col ref="presteqmtmnpwr" visibility="hidden"/>
  822. <col ref="prestneweqmtmnpwr" visibility="hidden"/>
  823. <col ref="usgepurcneed" visibility="hidden"/>
  824. <col ref="instutcnstrneedyn" visibility="hidden"/>
  825. <col ref="installspcepossnyn" visibility="hidden"/>
  826. <col ref="addmnpwrdr" visibility="hidden"/>
  827. <col ref="addmnpwrnurs" visibility="hidden"/>
  828. <col ref="addmnpwrengr" visibility="hidden"/>
  829. <col ref="addmnpwretc" visibility="hidden"/>
  830. <col ref="calcscorgenryn" visibility="hidden"/>
  831. <col ref="bugtwncurncy" visibility="hidden"/>
  832. <col ref="bugtforgnamt" visibility="hidden"/>
  833. <col ref="bugtforgnamtunit" visibility="hidden"/>
  834. <col ref="medcare" visibility="hidden"/>
  835. <col ref="actamtincl" visibility="hidden"/>
  836. <col ref="undecicurematr" visibility="hidden"/>
  837. <col ref="medcareinsu" visibility="hidden"/>
  838. <col ref="acptflag" visibility="hidden"/>
  839. <col ref="acptdd" visibility="hidden"/>
  840. <col ref="acptseqno" visibility="hidden"/>
  841. <col ref="plceorddd" visibility="hidden"/>
  842. <col ref="plceordseqno" visibility="hidden"/>
  843. <col ref="attfilenm" visibility="hidden"/>
  844. <col ref="attfilepathnm" visibility="hidden"/>
  845. <col ref="stdysubjno" visibility="hidden"/>
  846. <col ref="stdysubjnm" visibility="hidden"/>
  847. <col ref="prcsstat" visibility="hidden"/>
  848. <col ref="instcd" visibility="hidden"/>
  849. <col ref="reqdd" visibility="hidden"/>
  850. <col ref="reqseqno" visibility="hidden"/>
  851. <col ref="reqdeptcd" visibility="hidden"/>
  852. <col ref="workflag" visibility="hidden"/>
  853. <col ref="goodflaghngnm" visibility="hidden"/>
  854. <col ref="reqpsnid" visibility="hidden"/>
  855. <col ref="deptaprvdd" visibility="hidden"/>
  856. <col ref="etccostrt" visibility="hidden"/>
  857. <col ref="fixasetcd" visibility="hidden"/>
  858. <col ref="iopsnflag" visibility="hidden"/>
  859. <col ref="chgrate" visibility="hidden"/>
  860. <col ref="subestbcmt" visibility="hidden"/>
  861. <col ref="machcmt" visibility="hidden"/>
  862. <col ref="eleccmt" visibility="hidden"/>
  863. <col ref="mutplecmt" visibility="hidden"/>
  864. <col ref="compucmt" visibility="hidden"/>
  865. <col ref="etccmt" visibility="hidden"/>
  866. <col ref="cntrdeptnm" visibility="hidden"/>
  867. <col ref="mngtdeptnm" visibility="hidden"/>
  868. <col ref="reqdeptnm" visibility="hidden"/>
  869. <col ref="studyinstcd" visibility="hidden"/>
  870. <col ref="bugtflagnm" visibility="hidden"/>
  871. <col ref="projectid" visibility="hidden"/>
  872. <col ref="projectnm" visibility="hidden"/>
  873. <col ref="totamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  874. <col ref="bugtexpcamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  875. <col ref="bugtexecamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  876. <col ref="remainder" visibility="hidden" format="#,###" style="text-align:right; "/>
  877. <col ref="fundorigin" visibility="hidden"/>
  878. <script type="javascript" ev:event="onrowchanged">
  879. <![CDATA[
  880. fAllControlDisabled("Y");
  881. if( grd_reqeqmtlist.rows >= grd_reqeqmtlist.fixedRows )
  882. {
  883. //연구계정설정////////////////////
  884. cmb_groupbugt.value = rszfComboBgcdBugtList("", grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("instcd")), '2', grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("bugtflag")), "Y");
  885. cmb_groupbugt.dispatch("xforms-value-changed");
  886. //연구계정설정////////////////////
  887. model.copyNode("/root/main/reqeqmtlist" , grd_reqeqmtlist.nodeset + "["+ (grd_reqeqmtlist.row-grd_reqeqmtlist.fixedrows+1) + "]");
  888. model.setValue( opt_instcd.attribute("ref") , model.getValue( grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.row-grd_reqeqmtlist.fixedrows+1) + "]/instcd") );
  889. model.setValue( opt_reqdd.attribute("ref") , model.getValue( grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.row-grd_reqeqmtlist.fixedrows+1) + "]/reqdd") );
  890. model.setValue( opt_reqseqno.attribute("ref") , model.getValue( grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.row-grd_reqeqmtlist.fixedrows+1) + "]/reqseqno") );
  891. // 화면 오픈시 월간재료비의 그리드만 Master에 연결하지 않고 따로 관리하기 위하여 설정되어 있음으로 조회시 조건의 값이 되는 데이터를 Send할 Node에 복사합니다.
  892. model.copyNode("/root/send/grid/reqeqmtlist_row", grd_reqeqmtlist.attribute("nodeset") + "["+ grd_reqeqmtlist.row +"]");
  893. model.refresh();
  894. misfGridInit(grd_recmeqmtlist);
  895. misfGridInit(grd_smlartyeqmtlist);
  896. misfGridInit(grd_fixasetcdlistv);
  897. misfGridInit(grd_publusedeptlist);
  898. misfGridInit(grd_mon1cdlist);
  899. misfGridInit(grd_mon2cdlist);
  900. // misfGridInit(grd_fixasetcdlist);
  901. misfMsterDetailRetrieve();
  902. // 월간재료비 Load
  903. submit("TRRSD05507");
  904. //if (grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("deptaprvyn")) == "Y")
  905. //{
  906. // fAllControlDisabled("Y");
  907. // fControlDisabled(false);
  908. //}else if(grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("acptflag")) == "Y")
  909. if(grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.row, grd_reqeqmtlist.colRef("acptflag")) == "Y")
  910. {
  911. fAllControlDisabled("Y");
  912. // 행추가,삭제 변경 설정.
  913. fControlDisabled(true);
  914. }else{
  915. fAllControlDisabled("N");
  916. // 행추가,삭제 변경 설정.
  917. fControlDisabled(false);
  918. fSetAmt();
  919. }
  920. }
  921. ]]>
  922. </script>
  923. <script type="javascript" ev:event="xforms-value-changed">
  924. <![CDATA[
  925. if(grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.Row,grd_reqeqmtlist.colRef("acptflag")) == "Y" )
  926. {
  927. messageBox("관리부서에서 접수된건입니다. 접수취소를 하실수 " ,"I004");
  928. // check box의 반대값을 넣어주고 status를 원위치한다.
  929. grd_reqeqmtlist.rowStatus(grd_reqeqmtlist.Row - grd_reqeqmtlist.fixedRows + 1) = "0";
  930. if(grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.Row,grd_reqeqmtlist.colRef("deptaprvyn")) == "N" )
  931. model.setValue(grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.Row - grd_reqeqmtlist.fixedrows+ 1) + "]/deptaprvyn" ,"Y");
  932. else
  933. model.setValue(grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.Row - grd_reqeqmtlist.fixedrows+ 1) + "]/deptaprvyn" ,"N");
  934. }
  935. else
  936. {
  937. if(grd_reqeqmtlist.valueMatrix(grd_reqeqmtlist.Row,grd_reqeqmtlist.colRef("deptaprvyn")) == "N" )
  938. {
  939. model.setValue(grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.Row - grd_reqeqmtlist.fixedrows+ 1) + "]/deptaprvdd" , "");
  940. }
  941. else
  942. {
  943. model.setValue(grd_reqeqmtlist.nodeset + "[" + (grd_reqeqmtlist.Row - grd_reqeqmtlist.fixedrows+ 1) + "]/deptaprvdd" , getCurrentDate());
  944. //model.setValue(grd_goodreq.nodeset + "[" + (liRow - grd_goodreq.fixedRows + 1) + "]/acptdd" , getCurrentDate());
  945. }
  946. }
  947. ]]>
  948. </script>
  949. <script type="javascript" ev:event="onaftersort">
  950. <![CDATA[
  951. grd_reqeqmtlist.gridToInstance();
  952. ]]>
  953. </script>
  954. </datagrid>
  955. <line id="line3" class="line_1" style="x1:0px; y1:577px; x2:1195px; y2:578px; "/>
  956. <caption id="caption22" class="cell_1" style="left:0px; top:99px; width:101; height:23px; vertical-align:middle; ">청구구분</caption>
  957. <select1 id="cmb_workflag" ref="/root/main/reqeqmtlist/workflag" class="combo_s_essential" appearance="minimal" style="left:103px; top:101px; width:179px; height:19px; ">
  958. <choices>
  959. <item>
  960. <label>신규</label>
  961. <value>1</value>
  962. </item>
  963. <item>
  964. <label>수량부족</label>
  965. <value>2</value>
  966. </item>
  967. <item>
  968. <label>노후교체</label>
  969. <value>3</value>
  970. </item>
  971. </choices>
  972. </select1>
  973. <caption id="caption23" class="cell_1" style="left:0px; top:147px; width:101; height:23px; vertical-align:middle; ">장비명(한)</caption>
  974. <caption id="caption27" class="cell_1" style="left:284px; top:99px; width:100px; height:23px; vertical-align:middle; ">신청자</caption>
  975. <caption id="caption28" class="cell_1" style="left:0px; top:291px; width:100px; height:23px; vertical-align:middle; ">청구수량</caption>
  976. <caption id="caption65" class="cell_1" style="left:0px; top:123px; width:101; height:23px; vertical-align:middle; ">장비명(영)</caption>
  977. <input id="ipt_goodflaghngnm" ref="/root/main/reqeqmtlist/goodflaghngnm" class="input_default" style="left:103px; top:149px; width:262px; height:19px; "/>
  978. <!--</group>-->
  979. <line id="line15" class="line_2" style="x1:4px; y1:452px; x2:710px; y2:452px; "/>
  980. <input id="ipt_neweqmtmmexeccnt" ref="/root/main/reqeqmtlist/neweqmtmmexeccnt" class="input_default" visibility="hidden" style="left:1065px; top:70px; width:10px; height:19px; text-align:right; "/>
  981. <input id="ipt_presteqmtmmexeccnt" ref="/root/main/reqeqmtlist/presteqmtmmexeccnt" class="input_default" visibility="hidden" style="left:1075px; top:70px; width:6px; height:19px; text-align:right; "/>
  982. <input id="ipt_calcscorprctnmpresteqmt" ref="/root/main/reqeqmtlist/calcscorprctnmpresteqmt" class="input_default" visibility="hidden" style="left:1055px; top:70px; width:6px; height:19px; text-align:right; "/>
  983. <input id="ipt_calcscorprctnmneweqmt" ref="/root/main/reqeqmtlist/calcscorprctnmneweqmt" class="input_default" visibility="hidden" style="left:1045px; top:70px; width:5px; height:19px; text-align:right; "/>
  984. <input id="ipt_presteqmtmnpwr" ref="/root/main/reqeqmtlist/presteqmtmnpwr" class="input_default" visibility="hidden" style="left:1035px; top:70px; width:6px; height:19px; text-align:right; "/>
  985. <input id="ipt_prestneweqmtmnpwr" ref="/root/main/reqeqmtlist/prestneweqmtmnpwr" class="input_default" visibility="hidden" style="left:1025px; top:70px; width:10px; height:19px; text-align:right; "/>
  986. <caption id="caption17" class="cell_1" style="left:585px; top:123px; width:118px; height:23px; vertical-align:middle; ">설치공간 확보여부</caption>
  987. <caption id="caption21" class="cell_1" style="left:909px; top:123px; width:110px; height:23px; vertical-align:middle; ">수가신설여부</caption>
  988. <caption id="caption24" class="cell_1" style="left:585px; top:99px; width:118px; height:23px; vertical-align:middle; ">추가인력</caption>
  989. <input id="ipt_addmnpwrengr" ref="/root/main/reqeqmtlist/addmnpwrengr" class="input_default" style="left:972px; top:101px; width:35px; height:19px; text-align:right; "/>
  990. <caption id="caption15" style="left:707px; top:102px; width:34px; height:19px; vertical-align:middle; ">의사 :</caption>
  991. <caption id="caption37" style="left:820px; top:102px; width:46px; height:19px; vertical-align:middle; ">간호사 :</caption>
  992. <caption id="caption40" style="left:938px; top:102px; width:38px; height:20px; vertical-align:middle; ">기사 :</caption>
  993. <caption id="caption41" style="left:1047px; top:102px; width:38px; height:20px; vertical-align:middle; ">기타 :</caption>
  994. <input id="ipt_addmnpwretc" ref="/root/main/reqeqmtlist/addmnpwretc" class="input_default" style="left:1081px; top:101px; width:35px; height:19px; text-align:right; "/>
  995. <input id="ipt_addmnpwrnurs" ref="/root/main/reqeqmtlist/addmnpwrnurs" class="input_default" style="left:866px; top:101px; width:35px; height:19px; text-align:right; "/>
  996. <input id="ipt_addmnpwrdr" ref="/root/main/reqeqmtlist/addmnpwrdr" class="input_default" style="left:742px; top:101px; width:35px; height:19px; text-align:right; "/>
  997. <caption id="caption43" style="left:781px; top:103; width:14px; height:20px; vertical-align:middle; ">명</caption>
  998. <caption id="caption44" style="left:904px; top:103px; width:14px; height:20px; vertical-align:middle; ">명</caption>
  999. <caption id="caption46" style="left:1015px; top:103px; width:14px; height:20px; vertical-align:middle; ">명</caption>
  1000. <caption id="caption47" style="left:1119px; top:103px; width:14px; height:20px; vertical-align:middle; ">명</caption>
  1001. <select1 id="rdo_instutcnstrneedyn" ref="/root/main/reqeqmtlist/instutcnstrneedyn" visibility="hidden" appearance="full" cols="1" overflow="visible" style="left:990px; top:75px; width:15px; height:16px; background-color:transparent; border-style:none; ">
  1002. <choices>
  1003. <itemset nodeset="/root/init/instutcnstrneedyn">
  1004. <label ref="label"/>
  1005. <value ref="value"/>
  1006. </itemset>
  1007. </choices>
  1008. </select1>
  1009. <textarea id="tar_usgepurcneed" ref="/root/main/reqeqmtlist/usgepurcneed" style="left:705px; top:149px; width:489px; height:91px; "/>
  1010. <caption id="caption16" class="cell_1" style="left:585px; top:147px; width:118px; height:93px; vertical-align:middle; ">기 대 효 과</caption>
  1011. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:61px; "/>
  1012. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:29px; width:56px; height:22px; ">
  1013. <caption>조회</caption>
  1014. <script type="javascript" ev:event="DOMActivate">
  1015. <![CDATA[
  1016. if(fCheckRetrieveData(false) == false)return;
  1017. if ( fDataCheck() )
  1018. {
  1019. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  1020. if (ret != 6) { // not OK
  1021. return;
  1022. } else {
  1023. misfMsterDetailRetrieve();
  1024. }
  1025. } else
  1026. {
  1027. misfMsterDetailRetrieve();
  1028. }
  1029. fAfterRetr();
  1030. if ( grd_reqeqmtlist.rows <= 1 ) {
  1031. model.resetInstanceNode("/root/main/reqeqmtlist");
  1032. model.refresh();
  1033. }
  1034. ]]>
  1035. </script>
  1036. </button>
  1037. <button id="btn_reqdeptcd" class="icon_search" style="left:885px; top:21px; width:16px; height:16px; ">
  1038. <caption/>
  1039. <script type="javascript" ev:event="DOMActivate">
  1040. <![CDATA[
  1041. var recv_list = "reqdeptcd,reqdeptnm";
  1042. misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, opt_deptinstcd.value, "instcd") ;
  1043. model.refresh();
  1044. // 권한설정.
  1045. fSetReqAuth();
  1046. ]]>
  1047. </script>
  1048. </button>
  1049. <caption id="caption2" class="search_name" style="left:405px; top:45px; width:117px; height:17px; ">청구구분 :</caption>
  1050. <caption id="caption4" class="search_name" style="left:15px; top:19px; width:117px; height:17px; ">기관코드 :</caption>
  1051. <line id="line18" class="line_4" style="x1:1109px; y1:20px; x2:1109px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
  1052. <select1 id="cmb_workflag_search" ref="/root/send/sendlist/workflag" class="combo_default" appearance="minimal" style="left:490px; top:44px; width:170px; height:19px; ">
  1053. <choices>
  1054. <itemset>
  1055. <label/>
  1056. <value/>
  1057. </itemset>
  1058. </choices>
  1059. <script type="javascript" ev:event="xforms-value-changed">
  1060. <![CDATA[
  1061. btn_search.dispatch("DOMActivate");
  1062. ]]>
  1063. </script>
  1064. </select1>
  1065. <input id="ipt_reqdeptcd_search" ref="/root/send/sendlist/reqdeptcd" class="input_s_essential" style="left:757px; top:20px; width:120px; height:19px; ">
  1066. <script type="javascript" ev:event="xforms-value-changed">
  1067. <![CDATA[
  1068. if(ipt_reqdeptcd_search.value.length == 0)
  1069. opt_reqdeptnm_search.value = "";
  1070. else
  1071. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_deptinstcd.value, "instcd" );
  1072. model.refresh();
  1073. // 권한설정.
  1074. fSetReqAuth();
  1075. ]]>
  1076. </script>
  1077. </input>
  1078. <caption id="caption8" class="search_name" style="left:672px; top:20px; width:117px; height:17px; ">청구부서 :</caption>
  1079. <output id="opt_reqdeptnm_search" ref="/root/send/sendlist/reqdeptnm" class="output_fix" appearance="output" style="left:906px; top:20px; width:191px; height:19px; "/>
  1080. <input id="ipt_reqdeptcd" ref="/root/main/reqeqmtlist/reqdeptcd" class="input_essential" visibility="hidden" style="left:1015px; top:70px; width:9px; height:19px; ">
  1081. <script type="javascript" ev:event="xforms-value-changed">
  1082. <![CDATA[
  1083. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_deptinstcd.value, "instcd");
  1084. model.refresh();
  1085. model.setFocus("ipt_reqdeptcd");
  1086. ]]>
  1087. </script>
  1088. </input>
  1089. <input id="ipt_appqty" ref="/root/main/reqeqmtlist/appqty" class="input_s_essential" format="#,###" style="left:102px; top:293px; width:57px; height:19px; text-align:right; ">
  1090. <script type="javascript" ev:event="xforms-value-changed">
  1091. <![CDATA[
  1092. //fSetAmt()
  1093. ]]>
  1094. </script>
  1095. </input>
  1096. <input id="ipt_reqpsnid" ref="/root/main/reqeqmtlist/reqpsnid" class="input_s_essential" disabled="true" style="left:386px; top:101px; width:63px; height:19px; "/>
  1097. <output id="opt_reqpsnnm" ref="/root/main/reqeqmtlist/reqpsnnm" class="output_fix" appearance="output" style="left:450px; top:101px; width:132px; height:19px; "/>
  1098. <caption id="caption31" class="cell_1" style="left:367px; top:315px; width:93px; height:23px; vertical-align:middle; ">예산금액(내자)</caption>
  1099. <caption id="caption35" class="cell_1" style="left:200px; top:171px; width:63px; height:23px; vertical-align:middle; ">예산계정</caption>
  1100. <caption id="caption7" class="cell_1" style="left:0px; top:243px; width:101px; height:23px; vertical-align:middle; ">귀속부서</caption>
  1101. <caption id="caption18" class="cell_1" style="left:284px; top:243px; width:100px; height:23px; vertical-align:middle; ">관리부서</caption>
  1102. <caption id="caption20" class="cell_1" style="left:0px; top:171px; width:101px; height:23px; vertical-align:middle; ">예산년도</caption>
  1103. <caption id="caption25" class="cell_1" style="left:162px; top:291px; width:55px; height:23px; vertical-align:middle; ">내,외자</caption>
  1104. <caption id="caption29" class="cell_1" style="left:284px; top:267px; width:100px; height:23px; vertical-align:middle; ">설치장소</caption>
  1105. <caption id="caption32" class="cell_1" style="left:0px; top:267px; width:101px; height:23px; vertical-align:middle; ">사용방법</caption>
  1106. <input id="ipt_bugtforgnamt" ref="/root/main/reqeqmtlist/bugtforgnamt" class="input_default" format="#,###" style="left:463px; top:293px; width:119px; height:19px; text-align:right; ">
  1107. <script type="javascript" ev:event="xforms-value-changed">
  1108. <![CDATA[
  1109. fSetAmt()
  1110. ]]>
  1111. </script>
  1112. </input>
  1113. <caption id="caption34" class="cell_1" style="left:367px; top:291px; width:93px; height:23px; vertical-align:middle; ">예산금액(외자)</caption>
  1114. <select1 id="cmb_usemthd" ref="/root/main/reqeqmtlist/usemthd" class="combo_default" appearance="minimal" style="left:103px; top:269px; width:179px; height:19px; ">
  1115. <choices>
  1116. <itemset nodeset="/root/init/usemthd">
  1117. <label ref="label"/>
  1118. <value ref="value"/>
  1119. </itemset>
  1120. </choices>
  1121. <script type="javascript" ev:event="xforms-value-changed">
  1122. <![CDATA[
  1123. if (cmb_usemthd.value== "2") btn_publusedeptcd_case.dispatch("onclick");
  1124. ]]>
  1125. </script>
  1126. </select1>
  1127. <select1 id="cmb_bugtforgnamtunit" ref="/root/main/reqeqmtlist/bugtforgnamtunit" class="combo_default" appearance="minimal" style="left:140px; top:317px; width:85px; height:19px; ">
  1128. <choices>
  1129. <itemset>
  1130. <label/>
  1131. <value/>
  1132. </itemset>
  1133. </choices>
  1134. </select1>
  1135. <input id="ipt_bugtwncurncy" ref="/root/main/reqeqmtlist/bugtwncurncy" class="input_default" format="#,###" style="left:463px; top:316px; width:119px; height:19px; text-align:right; "/>
  1136. <input id="ipt_bugtyy" ref="/root/main/reqeqmtlist/bugtyy" class="input_search" format="yyyy" style="left:103px; top:173px; width:92px; height:19px; text-align:center; "/>
  1137. <button id="btn_cntrdeptcd" class="icon_search" style="left:179px; top:247px; width:16px; height:16px; ">
  1138. <caption/>
  1139. <script type="javascript" ev:event="DOMActivate">
  1140. <![CDATA[
  1141. var recv_list = "cntrdeptcd,cntrdeptnm";
  1142. misfOpenPopUpList("02", ipt_cntrdeptcd,"", recv_list, opt_deptinstcd.value, "instcd") ;
  1143. model.refresh();
  1144. ]]>
  1145. </script>
  1146. </button>
  1147. <input id="ipt_cntrdeptcd" ref="/root/main/reqeqmtlist/cntrdeptcd" class="input_s_essential" style="left:103px; top:245px; width:72px; height:19px; ">
  1148. <script type="javascript" ev:event="xforms-value-changed">
  1149. <![CDATA[
  1150. misfValidationCheck("02", "", "cntrdeptcd,cntrdeptnm", opt_deptinstcd.value, "instcd");
  1151. model.refresh();
  1152. model.setFocus("ipt_cntrdeptcd");
  1153. ]]>
  1154. </script>
  1155. </input>
  1156. <button id="btn_mngtdeptcd" class="icon_search" style="left:467px; top:247px; width:16px; height:16px; ">
  1157. <caption/>
  1158. <script type="javascript" ev:event="DOMActivate">
  1159. <![CDATA[
  1160. var recv_list = "mngtdeptcd,mngtdeptnm";
  1161. misfOpenPopUpList("02", ipt_mngtdeptcd,"", recv_list, opt_deptinstcd.value, "instcd") ;
  1162. model.refresh();
  1163. ]]>
  1164. </script>
  1165. </button>
  1166. <input id="ipt_mngtdeptcd" ref="/root/main/reqeqmtlist/mngtdeptcd" class="input_s_essential" style="left:386px; top:245px; width:76px; height:19px; ">
  1167. <script type="javascript" ev:event="xforms-value-changed">
  1168. <![CDATA[
  1169. misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm", opt_deptinstcd.value, "instcd" );
  1170. model.refresh();
  1171. model.setFocus("ipt_mngtdeptcd");
  1172. ]]>
  1173. </script>
  1174. </input>
  1175. <input id="ipt_installplcecd" ref="/root/main/reqeqmtlist/installplcecd" class="input_default" style="left:386px; top:269px; width:76px; height:19px; ">
  1176. <script type="javascript" ev:event="xforms-value-changed">
  1177. <![CDATA[
  1178. if(ipt_installplcecd.value.length == 0)
  1179. {
  1180. ipt_installplcenm.value = "";
  1181. }
  1182. else
  1183. {
  1184. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm,instcd",
  1185. "deptcd," + ipt_installplcecd.value + "," + opt_deptinstcd.value, "", "installplcecd,installplcenm",
  1186. ipt_installplcecd, "PPRAC00700", "instcd","opt_deptinstcd");
  1187. }
  1188. model.refresh();
  1189. ]]>
  1190. </script>
  1191. </input>
  1192. <button id="btn_installplcecd" class="icon_search" style="left:467px; top:271px; width:16px; height:16px; ">
  1193. <caption/>
  1194. <script type="javascript" ev:event="DOMActivate">
  1195. <![CDATA[
  1196. var recv_list = "installplcecd,installplcenm";
  1197. misfOpenPopUpList("19", ipt_installplcecd,"", recv_list, opt_deptinstcd.value, "instcd") ;
  1198. model.refresh();
  1199. ]]>
  1200. </script>
  1201. </button>
  1202. <caption id="caption14" class="search_name" style="left:15px; top:45; width:117px; height:17px; ">청구일자 :</caption>
  1203. <input id="ipt_reqfrmdd_search" ref="/root/send/sendlist/reqfrmdd" class="input_s_essential" inputtype="date" style="left:100px; top:44; width:95px; height:19px; "/>
  1204. <caption id="caption42" style="left:199px; top:45px; width:15px; height:20px; font-weight:bold; ">~</caption>
  1205. <input id="ipt_reqtodd_search" ref="/root/send/sendlist/reqtodd" class="input_s_essential" inputtype="date" style="left:215px; top:44; width:95px; height:19px; "/>
  1206. <select1 id="cmb_prcsstat_search" ref="/root/send/sendlist/prcsstat" class="combo_default" appearance="minimal" style="left:756px; top:44px; width:123px; height:19px; ">
  1207. <choices>
  1208. <itemset>
  1209. <label/>
  1210. <value/>
  1211. </itemset>
  1212. </choices>
  1213. </select1>
  1214. <select1 id="rdo_installspcepossnyn" ref="/root/main/reqeqmtlist/installspcepossnyn" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:715px; top:126px; width:117px; height:16px; background-color:transparent; border-style:none; ">
  1215. <choices>
  1216. <itemset nodeset="/root/init/installspcepossnyn">
  1217. <label ref="label"/>
  1218. <value ref="value"/>
  1219. </itemset>
  1220. </choices>
  1221. </select1>
  1222. <select1 id="rdo_calcscorgenryn" ref="/root/main/reqeqmtlist/calcscorgenryn" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:1031px; top:126px; width:116px; height:16px; background-color:transparent; border-style:none; ">
  1223. <choices>
  1224. <itemset nodeset="/root/init/calcscorgenryn">
  1225. <label ref="label"/>
  1226. <value ref="value"/>
  1227. </itemset>
  1228. </choices>
  1229. </select1>
  1230. <button id="button3" class="btn_sw" group="tab" selected="true" style="left:0px; top:359px; width:144px; height:22px; ">
  1231. <caption>추천장비</caption>
  1232. <toggle case="recmeqmt_case" ev:event="onclick"/>
  1233. </button>
  1234. <button id="button2" class="btn_sw" group="tab" style="left:143px; top:359px; width:144px; height:22px; ">
  1235. <caption>부서동일유사장비</caption>
  1236. <toggle case="smlartyeqmt_case" ev:event="onclick"/>
  1237. </button>
  1238. <switch id="switch1" style="left:0px; top:380px; width:1195px; height:160px; ">
  1239. <case id="recmeqmt_case" selected="true">
  1240. <button id="button13" class="btn2_letter3" style="left:1085px; top:4px; width:53px; height:19px; ">
  1241. <caption>행추가</caption>
  1242. <script type="javascript" ev:event="DOMActivate">
  1243. <![CDATA[
  1244. fSetAddRow( grd_recmeqmtlist );
  1245. fSetNum(grd_recmeqmtlist, "recmseqno");
  1246. /* ----------------------------------------------------------------------------
  1247. 추천장비 입력시 제일 처음건에 대하여 금액 및 단위를 기본으로 뿌려달라
  1248. ----------------------------------------------------------------------------*/
  1249. if ( grd_recmeqmtlist.row == 1 )
  1250. {
  1251. model.setValue(grd_recmeqmtlist.nodeset + "[" + (grd_recmeqmtlist.row - grd_recmeqmtlist.fixedRows + 1) + "]/wncurncyamt" ,
  1252. model.getValue(ipt_bugtwncurncy.attribute("ref") ) );
  1253. model.setValue(grd_recmeqmtlist.nodeset + "[" + (grd_recmeqmtlist.row - grd_recmeqmtlist.fixedRows + 1) + "]/forgncurncyamt" ,
  1254. model.getValue(ipt_bugtforgnamt.attribute("ref") ) );
  1255. model.setValue(grd_recmeqmtlist.nodeset + "[" + (grd_recmeqmtlist.row - grd_recmeqmtlist.fixedRows + 1) + "]/curncyunit" ,
  1256. model.getValue(cmb_bugtforgnamtunit.attribute("ref") ) );
  1257. }
  1258. model.refresh();
  1259. ]]>
  1260. </script>
  1261. </button>
  1262. <button id="button14" class="btn2_letter3" style="left:1140px; top:4px; width:53px; height:19px; ">
  1263. <caption>행삭제</caption>
  1264. <script type="javascript" ev:event="DOMActivate">
  1265. <![CDATA[
  1266. misfGridIUD(grd_recmeqmtlist,"D");
  1267. ]]>
  1268. </script>
  1269. </button>
  1270. <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1193px; y2:25px; "/>
  1271. <caption id="caption19" class="tit_2" style="left:5px; top:10px; width:95px; height:13px; ">추천장비</caption>
  1272. <datagrid id="grd_recmeqmtlist" nodeset="/root/main/list/recmeqmtlist" caption="추천순위^모델^화폐단위^외화금액[계산기]^원화금액^원화금액^제조회사^제조국^거래처^담당자^담당자전화번호^담당자핸드폰" colsep="^" colwidth="58, 116, 100, 102, 18, 100, 122, 120, 130, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1193px; height:125px; ">
  1273. <col ref="recmseqno"/>
  1274. <col imemode="alpha" ref="model" type="input" maxlength="64" _key="true"/>
  1275. <col ref="curncyunit" type="combo">
  1276. <choices>
  1277. <itemset>
  1278. <label/>
  1279. <value/>
  1280. </itemset>
  1281. </choices>
  1282. </col>
  1283. <col ref="forgncurncyamt" type="input" format="#,###" style="text-align:right; "/>
  1284. <col ref="calc" type="inputbutton"/>
  1285. <col ref="wncurncyamt" type="input" format="#,###" style="text-align:right; "/>
  1286. <col ref="prodcmpynm" type="inputbutton"/>
  1287. <col ref="prodplce" type="combo">
  1288. <choices>
  1289. <itemset>
  1290. <label/>
  1291. <value/>
  1292. </itemset>
  1293. </choices>
  1294. </col>
  1295. <col ref="innatiagtplcenm" type="inputbutton" style="left:767px; top:23px; width:130px; height:23px; "/>
  1296. <col ref="chrgpsnid" type="input" style="left:725px; top:23px; width:130px; height:23px; "/>
  1297. <col ref="chrgtel" type="input" maxlength="15"/>
  1298. <col ref="chrghptel" type="input" maxlength="15"/>
  1299. <script type="javascript" ev:event="onbuttonclick">
  1300. <![CDATA[
  1301. if (grd_recmeqmtlist.col == grd_recmeqmtlist.colRef("prodcmpynm") ) {// 그리드 제조회사명 클릭
  1302. rszfOpenPopUpListByWndName(grd_recmeqmtlist,"","prodcmpy,prodcmpynm","SPRSD00160","","");
  1303. model.refresh();
  1304. } else if (grd_recmeqmtlist.col == grd_recmeqmtlist.colRef("innatiagtplcenm")) {// 그리드 제조회사명 클릭
  1305. rszfOpenPopUpListByWndName(grd_recmeqmtlist,"","innatiagtplce,innatiagtplcenm","SPRSD00220","instcd","opt_instcd");
  1306. model.refresh();
  1307. }
  1308. /// 추가 사항 계산기
  1309. else if(grd_recmeqmtlist.col == grd_recmeqmtlist.colRef("calc"))
  1310. {
  1311. fDispCalc();
  1312. }
  1313. ]]>
  1314. </script>
  1315. <col ref="instcd" visibility="hidden"/>
  1316. <col ref="reqdd" visibility="hidden"/>
  1317. <col ref="reqseqno" visibility="hidden"/>
  1318. <col ref="prodcmpy" visibility="hidden"/>
  1319. <col ref="innatiagtplce" visibility="hidden"/>
  1320. <script type="javascript" ev:event="onaftersort">
  1321. <![CDATA[
  1322. grd_recmeqmtlist.gridToInstance();
  1323. ]]>
  1324. </script>
  1325. <script type="javascript" ev:event="xforms-value-changed">
  1326. <![CDATA[
  1327. if(grd_recmeqmtlist.col == grd_recmeqmtlist.colRef("forgncurncyamt"))
  1328. {
  1329. fDispCalc(true);
  1330. }
  1331. else if(grd_recmeqmtlist.col == grd_recmeqmtlist.colRef("curncyunit"))
  1332. {
  1333. if (grd_recmeqmtlist.valueMatrix(grd_recmeqmtlist.row, grd_recmeqmtlist.colRef("curncyunit")) == "13" )
  1334. {
  1335. grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("forgncurncyamt")) = true
  1336. grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("calc")) = true
  1337. }
  1338. else
  1339. {
  1340. grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("forgncurncyamt")) = false
  1341. grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("calc")) = false
  1342. }
  1343. }
  1344. ]]>
  1345. </script>
  1346. <script type="javascript" ev:event="onrowchanged">
  1347. <![CDATA[
  1348. if (grd_recmeqmtlist.valueMatrix(grd_recmeqmtlist.row, grd_recmeqmtlist.colRef("curncyunit")) == "13" )
  1349. {
  1350. grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("forgncurncyamt")) = true
  1351. grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("calc")) = true
  1352. }
  1353. else
  1354. {
  1355. grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("forgncurncyamt")) = false
  1356. grd_recmeqmtlist.isReadOnly(grd_recmeqmtlist.row,grd_recmeqmtlist.colRef("calc")) = false
  1357. }
  1358. ]]>
  1359. </script>
  1360. </datagrid>
  1361. </case>
  1362. <case id="smlartyeqmt_case">
  1363. <datagrid id="grd_smlartyeqmtlist" nodeset="/root/main/list/smlartyeqmtlist" caption="장비코드^장비명^모델^입고일자^설치일자^제조회사^거래처" colsep="^" colwidth="95, 223, 146, 88, 80, 100, 105, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:30px; width:800; height:125; ">
  1364. <col ref="eqmtcd" type="inputbutton" _key="true"/>
  1365. <col ref="eqmtnm"/>
  1366. <col ref="goodmodel"/>
  1367. <col ref="windd" format="yyyy-mm-dd" style="text-align:center; "/>
  1368. <col visibility="hidden"/>
  1369. <col ref="prodcmpynm"/>
  1370. <col ref="suplplcenm"/>
  1371. <col ref="instcd" visibility="hidden"/>
  1372. <col ref="reqdd" visibility="hidden"/>
  1373. <col ref="reqseqno" visibility="hidden"/>
  1374. <col ref="cntrdeptcd" visibility="hidden"/>
  1375. <col ref="installplcenm" visibility="hidden"/>
  1376. <col ref="possnflagcd" visibility="hidden"/>
  1377. <col ref="possnflagcdnm" visibility="hidden"/>
  1378. <col ref="prodcmpy" visibility="hidden"/>
  1379. <col ref="suplplcecd" visibility="hidden"/>
  1380. <col ref="empthnm" visibility="hidden"/>
  1381. <col ref="forgncurncyamt" visibility="hidden"/>
  1382. <col ref="possnamt" visibility="hidden"/>
  1383. <col ref="curncyunit" visibility="hidden"/>
  1384. <script type="javascript" ev:event="onbuttonclick">
  1385. <![CDATA[
  1386. if(grd_smlartyeqmtlist.col == grd_smlartyeqmtlist.colRef("eqmtcd"))
  1387. {
  1388. rszfOpenPopUpListByWndName(grd_smlartyeqmtlist,"","eqmtcd,empthnm,goodmodel,cntrdeptcd,installplcenm,prodcmpy,prodcmpynm,windd,suplplcecd,suplplcenm,possnflagcd,possnflagcdnm,forgncurncyamt,possnamt,eqmtnm,curncyunit","SPRSD00240","instcd,goodflag","opt_instcd,ipt_goodflag_search");
  1389. model.refresh();
  1390. }
  1391. ]]>
  1392. </script>
  1393. <script type="javascript" ev:event="onaftersort">
  1394. <![CDATA[
  1395. grd_smlartyeqmtlist.gridToInstance();
  1396. ]]>
  1397. </script>
  1398. </datagrid>
  1399. <datagrid id="grd_fixasetcdlistv" nodeset="/root/main/list/fixasetcd/fixasetcdlistv" caption="^품목영문명^규격^모델^입고일^제조사^거래처^수량^자산코드^대분류^중분류^소분류" colsep="^" colwidth="26, 160, 80, 102, 190, 80, 110, 100, 100, 100, 48, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:830; top:30px; width:363; height:125; ">
  1400. <col checkvalue="Y,N" ref="che" type="checkbox"/>
  1401. <col ref="goodflagengnm"/>
  1402. <col ref="goodspec"/>
  1403. <col ref="goodmodel"/>
  1404. <col ref="windd" visibility="hidden"/>
  1405. <col ref="prodcmpynm" visibility="hidden"/>
  1406. <col ref="suplplcenm" visibility="hidden"/>
  1407. <col ref="goodqty" visibility="hidden" style="text-align:right; "/>
  1408. <col ref="fixasetcd" visibility="hidden"/>
  1409. <col ref="lrgnm" visibility="hidden"/>
  1410. <col ref="mdlnm" visibility="hidden"/>
  1411. <col ref="smlnm" visibility="hidden"/>
  1412. <col ref="lrgcd" visibility="hidden"/>
  1413. <col ref="mdlcd" visibility="hidden"/>
  1414. <col ref="smlcd" visibility="hidden"/>
  1415. <col ref="fixasetcd" visibility="hidden"/>
  1416. </datagrid>
  1417. <caption id="caption10" class="tit_2" style="left:830px; top:10px; width:113px; height:14px; ">부서내 보유장비</caption>
  1418. <caption id="caption5" class="tit_2" style="left:5px; top:10px; width:113px; height:14px; ">동일유사장비</caption>
  1419. <line id="line25" class="line_1" style="x1:0px; y1:25px; x2:800; y2:25px; "/>
  1420. <button id="buton" class="btn2_letter2" style="left:1150px; top:4px; width:42px; height:19px; ">
  1421. <caption>조회</caption>
  1422. <script type="javascript" ev:event="DOMActivate">
  1423. <![CDATA[
  1424. model.setValue("/root/send/sendlist/cntrdeptcd" , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
  1425. submit("TRRSD05509");
  1426. ]]>
  1427. </script>
  1428. </button>
  1429. <button id="button16" class="btn2_letter3" style="left:690; top:4px; width:53px; height:19px; ">
  1430. <caption>행추가</caption>
  1431. <script type="javascript" ev:event="DOMActivate">
  1432. <![CDATA[
  1433. fSetAddRow( grd_smlartyeqmtlist );
  1434. // model.refresh();
  1435. ]]>
  1436. </script>
  1437. </button>
  1438. <button id="button18" class="btn2_letter3" style="left:745; top:4px; width:53px; height:19px; ">
  1439. <caption>행삭제</caption>
  1440. <script type="javascript" ev:event="DOMActivate">
  1441. <![CDATA[
  1442. misfGridIUD(grd_smlartyeqmtlist,"D");
  1443. ]]>
  1444. </script>
  1445. </button>
  1446. <line id="line23" class="line_1" style="x1:830; y1:25px; x2:1193; y2:25px; "/>
  1447. <button id="button22" class="icon_left" style="left:802px; top:105px; width:42px; height:19px; ">
  1448. <caption/>
  1449. <script type="javascript" ev:event="DOMActivate">
  1450. <![CDATA[
  1451. if(grd_fixasetcdlistv.rows - grd_fixasetcdlistv.fixedRows == 0)
  1452. {
  1453. messageBox("적용할 내역이","I004");
  1454. return;
  1455. }
  1456. for(var row = grd_fixasetcdlistv.fixedRows ; row < grd_fixasetcdlistv.rows; row++)
  1457. {
  1458. if(grd_fixasetcdlistv.valueMatrix(row, grd_fixasetcdlistv.colRef("che")) == 'Y')
  1459. {
  1460. var sGoodflagengnm = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/goodflagengnm");
  1461. var sGoodmodel = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/goodmodel");
  1462. var sFixasetcd = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/fixasetcd");
  1463. var sWindd = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/windd");
  1464. var sProdcmpynm = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/prodcmpynm");
  1465. var sSuplplcenm = model.getValue(grd_fixasetcdlistv.nodeset + "[" + row + "]/suplplcenm");
  1466. fSetAddRow( grd_smlartyeqmtlist );
  1467. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/eqmtcd" , sFixasetcd );
  1468. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/eqmtnm" , sGoodflagengnm );
  1469. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/goodmodel" , sGoodmodel );
  1470. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/windd" , sWindd );
  1471. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/prodcmpynm" , sProdcmpynm );
  1472. model.setValue(grd_smlartyeqmtlist.nodeset + "[" + grd_smlartyeqmtlist.row + "]/suplplcenm" , sSuplplcenm );
  1473. grd_fixasetcdlistv.valueMatrix(row, grd_fixasetcdlistv.colRef("che")) = 'N';
  1474. }
  1475. }
  1476. model.refresh();
  1477. ]]>
  1478. </script>
  1479. </button>
  1480. </case>
  1481. <case id="psge_case">
  1482. <button id="button15" class="btn2_letter3" style="left:1140px; top:4px; width:53px; height:19px; ">
  1483. <caption>행삭제</caption>
  1484. <script type="javascript" ev:event="DOMActivate">
  1485. <![CDATA[
  1486. misfGridIUD(grd_psgedeptlist,"D");
  1487. ]]>
  1488. </script>
  1489. </button>
  1490. <button id="button17" class="btn2_letter3" style="left:1085px; top:4px; width:53px; height:19px; ">
  1491. <caption>행추가</caption>
  1492. <script type="javascript" ev:event="DOMActivate">
  1493. <![CDATA[
  1494. fSetAddRow( grd_psgedeptlist );
  1495. model.refresh();
  1496. ]]>
  1497. </script>
  1498. </button>
  1499. <datagrid id="grd_psgedeptlist" nodeset="/root/main/list/psgedeptlist" caption="기관코드^신청일자^신청순번^경유부서코드^ 경유부서^접수^의견 및 평가" colsep="^" colwidth="21, 17, 16, 16, 130, 72, 869" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1193px; height:125; ">
  1500. <col ref="instcd" visibility="hidden"/>
  1501. <col ref="reqdd" visibility="hidden"/>
  1502. <col ref="reqseqno" visibility="hidden"/>
  1503. <col ref="psgedeptcd" visibility="hidden"/>
  1504. <col ref="psgedeptnm" type="inputbutton" _key="true"/>
  1505. <col ref="psgedeptaprvnm"/>
  1506. <col ref="psgecmt" type="input"/>
  1507. <script type="javascript" ev:event="onbuttonclick">
  1508. <![CDATA[
  1509. if (grd_psgedeptlist.col == grd_psgedeptlist.colRef("psgedeptnm") ) {// 그리드 부서명 버튼 클릭
  1510. var recv_list = "psgedeptcd,psgedeptnm";
  1511. // misfOpenPopUpList("02", grd_psgedeptlist,"", recv_list,cmb_instcd_search.value,"instcd") ;
  1512. misfOpenPopUpList("02", grd_psgedeptlist,"", recv_list) ;
  1513. var cur_row = grd_psgedeptlist.row;
  1514. var status = grd_psgedeptlist.valueMatrix(cur_row, grd_psgedeptlist.colRef("m"));
  1515. if(status !="insert" && status !="delete") grd_psgedeptlist.addStatus(cur_row,"update");
  1516. }
  1517. // model.refresh();
  1518. ]]>
  1519. </script>
  1520. <script type="javascript" ev:event="onaftersort">
  1521. <![CDATA[
  1522. grd_psgedeptlist.gridToInstance();
  1523. ]]>
  1524. </script>
  1525. </datagrid>
  1526. <caption id="caption11" class="tit_2" style="left:5px; top:10px; width:95px; height:13px; ">경유부서</caption>
  1527. <line id="line28" class="line_1" style="x1:0; y1:25px; x2:1193; y2:25px; "/>
  1528. </case>
  1529. <case id="publusedeptcd_case">
  1530. <button id="button4" class="btn2_letter3" style="left:1130px; top:4px; width:53px; height:19px; ">
  1531. <caption>행삭제</caption>
  1532. <script type="javascript" ev:event="DOMActivate">
  1533. <![CDATA[
  1534. misfGridIUD(grd_publusedeptlist,"D");
  1535. ]]>
  1536. </script>
  1537. </button>
  1538. <button id="button6" class="btn2_letter3" style="left:1075px; top:4px; width:53px; height:19px; ">
  1539. <caption>행추가</caption>
  1540. <script type="javascript" ev:event="DOMActivate">
  1541. <![CDATA[
  1542. fSetAddRow( grd_publusedeptlist );
  1543. fSetNum(grd_publusedeptlist, "useseq");
  1544. // model.refresh();
  1545. ]]>
  1546. </script>
  1547. </button>
  1548. <caption id="caption13" class="tit_2" style="left:5px; top:10px; width:95px; height:13px; ">공동사용부서</caption>
  1549. <datagrid id="grd_publusedeptlist" nodeset="/root/main/list/publusedeptlist" caption="기관코드^신청일자^신청순번^순번^사용부서^사용부서^책임자^책임자^전화번호^비율^용도" colsep="^" colwidth="21, 17, 16, 51, 100, 79, 93, 83, 100, 80, 516" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1185px; height:125; ">
  1550. <col ref="instcd" visibility="hidden"/>
  1551. <col ref="reqdd" visibility="hidden"/>
  1552. <col ref="reqseqno" visibility="hidden"/>
  1553. <col ref="useseq"/>
  1554. <col ref="usedeptcd" type="inputbutton" _key="true"/>
  1555. <col ref="usedeptnm"/>
  1556. <col ref="usepsnid" type="inputbutton"/>
  1557. <col ref="usepsnidnm"/>
  1558. <col ref="usechrgtel" type="input" maxlength="15"/>
  1559. <col ref="rate" type="input" style="text-align:right; "/>
  1560. <col ref="usecmt" type="input" maxlength="100"/>
  1561. <script type="javascript" ev:event="onbuttonclick">
  1562. <![CDATA[
  1563. if (grd_publusedeptlist.col == grd_publusedeptlist.colRef("usedeptcd") ) {// 그리드 부서명 버튼 클릭
  1564. var recv_list = "usedeptcd,usedeptnm";
  1565. misfOpenPopUpList("02", grd_publusedeptlist,"", recv_list,opt_deptinstcd.value,"instcd") ;
  1566. //misfOpenPopUpList("02", grd_publusedeptlist,"", recv_list) ;
  1567. var cur_row = grd_publusedeptlist.row;
  1568. var status = grd_publusedeptlist.valueMatrix(cur_row, grd_publusedeptlist.colRef("m"));
  1569. if(status !="insert" && status !="delete") grd_publusedeptlist.addStatus(cur_row,"update");
  1570. }
  1571. else if(grd_publusedeptlist.col == grd_publusedeptlist.colRef("usepsnid"))
  1572. {
  1573. var recv_list = "usepsnid,usepsnidnm";
  1574. //misfOpenPopUpList("12", cmb_emplno,"", recv_list, "%","instcd") ;
  1575. //misfOpenPopUpList("12", grd_publusedeptlist,"", recv_list, "%","instcd") ;
  1576. misfOpenPopUpList("12", grd_publusedeptlist, "", recv_list, opt_deptinstcd.value + "," + grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptcd")) + "," + grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptnm")), "instcd,deptcd,depthngnm");
  1577. }
  1578. model.refresh();
  1579. ]]>
  1580. </script>
  1581. <script type="javascript" ev:event="xforms-value-changed">
  1582. <![CDATA[
  1583. if(grd_publusedeptlist.col == grd_publusedeptlist.colRef("usedeptcd"))
  1584. {
  1585. var recv_list = "usedeptcd,usedeptnm";
  1586. //misfOpenPopUpList("12", cmb_emplno,"", recv_list, "%","instcd") ;
  1587. misfValidationCheck("02","", recv_list, opt_deptinstcd.value + "," + getUserInfo("dutplcecd") + "," + getUserInfo("dutplcenm"), "instcd,deptcd,depthngnm") ;
  1588. model.refresh();
  1589. }
  1590. else if(grd_publusedeptlist.col == grd_publusedeptlist.colRef("usepsnid"))
  1591. {
  1592. var recv_list = "usepsnid,usepsnidnm";
  1593. //misfOpenPopUpList("12", cmb_emplno,"", recv_list, "%","instcd") ;
  1594. rszfValidationCheckS("12","", recv_list, opt_deptinstcd.value + "," +grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptcd")) + "," + grd_publusedeptlist.valueMatrix(grd_publusedeptlist.row, grd_publusedeptlist.colRef("usedeptnm")), "instcd,deptcd,depthngnm") ;
  1595. model.refresh();
  1596. }
  1597. ]]>
  1598. </script>
  1599. <script type="javascript" ev:event="onaftersort">
  1600. <![CDATA[
  1601. grd_publusedeptlist.gridToInstance();
  1602. ]]>
  1603. </script>
  1604. </datagrid>
  1605. <line id="line6" class="line_1" style="x1:0px; y1:25px; x2:1185px; y2:25px; "/>
  1606. </case>
  1607. <case id="moncd_1_case">
  1608. <button id="button11" class="btn2_letter3" style="left:1140px; top:4px; width:53px; height:19px; ">
  1609. <caption>행삭제</caption>
  1610. <script type="javascript" ev:event="DOMActivate">
  1611. <![CDATA[
  1612. misfGridIUD(grd_mon1cdlist,"D");
  1613. ]]>
  1614. </script>
  1615. </button>
  1616. <button id="button12" class="btn2_letter3" style="left:1085px; top:4px; width:53px; height:19px; ">
  1617. <caption>행추가</caption>
  1618. <script type="javascript" ev:event="DOMActivate">
  1619. <![CDATA[
  1620. fSetAddRow( grd_mon1cdlist );
  1621. // model.refresh();
  1622. ]]>
  1623. </script>
  1624. </button>
  1625. <caption id="caption50" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">월간시행건수</caption>
  1626. <line id="line2" class="line_1" style="x1:0px; y1:25px; x2:1193; y2:25px; "/>
  1627. <datagrid id="grd_mon1cdlist" nodeset="/root/main/list/mon1cdlist" caption="수가코드^수가명^급여^금액^월건수" colsep="^" colwidth="124, 449, 129, 147, 123" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0; top:30px; width:1193; height:125; ">
  1628. <col ref="cstcd" type="input" _key="true"/>
  1629. <col ref="cstcdnm" type="input"/>
  1630. <col ref="insu_nopyyn" type="combo">
  1631. <choices>
  1632. <item>
  1633. <label>급여</label>
  1634. <value>0</value>
  1635. </item>
  1636. <item>
  1637. <label>비급여</label>
  1638. <value>1</value>
  1639. </item>
  1640. </choices>
  1641. </col>
  1642. <col ref="purcunitcost" type="input" format="#,###" style="text-align:right; "/>
  1643. <col ref="mmuseqty" type="input" format="#,###" style="text-align:right; "/>
  1644. <col ref="instcd" visibility="hidden"/>
  1645. <col ref="reqdd" visibility="hidden"/>
  1646. <col ref="reqseqno" visibility="hidden"/>
  1647. <col ref="cstflag" visibility="hidden"/>
  1648. <col ref="reqseq" visibility="hidden"/>
  1649. <col ref="suplplce" visibility="hidden"/>
  1650. <col ref="suplplcenm" visibility="hidden"/>
  1651. <col ref="mainusge" visibility="hidden"/>
  1652. <script type="javascript" ev:event="onaftersort">
  1653. <![CDATA[
  1654. grd_mon1cdlist.gridToInstance();
  1655. ]]>
  1656. </script>
  1657. </datagrid>
  1658. </case>
  1659. <case id="moncd_2_case">
  1660. <caption id="caption49" class="tit_2" style="left:5px; top:10px; width:95px; height:14px; ">월간재료비</caption>
  1661. <line id="line14" class="line_1" style="x1:0px; y1:25px; x2:1193; y2:25px; "/>
  1662. <button id="button19" class="btn2_letter3" style="left:1140px; top:4px; width:53px; height:19px; ">
  1663. <caption>행삭제</caption>
  1664. <script type="javascript" ev:event="DOMActivate">
  1665. <![CDATA[
  1666. misfGridIUD(grd_mon2cdlist,"D");
  1667. ]]>
  1668. </script>
  1669. </button>
  1670. <button id="button20" class="btn2_letter3" style="left:1085px; top:4px; width:53px; height:19px; ">
  1671. <caption>행추가</caption>
  1672. <script type="javascript" ev:event="DOMActivate">
  1673. <![CDATA[
  1674. fSetAddRow( grd_mon2cdlist );
  1675. // model.refresh();
  1676. ]]>
  1677. </script>
  1678. </button>
  1679. <datagrid id="grd_mon2cdlist" nodeset="/root/main/list/mon2cdlist" caption="재료코드^품명^급여^월소요량^구입단가^공급업체^공급업체명^주요용도^caption1" colsep="^" colwidth="111, 332, 90, 64, 110, 94, 100, 224, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1193; height:125; ">
  1680. <col imemode="alpha" ref="cstcd" type="inputbutton" _chartype="upper" _key="true"/>
  1681. <col ref="cstcdnm"/>
  1682. <col ref="insu_nopyyn" type="combo">
  1683. <choices>
  1684. <item>
  1685. <label>급여</label>
  1686. <value>0</value>
  1687. </item>
  1688. <item>
  1689. <label>비급여</label>
  1690. <value>1</value>
  1691. </item>
  1692. </choices>
  1693. </col>
  1694. <col ref="mmuseqty" type="input"/>
  1695. <col ref="purcunitcost" type="input" format="#,###" style="text-align:right; "/>
  1696. <col ref="suplplce" type="inputbutton"/>
  1697. <col ref="suplplcenm"/>
  1698. <col ref="mainusge" type="input" style="text-align:left; "/>
  1699. <col ref="instcd" visibility="hidden"/>
  1700. <col ref="reqdd" visibility="hidden"/>
  1701. <col ref="reqseqno" visibility="hidden"/>
  1702. <col ref="cstflag" visibility="hidden"/>
  1703. <col ref="reqseq" visibility="hidden"/>
  1704. <col ref="goodcd" visibility="hidden"/>
  1705. <col ref="goodnm" visibility="hidden"/>
  1706. <col ref="goodunitcost" visibility="hidden"/>
  1707. <col ref="maincustlastsuplplce" visibility="hidden"/>
  1708. <col ref="maincustlastsuplplcenm" visibility="hidden"/>
  1709. <script type="javascript" ev:event="onbuttonclick">
  1710. <![CDATA[
  1711. if (grd_mon2cdlist.col == grd_mon2cdlist.colRef("cstcd") && grd_mon2cdlist.rowStatus(grd_mon2cdlist.row) == "1" ) {//구성물품코드를 눌렀을 경우
  1712. model.removenode("/root/copynode");
  1713. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1714. model.makeNode("/root/copynode");
  1715. rszfOpenPopUpListByWndName(grd_mon2cdlist,"","goodcd,goodnm,goodunitcost,maincustlastsuplplce","SPRSD00190","instcd,goodflag","opt_instcdgood,opt_cstgoodflag");
  1716. var cur_row = grd_mon2cdlist.row;
  1717. var status = grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("m"));
  1718. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1719. setCSVToNode("/root/copynode", CSV, "goodreqlist");
  1720. fSettingGoodList("/root/copynode", "goodreqlist");
  1721. }else if (grd_mon2cdlist.col == grd_mon2cdlist.colRef("suplplce")) {// 그리드 제조회사명 클릭
  1722. rszfOpenPopUpListByWndName(grd_mon2cdlist,"","suplplce,suplplcenm","SPRSD00220","instcd","opt_instcdgood");
  1723. model.refresh();
  1724. }
  1725. ]]>
  1726. </script>
  1727. <script type="javascript" ev:event="xforms-value-changed">
  1728. <![CDATA[
  1729. if(grd_mon2cdlist.col == grd_mon2cdlist.colRef("cstcd") && grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("cstcd")).length> 0)
  1730. {
  1731. model.removenode("/root/copynode");
  1732. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1733. model.makeNode("/root/copynode");
  1734. rszfValidationCheck("TRRSD00191", "goodlist" , "refcond,instcd,goodflag,goodcd","goodcd," + opt_instcdgood + "," + opt_cstgoodflag + "," +model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd") ,"","goodcd,goodnm,goodunitcost,maincustlastsuplplce,maincustlastsuplplcenm",grd_mon2cdlist,"SPRSD00190","instcd,goodflag","opt_instcdgood,opt_cstgoodflag","Y");
  1735. var sGoodunitcost = model.getValue(grd_mon2cdlist.nodeset + "[" + grd_mon2cdlist.row + "]/goodunitcost");
  1736. model.setValue(grd_mon2cdlist.nodeset + "[" + grd_mon2cdlist.row + "]/purcunitcost", sGoodunitcost);
  1737. model.refresh();
  1738. var cur_row = grd_mon2cdlist.row;
  1739. var status = grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("m"));
  1740. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1741. if (CSV.length == 0 && grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("goodnm")).length == 0)
  1742. {
  1743. model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd" , "");
  1744. model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/cstcdnm" , "");
  1745. model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplce" , "");
  1746. model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplcenm" , "");
  1747. grd_mon2cdlist.col = grd_mon2cdlist.colRef("cstcd");
  1748. grd_mon2cdlist.editCell();
  1749. }
  1750. else if (CSV.length == 0 && grd_mon2cdlist.valueMatrix(cur_row, grd_mon2cdlist.colRef("goodnm")).length > 0)
  1751. {
  1752. model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/goodcd") );
  1753. model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/cstcdnm" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/goodnm") );
  1754. model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplce" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/maincustlastsuplplce") );
  1755. model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1) + "]/suplplcenm" , model.getValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/maincustlastsuplplcenm") );
  1756. grd_mon2cdlist.col = grd_mon2cdlist.colRef("insu_nopyyn");
  1757. grd_mon2cdlist.editCell();
  1758. }
  1759. else if (CSV.length > 0)
  1760. {
  1761. model.setValue(grd_mon2cdlist.nodeset + "[" + (grd_mon2cdlist.row - grd_mon2cdlist.fixedRows + 1)+ "]/cstcd","");
  1762. setCSVToNode("/root/copynode", CSV, "goodreqlist");
  1763. fSettingGoodList("/root/copynode", "goodreqlist" );
  1764. }
  1765. }else if(grd_mon2cdlist.col == grd_mon2cdlist.colRef("suplplce"))
  1766. {
  1767. if(grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("suplplce")) != ""){
  1768. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1769. "103,," + grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("suplplce"))
  1770. ,"","suplplce,suplplcenm",grd_mon2cdlist,"SPRSD00220","instcd","103");
  1771. }else{
  1772. grd_mon2cdlist.valueMatrix(grd_mon2cdlist.row, grd_mon2cdlist.colRef("suplplcenm")) = "";
  1773. }
  1774. }
  1775. ]]>
  1776. </script>
  1777. <script type="javascript" ev:event="onaftersort">
  1778. <![CDATA[
  1779. grd_mon2cdlist.gridToInstance();
  1780. ]]>
  1781. </script>
  1782. </datagrid>
  1783. </case>
  1784. <case id="fixasetcd_case">
  1785. <button id="button21" class="btn2_letter2" style="left:1150px; top:4px; width:42px; height:19px; ">
  1786. <caption>조회</caption>
  1787. <script type="javascript" ev:event="DOMActivate">
  1788. <![CDATA[
  1789. misfGridInit(grd_fixasetcdlist);
  1790. model.setValue("/root/send/sendlist/cntrdeptcd" , model.getValue(ipt_reqdeptcd_search.attribute("ref")));
  1791. submit("TRRSD05508");
  1792. ]]>
  1793. </script>
  1794. </button>
  1795. <line id="line8" class="line_1" style="x1:0px; y1:25px; x2:1193; y2:25; "/>
  1796. <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:113px; height:13px; ">부서내 자산코드</caption>
  1797. <datagrid id="grd_fixasetcdlist" nodeset="/root/main/list/fixasetcd/fixasetcdlist" caption="대분류^중분류^소분류^품목영문명^규격^모델^입고일^제조사^거래처^수량" colsep="^" colwidth="88, 87, 93, 287, 132, 110, 100, 100, 100, 48, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:30px; width:1193px; height:125; ">
  1798. <col ref="lrgnm"/>
  1799. <col ref="mdlnm"/>
  1800. <col ref="smlnm"/>
  1801. <col ref="goodflagengnm"/>
  1802. <col ref="goodspec"/>
  1803. <col ref="goodmodel"/>
  1804. <col ref="windd" format="yyyy-mm-dd"/>
  1805. <col ref="prodcmpynm"/>
  1806. <col ref="suplplcenm"/>
  1807. <col ref="goodqty" style="text-align:right; "/>
  1808. <col ref="lrgcd" visibility="hidden"/>
  1809. <col ref="mdlcd" visibility="hidden"/>
  1810. <col ref="smlcd" visibility="hidden"/>
  1811. <col ref="fixasetcd" visibility="hidden"/>
  1812. <script type="javascript" ev:event="ondblclick">
  1813. <![CDATA[
  1814. fMovecd("grd_fixasetcdlist");
  1815. ]]>
  1816. </script>
  1817. <script type="javascript" ev:event="onaftersort">
  1818. <![CDATA[
  1819. grd_fixasetcdlist.gridToInstance();
  1820. ]]>
  1821. </script>
  1822. </datagrid>
  1823. </case>
  1824. </switch>
  1825. <button id="button1" class="btn_sw" visibility="hidden" group="tab" style="left:1040px; top:360px; width:130px; height:22px; ">
  1826. <caption>경유부서</caption>
  1827. <toggle case="psge_case" ev:event="onclick"/>
  1828. </button>
  1829. <button id="btn_publusedeptcd_case" class="btn_sw" group="tab" style="left:574px; top:359px; width:144px; height:22px; ">
  1830. <caption>공동사용부서</caption>
  1831. <toggle case="publusedeptcd_case" ev:event="onclick"/>
  1832. </button>
  1833. <caption id="caption3" class="cell_1" style="left:0px; top:219px; width:101px; height:23px; vertical-align:middle; ">연구과제</caption>
  1834. <input id="ipt_stdysubjno" ref="/root/main/reqeqmtlist/stdysubjno" class="input_search" maxlength="4" style="left:103px; top:221px; width:72px; height:19px; ">
  1835. <script type="javascript" ev:event="xforms-value-changed">
  1836. <![CDATA[
  1837. if(ipt_stdysubjno.value.length == 0)
  1838. {
  1839. ipt_stdysubjnm.value = "";
  1840. }else{
  1841. // var fprojectyn = model.getValue(cmb_bugtflag.choices.itemset.attribute("nodeset") + "["+ (cmb_bugtflag.focusIndex+1) +"]/projectyn" );
  1842. rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjno,reqdd",
  1843. opt_instcd.value + ",stdysubjno," + ipt_stdysubjno.value + "," + opt_reqdd.value, "", "stdysubjno,stdysubjnm",
  1844. ipt_stdysubjno, "SPRSD00260", "instcd,reqdd","opt_instcd," + opt_reqdd.value);
  1845. }
  1846. model.refresh();
  1847. ]]>
  1848. </script>
  1849. </input>
  1850. <button id="btn_stdysubjnm" class="icon_search" style="left:179px; top:223px; width:16px; height:16px; ">
  1851. <caption/>
  1852. <script type="javascript" ev:event="DOMActivate">
  1853. <![CDATA[
  1854. // var fprojectyn = model.getValue(cmb_bugtflag.choices.itemset.attribute("nodeset") + "["+ (cmb_bugtflag.focusIndex+1) +"]/projectyn" );
  1855. rszfOpenPopUpListByWndName(ipt_stdysubjno,"","stdysubjno,stdysubjnm","SPRSD00260","instcd,reqdd","opt_instcd," + opt_reqdd.value);
  1856. model.refresh();
  1857. ]]>
  1858. </script>
  1859. </button>
  1860. <button id="btn_ins" class="btn2_letter3" style="left:1086px; top:73px; width:53px; height:19px; ">
  1861. <caption>행추가</caption>
  1862. <script type="javascript" ev:event="DOMActivate">
  1863. <![CDATA[
  1864. if(fCheckRetrieveData(true) == false)return;
  1865. var updtdata = getGridUpdateData(grd_reqeqmtlist);
  1866. if (updtdata != "") {
  1867. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 신규 작업을","Q003");
  1868. if (ret != 6) { // not OK
  1869. return;
  1870. }
  1871. }
  1872. model.resetInstanceNode("/root/main/reqeqmtlist");
  1873. // fDisableCheck( false );
  1874. misfGridIUD(grd_reqeqmtlist, "A");
  1875. grd_reqeqmtlist.dispatch("onrowchanged");
  1876. // fAllControlDisabled("N")
  1877. //연구계정 설정.////////////
  1878. //이현
  1879. //rszfComboBgcdBugtList("cmb_groupbugt", rdo_instcd.value, '2');
  1880. //기관코드를 선택할때 그 기관에 맞는 예산을 가져오는데 의과학연구원같은경우 성의교정의 예산을 쓸수있게 요청함 - 성의교정 여서경팀장 20100218
  1881. if(rdo_instcd.value =='032'){
  1882. rszfComboBgcdBugtList("cmb_groupbugt", '103', '2');
  1883. }else{
  1884. rszfComboBgcdBugtList("cmb_groupbugt", rdo_instcd.value, '2');
  1885. }
  1886. // if(rdo_instcd.value != '103')
  1887. // {
  1888. // rszfComboBugtList(cmb_bugtflag,rdo_instcd.value, '', '2');
  1889. // }else{
  1890. // rszfComboBugtList(cmb_bugtflag,rdo_instcd.value, cmb_groupbugt.value, '2');
  1891. // }
  1892. //연구계정 설정./////////
  1893. //이현
  1894. fDisabledComboflag(); //예산계정 control
  1895. fDefaultSetting(grd_reqeqmtlist.row );
  1896. fSetAmt();
  1897. model.refresh();
  1898. ]]>
  1899. </script>
  1900. </button>
  1901. <caption id="caption45" class="search_name" style="left:671px; top:45px; width:117px; height:17px; ">진행상태 :</caption>
  1902. <button id="btn_accept" class="btn2_letter2" style="left:1152px; top:555px; width:42px; height:19px; ">
  1903. <caption>승인</caption>
  1904. <script type="javascript" ev:event="DOMActivate">
  1905. <![CDATA[
  1906. model.refresh();
  1907. var updtdata = getGridUpdateData(grd_reqeqmtlist);
  1908. if (updtdata = "" )
  1909. {
  1910. messageBox("변경된 데이터가","I004");
  1911. return;
  1912. }
  1913. model.setValue("/root/send/save/reqeqmtlist", grd_reqeqmtlist.getUpdateData());
  1914. submit("TXRSC11901");
  1915. // misfSave("TXRSC11901");
  1916. if (model.getValue(gvErrorMsgPath + "/type") != "error" ) misfMsterDetailRetrieve(); //btn_search.dispatch("DOMActivate");
  1917. ]]>
  1918. </script>
  1919. </button>
  1920. <button id="btnselect" class="btn2_letter9" style="left:1032px; top:555px; width:119px; height:19px; ">
  1921. <caption>전체/전체선택 취소</caption>
  1922. <script type="javascript" ev:event="DOMActivate">
  1923. <![CDATA[
  1924. for(var liRow = grd_reqeqmtlist.fixedRows; liRow < grd_reqeqmtlist.rows ; liRow++)
  1925. {
  1926. //fCheckAprv( (liRow - grd_goodreq.fixedRows + 1) , "false");
  1927. ////////////////////////////////////////////////////
  1928. // 일괄처리는 발주상태가 발주중인것만 처리한다.
  1929. ///////////////////////////////////////////////////
  1930. if (grd_reqeqmtlist.valueMatrix(liRow,grd_reqeqmtlist.colRef("acptflag")) != "Y" )
  1931. {
  1932. if(grd_reqeqmtlist.valueMatrix(liRow,grd_reqeqmtlist.colRef("deptaprvyn")) == "Y" )
  1933. {
  1934. model.setValue(grd_reqeqmtlist.nodeset + "[" + (liRow - grd_reqeqmtlist.fixedRows + 1) + "]/deptaprvyn" , "N");
  1935. model.setValue(grd_reqeqmtlist.nodeset + "[" + (liRow - grd_reqeqmtlist.fixedRows + 1) + "]/deptaprvdd" , "");
  1936. grd_reqeqmtlist.rowStatus(liRow - grd_reqeqmtlist.fixedRows + 1) = "2";
  1937. }
  1938. else
  1939. {
  1940. model.setValue(grd_reqeqmtlist.nodeset + "[" + (liRow - grd_reqeqmtlist.fixedRows + 1) + "]/deptaprvyn" , "Y");
  1941. model.setValue(grd_reqeqmtlist.nodeset + "[" + (liRow - grd_reqeqmtlist.fixedRows + 1) + "]/deptaprvdd" , getCurrentDate());
  1942. grd_reqeqmtlist.rowStatus(liRow - grd_reqeqmtlist.fixedRows + 1) = "2";
  1943. }
  1944. }
  1945. }
  1946. model.refresh();
  1947. ]]>
  1948. </script>
  1949. </button>
  1950. <input id="ipt_goodflag_search" ref="/root/send/sendlist/goodflag" visibility="hidden" style="left:885px; top:70px; width:25px; height:19px; "/>
  1951. <input id="ipt_prcsstat" ref="/root/main/reqeqmtlist/prcsstat" class="input_essential" visibility="hidden" style="left:1005px; top:70px; width:9px; height:19px; ">
  1952. <script type="javascript" ev:event="xforms-value-changed">
  1953. <![CDATA[
  1954. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  1955. model.refresh();
  1956. model.setFocus("ipt_reqdeptcd");
  1957. ]]>
  1958. </script>
  1959. </input>
  1960. <button id="btn_goodflagengnm" class="icon_search" style="left:562px; top:126px; width:16px; height:16px; ">
  1961. <caption/>
  1962. <script type="javascript" ev:event="DOMActivate">
  1963. <![CDATA[
  1964. //팝업시 성의교정 기관코드를 넣어줘야 해요~! 문의사항은 HBH로....^ ^
  1965. rszfOpenPopUpListByWndName(ipt_goodflagengnm,"", "goodflaghngnm,goodflagengnm","SPRSD00240","instcd,goodflag", "103,ipt_goodflag_search", "Y");
  1966. model.refresh();
  1967. ]]>
  1968. </script>
  1969. </button>
  1970. <button id="button10" class="btn_sw" visibility="hidden" group="tab" style="left:900px; top:359px; width:144px; height:22px; ">
  1971. <caption>부서내 장비현황</caption>
  1972. <toggle case="fixasetcd_case" ev:event="onclick"/>
  1973. </button>
  1974. <caption id="caption12" class="cell_1" style="left:0px; top:315px; width:139px; height:23px; vertical-align:middle; ">화폐단위/환율/부대비용</caption>
  1975. <input id="ipt_etccostrt" ref="/root/main/reqeqmtlist/etccostrt" class="input_default" format="#,###" style="left:300px; top:317px; width:49px; height:19px; text-align:right; ">
  1976. <script type="javascript" ev:event="xforms-value-changed">
  1977. <![CDATA[
  1978. fSetAmt()
  1979. ]]>
  1980. </script>
  1981. </input>
  1982. <select1 id="cmb_iopsnflag" ref="/root/main/reqeqmtlist/iopsnflag" class="combo_default" appearance="minimal" style="left:220px; top:293px; width:72px; height:19px; text-align:center; ">
  1983. <choices>
  1984. <item>
  1985. <label>내자</label>
  1986. <value>H</value>
  1987. </item>
  1988. <item>
  1989. <label>외자</label>
  1990. <value>F</value>
  1991. </item>
  1992. </choices>
  1993. <script type="javascript" ev:event="xforms-value-changed">
  1994. <![CDATA[
  1995. fSetAmt();
  1996. ]]>
  1997. </script>
  1998. </select1>
  1999. <input id="ipt_chgrate" ref="/root/main/reqeqmtlist/chgrate" class="input_default" format="#,###" style="left:227px; top:317px; width:69px; height:19px; text-align:right; ">
  2000. <script type="javascript" ev:event="xforms-value-changed">
  2001. <![CDATA[
  2002. fSetAmt()
  2003. ]]>
  2004. </script>
  2005. </input>
  2006. <caption id="caption48" class="search_no_b" style="left:348px; top:317px; width:17px; height:17px; font-size:12pt; ">%</caption>
  2007. <button id="button7" class="btn_sw" group="tab" style="left:287px; top:359px; width:144px; height:22px; ">
  2008. <caption>월간시행건수</caption>
  2009. <toggle case="moncd_1_case" ev:event="onclick"/>
  2010. </button>
  2011. <button id="button9" class="btn_sw" group="tab" style="left:430px; top:359px; width:144px; height:22px; ">
  2012. <caption>월간재료비</caption>
  2013. <toggle case="moncd_2_case" ev:event="onclick"/>
  2014. </button>
  2015. <input id="ipt_reqflag" ref="/root/send/sendlist/reqflag" visibility="hidden" style="left:915px; top:70px; width:25px; height:19px; "/>
  2016. <input id="ipt_stdysubjnm" ref="/root/main/reqeqmtlist/stdysubjnm" class="input_fix" appearance="input" style="left:197px; top:221px; width:85px; height:19px; ">
  2017. <script type="javascript" ev:event="xforms-value-changed">
  2018. <![CDATA[
  2019. if(ipt_stdysubjnm.value.length == 0){
  2020. ipt_stdysubjno.value = "";
  2021. }else{
  2022. // var fprojectyn = model.getValue(cmb_bugtflag.choices.itemset.attribute("nodeset") + "["+ (cmb_bugtflag.focusIndex+1) +"]/projectyn" );
  2023. rszfValidationCheck("TRRSD00261", "studylist", "instcd,refcond,stdysubjnm,reqdd",
  2024. opt_instcd.value + ",stdysubjnm," + ipt_stdysubjnm.value + "," + opt_reqdd.value, "", "stdysubjno,stdysubjnm",
  2025. ipt_stdysubjnm, "SPRSD00260", "instcd,reqdd","opt_instcd," + opt_reqdd.value);
  2026. }
  2027. model.refresh();
  2028. ]]>
  2029. </script>
  2030. </input>
  2031. <input id="ipt_mngtdeptnm" ref="/root/main/reqeqmtlist/mngtdeptnm" class="input_fix" appearance="input" style="left:486px; top:245px; width:96px; height:19px; ">
  2032. <script type="javascript" ev:event="xforms-value-changed">
  2033. <![CDATA[
  2034. if(ipt_mngtdeptnm.value.length == 0)
  2035. ipt_mngtdeptcd.value = "";
  2036. else
  2037. misfValidationCheck("02", "", "mngtdeptcd,mngtdeptnm", opt_deptinstcd.value, "instcd");
  2038. model.refresh();
  2039. ]]>
  2040. </script>
  2041. </input>
  2042. <input id="ipt_installplcenm" ref="/root/main/reqeqmtlist/installplcenm" class="input_fix" appearance="input" style="left:486px; top:269px; width:96px; height:19px; ">
  2043. <script type="javascript" ev:event="xforms-value-changed">
  2044. <![CDATA[
  2045. if(ipt_installplcenm.value.length == 0)
  2046. {
  2047. ipt_installplcecd.value = "";
  2048. }
  2049. else
  2050. {
  2051. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm,instcd",
  2052. "deptnm," + ipt_installplcenm.value + "," + opt_deptinstcd.value, "", "installplcecd,installplcenm",
  2053. ipt_installplcenm, "PPRAC00700", "instcd","opt_deptinstcd");
  2054. }
  2055. model.refresh();
  2056. ]]>
  2057. </script>
  2058. </input>
  2059. <input id="ipt_cntrdeptnm" ref="/root/main/reqeqmtlist/cntrdeptnm" class="input_fix" appearance="input" style="left:197px; top:245px; width:85px; height:19px; ">
  2060. <script type="javascript" ev:event="xforms-valid">
  2061. <![CDATA[
  2062. if(ipt_cntrdeptnm.value.length == 0)
  2063. ipt_cntrdeptcd.value = "";
  2064. else
  2065. misfValidationCheck("02", "", "cntrdeptcd,cntrdeptnm", opt_deptinstcd.value, "instcd" );
  2066. model.refresh();
  2067. ]]>
  2068. </script>
  2069. </input>
  2070. <caption id="caption26" class="cell_1" style="left:585px; top:243px; width:118px; height:95px; vertical-align:middle; ">구 매 시 고 려 사 항</caption>
  2071. <button id="button8" class="btn_sw" group="tab" selected="true" style="left:705px; top:243px; width:70px; height:22px; ">
  2072. <caption>부대시설</caption>
  2073. <toggle case="subestbcmt_case" ev:event="onclick"/>
  2074. </button>
  2075. <button id="button24" class="btn_sw" group="tab" style="left:775px; top:243px; width:70px; height:22px; ">
  2076. <caption>기계장치</caption>
  2077. <toggle case="machcmt_case" ev:event="onclick"/>
  2078. </button>
  2079. <button id="button25" class="btn_sw" group="tab" style="left:845px; top:243px; width:70px; height:22px; ">
  2080. <caption>전 원</caption>
  2081. <toggle case="eleccmt_case" ev:event="onclick"/>
  2082. </button>
  2083. <button id="button26" class="btn_sw" group="tab" style="left:915px; top:243px; width:70px; height:22px; ">
  2084. <caption>배 관</caption>
  2085. <toggle case="mutplecmt_case" ev:event="onclick"/>
  2086. </button>
  2087. <button id="button27" class="btn_sw" group="tab" style="left:985px; top:243px; width:113px; height:22px; ">
  2088. <caption>전산화(EMR/PACS)</caption>
  2089. <toggle case="compucmt_case" ev:event="onclick"/>
  2090. </button>
  2091. <button id="button28" class="btn_sw" group="tab" style="left:1098px; top:244px; width:70px; height:22px; ">
  2092. <caption>기 타</caption>
  2093. <toggle case="etccmt_case" ev:event="onclick"/>
  2094. </button>
  2095. <switch id="switch2" style="left:705px; top:265px; width:485px; height:72px; ">
  2096. <case id="subestbcmt_case" selected="true">
  2097. <textarea id="tar_subestbcmt" ref="/root/main/reqeqmtlist/subestbcmt" style="left:0px; top:0px; width:483px; height:70px; "/>
  2098. </case>
  2099. <case id="machcmt_case">
  2100. <textarea id="tar_machcmt" ref="/root/main/reqeqmtlist/machcmt" style="left:0px; top:0px; width:483px; height:70px; "/>
  2101. </case>
  2102. <case id="eleccmt_case">
  2103. <textarea id="tar_eleccmt" ref="/root/main/reqeqmtlist/eleccmt" style="left:0px; top:0px; width:483px; height:70px; "/>
  2104. </case>
  2105. <case id="mutplecmt_case">
  2106. <textarea id="tar_mutplecmt" ref="/root/main/reqeqmtlist/mutplecmt" style="left:0px; top:0px; width:483px; height:70px; "/>
  2107. </case>
  2108. <case id="compucmt_case">
  2109. <textarea id="tar_compucmt" ref="/root/main/reqeqmtlist/compucmt" style="left:0px; top:0px; width:483px; height:70px; "/>
  2110. </case>
  2111. <case id="etccmt_case">
  2112. <textarea id="tar_etccmt" ref="/root/main/reqeqmtlist/etccmt" style="left:0px; top:0px; width:483px; height:70px; "/>
  2113. </case>
  2114. </switch>
  2115. <select id="chk_qchgrate" ref="/root/temp/qchgrate" overflow="visible" appearance="full" style="left:294px; top:294px; width:70px; height:20px; border-style:none; ">
  2116. <choices>
  2117. <itemset nodeset="root//init/qchgrate">
  2118. <label ref="label"/>
  2119. <value ref="value"/>
  2120. </itemset>
  2121. </choices>
  2122. <script type="javascript" ev:event="xforms-value-changed">
  2123. <![CDATA[
  2124. var filePath = chk_qchgrate.value;
  2125. window.load(filePath,"html","");
  2126. ]]>
  2127. </script>
  2128. </select>
  2129. <select1 id="rdo_instcd" ref="/root/send/sendlist/view/viewinstcd" appearance="full" cellspacing="5" cols="3" overflow="visible" style="left:102px; top:18px; width:278px; height:20px; border-style:none; ">
  2130. <choices>
  2131. <itemset nodeset="/root/init/instcd">
  2132. <label ref="label"/>
  2133. <value ref="value"/>
  2134. </itemset>
  2135. </choices>
  2136. <script type="javascript" ev:event="xforms-value-changed">
  2137. <![CDATA[
  2138. misfGridInit(grd_reqeqmtlist);
  2139. misfGridInit(grd_publusedeptlist);
  2140. misfGridInit(grd_smlartyeqmtlist);
  2141. misfGridInit(grd_recmeqmtlist);
  2142. misfGridInit(grd_psgedeptlist);
  2143. misfGridInit(grd_fixasetcdlistv);
  2144. misfGridInit(grd_fixasetcdlist);
  2145. misfGridInit(grd_mon1cdlist);
  2146. misfGridInit(grd_mon2cdlist);
  2147. model.resetInstanceNode("/root/main/reqeqmtlist");
  2148. //기관코드를 선택할때 그 기관에 맞는 예산을 가져오는데 의과학연구원같은경우 성의교정의 예산을 쓸수있게 요청함 - 성의교정 여서경팀장 20100218
  2149. if(rdo_instcd.value =='032'){
  2150. rszfComboBgcdBugtList("cmb_groupbugt", '103', '2');
  2151. }else{
  2152. rszfComboBgcdBugtList("cmb_groupbugt", rdo_instcd.value, '2');
  2153. }
  2154. // if(rdo_instcd.value != '103')
  2155. // {
  2156. // rszfComboBugtList(cmb_bugtflag,rdo_instcd.value, '', '2');
  2157. // }else{
  2158. // rszfComboBugtList(cmb_bugtflag,rdo_instcd.value, cmb_groupbugt.value, '2');
  2159. // }
  2160. fAllControlDisabled("Y");
  2161. fInstcdCheck();
  2162. btn_search.dispatch("DOMActivate");
  2163. ]]>
  2164. </script>
  2165. </select1>
  2166. <output id="opt_instcd" ref="/root/send/sendlist/instcd" class="output_fix" visibility="hidden" style="left:945px; top:70px; width:25px; height:19px; "/>
  2167. <select1 id="cmb_studyinstcd" ref="/root/send/sendlist/studyinstcd" appearance="minimal" style="left:490px; top:20px; width:170px; height:19px; ">
  2168. <choices>
  2169. <itemset>
  2170. <label/>
  2171. <value/>
  2172. </itemset>
  2173. </choices>
  2174. <script type="javascript" ev:event="xforms-value-changed">
  2175. <![CDATA[
  2176. model.setValue(opt_deptinstcd.attribute("ref"), cmb_studyinstcd.value);
  2177. btn_search.dispatch("DOMActivate");
  2178. ]]>
  2179. </script>
  2180. </select1>
  2181. <caption id="cap_studyinstcd" class="search_name" style="left:405px; top:20px; width:99px; height:17px; ">연구기관 :</caption>
  2182. <output id="opt_deptinstcd" ref="/root/send/sendlist/view/deptinstcd" visibility="hidden" style="left:835px; top:70px; width:45px; height:19px; "/>
  2183. <output id="opt_instcdgood" ref="/root/send/sendlist/instcdgood" visibility="hidden" style="left:930px; top:40px; width:20px; height:19px; "/>
  2184. <output id="opt_cstgoodflag" ref="/root/init/cstgoodflag" visibility="hidden" style="left:965px; top:45px; width:100px; height:19px; "/>
  2185. <select1 id="cmb_groupbugt" ref="/root/send/sendlist/groupbugt" class="combo_default" appearance="minimal" style="left:265px; top:173px; width:135px; height:19px; ">
  2186. <choices>
  2187. <itemset>
  2188. <label/>
  2189. <value/>
  2190. </itemset>
  2191. </choices>
  2192. <script type="javascript" ev:event="xforms-value-changed">
  2193. <![CDATA[
  2194. // if(rdo_instcd.value != '103')
  2195. // {
  2196. // rszfComboBugtList(cmb_bugtflag,rdo_instcd.value, '', '2');
  2197. // }else{
  2198. // rszfComboBugtList(cmb_bugtflag,rdo_instcd.value, cmb_groupbugt.value, '2');
  2199. // }
  2200. fDisabledComboflag();
  2201. ]]>
  2202. </script>
  2203. </select1>
  2204. <button id="btn_bugtflagnm" class="icon_search" style="left:402px; top:175px; width:16px; height:16px; ">
  2205. <caption/>
  2206. <script type="javascript" ev:event="DOMActivate">
  2207. <![CDATA[
  2208. //이현
  2209. if(rdo_instcd.value =='032'){
  2210. rszfOpenPopUpListByWndName(ipt_bugtflagnm,"","bugtflag,bugtflagnm,projectid,projectnm,totamt,bugtexpcamt,bugtexecamt,remainder,projectyn","SPRSD00340","instcd,reqdd,deptcd,supacntcd4", '103' + "," + opt_reqdd.value + "," + ipt_reqdeptcd.value + "," + cmb_groupbugt.value);
  2211. }else{
  2212. rszfOpenPopUpListByWndName(ipt_bugtflagnm,"","bugtflag,bugtflagnm,projectid,projectnm,totamt,bugtexpcamt,bugtexecamt,remainder,projectyn","SPRSD00340","instcd,reqdd,deptcd,supacntcd4", rdo_instcd.value + "," + opt_reqdd.value + "," + ipt_reqdeptcd.value + "," + cmb_groupbugt.value);
  2213. }
  2214. model.refresh();
  2215. ]]>
  2216. </script>
  2217. </button>
  2218. <input id="ipt_bugtflag" ref="/root/main/reqeqmtlist/bugtflag" visibility="hidden" style="left:480px; top:72px; width:80px; height:19px; "/>
  2219. <input id="ipt_bugtflagnm" ref="/root/main/reqeqmtlist/bugtflagnm" style="left:422px; top:173px; width:159px; height:19px; ">
  2220. <script type="javascript" ev:event="xforms-value-changed">
  2221. <![CDATA[
  2222. ipt_stdysubjno.value = '';
  2223. ipt_stdysubjnm.value = '';
  2224. ]]>
  2225. </script>
  2226. </input>
  2227. <output id="opt_projectnm" ref="/root/main/reqeqmtlist/projectnm" class="output_fix" style="left:103px; top:197px; width:179px; height:19px; "/>
  2228. <input id="ipt_projectid" ref="/root/main/reqeqmtlist/projectid" visibility="hidden" style="left:395px; top:72px; width:80px; height:19px; "/>
  2229. <line id="line10" class="line_2" style="x1:0px; y1:241px; x2:1195px; y2:241px; "/>
  2230. <caption id="caption33" class="cell_1" style="left:0px; top:195px; width:101px; height:23px; vertical-align:middle; ">프로젝트</caption>
  2231. <caption id="caption30" class="cell_1" style="left:284px; top:219px; width:100px; height:23px; vertical-align:middle; ">예산집행/잔액</caption>
  2232. <caption id="caption36" class="cell_1" style="left:284px; top:195px; width:100px; height:23px; vertical-align:middle; ">예산평선/추산액</caption>
  2233. <input id="ipt_bugtexpcamt" ref="/root/main/reqeqmtlist/bugtexpcamt" class="output_fix" format="#,###" style="left:486px; top:197px; width:96px; height:19px; text-align:right; "/>
  2234. <input id="ipt_totamt" ref="/root/main/reqeqmtlist/totamt" class="output_fix" format="#,###" style="left:386px; top:197px; width:96px; height:19px; text-align:right; "/>
  2235. <input id="ipt_bugtexecamt" ref="/root/main/reqeqmtlist/bugtexecamt" class="output_fix" format="#,###" style="left:386px; top:220px; width:96px; height:19px; text-align:right; "/>
  2236. <input id="ipt_remainder" ref="/root/main/reqeqmtlist/remainder" class="output_fix" format="#,###" style="left:486px; top:220px; width:96px; height:19px; text-align:right; "/>
  2237. <caption id="cap_fundorigin" class="cell_1" style="left:367px; top:147px; width:58px; height:23px; vertical-align:middle; ">자금출처</caption>
  2238. <select1 id="cmb_fundorigin" ref="/root/main/reqeqmtlist/fundorigin" class="combo_default" appearance="minimal" style="left:427px; top:149px; width:154px; height:19px; ">
  2239. <choices>
  2240. <itemset>
  2241. <label/>
  2242. <value/>
  2243. </itemset>
  2244. </choices>
  2245. </select1>
  2246. </group>
  2247. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  2248. <button id="btn_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  2249. <caption>초기화</caption>
  2250. <script type="javascript" ev:event="DOMActivate">
  2251. <![CDATA[
  2252. if ( fDataCheck() ) {
  2253. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  2254. if (ret != 6) { // not OK
  2255. return;
  2256. } else {
  2257. fInitialize();
  2258. }
  2259. } else {
  2260. fInitialize();
  2261. }
  2262. ]]>
  2263. </script>
  2264. </button>
  2265. <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  2266. <button id="btn_save" class="btn4_letter2" style="left:1070px; top:3px; width:56px; height:22px; ">
  2267. <caption>저장</caption>
  2268. <script type="javascript" ev:event="DOMActivate">
  2269. <![CDATA[
  2270. if( fCheckSaveData() ) {
  2271. if ( grd_reqeqmtlist.rows <= 1 ) {
  2272. misfGridInit(grd_reqeqmtlist);
  2273. misfGridIUD(grd_reqeqmtlist, "A");
  2274. model.refresh();
  2275. }
  2276. if ( fDataCheck() ) {
  2277. misfSave("TXRSC11901");
  2278. if (model.getValue(gvErrorMsgPath + "/type") != "error") misfMsterDetailRetrieve(); //btn_search.dispatch("DOMActivate");
  2279. } else {
  2280. messageBox("변경된 데이터가","I004");
  2281. return;
  2282. }
  2283. }
  2284. ]]>
  2285. </script>
  2286. </button>
  2287. <button id="btn_print" class="btn6_letter5" style="left:0px; top:3px; width:92px; height:22px; ">
  2288. <caption>청구서출력</caption>
  2289. <script type="javascript" ev:event="DOMActivate">
  2290. <![CDATA[
  2291. exeReportPreview("RPRSC11901", "XMLSTR");
  2292. ]]>
  2293. </script>
  2294. </button>
  2295. <output id="output1" ref="/root/main/reqeqmtlist/instcd" class="output_fix" visibility="hidden" appearance="output" style="left:390px; top:5px; width:78px; height:19px; "/>
  2296. <output id="opt_reqdd" ref="/root/main/reqeqmtlist/reqdd" class="output_fix" visibility="hidden" appearance="output" style="left:475px; top:5px; width:78px; height:19px; "/>
  2297. <output id="opt_reqseqno" ref="/root/main/reqeqmtlist/reqseqno" class="output_fix" visibility="hidden" appearance="output" style="left:560px; top:5px; width:78px; height:19px; "/>
  2298. </group>
  2299. <group id="gro_calc" visibility="hidden" style="left:250px; top:505px; width:375px; height:99px; ">
  2300. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:375px; height:96px; "/>
  2301. <line id="line24" class="line_3" style="x1:2px; y1:15px; x2:372px; y2:15px; "/>
  2302. <datagrid id="grd_calc" nodeset="/root/main/calc" caption="외화금액^부대비용(%)^환율^원화금액" colsep="^" colwidth="100, 75, 93, 93" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" style="left:0px; top:18px; width:373px; height:50px; ">
  2303. <col ref="money" visibility="visible" format="#,###" style="text-align:center; "/>
  2304. <col ref="persent" type="input" format="#,###" style="text-align:center; "/>
  2305. <col ref="exchange" type="input" format="#,###" style="text-align:center; "/>
  2306. <col disabled="true" ref="currency" format="#,###" style="text-align:right; "/>
  2307. <script type="javascript" ev:event="xforms-value-changed">
  2308. <![CDATA[
  2309. // 원화 := 외화*환율 + ((외화*환율*부대비용율)/100)
  2310. grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("currency")) = ( grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("money")) * grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("exchange")) )
  2311. + ( ( grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("money")) * grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("persent")) * grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("exchange"))) /100 );
  2312. model.refresh();
  2313. ]]>
  2314. </script>
  2315. </datagrid>
  2316. <caption id="cap_calc" class="tit_1" style="left:0px; top:0px; width:111px; height:14px; ">원화금액 계산기</caption>
  2317. <button id="btn_calc" class="btn6_letter10" style="left:35px; top:70px; width:156px; height:22px; ">
  2318. <caption>확 인</caption>
  2319. <script type="javascript" ev:event="DOMActivate">
  2320. <![CDATA[
  2321. gro_calc.attribute("visibility") = 'hidden';
  2322. grd_recmeqmtlist.valueMatrix(grd_recmeqmtlist.row, grd_recmeqmtlist.colRef("wncurncyamt")) = grd_calc.valueMatrix(grd_calc.row, grd_calc.colRef("currency"));
  2323. gro_calc.visible = false;
  2324. group3.disabled = false;
  2325. model.refresh();
  2326. ]]>
  2327. </script>
  2328. </button>
  2329. <button id="button23" class="btn6_letter10" style="left:205px; top:70px; width:156px; height:22px; ">
  2330. <caption>취 소</caption>
  2331. <script type="javascript" ev:event="DOMActivate">
  2332. <![CDATA[
  2333. gro_calc.attribute("visibility") = 'hidden';
  2334. gro_calc.visible = false;
  2335. group3.disabled = false;
  2336. model.refresh();
  2337. ]]>
  2338. </script>
  2339. </button>
  2340. </group>
  2341. </xhtml:body>
  2342. </xhtml:html>