SMRFE00400_수리신청등록.xrw 67 KB

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