SPRFC04000_재물조사계정등록관리.xrw 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>재물조사 계정등록관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <acntinfo>
  12. <acntlist/>
  13. </acntinfo>
  14. </list>
  15. </main>
  16. <target/>
  17. <init>
  18. <acnt/>
  19. </init>
  20. <send>
  21. <search>
  22. <instcd/>
  23. <yyyy/>
  24. <acntnm/>
  25. </search>
  26. </send>
  27. <temp/>
  28. <popdata>
  29. <instcd/>
  30. <yyyy/>
  31. </popdata>
  32. </root>
  33. </instance>
  34. <script type="javascript">
  35. <![CDATA[
  36. function fInitialize()
  37. {
  38. misfGridInit(grd_acntinfo);
  39. misfComboComCdList("C0048",cmb_instcd,"Y"); //기관코드
  40. //Opener로부터 받은 parameter값을 조회조건으로 setting함
  41. var yyyy = model.getValue("/root/popdata/yyyy");
  42. model.setValue("/root/send/search/instcd", getUserInfo("dutplceinstcd"));
  43. if(yyyy ==""){
  44. model.setValue("/root/send/search/yyyy",getCurrentDate().substring(0, 4));
  45. }else{
  46. model.setValue("/root/send/search/yyyy", model.getValue("/root/popdata/yyyy"));
  47. }
  48. submit("TRRSO20602"); //계정 조회
  49. cmb_acntnm.select(0); //계정 from 설정
  50. btn_search.dispatch("DOMActivate");
  51. model.refresh();
  52. }
  53. ]]>
  54. </script>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. fInitialize();
  58. ]]>
  59. </script>
  60. <submission id="TRRSO20602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/init/acnt"/>
  61. <submission id="TRRFC00411" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list/acntinfo/acntlist"/>
  62. <submission id="TXRFC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  63. </model>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  66. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  71. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  72. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  73. </xhtml:head>
  74. <xhtml:body pagewidth="540" pageheight="480" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  75. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:510px; height:20px; ">재물조사 계정등록관리</caption>
  76. <button id="btn_confirm" class="btn4_letter2" style="left:460px; top:455px; width:56px; height:22px; ">
  77. <caption>닫기</caption>
  78. <script type="javascript" ev:event="DOMActivate">
  79. <![CDATA[
  80. if ( checkOpener() ) {
  81. opener.javascript.setParameter("para_closeyn" , "Y");
  82. } else {
  83. var rtn = messageBox("상위화면을 찾을 수", "E001");
  84. }
  85. model.close();
  86. ]]>
  87. </script>
  88. </button>
  89. <group id="grp_search" style="left:0px; top:22px; width:520px; height:78px; vertical-align:top; ">
  90. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:520px; height:75px; background-color:#fffbf2; border-color:#ffd799; "/>
  91. <button id="btn_search" class="btn1_letter2" style="left:456px; top:10px; width:56px; height:22px; ">
  92. <caption>조회</caption>
  93. <script type="javascript" ev:event="DOMActivate">
  94. <![CDATA[
  95. submit("TRRFC00411");
  96. ]]>
  97. </script>
  98. </button>
  99. <select1 id="cmb_instcd" ref="/root/send/search/instcd" class="combo_s_essential" disabled="true" navindex="1" appearance="minimal" style="left:96px; top:11px; width:139px; height:19px; text-align:center; ">
  100. <choices>
  101. <itemset>
  102. <label/>
  103. <value/>
  104. </itemset>
  105. </choices>
  106. <script type="javascript" ev:event="xforms-value-changed">
  107. <![CDATA[
  108. btn_search.dispatch("DOMActivate");
  109. ]]>
  110. </script>
  111. </select1>
  112. <caption id="cap_instcd" class="search_name" style="left:5px; top:9px; width:86px; height:17px; vertical-align:top; ">기관코드 :</caption>
  113. <caption id="cap_deptcd" class="search_name" style="left:251px; top:11px; width:90px; height:17px; ">기준년도 :</caption>
  114. <input id="ipt_yyyy" ref="/root/send/search/yyyy" class="input_search" disabled="true" navindex="2" style="left:345px; top:10px; width:80px; height:19px; text-align:center; "/>
  115. <caption id="caption20" class="search_name" style="left:6px; top:45px; width:60px; height:17px; vertical-align:middle; ">계정 :</caption>
  116. <select1 id="cmb_acntnm" ref="/root/send/search/acntnm" class="combo_default" navindex="4" appearance="minimal" editmode="search" showvalue="true" style="left:70px; top:45px; width:255px; height:19px; ">
  117. <choices>
  118. <itemset nodeset="/root/init/acnt/acntlist">
  119. <label ref="acntnm"/>
  120. <value ref="acntcd"/>
  121. </itemset>
  122. </choices>
  123. </select1>
  124. <button id="btn_save" class="btn4_letter2" navindex="8" style="left:455px; top:40px; width:56px; height:22px; ">
  125. <caption>저장</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. var updtdata = getGridUpdateData(grd_acntinfo);
  129. if (updtdata == "") {
  130. messageBox("변경된 데이터가","I004");
  131. return;
  132. }
  133. model.makeValue("/root/send/save/acntlist", grd_acntinfo.getUpdateData())
  134. if( submit("TXRFC00404") ) {
  135. btn_search.dispatch("DOMActivate");
  136. }
  137. ]]>
  138. </script>
  139. </button>
  140. </group>
  141. <caption id="caption4" class="tit_2" style="left:10px; top:104px; width:131px; height:13px; ">계정 리스트</caption>
  142. <line id="line2" class="line_1" style="x1:1px; y1:124px; x2:519px; y2:124px; "/>
  143. <datagrid id="grd_acntinfo" nodeset="/root/main/list/acntinfo/acntlist" caption="계정코드^계정명^분류^년도" colsep="^" colwidth="123, 216, 113, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="24" rowsep="|" style="left:1px; top:130px; width:519px; height:320px; font-weight:normal; text-align:center; ">
  144. <col ref="acntcd" style="text-align:center; "/>
  145. <col ref="acntnm" style="text-align:center; padding-left:10; "/>
  146. <col ref="gubun" type="combo" style="text-align:center; ">
  147. <choices>
  148. <item>
  149. <label>의료기기</label>
  150. <value>1</value>
  151. </item>
  152. <item>
  153. <label>의료비품</label>
  154. <value>2</value>
  155. </item>
  156. <item>
  157. <label>일반비품 및 기타</label>
  158. <value>3</value>
  159. </item>
  160. </choices>
  161. </col>
  162. <col ref="yyyy" visibility="hidden"/>
  163. </datagrid>
  164. <button id="btn_grddel" class="btn2_letter3" navindex="10" style="left:465px; top:103px; width:53px; height:19px; ">
  165. <caption>행삭제</caption>
  166. <script type="javascript" ev:event="DOMActivate">
  167. <![CDATA[
  168. misfGridIUD(grd_acntinfo, "D");
  169. ]]>
  170. </script>
  171. </button>
  172. <button id="btn_grdadd" class="btn2_letter3" navindex="9" style="left:329px; top:66px; width:53px; height:19px; ">
  173. <caption>행추가</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. misfGridIUD(grd_acntinfo, "A");
  177. grd_acntinfo.valueMatrix(grd_acntinfo.row, grd_acntinfo.colRef("acntcd")) = cmb_acntnm.value;
  178. grd_acntinfo.valueMatrix(grd_acntinfo.row, grd_acntinfo.colRef("acntnm")) = cmb_acntnm.label;
  179. grd_acntinfo.valueMatrix(grd_acntinfo.row, grd_acntinfo.colRef("yyyy")) = ipt_yyyy.label;
  180. ]]>
  181. </script>
  182. </button>
  183. <button id="btn_select" class="btn4_letter2" style="left:400px; top:455px; width:56px; height:22px; ">
  184. <caption>적용</caption>
  185. <script type="javascript" ev:event="DOMActivate">
  186. <![CDATA[
  187. //선택목록이 no rows 일 때
  188. if(grd_acntinfo.rows == 1) {
  189. messageBox("등록된 계정코드가 없습니다. ", "E999", "");
  190. return;
  191. }
  192. var updtdata = getGridUpdateData(grd_acntinfo);
  193. if ( updtdata != "") {
  194. var ret = messageBox("그리드에 작업 중인 내용은 적용되지 않습니다. 적용 작업을","Q003");
  195. if (ret != 6) { // not OK
  196. return;
  197. }
  198. }
  199. //선택버튼을 click했는지 아닌지를 나타내는 구분값을 opener에 전달한다.
  200. opener.model.setValue("/root/popacnt/selectyn", "Y");
  201. opener.model.removeNodeset("/root/popacntlist/acntlist");
  202. for(var i = grd_acntinfo.fixedRows; i < grd_acntinfo.rows; i++) {
  203. opener.model.makeValue( "/root/popacntlist/acntlist[" + i + "]/acntcd", grd_acntinfo.valueMatrix(i, grd_acntinfo.colRef("acntlist")) );
  204. opener.model.makeValue( "/root/popacntlist/acntlist[" + i + "]/acntnm", grd_acntinfo.valueMatrix(i, grd_acntinfo.colRef("acntnm")) );
  205. opener.model.makeValue( "/root/popacntlist/acntlist[" + i + "]/yyyy", grd_acntinfo.valueMatrix(i, grd_acntinfo.colRef("yyyy")) );
  206. }
  207. window.close();
  208. ]]>
  209. </script>
  210. </button>
  211. </xhtml:body>
  212. </xhtml:html>