SMRSC11900_장비청구관리.xrw 118 KB

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