SMRWB00100_위원회현황관리.xrw 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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>SMRWB00100_위원회관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <bordlist>
  12. <instcd/>
  13. <bordcd/>
  14. <bordnm/>
  15. <aprvyn/>
  16. <estbdd/>
  17. <todd/>
  18. <cmt/>
  19. </bordlist>
  20. </list>
  21. <check>
  22. <checklist>
  23. <bordcd/>
  24. </checklist>
  25. </check>
  26. </main>
  27. <send>
  28. <instcd/>
  29. <save>
  30. <bordlist/>
  31. </save>
  32. <checksend>
  33. <instcd/>
  34. <bordcd/>
  35. <bordnm/>
  36. </checksend>
  37. </send>
  38. <temp/>
  39. <init>
  40. <list>
  41. <aprvflag>
  42. <label>비공인</label>
  43. <value>N</value>
  44. <label>공 인</label>
  45. <value>Y</value>
  46. </aprvflag>
  47. </list>
  48. </init>
  49. </root>
  50. </instance>
  51. <submission id="TRRWB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  52. <submission id="TXRWB00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  53. <submission id="TRRWB00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/checksend" resultref="/root/main/check"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  58. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  59. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  60. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  61. <script type="javascript" ev:event="xforms-ready">
  62. <![CDATA[
  63. fInitialize();
  64. ]]>
  65. </script>
  66. <script type="javascript">
  67. <![CDATA[
  68. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  69. function fCheckSaveData()
  70. {
  71. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  72. {
  73. messageBox("기관코드를 " ,"C002");
  74. model.setFocus("cmb_instcd");
  75. return false;
  76. }
  77. for(var row = grd_bord.fixedRows ; row < grd_bord.rows ; row++)
  78. {
  79. if(grd_bord.valueMatrix(row , grd_bord.colRef("bordnm")).length == 0)
  80. {
  81. messageBox("위원회명을 " ,"C002");
  82. grd_bord.row= row ;
  83. grd_bord.col= grd_bord.colRef("bordnm");
  84. return false;
  85. }
  86. if(grd_bord.valueMatrix(row , grd_bord.colRef("estbdd")).length == 0)
  87. {
  88. messageBox("구성일자를 " ,"C002");
  89. grd_bord.row= row ;
  90. grd_bord.col= grd_bord.colRef("estbdd");
  91. return false;
  92. }
  93. }
  94. }
  95. function fInitialize()
  96. {
  97. misfGridInit(grd_bord);
  98. misfMsterDetailSet(grd_bord,null, "TRRWB00101" ,"Y");
  99. //misfComboComCdListMulti("Z0007","cmb_instcd");
  100. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  101. model.refresh();
  102. submit("TRRWB00101");
  103. btn_search.dispatch("DOMActivate");
  104. }
  105. ]]>
  106. </script>
  107. </xhtml:head>
  108. <xhtml:body>
  109. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  110. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">위원회 현황 관리</caption>
  111. </group>
  112. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  113. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  114. <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
  115. <caption>조회</caption>
  116. <script type="javascript" ev:event="DOMActivate">
  117. <![CDATA[
  118. misfMsterDetailRetrieve();
  119. ]]>
  120. </script>
  121. </button>
  122. <line id="line13" class="line_4" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
  123. <line id="line1" class="line_1" style="x1:1px; y1:75px; x2:1195px; y2:75px; "/>
  124. <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:1082px; top:50px; width:53px; height:19px; ">
  125. <caption>행추가</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. if(cmb_instcd.value == "") {
  129. messageBox("기관코드를","C002");
  130. }else{
  131. grd_bord.addRow();
  132. var cur_row = grd_bord.row;
  133. //행추가를 누를시 상위코드의 값을 자동으로 저장한다.
  134. model.setValue("/root/main/list/bordlist["+cur_row+"]/instcd",cmb_instcd.value);
  135. grd_bord.valueMatrix(cur_row, 4)="N";
  136. grd_bord.valueMatrix(cur_row, 6)="99991231";
  137. model.refresh();
  138. }
  139. ]]>
  140. </script>
  141. </button>
  142. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1138px; top:50px; width:53px; height:19px; ">
  143. <caption>행삭제</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. var delcnt;
  147. delcnt = 0;
  148. if(grd_bord.rowStatus(grd_bord.row) == 4 || grd_bord.rowStatus(grd_bord.row) == 1)//Insert 한 Row 나 Delete 한 Row는 Delete 시 이전 Delete flag 삭제
  149. {
  150. misfGridIUD(grd_bord, "D");
  151. }
  152. else
  153. {
  154. for(row = grd_bord.fixedRows ; row <= grd_bord.rows ; row++)
  155. {
  156. if(grd_bord.rowStatus(row) == 4)
  157. {
  158. delcnt += 1;
  159. }
  160. if(delcnt == 1)
  161. {
  162. messageBox("두 개 이상 삭제하실수 ","E001");
  163. return false;
  164. }
  165. }
  166. misfGridIUD(grd_bord, "D");
  167. }
  168. ]]>
  169. </script>
  170. </button>
  171. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:68px; top:17px; width:202px; height:19px; ">
  172. <choices>
  173. <itemset>
  174. <label/>
  175. <value/>
  176. </itemset>
  177. </choices>
  178. <script type="javascript" ev:event="xforms-select">
  179. <![CDATA[
  180. misfMsterDetailRetrieve();
  181. ]]>
  182. </script>
  183. </select1>
  184. <caption id="caption2" class="search_name" style="left:7px; top:18px; width:61px; height:17px; ">기관:</caption>
  185. <datagrid id="grd_bord" nodeset="/root/main/list/bordlist" caption="기관코드^위원회코드^위원회명^공인여부^구성일자^종료일자^비고" colsep="^" colwidth="0,0, 160, 100, 160, 160, 590" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:1px; top:75px; width:1194px; height:660px; ">
  186. <col ref="instcd"/>
  187. <col ref="bordcd"/>
  188. <col ref="bordnm" type="input"/>
  189. <col ref="aprvyn" type="combo" style="text-align:center; ">
  190. <choices>
  191. <itemset nodeset="/root/init/list/aprvflag">
  192. <label ref="label"/>
  193. <value ref="value"/>
  194. </itemset>
  195. </choices>
  196. </col>
  197. <col ref="estbdd" type="inputdate" format="yyyy-mm-dd"/>
  198. <col ref="todd" type="inputdate" format="yyyy-mm-dd"/>
  199. <col ref="cmt" type="input"/>
  200. </datagrid>
  201. </group>
  202. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  203. <button id="button36" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  204. <caption>저장</caption>
  205. <script type="javascript" ev:event="DOMActivate">
  206. <![CDATA[
  207. if(fCheckSaveData() == false)return;
  208. for(row = grd_bord.fixedRows ; row <= grd_bord.rows ; row++)
  209. {
  210. if(grd_bord.rowStatus(row) == 4)
  211. {
  212. model.setValue("/root/send/checksend/instcd", grd_bord.valueMatrix(row, grd_bord.colRef("instcd")));
  213. model.setValue("/root/send/checksend/bordcd", grd_bord.valueMatrix(row, grd_bord.colRef("bordcd")));
  214. model.setValue("/root/send/checksend/bordnm", grd_bord.valueMatrix(row, grd_bord.colRef("bordnm")));
  215. submit("TRRWB00102");
  216. }
  217. }
  218. if(model.getValue("/root/main/check/checklist/bordcd") == "")
  219. {
  220. misfSave("TXRWB00101");
  221. }
  222. else
  223. {
  224. messageBox(model.getValue("/root/send/checksend/bordnm") + " 위원회는 하위 데이터가 있어 삭제하실수 ","E001");
  225. for(row = grd_bord.fixedRows ; row <= grd_bord.rows ; row++)
  226. {
  227. if(grd_bord.rowStatus(row) == 4)
  228. {
  229. grd_bord.removeStatus(row, "delete");
  230. }
  231. }
  232. }
  233. model.removenode("/root/main/check/checklist/bordcd");
  234. misfMsterDetailRetrieve();
  235. ]]>
  236. </script>
  237. </button>
  238. <button id="button35" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
  239. <caption>초기화</caption>
  240. <script type="javascript" ev:event="DOMActivate">
  241. <![CDATA[
  242. fInitialize();
  243. ]]>
  244. </script>
  245. </button>
  246. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  247. </group>
  248. </xhtml:body>
  249. </xhtml:html>