SMRSC01700_청구마감일자등록.xrw 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. <rsdhdeymlist/>
  11. </main>
  12. <send>
  13. <instcd/>
  14. <deldeptcd/>
  15. <deldeptnm/>
  16. <instcdnm/>
  17. </send>
  18. <init/>
  19. <hidden/>
  20. <temp/>
  21. </root>
  22. </instance>
  23. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  24. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  25. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  26. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  27. <script type="javascript" ev:event="xforms-ready">
  28. <![CDATA[
  29. fInitialize();
  30. ]]>
  31. </script>
  32. <submission id="TRRSC01701" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/rsdhdeymlist"/>
  33. <submission id="TXRSC01701" ref="/root/main/rsdhdeymlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
  34. </model>
  35. <script type="javascript">
  36. <![CDATA[
  37. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  38. function fInitialize() {
  39. misfGridInit(grd_rsdhdeymlist);
  40. misfMsterDetailSet(grd_rsdhdeymlist,null,"TRRSC01701","Y");
  41. // misfComboComCdList("Z0007", cmb_instcd); //기관코드
  42. model.setValue(opt_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  43. model.setValue(opt_instcdnm.attribute("ref"), getUserInfo("dutplceinstnm"));
  44. model.setValue(ipt_deldeptcd.attribute("ref"), getUserInfo("dutplcecd"));
  45. model.setValue(ipt_deldeptnm.attribute("ref"), getUserInfo("dutplcenm"));
  46. //화면 권한 설정
  47. btn_save.disabled = !(checkAuth("X"));
  48. btn_prt.disabled= !(checkAuth("P"));
  49. // submit("TRRSC01701");
  50. btn_search.dispatch("DOMActivate");
  51. }
  52. function fGridAddData()
  53. {
  54. grd_rsdhdeymlist.valueMatrix(grd_rsdhdeymlist.row, grd_rsdhdeymlist.colRef("instcd")) = model.getValue(opt_instcd.attribute("ref"));
  55. grd_rsdhdeymlist.valueMatrix(grd_rsdhdeymlist.row, grd_rsdhdeymlist.colRef("delivedeptcd")) = model.getValue(ipt_deldeptcd.attribute("ref"));
  56. grd_rsdhdeymlist.valueMatrix(grd_rsdhdeymlist.row, grd_rsdhdeymlist.colRef("delivedeptnm")) = model.getValue(ipt_deldeptnm.attribute("ref"));
  57. }
  58. function fsearch()
  59. {
  60. var updtdata = getGridUpdateData(grd_rsdhdeymlist);
  61. if ( updtdata != "") {
  62. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  63. if (ret != 6) { // not OK
  64. return;
  65. }
  66. }
  67. submit("TRRSC01701");
  68. }
  69. ]]>
  70. </script>
  71. </xhtml:head>
  72. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  73. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  74. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">청구마감일자등록</caption>
  75. </group>
  76. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  77. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:40px; vertical-align:top; ">
  78. <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; "/>
  79. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  80. <line id="line13" class="line_4" style="x1:1110px; y1:0px; x2:1110px; y2:34px; border-color:#ffe4bb; border-left-style:solid; "/>
  81. <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
  82. <caption>조회</caption>
  83. <script type="javascript" ev:event="DOMActivate">
  84. <![CDATA[
  85. fsearch();
  86. ]]>
  87. </script>
  88. </button>
  89. <output id="opt_instcdnm" ref="/root/send/instcdnm" class="output_fix" style="left:103px; top:8px; width:154px; height:19px; "/>
  90. <output id="opt_instcd" ref="/root/send/instcd" class="output_fix" visibility="hidden" style="left:269px; top:9px; width:30px; height:19px; "/>
  91. <caption id="caption1" class="search_name" style="left:405px; top:9px; width:86px; height:17px; ">불출부서 :</caption>
  92. <button id="btn_reqdeptcd" class="icon_search" visibility="visible" style="left:600px; top:9px; width:16px; height:16px; ">
  93. <caption/>
  94. <script type="javascript" ev:event="DOMActivate">
  95. <![CDATA[
  96. var recv_list = "deldeptcd,deldeptnm";
  97. misfOpenPopUpList("02", ipt_deldeptcd,"", recv_list) ;
  98. model.refresh();
  99. ]]>
  100. </script>
  101. </button>
  102. <input id="ipt_deldeptnm" ref="/root/send/deldeptnm" class="input_fix" appearance="input" style="left:620px; top:8px; width:140px; height:19px; text-align:left; ">
  103. <script type="javascript" ev:event="xforms-value-changed">
  104. <![CDATA[
  105. if(ipt_deldeptnm.value.length == 0)
  106. ipt_deldeptcd.value = "";
  107. else
  108. misfValidationCheck("02", "", "deldeptcd,deldeptnm", model.getValue(opt_instcd.attribute("ref")), "instcd" );
  109. model.refresh();
  110. ]]>
  111. </script>
  112. </input>
  113. <input id="ipt_deldeptcd" ref="/root/send/deldeptcd" class="input_s_essential" style="left:494px; top:8px; width:101px; height:19px; text-align:left; ">
  114. <script type="javascript" ev:event="xforms-value-changed">
  115. <![CDATA[
  116. if(ipt_deldeptcd.value.length == 0)
  117. ipt_deldeptnm.value = "";
  118. else
  119. misfValidationCheck("02", "", "deldeptcd,deldeptnm", model.getValue(opt_instcd.attribute("ref")), "instcd" );
  120. model.refresh();
  121. ]]>
  122. </script>
  123. </input>
  124. </group>
  125. <caption id="caption8" class="tit_2" style="left:5px; top:64px; width:129px; height:14px; ">부서 List</caption>
  126. <button id="btn_grddel" class="btn2_letter3" style="left:1141px; top:58px; width:53px; height:19px; ">
  127. <caption>행삭제</caption>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. misfGridIUD(grd_rsdhdeymlist, "D");
  131. ]]>
  132. </script>
  133. </button>
  134. <line id="line1" class="line_1" style="x1:0px; y1:80px; x2:1194px; y2:79px; "/>
  135. <datagrid id="grd_rsdhdeymlist" nodeset="/root/main/rsdhdeymlist" caption="불출부서^청구년월^청구마지막일자^기관코드^불출부서" colwidth="200, 200, 200, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" colsep="^" style="left:0px; top:83px; width:1195px; height:657px; ">
  136. <col ref="delivedeptnm" style="text-align:left; "/>
  137. <col ref="reqym" type="inputdate" format="yyyy-mm" inputtype="date" _key="true" style="text-align:right; "/>
  138. <col ref="todd" type="inputdate" format="yyyy-mm-dd" inputtype="date" _key="true" style="text-align:right; "/>
  139. <col ref="instcd" visibility="hidden" _key="true"/>
  140. <col ref="delivedeptcd" visibility="hidden" _key="true"/>
  141. </datagrid>
  142. <button id="button1" class="btn2_letter3" style="left:1085px; top:58px; width:53px; height:19px; ">
  143. <caption>행추가</caption>
  144. <script type="javascript" ev:event="DOMActivate">
  145. <![CDATA[
  146. misfGridIUD(grd_rsdhdeymlist, "A");
  147. fGridAddData();
  148. ]]>
  149. </script>
  150. </button>
  151. </group>
  152. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  153. <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  154. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  155. <caption>초기화</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. fInitialize();
  159. ]]>
  160. </script>
  161. </button>
  162. <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3; width:56px; height:22px; ">
  163. <caption>저장</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. var updtdata = getGridUpdateData(grd_rsdhdeymlist);
  167. if (updtdata == "")
  168. {
  169. messageBox("변경된 데이터가","I004");
  170. return;
  171. }
  172. if(!checkKeyColumn("grd_rsdhdeymlist")) return;
  173. rtn = messageBox("", "Q002");
  174. if(rtn != "6" ) return false;
  175. misfSave("TXRSC01701");
  176. fsearch();
  177. ]]>
  178. </script>
  179. </button>
  180. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3; width:56px; height:22px; ">
  181. <caption>출력</caption>
  182. </button>
  183. </group>
  184. </xhtml:body>
  185. </xhtml:html>