SMRSC12100_장비청구접수(성의교정).xrw 105 KB

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