SMICP04000_CRCC인건비관리.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  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>CRCC 인건비관리</xhtml:title>
  6. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  7. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  8. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  9. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  10. <script type="javascript">
  11. <![CDATA[
  12. function getIsahSdtycost() {
  13. var subjid = model.getValue("/root/init/subjid");
  14. if(subjid == "") return;
  15. model.removenode("/root/main/grid2/prsnexpsinfodetail");
  16. submit("TRICP00401");
  17. }
  18. ]]>
  19. </script>
  20. <model id="model1">
  21. <script type="javascript" ev:event="xforms-ready">
  22. <![CDATA[
  23. submit("TRIRZ00000");
  24. input21.value = new Date().getDateFormat();
  25. input22.value = new Date().getDateFormat().substring(0,6) + new Date().getMonthDay();
  26. zbcfGetCodeList( new Array("R0001"), new Array("/root/init/cmb_info/initbank") );
  27. // model.setValue("/root/send/costmake/startdd", new Date().getDateFormat());
  28. // model.setValue("/root/send/costmake/enddd", new Date().getDateFormat().substring(0,6) + new Date().getMonthDay());
  29. model.removenode("/root/main/grid/isamsthycost");
  30. submit("TRZBC00101", false);
  31. submit("TRICP00400");
  32. //datagrid2.colDisabled(8) = true;
  33. model.refresh();
  34. ]]>
  35. </script>
  36. <instance id="instance1">
  37. <root xmlns="">
  38. <main>
  39. <grid>
  40. <prsnexpsinfo>
  41. <subjno/>
  42. <subjnm/>
  43. <appdg/>
  44. <appdd/>
  45. <appamt/>
  46. <bal/>
  47. <instcd/>
  48. <appaprvyn/>
  49. <subjid/>
  50. </prsnexpsinfo>
  51. </grid>
  52. <grid2>
  53. <prsnexpsinfodetail>
  54. <userkind/>
  55. <usernm/>
  56. <costuserid/>
  57. <instcd/>
  58. <sosok/>
  59. <bankcd/>
  60. <acntno/>
  61. <depor/>
  62. <totcost/>
  63. <confpurcusedd/>
  64. <detlitemexpendnm/>
  65. <itemexpendcd/>
  66. <itemexpendnm/>
  67. <depor/>
  68. <nm/>
  69. <banknm/>
  70. <acntno/>
  71. <totcost/>
  72. <rrgstno/>
  73. <addr/>
  74. <posnm/>
  75. <jobposnm/>
  76. <detlitemexpendcd/>
  77. <sumcost/>
  78. <appcnfmdd/>
  79. </prsnexpsinfodetail>
  80. </grid2>
  81. </main>
  82. <init>
  83. <cmb_info>
  84. <initbank>
  85. <cdid/>
  86. <cdnm/>
  87. </initbank>
  88. </cmb_info>
  89. <subjid/>
  90. <instcd/>
  91. <appdg/>
  92. <baseinfo>
  93. <instinfo>
  94. <instcd/>
  95. <hospnm/>
  96. </instinfo>
  97. </baseinfo>
  98. <sumcost/>
  99. </init>
  100. <send>
  101. <srchinstcd/>
  102. <srchstartdd/>
  103. <srchenddd/>
  104. <srchpayyn/>
  105. <srchrespstdyempno/>
  106. <srchresernm/>
  107. <srchpaystartdd/>
  108. <srchpayenddd/>
  109. <srchsubjnm/>
  110. <save>
  111. <grid/>
  112. </save>
  113. <costmake>
  114. <startdd/>
  115. <enddd/>
  116. </costmake>
  117. </send>
  118. <rex>
  119. <prsnexpsinfo>
  120. <depor/>
  121. <nm/>
  122. <banknm/>
  123. <acntno/>
  124. <totcost/>
  125. <rrgstno/>
  126. <addr/>
  127. <posnm/>
  128. <jobposnm/>
  129. <detlitemexpendcd/>
  130. <sumcost/>
  131. </prsnexpsinfo>
  132. </rex>
  133. </root>
  134. </instance>
  135. <submission id="TRIRZ00000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" replace="instance" resultref="/root/init/baseinfo"/>
  136. <submission id="TRICP00400" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/grid"/>
  137. <submission id="TXICP00400" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" replace="instance" resultref="/root/main/grid"/>
  138. <submission id="TXICP00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/costmake" replace="instance" resultref="/root/temp"/>
  139. <submission id="TRZBC00101"/>
  140. <bind id="bind1" ref="/root/main/grid/prsnexpsinfo/sumcost" calculate="sum(/root/main/grid/prsnexpsinfo/totcost)"/>
  141. <submission id="TRICP00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" replace="instance" resultref="/root/main/grid2"/>
  142. <submission id="TRICU00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/init" replace="instance" resultref="/root/rex"/>
  143. </model>
  144. </xhtml:head>
  145. <xhtml:body>
  146. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:14px; ">
  147. <caption id="caption120" class="tit_1" style="left:0px; top:0px; width:158px; height:14px; ">인건비관리</caption>
  148. </group>
  149. <group id="group3" style="left:0px; top:15px; width:1194px; height:70px; vertical-align:top; ">
  150. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  151. <caption id="caption146" class="search_name" style="left:15px; top:10px; width:91px; height:17px; ">병원선택 :</caption>
  152. <input id="input21" ref="/root/send/srchstartdd" class="input_s_essential" inputtype="date" style="left:104px; top:38px; width:95px; height:19px; "/>
  153. <caption id="caption1" class="search_name" style="left:240px; top:10px; width:99px; height:17px; ">책임시험자 :</caption>
  154. <input id="input22" ref="/root/send/srchenddd" class="input_s_essential" inputtype="date" style="left:222px; top:38px; width:100px; height:19px; "/>
  155. <select1 id="combo1" ref="/root/send/srchpayyn" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:809px; top:8px; width:105px; height:19px; ">
  156. <choices>
  157. <item>
  158. <label>지급</label>
  159. <value>Y</value>
  160. </item>
  161. <item>
  162. <label>미지급</label>
  163. <value>N</value>
  164. </item>
  165. </choices>
  166. </select1>
  167. <button id="button8" class="btn1_letter2" _auth="R" style="left:990px; top:5px; width:56px; height:22px; ">
  168. <caption>조회</caption>
  169. <script type="javascript" ev:event="DOMActivate">
  170. <![CDATA[
  171. model.toggle("case1");
  172. submit("TRICP00400");
  173. ]]>
  174. </script>
  175. </button>
  176. <button id="button51" class="btn4_letter2" _auth="X" style="left:1055px; top:5px; width:56px; height:22px; ">
  177. <caption>저장</caption>
  178. <script type="javascript" ev:event="DOMActivate">
  179. <![CDATA[
  180. var up = getGridUpdateData(datagrid2);
  181. if(up == "") return;
  182. model.setValue("/root/send/save/grid", up);
  183. submit("TXICP00400");
  184. //model.setValue("/root/send/save/grid", "");
  185. model.refresh();
  186. ]]>
  187. </script>
  188. </button>
  189. <input id="input26" ref="/root/send/srchrespstdyempno" class="input_search" style="left:339px; top:8px; width:105px; height:19px; "/>
  190. <select1 id="combo64" ref="/root/send/srchinstcd" class="combo_search" appearance="minimal" editmode="inputsearch" style="left:104px; top:10px; width:105px; height:19px; ">
  191. <choices>
  192. <itemset nodeset="/root/init/baseinfo/instinfo">
  193. <label ref="hospnm"/>
  194. <value ref="instcd"/>
  195. </itemset>
  196. </choices>
  197. </select1>
  198. <caption id="caption143" class="search_name" style="left:15px; top:40px; width:80px; height:17px; ">신청일 :</caption>
  199. <caption id="caption145" class="search_name" style="left:720px; top:10px; width:94px; height:17px; ">지급여부 :</caption>
  200. <button id="button31" class="btn4_letter8" style="left:990px; top:35px; width:128px; height:22px; ">
  201. <caption>인건비지급내역서</caption>
  202. <script type="javascript" ev:event="DOMActivate">
  203. <![CDATA[
  204. // model.copyNode("/root/rex", "/root/main/grid");
  205. // model.setValue("/root/rex/prsnexpsinfo/sumcost", model.getValue("root/init/sumcost"));
  206. exeReportPreview("RPICU00103", "XMLSTR" , "/root/rex");
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="button1" class="btn4_letter8" _auth="P" style="left:990px; top:35px; width:128px; height:22px; ">
  211. <caption>인건비지급내역서</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. // model.copyNode("/root/rex", "/root/main/grid");
  215. // model.setValue("/root/rex/prsnexpsinfo/sumcost", model.getValue("root/init/sumcost"));
  216. exeReportPreview("RPICU00103", "XMLSTR" , "/root/rex");
  217. ]]>
  218. </script>
  219. </button>
  220. <caption id="caption2" class="search_name" style="left:475px; top:10px; width:99px; height:17px; ">지급대상자 :</caption>
  221. <input id="input1" ref="/root/send/srchresernm" class="input_search" style="left:575px; top:8px; width:105px; height:19px; "/>
  222. <caption id="caption3" style="left:205px; top:40px; width:15px; height:20px; ">~</caption>
  223. <input id="input2" ref="/root/send/srchpaystartdd" class="input_s_essential" inputtype="date" style="left:419px; top:38px; width:95px; height:19px; "/>
  224. <input id="input3" ref="/root/send/srchpayenddd" class="input_s_essential" inputtype="date" style="left:537px; top:38px; width:100px; height:19px; "/>
  225. <caption id="caption4" style="left:520px; top:40px; width:15px; height:20px; ">~</caption>
  226. <caption id="caption5" class="search_name" style="left:340px; top:40px; width:80px; height:17px; ">지급일 :</caption>
  227. <caption id="caption6" class="search_name" style="left:655px; top:40px; width:94px; height:17px; ">과제명 :</caption>
  228. <input id="input4" ref="/root/send/srchsubjnm" class="input_search" style="left:735px; top:38px; width:180px; height:19px; "/>
  229. </group>
  230. <switch id="switch1" style="left:0px; top:111px; width:1190px; height:612px; ">
  231. <case id="case1" selected="true">
  232. <datagrid id="datagrid2" nodeset="/root/main/grid/prsnexpsinfo" caption="과제번호^과제명^신청차수^신청일^지급일^신청총액^지급여부^해당병원^" colsep="^" colwidth="123, 375, 100, 100, 100, 141, 105, 151, 100, 100" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:0px; width:1185px; height:600px; ">
  233. <col ref="subjno" style="text-align:center; "/>
  234. <col ref="subjnm"/>
  235. <col ref="appdg" style="text-align:center; "/>
  236. <col ref="appdd" format="yyyy-mm-dd"/>
  237. <col ref="appcnfmdd" format="yyyy-mm-dd"/>
  238. <col ref="appamt" format="#,###" style="text-align:right; "/>
  239. <col ref="appaprvyn" type="combo" style="text-align:center; ">
  240. <choices>
  241. <item>
  242. <label>신청완료</label>
  243. <value>N</value>
  244. </item>
  245. <item>
  246. <label>미신청</label>
  247. <value>T</value>
  248. </item>
  249. <item>
  250. <label>승인완료</label>
  251. <value>Y</value>
  252. </item>
  253. <item>
  254. <label>반려</label>
  255. <value>R</value>
  256. </item>
  257. <item>
  258. <label>보류</label>
  259. <value>H</value>
  260. </item>
  261. </choices>
  262. </col>
  263. <col ref="instnm"/>
  264. <col ref="subjid" visibility="hidden"/>
  265. <col ref="instcd" visibility="hidden"/>
  266. <script type="javascript" ev:event="ondblclick">
  267. <![CDATA[
  268. if( isDataCell() ){
  269. // if((datagrid1.rows- datagrid1.fixedRows) == 0) return;
  270. model.setValue("/root/init/subjid", model.getValue("/root/main/grid/prsnexpsinfo["+datagrid2.row+"]/subjid"));
  271. model.setValue("/root/init/instcd", model.getValue("/root/main/grid/prsnexpsinfo["+datagrid2.row+"]/instcd"));
  272. model.setValue("/root/init/appdg", model.getValue("/root/main/grid/prsnexpsinfo["+datagrid2.row+"]/appdg"));
  273. model.toggle("case2");
  274. button2.selected= true;
  275. getIsahSdtycost();
  276. submit("TRICU00112");
  277. }
  278. ]]>
  279. </script>
  280. <script type="javascript" ev:event="onaftersort">
  281. <![CDATA[
  282. datagrid2.gridToInstance();
  283. ]]>
  284. </script>
  285. </datagrid>
  286. </case>
  287. <case id="case2">
  288. <datagrid id="datagrid1" nodeset="/root/main/grid2/prsnexpsinfodetail" caption="역할^성명^사번^해당병원^소속^은행명^계좌번호^예금주^신청금액^지급요청일" colsep="^" colwidth="100, 100, 86, 129, 120, 123, 133, 100, 139, 106" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:0px; width:1185px; height:600px; ">
  289. <col disabled="true" ref="userkind" type="combo" style="text-align:center; ">
  290. <choices>
  291. <item>
  292. <label>책임</label>
  293. <value>1</value>
  294. </item>
  295. <item>
  296. <label>공동</label>
  297. <value>2</value>
  298. </item>
  299. <item>
  300. <label>코디네이터</label>
  301. <value>3</value>
  302. </item>
  303. <item>
  304. <label>관리약사</label>
  305. <value>4</value>
  306. </item>
  307. </choices>
  308. </col>
  309. <col ref="usernm" style="text-align:center; "/>
  310. <col ref="costuserid" style="text-align:center; "/>
  311. <col ref="instcd" type="combo" style="text-align:center; ">
  312. <choices>
  313. <itemset nodeset="/root/init/baseinfo/instinfo">
  314. <label ref="hospnm"/>
  315. <value ref="instcd"/>
  316. </itemset>
  317. </choices>
  318. </col>
  319. <col ref="sosok" style="text-align:center; "/>
  320. <col disabled="true" ref="bankcd" type="combo" style="text-align:center; ">
  321. <choices>
  322. <itemset nodeset="/root/init/cmb_info/initbank/R0001">
  323. <label ref="cdnm"/>
  324. <value ref="cdid"/>
  325. </itemset>
  326. </choices>
  327. </col>
  328. <col ref="acntno" style="text-align:center; "/>
  329. <col ref="depor" style="text-align:center; "/>
  330. <col ref="totcost" format="#,###" style="text-align:right; "/>
  331. <col ref="confpurcusedd" format="yyyy-mm-dd" style="text-align:center; "/>
  332. </datagrid>
  333. </case>
  334. </switch>
  335. <button id="button2" class="btn_sw" group="tab" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:93px; top:90px; width:100px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  336. <caption>차수별신청내역</caption>
  337. <toggle case="case2" ev:event="onclick"/>
  338. <script type="javascript" ev:event="DOMActivate">
  339. <![CDATA[
  340. getIsahSdtycost();
  341. ]]>
  342. </script>
  343. </button>
  344. <button id="button4" class="btn_sw" group="tab" selected="true" select.background-image="../../../com/commonweb/images/tab_show.gif" style="left:0px; top:90px; width:93px; height:22px; background-image:../../../com/commonweb/images/tab_hide.gif; ">
  345. <caption>신청차수</caption>
  346. <toggle case="case1" ev:event="onclick"/>
  347. <script type="javascript" ev:event="DOMActivate">
  348. <![CDATA[
  349. ]]>
  350. </script>
  351. </button>
  352. </xhtml:body>
  353. </xhtml:html>