SMRFE00600_수리상세등록.xrw 128 KB

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