SMRBC00700_예산서출력순서관리.xrw 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  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. <acntcdprntlist>
  11. <seq/>
  12. <acntcd/>
  13. <prntnm/>
  14. <calform/>
  15. <prntnm1/>
  16. <prntnm2/>
  17. <prntnm3/>
  18. <prntkind/>
  19. </acntcdprntlist>
  20. <R0022>53</R0022>
  21. </main>
  22. <send>
  23. <prntkind/>
  24. <prntseq/>
  25. <acntcdprntlist/>
  26. <prntseqnm/>
  27. </send>
  28. <hidden>
  29. <seqchk/>
  30. <seqcount/>
  31. </hidden>
  32. <init>
  33. <R0022list>
  34. <R0022>
  35. <cdnm/>
  36. <cdid/>
  37. </R0022>
  38. </R0022list>
  39. </init>
  40. <temp/>
  41. </root>
  42. </instance>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. model.setValue("/root/send/prntseq","1");
  46. model.removenode( "/root/main/acntcdprntlist");
  47. //콩통코드 자료
  48. // zbcfGetCodeList(new Array("R0022"), new Array("/root/init/R0022list"));
  49. misfComboComCdList("R0022", cmb_prntkind);
  50. //cmb_prntkind.select(0);
  51. //model.refresh();
  52. misfMsterDetailSet(grd_acntcdprntlist, null, "TRRBC00701", "Y");
  53. ]]>
  54. </script>
  55. <script type="javascript">
  56. <![CDATA[
  57. //조회
  58. function fGetAactcdprtlist()
  59. {
  60. model.setValue( "/root/send/prntkind", cmb_prntkind.value);
  61. if(model.getValue("/root/send/prntseq") == "1")
  62. {
  63. model.setValue("/root/send/prntseqnm", "seq");
  64. }
  65. else
  66. {
  67. model.setValue("/root/send/prntseqnm","acntcd");
  68. }
  69. misfMsterDetailRetrieve(); // submit("TRRBC00701");
  70. }
  71. //정렬 순서로 sort함.
  72. function fGetSortSeq()
  73. {
  74. var num = grd_acntcdprntlist.rows- 1;
  75. if(rdo_seq.value == 1)
  76. {
  77. grd_acntcdprntlist.sort(1, 2, num, 2) = "asc";
  78. }
  79. else
  80. {
  81. grd_acntcdprntlist.sort(1, 3, num, 3) = "asc";
  82. }
  83. model.refresh();
  84. }
  85. //출력물순서 저장
  86. function fInsAactcdprtlist()
  87. {
  88. var updtdata = getGridUpdateData(grd_acntcdprntlist);
  89. if (updtdata == "")
  90. {
  91. messageBox("변경된 데이터가","I004");
  92. return;
  93. }
  94. checkKeyColumn( "grd_acntcdprntlist" );
  95. //중복체크에 대한 부부이 빠져있음.
  96. model.setValue("/root/send/acntcdprntlist",grd_acntcdprntlist.getUpdateData());
  97. rtn = messageBox("", "Q002");
  98. if(rtn != "6" ) return false;
  99. // if(submit("TXRBC00701"))
  100. // {
  101. // grd_acntcdprntlist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  102. // fGetAactcdprtlist();
  103. // }
  104. misfSave("TXRBC00701");
  105. }
  106. ]]>
  107. </script>
  108. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  110. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  111. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  112. <submission id="TRZBC00101" method="urlencoded-post" replace="instance"/>
  113. <submission id="TRRBC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acntcdprntlist"/>
  114. <submission id="TXRBC00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  115. </model>
  116. </xhtml:head>
  117. <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  118. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  119. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:293px; height:14px; ">예산서 출력순서 관리</caption>
  120. <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
  121. </group>
  122. <group id="group3" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
  123. <group id="grp_sea" style="left:0px; top:10px; width:1195; height:35px; vertical-align:top; ">
  124. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  125. <button id="button2" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
  126. <caption>조회</caption>
  127. <script type="javascript" ev:event="DOMActivate">
  128. <![CDATA[
  129. fGetAactcdprtlist();
  130. ]]>
  131. </script>
  132. </button>
  133. <caption id="caption7" class="search_name" style="left:16px; top:9px; width:104px; height:17px; ">출력물 종류 :</caption>
  134. <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  135. <select1 id="cmb_prntkind" ref="/root/main/R0022" class="combo_s_essential" appearance="minimal" style="left:125px; top:8px; width:140; height:19px; ">
  136. <choices>
  137. <itemset nodeset="/root/init/R0022list/R0022">
  138. <label ref="cdnm"/>
  139. <value ref="cdid"/>
  140. </itemset>
  141. </choices>
  142. </select1>
  143. <caption id="caption1" class="search_name" style="left:330px; top:9px; width:104px; height:17px; ">정 렬 순 서 :</caption>
  144. <select1 id="rdo_seq" ref="/root/send/prntseq" class="radio_search" appearance="full" cellspacing="50" cols="2" overflow="visible" style="left:440px; top:8px; width:190px; height:20px; vertical-align:middle; border-style:none; ">
  145. <choices>
  146. <item>
  147. <label>출력순서</label>
  148. <value>1</value>
  149. </item>
  150. <item>
  151. <label>계정코드</label>
  152. <value>2</value>
  153. </item>
  154. </choices>
  155. <script type="javascript" ev:event="xforms-value-changed">
  156. <![CDATA[
  157. fGetSortSeq();
  158. ]]>
  159. </script>
  160. </select1>
  161. </group>
  162. <line id="line3" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
  163. <button id="button18" class="btn2_letter3" style="left:1139px; top:50px; width:53px; height:19px; ">
  164. <caption>행삭제</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. misfGridIUD(grd_acntcdprntlist, "D");
  168. model.refresh();
  169. ]]>
  170. </script>
  171. </button>
  172. <button id="button1" class="btn2_letter3" style="left:1085px; top:50px; width:53px; height:19px; ">
  173. <caption>행추가</caption>
  174. <script type="javascript" ev:event="DOMActivate">
  175. <![CDATA[
  176. misfGridIUD(grd_acntcdprntlist, "A");
  177. grd_acntcdprntlist.valueMatrix(grd_acntcdprntlist.rows-1, grd_acntcdprntlist.colRef("prntkind")) = cmb_prntkind.value;
  178. model.refresh();
  179. ]]>
  180. </script>
  181. </button>
  182. <datagrid id="grd_acntcdprntlist" nodeset="/root/main/acntcdprntlist" caption="출력순서^계정코드^출력명^계산식^기타1^기타2^기타3^출력물 종류" colsep="^" colwidth="89, 103, 180, 253, 167, 167, 167, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" style="left:0px; top:70px; width:1194px; height:663px; ">
  183. <col ref="seq" type="input" maxlength="4" _key="true" style="text-align:center; "/>
  184. <col ref="acntcd" type="inputbutton" maxlength="8"/>
  185. <col ref="prntnm" type="input" maxlength="20"/>
  186. <col ref="calform" type="input" maxlength="50"/>
  187. <col ref="prntnm1" type="input" maxlength="20"/>
  188. <col ref="prntnm2" type="input" maxlength="20"/>
  189. <col ref="prntnm3" type="input" maxlength="20"/>
  190. <col ref="prntkind" visibility="hidden"/>
  191. <script type="javascript" ev:event="onbuttonclick">
  192. <![CDATA[
  193. misfOpenPopUpList("05", grd_acntcdprntlist, "", "acntcd,prntnm");
  194. ]]>
  195. </script>
  196. <script type="javascript" ev:event="onendedit">
  197. <![CDATA[
  198. if(grd_acntcdprntlist.col == grd_acntcdprntlist.colRef("acntcd"))
  199. {
  200. misfValidationCheck("05", "", "acntcd,prntnm");
  201. misfCheckDupData(grd_acntcdprntlist, grd_acntcdprntlist.colRef("acntcd"))
  202. model.refresh();
  203. }
  204. ]]>
  205. </script>
  206. </datagrid>
  207. <button id="button3" class="btn2_letter2" style="left:1040px; top:50px; width:42px; height:19px; ">
  208. <caption>엑셀</caption>
  209. <script type="javascript" ev:event="DOMActivate">
  210. <![CDATA[
  211. misfSaveExcel(grd_acntcdprntlist);
  212. ]]>
  213. </script>
  214. </button>
  215. <caption id="caption21" class="tit_2" style="left:5px; top:55px; width:131px; height:14px; ">출력 목록</caption>
  216. </group>
  217. <group id="group4" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  218. <button id="button39" class="btn4_letter2" style="left:1137px; top:3px; width:56px; height:22px; ">
  219. <caption>저장</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. fInsAactcdprtlist();
  223. ]]>
  224. </script>
  225. </button>
  226. <line id="line2" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  227. <button id="button23" class="btn6_letter2" visibility="hidden" style="left:2px; top:3px; width:56px; height:22px; ">
  228. <caption>출력</caption>
  229. </button>
  230. </group>
  231. </xhtml:body>
  232. </xhtml:html>