SMRFE01000_수리상세등록(통합).xrw 137 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619
  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: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. <grid>
  11. <rfehemhtlist/>
  12. <rfemdamklist/>
  13. <rfehdabplist/>
  14. </grid>
  15. <component>
  16. <rfehemhtlist/>
  17. <rfemdamklist/>
  18. </component>
  19. <tempgrid>
  20. <rfehemhtlist/>
  21. <rfemdamklist/>
  22. </tempgrid>
  23. <defltinfo>
  24. <deliveamt/>
  25. </defltinfo>
  26. <prntinfo>
  27. <rfehemhtlist/>
  28. <rfemdamklist/>
  29. </prntinfo>
  30. </main>
  31. <send>
  32. <grid>
  33. <rfehemhtlist/>
  34. <rfemdamklist/>
  35. <rfehdabplist/>
  36. </grid>
  37. <sendlist>
  38. <instcd/>
  39. <fixtrseqmtflag/>
  40. <fixasetcd/>
  41. <goodflaghngnm/>
  42. <goodspec/>
  43. <mngtno/>
  44. <goodmodel/>
  45. <installplcecd/>
  46. <installplcenm/>
  47. <prodcmpynm/>
  48. <tempmngtdeptnm/>
  49. <possndd/>
  50. <possnamt/>
  51. <deptaprvyn/>
  52. <suplplcenm/>
  53. <cntctel/>
  54. <chrgpsnid/>
  55. <acptpsnid/>
  56. <welfcd/>
  57. <goodqty/>
  58. <lrgnm/>
  59. <mngtdeptnm/>
  60. <flwgrnttermfr/>
  61. <flwgrnttermto/>
  62. </sendlist>
  63. <sendprint>
  64. <instcd/>
  65. <chrgpsnid/>
  66. <reqdd/>
  67. <reqdd2/>
  68. <reqno/>
  69. <reqno2/>
  70. <reqdeptcd/>
  71. <fixtrseqmtflag/>
  72. </sendprint>
  73. <search>
  74. <instcd/>
  75. <fixtrseqmtflag/>
  76. <reqdd/>
  77. <reqno/>
  78. </search>
  79. <fileupcolumn>
  80. <refinstcd/>
  81. <refdeptcd/>
  82. <refpsnid/>
  83. <fixasetcd/>
  84. <fileseqno/>
  85. <attfilenm/>
  86. <attfilepathnm/>
  87. <fileupload>
  88. <file>
  89. <filename/>
  90. </file>
  91. </fileupload>
  92. <reqdd/>
  93. <reqno/>
  94. </fileupcolumn>
  95. </send>
  96. <init>
  97. <useyn>
  98. <label>내부</label>
  99. <value>1</value>
  100. <label>외부</label>
  101. <value>2</value>
  102. </useyn>
  103. <sanctyn>
  104. <label>결재</label>
  105. <value>Y</value>
  106. <label>반송</label>
  107. <value>R</value>
  108. </sanctyn>
  109. <grdsanctyn>
  110. <label>결재</label>
  111. <value>Y</value>
  112. <label>반송</label>
  113. <value>R</value>
  114. </grdsanctyn>
  115. <rowtemp/>
  116. <rowtemp2/>
  117. <insStatus/>
  118. <sancttrsmyn/>
  119. <reqflag/>
  120. </init>
  121. <temp>
  122. </temp>
  123. <print/>
  124. <copynode/>
  125. <prtinfo/>
  126. </root>
  127. </instance>
  128. <script type="javascript" ev:event="xforms-ready">
  129. <![CDATA[
  130. fInitialize();
  131. // 그리드 연결
  132. misfMsterDetailSet(grd_rfehemhtlist, null, "TRRFE00601", "Y"); // 의뢰일별 목록
  133. misfMsterDetailSet(grd_rfemdamklist, null, "TRRFE00602", "Y"); // 수리일자별 목록
  134. misfMsterDetailSet(grd_rfehdabplist, null, "TRRFE00603", "Y"); // 부품목록
  135. //alert("초기화 완료");
  136. // Popup 으로 불려지면 기관코드, 자산코드 값 설정.
  137. if(model.getValue("/root/temp/fixasetcd") != "")
  138. {
  139. ipt_fixasetcd.value = model.getValue("/root/temp/fixasetcd");
  140. cmb_instcd.value = model.getValue("/root/temp/instcd");
  141. ipt_fixasetcd.disabled = true;
  142. cmb_instcd.disabled = true;
  143. btn_fixasetcd.disabled = true;
  144. ipt_fixasetcd.dispatch("xforms-value-changed");
  145. fSetEstamt();
  146. }
  147. ]]>
  148. </script>
  149. <submission id="TRRFE00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/grid/rfehemhtlist"/>
  150. <submission id="TRRFE00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfehemhtlist" resultref="/root/main/grid/rfemdamklist"/>
  151. <submission id="TRRFE00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfemdamklist" resultref="/root/main/grid/rfehdabplist"/>
  152. <submission id="TRRFE00606" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/defltinfo"/>
  153. <submission id="TXRFE00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  154. <submission id="TRRFE00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendprint" resultref="/root/print/PrintRfehemht"/>
  155. <submission id="TRRFE00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/print/PrintRfehemht"/>
  156. <submission id="TRRFE00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendprint" resultref="/root/print/rpirprntinfo"/>
  157. <submission id="TXRFC01101" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/fileupcolumn" resultref="/root/temp"/>
  158. <submission id="TXRFC01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/fileinfo" resultref="/root/temp"/>
  159. </model>
  160. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  161. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  162. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  163. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  164. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  165. <script type="javascript" src="../../../com/hismainweb/js/DocTitle.js"/>
  166. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  167. <script type="javascript">
  168. <![CDATA[
  169. function fInitialize()
  170. {
  171. model.resetInstanceNode("/root/main/component");
  172. // 초기화
  173. misfGridInit(grd_rfehemhtlist);
  174. misfGridInit(grd_rfemdamklist);
  175. misfGridInit(grd_rfehdabplist);
  176. model.removenode("/root/main/tempgrid");
  177. model.removenode("/root/main/gird");
  178. model.removenode("/root/main/component");
  179. model.makeNode("/root/main/tempgrid");
  180. model.makeNode("/root/main/gird");
  181. model.makeNode("/root/main/component");
  182. model.makeNode("/root/main/component/rfehemhtlist");
  183. model.makeNode("/root/main/component/rfemdamklist");
  184. // 사용자에 주어진 기관코드 설정.
  185. //rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  186. // 사용자 권한에 따른 기관코드 Setting. [(6)수리관리, (B)이력등록]
  187. //rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"6","B");
  188. // 사용자 청구구분 Setting
  189. //rszfUserReqFlagList(cmb_reqflag,getUserInfo("dutplceinstcd"),getUserInfo("userid"),"6","B" );
  190. // 공통코드 설정
  191. misfComboComCdListMulti("C0048,R0285,R0285,R0286,R0055,R0287,R0055,R0286,R0288,R0289,R0290,R0039,030M0012",
  192. "cmb_instcd,grd_rfehemhtlist.rpirflag2,cmb_rpirflag2,cmb_rpirflag1,cmb_workstat,grd_rfehemhtlist.acptflag,grd_rfehemhtlist.workstat,grd_rfehemhtlist.rpirflag1,grd_rfehdabplist.paytype,grd_rfehdabplist.kind,grd_rfehdabplist.costflag,grd_rfehdabplist.acsrsunit,cmb_docustat");
  193. addComboItem("cmb_rpirflag2", " ", "", "above");
  194. // 초기 설정값
  195. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd")); // 기관코드
  196. model.setValue(ipt_fixtrseqmtflag.attribute("ref"), cmb_reqflag.value); // 비품_물품코드 설정
  197. model.setValue(ipt_rowtemp.attribute("ref") , 0);
  198. model.setValue(ipt_rowtemp2.attribute("ref"), 0);
  199. fRrfehemhtlistTF(true);
  200. fRfemdamkComponentsTF(true);
  201. // 의뢰일별 목록, 수리일자별목록 추가,삭제,수정 모드 설정
  202. //btn_save.disabled = true;
  203. //btn_del.disabled = true;
  204. //btn_send.disabled = true;
  205. //btn_initrfemdamklist.disabled = true;
  206. // 부품목록 == 행 추가, 삭제 모드 설정
  207. btn_insRfehdabp.disabled = true;
  208. btn_delRfehdabp.disabled = true;
  209. model.setFocus("ipt_fixasetcd");
  210. ipt_insStatus.value = 0;
  211. if(!checkAuth("X"))
  212. {
  213. ipt_fixasetcd.disabled = true;
  214. btn_fixasetcd.disabled = true;
  215. ipt_goodflaghngnm.disabled = true;
  216. }
  217. btn_print2.visible = true;
  218. //fAcptAuth();
  219. fResetState();
  220. model.refresh();
  221. }
  222. function fSettingGoodList(pnode, nodename){
  223. var codynode = instance1.selectNodes(pnode + "/*");
  224. var addRow = grd_rfehdabplist.rows - grd_rfehdabplist.fixedRows;
  225. if(model.getValue(grd_rfehdabplist.nodeset + "/rfehdabplist[" + addRow + "]/acsrscd").length > 0)addRow = addRow + 1;
  226. for (var j = 1; j <= codynode.length ; j++) {
  227. for (var i = 1; i <= addRow; i++){
  228. if (model.getValue(grd_rfehdabplist.nodeset + "[" + i + "]/acsrscd") == model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd")){
  229. messageBox(i+"번째에 동일물품이 존재합니다. ","I");
  230. return;
  231. }
  232. }
  233. if(addRow > grd_rfehdabplist.rows - grd_rfehdabplist.fixedRows)
  234. {
  235. btn_insRfehdabp.dispatch("DOMActivate");
  236. addRow = grd_rfehdabplist.rows - grd_rfehdabplist.fixedRows;
  237. }
  238. model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/goodflag" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodflag"));
  239. model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrscd" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodcd"));
  240. model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrsnm" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodnm"));
  241. model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrsunit" , model.getValue(pnode +"/" + nodename + "[" + j + "]/deliveunit"));
  242. model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrsqty" , model.getValue(pnode +"/" + nodename + "[" + j + "]/userqty"));
  243. model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrsspec" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodspec"));
  244. model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/acsrsamt" , model.getValue(pnode +"/" + nodename + "[" + j + "]/goodunitcost"));
  245. model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/paytype" , "2");
  246. model.setValue(grd_rfehdabplist.nodeset + "[" + addRow + "]/kind" , "4");
  247. addRow = addRow + 1;
  248. }
  249. grd_rfehdabplist.refresh();
  250. }
  251. function fRfemdamkComponentsTF( fBool, loadType )
  252. {
  253. if(grd_rfemdamklist.rows > grd_rfemdamklist.fixedRows)
  254. {
  255. if( loadType == 'Y')
  256. {
  257. ipt_rpirdd.disabled= true;
  258. }else{
  259. ipt_rpirdd.disabled= fBool;
  260. }
  261. ipt_rpirtm.disabled = fBool;
  262. ipt_mainrpirpsn.disabled = fBool;
  263. btn_mainrpirpsn.disabled = fBool;
  264. ipt_mainrpirpsnnm.disabled= fBool;
  265. ipt_supprpirpsn.disabled = fBool;
  266. btn_supprpirpsn.disabled= fBool;
  267. ipt_supprpirpsnnm.disabled= fBool;
  268. txt_rpirspec.disabled = fBool;
  269. }else{
  270. fBool = true;
  271. if( loadType == 'Y')
  272. {
  273. ipt_rpirdd.disabled= true;
  274. }else{
  275. ipt_rpirdd.disabled= fBool;
  276. }
  277. ipt_rpirtm.disabled = fBool;
  278. ipt_mainrpirpsn.disabled = fBool;
  279. btn_mainrpirpsn.disabled = fBool;
  280. ipt_mainrpirpsnnm.disabled= fBool;
  281. ipt_supprpirpsn.disabled = fBool;
  282. btn_supprpirpsn.disabled= fBool;
  283. ipt_supprpirpsnnm.disabled= fBool;
  284. txt_rpirspec.disabled = fBool;
  285. }
  286. }
  287. function fRrfehemhtlistTF(fBool, fCheck)
  288. {
  289. ipt_estimateamt.disabled = true;
  290. ipt_nonworkdayno.disabled = fBool;
  291. ipt_custcd.disabled = fBool;
  292. btn_custcd.disabled = fBool;
  293. ipt_chrgtel.disabled = fBool;
  294. }
  295. function fCheckTime(controlName)
  296. {
  297. var sTime = controlName.value;
  298. if(sTime.length != 4)
  299. {
  300. messageBox("네자리를 ","C001");
  301. controlName.value = "";
  302. return;
  303. }
  304. var sFrontTime = sTime.substr(0, 2);
  305. var sBackTime = sTime.substr(2, 2);
  306. if(parseFloat(sFrontTime) > 24)
  307. {
  308. messageBox("24시를 ","E001");
  309. controlName.value = "";
  310. return;
  311. }
  312. if(parseFloat(sBackTime) > 59)
  313. {
  314. messageBox("59분을 ","E001");
  315. controlName.value = "";
  316. return;
  317. }
  318. }
  319. function fSetEstamt() /* 부품금액을 총합하여 견적금액에 표시 */
  320. {
  321. // var rfehdabptotal = 0;
  322. // var estimateamt = 0;
  323. // var inestimateamt = 0;
  324. // var reductionamt =0;
  325. // var outestimateamt = 0 ;
  326. // var paytype;
  327. // var kind;
  328. //
  329. // model.setValue("/root/main/component/rfehemhtlist/rfehdabptotal","0");
  330. // model.setValue("/root/main/component/rfehemhtlist/estimateamt","0");
  331. // model.setValue("/root/main/component/rfehemhtlist/outestimateamt","0");
  332. //
  333. // for (var i = grd_rfehdabplist.fixedRows; i < grd_rfehdabplist.rows; i++)
  334. // {
  335. // // 토탈견적금액은 기존처럼 하지만 외주견적/내부견적/전도금은 kind를 가지고 결정한다
  336. // kind = model.getValue("/root/main/grid/rfehdabplist["+ i +"]/kind");
  337. // if (kind == "2"){ //순수전도금
  338. // //순수 전도금 구하기
  339. // rfehdabptotal += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //전도금은 자체에 해당하는 금액을 모두 더한것
  340. // model.setValue("/root/main/component/rfehemhtlist/rfehdabptotal",rfehdabptotal); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
  341. //
  342. // }else if(kind == "4"){ //견적금액=============> *****가견적***** :=> 외죽견적 //외주견적-> 외주견적은 이름을 가견적으로 바꾸고 이것이 화면의 견적금액이 된다. =>최종 다시 외주금액으로 바꿈
  343. // //estimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //견적금액은 견적에 해당하는 금액을 모두 더한것
  344. // //model.setValue("/root/main/component/rfehemhtlist/estimateamt",estimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
  345. // outestimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //
  346. // model.setValue("/root/main/component/rfehemhtlist/outestimateamt",outestimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
  347. //
  348. // }else if(kind == "7"){ //*****외주견적=> 가견적***** -> 새로추가할 내부견적은 외주견적으로 바꾼다.=============> 외주견적 =>최종 가견적으로 바꿈
  349. // //외주견적금액 구하기
  350. // //outestimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //
  351. // //model.setValue("/root/main/component/rfehemhtlist/outestimateamt",outestimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
  352. // estimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //견적금액은 견적에 해당하는 금액을 모두 더한것
  353. // model.setValue("/root/main/component/rfehemhtlist/estimateamt",estimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
  354. //
  355. // }else if(kind == "7"){ //내부견적 -> 새로추가할 내부견적은 외주견적으로 바꾼다.=============> 외주견적
  356. //내부견적금액 구하기
  357. // inestimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //
  358. //
  359. // }
  360. // }
  361. // // 절감액 = 가견적-( 외주견적 + 전도금 )
  362. // //가견적이 외주견적으로 옮기고 외주견적이 가견적의 컬럼으로 바뀌었음 가견적과 외주견적의 컬럼의 성격을 교환함
  363. // //reductionamt = estimateamt - ( outestimateamt + rfehdabptotal )
  364. // //reductionamt = outestimateamt - ( estimateamt + rfehdabptotal )
  365. // //if(reductionamt < 0 ) reductionamt =0 ;
  366. //
  367. // //model.setValue("/root/main/component/rfehemhtlist/reductionamt", reductionamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다.
  368. // // 납품금액 부품가로 계산하여 입력 중지. 직접입력
  369. // // model.setValue("/root/main/component/rfehemhtlist/rpiramt" , outestimateamt - reductionamt);
  370. //
  371. // ipt_rfehdabptotal.refresh();
  372. // ipt_estimateamt.refresh();
  373. // ipt_outestimateamt.refresh();
  374. // ipt_rpiramt.refresh();
  375. }
  376. //2009-10-13추가
  377. function fSetEstamt2() /* 부품금액을 총합하여 견적금액에 표시 ---> 행추가시 fSetEstamt와 같은기능 */
  378. {
  379. // var rfehdabptotal = 0;
  380. // var estimateamt = 0;
  381. // var inestimateamt = 0;
  382. // var reductionamt =0;
  383. // var outestimateamt = 0 ;
  384. // var paytype;
  385. // var kind;
  386. //
  387. // model.setValue("/root/main/component/rfehemhtlist/rfehdabptotal",rfehdabptotal);
  388. // model.setValue("/root/main/component/rfehemhtlist/estimateamt",estimateamt);
  389. // for (var i = grd_rfehdabplist.fixedRows; i < grd_rfehdabplist.rows; i++)
  390. // {
  391. // // 토탈견적금액은 기존처럼 하지만 외주견적/내부견적/전도금은 kind를 가지고 결정한다
  392. // kind = model.getValue("/root/main/grid/rfehdabplist["+ i +"]/kind");
  393. // if (kind == "2"){ //순수전도금
  394. // //순수 전도금 구하기
  395. // rfehdabptotal += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //전도금은 자체에 해당하는 금액을 모두 더한것
  396. // model.setValue("/root/main/component/rfehemhtlist/rfehdabptotal",rfehdabptotal); //그 금액을 저장할 수리상세 등록쪽에 뿌린다.
  397. //
  398. // }else if(kind == "4"){ //견적금액=============> *****가견적***** : //외주견적-> 외주견적은 이름을 가견적으로 바꾸고 이것이 화면의 견적금액이 된다.
  399. // //estimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //견적금액은 견적에 해당하는 금액을 모두 더한것
  400. // //model.setValue("/root/main/component/rfehemhtlist/estimateamt",estimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다.
  401. // outestimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //
  402. // model.setValue("/root/main/component/rfehemhtlist/outestimateamt",outestimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
  403. //
  404. // }else if(kind == "7"){ //*****외주견적***** -> 새로추가할 내부견적은 외주견적으로 바꾼다.=============> 외주견적
  405. // //외주견적금액 구하기
  406. // //outestimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //
  407. // //model.setValue("/root/main/component/rfehemhtlist/outestimateamt",outestimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다
  408. // estimateamt += Number(model.getValue("/root/main/grid/rfehdabplist["+ i +"]/acsrsmoney")); //견적금액은 견적에 해당하는 금액을 모두 더한것
  409. // model.setValue("/root/main/component/rfehemhtlist/estimateamt",estimateamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다.
  410. // }
  411. // }
  412. // // 절감액 = 가견적-( 외부견적+전도금)
  413. // //reductionamt = estimateamt - ( inestimateamt + rfehdabptotal )
  414. // //reductionamt = estimateamt - ( outestimateamt + rfehdabptotal )
  415. // reductionamt = outestimateamt - ( estimateamt + rfehdabptotal )
  416. // if(reductionamt < 0 ) reductionamt =0 ;
  417. //
  418. // model.setValue("/root/main/component/rfehemhtlist/reductionamt",reductionamt); //그 금액을 저장할 수리상세 등록쪽에 뿌린다.
  419. //
  420. // ipt_rfehdabptotal.refresh();
  421. // ipt_estimateamt.refresh();
  422. // ipt_outestimateamt.refresh();
  423. // ipt_rpiramt.refresh();
  424. }
  425. // 수리상태, 서류상태 재설정
  426. function fResetState()
  427. {
  428. var workstat = "01";
  429. var docustat = "01";
  430. var chrgpsnid = ipt_chrgpsnid.value;
  431. if(chrgpsnid.length != 0){ // 검토자가 있을 경우
  432. workstat = "02";
  433. }
  434. if(cmb_rpirflag2.value.length != 0){ // 수리형태(조치사항) 이 있을 경우
  435. workstat = "03";
  436. }
  437. if(chk_rpirendyn.value == "Y"){ // 수리완료가 체크되어 있을 경우
  438. workstat = "04";
  439. }
  440. switch(cmb_rpirflag2.value){
  441. case "1": // 무비용
  442. case "2": // 전도금
  443. case "5": // 폐기
  444. case "7": // 검토의견
  445. if(fSanctState()){
  446. docustat = "03";
  447. if(workstat == "04") workstat = "05";
  448. }
  449. break;
  450. case "6": // 용역
  451. if(fSanctState()){
  452. docustat = "03";
  453. if(workstat == "04")workstat = "05";
  454. }
  455. break;
  456. case "3": // 부품
  457. case "4": // 외주
  458. if(fSanctState()){
  459. if(workstat == "04" && ipt_chkpsn.value.length != 0){
  460. fGetDeliveAmt();
  461. workstat = "05";
  462. docustat = "03";
  463. }else{
  464. docustat = "02";
  465. }
  466. }
  467. break;
  468. default:
  469. }
  470. // var instcd = getUserInfo("dutplceinstcd");
  471. // if(instcd == "033"){
  472. // if(ipt_chrgpsnid.value.length != 0 && ipt_mngersanctid.value.length != 0){
  473. // workstat = "05";
  474. // docustat = "03";
  475. // }else if(ipt_chrgpsnid.value.length != 0 && ipt_mngersanctid.value.length == 0){
  476. // workstat = "02";
  477. // docustat = "01";
  478. // }else{
  479. // workstat = "01";
  480. // docustat = "01";
  481. // }
  482. // }
  483. cmb_workstat.value = workstat;
  484. cmb_docustat.value = docustat;
  485. cmb_workstat.refresh();
  486. cmb_docustat.refresh();
  487. fResetDisabled();
  488. }
  489. // 활성 비활성 처리
  490. function fResetDisabled()
  491. {
  492. var workstat = cmb_workstat.value;
  493. var docustat = cmb_docustat.value;
  494. if(ipt_chrgpsnid.value.length != 0){
  495. chk_rpirendyn.disabled = false;
  496. ipt_rpirenddd.disabled = false;
  497. }else{
  498. chk_rpirendyn.value = "N";
  499. chk_rpirendyn.disabled = true;
  500. ipt_rpirenddd.disabled = true;
  501. // model.setValue("/root/main/component/rfehemhtlist/rpirenddd","");
  502. }
  503. if(workstat == "01" || workstat == "02" || workstat == "03"){
  504. fDisabledControl(false,"chr");
  505. cmb_rpirflag1.disabled = false;
  506. cmb_rpirflag2.disabled = false;
  507. grd_rfehdabplist.colDisabled(grd_rfehdabplist.colRef("acsrsqty")) = false;
  508. }else{
  509. fDisabledControl(true,"chr");
  510. cmb_rpirflag1.disabled = true;
  511. cmb_rpirflag2.disabled = true;
  512. grd_rfehdabplist.colDisabled(grd_rfehdabplist.colRef("acsrsqty")) = true;
  513. }
  514. if(cmb_rpirflag2.value.length != 0){ // 수리형태(조치사항) 이 있을 경우
  515. fDisabledControl(false,"sanct");
  516. }else{
  517. fDisabledControl(true,"sanct");
  518. }
  519. switch(cmb_rpirflag2.value){
  520. case "1":
  521. case "2":
  522. case "5":
  523. case "6":
  524. fDisabledControl(true,"chk");
  525. break;
  526. case "3":
  527. case "4":
  528. if(fSanctState()){
  529. if(workstat == "04" || workstat == "05"){
  530. fDisabledControl(false,"chk");
  531. }else{
  532. fDisabledControl(true,"chk");
  533. }
  534. }
  535. break;
  536. default:
  537. fDisabledControl(true,"chk");
  538. }
  539. }
  540. // 결재 상태
  541. function fSanctState()
  542. {
  543. if((cmb_rpirflag2.value == "1" || cmb_rpirflag2.value == "6") && ipt_deprtmangrsanctid.value.length != 0) return true; // 무비용,용역일 경우 실장만 결재
  544. else if(ipt_deprtmangrsanctid.value.length != 0 && ipt_mngersanctid.value.length != 0) return true; // 다른상태일경우 실장&과장 결재
  545. return false;
  546. }
  547. function fDisabledControl(state,control)
  548. {
  549. switch(control){
  550. case "sanct":
  551. if (getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS" || getUserInfo("userid") == "93717"|| getUserInfo("userid") == "KNUH99207" ){ // 과장
  552. btn_mngersanctid.disabled = state;
  553. ipt_mngersanctid.disabled = state;
  554. // ipt_mngersanctnm.disabled = state;
  555. btn_deprtmangrsanctid.disabled = true;
  556. ipt_deprtmangrsanctid.disabled = true;
  557. // ipt_deprtmangrsanctnm.disabled = true;
  558. }else if (getUserInfo("userid") == "93361" || getUserInfo("userid") == "93507"|| getUserInfo("userid") == "MIS" ){ // 실장
  559. btn_mngersanctid.disabled = true;
  560. ipt_mngersanctid.disabled = true;
  561. // ipt_mngersanctnm.disabled = true;
  562. btn_deprtmangrsanctid.disabled = state;
  563. ipt_deprtmangrsanctid.disabled = state;
  564. // ipt_deprtmangrsanctnm.disabled = state;
  565. }else{ // 그외...
  566. btn_mngersanctid.disabled = true;
  567. ipt_mngersanctid.disabled = true;
  568. // ipt_mngersanctnm.disabled = true;
  569. btn_deprtmangrsanctid.disabled = true;
  570. ipt_deprtmangrsanctid.disabled = true;
  571. // ipt_deprtmangrsanctnm.disabled = true;
  572. }
  573. break;
  574. case "chr":
  575. ipt_chrgpsnid.disabled = state;
  576. btn_chrgpsnid.disabled = state;
  577. ipt_chrgtel.disabled = state;
  578. // 부품목록 행 추가 삭제 잠금
  579. btn_insRfehdabp.disabled = state;
  580. btn_delRfehdabp.disabled = state;
  581. // 컨트롤 잠금
  582. fRrfehemhtlistTF(state);
  583. fRfemdamkComponentsTF(state,"Y");
  584. // 추가 삭제 잠금
  585. btn_initrfemdamklist.disabled = state;
  586. btn_del.disabled = state;
  587. ipt_acptdd.disabled = state; //납품일자
  588. // ipt_rpiramt.disabled = state; //납품금액
  589. break;
  590. case "chk":
  591. default :
  592. ipt_chkpsn.disabled = state;
  593. btn_chkpsn.disabled = state;
  594. ipt_chkdd.disabled = state;
  595. }
  596. }
  597. function fGetDeliveAmt()
  598. {
  599. /* 납품금액 계약에서 가져오는 프로세스 */
  600. model.setValue("/root/send/search/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  601. model.setValue("/root/send/search/fixtrseqmtflag" , model.getValue(ipt_fixtrseqmtflag.attribute("ref")));
  602. model.setValue("/root/send/search/reqdd" , model.getValue(ipt_reqdd.attribute("ref")));
  603. model.setValue("/root/send/search/reqno" , model.getValue(ipt_reqno.attribute("ref")));
  604. if (submit("TRRFE00606")){
  605. if(model.getValue("/root/main/defltinfo/deliveamt") != ""){
  606. model.setValue(ipt_rpiramt.attribute("ref") , model.getValue("/root/main/defltinfo/deliveamt"));
  607. }
  608. }
  609. }
  610. function fAcptAuth()
  611. {
  612. if ( getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS"){ // 과장
  613. btn_mngersanctid.disabled = false;
  614. ipt_mngersanctid.disabled = false;
  615. btn_deprtmangrsanctid.disabled = true;
  616. ipt_deprtmangrsanctid.disabled = true;
  617. }else if (getUserInfo("userid") == "93361" || getUserInfo("userid") == "93507"|| getUserInfo("userid") == "MIS"){ // 실장
  618. btn_mngersanctid.disabled = true;
  619. ipt_mngersanctid.disabled = true;
  620. btn_deprtmangrsanctid.disabled = false;
  621. ipt_deprtmangrsanctid.disabled = false;
  622. }else{ // 그외...
  623. btn_mngersanctid.disabled = true;
  624. ipt_mngersanctid.disabled = true;
  625. btn_deprtmangrsanctid.disabled = true;
  626. ipt_deprtmangrsanctid.disabled = true;
  627. }
  628. }
  629. //전자결재 호출
  630. function fElctSanct()
  631. {
  632. if(fUpdateData() != "N") {
  633. alert("변경 된 내역이 있습니다.");
  634. return;
  635. }
  636. if(model.getValue("/root/main/component/rfehemhtlist/chrgpsnid") == "") {
  637. alert("미접수 상태입니다.");
  638. return;
  639. }
  640. var pInstcd = model.getValue("/root/send/sendlist/instcd");
  641. var pFixtrseqmtflag = model.getValue("/root/main/component/rfehemhtlist/fixtrseqmtflag");
  642. var pReqdd = model.getValue("/root/main/component/rfehemhtlist/reqdd");
  643. var pReqno = model.getValue("/root/main/component/rfehemhtlist/reqno");
  644. var pmaprefcol = "knuhdomain,formType,instId";
  645. var pmaprefvalue = "KnuhMisAssetsRepare,01," + pInstcd + "-" + pFixtrseqmtflag + "-" + pReqdd + "-" + pReqno;
  646. misfMakeElctSanct("assetsRepare", pmaprefcol, pmaprefvalue);
  647. }
  648. ]]>
  649. </script>
  650. </xhtml:head>
  651. <xhtml:body>
  652. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  653. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">수리상세등록</caption>
  654. </group>
  655. <group id="group1" scroll="auto" style="left:0px; top:38; width:1195; height:744; ">
  656. <datagrid id="grd_rfehemhtlist" nodeset="/root/main/grid/rfehemhtlist" allowselection="false" caption="의뢰일자^의뢰일자^관리부서^의뢰자 연락처^담당자^납품일자^완료일자^상태^수리형태^접수구분^수리상태^고장유형^납품금액^결재상태^견적금액" colsep="^" colwidth="70, 30, 90, 84, 60, 70, 70, 60, 60, 65, 65, 70, 80, 93, 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, 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" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" selectionmode="byrow" tooltip="true" navindex="4" style="left:0px; top:157px; width:935px; height:93px; ">
  657. <col disabled="true" ref="reqdd" format="yyyy-mm-dd" _key="true"/>
  658. <col disabled="true" ref="reqno" _key="true"/>
  659. <col disabled="true" ref="depthngnm"/>
  660. <col disabled="true" ref="reqtel"/>
  661. <col disabled="true" ref="chrgpsnnm" style="text-align:center; "/>
  662. <col disabled="true" ref="acptdd" format="yyyy-mm-dd"/>
  663. <col disabled="true" ref="rpirenddd" format="yyyy-mm-dd"/>
  664. <col disabled="true" ref="lastrpirstat" visibility="hidden"/>
  665. <col disabled="true" ref="rpirflag2" type="combo" style="text-align:center; ">
  666. <choices>
  667. <itemset>
  668. <label/>
  669. <value/>
  670. </itemset>
  671. </choices>
  672. </col>
  673. <col disabled="true" ref="acptflag" type="combo" style="text-align:center; ">
  674. <choices>
  675. <itemset>
  676. <label/>
  677. <value/>
  678. </itemset>
  679. </choices>
  680. </col>
  681. <col disabled="true" ref="workstat" type="combo" style="text-align:center; ">
  682. <choices>
  683. <itemset>
  684. <label/>
  685. <value/>
  686. </itemset>
  687. </choices>
  688. </col>
  689. <col disabled="true" ref="rpirflag1" type="combo" style="text-align:center; ">
  690. <choices>
  691. <itemset>
  692. <label/>
  693. <value/>
  694. </itemset>
  695. </choices>
  696. </col>
  697. <col disabled="true" ref="rpiramt" format="#,###" style="text-align:right; "/>
  698. <col ref="sanctyn" type="combo" style="text-align:center; ">
  699. <choices>
  700. <itemset nodeset="/root/init/grdsanctyn">
  701. <label ref="label"/>
  702. <value ref="value"/>
  703. </itemset>
  704. </choices>
  705. </col>
  706. <col ref="reqdeptcd" visibility="hidden"/>
  707. <col ref="chrgpsnid" visibility="hidden"/>
  708. <col ref="genrdd" visibility="hidden"/>
  709. <col ref="estimateamt" visibility="hidden"/>
  710. <col ref="sanctid" visibility="hidden"/>
  711. <col ref="sanctnm" visibility="hidden"/>
  712. <col ref="reductionamt" visibility="hidden"/>
  713. <col ref="useyn" visibility="hidden"/>
  714. <col ref="nonworkdayno" visibility="hidden"/>
  715. <col ref="custcd" visibility="hidden"/>
  716. <col ref="custnm" visibility="hidden"/>
  717. <col ref="hdrncspec" visibility="hidden"/>
  718. <col ref="chrgpsncmt" visibility="hidden"/>
  719. <col ref="lastrpirrslt" visibility="hidden"/>
  720. <col ref="instcd" visibility="hidden" _key="true"/>
  721. <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
  722. <col ref="reqpsnid" visibility="hidden"/>
  723. <col ref="reqpsnnm" visibility="hidden"/>
  724. <col ref="genrtm" visibility="hidden"/>
  725. <col ref="acpttm" visibility="hidden"/>
  726. <col ref="acptpsnid" visibility="hidden"/>
  727. <col ref="acptpsnnm" visibility="hidden"/>
  728. <col ref="acptdeptcd" visibility="hidden"/>
  729. <col ref="acptdeptnm" visibility="hidden"/>
  730. <col ref="fixasetcd" visibility="hidden"/>
  731. <col ref="fixasetnm" visibility="hidden"/>
  732. <col ref="itemnm" visibility="hidden"/>
  733. <col ref="acptpsncnfm" visibility="hidden"/>
  734. <col ref="deptacptdd" visibility="hidden"/>
  735. <col ref="deptacptpsnid" visibility="hidden"/>
  736. <col ref="deptacptpsnnm" visibility="hidden"/>
  737. <col ref="cmt" visibility="hidden"/>
  738. <col ref="sanctdd" visibility="hidden"/>
  739. <col ref="emaildeliveyn" visibility="hidden"/>
  740. <col ref="goodmodel" visibility="hidden"/>
  741. <col ref="installplcecd" visibility="hidden"/>
  742. <col ref="installplcenm" visibility="hidden"/>
  743. <col ref="sancttrsmyn" visibility="hidden"/>
  744. <col ref="chrgtel" visibility="hidden"/>
  745. <col ref="bugtyy" visibility="hidden"/>
  746. <col ref="bugtcd" visibility="hidden"/>
  747. <col ref="stdysubjno" visibility="hidden"/>
  748. <col ref="stdysubjnm" visibility="hidden"/>
  749. <col ref="deptaprvyn" visibility="hidden"/>
  750. <col ref="deptaprvpsnid" visibility="hidden"/>
  751. <col ref="deptaprvdd" visibility="hidden"/>
  752. <col ref="rfehdabptotal" visibility="hidden"/>
  753. <col ref="acptpsnid" visibility="hidden"/>
  754. <col ref="acptpsnnm" visibility="hidden"/>
  755. <col ref="bizscrnid" visibility="hidden"/>
  756. <col ref="mngersanctid" visibility="hidden"/>
  757. <col ref="mngersanctnm" visibility="hidden"/>
  758. <col ref="deprtmangrsanctid" visibility="hidden"/>
  759. <col ref="deprtmangrsanctnm" visibility="hidden"/>
  760. <col ref="docustat" visibility="hidden"/>
  761. <col ref="chkpsn" visibility="hidden"/>
  762. <col ref="chkpsnnm" visibility="hidden"/>
  763. <col ref="chkdd" visibility="hidden"/>
  764. <col ref="deliveamt" visibility="hidden"/>
  765. <col ref="rpirendyn" visibility="hidden"/>
  766. <col ref="usedd" visibility="hidden"/>
  767. <col ref="fileseqno" visibility="hidden"/>
  768. <col ref="filenm" visibility="hidden"/>
  769. <col ref="filepath" visibility="hidden"/>
  770. <col disabled="true" ref="estiamt" format="#,###" style="text-align:right; "/>
  771. <script type="javascript" ev:event="onrowchanged">
  772. <![CDATA[
  773. // 예외처리
  774. if( getGridUpdateData(grd_rfemdamklist) != "" )
  775. {
  776. if( messageBox("수리일자별 목록에 수정된 내용이 있습니다.\n조회작업을", "Q003") != 6)
  777. {
  778. grd_rfehemhtlist.row = model.getValue(ipt_rowtemp2.attribute("ref"));
  779. return;
  780. }
  781. }
  782. if( getGridUpdateData(grd_rfehdabplist) != "" )
  783. {
  784. if( messageBox("부품목록에 업데이트 된 내역이 있습니다.\n조회 작업을", "Q003") != 6 )
  785. {
  786. grd_rfemdamklist.row = model.getValue( ipt_rowtemp.attribute("ref") );
  787. return;
  788. }
  789. }
  790. btn_save.disabled = false;
  791. // 결재전송유무버튼
  792. if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat")) == "04" ) // 수리완료일경우
  793. {
  794. btn_send.disabled = false;
  795. }else{
  796. btn_send.disabled = true;
  797. }
  798. model.setValue(ipt_rowtemp2.attribute("ref"), grd_rfehemhtlist.row);
  799. // 일별 수리 내역 조회값 설정
  800. model.copyNode("/root/send/grid/rfehemhtlist", "/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]");
  801. // 일별 수리 내역 조회
  802. submit("TRRFE00602");
  803. // 자산수리이력 각각 컴포넌트에 설정
  804. model.copyNode("/root/main/component/rfehemhtlist", "/root/main/grid/rfehemhtlist[" + grd_rfehemhtlist.row + "]");
  805. model.makeNode("/root/main/component/rfehemhtlist/outestimateamt"); //outestimateamt를 만들어준다. 0528
  806. // 수리일자별 이벤트 발생
  807. if(grd_rfemdamklist.rows > grd_rfemdamklist.fixedRows)
  808. {
  809. grd_rfemdamklist.row = 1;
  810. //grid 입력 제한
  811. if ( getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS"|| getUserInfo("userid") == "93361"|| getUserInfo("userid") == "93507"|| getUserInfo("userid") == "93717"){ // 과장
  812. misfSetReadOnlyCol(grd_rfemdamklist, "mainrpirpsnnm,supprpirpsnnm,mainrpirpsn,supprpirpsn", true);
  813. }else{
  814. misfSetReadOnlyCol(grd_rfemdamklist, "rpirdd,mainrpirpsnnm,supprpirpsnnm,mainrpirpsn,supprpirpsn", true);
  815. }
  816. }else
  817. {
  818. misfGridInit(grd_rfehdabplist);
  819. }
  820. grd_rfemdamklist.dispatch("onrowchanged");
  821. grd_rfehemhtlist.dispatch("onmouseup");
  822. // 결제전송이면.....
  823. if( grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("sancttrsmyn")) == "Y")
  824. {
  825. // 결재전송유무버튼
  826. btn_send.disabled = true;
  827. btn_save.disabled = true;
  828. }
  829. for (var i = grd_rfehdabplist.fixedRows; i <= grd_rfehdabplist.rows ; i++) {
  830. grd_rfehdabplist.isReadOnly(i , grd_rfehdabplist.colRef("costflag")) = true;
  831. }
  832. fResetDisabled();
  833. model.refresh();
  834. ]]>
  835. </script>
  836. </datagrid>
  837. <datagrid id="grd_rfemdamklist" nodeset="/root/main/grid/rfemdamklist" allowselection="false" caption="일자^주수리자^보조수리자^수리시간^전수리일자" colsep="^" colwidth="75, 80, 80, 54, 100, 100, 50, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" selectionmode="byrow" navindex="6" style="left:940px; top:157px; width:255px; height:93px; ">
  838. <col ref="rpirdd" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
  839. <col ref="mainrpirpsnnm" style="text-align:center; "/>
  840. <col ref="supprpirpsnnm" style="left:175px; top:23px; width:75px; height:23px; text-align:center; "/>
  841. <col ref="rpirtm" visibility="hidden" format="hh:nn" _key="true" style="text-align:right; "/>
  842. <col ref="brpirdd"/>
  843. <col ref="mainrpirpsn" visibility="hidden"/>
  844. <col ref="supprpirpsn" visibility="hidden"/>
  845. <col ref="rpirspec" visibility="hidden"/>
  846. <col ref="instcd" visibility="hidden" _key="true"/>
  847. <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
  848. <col ref="reqdd" visibility="hidden" _key="true"/>
  849. <col ref="reqno" visibility="hidden" _key="true"/>
  850. <script type="javascript" ev:event="onrowchanged">
  851. <![CDATA[
  852. // 예외처리
  853. if( getGridUpdateData(grd_rfehdabplist) != "" )
  854. {
  855. if( messageBox("부품목록에 업데이트 된 내역이 있습니다.\n조회 작업을", "Q003") != 6 )
  856. {
  857. grd_rfemdamklist.row = model.getValue( ipt_rowtemp.attribute("ref") );
  858. model.refresh();
  859. return;
  860. }
  861. }
  862. // 임시 현재 row 저장
  863. model.setValue(ipt_rowtemp.attribute("ref"), grd_rfemdamklist.row);
  864. // 일별수리부품내역을 조회 하기 위한 필수값 설정.
  865. model.copyNode("/root/send/grid/rfemdamklist", "/root/main/grid/rfemdamklist[" + grd_rfemdamklist.row + "]");
  866. if(grd_rfemdamklist.row > 0)
  867. {
  868. // 일별수리부품내역 조회.
  869. submit("TRRFE00603");
  870. }
  871. // 컴포넌트 노드 설정.
  872. model.copyNode("/root/main/component/rfemdamklist" , "/root/main/grid/rfemdamklist[" + grd_rfemdamklist.row + "]");
  873. // 모든 datagrid를 복사함.
  874. model.copyNode("/root/main/tempgrid", "/root/main/grid");
  875. ipt_insStatus.value = 2;
  876. //alert("ipt_insStatus.value = 2");
  877. grd_rfemdamklist.dispatch("onmouseup");
  878. if(grd_rfemdamklist.rowStatus(grd_rfemdamklist.row) != 1)
  879. {
  880. if ( getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS"|| getUserInfo("userid") == "93361"|| getUserInfo("userid") == "93507"|| getUserInfo("userid") == "93717"){ // 과장
  881. ipt_rpirdd.disabled = false;
  882. }else{
  883. ipt_rpirdd.disabled = true;
  884. }
  885. }
  886. model.refresh();
  887. ]]>
  888. </script>
  889. </datagrid>
  890. <datagrid id="grd_rfehdabplist" nodeset="/root/main/grid/rfehdabplist" scroll="auto" caption="출고여부^순번^수리일자^지급형태^유형^비용구분^부품코드^부품명^규격^부품수량^단위^부품단가^금액^caption1^전수리일자" colsep="^" colwidth="56, 43, 87, 36, 37, 85, 136, 268, 166, 70, 60, 101, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" navindex="32" style="left:0px; top:607px; width:1195px; height:133px; ">
  891. <col checkvalue="Y,N" ref="deliveyn" type="checkbox"/>
  892. <col class="input_essential" disabled="true" ref="rpirseq" format="#,###" maxlength="3" _key="true" style="text-align:right; "/>
  893. <col class="input_essential" ref="rpirdd" format="yyyy-mm-dd" _key="true"/>
  894. <col ref="paytype" type="combo" visibility="hidden">
  895. <choices>
  896. <itemset>
  897. <label/>
  898. <value/>
  899. </itemset>
  900. </choices>
  901. </col>
  902. <col ref="kind" type="combo" visibility="hidden">
  903. <choices>
  904. <itemset>
  905. <label/>
  906. <value/>
  907. </itemset>
  908. </choices>
  909. </col>
  910. <col disabled="false" ref="costflag" type="combo">
  911. <choices>
  912. <itemset>
  913. <label/>
  914. <value/>
  915. </itemset>
  916. </choices>
  917. </col>
  918. <col disabled="true" ref="acsrscd" type="inputbutton"/>
  919. <col ref="acsrsnm" type="output" style="left:500px; top:23px; width:300px; height:23px; "/>
  920. <col ref="acsrsspec" type="output"/>
  921. <col ref="acsrsqty" type="input" format="#,###" style="text-align:right; ">
  922. <script type="javascript" ev:event="xforms-value-changed">
  923. <![CDATA[
  924. if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) > 0)
  925. {
  926. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsmoney")) = grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) * grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt"));
  927. grd_rfehdabplist.refresh();
  928. fSetEstamt();
  929. }else
  930. {
  931. //이현민 이현
  932. messageBox("부품수량은 1 이하로 입력 할 수 없습니다", "I999");
  933. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) = "1"
  934. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsmoney")) =
  935. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) * grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row,
  936. grd_rfehdabplist.colRef("acsrsamt"));
  937. grd_rfehdabplist.refresh();
  938. fSetEstamt();
  939. return;
  940. }
  941. ]]>
  942. </script>
  943. </col>
  944. <col disabled="false" ref="acsrsunit" type="combo" style="text-align:center; ">
  945. <choices>
  946. <itemset>
  947. <label/>
  948. <value/>
  949. </itemset>
  950. </choices>
  951. </col>
  952. <col ref="acsrsamt" type="output" format="#,###" style="text-align:right; ">
  953. <script type="javascript" ev:event="xforms-value-changed">
  954. <![CDATA[
  955. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row , grd_rfehdabplist.colRef("acsrsmoney")) =
  956. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row , grd_rfehdabplist.colRef("acsrsqty")) * grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt"));
  957. fSetEstamt();
  958. grd_rfehdabplist.refresh();
  959. ]]>
  960. </script>
  961. </col>
  962. <col ref="acsrsmoney" format="#,###" style="text-align:right; "/>
  963. <col ref="instcd" visibility="hidden" _key="true"/>
  964. <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
  965. <col ref="reqdd" visibility="hidden" _key="true"/>
  966. <col ref="reqno" visibility="hidden" _key="true"/>
  967. <col ref="delivedd" visibility="hidden"/>
  968. <col ref="deliveno" visibility="hidden"/>
  969. <col ref="deliveseqno" visibility="hidden"/>
  970. <col ref="acsrscd" type="inputbutton" visibility="hidden"/>
  971. <col ref="goodflag" visibility="hidden"/>
  972. <col ref="brpirdd"/>
  973. <script type="javascript" ev:event="onbuttonclick">
  974. <![CDATA[
  975. if (grd_rfehdabplist.col == grd_rfehdabplist.colRef("acsrscd") && grd_rfehdabplist.rowStatus(grd_rfehdabplist.row) == "1" ) {//구성물품코드를 눌렀을 경우
  976. model.removenode("/root/copynode");
  977. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  978. model.makeNode("/root/copynode");
  979. // 부품코드 히스토리 관리
  980. //setParameter("paramrpirdd" , grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirdd")));
  981. rszfOpenPopUpListByWndName(grd_rfehdabplist,"","acsrscd,acsrsnm","SPRSD00190","instcd,goodflag","cmb_instcd,BC");
  982. var cur_row = grd_rfehdabplist.row;
  983. var status = grd_rfehdabplist.valueMatrix(cur_row, grd_rfehdabplist.colRef("m"));
  984. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  985. setCSVToNode("/root/copynode", CSV, "rfehdabplist");
  986. fSettingGoodList("/root/copynode", "rfehdabplist");
  987. for (var i = grd_rfehdabplist.fixedRows; i < grd_rfehdabplist.rows; i++){
  988. grd_rfehdabplist.valueMatrix(i, grd_rfehdabplist.colRef("acsrsmoney")) =
  989. grd_rfehdabplist.valueMatrix(i, grd_rfehdabplist.colRef("acsrsqty")) * grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt"));
  990. fSetEstamt();
  991. }
  992. grd_rfehdabplist.refresh();
  993. // fSettingacsrsList("/root/copynode", "acsrswinlist" , "userqty");
  994. }
  995. ]]>
  996. </script>
  997. <script type="javascript" ev:event="xforms-value-changed">
  998. <![CDATA[
  999. //----------------------------------------------------------------------------------------------------------------------
  1000. // 부품목록 저장시 지급형태에 따른 유형선택시 요청사항 적용
  1001. // 1) 지급형태가 [자체]일 경우는 유형은 재고/전도금/무상에서만 선택가능하고 default는 전도금으로 한다.
  1002. // 2) 지급형태가 [견적]일 경우는 유형은 외주견적/보수계약에서만 선택가능하고 default는 외주견적으로 한다.
  1003. //----------------------------------------------------------------------------------------------------------------------
  1004. if(grd_rfehdabplist.col == grd_rfehdabplist.colRef("paytype"))
  1005. {
  1006. if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("paytype")) =="1" ) //자체
  1007. {
  1008. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) ="2";
  1009. }else if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("paytype")) =="2" ) //견적
  1010. {
  1011. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) ="4";
  1012. }else
  1013. {
  1014. }
  1015. }
  1016. if(grd_rfehdabplist.col == grd_rfehdabplist.colRef("kind"))
  1017. {
  1018. if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "1" ||
  1019. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "2" ||
  1020. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "6" )
  1021. {
  1022. if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("paytype")) !== "1" )
  1023. {
  1024. messageBox("지급형태가 [견적]일 경우 해당되는 유형은 [가견적][보수계약][외주견적] 중에서", "I006");
  1025. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) ="4";
  1026. }
  1027. }
  1028. if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "4" ||
  1029. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "5" ||
  1030. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) == "7" )
  1031. {
  1032. if(grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("paytype")) !== "2" )
  1033. {
  1034. messageBox("지급형태가 [자체]일 경우 해당되는 유형은 [재고][전도금][무상] 중에서", "I006");
  1035. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) ="2";
  1036. }
  1037. }
  1038. }
  1039. //----------------------------------------------------------------------------------------------------------------------
  1040. if(grd_rfehdabplist.col == grd_rfehdabplist.colRef("acsrscd"))
  1041. {
  1042. if( grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) == "" )
  1043. {
  1044. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) = "";
  1045. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) = "";
  1046. return;
  1047. }
  1048. model.removenode("/root/copynode");
  1049. model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1050. model.makeNode("/root/copynode");
  1051. rszfValidationCheck("TRRSD00191", "goodlist" ,
  1052. "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
  1053. "goodcd," + cmb_instcd.value + ",Y," + grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) + ",,," ,
  1054. "","acsrscd,acsrsnm",grd_rfehdabplist,"SPRSD00190","instcd,goodflag","cmb_instcd,BC","Y");
  1055. if(model.getValue("/root/init/main/goodlist/goodcd") != "")
  1056. {
  1057. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) = model.getValue("/root/init/main/goodlist/goodcd");
  1058. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) = model.getValue("/root/init/main/goodlist/goodnm");
  1059. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsspec")) = model.getValue("/root/init/main/goodlist/goodspec");
  1060. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) = model.getValue("/root/init/main/goodlist/minexch");
  1061. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsunit")) = model.getValue("/root/init/main/goodlist/deliveunit");
  1062. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt")) = model.getValue("/root/init/main/goodlist/goodunitcost");
  1063. }else{
  1064. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) = "";
  1065. }
  1066. var cur_row = grd_rfehdabplist.row;
  1067. var status = grd_rfehdabplist.valueMatrix(cur_row, grd_rfehdabplist.colRef("m"));
  1068. var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1069. setCSVToNode("/root/copynode", CSV, "rfehdabplist");
  1070. fSettingGoodList("/root/copynode", "rfehdabplist");
  1071. }
  1072. // else if(grd_rfehdabplist.col == grd_rfehdabplist.colRef("acsrsnm")){
  1073. //
  1074. // if( grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) == "" )
  1075. // {
  1076. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) = "";
  1077. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) = "";
  1078. // return;
  1079. // }
  1080. //
  1081. // model.removenode("/root/copynode");
  1082. // model.removenode(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1083. // model.makeNode("/root/copynode");
  1084. //
  1085. // rszfValidationCheck("TRRSD00191", "goodlist" ,
  1086. // "refcond,instcd,goodflag,goodcd,goodnm,indexgb,indexnm",
  1087. // "goodnm," + cmb_instcd.value + ",Y,," + grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) + ",," ,
  1088. // "","acsrscd,acsrsnm",grd_rfehdabplist,"SPRSD00190","instcd,goodflag","cmb_instcd,BC","Y");
  1089. //
  1090. // if(model.getValue("/root/init/main/goodlist/goodcd") != ""){
  1091. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrscd")) = model.getValue("/root/init/main/goodlist/goodcd");
  1092. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsnm")) = model.getValue("/root/init/main/goodlist/goodnm");
  1093. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsspec")) = model.getValue("/root/init/main/goodlist/goodspec");
  1094. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) = model.getValue("/root/init/main/goodlist/minexch");
  1095. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsunit")) = model.getValue("/root/init/main/goodlist/purcunit");
  1096. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt")) = model.getValue("/root/init/main/goodlist/goodunitcost");
  1097. // }
  1098. //
  1099. // var cur_row = grd_rfehdabplist.row;
  1100. // var status = grd_rfehdabplist.valueMatrix(cur_row, grd_rfehdabplist.colRef("m"));
  1101. // var CSV = model.getValue(gvParamPath +"/SMRSD00400_/SMRSD00400_value");
  1102. // setCSVToNode("/root/copynode", CSV, "rfehdabplist");
  1103. // fSettingGoodList("/root/copynode", "rfehdabplist");
  1104. // }
  1105. // if(grd_rfehdabplist.col == grd_rfehdabplist.colRef("acsrsqty"))
  1106. // {
  1107. // // 기본 단가 계산
  1108. // var aver = grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt"))/grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty"));
  1109. // // 갯수에 맞는 금액 계산 입력
  1110. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsamt")) = grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("acsrsqty")) * aver;
  1111. // }
  1112. fSetEstamt();
  1113. model.refresh();
  1114. ]]>
  1115. </script>
  1116. </datagrid>
  1117. <button id="btn_insRfehdabp" class="btn2_letter3" navindex="33" style="left:995px; top:581px; width:53px; height:19px; ">
  1118. <caption>행추가</caption>
  1119. <script type="javascript" ev:event="DOMActivate">
  1120. <![CDATA[
  1121. if(grd_rfemdamklist.row >= 1 || ipt_insStatus.value == 1)
  1122. {
  1123. //수리일자 유무 체크
  1124. if(ipt_rpirdd.value == ""){
  1125. messageBox("수리일자는", "I003");
  1126. return;
  1127. }
  1128. //행추가
  1129. misfGridIUD(grd_rfehdabplist, "A");
  1130. // rpirseq 계산
  1131. if(grd_rfehdabplist.rows > 2){
  1132. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirseq")) = parseInt(grd_rfehdabplist.valueMatrix( grd_rfehdabplist.row-1, grd_rfehdabplist.colRef("rpirseq"))) + 1;
  1133. }else{
  1134. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirseq")) = 1;
  1135. }
  1136. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirseq")) = temp;
  1137. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("instcd")) = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("instcd"));
  1138. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("fixtrseqmtflag")) = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("fixtrseqmtflag"));
  1139. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("reqdd")) = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqdd"));
  1140. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("reqno")) = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqno"));
  1141. // grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirdd")) = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirdd"));
  1142. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("instcd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd"));
  1143. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("fixtrseqmtflag")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("fixtrseqmtflag"));
  1144. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("reqdd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd"));
  1145. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("reqno")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno"));
  1146. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("rpirdd")) = ipt_rpirdd.value;
  1147. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("paytype")) = '2';
  1148. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("kind")) = '4';
  1149. grd_rfehdabplist.valueMatrix(grd_rfehdabplist.row, grd_rfehdabplist.colRef("costflag")) = '1';
  1150. ipt_rpirdd.disabled = true;
  1151. grd_rfehdabplist.refresh();
  1152. }else{
  1153. messageBox("일별수리내역을", "C002");
  1154. return;
  1155. }
  1156. grd_rfehdabplist.isReadOnly(grd_rfehdabplist.row , grd_rfehdabplist.colRef("costflag")) = true;
  1157. ]]>
  1158. </script>
  1159. </button>
  1160. <button id="btn_delRfehdabp" class="btn2_letter3" navindex="34" style="left:1050px; top:581px; width:53px; height:19px; ">
  1161. <caption>행삭제</caption>
  1162. <script type="javascript" ev:event="DOMActivate">
  1163. <![CDATA[
  1164. //행추가
  1165. misfGridIUD(grd_rfehdabplist, "D");
  1166. fSetEstamt2();
  1167. grd_rfehdabplist.refresh();
  1168. ]]>
  1169. </script>
  1170. </button>
  1171. <button id="btn_" class="btn2_letter6" navindex="35" style="left:1105px; top:581px; width:86px; height:19px; ">
  1172. <caption>부품코드등록</caption>
  1173. <script type="javascript" ev:event="DOMActivate">
  1174. <![CDATA[
  1175. modal("SMRFC00600","","","","","","","","", "X", "");
  1176. ]]>
  1177. </script>
  1178. </button>
  1179. <caption id="caption37" class="tit_2" style="left:5px; top:137px; width:131px; height:13px; ">의뢰일별 목록</caption>
  1180. <caption id="caption38" class="tit_2" style="left:945px; top:137px; width:131px; height:13px; ">수리일자별 목록</caption>
  1181. <group id="group2" style="left:0px; top:10px; width:1195px; height:118px; vertical-align:top; ">
  1182. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:118px; background-color:#fffbf2; border-color:#ffd799; "/>
  1183. <input id="ipt_installplcenm" ref="/root/send/sendlist/installplcenm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:419px; top:35px; width:150px; height:19px; text-align:left; "/>
  1184. <caption id="cap_possndd" class="search_name" style="left:15px; top:61px; width:90px; height:17px; ">취득일자 :</caption>
  1185. <input id="ipt_installplcecd" ref="/root/send/sendlist/installplcecd" class="output_fix" disabled="true" navindex="-1" visibility="hidden" style="left:995px; top:35px; width:36px; height:19px; text-align:center; "/>
  1186. <caption id="cap_mngtno" class="search_name" style="left:690px; top:35px; width:84px; height:17px; ">S / N :</caption>
  1187. <input id="ipt_fixasetcd" ref="/root/send/sendlist/fixasetcd" class="input_s_essential" navindex="2" style="left:419px; top:9px; width:125px; height:19px; ">
  1188. <script type="javascript" ev:event="xforms-value-changed">
  1189. <![CDATA[
  1190. isRequiredControls("cmb_instcd,ipt_fixasetcd");
  1191. if(ipt_fixasetcd.value != "")
  1192. {
  1193. rszfValidationCheck("TRRSD00241", "rfcmfacdlist",
  1194. "requirementcd,instcd,requirementnm", "fixasetcd," + cmb_instcd.value + "," + ipt_fixasetcd.value, "",
  1195. "fixasetcd,goodflaghngnm,goodspec,mngtno,mngtdeptnm,prodcmpynm,goodmodel,installplcecd,installplcenm,possndd,possnamt,cntctel,suplplcenm"
  1196. ,ipt_fixasetcd, "SPRSD00240", "instcd", cmb_instcd.value, 'Y');
  1197. model.setValue("/root/send/sendlist/goodspec", model.getValue("/root/init/main/rfcmfacdlist/goodspec"));
  1198. model.setValue("/root/send/sendlist/mngtno", model.getValue("/root/init/main/rfcmfacdlist/mngtno"));
  1199. model.setValue("/root/send/sendlist/tempmngtdeptnm", model.getValue("/root/init/main/rfcmfacdlist/tempmngtdeptnm"));
  1200. model.setValue("/root/send/sendlist/prodcmpynm", model.getValue("/root/init/main/rfcmfacdlist/prodcmpynm"));
  1201. model.setValue("/root/send/sendlist/goodmodel", model.getValue("/root/init/main/rfcmfacdlist/goodmodel"));
  1202. model.setValue("/root/send/sendlist/installplcecd", model.getValue("/root/init/main/rfcmfacdlist/installplcecd"));
  1203. model.setValue("/root/send/sendlist/installplcenm", model.getValue("/root/init/main/rfcmfacdlist/installplcenm"));
  1204. model.setValue("/root/send/sendlist/possndd", model.getValue("/root/init/main/rfcmfacdlist/possndd"));
  1205. model.setValue("/root/send/sendlist/possnamt", model.getValue("/root/init/main/rfcmfacdlist/possnamt"));
  1206. model.setValue("/root/send/sendlist/suplplcenm", model.getValue("/root/init/main/rfcmfacdlist/suplplcenm"));
  1207. model.setValue("/root/send/sendlist/cntctel", model.getValue("/root/init/main/rfcmfacdlist/cntctel"));
  1208. model.setValue("/root/send/sendlist/flwgrnttermfr", model.getValue("/root/init/main/rfcmfacdlist/flwgrnttermfr"));
  1209. model.setValue("/root/send/sendlist/flwgrnttermto", model.getValue("/root/init/main/rfcmfacdlist/flwgrnttermto"));
  1210. model.setValue(ipt_fixtrseqmtflag.attribute("ref"), model.getValue("/root/init/main/rfcmfacdlist/goodflag"));
  1211. model.resetInstanceNode("/root/main");
  1212. group2.refresh();
  1213. btn_search.dispatch("DOMActivate");
  1214. }else
  1215. {
  1216. messageBox("자산코드는", "I003");
  1217. fInitialize();
  1218. }
  1219. ]]>
  1220. </script>
  1221. </input>
  1222. <select1 id="cmb_instcd" ref="/root/send/sendlist/instcd" class="combo_s_essential" navindex="1" appearance="minimal" style="left:101px; top:9px; width:150px; height:19px; ">
  1223. <choices>
  1224. <itemset>
  1225. <label/>
  1226. <value/>
  1227. </itemset>
  1228. </choices>
  1229. <script type="javascript" ev:event="xforms-value-changed">
  1230. <![CDATA[
  1231. if(ipt_fixasetcd.value != ""){
  1232. btn_search.dispatch("DOMActivate");
  1233. }
  1234. ]]>
  1235. </script>
  1236. </select1>
  1237. <caption id="cap_possnamt" class="search_name" style="left:333px; top:61px; width:150px; height:17px; ">취득금액 :</caption>
  1238. <input id="ipt_possnamt" ref="/root/send/sendlist/possnamt" class="output_fix" disabled="false" navindex="-1" editable="false" format="#,###" style="left:419px; top:60px; width:150px; height:19px; text-align:right; "/>
  1239. <input id="ipt_mngtno" ref="/root/send/sendlist/mngtno" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:775px; top:34px; width:150px; height:19px; text-align:left; "/>
  1240. <caption id="cap_prodcmpynm" class="search_name" style="left:690px; top:60px; width:88px; height:17px; ">공 급 처 :</caption>
  1241. <input id="ipt_goodspec" ref="/root/send/sendlist/goodspec" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:101px; top:35px; width:219px; height:19px; "/>
  1242. <caption id="cap_goodspec" class="search_name" style="left:15px; top:35px; width:90px; height:17px; ">규 격 :</caption>
  1243. <input id="ipt_goodflaghngnm" ref="/root/send/sendlist/goodflaghngnm" class="output_fix" navindex="-1" editable="false" appearance="input" style="left:568px; top:9px; width:239px; height:19px; "/>
  1244. <input id="ipt_goodmodel" ref="/root/send/sendlist/goodmodel" class="output_fix" disabled="false" navindex="-1" visibility="hidden" editable="false" style="left:901px; top:9px; width:16px; height:19px; text-align:left; "/>
  1245. <caption id="cap_goodmodel" class="search_name" visibility="hidden" style="left:815px; top:10px; width:92px; height:17px; ">모 델 명 :</caption>
  1246. <input id="ipt_possndd" ref="/root/send/sendlist/possndd" class="output_fix" disabled="false" navindex="-1" editable="false" format="yyyy-mm-dd" style="left:101px; top:60px; width:150px; height:19px; text-align:left; "/>
  1247. <caption id="cap_installplcecd" class="search_name" style="left:333px; top:36px; width:92px; height:17px; ">설치장소 :</caption>
  1248. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">기관코드 :</caption>
  1249. <input id="ipt_tempmngtdeptnm" ref="/root/send/sendlist/tempmngtdeptnm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:101px; top:87px; width:150px; height:19px; "/>
  1250. <input id="ipt_prodcmpynm" ref="/root/send/sendlist/prodcmpynm" class="output_fix" disabled="false" navindex="-1" visibility="hidden" editable="false" style="left:1009px; top:9px; width:15px; height:19px; text-align:left; "/>
  1251. <caption id="cap_fixasetcd" class="search_name" style="left:333px; top:9px; width:86px; height:17px; ">자산코드 :</caption>
  1252. <input id="ipt_fixtrseqmtflag" ref="/root/send/sendlist/fixtrseqmtflag" navindex="-1" visibility="hidden" style="left:970px; top:35px; width:20px; height:19px; "/>
  1253. <caption id="cap_tempmngtdeptcd" class="search_name" style="left:15px; top:87px; width:90px; height:17px; ">관리부서 :</caption>
  1254. <button id="btn_fixasetcd" class="icon_search" navindex="-1" style="left:549px; top:10px; width:16px; height:16px; ">
  1255. <script type="javascript" ev:event="DOMActivate">
  1256. <![CDATA[
  1257. var temp_fixasetcd = ipt_fixasetcd.value;
  1258. rszfOpenPopUpListByWndName(ipt_fixasetcd,"", "fixasetcd,goodflaghngnm,goodspec,goodmodel,mngtno,tempmngtdeptnm,installplcecd,installplcenm,procmpynm,possndd,possnamt,suplplcenm,cntctel",
  1259. "SPRSD00240",
  1260. "instcd", cmb_instcd.value, "Y");
  1261. if(ipt_fixasetcd.value != "")
  1262. {
  1263. if(ipt_fixasetcd.value != temp_fixasetcd)
  1264. {
  1265. btn_search.dispatch("DOMActivate");
  1266. }
  1267. }
  1268. model.refresh();
  1269. ]]>
  1270. </script>
  1271. <caption/>
  1272. </button>
  1273. <select1 id="cmb_reqflag" ref="/root/init/reqflag" navindex="-1" visibility="hidden" appearance="minimal" style="left:950px; top:35px; width:20px; height:19px; ">
  1274. <choices>
  1275. <itemset>
  1276. <label/>
  1277. <value/>
  1278. </itemset>
  1279. </choices>
  1280. </select1>
  1281. <input id="ipt_suplplcenm" ref="/root/send/sendlist/suplplcenm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:775px; top:60px; width:150px; height:19px; text-align:left; "/>
  1282. <input id="ipt_cntctel" ref="/root/send/sendlist/cntctel" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:930px; top:60px; width:155px; height:19px; text-align:left; "/>
  1283. <caption id="caption3" class="search_name" visibility="hidden" style="left:925px; top:10px; width:89px; height:17px; ">제 조 사 :</caption>
  1284. <input id="ipt_mngtdeptnm" ref="/root/send/sendlist/mngtdeptnm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:419px; top:87px; width:150px; height:19px; "/>
  1285. <caption id="cap_mngtdeptnm" class="search_name" style="left:333px; top:87px; width:90px; height:17px; ">사용부서 :</caption>
  1286. <caption id="caption15" class="search_name" style="left:690px; top:87px; width:125px; height:17px; ">하자보증기간 :</caption>
  1287. <input id="input1" ref="/root/send/sendlist/flwgrnttermfr" class="output_fix" disabled="false" navindex="-1" editable="false" format="yyyy-mm-dd" style="left:805px; top:87px; width:80px; height:19px; text-align:left; "/>
  1288. <input id="input2" ref="/root/send/sendlist/flwgrnttermto" class="output_fix" disabled="false" navindex="-1" editable="false" format="yyyy-mm-dd" style="left:905px; top:87px; width:80px; height:19px; text-align:left; "/>
  1289. <caption id="caption23" style="left:890px; top:85px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  1290. </group>
  1291. <line id="line12" class="line_1" style="x1:1px; y1:154px; x2:934px; y2:153px; "/>
  1292. <switch id="switch2" style="left:0px; top:250px; width:1195px; height:330px; border-color:#c7a3cf; border-style:solid; ">
  1293. <case id="case1" style="left:0px; top:0px; width:1193px; height:353px; ">
  1294. <line id="line26" class="line_2" style="x1:0px; y1:301px; x2:1193px; y2:301px; "/>
  1295. <textarea id="txt_rpirspec" ref="/root/main/component/rfemdamklist/rpirspec" class="input_s_essential" navindex="29" scroll="vertical" style="left:740px; top:257px; width:452px; height:67px; ">
  1296. <script type="javascript" ev:event="xforms-value-changed">
  1297. <![CDATA[
  1298. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.selectedRow(0) , grd_rfemdamklist.colRef("rpirspec")) = txt_rpirspec.value;
  1299. grd_rfemdamklist.addStatus(grd_rfemdamklist.selectedRow(0) , "update");
  1300. ]]>
  1301. </script>
  1302. </textarea>
  1303. <input id="ipt_genrdd" ref="/root/main/component/rfehemhtlist/genrdd" class="input_default" disabled="true" navindex="-1" format="yyyy-mm-dd" style="left:282px; top:26px; width:70px; height:19px; "/>
  1304. <line id="line19" class="line_2" style="x1:5px; y1:71px; x2:1193px; y2:71px; "/>
  1305. <line id="line18" class="line_2" style="x1:0px; y1:47px; x2:1193px; y2:47px; "/>
  1306. <line id="line17" class="line_1" style="x1:0px; y1:20px; x2:1193px; y2:20px; "/>
  1307. <line id="line27" class="line_3" style="x1:0px; y1:325px; x2:1193px; y2:325px; "/>
  1308. <line id="line25" class="line_1" style="x1:0px; y1:250px; x2:1193px; y2:250px; "/>
  1309. <line id="line22" class="line_3" style="x1:0px; y1:226px; x2:1193px; y2:226px; "/>
  1310. <line id="line21" class="line_2" style="x1:0px; y1:119px; x2:1193px; y2:119px; "/>
  1311. <line id="line20" class="line_2" style="x1:0px; y1:95px; x2:1193px; y2:95px; "/>
  1312. <caption id="cap_reqdd" class="cell_1" style="left:0px; top:25px; width:100px; height:23px; vertical-align:middle; ">의뢰번호</caption>
  1313. <textarea id="txt_hdrncspec" ref="/root/main/component/rfehemhtlist/hdrncspec" disabled="true" navindex="22" scroll="vertical" style="left:102px; top:98px; width:534px; height:78px; "/>
  1314. <caption id="cap_hdrncspec" class="cell_1" style="left:0px; top:98px; width:100px; height:77px; vertical-align:middle; ">의뢰내역</caption>
  1315. <input id="ipt_reqdd" ref="/root/main/component/rfehemhtlist/reqdd" class="input_default" disabled="true" navindex="-1" format="yyyy-mm-dd" style="left:102px; top:26px; width:70px; height:19px; "/>
  1316. <input id="ipt_reqno" ref="/root/main/component/rfehemhtlist/reqno" class="input_default" disabled="true" navindex="-1" style="left:174px; top:26px; width:40px; height:19px; "/>
  1317. <textarea id="txt_chrgpsncmt" ref="/root/main/component/rfehemhtlist/chrgpsncmt" disabled="true" navindex="23" scroll="vertical" style="left:102px; top:180px; width:534px; height:45px; "/>
  1318. <caption id="cap_chrgpsncmt" class="cell_1" style="left:0px; top:178px; width:100px; height:49px; vertical-align:middle; ">
  1319. <![CDATA[결재
  1320. COMMENT]]>
  1321. </caption>
  1322. <caption id="cap_rpirspec" class="cell_1" style="left:638px; top:255px; width:100px; height:71px; vertical-align:middle; ">수리내역</caption>
  1323. <input id="ipt_mainrpirpsnnm" ref="/root/main/component/rfemdamklist/mainrpirpsnnm" class="output_fix" navindex="-1" editable="false" style="left:216px; top:281px; width:166px; height:19px; "/>
  1324. <input id="ipt_mainrpirpsn" ref="/root/main/component/rfemdamklist/mainrpirpsn" class="input_s_essential" navindex="27" style="left:102px; top:281px; width:90px; height:19px; ">
  1325. <script type="javascript" ev:event="xforms-value-changed">
  1326. <![CDATA[
  1327. if(ipt_mainrpirpsn.value.length == 0){
  1328. ipt_mainrpirpsnnm.value = "";
  1329. }else{
  1330. misfValidationCheck("01-1", "", "mainrpirpsn,mainrpirpsnnm");
  1331. }
  1332. ipt_mainrpirpsn.refresh();
  1333. ipt_mainrpirpsnnm.refresh();
  1334. ]]>
  1335. </script>
  1336. </input>
  1337. <input id="ipt_supprpirpsn" ref="/root/main/component/rfemdamklist/supprpirpsn" class="input_default" navindex="28" style="left:102px; top:305px; width:90px; height:19px; ">
  1338. <script type="javascript" ev:event="xforms-value-changed">
  1339. <![CDATA[
  1340. if(ipt_supprpirpsn.value.length == 0){
  1341. ipt_supprpirpsnnm.value = "";
  1342. }else{
  1343. misfValidationCheck("01-1", "", "supprpirpsn,supprpirpsnnm");
  1344. }
  1345. ipt_supprpirpsn.refresh();
  1346. ipt_supprpirpsnnm.refresh();
  1347. ]]>
  1348. </script>
  1349. </input>
  1350. <textarea id="txt_lastrpirrslt" ref="/root/main/component/rfehemhtlist/lastrpirrslt" class="output_fix" dragmode="true" navindex="24" scroll="vertical" editable="false" maxlength="600" style="left:740px; top:120px; width:452px; height:106px; background-color:#e2e2f5; "/>
  1351. <caption id="cap_lastrpirrslt" class="cell_1" style="left:638px; top:121px; width:100px; height:104px; vertical-align:middle; ">최종수리결과</caption>
  1352. <caption id="cap_rpirflag2" class="cell_1" style="left:0px; top:49px; width:100px; height:23px; vertical-align:middle; ">수리형태</caption>
  1353. <caption id="cap_rpirdd" class="cell_1" style="left:0px; top:255px; width:100px; height:23px; vertical-align:middle; ">
  1354. <![CDATA[수리일자]]>
  1355. <script type="javascript" ev:event="ondblclick">
  1356. <![CDATA[
  1357. var dutplcecd = getUserInfo("dutplcecd");
  1358. if ( dutplcecd != "4090500000" || getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS"|| getUserInfo("userid") == "93361"|| getUserInfo("userid") == "93507"|| getUserInfo("userid") == "93717"){ // 과장
  1359. ipt_rpirdd.disabled = false;
  1360. }else{
  1361. ipt_rpirdd.disabled = true;
  1362. }
  1363. ]]>
  1364. </script>
  1365. </caption>
  1366. <caption id="cap_mainrpirpsn" class="cell_1" style="left:0px; top:279px; width:100px; height:23px; vertical-align:middle; ">주수리자</caption>
  1367. <caption id="cap_supprpirpsn" class="cell_1" style="left:0px; top:303px; width:100px; height:23px; vertical-align:middle; ">보조수리자</caption>
  1368. <input id="ipt_custnm" ref="/root/main/component/rfehemhtlist/custnm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:779px; top:26px; width:114px; height:19px; "/>
  1369. <caption id="cap_custcd" class="cell_1" style="left:657px; top:25px; width:45px; height:23px; vertical-align:middle; ">거래처</caption>
  1370. <input id="ipt_custcd" ref="/root/main/component/rfehemhtlist/custcd" class="input_default" navindex="12" style="left:704px; top:26px; width:55px; height:19px; ">
  1371. <script type="javascript" ev:event="xforms-value-changed">
  1372. <![CDATA[
  1373. ipt_custnm.value= "";
  1374. if(ipt_custcd.value != ""){
  1375. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  1376. cmb_instcd.value + ",," + ipt_custcd.value, "", "custcd,custnm",
  1377. ipt_custcd, "SPRSD00220", "instcd","cmb_instcd");
  1378. }
  1379. ipt_custcd.refresh();
  1380. ipt_custnm.refresh();
  1381. ]]>
  1382. </script>
  1383. </input>
  1384. <select1 id="cmb_rpirflag2" ref="/root/main/component/rfehemhtlist/rpirflag2" class="input_default" navindex="10" appearance="minimal" style="left:102px; top:50px; width:113px; height:19px; ">
  1385. <choices>
  1386. <itemset>
  1387. <label/>
  1388. <value/>
  1389. </itemset>
  1390. </choices>
  1391. <script type="javascript" ev:event="xforms-value-changed">
  1392. <![CDATA[
  1393. if(cmb_rpirflag2.value == "8" ||cmb_rpirflag2.value =="5" ||cmb_rpirflag2.value =="6"){
  1394. rdo_useyn.value = 2;
  1395. }else{
  1396. rdo_useyn.value = 1;
  1397. }
  1398. model.refreshpart(rdo_useyn.attribute("ref"));
  1399. fResetState();
  1400. ]]>
  1401. </script>
  1402. </select1>
  1403. <button id="btn_mainrpirpsn" class="icon_search" navindex="-1" style="left:196px; top:283px; width:16px; height:16px; ">
  1404. <script type="javascript" ev:event="DOMActivate">
  1405. <![CDATA[
  1406. misfOpenPopUpList("01", ipt_mainrpirpsn, "", "mainrpirpsn,mainrpirpsnnm");
  1407. ipt_mainrpirpsn.refresh();
  1408. ipt_mainrpirpsnnm.refresh();
  1409. ]]>
  1410. </script>
  1411. <caption/>
  1412. </button>
  1413. <button id="btn_supprpirpsn" class="icon_search" navindex="-1" style="left:196px; top:307px; width:16px; height:16px; ">
  1414. <script type="javascript" ev:event="DOMActivate">
  1415. <![CDATA[
  1416. misfOpenPopUpList("01", ipt_supprpirpsn, "", "supprpirpsn,supprpirpsnnm");
  1417. ipt_supprpirpsn.refresh();
  1418. ipt_supprpirpsnnm.refresh();
  1419. ]]>
  1420. </script>
  1421. <caption/>
  1422. </button>
  1423. <caption id="cap_workstat" class="cell_1" style="left:1000px; top:73px; width:65px; height:23px; vertical-align:middle; ">수리상태</caption>
  1424. <select1 id="cmb_workstat" ref="/root/main/component/rfehemhtlist/workstat" class="input_default" disabled="true" navindex="-1" appearance="minimal" style="left:1068px; top:75px; width:125px; height:19px; vertical-align:top; ">
  1425. <choices>
  1426. <itemset>
  1427. <label/>
  1428. <value/>
  1429. </itemset>
  1430. </choices>
  1431. </select1>
  1432. <input id="ipt_rpirdd" ref="/root/main/component/rfemdamklist/rpirdd" class="input_s_essential" navindex="25" inputtype="date" format="yyyy-mm-dd" style="left:102px; top:257px; width:114px; height:19px; ">
  1433. <script type="javascript" ev:event="xforms-value-changed">
  1434. <![CDATA[
  1435. for(var i=0; grd_rfemdamklist.rows >i; i++)
  1436. {
  1437. if(ipt_rpirdd.value == grd_rfemdamklist.valueMatrix(i, grd_rfemdamklist.colRef("rpirdd")) )
  1438. {
  1439. messageBox("수리일자가","E006");
  1440. ipt_rpirdd.value = "";
  1441. return;
  1442. }
  1443. }
  1444. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.selectedRow(0) , grd_rfemdamklist.colRef("rpirdd")) = ipt_rpirdd.value;
  1445. grd_rfemdamklist.addStatus(grd_rfemdamklist.selectedRow(0) , "update");
  1446. for(var j=0; grd_rfehdabplist.rows >j; j++)
  1447. {
  1448. grd_rfehdabplist.valueMatrix(j, grd_rfehdabplist.colRef("rpirdd")) = ipt_rpirdd.value;
  1449. grd_rfehdabplist.addStatus(j , "update");
  1450. }
  1451. ]]>
  1452. </script>
  1453. </input>
  1454. <input id="ipt_supprpirpsnnm" ref="/root/main/component/rfemdamklist/supprpirpsnnm" class="output_fix" navindex="-1" editable="false" style="left:216px; top:305px; width:166px; height:19px; "/>
  1455. <caption id="cap_rpirtm" class="cell_1" visibility="visible" style="left:218px; top:255px; width:70px; height:23px; vertical-align:middle; ">작업시간</caption>
  1456. <input id="ipt_rpirtm" ref="/root/main/component/rfemdamklist/rpirtm" class="input_default" navindex="26" visibility="visible" format="hh:nn" style="left:290px; top:257px; width:92px; height:19px; text-align:right; "/>
  1457. <button id="btn_custcd" class="icon_search" navindex="-1" style="left:762px; top:26px; width:16px; height:16px; ">
  1458. <caption/>
  1459. <script type="javascript" ev:event="DOMActivate">
  1460. <![CDATA[
  1461. rszfOpenPopUpListByWndName(ipt_custcd,"","custcd,custnm","SPRSD00220","instcd","cmb_instcd");
  1462. ipt_custcd.refresh();
  1463. ipt_custnm.refresh();
  1464. ]]>
  1465. </script>
  1466. </button>
  1467. <caption id="cap_rpirtmCmt" class="hand" visibility="visible" style="left:380px; top:257px; width:255px; height:19px; ">네자리 숫자로 입력하세요. Ex) 01:30</caption>
  1468. <button id="btn_del" class="btn2_letter2" disabled="true" navindex="31" style="left:1150px; top:229px; width:42px; height:19px; ">
  1469. <caption>삭제</caption>
  1470. <script type="javascript" ev:event="DOMActivate">
  1471. <![CDATA[
  1472. if( ipt_insStatus.value == 1 )
  1473. {
  1474. // 수리일자별 컨포넌트 Value 값 초기화.
  1475. model.resetInstanceNode("/root/main/component/rfemdamklist");
  1476. grd_rfehemhtlist.dispatch("onrowchanged");
  1477. return;
  1478. }
  1479. if(grd_rfemdamklist.row >= 1)
  1480. {
  1481. if(ipt_insStatus.value == 1){
  1482. grd_rfemdamklist.row = grd_rfemdamklist.rows - 1;
  1483. grd_rfemdamklist.dispatch("onrowchanged");
  1484. }else{
  1485. if(grd_rfehdabplist.rows > 1)
  1486. {
  1487. if( messageBox("부품목록의 데이터가 남아있습니다.\n'예(Yes)'를 누르시면 부품목록의 데이터까지 삭제하시게 됩니다.\n", "Q003") == 6){
  1488. // 부품목록 리스트 status 를 전부 삭제로 변환.
  1489. for(var row = 1; row <= grd_rfehdabplist.rows; row++)
  1490. {
  1491. grd_rfehdabplist.addStatus(row, "delete");
  1492. }
  1493. // 일별 수리 데이터의 status를 삭제로 변환
  1494. misfGridIUD(grd_rfemdamklist, "D");
  1495. // 수리일자별 추가 식별너머 초기화
  1496. ipt_insStatus.value = 0;
  1497. //alert("ipt_insStatus.value = 0");
  1498. // 수리일자별 컨포넌트 컨트롤 모드 변환.
  1499. fRfemdamkComponentsTF(false,'Y');
  1500. // 모든 그리드의 데이터 전송준비.
  1501. model.copyNode("/root/send/grid", "/root/main/grid");
  1502. // 전송 스따뜨~!!!
  1503. misfSave("TXRFE00601");
  1504. // 수리일자별 컨포넌트 Value 값 초기화.
  1505. model.resetInstanceNode("/root/main/component/rfemdamklist");
  1506. grd_rfehemhtlist.dispatch("onrowchanged");
  1507. } else {
  1508. return;
  1509. }
  1510. } else {
  1511. if(messageBox("","Q001") == 6)
  1512. {
  1513. misfGridIUD(grd_rfemdamklist, "D");
  1514. // 수리일자별 추가 식별너머 초기화
  1515. ipt_insStatus.value = 0;
  1516. //alert("ipt_insStatus.value = 0");
  1517. // 수리일자별 컨포넌트 컨트롤 모드 변환.
  1518. fRfemdamkComponentsTF(false,'Y');
  1519. // 모든 그리드의 데이터 전송준비.
  1520. model.copyNode("/root/send/grid", "/root/main/grid");
  1521. // 전송 스따뜨~!!!
  1522. misfSave("TXRFE00601");
  1523. // 수리일자별 컨포넌트 Value 값 초기화.
  1524. model.resetInstanceNode("/root/main/component/rfemdamklist");
  1525. grd_rfehemhtlist.dispatch("onrowchanged");
  1526. } else {
  1527. return;
  1528. }
  1529. }
  1530. }
  1531. fRfemdamkComponentsTF(false, 'Y');
  1532. } else {
  1533. messageBox("삭제할 수리일자별 목록을", "C002")
  1534. }
  1535. ]]>
  1536. </script>
  1537. </button>
  1538. <button id="btn_initrfemdamklist" class="btn2_letter2" disabled="true" navindex="30" style="left:1105px; top:229px; width:42px; height:19px; ">
  1539. <caption>추가</caption>
  1540. <script type="javascript" ev:event="DOMActivate">
  1541. <![CDATA[
  1542. ipt_insStatus.value = 1;
  1543. //alert("ipt_insStatus.value = 1");
  1544. // 컴포넌트 노드 설정.
  1545. misfGridIUD(grd_rfemdamklist, "A");
  1546. model.copyNode("/root/main/component/rfemdamklist" , "/root/main/grid/rfemdamklist[" + grd_rfemdamklist.row + "]");
  1547. fRfemdamkComponentsTF(false);
  1548. //misfGridIUD(grd_rfemdamklist, "D");
  1549. model.resetInstanceNode("/root/main/component/rfemdamklist");
  1550. misfGridInit(grd_rfehdabplist);
  1551. //ipt_rpirdd.value = getCurrentDate();
  1552. /*for(var i=0; grd_rfemdamklist.rows > i ; i++)
  1553. {
  1554. if(ipt_rpirdd.value == grd_rfemdamklist.valueMatrix(i, grd_rfemdamklist.colRef("rpirdd")) )
  1555. {
  1556. messageBox("오늘 수리일자가 있습니다. \n수리일자를", "C001");
  1557. ipt_rpirdd.value = "";
  1558. return;
  1559. }
  1560. }*/
  1561. if(grd_rfemdamklist.rows > 1)
  1562. {
  1563. ipt_mainrpirpsn.value = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.rows-1, grd_rfemdamklist.colRef("mainrpirpsn"));
  1564. ipt_mainrpirpsnnm.value = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.rows-1, grd_rfemdamklist.colRef("mainrpirpsnnm"));
  1565. ipt_supprpirpsn.value = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.rows-1, grd_rfemdamklist.colRef("supprpirpsn"));
  1566. ipt_supprpirpsnnm.value = grd_rfemdamklist.valueMatrix(grd_rfemdamklist.rows-1, grd_rfemdamklist.colRef("supprpirpsnnm"));
  1567. }else{
  1568. ipt_mainrpirpsn.value = getUserInfo("userid");
  1569. ipt_mainrpirpsnnm.value = getUserInfo("usernm");
  1570. }
  1571. if(ipt_chrgpsnid.value.length != 0){
  1572. ipt_mainrpirpsn.value = ipt_chrgpsnid.value;
  1573. ipt_mainrpirpsnnm.value = ipt_chrgpsnnm.value;
  1574. }
  1575. var dutplcecd = getUserInfo("dutplcecd");
  1576. if ( dutplcecd != "4090500000" || getUserInfo("userid") == "93518" || getUserInfo("userid") == "08111"|| getUserInfo("userid") == "MIS"|| getUserInfo("userid") == "93361"|| getUserInfo("userid") == "93507"|| getUserInfo("userid") == "93717"){ // 과장
  1577. model.setValue(ipt_rpirdd.attribute("ref"), getCurrentDate());
  1578. ipt_rpirdd.disabled = false;
  1579. }else{
  1580. model.setValue(ipt_rpirdd.attribute("ref"), getCurrentDate());
  1581. ipt_rpirdd.disabled = true;
  1582. }
  1583. ipt_rpirdd.dispatch("xforms-value-changed");
  1584. btn_insRfehdabp.disabled = false;
  1585. btn_delRfehdabp.disabled = false;
  1586. model.refresh();
  1587. ]]>
  1588. </script>
  1589. </button>
  1590. <line id="line3" class="line_2" style="x1:40px; y1:277px; x2:640px; y2:277px; "/>
  1591. <caption id="caption1" class="tit_2" style="left:5px; top:235px; width:118px; height:13px; ">수리 일자별 현황</caption>
  1592. <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:110px; height:13px; ">수리 상세 등록</caption>
  1593. <caption id="cap_chrgtel" class="cell_1" style="left:275px; top:73px; width:90px; height:23px; vertical-align:middle; ">검토자 연락처</caption>
  1594. <input id="ipt_chrgtel" ref="/root/main/component/rfehemhtlist/chrgtel" class="input_s_essential" disabled="true" navindex="19" style="left:367px; top:74px; width:60px; height:19px; "/>
  1595. <caption id="caption7" class="cell_1" style="left:219px; top:25px; width:60px; height:23px; vertical-align:middle; ">발생일자</caption>
  1596. <caption id="cap_acptdd" class="cell_1" style="left:495px; top:25px; width:60px; height:23px; vertical-align:middle; ">납품일자</caption>
  1597. <input id="ipt_acptdd" ref="/root/main/component/rfehemhtlist/acptdd" class="input_default" disabled="false" navindex="8" inputtype="date" format="yyyy-mm-dd" style="left:558px; top:26px; width:95px; height:19px; "/>
  1598. <input id="ipt_rpirenddd2" ref="/root/main/component/rfehemhtlist/rpirenddd" class="input_default" disabled="true" navindex="-1" format="yyyy-mm-dd" style="left:420px; top:26px; width:70px; height:19px; "/>
  1599. <caption id="cap_rpirenddd" class="cell_1" style="left:357px; top:25px; width:60px; height:23px; vertical-align:middle; ">완료일자</caption>
  1600. <input id="ipt_deprtmangrsanctid" ref="/root/main/component/rfehemhtlist/deprtmangrsanctid" class="input_default" navindex="20" style="left:499px; top:74px; width:70px; height:19px; ">
  1601. <script type="javascript" ev:event="xforms-value-changed">
  1602. <![CDATA[
  1603. ipt_deprtmangrsanctnm.value = "";
  1604. if(ipt_deprtmangrsanctid.value.length != 0){
  1605. misfValidationCheck("01-1", "", "deprtmangranctid,deprtmangrsanctnm");
  1606. }
  1607. ipt_deprtmangrsanctid.refresh();
  1608. ipt_deprtmangrsanctnm.refresh();
  1609. fResetState();
  1610. ]]>
  1611. </script>
  1612. </input>
  1613. <input id="ipt_deprtmangrsanctnm" ref="/root/main/component/rfehemhtlist/deprtmangrsanctnm" class="output_fix" disabled="false" navindex="-1" editable="false" appearance="input" style="left:589px; top:74px; width:80px; height:19px; ">
  1614. <script type="javascript" ev:event="xforms-value-changed">
  1615. <![CDATA[
  1616. if(ipt_deprtmangrsanctnm.value.length == 0)
  1617. ipt_deprtmangrsanctid.value = "";
  1618. else
  1619. misfValidationCheck("01-2", "", "deprtmangrsanctid,deprtmangrsanctnm");
  1620. model.refresh();
  1621. ]]>
  1622. </script>
  1623. </input>
  1624. <button id="btn_deprtmangrsanctid" class="icon_search" navindex="-1" style="left:571px; top:74px; width:16px; height:16px; ">
  1625. <caption/>
  1626. <script type="javascript" ev:event="DOMActivate">
  1627. <![CDATA[
  1628. misfOpenPopUpList("12", ipt_deprtmangrsanctid, "", "deprtmangrsanctid,deprtmangrsanctnm");
  1629. ipt_deprtmangrsanctid.refresh();
  1630. ipt_deprtmangrsanctnm.refresh();
  1631. fResetState();
  1632. ]]>
  1633. </script>
  1634. </button>
  1635. <caption id="caption17" class="cell_1" style="left:431px; top:73px; width:65px; height:23px; vertical-align:middle; ">실장 결재</caption>
  1636. <button id="btn_chrgpsnid" class="icon_search" navindex="42" style="left:174px; top:74px; width:16px; height:16px; ">
  1637. <caption/>
  1638. <script type="javascript" ev:event="DOMActivate">
  1639. <![CDATA[
  1640. misfOpenPopUpList("12", ipt_chrgpsnid, "", "chrgpsnid,chrgpsnnm");
  1641. ipt_chrgpsnid.refresh();
  1642. ipt_chrgpsnnm.refresh();
  1643. fResetState();
  1644. ]]>
  1645. </script>
  1646. </button>
  1647. <input id="ipt_chrgpsnid" ref="/root/main/component/rfehemhtlist/chrgpsnid" class="input_s_essential" navindex="18" style="left:102px; top:74px; width:70px; height:19px; text-align:center; ">
  1648. <script type="javascript" ev:event="xforms-value-changed">
  1649. <![CDATA[
  1650. ipt_chrgpsnnm.value = "";
  1651. if(ipt_chrgpsnid.value.length != 0){
  1652. misfValidationCheck("01-1", "", "chrgpsnid,chrgpsnnm");
  1653. }
  1654. ipt_chrgpsnid.refresh();
  1655. ipt_chrgpsnnm.refresh();
  1656. fResetState();
  1657. ]]>
  1658. </script>
  1659. </input>
  1660. <caption id="cap_chrgpsnid" class="cell_1" style="left:0px; top:73px; width:100px; height:23px; vertical-align:middle; ">검토자</caption>
  1661. <input id="ipt_chrgpsnnm" ref="/root/main/component/rfehemhtlist/chrgpsnnm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:192px; top:74px; width:80px; height:19px; text-align:center; "/>
  1662. <select1 id="cmb_docustat" ref="/root/main/component/rfehemhtlist/docustat" class="input_default" disabled="true" navindex="-1" appearance="minimal" style="left:1099px; top:50px; width:94px; height:19px; vertical-align:top; ">
  1663. <choices>
  1664. <itemset>
  1665. <label/>
  1666. <value/>
  1667. </itemset>
  1668. </choices>
  1669. </select1>
  1670. <caption id="caption5" class="cell_1" style="left:1032px; top:49px; width:65px; height:23px; vertical-align:middle; ">서류상태</caption>
  1671. <caption id="caption9" class="cell_1" style="left:462px; top:49px; width:65px; height:23px; vertical-align:middle; ">검수일자</caption>
  1672. <input id="ipt_chkdd" ref="/root/main/component/rfehemhtlist/chkdd" class="input_default" disabled="true" navindex="15" inputtype="date" format="yyyy-mm-dd" style="left:530px; top:50px; width:95px; height:19px; "/>
  1673. <caption id="cap_rpiramt" class="cell_1" style="left:1043px; top:25px; width:55px; height:23px; vertical-align:middle; ">납품금액</caption>
  1674. <input id="ipt_rpiramt" ref="/root/main/component/rfehemhtlist/rpiramt" class="input_default" disabled="false" navindex="13" visibility="visible" format="#,###" style="left:1100px; top:26px; width:92px; height:19px; text-align:right; "/>
  1675. <button id="btn_chkpsn" class="icon_search" disabled="true" navindex="-1" style="left:360px; top:50px; width:16px; height:16px; ">
  1676. <caption/>
  1677. <script type="javascript" ev:event="DOMActivate">
  1678. <![CDATA[
  1679. misfOpenPopUpList("12", ipt_chkpsn, "", "chkpsn,chkpsnnm");
  1680. ipt_chkpsn.refresh();
  1681. ipt_chkpsnnm.refresh();
  1682. fResetState();
  1683. ]]>
  1684. </script>
  1685. </button>
  1686. <input id="ipt_chkpsn" ref="/root/main/component/rfehemhtlist/chkpsn" class="input_default" disabled="true" navindex="14" style="left:287px; top:50px; width:70px; height:19px; text-align:center; ">
  1687. <script type="javascript" ev:event="xforms-value-changed">
  1688. <![CDATA[
  1689. ipt_chkpsnnm.value = "";
  1690. if(ipt_chkpsn.value.length != 0){
  1691. misfValidationCheck("01-1", "", "chkpsn,chkpsnnm");
  1692. }
  1693. ipt_chkpsn.refresh();
  1694. ipt_chkpsnnm.refresh();
  1695. fResetState();
  1696. ]]>
  1697. </script>
  1698. </input>
  1699. <caption id="caption8" class="cell_1" style="left:219px; top:49px; width:65px; height:23px; vertical-align:middle; ">검수자</caption>
  1700. <input id="ipt_chkpsnnm" ref="/root/main/component/rfehemhtlist/chkpsnnm" class="output_fix" disabled="false" navindex="-1" editable="false" style="left:378px; top:50px; width:80px; height:19px; text-align:center; "/>
  1701. <input id="ipt_mngersanctid" ref="/root/main/component/rfehemhtlist/mngersanctid" class="input_default" navindex="21" style="left:739px; top:74px; width:70px; height:19px; ">
  1702. <script type="javascript" ev:event="xforms-value-changed">
  1703. <![CDATA[
  1704. if(ipt_mngersanctid.value.length == 0){
  1705. ipt_mngersanctnm.value = "";
  1706. }else{
  1707. misfValidationCheck("01-1", "", "mngersanctid,mngersanctnm");
  1708. }
  1709. ipt_mngersanctid.refresh();
  1710. ipt_mngersanctnm.refresh();
  1711. fResetState();
  1712. if(cmb_rpirflag2.value.length != 0){ // 수리형태(조치사항) 이 있을 경우
  1713. workstat = "03";
  1714. }
  1715. if(chk_rpirendyn.value == "Y"){ // 수리완료가 체크되어 있을 경우
  1716. workstat = "04";
  1717. }
  1718. var instcd = getUserInfo("dutplceinstcd");
  1719. if(instcd == "033"){
  1720. if(ipt_chrgpsnid.value.length != 0 && ipt_mngersanctid.value.length != 0){
  1721. cmb_workstat.value = "05";
  1722. cmb_docustat.value = "03";
  1723. }else if(ipt_chrgpsnid.value.length != 0 && ipt_mngersanctid.value.length == 0){
  1724. if( cmb_rpirflag2.value.length != 0){ //수리형태
  1725. if (chk_rpirendyn.value == "Y"){ //수리완료
  1726. cmb_workstat.value = "04";
  1727. cmb_docustat.value = "01";
  1728. }else{
  1729. cmb_workstat.value = "03";
  1730. cmb_docustat.value = "01";
  1731. }
  1732. }else{
  1733. cmb_workstat.value = "02";
  1734. cmb_docustat.value = "01";
  1735. }
  1736. }else{
  1737. cmb_workstat.value = "01";
  1738. cmb_docustat.value = "01";
  1739. }
  1740. }
  1741. cmb_workstat.refresh();
  1742. cmb_docustat.refresh();
  1743. fResetDisabled();
  1744. ]]>
  1745. </script>
  1746. </input>
  1747. <button id="btn_mngersanctid" class="icon_search" navindex="-1" style="left:811px; top:74px; width:16px; height:16px; ">
  1748. <caption/>
  1749. <script type="javascript" ev:event="DOMActivate">
  1750. <![CDATA[
  1751. misfOpenPopUpList("12", ipt_mngersanctid, "", "mngersanctid,mngersanctnm");
  1752. ipt_mngersanctid.refresh();
  1753. ipt_mngersanctnm.refresh();
  1754. fResetState();
  1755. ]]>
  1756. </script>
  1757. </button>
  1758. <input id="ipt_mngersanctnm" ref="/root/main/component/rfehemhtlist/mngersanctnm" class="output_fix" disabled="false" navindex="-1" editable="false" appearance="input" style="left:829px; top:74px; width:80px; height:19px; "/>
  1759. <caption id="caption13" class="cell_1" style="left:671px; top:73px; width:65px; height:23px; vertical-align:middle; ">과장 결재</caption>
  1760. <bool id="chk_rpirendyn" navindex="16" checkvalue="Y,N" ref="/root/main/component/rfehemhtlist/rpirendyn" style="left:698px; top:50px; width:20px; height:20px; ">
  1761. <script type="javascript" ev:event="xforms-value-changed">
  1762. <![CDATA[
  1763. fResetState();
  1764. ]]>
  1765. </script>
  1766. </bool>
  1767. <caption id="caption10" class="cell_1" style="left:629px; top:49px; width:65px; height:23px; vertical-align:middle; ">수리완료</caption>
  1768. <caption id="caption12" class="cell_1" style="left:720px; top:49px; width:80px; height:23px; vertical-align:middle; ">수리완료일자</caption>
  1769. <input id="ipt_rpirenddd" ref="/root/main/component/rfehemhtlist/rpirenddd" class="input_default" disabled="false" navindex="17" inputtype="date" format="yyyy-mm-dd" style="left:804px; top:50px; width:95px; height:19px; "/>
  1770. <caption id="caption14" class="cell_1" style="left:902px; top:49px; width:65px; height:23px; vertical-align:middle; ">소요일자</caption>
  1771. <input id="ipt_usedd" ref="/root/main/component/rfehemhtlist/usedd" class="input_default" disabled="true" navindex="-1" visibility="visible" format="#,###" style="left:970px; top:50px; width:57px; height:19px; text-align:right; "/>
  1772. <caption id="caption16" class="cell_1" style="left:638px; top:97px; width:100px; height:23px; vertical-align:middle; ">첨부파일</caption>
  1773. <button id="btn_attdownload" class="btn2_letter4" navindex="29" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1127px; top:99px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  1774. <caption>다운로드</caption>
  1775. <script type="javascript" ev:event="DOMActivate">
  1776. <![CDATA[
  1777. var filepath = model.getValue("/root/main/component/rfehemhtlist/filepath");
  1778. var fileseqno = model.getValue("/root/main/component/rfehemhtlist/fileseqno");
  1779. var filenm = model.getValue("/root/main/component/rfehemhtlist/filenm");
  1780. var fileExt = "*";
  1781. if(filenm != null && filenm != "") {
  1782. fileExt = filenm.substr(filenm.lastIndexOf('.')+1);
  1783. } else {
  1784. messageBox("첨부파일이 없습니다.", "E");
  1785. return;
  1786. }
  1787. var localfile = window.fileDialog("save","|",false,filenm,fileExt,"Files(*." + fileExt + ")|*." + fileExt);
  1788. if (localfile != "") {
  1789. model.download(getActionURL("TRRFC01102")+"&filepath="+filepath+"&fileseqno="+fileseqno,localfile);
  1790. var rtn = messageBox("파일을", "Q004");
  1791. if( rtn == 6 ) {
  1792. window.exec(localfile);
  1793. }
  1794. }
  1795. ]]>
  1796. </script>
  1797. </button>
  1798. <input id="ipt_attfilenm" ref="/root/main/component/rfehemhtlist/filenm" class="output_fix" disabled="false" navindex="28" editable="false" style="left:740px; top:99px; width:330px; height:19px; font-family:굴림체; font-size:8pt; text-align:left; vertical-align:middle; "/>
  1799. <button id="btn_attupload" class="btn2_letter3" navindex="18" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1073px; top:99px; width:53px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  1800. <caption>업로드</caption>
  1801. <script type="javascript" ev:event="DOMActivate">
  1802. <![CDATA[
  1803. if(model.getValue("/root/main/component/rfehemhtlist/filenm").length > 0) {
  1804. var rtn = messageBox("이미 등록 된 파일이 있습니다.\n삭제 하시겠습니까?", "Q");
  1805. if(rtn == "6") {
  1806. model.removeNodeset("/root/send/fileinfo/fileinfolist");
  1807. var str = "m▦fileseqno▦fixasetcd▦filepath▩d▦"
  1808. + model.getValue("/root/main/component/rfehemhtlist/fileseqno") + "▦"
  1809. + model.getValue("/root/main/component/rfehemhtlist/fixasetcd") + "▦"
  1810. + model.getValue("/root/main/component/rfehemhtlist/filepath") + "▩";
  1811. model.makeValue("/root/send/fileinfo/fileinfolist",str);
  1812. if(submit("TXRFC01102")) {
  1813. model.setValue("/root/main/component/rfehemhtlist/filenm","");
  1814. model.setValue("/root/main/component/rfehemhtlist/fileseqno","");
  1815. model.setValue("/root/main/component/rfehemhtlist/filepath","");
  1816. model.refresh();
  1817. } else {
  1818. messageBox("파일 삭제가 실패하였습니다.","E");
  1819. }
  1820. } else {
  1821. return;
  1822. }
  1823. }
  1824. var files = window.fileDialog("open", "|", false);
  1825. var replacepath = "";
  1826. if( files.length <= 0 ) return;
  1827. model.setValue(ipt_uploadfile.attribute("ref") , files); //전체파일경로와이름을 셋팅
  1828. var filename = files.substring(files.lastIndexOf('\\')+1 , files.length ); //파일이름만 나오게 문자정리
  1829. model.setValue(ipt_attfilenm.attribute("ref") , filename);
  1830. if (model.getValue( ipt_uploadfile.attribute("ref") ).length > 0) {
  1831. var maxsize = upd_uploadfile.attribute("filesize");
  1832. model.setValue("/root/send/fileupcolumn/refinstcd" , model.getValue("/root/main/component/rfehemhtlist/instcd"));
  1833. model.setValue("/root/send/fileupcolumn/refdeptcd", getUserInfo("dutplcecd"));
  1834. model.setValue("/root/send/fileupcolumn/refpsnid" , getUserInfo("userid"));
  1835. model.setValue("/root/send/fileupcolumn/fixasetcd" , model.getValue("/root/main/component/rfehemhtlist/fixasetcd"));
  1836. model.setValue("/root/send/fileupcolumn/reqdd" , model.getValue("/root/main/component/rfehemhtlist/reqdd"));
  1837. model.setValue("/root/send/fileupcolumn/reqno" , model.getValue("/root/main/component/rfehemhtlist/reqno"));
  1838. if(submit("TXRFC01101")) {
  1839. model.setValue("/root/main/component/rfehemhtlist/filenm",model.getValue("/root/temp/attfileinfo/filenm"));
  1840. model.setValue("/root/main/component/rfehemhtlist/fileseqno",model.getValue("/root/temp/attfileinfo/fileseqno"));
  1841. model.setValue("/root/main/component/rfehemhtlist/filepath",model.getValue("/root/temp/attfileinfo/filepath"));
  1842. model.refresh();
  1843. }
  1844. }
  1845. //fFileAdd();
  1846. ]]>
  1847. </script>
  1848. </button>
  1849. <upload id="upd_uploadfile" nodeset="/root/send/fileupcolumn/fileupload/file" filecount="5" filesize="10485760" validate="true" style="left:720px; top:100px; width:15px; height:15px; "/>
  1850. <input id="ipt_uploadfile" ref="/root/send/fileupcolumn/fileupload/file" visibility="hidden" style="left:700px; top:99px; width:15px; height:19px; "/>
  1851. <caption id="caption18" class="cell_1" style="left:897px; top:25px; width:55px; height:23px; vertical-align:middle; ">견적금액</caption>
  1852. <input id="ipt_estiamt" ref="/root/main/component/rfehemhtlist/estimateamt" class="input_default" disabled="false" navindex="13" visibility="visible" format="#,###" style="left:953px; top:26px; width:87px; height:19px; text-align:right; "/>
  1853. </case>
  1854. </switch>
  1855. <line id="line29" class="line_1" style="x1:0px; y1:602px; x2:1195px; y2:602px; "/>
  1856. <caption id="caption81" class="tit_2" style="left:5px; top:587px; width:70px; height:13px; ">부품목록</caption>
  1857. <line id="line30" class="line_1" style="x1:940px; y1:153px; x2:1195px; y2:154px; "/>
  1858. <datagrid id="tempgrd_rfemdamklist" nodeset="/root/main/tempgrid/rfemdamklist" visibility="hidden" caption="일자^주수리자^보조수리자" colsep="^" colwidth="75, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100,100" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" navindex="7" style="left:940px; top:200px; width:255px; height:50px; ">
  1859. <col ref="rpirdd"/>
  1860. <col ref="mainrpirpsnnm"/>
  1861. <col ref="supprpirpsnnm"/>
  1862. <col ref="mainrpirpsn" visibility="hidden"/>
  1863. <col ref="supprpirpsn" visibility="hidden"/>
  1864. <col ref="rpirtm" visibility="hidden"/>
  1865. <col ref="rpirspec" visibility="hidden"/>
  1866. <col ref="instcd" visibility="hidden"/>
  1867. <col ref="fixtrseqmtflag" visibility="hidden"/>
  1868. <col ref="reqdd" visibility="hidden"/>
  1869. <col ref="reqno" visibility="hidden"/>
  1870. <col ref="brpirdd" visibility="hidden"/>
  1871. </datagrid>
  1872. <line id="line2" class="line_6" style="x1:0px; y1:0px; x2:1195px; y2:0px; "/>
  1873. <input id="ipt_rowtemp" ref="/root/init/rowtemp" visibility="hidden" style="left:1000px; top:181px; width:40px; height:19px; "/>
  1874. <input id="ipt_rowtemp2" ref="/root/init/rowtemp2" visibility="hidden" style="left:730px; top:181px; width:40px; height:19px; "/>
  1875. <button id="btn_search" class="btn1_letter2" navindex="3" visibility="hidden" style="left:1139px; top:130px; width:56px; height:22px; ">
  1876. <caption>조회</caption>
  1877. <script type="javascript" ev:event="DOMActivate">
  1878. <![CDATA[
  1879. model.makeValue("/root/send/sendlist/bizscrnid" , "SMRFE00600");
  1880. submit("TRRFE00601");
  1881. if(grd_rfehemhtlist.rows > grd_rfehemhtlist.fixedRows)
  1882. {
  1883. // Popup 으로 불려지면 기관코드, 자산코드 값 설정.
  1884. if(model.getValue("/root/temp/fixasetcd") != "") {
  1885. for(var i=grd_rfehemhtlist.fixedRows; i<grd_rfehemhtlist.rows; i++) {
  1886. if(grd_rfehemhtlist.valueMatrix(i,grd_rfehemhtlist.colRef("reqdd")) == model.getValue("/root/temp/reqdd")
  1887. && grd_rfehemhtlist.valueMatrix(i,grd_rfehemhtlist.colRef("reqno")) == model.getValue("/root/temp/reqno")) {
  1888. grd_rfehemhtlist.row = i;
  1889. grd_rfehemhtlist.topRow = i - (i>1?1:0);
  1890. break;
  1891. }
  1892. }
  1893. } else {
  1894. grd_rfehemhtlist.row = 1;
  1895. }
  1896. grd_rfehemhtlist.dispatch("onrowchanged");
  1897. if( grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("sancttrsmyn")) == "Y")
  1898. {
  1899. // 의뢰일별 목록, 수리일자별목록 추가,삭제,저장 모드 설정
  1900. btn_save.disabled = true;
  1901. // 결재전송유무버튼
  1902. btn_send.disabled = true;
  1903. }
  1904. // grid 입력 제한
  1905. misfSetReadOnlyCol(grd_rfehemhtlist, "reqdd,reqno,depthngnm,reqtel,chrgpsnnm,acptdd,rpirenddd,lastrpirstat,acptflag,workstat,rpirflag1,rpiramt,sanctyn", true);
  1906. } else
  1907. {
  1908. messageBox(" 수리 목록에 \n등록되지 않은 자산코드", "E008");
  1909. fInitialize();
  1910. btn_save.disabled = true;
  1911. // 결재전송유무버튼
  1912. btn_send.disabled = true;
  1913. }
  1914. ]]>
  1915. </script>
  1916. </button>
  1917. <datagrid id="tempgrd_rfehemhtlist" nodeset="/root/main/tempgrid/rfehemhtlist" visibility="hidden" allowselection="false" caption="의뢰일자^의뢰일자^관리부서^의뢰자 연락처^담당자^납품일자^완료일자^상태^수리형태^접수구분^수리상태^고장유형^납품금액" colsep="^" colwidth="69, 30, 90, 84, 59, 71, 71, 60, 60, 64, 66, 70, 79, 93, 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, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" selectionmode="byrow" tooltip="true" navindex="5" style="left:0px; top:200px; width:935px; height:45px; ">
  1918. <col disabled="true" ref="reqdd" format="yyyy-mm-dd" _key="true"/>
  1919. <col disabled="true" ref="reqno" _key="true"/>
  1920. <col disabled="true" ref="depthngnm"/>
  1921. <col disabled="true" ref="reqtel"/>
  1922. <col disabled="true" ref="chrgpsnnm"/>
  1923. <col disabled="true" ref="acptdd" format="yyyy-mm-dd"/>
  1924. <col disabled="true" ref="rpirenddd" format="yyyy-mm-dd"/>
  1925. <col disabled="true" ref="lastrpirstat"/>
  1926. <col disabled="true" ref="rpirflag2" visibility="hidden"/>
  1927. <col disabled="true" ref="acptflag"/>
  1928. <col disabled="true" ref="workstat"/>
  1929. <col disabled="true" ref="rpirflag1"/>
  1930. <col disabled="true" ref="rpiramt"/>
  1931. <col ref="reqdeptcd" visibility="hidden"/>
  1932. <col ref="chrgpsnid" visibility="hidden"/>
  1933. <col ref="genrdd" visibility="hidden"/>
  1934. <col ref="estimateamt" visibility="hidden"/>
  1935. <col ref="sanctid" visibility="hidden"/>
  1936. <col ref="sanctnm" visibility="hidden"/>
  1937. <col ref="reductionamt" visibility="hidden"/>
  1938. <col ref="useyn" visibility="hidden"/>
  1939. <col ref="nonworkdayno" visibility="hidden"/>
  1940. <col ref="custcd" visibility="hidden"/>
  1941. <col ref="custnm" visibility="hidden"/>
  1942. <col ref="hdrncspec" visibility="hidden"/>
  1943. <col ref="chrgpsncmt" visibility="hidden"/>
  1944. <col ref="lastrpirrslt" visibility="hidden"/>
  1945. <col ref="instcd" visibility="hidden" _key="true"/>
  1946. <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
  1947. <col ref="reqpsnid" visibility="hidden"/>
  1948. <col ref="reqpsnnm" visibility="hidden"/>
  1949. <col ref="genrtm" visibility="hidden"/>
  1950. <col ref="acpttm" visibility="hidden"/>
  1951. <col ref="acptpsnid" visibility="hidden"/>
  1952. <col ref="acptpsnnm" visibility="hidden"/>
  1953. <col ref="acptdeptcd" visibility="hidden"/>
  1954. <col ref="acptdeptnm" visibility="hidden"/>
  1955. <col ref="fixasetcd" visibility="hidden"/>
  1956. <col ref="fixasetnm" visibility="hidden"/>
  1957. <col ref="itemnm" visibility="hidden"/>
  1958. <col ref="acptpsncnfm" visibility="hidden"/>
  1959. <col ref="deptacptdd" visibility="hidden"/>
  1960. <col ref="deptacptpsnid" visibility="hidden"/>
  1961. <col ref="deptacptpsnnm" visibility="hidden"/>
  1962. <col ref="cmt" visibility="hidden"/>
  1963. <col ref="sanctyn" visibility="hidden"/>
  1964. <col ref="sanctdd" visibility="hidden"/>
  1965. <col ref="emaildeliveyn" visibility="hidden"/>
  1966. <col ref="goodmodel" visibility="hidden"/>
  1967. <col ref="installplcecd" visibility="hidden"/>
  1968. <col ref="installplcenm" visibility="hidden"/>
  1969. <col ref="sancttrsmyn" visibility="hidden"/>
  1970. <col ref="chrgtel" visibility="hidden"/>
  1971. <col ref="bugtyy" visibility="hidden"/>
  1972. <col ref="bugtcd" visibility="hidden"/>
  1973. <col ref="stdysubjno" visibility="hidden"/>
  1974. <col ref="stdysubjnm" visibility="hidden"/>
  1975. <col ref="deptaprvyn" visibility="hidden"/>
  1976. <col ref="deptaprvpsnid" visibility="hidden"/>
  1977. <col ref="deptaprvdd" visibility="hidden"/>
  1978. <col ref="rfehdabptotal" visibility="hidden"/>
  1979. <col ref="rpirendyn" visibility="hidden"/>
  1980. <col ref="usedd" visibility="hidden"/>
  1981. <col ref="fileseqno" visibility="hidden"/>
  1982. <col ref="filenm" visibility="hidden"/>
  1983. <col ref="filepath" visibility="hidden"/>
  1984. <col disabled="true" ref="estiamt"/>
  1985. </datagrid>
  1986. </group>
  1987. <group id="group3" style="left:0px; top:12; width:1195px; height:27; ">
  1988. <button id="btn_init" class="btn4_letter3" navindex="40" style="left:1126px; top:4px; width:68px; height:22px; ">
  1989. <caption>초기화</caption>
  1990. <script type="javascript" ev:event="DOMActivate">
  1991. <![CDATA[
  1992. fInitialize();
  1993. ]]>
  1994. </script>
  1995. </button>
  1996. <line id="line1" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  1997. <button id="btn_send" class="btn4_letter4" disabled="true" navindex="38" visibility="hidden" style="left:980px; top:3; width:80px; height:22px; ">
  1998. <caption>결제전송</caption>
  1999. <script type="javascript" ev:event="DOMActivate">
  2000. <![CDATA[
  2001. ipt_sancttrsmyn.value = "Y";
  2002. if(model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/sanctyn") == "R")
  2003. model.setValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/sanctyn","A");
  2004. btn_save.dispatch("DOMActivate");
  2005. ]]>
  2006. </script>
  2007. </button>
  2008. <button id="btn_save" class="btn4_letter2" disabled="true" navindex="39" style="left:1065px; top:3px; width:56px; height:22px; ">
  2009. <caption>저장</caption>
  2010. <script type="javascript" ev:event="DOMActivate">
  2011. <![CDATA[
  2012. var workstat = model.getValue(cmb_workstat.attribute("ref"));
  2013. var focus = grd_rfehemhtlist.row;
  2014. // var sChrgpsnid = ipt_chrgpsnid.value; // 담당자ID와 접수자 ID 저장
  2015. // var sAcptpsnid = ipt_acptpsnid.value;
  2016. // var sDeptcd = ipt_custcd.value;
  2017. //
  2018. // model.setValue("/root/send/sendlist/chrgpsnid", sChrgpsnid); // chrgpsnid, acptpsnid에 매핑
  2019. // model.setValue("/root/send/sendlist/acptpsnid", sAcptpsnid);
  2020. // model.setValue("/root/send/sendlist/deptcd", sDeptcd);
  2021. // if( checkKeyColumn("grd_rfehemhtlist") == false) return;
  2022. // 기본 if( checkKeyColumn("grd_rfemdamklist") == false) return;
  2023. if( checkKeyColumn("grd_rfehdabplist") == false) return;
  2024. for( var fRow = grd_rfehdabplist.fixedRows; fRow < grd_rfehdabplist.rows; fRow++)
  2025. {
  2026. if( grd_rfehdabplist.valueMatrix(fRow, grd_rfehdabplist.colRef("acsrscd")) == "" )
  2027. {
  2028. messageBox("부품목록의 부품코드를", "C001");
  2029. return;
  2030. }
  2031. if( grd_rfehdabplist.valueMatrix(fRow, grd_rfehdabplist.colRef("acsrsqty")) == ""
  2032. || grd_rfehdabplist.valueMatrix(fRow, grd_rfehdabplist.colRef("acsrsqty")) == "0" )
  2033. {
  2034. messageBox("부품목록의 부품수량을", "C001");
  2035. return;
  2036. }
  2037. }
  2038. var fsend = "";
  2039. var fmcode = "Q002";
  2040. if(ipt_sancttrsmyn.value == "Y")
  2041. {
  2042. fsend = "[-- 전송작업 실행시 현재 데이터를 수정할 수 없게 됩니다. --]\n\n 전송 작업을";
  2043. fmcode = "Q003";
  2044. }
  2045. if(messageBox(fsend, fmcode) == 6)
  2046. {
  2047. if(grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row) != 1){
  2048. grd_rfehemhtlist.addStatus(grd_rfehemhtlist.row, "update");
  2049. // 저장시 최종 수리내역 입력 -->>
  2050. var totalCmtDD = "";
  2051. var totalCmt = "";
  2052. for(var i=1; i < grd_rfemdamklist.rows; i++)
  2053. {
  2054. totalCmtDD = grd_rfemdamklist.valueMatrix( i, grd_rfemdamklist.colRef("rpirdd"));
  2055. totalCmt += (
  2056. totalCmtDD.substr(0,4) + "-" + totalCmtDD.substr(4,2) + "-" + totalCmtDD.substr(6,2) + " >>\n"
  2057. + grd_rfemdamklist.valueMatrix( i, grd_rfemdamklist.colRef("rpirspec")) + "\n"
  2058. );
  2059. }
  2060. txt_lastrpirrslt.value = totalCmt;
  2061. // <<--저장시 최종 수리내역 입력
  2062. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat")) = cmb_workstat.value;
  2063. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("docustat")) = cmb_docustat.value;
  2064. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirflag1")) = cmb_rpirflag1.value;
  2065. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirflag2")) = cmb_rpirflag2.value;
  2066. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("sanctid")) = ipt_sanctid.value;
  2067. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("estimateamt")) = ipt_estimateamt.value;
  2068. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reductionamt")) = ipt_reductionamt.value;
  2069. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("custcd")) = ipt_custcd.value;
  2070. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("nonworkdayno")) = ipt_nonworkdayno.value;
  2071. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("lastrpirrslt")) = txt_lastrpirrslt.value;
  2072. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirenddd")) = ipt_rpirenddd.value;
  2073. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpiramt")) = ipt_rpiramt.value;
  2074. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkpsn")) = ipt_chkpsn.value;
  2075. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkpsnnm")) = ipt_chkpsnnm.value;
  2076. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkdd")) = ipt_chkdd.value;
  2077. //grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deliveamt")) = ipt_deliveamt.value;
  2078. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("useyn")) = rdo_useyn.value;
  2079. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("sancttrsmyn")) = ipt_sancttrsmyn.value;
  2080. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvyn")) = bool_deptaprvyn.value;
  2081. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgtel")) = ipt_chrgtel.value;
  2082. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvdd")) = ipt_deptaprvdd.value;
  2083. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnid")) = ipt_deptaprvpsnid.value;
  2084. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("mngersanctid")) = ipt_mngersanctid.value;
  2085. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deprtmangrsanctid")) = ipt_deprtmangrsanctid.value;
  2086. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirendyn")) = chk_rpirendyn.value;
  2087. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("estiamt")) = ipt_estiamt.value;
  2088. if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acptpsnid") == "")
  2089. ipt_acptpsnid.value = getUserInfo("userid");
  2090. if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acptdeptcd") == "")
  2091. ipt_acptdeptcd.value = getUserInfo("dutplcecd");
  2092. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgpsnid")) = ipt_chrgpsnid.value;
  2093. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptpsnid")) = ipt_acptpsnid.value;
  2094. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptdd")) = ipt_acptdd.value;
  2095. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acpttm")) = ipt_acpttm.value;
  2096. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptdeptcd")) = ipt_acptdeptcd.value;
  2097. //20100330 이현민추가
  2098. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("bizscrnid")) = "SMRFE00600_수리상세등록.xrw";
  2099. }
  2100. // 수리일자별 목록 저장
  2101. if( ipt_insStatus.value == 1 )
  2102. {
  2103. if( !isRequiredControls("ipt_rpirdd") )return;
  2104. if( !isRequiredControls("ipt_mainrpirpsn") )return;
  2105. //if( !isRequiredControls("ipt_rpirtm") )return; //필수입력사항으로 등록을 안했을경우 return시키는 부분인데 현업요청으로 뺌
  2106. if( !isRequiredControls("txt_rpirspec") )return;
  2107. //misfGridIUD(grd_rfemdamklist, "A");
  2108. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("instcd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd"));
  2109. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("fixtrseqmtflag")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("fixtrseqmtflag"));
  2110. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqdd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd"));
  2111. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqno")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno"));
  2112. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirdd")) = ipt_rpirdd.value;
  2113. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsn")) = ipt_mainrpirpsn.value;
  2114. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsnnm")) = ipt_mainrpirpsnnm.value;
  2115. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsn")) = ipt_supprpirpsn.value;
  2116. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsnnm")) = ipt_supprpirpsnnm.value;
  2117. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirspec")) = txt_rpirspec.value;
  2118. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirtm")) = ipt_rpirtm.value;
  2119. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvyn")) = bool_deptaprvyn.value;
  2120. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("chrgtel")) = ipt_chrgtel.value;
  2121. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvdd")) = ipt_deptaprvdd.value;
  2122. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvpsnid")) = ipt_deptaprvpsnid.value;
  2123. // if (model.getValue("/root/main/grid/rfehemhtlist/chrgpsnid") == "")
  2124. // {
  2125. // ipt_chrgpsnid.value = getUserInfo("userid");
  2126. // }
  2127. // if (model.getValue("/root/main/grid/rfehemhtlist/acptpsnid") == "")
  2128. // {
  2129. // ipt_acptpsnid.value = getUserInfo("userid");
  2130. // }
  2131. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("chrgpsnid")) = ipt_chrgpsnid.value;
  2132. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("acptpsnid")) = ipt_acptpsnid.value;
  2133. }else if( ipt_insStatus.value == 2)
  2134. {
  2135. grd_rfemdamklist.addStatus(grd_rfemdamklist.row, "update");
  2136. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirdd")) = ipt_rpirdd.value;
  2137. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsn")) = ipt_mainrpirpsn.value;
  2138. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsnnm")) = ipt_mainrpirpsnnm.value;
  2139. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsn")) = ipt_supprpirpsn.value;
  2140. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsnnm")) = ipt_supprpirpsnnm.value;
  2141. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirspec")) = txt_rpirspec.value;
  2142. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirtm")) = ipt_rpirtm.value;
  2143. // if (model.getValue("/root/main/grid/rfehemhtlist/chrgpsnid") == "")
  2144. // {
  2145. // ipt_chrgpsnid.value = getUserInfo("userid");
  2146. // }
  2147. // if (model.getValue("/root/main/grid/rfehemhtlist/acptpsnid") == "")
  2148. // {
  2149. // ipt_acptpsnid.value = getUserInfo("userid");
  2150. // }
  2151. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("chrgpsnid")) = ipt_chrgpsnid.value;
  2152. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("acptpsnid")) = ipt_acptpsnid.value;
  2153. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvyn")) = bool_deptaprvyn.value;
  2154. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("chrgtel")) = ipt_chrgtel.value;
  2155. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvdd")) = ipt_deptaprvdd.value;
  2156. // grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("deptaprvpsnid")) = ipt_deptaprvpsnid.value;
  2157. }
  2158. // 수리일자별 추가 식별너머 초기화
  2159. ipt_insStatus.value = 0;
  2160. // 수리일자별 컨포넌트 컨트롤 모드 변환.
  2161. fRfemdamkComponentsTF(false,'Y');
  2162. // 모든 그리드의 데이터 전송준비.
  2163. model.copyNode("/root/send/grid", "/root/main/grid");
  2164. // 전송 스따뜨~!!!
  2165. misfSave("TXRFE00601");
  2166. if (model.getValue(gvErrorMsgPath + "/type") != "error") btn_search.dispatch("DOMActivate");
  2167. }else{
  2168. ipt_sancttrsmyn.value = "";
  2169. return;
  2170. }
  2171. model.setFocus("grd_rfehemhtlist");
  2172. grd_rfehemhtlist.row = focus;
  2173. grd_rfehemhtlist.dispatch("onrowchanged");
  2174. ]]>
  2175. </script>
  2176. </button>
  2177. <button id="btn_print" class="btn6_letter2" navindex="36" style="left:0px; top:3px; width:56px; height:22px; ">
  2178. <caption>출력</caption>
  2179. <script type="javascript" ev:event="DOMActivate">
  2180. <![CDATA[
  2181. model.resetInstanceNode("/root/send/sendprint");
  2182. model.setValue("/root/send/sendprint/instcd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd")) );
  2183. model.setValue("/root/send/sendprint/reqdd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd")) );
  2184. model.setValue("/root/send/sendprint/reqno", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno")) );
  2185. model.setValue("/root/send/sendprint/fixtrseqmtflag", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("fixtrseqmtflag")) );
  2186. if(submit("TRRFE00703")){
  2187. exeReportPreview("RPRFE00601", "XMLSTR");
  2188. }
  2189. ]]>
  2190. </script>
  2191. </button>
  2192. <button id="btn_print2" class="btn6_letter6" navindex="37" visibility="hidden" style="left:60px; top:3px; width:104px; height:22px; ">
  2193. <caption>수리이력 출력</caption>
  2194. <script type="javascript" ev:event="DOMActivate">
  2195. <![CDATA[
  2196. model.resetInstanceNode("/root/print/PrintRfehemht");
  2197. model.resetInstanceNode("/root/send/sendprint");
  2198. model.setValue("/root/send/sendprint/instcd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd")) );
  2199. model.setValue("/root/send/sendprint/chrgpsnid", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgpsnid")) );
  2200. model.setValue("/root/send/sendprint/reqdd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd")) );
  2201. model.setValue("/root/send/sendprint/reqdd2", model.getValue("/root/send/sendprint/reqdd"));
  2202. model.setValue("/root/send/sendprint/reqno", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno")) );
  2203. model.setValue("/root/send/sendprint/reqno2", model.getValue("/root/send/sendprint/reqno"));
  2204. model.setValue("/root/send/sendprint/reqdeptcd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdeptcd")) );
  2205. submit("TRRFE00701");
  2206. for(var i=grd_rfehemhtlist.fixedRows;i<grd_rfehemhtlist.rows;i++){
  2207. model.makeValue("/root/main/grid/rfehemhtlist[" + i + "]/rpirflag2nm", grd_rfehemhtlist.labelMatrix(i, grd_rfehemhtlist.colRef("rpirflag2")));
  2208. }
  2209. exeReportPreview("RPRFE00602", "XMLSTR");
  2210. ]]>
  2211. </script>
  2212. </button>
  2213. <button id="button5" class="btn6_letter4" navindex="-1" visibility="hidden" style="left:165px; top:3px; width:80px; height:22px; ">
  2214. <caption>전자결재</caption>
  2215. <script type="javascript" ev:event="DOMActivate">
  2216. <![CDATA[
  2217. fElctSanct();
  2218. ]]>
  2219. </script>
  2220. </button>
  2221. </group>
  2222. <group id="grp_hidden" visibility="hidden" style="left:140px; top:685px; width:960px; height:80px; ">
  2223. <input id="ipt_estimateamt" ref="/root/main/component/rfehemhtlist/estimateamt" class="input_default" disabled="true" visibility="hidden" format="#,###" style="left:725px; top:5px; width:80px; height:19px; text-align:right; "/>
  2224. <caption id="cap_estimateamt" class="cell_1" visibility="hidden" style="left:643px; top:5px; width:80px; height:23px; vertical-align:middle; ">외주 견적</caption>
  2225. <input id="ipt_nonworkdayno" ref="/root/main/component/rfehemhtlist/nonworkdayno" class="input_s_essential" visibility="hidden" format="999999999" style="left:330px; top:5px; width:125px; height:19px; text-align:right; "/>
  2226. <input id="ipt_sancttrsmyn" ref="/root/init/sancttrsmyn" visibility="hidden" style="left:5px; top:30px; width:50px; height:19px; "/>
  2227. <input id="ipt_rfehdabptotal" ref="/root/main/component/rfehemhtlist/rfehdabptotal" class="input_fix" disabled="true" visibility="hidden" format="#,###" style="left:547px; top:5px; width:85px; height:19px; text-align:right; "/>
  2228. <input id="ipt_purcagresnnm" ref="/root/main/component/rfehemhtlist/purcagresnnm" class="output_fix" disabled="true" navindex="-1" visibility="hidden" style="left:314px; top:30px; width:27px; height:19px; "/>
  2229. <input id="ipt_sanctid" ref="/root/main/component/rfehemhtlist/sanctid" visibility="hidden" style="left:530px; top:30px; width:25px; height:19px; "/>
  2230. <input id="ipt_acpttm" ref="/root/main/component/rfehemhtlist/acpttm" visibility="hidden" style="left:471px; top:30px; width:25px; height:19px; "/>
  2231. <caption id="cap_purcagresnnm" class="cell_1" visibility="hidden" style="left:237px; top:30px; width:74px; height:20px; vertical-align:middle; ">구매 결재자</caption>
  2232. <caption id="caption11" class="cell_1" visibility="hidden" style="left:120px; top:30px; width:70px; height:20px; vertical-align:middle; ">결재일자</caption>
  2233. <caption id="caption4" class="cell_1" visibility="hidden" style="left:5px; top:5px; width:100px; height:23px; vertical-align:middle; ">견 적</caption>
  2234. <input id="ipt_outestimateamt" ref="/root/main/component/rfehemhtlist/outestimateamt" class="input_default" disabled="false" visibility="hidden" format="#,###" style="left:110px; top:5px; width:70px; height:19px; text-align:right; "/>
  2235. <select1 id="cmb_rpirflag1" ref="/root/main/component/rfehemhtlist/rpirflag1" class="input_default" navindex="11" visibility="hidden" appearance="minimal" style="left:66px; top:55px; width:35px; height:19px; ">
  2236. <choices>
  2237. <itemset>
  2238. <label/>
  2239. <value/>
  2240. </itemset>
  2241. </choices>
  2242. </select1>
  2243. <input id="ipt_purcagredd" ref="/root/main/component/rfehemhtlist/purcagredd" class="input_default" disabled="true" navindex="9" visibility="hidden" format="yyyy-mm-dd" style="left:194px; top:30px; width:37px; height:19px; "/>
  2244. <input id="ipt_insStatus" ref="/root/init/insStatus" visibility="hidden" style="left:60px; top:30px; width:50px; height:19px; "/>
  2245. <input id="ipt_acptdeptcd" ref="/root/main/component/rfehemhtlist/acptdeptcd" visibility="hidden" style="left:446px; top:30px; width:25px; height:19px; "/>
  2246. <input id="ipt_reductionamt" ref="/root/main/component/rfehemhtlist/reductionamt" class="input_default" disabled="false" visibility="hidden" format="#,###" style="left:269px; top:5px; width:70px; height:19px; text-align:right; "/>
  2247. <caption id="cap_rpirflag1" class="cell_1" visibility="hidden" style="left:5px; top:55px; width:56px; height:23px; vertical-align:middle; ">고장유형</caption>
  2248. <input id="ipt_deptaprvpsnid" ref="/root/main/component/rfehemhtlist/deptaprvpsnid" visibility="hidden" style="left:385px; top:30px; width:30px; height:19px; "/>
  2249. <caption id="cap_rfehdabptotal" class="cell_1" visibility="hidden" style="left:465px; top:5px; width:80px; height:23px; vertical-align:middle; ">전 도 금</caption>
  2250. <caption id="cap_reductionamt" class="cell_1" visibility="hidden" style="left:187px; top:5px; width:80px; height:23px; vertical-align:middle; ">절감액</caption>
  2251. <input id="ipt_deptaprvdd" ref="/root/main/component/rfehemhtlist/deptaprvdd" visibility="hidden" style="left:416px; top:30px; width:30px; height:19px; "/>
  2252. <caption id="cap_useyn" class="cell_1" visibility="hidden" style="left:115px; top:55px; width:60px; height:23px; vertical-align:middle; ">수리구분</caption>
  2253. <bool id="bool_deptaprvyn" visibility="hidden" checkvalue="Y,N" overflow="visible" appearance="full" ref="/root/main/component/rfehemhtlist/deptaprvyn" style="left:460px; top:55px; width:30px; height:20px; border-style:none; ">
  2254. <script type="javascript" ev:event="xforms-value-changed">
  2255. <![CDATA[
  2256. if(bool_deptaprvyn.value == 'N')
  2257. {
  2258. ipt_deptaprvdd.value = "";
  2259. ipt_deptaprvpsnid.value= "";
  2260. }
  2261. ]]>
  2262. </script>
  2263. </bool>
  2264. <input id="ipt_acptpsnid" ref="/root/main/component/rfehemhtlist/acptpsnid" visibility="hidden" style="left:440px; top:55px; width:25px; height:19px; "/>
  2265. <select1 id="cmb_deptaprvreqyn" ref="/root/main/component/rfehemhtlist/deptaprvreqyn" visibility="hidden" appearance="minimal" style="left:210px; top:55px; width:100px; height:19px; ">
  2266. <choices>
  2267. <item>
  2268. <label>승인불필요</label>
  2269. <value>N</value>
  2270. <label>승인</label>
  2271. <value>Y</value>
  2272. <label>재입력요청</label>
  2273. <value>R</value>
  2274. </item>
  2275. </choices>
  2276. </select1>
  2277. <input id="ipt_deptaprvpsnnm" ref="/root/main/component/rfehemhtlist/deptaprvpsnnm" disabled="true" style="left:310px; top:55px; width:85px; height:19px; "/>
  2278. <button id="btn_uprfehemht" class="btn2_letter2" visibility="hidden" style="left:865px; top:5px; width:42px; height:19px; ">
  2279. <caption>넘1</caption>
  2280. <script type="javascript" ev:event="DOMActivate">
  2281. <![CDATA[
  2282. if( messageBox("자산수리의 변경된 내용을 수정하시겠습니까?", "Q999") == 6)
  2283. {
  2284. if(grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row) != 1){
  2285. grd_rfehemhtlist.addStatus(grd_rfehemhtlist.row, "update");
  2286. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("workstat")) = cmb_workstat.value;
  2287. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("docustat")) = cmb_docustat.value;
  2288. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirflag1")) = cmb_rpirflag1.value;
  2289. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirflag2")) = cmb_rpirflag2.value;
  2290. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("sanctid")) = ipt_sanctid.value;
  2291. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("estimateamt")) = ipt_estimateamt.value;
  2292. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reductionamt")) = ipt_reductionamt.value;
  2293. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("custcd")) = ipt_custcd.value;
  2294. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("nonworkdayno")) = ipt_nonworkdayno.value;
  2295. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("lastrpirrslt")) = txt_lastrpirrslt.value;
  2296. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpirenddd")) = ipt_rpirenddd.value;
  2297. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpiramt")) = ipt_rpiramt.value;
  2298. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkpsn")) = ipt_chkpsn.value;
  2299. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkpsnnm")) = ipt_chkpsnnm.value;
  2300. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chkdd")) = ipt_chkdd.value;
  2301. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("useyn")) = rdo_useyn.value;
  2302. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvyn")) = bool_deptaprvyn.value;
  2303. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgtel")) = ipt_chrgtel.value;
  2304. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvdd")) = ipt_deptaprvdd.value;
  2305. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("deptaprvpsnid")) = ipt_deptaprvpsnid.value;
  2306. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("estiamt")) = ipt_estiamt.value;
  2307. if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/chrgpsnid") == "")
  2308. ipt_chrgpsnid.value = getUserInfo("userid");
  2309. if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acptpsnid") == "")
  2310. ipt_acptpsnid.value = getUserInfo("userid");
  2311. if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acptdd") == "")
  2312. ipt_acptdd.value = getCurrentDate("YYMMDD");
  2313. if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acpttm") == "")
  2314. {
  2315. var gDate = new Date();
  2316. ipt_acpttm.value = gDate.getHours()+""+gDate.getMinutes();
  2317. }
  2318. if (model.getValue("/root/main/grid/rfehemhtlist["+grd_rfehemhtlist.row+"]/acptdeptcd") == "")
  2319. ipt_acptdeptcd.value = getUserInfo("dutplcecd");
  2320. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgpsnid")) = ipt_chrgpsnid.value;
  2321. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptpsnid")) = ipt_acptpsnid.value;
  2322. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptdd")) = ipt_acptdd.value;
  2323. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acpttm")) = ipt_acpttm.value;
  2324. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptdeptcd")) = ipt_acptdeptcd.value;
  2325. }
  2326. fRfemdamkComponentsTF(false,'Y');
  2327. model.refresh();
  2328. }
  2329. ]]>
  2330. </script>
  2331. </button>
  2332. <button id="btn_upRfemdamk" class="btn2_letter2" visibility="hidden" style="left:909px; top:5px; width:42px; height:19px; ">
  2333. <caption>넘2</caption>
  2334. <script type="javascript" ev:event="DOMActivate">
  2335. <![CDATA[
  2336. if( messageBox("일별수리내역의 변경된 내용을 수정하시겠습니까?", "Q999") == 6)
  2337. {
  2338. if(grd_rfemdamklist.rowStatus(grd_rfemdamklist.row) != 1){
  2339. grd_rfemdamklist.addStatus(grd_rfemdamklist.row, "update");
  2340. }
  2341. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirdd")) = ipt_rpirdd.value;
  2342. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsn")) = ipt_mainrpirpsn.value;
  2343. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("mainrpirpsnnm")) = ipt_mainrpirpsnnm.value;
  2344. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsn")) = ipt_supprpirpsn.value;
  2345. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("supprpirpsnnm")) = ipt_supprpirpsnnm.value;
  2346. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirspec")) = txt_rpirspec.value;
  2347. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("rpirtm")) = ipt_rpirtm.value;
  2348. fRfemdamkComponentsTF(false,'Y');
  2349. model.refresh();
  2350. }
  2351. ]]>
  2352. </script>
  2353. </button>
  2354. <button id="btn_insert" class="btn2_letter3" visibility="hidden" style="left:810px; top:5px; width:53px; height:19px; ">
  2355. <caption>행추가</caption>
  2356. <script type="javascript" ev:event="DOMActivate">
  2357. <![CDATA[
  2358. if(grd_rfehemhtlist.row >= 1 )
  2359. {
  2360. //행추가
  2361. misfGridIUD(grd_rfemdamklist, "A");
  2362. grd_rfemdamklist.dispatch("onrowchanged");
  2363. btn_upRfemdamk.disabled = false;
  2364. // model.copyNode("/root/main/grid/rfemdamklist[" + grd_rfemdamklist.row + "]", "/root/main/grid/rfehemhtlistt[" + grd_rfehemhtlist.row + "]");
  2365. // 컴포넌트 노드 설정.
  2366. //model.copyNode("/root/main/component/rfemdamklist" , "/root/main/grid/rfemdamklist[" + grd_rfemdamklist.row + "]");
  2367. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("instcd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd"));
  2368. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("fixtrseqmtflag")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("fixtrseqmtflag"));
  2369. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqdd")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd"));
  2370. grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("reqno")) = grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno"));
  2371. // (true 비활성화 , false 활성화) , ( 'Y' 기본값 disabled)
  2372. btn_upRfemdamk.disabled = false;
  2373. fRfemdamkComponentsTF(false);
  2374. model.refresh();
  2375. }else
  2376. {
  2377. messageBox("의뢰일별 목록을", "C002");
  2378. return;
  2379. }
  2380. ]]>
  2381. </script>
  2382. </button>
  2383. <select1 id="rdo_useyn" ref="/root/main/component/rfehemhtlist/useyn" disabled="true" navindex="41" visibility="hidden" appearance="full" cols="2" overflow="hidden" style="left:505px; top:55px; width:92px; height:20px; background-color:transparent; border-style:none; ">
  2384. <choices>
  2385. <itemset nodeset="/root/init/useyn">
  2386. <label ref="label"/>
  2387. <value ref="value"/>
  2388. </itemset>
  2389. </choices>
  2390. </select1>
  2391. </group>
  2392. </xhtml:body>
  2393. </xhtml:html>