SMRFC00100_설치장소코드관리.xrw 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>설치장소코드관리</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <grid>
  12. <rfcmetpllist/>
  13. </grid>
  14. </main>
  15. <send>
  16. <instcd/>
  17. <deptcd/>
  18. <deptnm/>
  19. </send>
  20. <init>
  21. </init>
  22. <hidden/>
  23. <temp/>
  24. </root>
  25. </instance>
  26. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  27. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  28. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  29. <script type="javascript" ev:event="xforms-ready">
  30. <![CDATA[
  31. fInitialize();
  32. ]]>
  33. </script>
  34. <submission id="TRRFC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grid/rfcmetpllist"/>
  35. <submission id="TXRFC00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/grid/rfcmetpllist" resultref="/root/temp"/>
  36. </model>
  37. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  40. <script type="javascript">
  41. <![CDATA[
  42. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  43. function fInitialize() {
  44. misfGridInit(grd_rfcmetpllist);
  45. misfComboComCdList("Z0007", cmb_instcd); //기관코드
  46. misfMsterDetailSet(grd_rfcmetpllist, null, "TRRFC00101","Y"); //마스터 설정
  47. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  48. //화면 권한 설정
  49. btn_save.disabled = !(checkAuth("X"));
  50. btn_prt.disabled= !(checkAuth("P"));
  51. btn_search.dispatch("DOMActivate");
  52. }
  53. function fsearch(){
  54. var updtdata = getGridUpdateData(grd_rfcmetpllist);
  55. if ( updtdata != "") {
  56. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  57. if (ret != 6) { // not OK
  58. return;
  59. }
  60. }
  61. isRequiredControls("cmb_instcd");
  62. misfMsterDetailRetrieve();
  63. // misfSetReadOnlyCol(grd_rfcmetpllist, "instcd,deptcd,deptnm", true);
  64. }
  65. ]]>
  66. </script>
  67. </xhtml:head>
  68. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  69. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  70. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">설치장소 코드관리</caption>
  71. </group>
  72. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  73. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  74. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  75. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  76. <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  77. <caption id="cap_deptcd" class="search_name" style="left:546px; top:9px; width:90px; height:17px; ">부서코드 :</caption>
  78. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:8px; width:56px; height:22px; ">
  79. <caption>조회</caption>
  80. <script type="javascript" ev:event="DOMActivate">
  81. <![CDATA[
  82. fsearch();
  83. ]]>
  84. </script>
  85. </button>
  86. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:108px; top:8px; width:258px; height:19px; text-align:center; ">
  87. <choices>
  88. <itemset>
  89. <label/>
  90. <value/>
  91. </itemset>
  92. </choices>
  93. <script type="javascript" ev:event="xforms-value-changed">
  94. <![CDATA[
  95. btn_search.dispatch("DOMActivate");
  96. ]]>
  97. </script>
  98. </select1>
  99. <input id="ipt_deptcd" ref="/root/send/deptcd" class="input_search" style="left:640px; top:8px; width:105px; height:19px; text-align:center; ">
  100. <script type="javascript" ev:event="xforms-value-changed">
  101. <![CDATA[
  102. //alert("1");
  103. misfValidationCheck("02", "", "deptcd,deptnm");
  104. model.refresh();
  105. ]]>
  106. </script>
  107. </input>
  108. <input id="ipt_deptnm" ref="/root/send/deptnm" class="input_search" style="left:770px; top:10px; width:172px; height:19px; text-align:center; ">
  109. <script type="javascript" ev:event="xforms-value-changed">
  110. <![CDATA[
  111. alert("2");
  112. misfValidationCheck("02", "", "deptcd,deptnm");
  113. model.refresh();
  114. ]]>
  115. </script>
  116. </input>
  117. <button id="btn_deptcd" class="icon_search" style="left:751px; top:10px; width:16px; height:16px; ">
  118. <caption/>
  119. <script type="javascript" ev:event="DOMActivate">
  120. <![CDATA[
  121. misfOpenPopUpList("02", ipt_deptcd, "", "deptcd,deptnm", model.getValue(cmb_instcd.attribute("ref")),"instcd");
  122. model.refresh();
  123. ]]>
  124. </script>
  125. </button>
  126. </group>
  127. <line id="line2" class="line_1" style="x1:0px; y1:94px; x2:1194; y2:94px; "/>
  128. <caption id="caption8" class="tit_2" style="left:5px; top:79px; width:133px; height:14px; ">설치장소코드 List</caption>
  129. <button id="btn_grdadd" class="btn2_letter3" style="left:1085px; top:74px; width:53px; height:19px; ">
  130. <caption>행추가</caption>
  131. <script type="javascript" ev:event="DOMActivate">
  132. <![CDATA[
  133. misfGridIUD(grd_rfcmetpllist, "A");
  134. grd_rfcmetpllist.valueMatrix(grd_rfcmetpllist.row, grd_rfcmetpllist.colRef("instcd")) = cmb_instcd.value;
  135. ]]>
  136. </script>
  137. </button>
  138. <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:74px; width:53px; height:19px; ">
  139. <caption>행삭제</caption>
  140. <script type="javascript" ev:event="DOMActivate">
  141. <![CDATA[
  142. misfGridIUD(grd_rfcmetpllist, "D");
  143. ]]>
  144. </script>
  145. </button>
  146. <datagrid id="grd_rfcmetpllist" nodeset="/root/main/grid/rfcmetpllist" caption="설치장소^설치장소^부서^부서^기관코드^기관명" colsep="^" colwidth="200, 200, 200, 200, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:100px; width:1195px; height:644px; ">
  147. <col ref="installplcecd" type="input" _key="true" style="text-align:center; "/>
  148. <col ref="installplcenm" type="input" style="text-align:left; "/>
  149. <col ref="deptcd" type="inputbutton" style="text-align:center; "/>
  150. <col ref="deptnm" type="input" style="text-align:left; "/>
  151. <col ref="instcd" visibility="hidden" _key="true"/>
  152. <col ref="instnm" visibility="hidden" style="text-align:left; "/>
  153. <script type="javascript" ev:event="onbuttonclick">
  154. <![CDATA[
  155. if(grd_rfcmetpllist.col == grd_rfcmetpllist.colRef("deptcd"))
  156. {
  157. misfOpenPopUpList("02", grd_rfcmetpllist, "", "deptcd,deptnm", model.getValue(cmb_instcd.attribute("ref")),"instcd");
  158. }
  159. ]]>
  160. </script>
  161. <script type="javascript" ev:event="xforms-value-changed">
  162. <![CDATA[
  163. if(grd_rfcmetpllist.col == grd_rfcmetpllist.colRef("deptcd"))
  164. {
  165. misfValidationCheck("02", "grd_rfcmetpllist", "deptcd,deptnm");
  166. }else if(grd_rfcmetpllist.col == grd_rfcmetpllist.colRef("deptnm"))
  167. {
  168. misfValidationCheck("02", "grd_rfcmetpllist", "deptcd,deptnm");
  169. }
  170. ]]>
  171. </script>
  172. </datagrid>
  173. <button id="button1" class="btn2_letter4" style="left:1017px; top:74px; width:64px; height:19px; ">
  174. <caption>엑셀저장</caption>
  175. <script type="javascript" ev:event="DOMActivate">
  176. <![CDATA[
  177. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  178. if (fileName != "") {
  179. grd_rfcmetpllist.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:true;rowhiddenextend:false;exportfalsecols:0,0;col_1:value;");
  180. }
  181. ]]>
  182. </script>
  183. </button>
  184. </group>
  185. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  186. <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  187. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  188. <caption>초기화</caption>
  189. <script type="javascript" ev:event="DOMActivate">
  190. <![CDATA[
  191. fInitialize();
  192. ]]>
  193. </script>
  194. </button>
  195. <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3; width:56px; height:22px; ">
  196. <caption>저장</caption>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. var updtdata = getGridUpdateData(grd_rfcmetpllist);
  200. if (updtdata == "")
  201. {
  202. messageBox("변경된 데이터가","I004");
  203. return;
  204. }
  205. if(!checkKeyColumn("grd_rfcmetpllist")) return;
  206. rtn = messageBox("", "Q002");
  207. if(rtn != "6" ) return false;
  208. misfSave("TXRFC00101");
  209. btn_search.dispatch("DOMActivate");
  210. ]]>
  211. </script>
  212. </button>
  213. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3; width:56px; height:22px; ">
  214. <caption>출력</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. exeReportPreview("RPRFC00101","XMLSTR");
  218. ]]>
  219. </script>
  220. </button>
  221. </group>
  222. </xhtml:body>
  223. </xhtml:html>