SMICU00900_연구비비목코드관리.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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>연구비비목코드관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <iteminfo>
  11. <itemlist>
  12. <itemexpendcd/>
  13. <itemexpendnm/>
  14. <cmt/>
  15. </itemlist>
  16. </iteminfo>
  17. <itemdetlinfo>
  18. <itemdetllist>
  19. <itemexpendcd/>
  20. <detlitemexpendcd/>
  21. <detlitemexpendnm/>
  22. <expendflag/>
  23. <cmt/>
  24. </itemdetllist>
  25. </itemdetlinfo>
  26. </main>
  27. <send>
  28. <data>
  29. <itemexpendcd/>
  30. </data>
  31. </send>
  32. <senddata>
  33. <execdata>
  34. <itemlist/>
  35. <itemdetllist/>
  36. </execdata>
  37. </senddata>
  38. <init>
  39. <cmb_info>
  40. <inititem>
  41. <itemexpendcd/>
  42. <itemexpendnm/>
  43. </inititem>
  44. </cmb_info>
  45. </init>
  46. <hidden>
  47. <source>
  48. <seqno/>
  49. </source>
  50. </hidden>
  51. </root>
  52. </instance>
  53. <script type="javascript" ev:event="xforms-ready">
  54. <![CDATA[
  55. model.toggle("case1");
  56. button1.selected = true;
  57. button2.selected = false;
  58. submit("TRICU00903");
  59. readfunc();
  60. model.refresh();
  61. ]]>
  62. </script>
  63. <submission id="TRICU00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/iteminfo"/>
  64. <submission id="TRICU00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/itemdetlinfo"/>
  65. <submission id="TRICU00903" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
  66. <submission id="TXICU00901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/execdata/itemlist" replace="instance" resultref="/root/hidden/source"/>
  67. <submission id="TXICU00902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/execdata/itemdetllist" replace="instance" resultref="/root/hidden/source"/>
  68. </model>
  69. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  72. <script type="javascript">
  73. <![CDATA[
  74. function readfunc() {
  75. model.removeNodeset("/root/main/iteminfo/itemlist");
  76. submit("TRICU00901");
  77. }
  78. function readfunc1() {
  79. model.removeNodeset("/root/main/itemdetlinfo/itemdetllist");
  80. submit("TRICU00902");
  81. }
  82. function Execdata(){
  83. for (var i = 1; i < grditem.rows; i ++){
  84. if (model.getValue("/root/main/iteminfo/itemlist[" + i + "]/itemexpendcd") == ""){
  85. messageBox("비목코드는 필수 입력항목입니다.", "E999", "");
  86. return;
  87. }
  88. if (model.getValue("/root/main/iteminfo/itemlist[" + i + "]/itemexpendnm") == ""){
  89. messageBox("비목코드명은 필수 입력항목입니다.", "E999", "");
  90. return;
  91. }
  92. }
  93. var update = getGridUpdateData(grditem);
  94. model.setValue("/root/senddata/execdata/itemlist", update);
  95. if (submit("TXICU00901")){
  96. readfunc();
  97. }
  98. }
  99. function Execdata1(){
  100. for (var i = 1; i < grditemdetl.rows; i ++){
  101. if (model.getValue("/root/main/itemdetlinfo/itemdetllist[" + i + "]/itemexpendcd") == ""){
  102. messageBox("비목코드는 필수 선택항목입니다.", "E999", "");
  103. return;
  104. }
  105. if (model.getValue("/root/main/itemdetlinfo/itemdetllist[" + i + "]/detlitemexpendcd") == ""){
  106. messageBox("세부비목코드는 필수 입력항목입니다.", "E999", "");
  107. return;
  108. }
  109. if (model.getValue("/root/main/itemdetlinfo/itemdetllist[" + i + "]/detlitemexpendnm") == ""){
  110. messageBox("세부비목코드명은 필수 입력항목입니다.", "E999", "");
  111. return;
  112. }
  113. if (model.getValue("/root/main/itemdetlinfo/itemdetllist[" + i + "]/expendflag") == ""){
  114. messageBox("세부비목구분은 필수 선택항목입니다.", "E999", "");
  115. return;
  116. }
  117. }
  118. var update = getGridUpdateData(grditemdetl);
  119. model.setValue("/root/senddata/execdata/itemdetllist", update);
  120. if (submit("TXICU00902")){
  121. readfunc1();
  122. }
  123. }
  124. ]]>
  125. </script>
  126. </xhtml:head>
  127. <xhtml:body guideline="2,781;1,1192;">
  128. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:14px; ">
  129. <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">비목코드 관리</caption>
  130. </group>
  131. <line id="line1" class="line_1" style="x1:0px; y1:87px; x2:1194px; y2:87px; "/>
  132. <group id="group3" style="left:0px; top:20px; width:1194px; height:37px; vertical-align:top; ">
  133. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  134. <caption id="caption73" class="search_name" visibility="hidden" style="left:30px; top:8px; width:86px; height:17px; ">비목코드 :</caption>
  135. <button id="button6" class="btn1_letter2" navindex="6" style="left:1129px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  136. <caption>조회</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. if (button1.selected == true){
  140. readfunc();
  141. }else{
  142. readfunc1();
  143. }
  144. ]]>
  145. </script>
  146. </button>
  147. <select1 id="combo1" ref="/root/send/data/itemexpendcd" visibility="hidden" appearance="minimal" style="left:120px; top:7px; width:200px; height:19px; ">
  148. <choices>
  149. <itemset nodeset="/root/init/cmb_info/inititem">
  150. <label ref="itemexpendnm"/>
  151. <value ref="itemexpendcd"/>
  152. </itemset>
  153. </choices>
  154. <script type="javascript" ev:event="xforms-value-changed">
  155. <![CDATA[
  156. readfunc1();
  157. ]]>
  158. </script>
  159. </select1>
  160. </group>
  161. <button id="button1" class="btn_sw" group="tab" selected="true" style="left:0px; top:65px; width:80px; height:22px; ">
  162. <caption>비목코드</caption>
  163. <toggle case="case1" ev:event="onclick"/>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. caption73.visible = false;
  167. combo1.visible = false;
  168. button1.selected = true;
  169. button2.selected = false;
  170. readfunc();
  171. ]]>
  172. </script>
  173. </button>
  174. <switch id="switch1" style="left:0px; top:90px; width:1192px; height:691px; ">
  175. <case id="case1">
  176. <datagrid id="grditem" nodeset="/root/main/iteminfo/itemlist" caption="비목코드^비목코드명^비고" colsep="^" colwidth="100, 439, 609" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1189px; height:625px; ">
  177. <col disabled="true" ref="itemexpendcd" type="input" format="999" style="text-align:center; "/>
  178. <col ref="itemexpendnm" type="input" style="text-align:left; "/>
  179. <col ref="cmt" type="input" style="text-align:left; "/>
  180. <script type="javascript" ev:event="onaftersort">
  181. <![CDATA[
  182. grditem.gridToInstance();
  183. ]]>
  184. </script>
  185. </datagrid>
  186. <button id="button3" class="btn2_letter3" navindex="21" style="left:1016px; top:5px; width:53px; height:19px; ">
  187. <caption>행추가</caption>
  188. <script type="javascript" ev:event="onclick">
  189. <![CDATA[
  190. grditem.addRow();
  191. var irow = grditem.row;
  192. grditem.refresh();
  193. ]]>
  194. </script>
  195. </button>
  196. <button id="button4" class="btn2_letter3" navindex="22" style="left:1073px; top:5px; width:53px; height:19px; ">
  197. <caption>행삭제</caption>
  198. <script type="javascript" ev:event="onclick">
  199. <![CDATA[
  200. grditem.deleteItem(grditem.row);
  201. ]]>
  202. </script>
  203. </button>
  204. <button id="btn_save" class="btn5_letter3" navindex="30" style="left:1133px; top:5px; width:53px; height:19px; ">
  205. <caption>저장</caption>
  206. <script type="javascript" ev:event="DOMActivate">
  207. <![CDATA[
  208. Execdata();
  209. ]]>
  210. </script>
  211. </button>
  212. </case>
  213. <case id="case2" selected="true">
  214. <button id="button5" class="btn2_letter3" navindex="21" style="left:1072px; top:9px; width:53px; height:19px; ">
  215. <caption>행추가</caption>
  216. <script type="javascript" ev:event="onclick">
  217. <![CDATA[
  218. grditemdetl.addRow();
  219. var irow = grditemdetl.row;
  220. if (model.getValue("/root/send/data/itemexpendcd") != ""){
  221. model.setValue("/root/main/itemdetlinfo/itemdetllist[" + irow + "]/itemexpendcd", model.getValue("/root/send/data/itemexpendcd"));
  222. }
  223. grditemdetl.refresh();
  224. ]]>
  225. </script>
  226. </button>
  227. <button id="button7" class="btn2_letter3" navindex="22" style="left:1129px; top:9px; width:53px; height:19px; ">
  228. <caption>행삭제</caption>
  229. <script type="javascript" ev:event="onclick">
  230. <![CDATA[
  231. grditemdetl.deleteItem(grditemdetl.row);
  232. ]]>
  233. </script>
  234. </button>
  235. <datagrid id="grditemdetl" nodeset="/root/main/itemdetlinfo/itemdetllist" caption="비목코드^세부비목코드^세부비목코드명^세부비목구분^비고" colsep="^" colwidth="135, 113, 326, 119, 458" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:30px; width:1189px; height:625px; ">
  236. <col disabled="true" ref="itemexpendcd" type="combo" format="999" style="text-align:left; ">
  237. <choices>
  238. <itemset nodeset="/root/init/cmb_info/inititem">
  239. <label ref="itemexpendnm"/>
  240. <value ref="itemexpendcd"/>
  241. </itemset>
  242. </choices>
  243. </col>
  244. <col disabled="true" ref="detlitemexpendcd" type="input" format="99999" style="text-align:center; "/>
  245. <col ref="detlitemexpendnm" type="input" style="text-align:left; "/>
  246. <col ref="expendflag" type="combo" style="text-align:left; ">
  247. <choices>
  248. <item>
  249. <label/>
  250. <value/>
  251. </item>
  252. <item>
  253. <label>회의비</label>
  254. <value>1</value>
  255. </item>
  256. <item>
  257. <label>자문료</label>
  258. <value>2</value>
  259. </item>
  260. <item>
  261. <label>여비</label>
  262. <value>3</value>
  263. </item>
  264. <item>
  265. <label>기기구입비</label>
  266. <value>4</value>
  267. </item>
  268. <item>
  269. <label>인건비</label>
  270. <value>5</value>
  271. </item>
  272. <item>
  273. <label>임상검사비</label>
  274. <value>6</value>
  275. </item>
  276. <item>
  277. <label>문헌구입비</label>
  278. <value>7</value>
  279. </item>
  280. <item>
  281. <label>기타</label>
  282. <value>9</value>
  283. </item>
  284. </choices>
  285. </col>
  286. <col ref="cmt" type="input" style="text-align:left; "/>
  287. <script type="javascript" ev:event="onaftersort">
  288. <![CDATA[
  289. grditemdetl.gridToInstance();
  290. ]]>
  291. </script>
  292. </datagrid>
  293. <button id="button8" class="btn5_letter3" navindex="30" style="left:1125px; top:660px; width:53px; height:19px; ">
  294. <caption>저장</caption>
  295. <script type="javascript" ev:event="DOMActivate">
  296. <![CDATA[
  297. Execdata1();
  298. ]]>
  299. </script>
  300. </button>
  301. </case>
  302. </switch>
  303. <button id="button2" class="btn_sw" group="tab" selected="true" style="left:81px; top:65px; width:95px; height:22px; ">
  304. <caption>비목상세코드</caption>
  305. <toggle case="case2" ev:event="onclick"/>
  306. <script type="javascript" ev:event="DOMActivate">
  307. <![CDATA[
  308. submit("TRICU00903");
  309. caption73.visible = true;
  310. combo1.visible = true;
  311. button1.selected = false;
  312. button2.selected = true;
  313. readfunc1();
  314. ]]>
  315. </script>
  316. </button>
  317. </xhtml:body>
  318. </xhtml:html>