SMRFE01100_수리신청등록(통합).xrw 80 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>비품/장비 수리 신청 등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <rfehdabplist/>
  11. <grid>
  12. <rfehemhtlist/>
  13. <rfcmfacdlist/>
  14. </grid>
  15. <control>
  16. <rfehemhtlist>
  17. <fixasetcd/>
  18. <fixasetnm/>
  19. <reqdeptcd/>
  20. <depthngnm/>
  21. <reqpsnid/>
  22. <reqpsnnm/>
  23. <fixtrseqmtflag/>
  24. <workstat/>
  25. <btnfixasetcd/>
  26. <deptaprvreqyn>N</deptaprvreqyn>
  27. <execdept/>
  28. </rfehemhtlist>
  29. <instcd/>
  30. </control>
  31. <printdata>
  32. <data/>
  33. </printdata>
  34. </main>
  35. <send>
  36. <goodsrch>
  37. <instcd/>
  38. <goodflag/>
  39. <lrgcd_search/>
  40. <mngtdeptcd/>
  41. <mngtdeptnm/>
  42. <tempmngtdeptcd/>
  43. <fixasetcd/>
  44. <goodflagnm/>
  45. <installplcecd/>
  46. <installplcenm/>
  47. <goodspec/>
  48. <mngtno/>
  49. </goodsrch>
  50. <rpirsrch>
  51. <instcd/>
  52. <instcdnm/>
  53. <reqdd1/>
  54. <reqdd2/>
  55. <reqpsnid/>
  56. <reqpsnnm/>
  57. <reqflag>S</reqflag>
  58. <fixtrseqmtflag/>
  59. <reqdd/>
  60. <reqno/>
  61. <reqdeptcd/>
  62. <reqdeptnm/>
  63. <deptcd/>
  64. <goodflag/>
  65. <tempmngtdeptcd/>
  66. <bizflag>E</bizflag>
  67. <installplcecd/>
  68. <includesubdept/>
  69. </rpirsrch>
  70. <fileupcolumn>
  71. <instcd/>
  72. <reqdd/>
  73. <fileseqno/>
  74. <reqflag/>
  75. <reqno/>
  76. <reqseqno/>
  77. <reqpsnid/>
  78. <attfilenm/>
  79. <attfilepathnm/>
  80. <reqdeptcd/>
  81. <fileupload>
  82. <file>
  83. <filename/>
  84. </file>
  85. </fileupload>
  86. <scrnid>SMRFE00410</scrnid>
  87. </fileupcolumn>
  88. </send>
  89. <init>
  90. <rowtemp/>
  91. <workstattemp/>
  92. <goodflag>
  93. <label>전체</label>
  94. <value/>
  95. <label>비품</label>
  96. <value>GE</value>
  97. <label>의료장비</label>
  98. <value>EQ</value>
  99. <label>시험용(데모)</label>
  100. <value>DE</value>
  101. <label>대여</label>
  102. <value>RE</value>
  103. <label>임상시험용</label>
  104. <value>CT</value>
  105. </goodflag>
  106. <viewOption>spec</viewOption>
  107. </init>
  108. <temp>
  109. <rfehemhtlist/>
  110. </temp>
  111. </root>
  112. </instance>
  113. <script type="javascript" ev:event="xforms-ready">
  114. <![CDATA[
  115. //submit 되는 node 들을 초기화한다
  116. fInitialize();
  117. btn_search.dispatch("DOMActivate");
  118. ]]>
  119. </script>
  120. <submission id="TRRFE00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rpirsrch" resultref="/root/main/grid/rfehemhtlist"/>
  121. <submission id="TXRFE00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid/rfehemhtlist" resultref="/root/temp"/>
  122. <submission id="TRRFE00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rpirsrch" resultref="/root/main/rfehdabplist"/>
  123. <submission id="TRRSE01504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/goodsrch" resultref="/root/main/grid/rfcmfacdlist"/>
  124. <submission id="TXRSD00423" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/fileupcolumn" resultref="/root/temp"/>
  125. </model>
  126. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  127. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  128. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  129. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  130. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  131. <script type="javascript" src="../../../mis/purcbaseweb/js/SMRSC05303.js"/>
  132. <script type="javascript">
  133. <![CDATA[
  134. function fInitialize()
  135. {
  136. misfGridInit(grd_rfehemhtlist);
  137. misfGridInit(grd_rfehdabplist);
  138. misfGridInit(grd_temp);
  139. misfGridInit(grd_rfcmfacdlist);
  140. // rszfUserGoodFlagList(cmb_fixtrseqmtflag,getUserInfo("userid"));
  141. rszfComboBugtList(cmb_bugtcd,getUserInfo("dutplceinstcd"));
  142. misfComboComCdListMulti("C0048,R0055,R0055,R0032,R0025,R0035,R0285,030R0033"
  143. , "cmb_instcd,cmb_workstat,grd_rfehemhtlist.workstat,grd_rfehdabplist.acsrsunit,grd_rfcmfacdlist.goodflag,grd_rfcmfacdlist.prodplce,grd_rfehemhtlist.rpirflag2,grd_rfcmfacdlist.mngtgrade");
  144. // 사용자 권한에 따른 기관코드 Setting. [(6)수리관리, (C)신청]
  145. // rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"6","C");
  146. // model.resetInstanceNode("/root/main/control/rfehemhtlist");
  147. misfMsterDetailSet(grd_rfehemhtlist, null, "TRRFE00401", "Y");
  148. misfMsterDetailSet(grd_rfcmfacdlist, null, "TRRSE01504", "N");
  149. // 기관코드 설정
  150. model.setValue("/root/send/rpirsrch/instcd", getUserInfo("dutplceinstcd"));
  151. model.setValue("/root/send/rpirsrch/instcdnm", getUserInfo("dutplceinstnm"));
  152. model.setValue(opt_reqdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  153. model.setValue(opt_reqdeptnm.attribute("ref") , getUserInfo("dutplcenm"));
  154. model.setValue("/root/send/goodsrch/mngtdeptcd", opt_reqdeptcd.value);
  155. model.setValue("/root/send/goodsrch/mngtdeptnm", opt_reqdeptnm.value);
  156. // 금일 날자 설정
  157. model.setValue("/root/send/rpirsrch/reqdd1", getCurrentDate());
  158. model.setValue("/root/send/rpirsrch/reqdd2", getCurrentDate());
  159. model.setValue(ipt_rowtemp.attribute("ref"), "");
  160. fcontrolEnableYN(true);
  161. misfSetReadOnlyCol(grd_rfehemhtlist, "workstat", true);
  162. grd_rfehemhtlist.fixedcellcheckbox(0,grd_rfehemhtlist.colRef("choice"),false) = true;
  163. grd_rfehemhtlist.refresh();
  164. //수리 청구 승인권한 여부 판별하여 Grid의 승인 컬럼을 설정.
  165. fdeptGrantYN();
  166. model.refresh();
  167. }
  168. //수리 청구 승인권한 여부 판별하여 Grid의 승인 컬럼을 설정.
  169. function fdeptGrantYN()
  170. {
  171. /* ---------------------------------------------------------------------------------------
  172. * [2007.12.12 HBH ] 청구주기 추가.
  173. * 수리,장비등 청구주기가 없는 것들은 '1'로셋팅
  174. ---------------------------------------------------------------------------------------*/
  175. rszfGetPurcReqAuthInfo(cmb_instcd.value, "S", getUserInfo("dutplcecd"), getUserInfo("userid"),"1");
  176. for(var fRow = grd_rfehemhtlist.fixedRows; fRow < grd_rfehemhtlist.rows; fRow++)
  177. {
  178. if( rszfGetPurcAuthInfoByCond("reqaprvflag") == "2" && grd_rfehemhtlist.valueMatrix(fRow, grd_rfehemhtlist.colRef("deptaprvreqyn")) == "Y")
  179. {
  180. if(grd_rfehemhtlist.valueMatrix(fRow, grd_rfehemhtlist.colRef("workstat")) == "00" || grd_rfehemhtlist.valueMatrix(fRow, grd_rfehemhtlist.colRef("workstat")) == "01" )
  181. {
  182. grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("deptaprvyn")) = false;
  183. }else{
  184. grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("deptaprvyn")) = true;
  185. }
  186. }else{
  187. grd_rfehemhtlist.isReadOnly(fRow,grd_rfehemhtlist.colRef("deptaprvyn")) = true;
  188. }
  189. }
  190. grd_rfehemhtlist.refresh();
  191. }
  192. function fcontrolEnableYN(TrueFalse)
  193. {
  194. ipt_reqdeptcd.disabled = TrueFalse;
  195. btn_reqdeptcdSearch.disabled = TrueFalse;
  196. //ipt_depthngnm.disabled = TrueFalse;
  197. ipt_reqpsnid.disabled = TrueFalse;
  198. btn_reqpsnidSearch.disabled = TrueFalse;
  199. //ipt_reqpsnnm.disabled = TrueFalse;
  200. ipt_acptdeptcd.disabled = true;
  201. ipt_acptdeptnm.disabled = true;
  202. rdo_execdept.disabled = TrueFalse;
  203. ipt_reqtel.disabled = TrueFalse;
  204. txt_hdrncspec.disabled = TrueFalse;
  205. ipt_genrdd.disabled = TrueFalse;
  206. // ipt_genrtm.disabled = TrueFalse;
  207. rdo_deptaprvreqyn.disabled =TrueFalse;
  208. ipt_bugtyy.disabled = true;
  209. cmb_bugtcd.disabled = true;
  210. ipt_stdysubjno.disabled = true;
  211. btn_stdysubjnm.disabled = true;
  212. ipt_stdysubjnm.disabled = true;
  213. ipt_chrgpsnid.disabled = true;
  214. //ipt_chrgpsnnm.disabled = true;
  215. //cmb_workstat.disabled = true;
  216. ipt_acptdd.disabled = true;
  217. //che_acptpsncnfm.disabled = TrueFalse;
  218. //ipt_possndd.disabled = true;
  219. ipt_deptacptpsnid.disabled = true;
  220. ipt_deptacptpsnnm.disabled = true;
  221. txt_lastrpirrslt.disabled = true;
  222. // 부품사용내역 그리드 설정
  223. //grd_rfehdabplist.disabled = true;
  224. model.refresh();
  225. }
  226. function fCheckTime(ftimeset)
  227. {
  228. var sTime = ftimeset.value;
  229. if(sTime.length != 4)
  230. {
  231. messageBox("네자리를 ","C001");
  232. ftimeset.value = "";
  233. return;
  234. }
  235. var sFrontTime = sTime.substr(0, 2);
  236. var sBackTime = sTime.substr(2, 2);
  237. if(parseInt(sFrontTime) > 24)
  238. {
  239. messageBox("24시를 ","E003");
  240. ftimeset.value = "";
  241. return;
  242. }
  243. if(parseInt(sBackTime) > 59)
  244. {
  245. messageBox("59분을 ","E003");
  246. ftimeset.value = "";
  247. return;
  248. }
  249. }
  250. // 수리진행상태 check
  251. function fcomboValueCheck()
  252. {
  253. btn_delete.disabled = false;
  254. // control 수정 금지
  255. fcontrolEnableYN(true);
  256. if(cmb_workstat.value == '00' || cmb_workstat.value == '01')
  257. {
  258. ipt_reqtel.disabled = false;
  259. ipt_reqdeptcd.disabled = false;
  260. btn_reqdeptcdSearch.disabled = false;
  261. ipt_depthngnm.disabled = false;
  262. if(cmb_instcd.value == "103")
  263. {
  264. ipt_bugtyy.disabled = false;
  265. cmb_bugtcd.disabled = false;
  266. ipt_stdysubjno.disabled = false;
  267. btn_stdysubjnm.disabled = false;
  268. ipt_stdysubjnm.disabled = false;
  269. }
  270. ipt_reqpsnid.disabled = false;
  271. btn_reqpsnidSearch.disabled = false;
  272. ipt_reqpsnnm.disabled = false;
  273. txt_hdrncspec.disabled = false;
  274. ipt_genrdd.disabled = false;
  275. // ipt_genrtm.disabled = false;
  276. rdo_execdept.disabled = false;
  277. rdo_deptaprvreqyn.disabled=false;
  278. }else if(cmb_workstat.value == '04' || (cmb_workstat.value == '07' || cmb_workstat.value == '08' )){
  279. // 삭제 금지
  280. btn_delete.disabled = true;
  281. // 인수확인 수정
  282. che_acptpsncnfm.disabled = false;
  283. rdo_execdept.disabled = true;
  284. rdo_deptaprvreqyn.disabled=true;
  285. }else{
  286. btn_delete.disabled = true;
  287. rdo_execdept.disabled = true;
  288. rdo_deptaprvreqyn.disabled=true;
  289. }
  290. model.refresh();
  291. }
  292. // 인수 확인시 기본 사항
  293. function facptCheck()
  294. {
  295. /*-----------------------------------------------------------------------------
  296. * check box 에 체크를 하면 value 가 'N Y' 가 된다.
  297. * 'N'일경우를 먼저 체크해야하는데 VALUE가 정의되지 않아 NULL이 된다.
  298. ----------------------------------------------------------------------------- */
  299. //if(che_acptpsncnfm.value == 'N')
  300. if(che_acptpsncnfm.value.length == 0 || che_acptpsncnfm.value.length == null )
  301. {
  302. model.setValue(ipt_possndd.attribute("ref"), "");
  303. model.setValue(ipt_deptacptpsnid.attribute("ref"), "");
  304. model.setValue(ipt_deptacptpsnnm.attribute("ref"), "");
  305. }else{
  306. model.setValue(ipt_possndd.attribute("ref"), getCurrentDate().substr(0, 8));
  307. model.setValue(ipt_deptacptpsnid.attribute("ref"), getUserInfo("userid"));
  308. model.setValue(ipt_deptacptpsnnm.attribute("ref"), getUserInfo("usernm"));
  309. cmb_workstat.value = "05";
  310. che_acptpsncnfm.value= "Y";
  311. }
  312. model.refresh();
  313. }
  314. // grid onclick event
  315. // 행추가시 필요 없는 submission이 발생하여 우선은 제어를 위해 "N" 셋팅시 submission pass
  316. function fgridClickEvent(tmpStat)
  317. {
  318. grd_rfehemhtlist.refresh();
  319. model.removeNodeset("/root/temp/rfehemhtlist");
  320. model.makeNode("/root/temp/rfehemhtlist");
  321. //alert(instance1.selectNodesXml("/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]"));
  322. model.copyNode("/root/temp/rfehemhtlist", "/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]");
  323. // 부품사용내역을 조회 하기 위한 기본값 설정.
  324. if(grd_rfehdabplist.rows > 1){
  325. misfGridInit(grd_rfehdabplist);
  326. }
  327. if(grd_rfehemhtlist.rows-grd_rfehemhtlist.fixedRows != 0 && tmpStat != "N")
  328. {
  329. model.setValue("/root/send/rpirsrch/reqdd",grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd")) );
  330. model.setValue("/root/send/rpirsrch/reqno", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno")) );
  331. submit("TRRFE00402");
  332. grd_rfehdabplist.isReadOnly(grd_rfehdabplist.fixedRows, grd_rfehdabplist.fixedCols, grd_rfehdabplist.rows-1, grd_rfehdabplist.cols) = true;
  333. }
  334. if(grd_temp.rows > 1) grd_temp.row = grd_temp.rows - 1;
  335. }
  336. // 그리드 row 이동시 작업 check
  337. function fmoveCheck()
  338. {
  339. if ( getGridUpdateData(grd_temp) != "") {
  340. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  341. if (ret != 6) { // not OK
  342. grd_rfehemhtlist.row = model.getValue(ipt_rowtemp.attribute("ref"));
  343. model.refresh();
  344. return false;
  345. }else{
  346. grd_temp.clearStatus();
  347. }
  348. }
  349. model.setValue(ipt_rowtemp.attribute("ref"), grd_rfehemhtlist.row);
  350. fgridClickEvent();
  351. fcomboValueCheck();
  352. }
  353. function fupdateCheckSave()
  354. {
  355. if(!isRequiredControls("ipt_fixasetcd"))return false;
  356. if(!isRequiredControls("ipt_reqdd"))return false;
  357. if(!isRequiredControls("ipt_reqdeptcd"))return false;
  358. if(!isRequiredControls("ipt_reqpsnid"))return false;
  359. //if(!isRequiredControls("cmb_fixtrseqmtflag"))return false;
  360. if(!isRequiredControls("ipt_reqtel"))return false;
  361. if(!isRequiredControls("cmb_workstat"))return false;
  362. if(!isRequiredControls("txt_hdrncspec"))return false;
  363. if(grd_temp.rowStatus(grd_temp.row) != 0)
  364. {
  365. var iStatus = grd_temp.rowStatus(grd_temp.row);
  366. var sStatus = "update";
  367. model.copyNode("/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]", "/root/temp/rfehemhtlist");
  368. var sCurStatus = grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row);
  369. if(sCurStatus == 1 || sCurStatus == 3)
  370. {
  371. sStatus = "insert";
  372. }
  373. grd_rfehemhtlist.addStatus(grd_rfehemhtlist.row, sStatus);
  374. }
  375. grd_rfehemhtlist.refresh();
  376. var updtdata = getGridUpdateData(grd_rfehemhtlist);
  377. if (updtdata == "")
  378. {
  379. messageBox("변경된 데이터가","I004");
  380. return false;
  381. }
  382. //for (var i=grd_rfehemhtlist.fixedRows; i<=grd_rfehemhtlist.rows; i++){
  383. // grd_rfehemhtlist.valueMatrix(i, grd_rfehemhtlist.colRef("bizscrnid")) = "SMRFE00400_수리신청등록.xrw";
  384. //}
  385. model.refresh();
  386. misfSave("TXRFE00401");
  387. if( model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/deptaprvyn") != 'Y'
  388. && model.getValue(rdo_deptaprvreqyn.attribute("ref")) == "Y")
  389. messageBox("부서장 승인이 되지 않았습니다.","");
  390. if (model.getValue(gvErrorMsgPath + "/type") != "error") grd_rfehemhtlist.dispatch("onrowchanged");
  391. }
  392. function fmaxreqno(grd_obj) {
  393. var maxreqno = 0;
  394. for( cnt=1; cnt< grd_rfehemhtlist.rows-grd_rfehemhtlist.fixedRows ; cnt++) {
  395. if ( grd_rfehemhtlist.valueMatrix(cnt, grd_rfehemhtlist.colRef("reqdd")) == getCurrentDate().substr(0, 8) ) {
  396. if ( maxreqno < eval (grd_rfehemhtlist.valueMatrix(cnt, grd_rfehemhtlist.colRef("reqno"))) )
  397. maxreqno = eval (grd_rfehemhtlist.valueMatrix(cnt, grd_rfehemhtlist.colRef("reqno")));
  398. }
  399. }
  400. maxreqno = maxreqno + 1;
  401. return getRightPad(maxreqno+"", 4,'0');
  402. }
  403. function getRightPad(pStr, pLength, padString )
  404. {
  405. var tmpStr = "";
  406. if (pStr.length < pLength) {
  407. for( var i = pStr.length; i < pLength; i++){
  408. tmpStr = tmpStr + padString;
  409. }
  410. }
  411. return tmpStr + pStr;
  412. }
  413. function fAttfileAdd(){
  414. //파일 다운로드 하는 기능
  415. var maxsize = upd_uploadfile.attribute("filesize");
  416. model.setValue("/root/send/fileupcolumn/instcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("instcd") ) );
  417. model.setValue("/root/send/fileupcolumn/reqdd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdd") ) );
  418. model.setValue("/root/send/fileupcolumn/reqflag" , "S" ); //비품수리신청등록시 하드코딩 - 나중에 query에서 control
  419. model.setValue("/root/send/fileupcolumn/reqno" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqno") ) );
  420. model.setValue("/root/send/fileupcolumn/reqpsnid" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqpsnid") ) );
  421. model.setValue("/root/send/fileupcolumn/reqdeptcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdeptcd") ) );
  422. model.setValue("/root/send/fileupcolumn/attfilenm" , model.getValue("/root/main/control/rfehemhtlist/attfilenm") );
  423. model.setValue("/root/send/fileupcolumn/attfilepathnm", model.getValue("/root/send/fileupcolumn/fileupload/file") );
  424. submit("TXRSD00423");
  425. if (model.getValue(gvErrorMsgPath + "/type") != "error" ){
  426. messageBox("첨부파일이 업로드" , "I002");
  427. btn_search.dispatch("DOMActivate");
  428. }
  429. //파일 업로드 후 첨부파일 팝업창을 띄워서 해당 파일이 잘 올라갔는지 확인할수 있도록 해준다.?????
  430. }
  431. function fAttfileDown(){ //첨부파일 다운로드
  432. if(grd_rfehemhtlist.rows - grd_rfehemhtlist.fixedRows <= 0) return;
  433. else alert("danger");
  434. return;
  435. model.setValue("/root/send/fileupcolumn/instcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("instcd") ) );
  436. model.setValue("/root/send/fileupcolumn/reqdd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdd") ) );
  437. model.setValue("/root/send/fileupcolumn/fileseqno" , model.getValue("/root/main/goodreq/goodreqlist/attfilepathnm") ); //seqNumber
  438. model.setValue("/root/send/fileupcolumn/reqflag" , "S");
  439. model.setValue("/root/send/fileupcolumn/reqno" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqno") ) );
  440. model.setValue("/root/send/fileupcolumn/reqpsnid" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqpsnid") ) );
  441. model.setValue("/root/send/fileupcolumn/reqdeptcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdeptcd") ) );
  442. model.setValue("/root/send/fileupcolumn/attfilenm" , model.getValue("/root/main/control/rfehemhtlist/attfilepathnm") );
  443. model.setValue("/root/send/fileupcolumn/attfilepathnm" , model.getValue("/root/send/fileupcolumn/fileupload/file") );
  444. //첨부파일관련 팝업을 띄워서 첨부파일을 조회도 하고 다운로드 삭제까지 할수 있도록 구현.
  445. rszfOpenPopUpListByWndName(grd_rfehemhtlist,"","","SMRSD00420","instcd,reqdd,reqflag,reqno,reqseqno,reqpsnid,reqdeptcd,attfilepathnm","instcd,reqdd,reqflag,reqno,reqseqno,reqpsnid,reqdeptcd,attfilepathnm", "Y");
  446. //submit("TRRSD00421");
  447. btn_search.dispatch("DOMActivate");
  448. }
  449. ]]>
  450. </script>
  451. </xhtml:head>
  452. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  453. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  454. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">비품/장비 수리 신청 등록</caption>
  455. </group>
  456. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195; height:744px; ">
  457. <group id="grp_detail" style="left:695px; top:80px; width:500px; height:655px; ">
  458. <caption id="caption19" style="left:85px; top:365px; width:100px; height:20px; vertical-align:middle; "/>
  459. <line id="line8" class="line_2" style="x1:3px; y1:262px; x2:498px; y2:262px; "/>
  460. <line id="line40" class="line_2" style="x1:0px; y1:214px; x2:494px; y2:214px; "/>
  461. <input id="ipt_deptacptpsnid" ref="/root/temp/rfehemhtlist/deptacptpsnid" class="input_default" visibility="hidden" style="left:358px; top:430px; width:41px; height:19px; text-align:center; "/>
  462. <button id="btn_reqdeptcdSearch" class="icon_search" navindex="29" style="left:243px; top:121px; width:16px; height:16px; ">
  463. <caption/>
  464. <script type="javascript" ev:event="DOMActivate">
  465. <![CDATA[
  466. misfOpenPopUpList("02", ipt_reqdeptcd, "", "reqdeptcd,depthngnm");
  467. model.refresh();
  468. ]]>
  469. </script>
  470. </button>
  471. <caption id="cap_reqtel" class="cell_1" style="left:249px; top:192px; width:90px; height:23px; vertical-align:middle; ">의뢰자 연락처</caption>
  472. <caption id="cap_bugtyy" class="cell_1" style="left:195px; top:264px; width:60px; height:23px; vertical-align:middle; ">예산년도</caption>
  473. <line id="line20" class="line_2" style="x1:0px; y1:524px; x2:498px; y2:524px; "/>
  474. <select1 id="rdo_execdept" ref="/root/temp/rfehemhtlist/execdept" disabled="true" navindex="27" visibility="visible" appearance="full" cellspacing="20" cols="4" overflow="visible" style="left:93px; top:98px; width:400px; height:20px; border-style:solid; ">
  475. <choices>
  476. <item>
  477. <label>의공학과</label>
  478. <value>4090500000</value>
  479. </item>
  480. <item>
  481. <label>물류팀</label>
  482. <value>4020334000</value>
  483. </item>
  484. <item>
  485. <label>의료정보과</label>
  486. <value>4130100000</value>
  487. </item>
  488. <item>
  489. <label>시설과</label>
  490. <value>4060100000</value>
  491. </item>
  492. </choices>
  493. <script type="javascript" ev:event="DOMFocusOut">
  494. <![CDATA[
  495. var pgrid_name = grd_rfehemhtlist;
  496. var ptarget_node = "/root/temp/rfehemhtlist";
  497. var psource_node = "/root/main/grid/rfehemhtlist[" + ipt_rowtemp.value + "]";
  498. var node1 = instance1.selectNodes(ptarget_node + "/*");
  499. var node2 = instance1.selectNodes(psource_node + "/*");
  500. var update_yn = "N";
  501. if (model.getValue(ptarget_node + "/execdept") != model.getValue(psource_node + "/execdept")) {
  502. update_yn = "Y";
  503. }
  504. if (pgrid_name.rowstatus(pgrid_name.row) == 1 && update_yn == "Y") {
  505. model.copyNode(psource_node, ptarget_node);
  506. pgrid_name.refresh();
  507. }
  508. else if ((pgrid_name.rowstatus(pgrid_name.row) == 0 || pgrid_name.rowstatus(pgrid_name.row) == 2) && update_yn == "Y") {
  509. model.copyNode(psource_node, ptarget_node);
  510. pgrid_name.rowstatus(pgrid_name.row) = 2;
  511. pgrid_name.refresh();
  512. }
  513. model.setFocus("grd_rfehemhtlist");
  514. ]]>
  515. </script>
  516. <script type="javascript" ev:event="xforms-value-changed">
  517. <![CDATA[
  518. var dept = model.getValue("/root/temp/rfehemhtlist/execdept");
  519. var instcd= getUserInfo("dutplceinstcd");
  520. if(dept == "4060100000" && instcd == "031"){
  521. messageBox("본원에선 시설과를 담당부서로 선택할 수" , "I004");
  522. model.setValue("/root/temp/rfehemhtlist/execdept","");
  523. rdo_execdept.refresh();
  524. return;
  525. }
  526. ]]>
  527. </script>
  528. </select1>
  529. <caption id="cap_deptaprvpsnid" class="cell_1" visibility="hidden" style="left:249px; top:359px; width:90px; height:23px; vertical-align:middle; ">부서승인자</caption>
  530. <line id="line10" class="line_3" style="x1:0px; y1:383px; x2:495px; y2:383px; "/>
  531. <caption id="cap_lastrpirrslt" class="cell_1" style="left:0px; top:360px; width:90px; height:165px; vertical-align:middle; ">수리내역</caption>
  532. <caption id="cap_bugtcd" class="cell_1" style="left:358px; top:265px; width:60px; height:23px; vertical-align:middle; ">예산계정</caption>
  533. <output id="ipt_depthngnm" ref="/root/temp/rfehemhtlist/depthngnm" class="output_fix" navindex="30" style="left:263px; top:121px; width:232px; height:19px; text-align:center; "/>
  534. <input id="ipt_reqtel" ref="/root/temp/rfehemhtlist/reqtel" class="input_s_essential" navindex="36" maxlength="15" style="left:342px; top:194px; width:153px; height:19px; "/>
  535. <caption id="cap_stdysubjno" class="cell_1" visibility="hidden" style="left:293px; top:480px; width:63px; height:23px; vertical-align:middle; ">연구과제</caption>
  536. <select1 id="rdo_deptaprvreqyn" ref="/root/temp/rfehemhtlist/deptaprvreqyn" navindex="46" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:92px; top:362px; width:152px; height:20px; border-style:none; ">
  537. <choices>
  538. <item>
  539. <label>승인필요</label>
  540. <value>Y</value>
  541. </item>
  542. <item>
  543. <label>승인불필요</label>
  544. <value>N</value>
  545. </item>
  546. </choices>
  547. <script type="javascript" ev:event="onclick">
  548. <![CDATA[
  549. // if(rdo_deptaprvreqyn.value == "Y")
  550. // cmb_workstat.value="00";
  551. // else
  552. // cmb_workstat.value="01";
  553. // model.refresh();
  554. fdeptGrantYN();
  555. grd_rfehemhtlist.refresh();
  556. ]]>
  557. </script>
  558. </select1>
  559. <input id="ipt_bugtyy" ref="/root/temp/rfehemhtlist/bugtyy" class="input_default" disabled="true" navindex="39" inputtype="date" format="yyyy" style="left:256px; top:267px; width:101px; height:19px; "/>
  560. <input id="ipt_reqpsnid" ref="/root/temp/rfehemhtlist/reqpsnid" class="input_s_essential" navindex="31" style="left:92px; top:145px; width:146px; height:19px; text-align:center; ">
  561. <script type="javascript" ev:event="xforms-value-changed">
  562. <![CDATA[
  563. // misfValidationCheck("12", "", "reqpsnid,reqpsnnm" );
  564. if(ipt_reqpsnid.value.length == 0)
  565. ipt_reqpsnnm.value = "";
  566. else
  567. misfValidationCheck("01-1", "", "reqpsnid,reqpsnnm");
  568. model.refresh();
  569. ]]>
  570. </script>
  571. </input>
  572. <caption id="cap_reqpsnid" class="cell_1" style="left:0px; top:143px; width:90px; height:23px; vertical-align:middle; ">의뢰자</caption>
  573. <caption id="cap_acptdeptcd" class="cell_1" style="left:0px; top:168px; width:90px; height:23px; vertical-align:middle; ">접수부서</caption>
  574. <line id="line11" class="line_2" visibility="hidden" style="x1:0px; y1:382px; x2:498px; y2:382px; "/>
  575. <input id="ipt_deptacptpsnnm" ref="/root/temp/rfehemhtlist/deptacptpsnnm" class="input_default" visibility="hidden" style="left:397px; top:430px; width:45px; height:19px; text-align:center; "/>
  576. <line id="line12" class="line_2" style="x1:0px; y1:526px; x2:495px; y2:526px; "/>
  577. <caption id="cap_chrgtel" class="cell_1" style="left:249px; top:288px; width:90px; height:22px; vertical-align:middle; ">담당자 연락처</caption>
  578. <input id="ipt_reqdd" ref="/root/temp/rfehemhtlist/reqdd" class="input_s_essential" disabled="true" navindex="26" inputtype="date" style="left:92px; top:74px; width:153px; height:19px; text-align:center; "/>
  579. <textarea id="txt_hdrncspec" ref="/root/temp/rfehemhtlist/hdrncspec" class="input_s_essential" navindex="37" style="left:92px; top:218px; width:403px; height:43px; "/>
  580. <line id="line23" class="line_2" style="x1:0px; y1:70px; x2:495px; y2:70px; "/>
  581. <datagrid id="grd_rfehdabplist" nodeset="/root/main/rfehdabplist" caption="부품코드^부품명^수량^단위^금액" colsep="^" colwidth="90, 203, 40, 52, 70" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" navindex="54" style="left:92px; top:529px; width:403px; height:121px; ">
  582. <col ref="acsrscd" style="text-align:left; "/>
  583. <col ref="acsrsnm" style="text-align:left; "/>
  584. <col ref="acsrsqty" format="#,###" style="text-align:right; "/>
  585. <col ref="acsrsunit" type="combo" style="text-align:center; ">
  586. <choices>
  587. <itemset>
  588. <label/>
  589. <value/>
  590. </itemset>
  591. </choices>
  592. </col>
  593. <col ref="acsrsamt" visibility="hidden" format="#,###" style="text-align:right; "/>
  594. </datagrid>
  595. <caption id="cap_acsrslist" class="cell_1" style="left:0px; top:528px; width:90px; height:122px; vertical-align:middle; ">부품사용내역</caption>
  596. <caption id="cap_hdrncspec" class="cell_1" style="left:0px; top:216px; width:90px; height:47px; vertical-align:middle; ">의뢰내역</caption>
  597. <caption id="cap_genrdd" class="cell_1" style="left:0px; top:264px; width:90px; height:23px; vertical-align:middle; ">발생일자</caption>
  598. <output id="ipt_reqno" ref="/root/temp/rfehemhtlist/reqno" class="output_fix" style="left:342px; top:74px; width:153px; height:19px; "/>
  599. <line id="line24" class="line_3" style="x1:0px; y1:653px; x2:496px; y2:653px; "/>
  600. <line id="line35" class="line_2" style="x1:0px; y1:140px; x2:495px; y2:140px; "/>
  601. <caption id="caption11" class="cell_1" style="left:0px; top:96px; width:90px; height:22px; vertical-align:middle; ">담당부서</caption>
  602. <caption id="caption2" class="cell_1" style="left:0px; top:119px; width:90px; height:23px; vertical-align:middle; ">의뢰부서</caption>
  603. <line id="line14" class="line_2" visibility="hidden" style="x1:0px; y1:454px; x2:497px; y2:454px; "/>
  604. <caption id="cap_deptaprvdd" class="cell_1" visibility="hidden" style="left:0px; top:384px; width:90px; height:23px; vertical-align:middle; ">부서승인일자</caption>
  605. <caption id="caption23" style="left:85px; top:0px; width:412px; height:23px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#ff6600; vertical-align:middle; ">※수리진행상태가 '수리의뢰'인 경우에만 수정,삭제가 가능합니다.</caption>
  606. <input id="ipt_genrdd" ref="/root/temp/rfehemhtlist/genrdd" class="input_default" disabled="true" navindex="38" inputtype="date" style="left:92px; top:267px; width:101px; height:19px; text-align:center; "/>
  607. <output id="ipt_reqpsnnm" ref="/root/temp/rfehemhtlist/reqpsnnm" class="output_fix" navindex="33" style="left:263px; top:145px; width:232px; height:19px; text-align:center; "/>
  608. <caption id="caption3" class="cell_1" style="left:0px; top:72px; width:90px; height:23px; vertical-align:middle; ">의뢰일자</caption>
  609. <line id="line37" class="line_2" style="x1:0px; y1:167px; x2:495px; y2:167px; "/>
  610. <output id="ipt_stdysubjnm" ref="/root/temp/rfehemhtlist/stdysubjnm" class="output_fix" navindex="61" visibility="hidden" style="left:413px; top:480px; width:30px; height:19px; text-align:center; "/>
  611. <input id="ipt_acptdeptnm" ref="/root/temp/rfehemhtlist/acptdeptnm" class="output_fix" disabled="true" navindex="35" style="left:240px; top:170px; width:255px; height:19px; text-align:center; "/>
  612. <caption id="caption24" class="tit_2" style="left:5px; top:4px; width:157px; height:13px; ">의뢰현황</caption>
  613. <caption id="caption4" class="cell_1" style="left:249px; top:72px; width:90px; height:23px; vertical-align:middle; ">의뢰번호</caption>
  614. <line id="line16" class="line_2" visibility="hidden" style="x1:0px; y1:406px; x2:495px; y2:406px; "/>
  615. <line id="line38" class="line_2" style="x1:0px; y1:190px; x2:495px; y2:190px; "/>
  616. <textarea id="txt_lastrpirrslt" ref="/root/temp/rfehemhtlist/lastrpirrslt" class="output_fix" navindex="53" editable="false" style="left:92px; top:360px; width:403px; height:165px; "/>
  617. <caption id="cap_acptdd" class="cell_1" style="left:249px; top:312px; width:90px; height:23px; vertical-align:middle; ">접수일자</caption>
  618. <input id="ipt_fixasetnm" ref="/root/temp/rfehemhtlist/fixasetnm" class="output_fix" navindex="25" editable="false" style="left:92px; top:50px; width:403px; height:19px; "/>
  619. <line id="line1" class="line_1" style="x1:0px; y1:19px; x2:498px; y2:19px; "/>
  620. <line id="line28" class="line_2" style="x1:0px; y1:94px; x2:495px; y2:94px; "/>
  621. <input id="ipt_stdysubjno" ref="/root/temp/rfehemhtlist/stdysubjno" class="input_search" navindex="59" visibility="hidden" style="left:362px; top:480px; width:31px; height:19px; text-align:center; ">
  622. <script type="javascript" ev:event="xforms-value-changed">
  623. <![CDATA[
  624. if(ipt_stdysubjno.value != "")
  625. {
  626. rszfValidationCheck("TRRSD00261", "studylist", "refcond,instcd,stdysubjno", "stdysubjno," + cmb_instcd.value + "," + ipt_stdysubjno.value, "",
  627. "stdysubjno,stdysubjnm", ipt_stdysubjno, "SPRSD00260", "instcd", "cmb_instcd");
  628. }else
  629. {
  630. ipt_stdysubjno.value = "";
  631. ipt_stdysubjnm.value = "";
  632. }
  633. model.refresh();
  634. ]]>
  635. </script>
  636. </input>
  637. <select id="che_acptpsncnfm" ref="/root/temp/rfehemhtlist/acptpsncnfm" visibility="hidden" overflow="visible" appearance="full" style="left:307px; top:430px; width:50px; height:20px; border-style:none; ">
  638. <choices>
  639. <item>
  640. <label>확인</label>
  641. <value>Y</value>
  642. </item>
  643. </choices>
  644. <script type="javascript" ev:event="xforms-value-changed">
  645. <![CDATA[
  646. facptCheck();
  647. ]]>
  648. </script>
  649. </select>
  650. <input id="ipt_chrgpsnid" ref="/root/temp/rfehemhtlist/chrgpsnid" class="output_fix" disabled="true" navindex="41" style="left:92px; top:290px; width:66px; height:19px; text-align:center; "/>
  651. <input id="ipt_acptdeptcd" ref="/root/temp/rfehemhtlist/acptdeptcd" class="output_fix" disabled="true" navindex="34" style="left:92px; top:170px; width:146px; height:19px; text-align:center; "/>
  652. <line id="line18" class="line_2" style="x1:0px; y1:358px; x2:494px; y2:358px; "/>
  653. <input id="ipt_possndd" ref="/root/temp/rfehemhtlist/possndd" class="output_fix" navindex="24" editable="false" format="yyyy-mm-dd" style="left:365px; top:26px; width:130px; height:19px; text-align:center; "/>
  654. <caption id="caption7" class="cell_1" visibility="hidden" style="left:0px; top:359px; width:90px; height:23px; vertical-align:middle; ">부서승인여부</caption>
  655. <input id="ipt_deptaprvpsnid" ref="/root/temp/rfehemhtlist/deptaprvpsnid" class="input_search" disabled="true" navindex="48" visibility="hidden" style="left:341px; top:362px; width:76px; height:19px; text-align:center; "/>
  656. <select1 id="cmb_bugtcd" ref="/root/temp/rfehemhtlist/bugtcd" navindex="40" appearance="minimal" style="left:419px; top:267px; width:76px; height:19px; ">
  657. <choices>
  658. <itemset>
  659. <label/>
  660. <value/>
  661. </itemset>
  662. </choices>
  663. </select1>
  664. <input id="ipt_acptdd" ref="/root/temp/rfehemhtlist/acptdd" class="output_fix" disabled="true" navindex="45" format="yyyy-mm-dd" style="left:342px; top:314px; width:153px; height:19px; text-align:center; "/>
  665. <caption id="cap_chrgpsnid" class="cell_1" style="left:0px; top:288px; width:90px; height:23px; vertical-align:middle; ">수리담당자</caption>
  666. <line id="line3" class="line_2" style="x1:0px; y1:358px; x2:495px; y2:358px; "/>
  667. <input id="ipt_fixasetcd" ref="/root/temp/rfehemhtlist/fixasetcd" class="output_fix" navindex="23" editable="false" style="left:92px; top:26px; width:171px; height:19px; text-align:center; "/>
  668. <line id="line19" class="line_2" style="x1:0px; y1:47px; x2:495px; y2:47px; "/>
  669. <caption id="caption8" class="cell_1" style="left:268px; top:25px; width:92px; height:23px; vertical-align:middle; ">자산취득일자</caption>
  670. <caption id="cap_fixasetcd" class="cell_1" style="left:0px; top:24px; width:90px; height:47px; vertical-align:middle; ">자산코드</caption>
  671. <line id="line4" class="line_2" style="x1:0px; y1:262px; x2:494px; y2:262px; "/>
  672. <line id="line5" class="line_2" style="x1:0px; y1:265px; x2:498px; y2:265px; "/>
  673. <button id="btn_stdysubjnm" class="icon_search" navindex="60" visibility="hidden" style="left:396px; top:481px; width:16px; height:16px; ">
  674. <caption/>
  675. <script type="javascript" ev:event="DOMActivate">
  676. <![CDATA[
  677. rszfOpenPopUpListByWndName(ipt_stdysubjno,"","stdysubjno,stdysubjnm","SPRSD00260","instcd","cmb_instcd");
  678. model.refresh();
  679. ]]>
  680. </script>
  681. </button>
  682. <input id="ipt_deptaprvdd" ref="/root/temp/rfehemhtlist/deptaprvdd" class="input_default" disabled="true" navindex="52" visibility="hidden" inputtype="date" format="yyyy-mm-dd" style="left:92px; top:387px; width:153px; height:19px; "/>
  683. <select1 id="cmb_workstat" ref="/root/temp/rfehemhtlist/workstat" class="combo_s_essential" disabled="true" navindex="44" appearance="minimal" style="left:92px; top:314px; width:153px; height:19px; text-align:center; ">
  684. <choices>
  685. <itemset>
  686. <label/>
  687. <value/>
  688. </itemset>
  689. </choices>
  690. </select1>
  691. <input id="ipt_chrgpsnnm" ref="/root/temp/rfehemhtlist/chrgpsnnm" class="output_fix" disabled="true" navindex="42" style="left:160px; top:290px; width:85px; height:19px; text-align:center; "/>
  692. <button id="btn_reqpsnidSearch" class="icon_search" navindex="32" style="left:243px; top:145px; width:16px; height:16px; ">
  693. <caption/>
  694. <script type="javascript" ev:event="DOMActivate">
  695. <![CDATA[
  696. misfOpenPopUpList("12", ipt_reqpsnid, "", "reqpsnid,reqpsnnm");
  697. model.refresh();
  698. ]]>
  699. </script>
  700. </button>
  701. <caption id="cap_workstat" class="cell_1" style="left:0px; top:312px; width:90px; height:23px; vertical-align:middle; ">수리진행상태</caption>
  702. <caption id="cap_" class="cell_1" style="left:0px; top:192px; width:90px; height:23px; vertical-align:middle; ">자산구분</caption>
  703. <line id="line6" class="line_2" style="x1:0px; y1:310px; x2:495px; y2:310px; "/>
  704. <input id="ipt_deptaprvpsnnm" ref="/root/temp/rfehemhtlist/deptaprvpsnnm" class="input_search" disabled="true" navindex="50" visibility="hidden" style="left:419px; top:362px; width:76px; height:19px; text-align:center; "/>
  705. <input id="ipt_chrgtel" ref="/root/temp/rfehemhtlist/chrgtel" class="output_fix" disabled="true" navindex="43" editable="false" style="left:342px; top:289px; width:153px; height:19px; text-align:left; "/>
  706. <input id="ipt_reqdeptcd" ref="/root/temp/rfehemhtlist/reqdeptcd" class="input_s_essential" navindex="28" style="left:92px; top:121px; width:146px; height:19px; text-align:center; ">
  707. <script type="javascript" ev:event="xforms-value-changed">
  708. <![CDATA[
  709. misfSearchDept(ipt_depthngnm);
  710. ]]>
  711. </script>
  712. </input>
  713. <line id="line7" class="line_2" style="x1:0px; y1:334px; x2:495px; y2:334px; "/>
  714. <script type="javascript" ev:event="DOMFocusOut">
  715. <![CDATA[
  716. if(ipt_rowtemp.value == "")return;
  717. var pgrid_name = grd_rfehemhtlist;
  718. var ptarget_node = "/root/temp/rfehemhtlist";
  719. var psource_node = "/root/main/grid/rfehemhtlist[" + ipt_rowtemp.value + "]";
  720. var node1 = instance1.selectNodes(ptarget_node + "/*");
  721. var node2 = instance1.selectNodes(psource_node + "/*");
  722. var update_yn = "N";
  723. for (var k = 0; k < node1.length; k++) {
  724. for (var p = 0; p < node2.length; p++) {
  725. if (node1.item(k).nodeName == node2.item(p).nodeName) {
  726. if (model.getValue(ptarget_node + "/" + node1.item(k).nodeName) != model.getValue(psource_node + "/" + node1.item(p).nodeName)) {
  727. update_yn = "Y";
  728. break;
  729. }
  730. }
  731. if (update_yn == "Y") break;
  732. }
  733. if (update_yn == "Y") break;
  734. }
  735. if (pgrid_name.rowstatus(pgrid_name.row) == 1 && update_yn == "Y") {
  736. model.copyNode(psource_node, ptarget_node);
  737. pgrid_name.refresh();
  738. }
  739. else if ((pgrid_name.rowstatus(pgrid_name.row) == 0 || pgrid_name.rowstatus(pgrid_name.row) == 2) && update_yn == "Y") {
  740. model.copyNode(psource_node, ptarget_node);
  741. pgrid_name.rowstatus(pgrid_name.row) = 2;
  742. pgrid_name.refresh();
  743. }
  744. ]]>
  745. </script>
  746. <input id="ipt_attfilenm" ref="/root/temp/rfehemhtlist/attfilenm" class="input_default" disabled="true" navindex="47" visibility="visible" style="left:92px; top:337px; width:238px; height:19px; "/>
  747. <button id="btn_downfile" class="btn2_letter6" navindex="51" visibility="visible" style="left:409px; top:337px; width:86px; height:19px; ">
  748. <caption>수정/다운로드</caption>
  749. <script type="javascript" ev:event="DOMActivate">
  750. <![CDATA[
  751. //첨부파일이 있는 경우에만 파일 다운로드하는 기능
  752. // if ( ipt_attfilenm.value != '')
  753. // {
  754. //첨부파일 다운로드함수 호출
  755. fAttfileDown();
  756. // }else{
  757. // messageBox("첨부된 파일이 없어서 다운로드 할수" , "I004");
  758. // }
  759. ]]>
  760. </script>
  761. </button>
  762. <button id="btn_addfile" class="btn2_letter5" navindex="49" visibility="visible" style="left:332px; top:337px; width:75px; height:19px; ">
  763. <caption>파일업로드</caption>
  764. <script type="javascript" ev:event="DOMActivate">
  765. <![CDATA[
  766. //첨부파일이 이미 있다면 파일 업로드 가 안되도록 막아버리자.
  767. if ( model.getValue( ipt_attfilenm.attribute("ref")).length > 0) {
  768. messageBox( "이미 첨부파일이 존재하여 첨부파일을 저장할수" , "I004" );
  769. return;
  770. }
  771. //행추가를 통한 비품신규청구일경우 파일 업로드막기(저장후에 업로드가능해짐)
  772. //fixasetcd
  773. ///root/main/grid/rfehemhtlist
  774. //ghgh
  775. //alert(grd_rfehemhtlist.row);
  776. //alert(model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/fixasetcd"));
  777. if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/fixasetcd").length <=0 ) {
  778. messageBox( "비품청구 저장후에 첨부파일 업로드 하실수" , "I010" );
  779. return;
  780. }
  781. var files = window.fileDialog("open", "|", false);
  782. var replacepath = "";
  783. if ( files.length <= 0 ) return;
  784. model.setValue(ipt_uploadfile.attribute("ref") , files); //전체파일경로와이름을 셋팅
  785. var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
  786. model.setValue(ipt_attfilenm.attribute("ref") , filename);
  787. if (model.getValue( ipt_uploadfile.attribute("ref") ).length >0 && model.getValue( ipt_attfilenm.attribute("ref") ).length>0 ) {
  788. fAttfileAdd(); //첨부파일 서버로 저장하는 메소드 호출
  789. }
  790. //btn_search.dispatch("DOMActivate");
  791. model.refresh();
  792. ]]>
  793. </script>
  794. </button>
  795. <caption id="caption16" class="cell_1" visibility="visible" style="left:0px; top:335px; width:90px; height:23px; vertical-align:middle; ">첨부파일</caption>
  796. <script type="javascript" ev:event="DOMFocusIn">
  797. <![CDATA[
  798. inFlag = true;
  799. ]]>
  800. </script>
  801. <select1 id="combo1" ref="/root/temp/rfehemhtlist/fixtrseqmtflag" class="input_default" disabled="true" navindex="-1" appearance="minimal" style="left:92px; top:194px; width:148px; height:19px; ">
  802. <choices>
  803. <itemset nodeset="/root/init/goodflag">
  804. <label ref="label"/>
  805. <value ref="value"/>
  806. </itemset>
  807. </choices>
  808. </select1>
  809. </group>
  810. <datagrid id="grd_rfehemhtlist" nodeset="/root/main/grid/rfehemhtlist" disabled="false" visibility="visible" caption="^기관코드^자산구분^의뢰일자^의뢰일자^의뢰부서^의뢰부서^의뢰자^의뢰자^발생일자^발생시간^담당자ID^담당자^접수일자^접수시간^접수자ID^접수자^접수확인^접수부서CODE^접수부서^자산명^규격^모델^작업상태^품명^고장내역^수리구분1^수리구분^사용여부^최종수리상태^인수자확인^부서인수일자^부서인수자ID^부서인수자^수리비^비고^수리완료일자^담당자전화번호^결재여부^담당자comment^결재일자^미가동일수^메일방송여부^승인^부서승인자ID^부서승인자명^부서승인일자^caption1^caption2^caption3^caption4^1^2^3^4^5^6^7^8^9^고정자산코드^취득금액^담당부서명" colsep="^" colwidth="24, 59, 100, 66, 35, 70, 80, 50, 65, 70, 70, 70, 69, 70, 100, 100, 70, 100, 100, 100, 255, 100, 100, 70, 121, 100, 100, 60, 100, 80, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 41, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70,100,100,100,100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" navindex="12" style="left:0px; top:105px; width:692px; height:235px; ">
  811. <col checkvalue="Y,N" ref="choice" type="checkbox"/>
  812. <col ref="instcd" visibility="hidden"/>
  813. <col ref="fixtrseqmtflag" visibility="hidden"/>
  814. <col disabled="true" ref="reqdd" format="yyyy-mm-dd"/>
  815. <col disabled="true" ref="reqno" style="text-align:center; "/>
  816. <col ref="reqdeptcd" visibility="hidden"/>
  817. <col ref="depthngnm" visibility="hidden"/>
  818. <col ref="reqpsnid" visibility="hidden"/>
  819. <col disabled="true" ref="reqpsnnm" style="text-align:center; "/>
  820. <col ref="genrdd" visibility="hidden"/>
  821. <col ref="genrtm" visibility="hidden"/>
  822. <col ref="chrgpsnid" visibility="hidden"/>
  823. <col ref="chrgpsnnm" visibility="hidden"/>
  824. <col ref="acptdd" visibility="hidden"/>
  825. <col ref="acpttm" visibility="hidden"/>
  826. <col ref="acptpsnid" visibility="hidden"/>
  827. <col ref="acptpsnnm" visibility="hidden"/>
  828. <col checkvalue="Y,N" type="checkbox" visibility="hidden"/>
  829. <col ref="acptdeptcd" visibility="hidden"/>
  830. <col ref="acptdeptnm" visibility="hidden"/>
  831. <col disabled="true" ref="fixasetnm"/>
  832. <col disabled="true" ref="goodspec"/>
  833. <col disabled="true" ref="goodmodel" visibility="hidden"/>
  834. <col disabled="true" ref="workstat" type="combo" style="text-align:center; ">
  835. <choices>
  836. <itemset>
  837. <label/>
  838. <value/>
  839. </itemset>
  840. </choices>
  841. </col>
  842. <col ref="itemnm" visibility="hidden"/>
  843. <col ref="hdrncspec" visibility="hidden"/>
  844. <col ref="rpirflag1" visibility="hidden"/>
  845. <col disabled="true" ref="rpirflag2" type="combo" visibility="visible" style="text-align:center; ">
  846. <choices>
  847. <itemset>
  848. <label/>
  849. <value/>
  850. </itemset>
  851. </choices>
  852. </col>
  853. <col ref="useyn" visibility="hidden"/>
  854. <col ref="lastrpirstat" visibility="hidden"/>
  855. <col ref="acptpsncnfm" visibility="hidden"/>
  856. <col ref="possndd" visibility="hidden"/>
  857. <col ref="deptacptpsnid" visibility="hidden"/>
  858. <col ref="deptacptpsnnm" visibility="hidden"/>
  859. <col ref="rpiramt" visibility="hidden"/>
  860. <col ref="cmt" visibility="hidden"/>
  861. <col ref="rpirenddd" visibility="hidden"/>
  862. <col ref="chrgtel" visibility="hidden"/>
  863. <col ref="sanctyn" visibility="hidden"/>
  864. <col ref="chrgpsncmt" visibility="hidden"/>
  865. <col ref="sanctdd" visibility="hidden"/>
  866. <col ref="nonworkdayno" visibility="hidden"/>
  867. <col ref="emaildeliveyn" visibility="hidden"/>
  868. <col checkvalue="Y,N" ref="deptaprvyn" type="checkbox"/>
  869. <col ref="deptaprvpsnid" visibility="hidden"/>
  870. <col ref="deptaprvpsnnm" visibility="hidden"/>
  871. <col ref="deptaprvdd" visibility="hidden"/>
  872. <col ref="deptaprvreqyn" visibility="hidden"/>
  873. <col ref="lastrpirrslt" visibility="hidden"/>
  874. <col ref="custcd" visibility="hidden"/>
  875. <col ref="reqtel" visibility="hidden"/>
  876. <col ref="bugtyy" visibility="hidden"/>
  877. <col ref="bugtcd" visibility="hidden"/>
  878. <col ref="stdysubjno" visibility="hidden"/>
  879. <col ref="stdysubjnm" visibility="hidden"/>
  880. <col ref="acptflag" visibility="hidden"/>
  881. <col ref="possndd" visibility="hidden"/>
  882. <col ref="execdept" visibility="hidden"/>
  883. <col ref="attfilenm" visibility="hidden"/>
  884. <col ref="attfilepathnm" visibility="hidden"/>
  885. <col ref="fixasetcd"/>
  886. <col ref="possnamt" format="#,###" style="text-align:right; "/>
  887. <col ref="execdeptnm" visibility="hidden"/>
  888. <script type="javascript" ev:event="onrowchanged">
  889. <![CDATA[
  890. fmoveCheck();
  891. grd_rfehemhtlist.dispatch("onmouseup");
  892. ]]>
  893. </script>
  894. <script type="javascript" ev:event="xforms-value-changed">
  895. <![CDATA[
  896. if(grd_rfehemhtlist.col == grd_rfehemhtlist.colRef("deptaprvyn"))
  897. {
  898. if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvyn")) == "Y")
  899. {
  900. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvdd")) = getCurrentDate().substr(0, 8);
  901. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnid")) = getUserInfo("userid");
  902. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnnm")) = getUserInfo("usernm");
  903. }else{
  904. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvdd")) = "";
  905. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnid")) = "";
  906. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnnm")) = "";
  907. }
  908. model.refresh();
  909. fupdateCheckSave();
  910. }
  911. ]]>
  912. </script>
  913. <script type="javascript" ev:event="onaftersort">
  914. <![CDATA[
  915. grd_rfehemhtlist.gridToInstance();
  916. ]]>
  917. </script>
  918. </datagrid>
  919. <group id="grp_search" style="left:0px; top:10px; width:1195px; height:63px; vertical-align:top; ">
  920. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:63px; "/>
  921. <input id="opt_reqdeptcd" ref="/root/send/rpirsrch/reqdeptcd" class="input_s_essential" navindex="8" appearance="input" style="left:780px; top:10px; width:75px; height:19px; ">
  922. <script type="javascript" ev:event="xforms-value-changed">
  923. <![CDATA[
  924. misfSearchDept(opt_reqdeptnm);
  925. ]]>
  926. </script>
  927. </input>
  928. <caption id="cap_reqdeptcd" class="search_name" style="left:656px; top:10px; width:134px; height:17px; ">의뢰(사용)부서 :</caption>
  929. <input id="ipt_reqdd2" ref="/root/send/rpirsrch/reqdd2" class="input_s_essential" navindex="2" inputtype="date" style="left:530px; top:10px; width:100px; height:19px; "/>
  930. <button id="btn_search" class="btn1_letter2" navindex="11" style="left:1129px; top:21px; width:56px; height:22px; ">
  931. <caption>조회</caption>
  932. <script type="javascript" ev:event="DOMActivate">
  933. <![CDATA[
  934. if(!isRequiredControls("cmb_instcd"))return;
  935. if(!isRequiredControls("ipt_reqdd1"))return;
  936. if(!isRequiredControls("ipt_reqdd2"))return;
  937. if(!isRequiredControls("otp_reqdeptcd"))return;
  938. model.setValue("/root/send/rpirsrch/installplcecd",model.getValue("/root/send/goodsrch/installplcecd"));
  939. if(submit("TRRFE00401")){
  940. rdo_view.dispatch("xforms-value-changed");
  941. fgridClickEvent();
  942. //model.setValue("/root/temp/rowtemp", grd_rfehemhtlist.row);
  943. fcomboValueCheck();
  944. fdeptGrantYN();
  945. }
  946. model.refresh();
  947. ]]>
  948. </script>
  949. </button>
  950. <output id="opt_reqdeptnm" ref="/root/send/rpirsrch/reqdeptnm" class="output_fix" style="left:880px; top:10px; width:130px; height:19px; "/>
  951. <input id="ipt_reqdd1" ref="/root/send/rpirsrch/reqdd1" class="input_s_essential" navindex="3" inputtype="date" style="left:415px; top:10px; width:100px; height:19px; "/>
  952. <caption id="cap_reqdd2" class="search_name" visibility="visible" style="left:320px; top:10px; width:86px; height:17px; ">의뢰일자 :</caption>
  953. <caption id="cap_instcd" class="search_name" style="left:15px; top:10px; width:86px; height:17px; ">기관코드 :</caption>
  954. <button id="btn_userSearch" class="icon_search" navindex="5" style="left:492px; top:35px; width:16px; height:16px; ">
  955. <caption/>
  956. <script type="javascript" ev:event="DOMActivate">
  957. <![CDATA[
  958. misfOpenPopUpList("12", ipt_reqpsnids, "", "reqpsnid,reqpsnnm");
  959. grp_search.refresh();
  960. ]]>
  961. </script>
  962. </button>
  963. <select1 id="cmb_fixtrseqmtflag" ref="/root/send/rpirsrch/fixtrseqmtflag" class="input_default" navindex="1" appearance="minimal" style="left:110px; top:35px; width:160px; height:19; ">
  964. <choices>
  965. <itemset nodeset="/root/init/goodflag">
  966. <label ref="label"/>
  967. <value ref="value"/>
  968. </itemset>
  969. </choices>
  970. <script type="javascript" ev:event="xforms-value-changed">
  971. <![CDATA[
  972. btn_search.dispatch("DOMActivate");
  973. ]]>
  974. </script>
  975. </select1>
  976. <caption id="caption13" style="left:516px; top:10px; width:20px; height:19px; font-weight:bold; ">~</caption>
  977. <caption id="caption12" class="search_name" style="left:15px; top:35px; width:86px; height:17px; ">자산구분 :</caption>
  978. <line id="line13" class="line_4" style="x1:1120px; y1:5px; x2:1120px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  979. <input id="ipt_reqpsnids" ref="/root/send/rpirsrch/reqpsnid" class="input_default" navindex="4" style="left:415px; top:35px; width:75px; height:19px; ">
  980. <script type="javascript" ev:event="xforms-value-changed">
  981. <![CDATA[
  982. // misfValidationCheck("12", "", "reqpsnid,reqpsnnm");
  983. if(ipt_reqpsnids.value.length == 0)
  984. ipt_reqpsnnms.value = "";
  985. else
  986. misfValidationCheck("01-1", "", "reqpsnid,reqpsnnm");
  987. grp_search.refresh();
  988. ]]>
  989. </script>
  990. </input>
  991. <button id="btn_dept" class="icon_search" navindex="9" style="left:859px; top:10px; width:16px; height:16px; ">
  992. <caption/>
  993. <script type="javascript" ev:event="DOMActivate">
  994. <![CDATA[
  995. misfOpenPopUpList("02", opt_reqdeptcd, "", "reqdeptcd,reqdeptnm");
  996. grp_search.refresh();
  997. ]]>
  998. </script>
  999. </button>
  1000. <select1 id="cmb_instcd" ref="/root/send/rpirsrch/instcd" class="combo_s_essential" disabled="true" navindex="-2" appearance="minimal" style="left:110px; top:10px; width:160px; height:19; ">
  1001. <choices>
  1002. <itemset>
  1003. <label/>
  1004. <value/>
  1005. </itemset>
  1006. </choices>
  1007. <script type="javascript" ev:event="xforms-value-changed">
  1008. <![CDATA[
  1009. btn_search.dispatch("DOMActivate");
  1010. ]]>
  1011. </script>
  1012. </select1>
  1013. <output id="ipt_reqpsnnms" ref="/root/send/rpirsrch/reqpsnnm" class="output_fix" navindex="6" style="left:510px; top:35px; width:95px; height:19px; "/>
  1014. <caption id="cap_reqno" class="search_name" style="left:320px; top:35px; width:83px; height:17px; ">의 뢰 자 :</caption>
  1015. <output id="opt_installplcenm" ref="/root/send/goodsrch/installplcenm" class="output_fix" style="left:880px; top:35px; width:130px; height:19px; "/>
  1016. <input id="ipt_installplcecd" ref="/root/send/goodsrch/installplcecd" class="input_search" navindex="7" appearance="input" style="left:780px; top:35px; width:75px; height:19px; ">
  1017. <script type="javascript" ev:event="xforms-value-changed">
  1018. <![CDATA[
  1019. if(ipt_installplcecd.value.length == 0)
  1020. opt_installplcenm.value = "";
  1021. else
  1022. rszfValidationCheck("TRRAC90701", "custlist", "refcond,retrnm",
  1023. "deptcd," + ipt_installplcecd.value, "", "installplcecd,installplcenm",
  1024. ipt_installplcecd, "PPRAC00700", "","");
  1025. grp_search.refresh();
  1026. ]]>
  1027. </script>
  1028. </input>
  1029. <button id="btn_installplce" class="icon_search" navindex="10" style="left:859px; top:35px; width:16px; height:16px; ">
  1030. <caption/>
  1031. <script type="javascript" ev:event="DOMActivate">
  1032. <![CDATA[
  1033. misfOpenPopUpList("19", ipt_installplcecd,"", "installplcecd,installplcenm", model.getValue(cmb_instcd.attribute("ref")),"instcd");
  1034. grp_search.refresh();
  1035. ]]>
  1036. </script>
  1037. </button>
  1038. <caption id="caption15" class="search_name" style="left:656px; top:34px; width:129px; height:17px; ">설 치 장 소 :</caption>
  1039. <select id="chk_includesubdept" ref="/root/send/rpirsrch/includesubdept" overflow="visible" appearance="full" style="left:1020px; top:10px; width:95px; height:20px; border-style:none; ">
  1040. <choices>
  1041. <item>
  1042. <label>하위부서포함</label>
  1043. <value>Y</value>
  1044. </item>
  1045. </choices>
  1046. </select>
  1047. </group>
  1048. <group id="grp_goodsearch" style="left:0px; top:340px; width:692px; height:395px; vertical-align:top; ">
  1049. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:692px; height:58px; "/>
  1050. <button id="button4" class="btn4_letter8" navindex="56" style="left:505px; top:60px; width:128px; height:22px; ">
  1051. <caption>자산리스트 출력</caption>
  1052. <script type="javascript" ev:event="DOMActivate">
  1053. <![CDATA[
  1054. exeReportPreview("RPRSE01504","XMLSTR");
  1055. ]]>
  1056. </script>
  1057. </button>
  1058. <button id="button1" class="btn5_letter3" navindex="19" visibility="visible" style="left:633px; top:61px; width:53px; height:19px; ">
  1059. <caption>Excel</caption>
  1060. <script type="javascript" ev:event="DOMActivate">
  1061. <![CDATA[
  1062. var fileName = window.fileDialog("save", ",", false, "보유자산 List", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1063. if (fileName != "")
  1064. {
  1065. grd_rfcmfacdlist.saveExcel(fileName, "보유자산List",true,true, "");
  1066. }
  1067. ]]>
  1068. </script>
  1069. </button>
  1070. <caption id="caption9" class="search_name" style="left:15px; top:32px; width:93px; height:17px; ">자산코드 :</caption>
  1071. <input id="input2" ref="/root/send/goodsrch/fixasetcd" class="input_search" navindex="14" imemode="disabled" _chartype="upper" appearance="input" style="left:107px; top:32px; width:114px; height:19px; ">
  1072. <script type="javascript" ev:event="onkeyup">
  1073. <![CDATA[
  1074. inputEnterKey("btn_goodsearch", "DOMActivate");
  1075. ]]>
  1076. </script>
  1077. </input>
  1078. <datagrid id="grd_rfcmfacdlist" nodeset="/root/main/grid/rfcmfacdlist" caption="기관^자산구분^자산코드^INVENTORY장비^자산명^자산명(한글)^자산명(영문)^규격^모델^S/N^사용부서^사용부서^관리등급^관리부서^관리부서^구코드^설치장소^거래처^제조원^제조국^취득일자^취득금액^기관코드^사용부서코드^제조회사^취득일자" colsep="^" colwidth="32, 59, 100, 40, 180, 80, 80, 90, 90, 75, 75, 100, 60, 75, 100, 87, 79, 87, 85, 89, 70, 35, 50, 50, 50, 60" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="9" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" navindex="13" style="left:0px; top:88px; width:691px; height:306px; text-align:center; vertical-align:middle; ">
  1079. <col ref="instnm" visibility="hidden" style="text-align:center; "/>
  1080. <col disabled="true" ref="goodflag" type="combo" style="text-align:center; ">
  1081. <choices>
  1082. <itemset>
  1083. <label/>
  1084. <value/>
  1085. </itemset>
  1086. </choices>
  1087. </col>
  1088. <col ref="fixasetcd" style="text-align:left; "/>
  1089. <col ref="inventoryflag" visibility="hidden"/>
  1090. <col ref="fixasetnm" style="text-align:left; "/>
  1091. <col ref="goodflaghngnm" visibility="hidden" style="text-align:left; "/>
  1092. <col ref="goodflagengnm" visibility="hidden" style="text-align:left; "/>
  1093. <col ref="goodspec" style="text-align:left; "/>
  1094. <col ref="goodmodel" visibility="hidden" style="text-align:left; "/>
  1095. <col ref="mngtno" style="text-align:left; "/>
  1096. <col ref="mngtdeptcd" visibility="hidden" style="text-align:center; "/>
  1097. <col ref="mngtdeptnm" style="text-align:left; "/>
  1098. <col disabled="true" ref="mngtgrade" type="combo" style="text-align:center; ">
  1099. <choices>
  1100. <itemset>
  1101. <label/>
  1102. <value/>
  1103. </itemset>
  1104. </choices>
  1105. </col>
  1106. <col ref="tempmngtdeptcd" visibility="hidden" style="text-align:center; "/>
  1107. <col ref="tempmngtdeptnm" visibility="hidden" style="text-align:left; "/>
  1108. <col ref="oldcd" style="text-align:left; "/>
  1109. <col ref="installplcenm" style="text-align:left; "/>
  1110. <col ref="suplplcenm" style="text-align:left; "/>
  1111. <col ref="prodcmpynm" style="text-align:left; "/>
  1112. <col disabled="true" ref="prodplce" type="combo" style="text-align:left; ">
  1113. <choices>
  1114. <itemset>
  1115. <label/>
  1116. <value/>
  1117. </itemset>
  1118. </choices>
  1119. </col>
  1120. <col ref="possndd" format="yyyy-mm-dd"/>
  1121. <col ref="possnamt" visibility="hidden" format="#,###"/>
  1122. <col ref="instcd" visibility="hidden"/>
  1123. <col ref="mngtdeptcd" visibility="visible"/>
  1124. <col ref="prodcmpy" visibility="hidden"/>
  1125. <col ref="possndd" visibility="hidden" format="yyyy-mm-dd"/>
  1126. <script type="javascript" ev:event="ondblclick">
  1127. <![CDATA[
  1128. if(grd_rfcmfacdlist.row > (grd_rfcmfacdlist.fixedRows-1) && event.pTarget.elementName == "xforms:col")
  1129. {
  1130. btn_insert.dispatch("DOMActivate");
  1131. model.setFocus("ipt_reqtel");
  1132. }
  1133. ]]>
  1134. </script>
  1135. <script type="javascript" ev:event="onaftersort">
  1136. <![CDATA[
  1137. grd_rfcmfacdlist.gridToInstance();
  1138. ]]>
  1139. </script>
  1140. </datagrid>
  1141. <input id="input1" ref="/root/send/goodsrch/goodflagnm" class="input_search" disabled="false" navindex="15" appearance="input" style="left:322px; top:9px; width:213px; height:19px; ">
  1142. <script type="javascript" ev:event="onkeyup">
  1143. <![CDATA[
  1144. inputEnterKey("btn_goodsearch", "DOMActivate");
  1145. ]]>
  1146. </script>
  1147. </input>
  1148. <line id="line15" class="line_1" style="x1:0px; y1:83px; x2:692px; y2:84px; "/>
  1149. <button id="btn_goodsearch" class="btn1_letter2" navindex="18" visibility="visible" style="left:625px; top:19px; width:56px; height:22px; ">
  1150. <caption>조회</caption>
  1151. <script type="javascript" ev:event="DOMActivate">
  1152. <![CDATA[
  1153. model.setValue("/root/send/goodsrch/instcd", cmb_instcd.value);
  1154. model.setValue("/root/send/goodsrch/mngtdeptcd", opt_reqdeptcd.value);
  1155. model.setValue("/root/send/goodsrch/installplcecd", ipt_installplcecd.value);
  1156. if(submit("TRRSE01504")){
  1157. rdo_view.dispatch("xforms-value-changed");
  1158. }
  1159. ]]>
  1160. </script>
  1161. </button>
  1162. <caption id="caption10" class="search_name" style="left:229px; top:9px; width:111px; height:17px; ">자 산 명 :</caption>
  1163. <line id="line17" class="line_4" style="x1:610px; y1:6px; x2:610px; y2:54px; border-color:#ffe4bb; border-left-style:solid; "/>
  1164. <caption id="caption5" class="tit_2" style="left:6px; top:68px; width:115px; height:13px; ">보유자산</caption>
  1165. <select1 id="cmb_goodfixtrseqmtflag" ref="/root/send/goodsrch/goodflag" class="input_default" navindex="0" appearance="minimal" style="left:107px; top:9px; width:114px; height:19px; ">
  1166. <choices>
  1167. <itemset nodeset="/root/init/goodflag">
  1168. <label ref="label"/>
  1169. <value ref="value"/>
  1170. </itemset>
  1171. </choices>
  1172. </select1>
  1173. <caption id="caption14" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">자산구분 :</caption>
  1174. <caption id="caption17" class="search_name" style="left:229px; top:32px; width:95px; height:17px; ">규격/모델:</caption>
  1175. <input id="input3" ref="/root/send/goodsrch/goodspec" class="input_search" disabled="false" navindex="16" appearance="input" style="left:322px; top:32px; width:103px; height:19px; ">
  1176. <script type="javascript" ev:event="onkeyup">
  1177. <![CDATA[
  1178. inputEnterKey("btn_goodsearch", "DOMActivate");
  1179. ]]>
  1180. </script>
  1181. </input>
  1182. <caption id="caption18" style="left:110px; top:62px; width:380px; height:25px; font-family:굴림체; font-size:9pt; font-weight:bold; color:#ff6600; vertical-align:middle; ">※조회 된 자산을 더블클릭 하시면 수리 신청이 추가 됩니다.</caption>
  1183. <caption id="caption20" class="search_name" style="left:442px; top:32px; width:60px; height:17px; ">S/N :</caption>
  1184. <input id="input4" ref="/root/send/goodsrch/mngtno" class="input_search" disabled="false" navindex="17" appearance="input" style="left:501px; top:32px; width:98px; height:19px; ">
  1185. <script type="javascript" ev:event="onkeyup">
  1186. <![CDATA[
  1187. inputEnterKey("btn_goodsearch", "DOMActivate");
  1188. ]]>
  1189. </script>
  1190. </input>
  1191. </group>
  1192. <caption id="caption1" class="tit_2" style="left:5px; top:84px; width:157px; height:13px; ">의뢰내역</caption>
  1193. <line id="line2" class="line_1" style="x1:0px; y1:99px; x2:692px; y2:99px; "/>
  1194. <datagrid id="grd_temp" nodeset="/root/temp/rfehemhtlist" visibility="hidden" caption="기관코드^담당부서^자산구분^의뢰일자^의뢰일자^의뢰부서^의뢰부서^의뢰자ID^의뢰자 명^발생일자^발생시간^담당자ID^담당자명^접수일자^접수시간^접수자ID^접수자이름^접수확인^접수부서^접수부서명^모델^고정자산코드^자산명^작업상태^품명^고장내역^수리구분1^수리구분2^사용여부^최종수리상태^인수자확인^부서인수일자^부서인수자ID^부서인수자명^수리비^비고^수리완료일자^담당자전화번호^결재여부^담당자comment^결재일자^미가동일수^메일방송여부^caption1^caption2" colsep="^" colwidth="70, 70, 70, 70, 38, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 70, 50, 70, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:5px; top:240px; width:680px; height:70px; ">
  1195. <col ref="instcd"/>
  1196. <col ref="execdeptnm" visibility="hidden"/>
  1197. <col ref="fixtrseqmtflag"/>
  1198. <col ref="reqdd"/>
  1199. <col ref="reqno"/>
  1200. <col ref="reqdeptcd"/>
  1201. <col ref="depthngnm"/>
  1202. <col ref="reqpsnid"/>
  1203. <col ref="reqpsnnm"/>
  1204. <col ref="genrdd"/>
  1205. <col ref="genrtm"/>
  1206. <col ref="chrgpsnid"/>
  1207. <col ref="chrgpsnnm"/>
  1208. <col ref="acptdd"/>
  1209. <col ref="acpttm"/>
  1210. <col ref="acptpsnid"/>
  1211. <col ref="acptpsnnm"/>
  1212. <col checkvalue="Y,N" type="checkbox"/>
  1213. <col ref="acptdeptcd"/>
  1214. <col ref="acptdeptnm"/>
  1215. <col ref="goodmodel"/>
  1216. <col ref="fixasetcd"/>
  1217. <col ref="fixasetnm"/>
  1218. <col ref="workstat"/>
  1219. <col ref="itemnm"/>
  1220. <col ref="hdrncspec"/>
  1221. <col ref="rpirflag1"/>
  1222. <col ref="rpirflag2"/>
  1223. <col ref="useyn"/>
  1224. <col ref="lastrpirstat"/>
  1225. <col ref="acptpsncnfm"/>
  1226. <col ref="possndd"/>
  1227. <col ref="deptacptpsnid"/>
  1228. <col ref="deptacptpsnnm"/>
  1229. <col ref="rpiramt"/>
  1230. <col ref="cmt"/>
  1231. <col ref="rpirenddd"/>
  1232. <col ref="chrgtel"/>
  1233. <col ref="sanctyn"/>
  1234. <col ref="chrgpsncmt"/>
  1235. <col ref="sanctdd"/>
  1236. <col ref="nonworkdayno"/>
  1237. <col ref="emaildeliveyn"/>
  1238. <col ref="deptaprvyn"/>
  1239. <col ref="deptaprvpsnid"/>
  1240. <col ref="deptaprvpsnnm"/>
  1241. <col ref="deptaprvdd"/>
  1242. <col ref="deptaprvreqyn"/>
  1243. <col ref="lastrpirrslt"/>
  1244. <col ref="custcd"/>
  1245. <col ref="reqtel"/>
  1246. <col ref="bugtyy"/>
  1247. <col ref="bugtcd"/>
  1248. <col ref="stdysubjno"/>
  1249. <col ref="stdysubjnm"/>
  1250. <col ref="acptflag"/>
  1251. <col ref="possndd"/>
  1252. <col ref="execdept"/>
  1253. <col ref="attfilenm" visibility="hidden"/>
  1254. <col ref="attfilepathnm" visibility="hidden"/>
  1255. </datagrid>
  1256. <input id="ipt_rowtemp" ref="/root/init/rowtemp" visibility="hidden" appearance="input" style="left:35px; top:175px; width:100px; height:19px; "/>
  1257. <button id="btn_delete" class="btn2_letter3" navindex="21" style="left:580px; top:78px; width:53px; height:19px; ">
  1258. <caption>행삭제</caption>
  1259. <script type="javascript" ev:event="DOMActivate">
  1260. <![CDATA[
  1261. if(fmoveCheck() != false)
  1262. {
  1263. misfGridIUD(grd_rfehemhtlist, "D");
  1264. fmoveCheck();
  1265. if(grd_rfehemhtlist.rows == 1)
  1266. {
  1267. fInitialize();
  1268. btn_search.dispatch("DOMActivate");
  1269. }
  1270. }
  1271. ]]>
  1272. </script>
  1273. </button>
  1274. <button id="btn_excel" class="btn5_letter3" navindex="22" style="left:635px; top:78px; width:53px; height:19px; ">
  1275. <caption>Excel</caption>
  1276. <script type="javascript" ev:event="DOMActivate">
  1277. <![CDATA[
  1278. var fileName = window.fileDialog("save", ",", false, "의뢰내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1279. if (fileName != "")
  1280. {
  1281. grd_rfehemhtlist.saveExcel(fileName, "의뢰내역List",true,true, "");
  1282. }
  1283. ]]>
  1284. </script>
  1285. </button>
  1286. <button id="btn_insert" class="btn2_letter3" navindex="20" visibility="visible" style="left:525px; top:78px; width:53px; height:19px; ">
  1287. <caption>행추가</caption>
  1288. <script type="javascript" ev:event="DOMActivate">
  1289. <![CDATA[
  1290. if(grd_rfcmfacdlist.rows - grd_rfcmfacdlist.fixedRows <= 0) {
  1291. messageBox("수리 신청 할 자산을 조회하여 선택하십시오.", "E");
  1292. return;
  1293. } else if (grd_rfcmfacdlist.row < grd_rfcmfacdlist.fixedRows) {
  1294. messageBox("수리 신청 할 자산을 선택하십시오.", "E");
  1295. return;
  1296. }
  1297. var statusCount = 0;
  1298. for(var fRow = 1; fRow < grd_rfehemhtlist.rows; fRow++)
  1299. {
  1300. if(grd_rfehemhtlist.rowStatus(fRow) == 1)
  1301. {
  1302. statusCount++ ;
  1303. }
  1304. }
  1305. if(statusCount < 1)
  1306. {
  1307. misfGridIUD(grd_rfehemhtlist, "A");
  1308. var insertRow = grd_rfehemhtlist.row;
  1309. var currentRow = grd_rfcmfacdlist.row;
  1310. var fixasetcd = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("fixasetcd"));
  1311. var lrgcd = fixasetcd.substr(2,2);
  1312. var mdlcd = fixasetcd.substr(4,2);
  1313. var smlcd = fixasetcd.substr(6,2);
  1314. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("fixasetcd")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("fixasetcd"));
  1315. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("instcd")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("instcd"));
  1316. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("fixtrseqmtflag")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("goodflag"));
  1317. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("fixasetnm")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("fixasetnm"));
  1318. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("goodspec")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("goodspec"));
  1319. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("goodmodel")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("goodmodel"));
  1320. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("possndd")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("possndd"));
  1321. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("possnamt")) = grd_rfcmfacdlist.valueMatrix(currentRow, grd_rfcmfacdlist.colRef("possnamt"));
  1322. // 의뢰일자 설정
  1323. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("reqdd")) = getCurrentDate().substr(0, 8);
  1324. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("genrdd")) = getCurrentDate().substr(0, 8);
  1325. // 일자별 의뢰 순번 설정
  1326. //grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("reqno")) = fmaxreqno(grd_rfehemhtlist);
  1327. // 부서코드 설정
  1328. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("reqdeptcd")) = getUserInfo("dutplcecd");
  1329. // 부서코드명 설정
  1330. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("depthngnm")) = getUserInfo("dutplcenm");
  1331. // User ID 설정
  1332. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("reqpsnid")) = getUserInfo("userid");
  1333. // User Name 설정
  1334. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("reqpsnnm")) = getUserInfo("usernm");
  1335. // 수리 진행 상태 설정 (수리 의뢰)
  1336. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("workstat")) = "01";
  1337. // 접수구분 ( '1': 수리 , '2' 예방)
  1338. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("acptflag")) = "1";
  1339. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("deptaprvreqyn")) = "N";
  1340. if(grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("fixtrseqmtflag")) == "EQ")
  1341. {
  1342. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("execdept")) = "4090500000";
  1343. }else{
  1344. var instcd = getUserInfo("dutplceinstcd");
  1345. if( instcd == "032"){
  1346. if(lrgcd == "19" && mdlcd == "09" && smlcd == "06"){
  1347. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("execdept")) = "4060100000";
  1348. messageBox("선택하신 자산코드의 담당부서는 시설과", "I009");
  1349. }else{
  1350. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("execdept")) = "4020334000";
  1351. }
  1352. }else{
  1353. grd_rfehemhtlist.valueMatrix(insertRow, grd_rfehemhtlist.colRef("execdept")) = "4020334000";
  1354. }
  1355. }
  1356. model.setValue(ipt_rowtemp.attribute("ref"), insertRow);
  1357. fgridClickEvent("N"); // 행추가시 필요 없는 submission이 발생하여 우선은 제어를 위해 "N" 셋팅시 submission pass
  1358. fcontrolEnableYN(false);
  1359. fdeptGrantYN(); //-> 청구 권한 체크
  1360. model.refresh();
  1361. }else{
  1362. messageBox("신규 수리청구는 한번에 다건을", "E001", "저장 후 추가 하십시오.");
  1363. }
  1364. ]]>
  1365. </script>
  1366. </button>
  1367. <select1 id="rdo_view" ref="/root/init/viewOption" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:100px; top:80px; width:105px; height:15px; border-style:none; ">
  1368. <choices>
  1369. <item>
  1370. <label>규격</label>
  1371. <value>spec</value>
  1372. </item>
  1373. <item>
  1374. <label>모델</label>
  1375. <value>model</value>
  1376. </item>
  1377. </choices>
  1378. <script type="javascript" ev:event="xforms-value-changed">
  1379. <![CDATA[
  1380. var modelView = true;
  1381. var specView = true;
  1382. if(model.getValue("/root/init/viewOption") == "spec") {
  1383. specView = false;
  1384. } else {
  1385. modelView = false;
  1386. }
  1387. grd_rfehemhtlist.colHidden(grd_rfehemhtlist.colRef("goodspec")) = specView;
  1388. grd_rfehemhtlist.colHidden(grd_rfehemhtlist.colRef("goodmodel")) = modelView;
  1389. grd_rfcmfacdlist.colHidden(grd_rfcmfacdlist.colRef("goodspec")) = specView;
  1390. grd_rfcmfacdlist.colHidden(grd_rfcmfacdlist.colRef("goodmodel")) = modelView;
  1391. grd_rfehemhtlist.refresh();
  1392. grd_rfcmfacdlist.refresh();
  1393. ]]>
  1394. </script>
  1395. </select1>
  1396. <button id="btn_grdsize" class="btn2_letter4" navindex="33" style="left:459px; top:78px; width:64px; height:19px; ">
  1397. <caption>확대보기</caption>
  1398. <script type="javascript" ev:event="DOMActivate">
  1399. <![CDATA[
  1400. if( btn_grdsize.attribute("text") == "펼치기"){
  1401. btn_grdsize.attribute("text") = "줄이기";
  1402. grd_rfehemhtlist.attribute("width") =1190 ;
  1403. // grd_rfehemhtlist.attribute("left") =770;
  1404. }
  1405. else {
  1406. btn_grdsize.attribute("text") ="펼치기";
  1407. grd_rfehemhtlist.attribute("width") =692 ;
  1408. // grd_rfehemhtlist.attribute("left") =910;
  1409. }
  1410. ]]>
  1411. </script>
  1412. </button>
  1413. </group>
  1414. <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
  1415. <button id="btn_prnt" class="btn6_letter2" navindex="55" visibility="visible" style="left:0px; top:3px; width:56px; height:22px; ">
  1416. <caption>출력</caption>
  1417. <script type="javascript" ev:event="DOMActivate">
  1418. <![CDATA[
  1419. model.copyNode("/root/main/printdata/data", grd_rfehemhtlist.attribute("nodeset") + "[" + grd_rfehemhtlist.row + "]");
  1420. model.removenode("/root/main/printdata/data/instnm");
  1421. model.makeNode("/root/main/printdata/data/instnm");
  1422. model.setValue("/root/main/printdata/data/instnm", cmb_instcd.label);
  1423. exeReportPreview("RPRFE00401", "XMLSTR");
  1424. ]]>
  1425. </script>
  1426. </button>
  1427. <button id="btn_init" class="btn4_letter3" navindex="58" style="left:1127px; top:3px; width:68px; height:22px; ">
  1428. <caption>초기화</caption>
  1429. <script type="javascript" ev:event="DOMActivate">
  1430. <![CDATA[
  1431. fInitialize();
  1432. ]]>
  1433. </script>
  1434. </button>
  1435. <line id="line9" class="line_6" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  1436. <button id="btn_save" class="btn4_letter2" navindex="57" style="left:1069px; top:3px; width:56px; height:22px; ">
  1437. <caption>저장</caption>
  1438. <script type="javascript" ev:event="DOMActivate">
  1439. <![CDATA[
  1440. if(messageBox("", "Q002") == "6")
  1441. {
  1442. if(fupdateCheckSave())btn_search.dispatch("DOMActivate");
  1443. }
  1444. ]]>
  1445. </script>
  1446. </button>
  1447. <button id="button2" class="btn4_letter8" navindex="56" style="left:939px; top:3px; width:128px; height:22px; ">
  1448. <caption>예방점검상세조회</caption>
  1449. <script type="javascript" ev:event="DOMActivate">
  1450. <![CDATA[
  1451. setParameter("paraminstcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("instcd")));
  1452. setParameter("paramreqdeptcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdeptcd")));
  1453. setParameter("paramreqdeptnm" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("depthngnm")));
  1454. setParameter("paramreqdd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("reqdd")));
  1455. setParameter("paramfixasetcd" , grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row , grd_rfehemhtlist.colRef("fixasetcd")));
  1456. modal("SMRFE02100");
  1457. ]]>
  1458. </script>
  1459. </button>
  1460. <button id="button3" class="btn4_letter8" navindex="56" style="left:809px; top:3px; width:128px; height:22px; ">
  1461. <caption>점검리스트 출력</caption>
  1462. <script type="javascript" ev:event="DOMActivate">
  1463. <![CDATA[
  1464. modal("SPRFE01100");
  1465. ]]>
  1466. </script>
  1467. </button>
  1468. </group>
  1469. <button id="btn_barcodeprt" class="btn2_letter5" navindex="16" style="left:382px; top:115px; width:75px; height:19px; ">
  1470. <caption>바코드출력</caption>
  1471. <script type="javascript" ev:event="DOMActivate">
  1472. <![CDATA[
  1473. // var goodnm, mngtdeptnm, installplcenm;
  1474. var node = instance1.selectNodes("/root/main/grid/rfehemhtlist[choice='Y']");
  1475. if (node == null || node.length < 1){
  1476. messageBox("선택 된 자산이","I004");
  1477. return false;
  1478. }
  1479. model.removeNodeset(grd_temp.nodeset);
  1480. grd_temp.refresh();
  1481. for (var i=0; i<node.length; i++) {
  1482. var selectItem = node.item(i);
  1483. grd_temp.addRow(false);
  1484. grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("fixasetcd" )) = selectItem.selectSingleNode("fixasetcd").value;
  1485. grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("fixasetnm" )) = selectItem.selectSingleNode("fixasetnm").value;
  1486. grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("execdeptnm" )) = selectItem.selectSingleNode("execdeptnm").value
  1487. grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("reqdd" )) = selectItem.selectSingleNode("reqdd").value;
  1488. grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("reqno" )) = selectItem.selectSingleNode("reqno").value;
  1489. grd_temp.valueMatrix(grd_temp.row, grd_temp.colRef("reqpsnnm" )) = selectItem.selectSingleNode("reqpsnnm").value;
  1490. }
  1491. grd_temp.refresh();
  1492. exeReportPreview("RPRFE01103","XMLSTR");
  1493. ]]>
  1494. </script>
  1495. </button>
  1496. </xhtml:body>
  1497. </xhtml:html>