SMRFR01000_구매팀 수리결재.xrw 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744
  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. <rfehemhtlist/>
  11. <rfemdamklist/>
  12. <rfehdabplist/>
  13. <com_rfehemhtlist/>
  14. </main>
  15. <send>
  16. <instcd/>
  17. <fixtrseqmtflag/>
  18. <acptdd/>
  19. <acptdd2/>
  20. <chrgpsnid/>
  21. <chrgpsnnm/>
  22. <purctrsmyn/>
  23. <purcagreyn/>
  24. <grid>
  25. <rfehemhtlist/>
  26. <rfemdamklist/>
  27. <rfehdabplist/>
  28. </grid>
  29. <prvnchkfrdd/>
  30. <prvnchktodd/>
  31. <accountddyn/>
  32. <sendprint>
  33. <instcd/>
  34. <chrgpsnid/>
  35. <reqdd/>
  36. <reqdd2/>
  37. <reqno/>
  38. <reqno2/>
  39. <reqdeptcd/>
  40. </sendprint>
  41. </send>
  42. <init>
  43. <useyn>
  44. <label>내부</label>
  45. <value>1</value>
  46. <label>외부</label>
  47. <value>2</value>
  48. </useyn>
  49. <fixtrseqmflag>
  50. <label>의료장비</label>
  51. <value>E</value>
  52. <label>의료비품</label>
  53. <value>K</value>
  54. </fixtrseqmflag>
  55. <purcagreyn>
  56. <label>결재</label>
  57. <value>Y</value>
  58. <label>미결재</label>
  59. <value>N</value>
  60. </purcagreyn>
  61. <grdsanctyn>
  62. <label>결재</label>
  63. <value>Y</value>
  64. <label>미결재</label>
  65. <value>N</value>
  66. <label>반송</label>
  67. <value>R</value>
  68. </grdsanctyn>
  69. <purctrsmyn>
  70. <label>구매전송</label>
  71. <value>Y</value>
  72. <label>내부결제</label>
  73. <value>C</value>
  74. <label>미결제</label>
  75. <value>N</value>
  76. <label>회송</label>
  77. <value>R</value>
  78. </purctrsmyn>
  79. <paycond/>
  80. </init>
  81. <hidden/>
  82. <temp/>
  83. <print/>
  84. </root>
  85. </instance>
  86. <script type="javascript" ev:event="xforms-ready">
  87. <![CDATA[
  88. misfMsterDetailSet(grd_rfehemhtlist, null, "TRRFR01001", "Y");
  89. misfMsterDetailSet(grd_rfemdamklist, null, "TRRFE00602", "Y");
  90. misfMsterDetailSet(grd_rfehdabplist, null, "TRRFE00603", "Y");
  91. fInitialize();
  92. // 공통코드 설정
  93. misfComboComCdListMulti("Z0007,R0055,R0286,R0288,R0289,R0290,R0032,R0287",
  94. "cmb_instcd,grd_rfehemhtlist.workstat,grd_rfehemhtlist.rpirflag1,grd_rfehdabplist.paytype,grd_rfehdabplist.kind,grd_rfehdabplist.costflag,grd_rfehdabplist.acsrsunit,rdo_acptflag");
  95. addComboItem("rdo_purcagreyn", "전체", "", "above");
  96. model.refresh();
  97. ]]>
  98. </script>
  99. <submission id="TRRFE00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfehemhtlist" resultref="/root/main/rfemdamklist"/>
  100. <submission id="TRRFE00603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfemdamklist" resultref="/root/main/rfehdabplist"/>
  101. <submission id="TRRFR01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rfehemhtlist"/>
  102. <submission id="TXRFR01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfehemhtlist" resultref="/root/temp"/>
  103. <submission id="TXRFR01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grid/rfehdabplist" resultref="/root/temp"/>
  104. <submission id="TRRFE00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendprint" resultref="/root/print/PrintRfehemht"/>
  105. </model>
  106. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  107. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  108. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  109. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  112. <script type="javascript">
  113. <![CDATA[
  114. function fInitialize()
  115. {
  116. //조회 컴포넌트 초기화.
  117. model.resetInstanceNode("/root/send");
  118. model.resetInstanceNode("/root/main");
  119. // 그리드 초기화
  120. misfGridInit(grd_rfehemhtlist);
  121. misfGridInit(grd_rfemdamklist);
  122. misfGridInit(grd_rfehdabplist);
  123. // 사용자 기관코드 설정.
  124. cmb_instcd.value = getUserInfo("dutplceinstcd");
  125. //결재전송 인것만 조회하기위한 값 설정.
  126. model.setValue("/root/send/purctrsmyn", "Y");
  127. // 현재 날짜 기본 입력(6개월 간격 설정)
  128. var acptdate = getCurrentDate().toDate("YYYYMMDD");
  129. model.setValue(ipt_acptdd.attribute("ref"), acptdate.getAddDate(-6, "M").getDateFormat("YYYYMMDD") );
  130. model.setValue(ipt_acptdd2.attribute("ref"), getCurrentDate());
  131. // 자산구분및 수리/예방여부 기본 설정.
  132. cmb_fixtrseqmtflag.select(0);
  133. model.refresh();
  134. }
  135. //만약 계산서일자가 등록돼있는거에 대해서는 회송여부는 비활성화 시킴 (2009.01.28 L.J.I)
  136. function fpurctrsmynDisabled(pDisable)
  137. {
  138. for(var i = grd_rfehemhtlist.fixedRows; i < grd_rfehemhtlist.rows; i++) {
  139. if(grd_rfehemhtlist.valueMatrix(i, grd_rfehemhtlist.colRef("accountdd")) != "")
  140. {
  141. grd_rfehemhtlist.cellAttribute("disabled", i, grd_rfehemhtlist.colRef("purctrsmyn")) = "true";
  142. }
  143. else
  144. {
  145. grd_rfehemhtlist.cellAttribute("disabled", i, grd_rfehemhtlist.colRef("purctrsmyn")) = "false";
  146. }
  147. }
  148. }
  149. ]]>
  150. </script>
  151. </xhtml:head>
  152. <xhtml:body guideline="1,502;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  153. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  154. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:207px; height:14px; ">구매팀 수리결재</caption>
  155. </group>
  156. <group id="group4" style="left:0px; top:13; width:1195px; height:27px; ">
  157. <button id="btn_print" class="btn6_letter2" visibility="visible" style="left:0px; top:3; width:56px; height:22px; ">
  158. <caption>출력</caption>
  159. <script type="javascript" ev:event="DOMActivate">
  160. <![CDATA[
  161. model.resetInstanceNode("/root/print/PrintRfehemht");
  162. model.resetInstanceNode("/root/send/sendprint");
  163. model.setValue("/root/send/sendprint/instcd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("instcd")) );
  164. model.setValue("/root/send/sendprint/chrgpsnid", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("chrgpsnid")) );
  165. model.setValue("/root/send/sendprint/reqdd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdd")) );
  166. model.setValue("/root/send/sendprint/reqdd2", model.getValue("/root/send/sendprint/reqdd"));
  167. model.setValue("/root/send/sendprint/reqno", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqno")) );
  168. model.setValue("/root/send/sendprint/reqno2", model.getValue("/root/send/sendprint/reqno"));
  169. model.setValue("/root/send/sendprint/reqdeptcd", grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("reqdeptcd")) );
  170. submit("TRRFE00701");
  171. exeReportPreview("RPRFE00703", "XMLSTR");
  172. model.refresh();
  173. ]]>
  174. </script>
  175. </button>
  176. <button id="btn_save" class="btn4_letter2" style="left:1067px; top:3px; width:56px; height:22px; ">
  177. <caption>저장</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. if(!checkKeyColumn("grd_rfehdabplist")) return;
  181. if(!checkKeyColumn("grd_rfemdamklist")) return;
  182. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("rpiramt" ))= model.getValue("/root/main/com_rfehemhtlist/rpiramt" );
  183. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("custcd" ))= model.getValue("/root/main/com_rfehemhtlist/custcd" );
  184. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("acptflag" ))= model.getValue("/root/main/com_rfehemhtlist/acptflag" );
  185. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("accountdd" ))= model.getValue("/root/main/com_rfehemhtlist/accountdd" );
  186. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("accountcmt" ))= model.getValue("/root/main/com_rfehemhtlist/accountcmt" );
  187. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("estimateamt" ))= model.getValue("/root/main/com_rfehemhtlist/rfehdabptotal" );
  188. model.setValue("/root/send/grid/rfehdabplist" ,grd_rfehdabplist.getUpdateData());
  189. model.setValue("/root/send/grid/rfehemhtlist" ,grd_rfehemhtlist.getUpdateData());
  190. model.setValue("/root/send/grid/rfemdamklist" ,grd_rfemdamklist.getUpdateData());
  191. misfGridRowStatusChange(grd_rfehemhtlist,"/root/main/rfehemhtlist","/root/main/com_rfehemhtlist/");
  192. //var updtdata = grd_rfehemhtlist.getUpdateData();
  193. grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row) = "2";
  194. grd_rfemdamklist.rowStatus(grd_rfemdamklist.row) = "2";
  195. if (getGridUpdateData(grd_rfehemhtlist) == "")
  196. {
  197. messageBox("변경된 데이터가", "I004");
  198. return;
  199. }
  200. misfSave("TXRFR01001");
  201. // var updtdata = grd_rfehdabplist.getUpdateData();
  202. // misfSave("TXRFR01002");
  203. //if (model.getValue(gvErrorMsgPath + "/type") != "error") btn_search.dispatch("DOMActivate");
  204. ]]>
  205. </script>
  206. </button>
  207. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:3; width:68px; height:22px; ">
  208. <caption>초기화</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. if(getGridUpdateData(grd_rfehemhtlist) != "")
  212. {
  213. if(messageBox("변경된 데이터가 있습니다. \n초기화 작업을", "Q003") == 7)
  214. return;
  215. }
  216. fInitialize();
  217. ]]>
  218. </script>
  219. </button>
  220. <line id="line15" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
  221. </group>
  222. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:740; ">
  223. <group id="grp_sea" style="left:0px; top:5px; width:1194px; height:65px; vertical-align:top; ">
  224. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:60px; background-color:#fffbf2; border-color:#ffd799; "/>
  225. <caption id="cap_instcd" class="search_name" style="left:15px; top:8px; width:86px; height:17px; ">기관코드:</caption>
  226. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:20px; width:56px; height:22px; ">
  227. <caption>조회</caption>
  228. <script type="javascript" ev:event="DOMActivate">
  229. <![CDATA[
  230. if(!isRequiredControls("cmb_instcd")) return;
  231. if(!isRequiredControls("cmb_fixtrseqmtflag")) return;
  232. if(!isRequiredControls("ipt_acptdd")) return;
  233. if(!isRequiredControls("ipt_acptdd2")) return;
  234. if(getGridUpdateData(grd_rfehemhtlist) != "")
  235. {
  236. if(messageBox("변경된 데이터가 있습니다. \n조회작업을", "Q003") == 7)
  237. return;
  238. }
  239. //그리드 초기화.
  240. misfGridInit(grd_rfemdamklist);
  241. misfGridInit(grd_rfehdabplist);
  242. // 컴포넌트 초기화.
  243. model.resetInstanceNode("/root/main/com_rfehemhtlist");
  244. model.resetInstanceNode("/root/send/grid/rfehemhtlist");
  245. model.resetInstanceNode("/root/main/com_rfemdamklist");
  246. //수리 테이블 조회
  247. submit("TRRFR01001");
  248. if(grd_rfehemhtlist.rows > grd_rfehemhtlist.fixedRows)
  249. {
  250. // 기본 Select 설정.
  251. grd_rfehemhtlist.row = grd_rfehemhtlist.fixedRows;
  252. grd_rfehemhtlist.select(grd_rfehemhtlist.fixedRows, grd_rfehemhtlist.colRef("fixasetnm")) = true;
  253. grd_rfehemhtlist.dispatch("onrowchanged");
  254. }
  255. fpurctrsmynDisabled();
  256. model.refresh();
  257. ]]>
  258. </script>
  259. </button>
  260. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:99px; top:8px; width:246px; height:19px; text-align:center; ">
  261. <choices>
  262. <itemset>
  263. <label/>
  264. <value/>
  265. </itemset>
  266. </choices>
  267. </select1>
  268. <line id="line13" class="line_4" style="x1:1112px; y1:7px; x2:1112px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  269. <caption id="cap_acptdd" class="search_name" style="left:769px; top:9px; width:101px; height:17px; ">수리일자 :</caption>
  270. <select1 id="cmb_fixtrseqmtflag" ref="/root/send/fixtrseqmtflag" class="combo_s_essential" appearance="minimal" style="left:555px; top:8px; width:145px; height:19px; text-align:center; ">
  271. <choices>
  272. <itemset nodeset="/root/init/fixtrseqmflag">
  273. <label ref="label"/>
  274. <value ref="value"/>
  275. </itemset>
  276. </choices>
  277. </select1>
  278. <caption id="cap_fixtrseqmtflag" class="search_name" style="left:466px; top:8px; width:86px; height:17px; ">자산구분 :</caption>
  279. <input id="ipt_acptdd2" ref="/root/send/acptdd2" class="input_s_essential" inputtype="date" style="left:997px; top:9px; width:111px; height:19px; text-align:center; "/>
  280. <input id="ipt_acptdd" ref="/root/send/acptdd" class="input_s_essential" inputtype="date" style="left:871px; top:9px; width:107px; height:19px; text-align:center; "/>
  281. <caption id="cap_chrgpsnid" class="search_name" style="left:15px; top:35px; width:83px; height:17px; ">담 당 자 :</caption>
  282. <button id="btn_chrgpsnid" class="icon_search" style="left:200px; top:35px; width:16px; height:16px; ">
  283. <caption/>
  284. <script type="javascript" ev:event="xforms-value-changed">
  285. <![CDATA[
  286. misfOpenPopUpList("01", ipt_chrgpsnid, "", "chrgpsnid,chrgpsnnm");
  287. model.refresh();
  288. ]]>
  289. </script>
  290. </button>
  291. <input id="ipt_chrgpsnid" ref="/root/send/chrgpsnid" class="input_search" style="left:99px; top:35px; width:97px; height:19px; text-align:center; ">
  292. <script type="javascript" ev:event="xfroms-value-changed">
  293. <![CDATA[
  294. if(ipt_chrgpsnid.value.length == 0)
  295. {
  296. ipt_chrgpsnnm.value = "";
  297. }else{
  298. misfValidationCheck("01-1", "", "chrgpsnid,chrgpsnnm");
  299. }
  300. model.refresh();
  301. ]]>
  302. </script>
  303. </input>
  304. <input id="ipt_chrgpsnnm" ref="/root/send/chrgpsnnm" class="input_search" appearance="output" style="left:220px; top:35px; width:125px; height:19px; text-align:center; ">
  305. <script type="javascript" ev:event="xforms-value-changed">
  306. <![CDATA[
  307. if(ipt_chrgpsnnm.value.length == 0)
  308. {
  309. ipt_chrgpsnid.value = "";
  310. }else {
  311. misfValidationCheck("01-2", "", "chrgpsnid,chrgpsnnm");
  312. }
  313. model.refresh();
  314. ]]>
  315. </script>
  316. </input>
  317. <caption id="cap_purcaprvyn" class="search_name" style="left:466px; top:35px; width:86px; height:17px; ">결재여부 :</caption>
  318. <select1 id="rdo_purcagreyn" ref="/root/send/purcagreyn" class="radio_search" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:555px; top:35px; width:205px; height:20px; text-align:center; vertical-align:middle; border-style:none; ">
  319. <choices>
  320. <itemset nodeset="/root/init/purcagreyn">
  321. <label ref="label"/>
  322. <value ref="value"/>
  323. </itemset>
  324. </choices>
  325. </select1>
  326. <caption id="caption1" style="left:982px; top:10px; width:15px; height:20px; ">~</caption>
  327. <input id="ipt_purctrsmyn" ref="/root/send/purctrsmyn" class="input_search" visibility="hidden" style="left:355px; top:10px; width:65px; height:19px; "/>
  328. <select1 id="rdo_accountddyn" ref="/root/send/accountddyn" class="radio_search" appearance="full" cellspacing="40" cols="2" overflow="visible" style="left:875px; top:36px; width:230px; height:20px; border-style:none; ">
  329. <choices>
  330. <item>
  331. <label>유</label>
  332. <value>Y</value>
  333. </item>
  334. <item>
  335. <label>무</label>
  336. <value>N</value>
  337. </item>
  338. </choices>
  339. </select1>
  340. <caption id="cap_accountddyn" class="search_name" style="left:769px; top:35px; width:99px; height:17px; ">계산서일자 :</caption>
  341. </group>
  342. <switch id="swt_choice" style="left:1px; top:70px; width:1190px; height:660px; ">
  343. <case id="RFEH" style="left:0px; top:0px; width:1193px; height:658px; ">
  344. <caption id="cap_estimateamt" class="cell_1" style="left:243px; top:324px; width:80px; height:23px; vertical-align:middle; ">외주견적금액</caption>
  345. <input id="ipt_estimateamt" ref="/root/main/com_rfehemhtlist/estimateamt" class="output_fix" disabled="true" format="#,###" style="left:325px; top:326px; width:159px; height:19px; text-align:right; "/>
  346. <datagrid id="grd_rfehemhtlist" nodeset="/root/main/rfehemhtlist" allowselection="false" caption="결재여부^회송여부^의뢰일자^의뢰일자^의뢰부서^자산구분^자산코드^자산명^모델^S/N^사용부서명^거래처명^계산서일^견적금액^확정금액^접수일자^완료일자^담당자^접수구분^수리상태^고장유형^결재승인^구매전송^결재COMMENTS^구매팀승인일자^구매팀승인자^구매팀승인자^청구구분^청구부서^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1" colsep="^" colwidth="56, 59, 82, 34, 69, 78, 85, 182, 78, 80, 89, 103, 78, 78, 83, 156, 100, 70, 81, 60, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="11" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:25px; width:1187px; height:275px; ">
  347. <col checkvalue="Y,N" ref="purcagreyn" type="checkbox"/>
  348. <col checkvalue="R,Y" ref="purctrsmyn" type="checkbox" visibility="visible"/>
  349. <col disabled="true" ref="reqdd" format="yyyy-mm-dd" _key="true"/>
  350. <col disabled="true" ref="reqno" _key="true"/>
  351. <col ref="depthngnm"/>
  352. <col disabled="true" ref="fixtrseqmtflag" type="combo" _key="true" style="text-align:center; ">
  353. <choices>
  354. <itemset nodeset="/root/init/fixtrseqmflag">
  355. <label ref="label"/>
  356. <value ref="value"/>
  357. </itemset>
  358. </choices>
  359. </col>
  360. <col disabled="true" ref="fixasetcd"/>
  361. <col disabled="true" ref="fixasetnm"/>
  362. <col disabled="true" ref="goodmodel"/>
  363. <col disabled="true" ref="mngtno"/>
  364. <col disabled="true" ref="mngtdeptnm"/>
  365. <col disabled="true" ref="custnm"/>
  366. <col disabled="true" ref="accountdd" format="yyyy-mm-dd"/>
  367. <col disabled="true" ref="estimateamt" format="#,###" style="text-align:right; "/>
  368. <col disabled="true" ref="rpiramt" visibility="visible" format="#,###" style="text-align:right; "/>
  369. <col disabled="true" ref="acptdd" format="yyyy-mm-dd"/>
  370. <col disabled="true" ref="rpirenddd" format="yyyy-mm-dd"/>
  371. <col disabled="true" ref="chrgpsnnm" style="text-align:center; "/>
  372. <col disabled="true" ref="workstat" type="combo" style="text-align:center; ">
  373. <choices>
  374. <itemset>
  375. <label/>
  376. <value/>
  377. </itemset>
  378. </choices>
  379. </col>
  380. <col disabled="true" ref="rpirflag1" type="combo" style="text-align:center; ">
  381. <choices>
  382. <itemset>
  383. <label/>
  384. <value/>
  385. </itemset>
  386. </choices>
  387. </col>
  388. <col disabled="true" ref="useyn" type="combo" style="text-align:center; ">
  389. <choices>
  390. <itemset nodeset="/root/init/useyn">
  391. <label ref="label"/>
  392. <value ref="value"/>
  393. </itemset>
  394. </choices>
  395. </col>
  396. <col disabled="true" ref="sanctyn" type="combo" visibility="hidden" style="text-align:center; ">
  397. <choices>
  398. <itemset nodeset="/root/init/grdsanctyn">
  399. <label ref="label"/>
  400. <value ref="value"/>
  401. </itemset>
  402. </choices>
  403. </col>
  404. <col ref="purctrsmyn" type="combo" visibility="visible">
  405. <choices>
  406. <itemset nodeset="/root/init/purctrsmyn">
  407. <label ref="label"/>
  408. <value ref="value"/>
  409. </itemset>
  410. </choices>
  411. </col>
  412. <col ref="chrgpsncmt" visibility="hidden" style="text-align:left; "/>
  413. <col ref="purcaprvdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  414. <col ref="purcaprvpsnid" visibility="hidden" style="text-align:center; "/>
  415. <col ref="purcaprvpsnnm" visibility="hidden" style="text-align:center; "/>
  416. <col ref="sanctdd" visibility="hidden" format="yyyy-mm-dd"/>
  417. <col ref="reqdeptcd" visibility="hidden"/>
  418. <col ref="chrgpsnid" visibility="hidden"/>
  419. <col ref="genrdd" visibility="hidden"/>
  420. <col ref="estimateamt" visibility="hidden"/>
  421. <col ref="rpirflag2" visibility="hidden"/>
  422. <col ref="sanctid" visibility="hidden"/>
  423. <col ref="sanctnm" visibility="hidden"/>
  424. <col ref="reductionamt" visibility="hidden"/>
  425. <col disabled="true" ref="lastrpirstat" visibility="hidden"/>
  426. <col ref="nonworkdayno" visibility="hidden"/>
  427. <col ref="custcd" visibility="hidden"/>
  428. <col ref="hdrncspec" visibility="hidden"/>
  429. <col ref="lastrpirrslt" visibility="hidden"/>
  430. <col ref="instcd" visibility="hidden" _key="true"/>
  431. <col ref="reqpsnid" visibility="hidden"/>
  432. <col ref="reqpsnnm" visibility="hidden"/>
  433. <col ref="genrtm" visibility="hidden"/>
  434. <col ref="acpttm" visibility="hidden"/>
  435. <col ref="acptpsnid" visibility="hidden"/>
  436. <col ref="acptpsnnm" visibility="hidden"/>
  437. <col ref="acptdeptcd" visibility="hidden"/>
  438. <col ref="acptdeptnm" visibility="hidden"/>
  439. <col ref="itemnm" visibility="hidden"/>
  440. <col ref="acptpsncnfm" visibility="hidden"/>
  441. <col ref="deptacptdd" visibility="hidden"/>
  442. <col ref="deptacptpsnid" visibility="hidden"/>
  443. <col ref="deptacptpsnnm" visibility="hidden"/>
  444. <col ref="cmt" visibility="hidden"/>
  445. <col ref="emaildeliveyn" visibility="hidden"/>
  446. <col ref="goodmodel" visibility="hidden"/>
  447. <col ref="installplcecd" visibility="hidden"/>
  448. <col ref="installplcenm" visibility="hidden"/>
  449. <col ref="sancttrsmyn" visibility="hidden"/>
  450. <col ref="chrgtel" visibility="hidden"/>
  451. <col ref="bugtyy" visibility="hidden"/>
  452. <col ref="bugtcd" visibility="hidden"/>
  453. <col ref="stdysubjno" visibility="hidden"/>
  454. <col ref="stdysubjnm" visibility="hidden"/>
  455. <col ref="deptaprvyn" visibility="hidden"/>
  456. <col ref="deptaprvpsnid" visibility="hidden"/>
  457. <col ref="deptaprvdd" visibility="hidden"/>
  458. <col ref="rfehdabptotal" visibility="hidden"/>
  459. <col ref="reqtel" visibility="hidden"/>
  460. <col ref="acptflag" visibility="hidden"/>
  461. <col ref="fixasetcd" visibility="hidden"/>
  462. <col ref="temppurcaprvyn" visibility="hidden"/>
  463. <col ref="accountcmt" visibility="hidden"/>
  464. <col ref="purcagredd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  465. <col ref="purcagresnid" visibility="hidden" style="text-align:center; "/>
  466. <col ref="purcagresnnm" visibility="hidden" style="text-align:center; "/>
  467. <script type="javascript" ev:event="xforms-value-changed">
  468. <![CDATA[
  469. if( grd_rfehemhtlist.colRef("purcagreyn") == grd_rfehemhtlist.col )
  470. {
  471. if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row,grd_rfehemhtlist.colRef("purcagreyn")) != grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row,grd_rfehemhtlist.colRef("temppurcaprvyn")))
  472. {
  473. if(grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row,grd_rfehemhtlist.colRef("purcagreyn")) == 'Y')
  474. {
  475. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagredd")) = getCurrentDate();
  476. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnid")) = getUserInfo("userid");
  477. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnnm")) = getUserInfo("usernm");
  478. }else
  479. {
  480. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagredd")) = "";
  481. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnid")) = "";
  482. grd_rfehemhtlist.valueMatrix(grd_rfehemhtlist.row, grd_rfehemhtlist.colRef("purcagresnnm")) = "";
  483. }
  484. }else{
  485. grd_rfehemhtlist.rowStatus(grd_rfehemhtlist.row) = 0;
  486. }
  487. }
  488. model.refresh();
  489. ]]>
  490. </script>
  491. <script type="javascript" ev:event="onrowchanged">
  492. <![CDATA[
  493. grd_rfehemhtlist.dispatch("onmouseup");
  494. // 상세 내용을 컴포넌트에 설정.
  495. model.copyNode("/root/main/com_rfehemhtlist","/root/main/rfehemhtlist["+grd_rfehemhtlist.row+"]");
  496. // 수리일자별 목록 조회값 설정.
  497. model.copyNode("/root/send/grid/rfehemhtlist","/root/main/rfehemhtlist["+grd_rfehemhtlist.row+"]");
  498. model.makeValue("/root/send/grid/rfehemhtlist/scrnid", "SMRFR01000");
  499. submit("TRRFE00602");
  500. misfGridInit(grd_rfehdabplist);
  501. if(grd_rfemdamklist.rows > grd_rfemdamklist.fixedRows)
  502. {
  503. // 기본 Select 설정.
  504. grd_rfemdamklist.row = grd_rfemdamklist.fixedRows;
  505. grd_rfemdamklist.select(grd_rfemdamklist.fixedRows, grd_rfemdamklist.colRef("mainrpirpsnnm")) = true;
  506. grd_rfemdamklist.dispatch("onrowchanged");
  507. }
  508. model.refresh();
  509. ]]>
  510. </script>
  511. <script type="javascript" ev:event="onaftersort">
  512. <![CDATA[
  513. grd_rfehemhtlist.gridToInstance();
  514. ]]>
  515. </script>
  516. </datagrid>
  517. <caption id="cap_rpiramt" class="cell_1" style="left:243px; top:349px; width:80px; height:23px; vertical-align:middle; ">확정 금액</caption>
  518. <caption id="cap_lastrpirrslt" class="cell_1" style="left:0px; top:575px; width:80px; height:75px; vertical-align:middle; ">최종수리결과</caption>
  519. <input id="ipt_rfehdabptotal" ref="/root/main/com_rfehemhtlist/rfehdabptotal" class="output_fix" disabled="true" format="#,###" style="left:82px; top:326px; width:159px; height:19px; text-align:right; "/>
  520. <line id="line22" class="line_3" style="x1:0px; y1:652px; x2:488px; y2:652px; "/>
  521. <textarea id="txt_hdrncspec" ref="/root/main/com_rfehemhtlist/hdrncspec" scroll="vertical" editable="false" style="left:82px; top:525px; width:403px; height:47px; "/>
  522. <caption id="cap_hdrncspec" class="cell_1" style="left:0px; top:525px; width:80px; height:49px; vertical-align:middle; ">의뢰내역</caption>
  523. <datagrid id="grd_rfehdabplist" nodeset="/root/main/rfehdabplist" caption="순번^수리일자^부품명^지급형태^유형^비용구분^규격^부품수량^단위^부품단가^금액^계산서금액" colsep="^" colwidth="43, 80, 190, 65, 65, 65, 150, 60, 70, 70, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" frozencols="4" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:492px; top:485px; width:695px; height:168px; ">
  524. <col class="input_essential" disabled="true" ref="rpirseq" format="#,###" maxlength="3" _key="true" style="text-align:right; "/>
  525. <col class="input_essential" ref="rpirdd" visibility="hidden" format="yyyy-mm-dd" _key="true"/>
  526. <col ref="acsrsnm" style="left:500px; top:23px; width:300px; height:23px; "/>
  527. <col disabled="true" ref="paytype" type="combo">
  528. <choices>
  529. <itemset>
  530. <label/>
  531. <value/>
  532. </itemset>
  533. </choices>
  534. </col>
  535. <col disabled="true" ref="kind" type="combo">
  536. <choices>
  537. <itemset>
  538. <label/>
  539. <value/>
  540. </itemset>
  541. </choices>
  542. </col>
  543. <col disabled="true" ref="costflag" type="combo">
  544. <choices>
  545. <itemset>
  546. <label/>
  547. <value/>
  548. </itemset>
  549. </choices>
  550. </col>
  551. <col ref="acsrsspec"/>
  552. <col ref="acsrsqty" format="#,###" style="text-align:right; "/>
  553. <col disabled="true" ref="acsrsunit" type="combo">
  554. <choices>
  555. <itemset>
  556. <label/>
  557. <value/>
  558. </itemset>
  559. </choices>
  560. </col>
  561. <col ref="acsrsamt" format="#,###" style="text-align:right; "/>
  562. <col ref="acsrsmoney" format="#,###" style="text-align:right; "/>
  563. <col ref="accountamt" type="input" format="#,###" style="text-align:right; "/>
  564. <col ref="instcd" visibility="hidden" _key="true"/>
  565. <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
  566. <col ref="reqdd" visibility="hidden" _key="true"/>
  567. <col ref="reqno" visibility="hidden" _key="true"/>
  568. <col ref="delivedd" visibility="hidden"/>
  569. <col ref="deliveno" visibility="hidden"/>
  570. <col ref="deliveseqno" visibility="hidden"/>
  571. <col ref="acsrscd" visibility="hidden"/>
  572. </datagrid>
  573. <datagrid id="grd_rfemdamklist" nodeset="/root/main/rfemdamklist" allowselection="false" caption="수리일자^주수리자^보조수리자^작업시간^1^1^(의공)수리내역^1" colsep="^" colwidth="90, 109, 109, 54, 100, 50, 249, 100, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rows="2" rowsep="|" selectionmode="byrow" style="left:494px; top:325px; width:695px; height:139px; ">
  574. <col ref="rpirdd" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
  575. <col ref="mainrpirpsnnm" style="text-align:center; "/>
  576. <col ref="supprpirpsnnm" style="text-align:center; "/>
  577. <col ref="rpirtm" visibility="visible" format="hh:nn" _key="true" style="text-align:right; "/>
  578. <col ref="mainrpirpsn" visibility="hidden"/>
  579. <col ref="supprpirpsn" visibility="hidden"/>
  580. <col ref="rpirspec"/>
  581. <col ref="instcd" visibility="hidden" _key="true"/>
  582. <col ref="fixtrseqmtflag" visibility="hidden" _key="true"/>
  583. <col ref="reqdd" visibility="hidden" _key="true"/>
  584. <col ref="reqno" visibility="hidden" _key="true"/>
  585. <col ref="paycond" type="input" visibility="hidden" _key="true"/>
  586. <script type="javascript" ev:event="onrowchanged">
  587. <![CDATA[
  588. grd_rfemdamklist.dispatch("onmouseup");
  589. // 상세 내용을 컴포넌트에 설정.
  590. model.setValue("/root/init/paycond", grd_rfemdamklist.valueMatrix(grd_rfemdamklist.row, grd_rfemdamklist.colRef("paycond")));
  591. model.copyNode("/root/main/com_grd_rfemdamklist","/root/main/rfemdamklist["+ grd_rfemdamklist.row +"]");
  592. model.copyNode("/root/send/grid/rfemdamklist","/root/main/rfemdamklist["+ grd_rfemdamklist.row +"]");
  593. submit("TRRFE00603");
  594. ]]>
  595. </script>
  596. </datagrid>
  597. <caption id="caption2" class="tit_2" style="left:2px; top:303px; width:110px; height:13px; ">수리상세내용</caption>
  598. <caption id="caption4" class="tit_2" style="left:2px; top:4px; width:110px; height:14px; ">수리 결재 List</caption>
  599. <textarea id="txt_lastrpirrslt" ref="/root/main/com_rfehemhtlist/lastrpirrslt" scroll="vertical" editable="false" maxlength="600" style="left:82px; top:575px; width:403px; height:75px; "/>
  600. <caption id="caption5" class="tit_2" style="left:495px; top:303px; width:113px; height:13px; ">수리일자별 목록</caption>
  601. <line id="line17" class="line_1" style="x1:0px; y1:318px; x2:488px; y2:318px; "/>
  602. <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:1187px; y2:20px; "/>
  603. <input id="ipt_reductionamt" ref="/root/main/com_rfehemhtlist/reductionamt" class="output_fix" disabled="true" format="#,###" style="left:82px; top:351px; width:159px; height:19px; text-align:right; "/>
  604. <line id="line2" class="line_1" style="x1:492px; y1:318px; x2:1188px; y2:318px; "/>
  605. <caption id="cap_rfehdabptotal" class="cell_1" style="left:0px; top:324px; width:80px; height:23px; vertical-align:middle; ">전 도 금</caption>
  606. <caption id="cap_reductionamt" class="cell_1" style="left:0px; top:349px; width:80px; height:23px; vertical-align:middle; ">절 감 액</caption>
  607. <caption id="caption7" class="tit_2" style="left:493px; top:466px; width:113px; height:13px; ">수리부품 목록</caption>
  608. <line id="line3" class="line_1" style="x1:492px; y1:481px; x2:1188px; y2:481px; "/>
  609. <line id="line4" class="line_2" style="x1:0px; y1:483px; x2:488px; y2:483px; "/>
  610. <input id="ipt_rpiramt" ref="/root/main/com_rfehemhtlist/rpiramt" class="output_fix" disabled="true" format="#,###" style="left:325px; top:351px; width:159px; height:19px; text-align:right; "/>
  611. <line id="line5" class="line_2" style="x1:0px; y1:573px; x2:488px; y2:573px; "/>
  612. <caption id="cap_custcd" class="cell_1" style="left:0px; top:399px; width:80px; height:23px; vertical-align:middle; ">거래처</caption>
  613. <input id="ipt_custnm" ref="/root/main/com_rfehemhtlist/custnm" class="input_default" style="left:208px; top:399px; width:227px; height:19px; ">
  614. <script type="javascript" ev:event="xforms-value-changed">
  615. <![CDATA[
  616. if(ipt_custnm.value != "")
  617. {
  618. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  619. cmb_instcd.value + "," + "custnm," + ipt_custnm.value, "", "custcd,custnm",
  620. ipt_custcd, "SPRSD00220", "instcd","cmb_instcd");
  621. }else{
  622. ipt_custcd.value= "";
  623. }
  624. model.refresh();
  625. ]]>
  626. </script>
  627. </input>
  628. <button id="btn_custcd" class="icon_search" style="left:187px; top:399px; width:16px; height:16px; ">
  629. <caption/>
  630. <script type="javascript" ev:event="DOMActivate">
  631. <![CDATA[
  632. rszfOpenPopUpListByWndName(ipt_custcd,"","custcd,custnm","SPRSD00220","instcd","cmb_instcd");
  633. model.refresh();
  634. ]]>
  635. </script>
  636. </button>
  637. <input id="ipt_custcd" ref="/root/main/com_rfehemhtlist/custcd" class="input_default" style="left:82px; top:399px; width:102px; height:19px; ">
  638. <script type="javascript" ev:event="xforms-value-changed">
  639. <![CDATA[
  640. if(ipt_custcd.value != "")
  641. {
  642. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  643. cmb_instcd.value + "," + "entrregno," + ipt_custcd.value, "", "custcd,custnm",
  644. ipt_custcd, "SPRSD00220", "instcd","cmb_instcd");
  645. }else{
  646. ipt_custnm.value= "";
  647. }
  648. model.refresh();
  649. ]]>
  650. </script>
  651. </input>
  652. <select1 id="che_paycond" ref="/root/init/paycond" visibility="visible" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:245px; top:450px; width:140px; height:20px; border-style:none; ">
  653. <choices>
  654. <item>
  655. <label>정상</label>
  656. <value>1</value>
  657. </item>
  658. <item>
  659. <label>지불필</label>
  660. <value>2</value>
  661. </item>
  662. </choices>
  663. <script type="javascript" ev:event="xforms-value-changed">
  664. <![CDATA[
  665. model.setValue(grd_rfemdamklist.nodeset+"["+grd_rfemdamklist.row+"]/paycond" , model.getValue("/root/init/paycond"));
  666. grd_rfemdamklist.refresh();
  667. ]]>
  668. </script>
  669. </select1>
  670. <select1 id="rdo_acptflag" ref="/root/main/com_rfehemhtlist/acptflag" class="radio_search" visibility="visible" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:245px; top:425px; width:160px; height:20px; text-align:center; vertical-align:middle; border-style:none; ">
  671. <choices>
  672. <itemset>
  673. <label/>
  674. <value/>
  675. </itemset>
  676. </choices>
  677. </select1>
  678. <input id="ipt_fixasetcd" ref="/root/main/com_rfehemhtlist/fixasetcd" class="input_essential" disabled="true" appearance="input" style="left:82px; top:374px; width:159px; height:19px; "/>
  679. <caption id="cap_fixasetcd" class="cell_1" style="left:0px; top:374px; width:80px; height:23px; vertical-align:middle; ">자산코드</caption>
  680. <input id="ipt_fixasetnm" ref="/root/main/com_rfehemhtlist/fixasetnm" class="input_essential" disabled="true" appearance="input" style="left:82px; top:426px; width:159px; height:19px; "/>
  681. <caption id="caption3" class="cell_1" style="left:0px; top:425px; width:80px; height:23px; vertical-align:middle; ">자산명</caption>
  682. <caption id="caption8" class="cell_1" visibility="visible" style="left:1px; top:450px; width:80px; height:23px; vertical-align:middle; ">계산서일</caption>
  683. <input id="ipt_accountdd" ref="/root/main/com_rfehemhtlist/accountdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:82px; top:451px; width:160px; height:19px; "/>
  684. <textarea id="txt_accountcmt" ref="/root/main/com_rfehemhtlist/accountcmt" scroll="vertical" style="left:82px; top:475px; width:403px; height:46px; "/>
  685. <caption id="caption9" class="cell_1" style="left:0px; top:475px; width:80px; height:48px; vertical-align:middle; ">구매수리내역</caption>
  686. <caption id="caption10" class="cell_1" style="left:243px; top:373px; width:80px; height:23px; vertical-align:middle; ">수리비용</caption>
  687. <input id="input1" ref="/root/main/com_rfehemhtlist/rpiramt" class="input_essential" format="#,###" style="left:325px; top:374px; width:160px; height:19px; text-align:right; "/>
  688. </case>
  689. </switch>
  690. </group>
  691. </xhtml:body>
  692. </xhtml:html>