SMRSI02704_장비수리내역.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <rsihdpaplist1/>
  11. <rsihdpapwinlist/>
  12. </main>
  13. <send>
  14. <instcd/>
  15. <goodflag/>
  16. <fromdd/>
  17. <todd/>
  18. <sanctyn/>
  19. <windd/>
  20. <winno/>
  21. <suplplcecd/>
  22. <goodflag_det/>
  23. <winpsn/>
  24. <winpsnnm/>
  25. <subsuplplcenm/>
  26. <subsuplplcecd/>
  27. <fixtrseqmtflag/>
  28. <paycond/>
  29. <purcaprvyn/>
  30. <custcd/>
  31. <custnm/>
  32. <acptflag/>
  33. <repflag/>
  34. </send>
  35. <init>
  36. <purcaprvyn>
  37. <label>전체</label>
  38. <value/>
  39. <label>결재</label>
  40. <value>Y</value>
  41. <label>미결재</label>
  42. <value>N</value>
  43. </purcaprvyn>
  44. <fixtrseqmflag>
  45. <label>의료수선비</label>
  46. <value>E</value>
  47. <label>비품수리비</label>
  48. <value>G</value>
  49. </fixtrseqmflag>
  50. <calcdocukind>
  51. <label>세금계산서</label>
  52. <value>1</value>
  53. <label>계산서</label>
  54. <value>2</value>
  55. <label>간이영수증</label>
  56. <value>3</value>
  57. <label>검수증</label>
  58. <value>4</value>
  59. </calcdocukind>
  60. </init>
  61. <temp/>
  62. </root>
  63. </instance>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  68. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. fInitialize();
  73. ]]>
  74. </script>
  75. <script type="javascript">
  76. <![CDATA[
  77. function fInitialize()
  78. {
  79. misfGridInit(grd_rsihdpaplist);
  80. // 사용자별 청구 기관 List
  81. rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"1","B");
  82. // 사용자별 물품 구분
  83. // rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
  84. // addComboItem( "cmb_goodflag", "전체", "", "above");
  85. // misfComboComCdList("R0067", cmb_fixtrseqmtflag);
  86. // addComboItem("cmb_fixtrseqmtflag", "전체", "", "above");
  87. // misfComboComCdListMulti("Z0007,R0025,R0025,R0109","cmb_instcd,cmb_goodflag,grd_rsihdpaplist.goodflag,grd_rsihdpaplist.calcdocukind");
  88. misfComboComCdListMulti("R0109","grd_rsihdpaplist.calcdocukind");
  89. //misfComboCopyItemSet(cmb_goodflag, "", grd_rsihdpaplist, "goodflag"); // 물품구분
  90. cmb_instcd.value = getUserInfo("dutplceinstcd");
  91. cmb_fixtrseqmtflag.select(0);
  92. var reqdate = getCurrentDate().toDate("YYYYMMDD");
  93. model.setValue(ipt_fromdd.attribute("ref"), reqdate.getAddDate(-3, "M").getDateFormat("YYYYMMDD") );
  94. model.setValue(ipt_todd.attribute("ref"), getCurrentDate());
  95. misfMsterDetailSet(grd_rsihdpaplist, null, "TRRSI02703", "Y");
  96. //misfMsterDetailSet(grd_rsihdpapwinlist, null, "TRRSI02702", "N");
  97. model.refresh();
  98. }
  99. ]]>
  100. </script>
  101. <submission id="TRRSI02702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpapwinlist"/>
  102. <submission id="TRRSI02703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsihdpaplist1"/>
  103. <submission id="TXRSI02705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/rsihdpaplist1" resultref="/root/temp"/>
  104. </model>
  105. </xhtml:head>
  106. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  107. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  108. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">장비수리내역조회</caption>
  109. </group>
  110. <group id="grp_biz" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  111. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:85px; vertical-align:top; ">
  112. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1190px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
  113. <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:99px; height:17px; ">기관코드 :</caption>
  114. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:104px; top:8px; width:221px; height:19px; text-align:center; ">
  115. <choices>
  116. <itemset>
  117. <label/>
  118. <value/>
  119. </itemset>
  120. </choices>
  121. </select1>
  122. <line id="line30" class="line_4" style="x1:1110px; y1:6px; x2:1110px; y2:53px; "/>
  123. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:17px; width:56px; height:22px; ">
  124. <caption>조회</caption>
  125. <script type="javascript" ev:event="DOMActivate">
  126. <![CDATA[
  127. if(!isRequiredControls("cmb_instcd"))return;
  128. //if(!isRequiredControls("ipt_fromdd"))return;
  129. //if(!isRequiredControls("ipt_todd"))return;
  130. submit("TRRSI02703");
  131. grd_rsihdpaplist.dispatch("onrowchanged");
  132. ]]>
  133. </script>
  134. </button>
  135. <caption id="cap_fromdd" class="search_name" style="left:15px; top:36px; width:88px; height:17px; ">계산일자 :</caption>
  136. <input id="ipt_todd" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:225px; top:34px; width:100px; height:19px; text-align:center; ">
  137. <script type="javascript" ev:event="xforms-value-changed">
  138. <![CDATA[
  139. btn_search.dispatch("DOMActivate");
  140. ]]>
  141. </script>
  142. </input>
  143. <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:34px; width:100px; height:19px; text-align:center; ">
  144. <script type="javascript" ev:event="xforms-value-changed">
  145. <![CDATA[
  146. btn_search.dispatch("DOMActivate");
  147. ]]>
  148. </script>
  149. </input>
  150. <caption id="caption23" style="left:209px; top:33px; width:15px; height:20px; font-weight:bold; vertical-align:middle; ">~</caption>
  151. <caption id="cap_sanctyn" class="search_name" style="left:405px; top:35px; width:86px; height:17px; ">결재여부 :</caption>
  152. <select1 id="cmb_purcaprvyn" ref="/root/send/purcaprvyn" class="combo_search" appearance="minimal" style="left:495px; top:34px; width:141px; height:19px; text-align:center; ">
  153. <choices>
  154. <itemset nodeset="/root/init/purcaprvyn">
  155. <label ref="label"/>
  156. <value ref="value"/>
  157. </itemset>
  158. </choices>
  159. </select1>
  160. <caption id="cap_winpsn" class="search_name" style="left:700px; top:10px; width:86px; height:17px; ">입 고 자 :</caption>
  161. <button id="btn_winpsn" class="icon_search" style="left:890px; top:10px; width:16px; height:16px; ">
  162. <caption/>
  163. <script type="javascript" ev:event="DOMActivate">
  164. <![CDATA[
  165. misfOpenPopUpList("01", ipt_winpsn, "", "winpsn,winpsnnm");
  166. model.refresh();
  167. ]]>
  168. </script>
  169. </button>
  170. <input id="ipt_winpsn" ref="/root/send/winpsn" class="input_search" style="left:789px; top:10px; width:97px; height:19px; text-align:center; ">
  171. <script type="javascript" ev:event="xfroms-value-changed">
  172. <![CDATA[
  173. if(ipt_winpsn.value.length == 0)
  174. {
  175. ipt_winpsnnm.value = "";
  176. }else{
  177. misfValidationCheck("01-1", "", "winpsn,winpsnnm");
  178. }
  179. model.refresh();
  180. ]]>
  181. </script>
  182. </input>
  183. <input id="ipt_winpsnnm" ref="/root/send/winpsnnm" class="input_search" appearance="output" style="left:910px; top:10px; width:125px; height:19px; text-align:center; ">
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. if(ipt_winpsnnm.value.length == 0)
  187. {
  188. ipt_winpsn.value = "";
  189. }else {
  190. misfValidationCheck("01-2", "", "winpsn,winpsnnm");
  191. }
  192. model.refresh();
  193. ]]>
  194. </script>
  195. </input>
  196. <caption id="caption2" class="search_name" style="left:700px; top:35px; width:86px; height:17px; ">거 래 처 :</caption>
  197. <input id="ipt_custcd" ref="/root/send/custcd" class="input_search" style="left:789px; top:34px; width:97px; height:19px; ">
  198. <script type="javascript" ev:event="xforms-value-changed">
  199. <![CDATA[
  200. if(ipt_custcd.value != ""){
  201. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  202. model.getValue(cmb_instcd.attribute("ref")) +",," + model.getValue(ipt_custcd.attribute("ref"))
  203. ,"","custcd,custnm" ,ipt_custcd,"SPRSD00220","instcd","cmb_instcd", "Y");
  204. }else{
  205. ipt_custnm.value = "";
  206. }
  207. model.refresh();
  208. ]]>
  209. </script>
  210. </input>
  211. <button id="btn_custcd" class="icon_search" style="left:890px; top:36px; width:16px; height:16px; ">
  212. <caption/>
  213. <script type="javascript" ev:event="DOMActivate">
  214. <![CDATA[
  215. rszfOpenPopUpListByWndName(ipt_custcd,"","custcd,custnm","SPRSD00220","instcd","cmb_instcd", "Y");
  216. model.refresh();
  217. ]]>
  218. </script>
  219. </button>
  220. <input id="ipt_custnm" ref="/root/send/custnm" class="input_search" style="left:910px; top:34px; width:125px; height:19px; ">
  221. <script type="javascript" ev:event="xforms-value-changed">
  222. <![CDATA[
  223. if(ipt_custnm.value != ""){
  224. rszfValidationCheck("TRRSD00221", "reqcustomlist", "instcd,refcond,retrnm",
  225. model.getValue(cmb_instcd.attribute("ref")) +",custnm," + model.getValue(ipt_custnm.attribute("ref"))
  226. ,"","custcd,custnm" ,ipt_custcd,"SPRSD00220","instcd","cmb_instcd", "Y");
  227. }else{
  228. ipt_custcd.value = "";
  229. }
  230. model.refresh();
  231. ]]>
  232. </script>
  233. </input>
  234. <select1 id="cmb_fixtrseqmtflag" ref="/root/send/fixtrseqmtflag" class="combo_s_essential" appearance="minimal" style="left:495px; top:8px; width:145px; height:19px; text-align:center; ">
  235. <choices>
  236. <itemset nodeset="/root/init/fixtrseqmflag">
  237. <label ref="label"/>
  238. <value ref="value"/>
  239. </itemset>
  240. </choices>
  241. </select1>
  242. <caption id="cap_fixtrseqmtflag" class="search_name" style="left:405px; top:9px; width:86px; height:17px; ">자산구분 :</caption>
  243. <caption id="cap_paycond" class="search_name" style="left:15px; top:62px; width:88px; height:17px; ">지 불 필 :</caption>
  244. <select1 id="rdo_paycond" ref="/root/send/paycond" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:105px; top:62px; width:225px; height:20px; border-style:none; ">
  245. <choices>
  246. <item>
  247. <label>전체</label>
  248. <value/>
  249. </item>
  250. <item>
  251. <label>정상</label>
  252. <value>1</value>
  253. </item>
  254. <item>
  255. <label>지불 필</label>
  256. <value>2</value>
  257. </item>
  258. </choices>
  259. </select1>
  260. <caption id="caption1" class="search_name" style="left:405px; top:62px; width:88px; height:17px; ">접수구분 :</caption>
  261. <select1 id="rdo_acptflag" ref="/root/send/acptflag" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:495px; top:62px; width:180px; height:20px; border-style:none; ">
  262. <choices>
  263. <item>
  264. <label>전체</label>
  265. <value/>
  266. </item>
  267. <item>
  268. <label>수리</label>
  269. <value>1</value>
  270. </item>
  271. <item>
  272. <label>예방</label>
  273. <value>2</value>
  274. </item>
  275. </choices>
  276. </select1>
  277. <select1 id="rdo_repflag" ref="/root/send/repflag" visibility="hidden" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:789px; top:62px; width:180px; height:20px; border-style:none; ">
  278. <choices>
  279. <item>
  280. <label>전체</label>
  281. <value/>
  282. </item>
  283. <item>
  284. <label>공사</label>
  285. <value>2</value>
  286. </item>
  287. <item>
  288. <label>구축물</label>
  289. <value>4</value>
  290. </item>
  291. </choices>
  292. </select1>
  293. <caption id="caption3" class="search_name" visibility="hidden" style="left:700px; top:62px; width:88px; height:17px; ">수리구분 :</caption>
  294. </group>
  295. <caption id="cap_title" class="tit_2" style="left:5px; top:114px; width:157px; height:14px; ">장비수리내역List</caption>
  296. <line id="line2" class="line_1" style="x1:0px; y1:134px; x2:1192px; y2:134px; "/>
  297. <datagrid id="grd_rsihdpaplist" nodeset="/root/main/rsihdpaplist1" caption="물품구분명^거래처 코드^거래처명^자산(장비)코드^비품명^모델^수리내역^사용부서명^계산서일자^수리금액^결재^결재일자^결재자^수리일자^입고일자^입고번호^계산서유형^건수^입금은행^은행계좌^전표일자^전표번호" colsep="^" colwidth="82, 80, 150, 88, 150, 90, 110, 80, 75, 70, 50, 75, 65, 75, 75, 60, 90, 76, 133, 138, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:139px; width:1190px; height:541px; ">
  298. <col disabled="true" ref="fixtrseqmtflag" type="combo" style="text-align:center; ">
  299. <choices>
  300. <itemset nodeset="/root/init/fixtrseqmflag">
  301. <label ref="label"/>
  302. <value ref="value"/>
  303. </itemset>
  304. </choices>
  305. </col>
  306. <col ref="custcd"/>
  307. <col ref="custnm"/>
  308. <col ref="fixasetcd"/>
  309. <col ref="fixasetnm"/>
  310. <col ref="goodmodel"/>
  311. <col ref="rpirspec"/>
  312. <col ref="mngtdeptnm"/>
  313. <col ref="accountdd" format="yyyy-mm-dd" style="text-align:center; "/>
  314. <col ref="rpiramt" format="#,###" style="text-align:right; "/>
  315. <col checkvalue="Y,N" ref="purcaprvyn" type="checkbox" visibility="hidden"/>
  316. <col ref="purcaprvdd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  317. <col ref="purcaprvpsnnm" visibility="hidden" style="text-align:center; "/>
  318. <col ref="rpirdd" format="yyyy-mm-dd" _key="true" style="text-align:center; "/>
  319. <col ref="windd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
  320. <col ref="winno" visibility="hidden" style="text-align:right; "/>
  321. <col disabled="true" ref="calcdocukind" type="combo" style="text-align:center; ">
  322. <choices>
  323. <itemset nodeset="/root/init/calcdocukind">
  324. <label ref="label"/>
  325. <value ref="value"/>
  326. </itemset>
  327. </choices>
  328. </col>
  329. <col ref="wincnt" visibility="hidden" format="#,###" style="text-align:right; "/>
  330. <col ref="banknm" style="text-align:center; "/>
  331. <col ref="aactno" style="text-align:center; "/>
  332. <col ref="slipdd" format="yyyy-mm-dd" style="text-align:center; "/>
  333. <col ref="slipno" style="text-align:right; "/>
  334. <col ref="sanctpsn" visibility="hidden"/>
  335. <col ref="instcd" visibility="hidden"/>
  336. <col ref="wintaxamt" visibility="hidden"/>
  337. <col ref="winsupamt" visibility="hidden"/>
  338. <col ref="acntcd" visibility="hidden"/>
  339. <col ref="paycond" visibility="hidden"/>
  340. <col ref="reqdd" visibility="hidden"/>
  341. <col ref="reqno" visibility="hidden"/>
  342. <col ref="purcaprvpsnid" visibility="hidden"/>
  343. <col ref="acptflag" visibility="hidden"/>
  344. <script type="javascript" ev:event="xforms-value-changed">
  345. <![CDATA[
  346. if(grd_rsihdpaplist.col == grd_rsihdpaplist.colRef("purcaprvyn"))
  347. {
  348. if(grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvyn")) == 'Y' )
  349. {
  350. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvpsnid")) = getUserInfo("userid");
  351. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvpsnnm")) = getUserInfo("usernm");
  352. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvdd")) = getCurrentDate();
  353. }else
  354. {
  355. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvpsnid")) = '';
  356. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvpsnnm")) = '';
  357. grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("purcaprvdd")) = '';
  358. }
  359. }
  360. ]]>
  361. </script>
  362. <script type="javascript" ev:event="onrowchanged">
  363. <![CDATA[
  364. model.setValue("/root/send/windd",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("windd"))) ;
  365. model.setValue("/root/send/winno",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("winno"))) ;
  366. model.setValue("/root/send/suplplcecd",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("suplplcecd")));
  367. // model.setValue("/root/send/goodflag_det",grd_rsihdpaplist.valueMatrix(grd_rsihdpaplist.row, grd_rsihdpaplist.colRef("goodflag")));
  368. // submit("TRRSI02702");
  369. grd_rsihdpaplist.dispatch("onmouseup");
  370. ]]>
  371. </script>
  372. <script type="javascript" ev:event="onaftersort">
  373. <![CDATA[
  374. grd_rsihdpaplist.gridToInstance();
  375. ]]>
  376. </script>
  377. </datagrid>
  378. <button id="btn_excel" class="btn5_letter3" style="left:1135px; top:114px; width:53px; height:19px; ">
  379. <caption>Excel</caption>
  380. <script type="javascript" ev:event="DOMActivate">
  381. <![CDATA[
  382. var fileName = window.fileDialog("save", ",", false, "수리내역", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  383. if (fileName != "")
  384. {
  385. grd_rsihdpaplist.saveExcel(fileName, "수리내역List",true,true, "");
  386. }
  387. ]]>
  388. </script>
  389. </button>
  390. </group>
  391. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  392. <line id="line19" class="line_2" style="x1:0; y1:25; x2:1195; y2:25; "/>
  393. <line id="line22" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  394. <button id="btm_init" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  395. <caption>초기화</caption>
  396. <script type="javascript" ev:event="DOMActivate">
  397. <![CDATA[
  398. fInitialize();
  399. ]]>
  400. </script>
  401. </button>
  402. </group>
  403. </xhtml:body>
  404. </xhtml:html>