SMRWD08100_전공의당직횟수등록.xrw 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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. <trngngdt>
  11. <trngngdtlist/>
  12. </trngngdt>
  13. </main>
  14. <send>
  15. <trngngdt>
  16. <instcd/>
  17. <ngdtym/>
  18. <deptcd/>
  19. <deptnm/>
  20. <jobgradcd/>
  21. </trngngdt>
  22. <save>
  23. <trngngdtlist/>
  24. </save>
  25. <payapp>
  26. <instcd/>
  27. <payym/>
  28. <payitemcd/>
  29. </payapp>
  30. </send>
  31. <temp>
  32. </temp>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. misfGridInit(grd_trngngdtlist);
  38. misfMsterDetailSet(grd_trngngdtlist, null, "TRRWD08101" ,"Y");
  39. var curdate = getCurrentDate();
  40. model.setValue(ipt_ngdtym.attribute("ref") , curdate.substr(0, 6));
  41. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  42. misfComboComCdListMulti("R0064","cmb_jobgradcd");
  43. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  44. addComboItem( "cmb_jobgradcd", "[-- 전체 --]", "", "above");
  45. model.setValue(cmb_jobgradcd.attribute("ref"), "");
  46. model.refresh();
  47. model.setFocus("cmb_instcd");
  48. ]]>
  49. </script>
  50. <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payapp" resultref="/root/hidden/temp"/>
  51. <submission id="TXRWD08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  52. <submission id="TRRWD08101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trngngdt" resultref="/root/main/trngngdt"/>
  53. <submission id="TXRWD08102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/trngngdt" resultref="/root/hidden/temp"/>
  54. </model>
  55. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  56. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  57. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  58. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  59. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  60. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  61. </xhtml:head>
  62. <xhtml:body style="margin-left:8; margin-right:8; ">
  63. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  64. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">전공의 당직 횟수 등록</caption>
  65. </group>
  66. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  67. <line id="line9" class="line_1" style="x1:0px; y1:69px; x2:1193px; y2:69px; "/>
  68. <caption id="caption34" class="tit_2" style="left:6px; top:52px; width:186px; height:14px; ">전공의 당직 횟수 List</caption>
  69. <group id="grp_sea" style="left:0px; top:10; width:1195px; height:35px; vertical-align:top; ">
  70. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  71. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:7px; width:56px; height:22px; text-align:left; ">
  72. <caption>조회</caption>
  73. <script type="javascript" ev:event="DOMActivate">
  74. <![CDATA[
  75. misfMsterDetailRetrieve();
  76. if (grd_trngngdtlist.rows - grd_trngngdtlist.fixedRows <= 0) {
  77. btn_save.disabled = false;
  78. btn_addgrdtrngngdtlist.disabled = false;
  79. btn_delgrdtrngngdtlist.disabled = false;
  80. btn_makengdtlist.disabled = false;
  81. btn_payapp.disabled = true;
  82. return;
  83. }
  84. if (grd_trngngdtlist.valueMatrix(grd_trngngdtlist.fixedRows, grd_trngngdtlist.colRef("payendyn")) == "Y") {
  85. btn_payapp.disabled = true;
  86. btn_save.disabled = true;
  87. btn_addgrdtrngngdtlist.disabled = true;
  88. btn_delgrdtrngngdtlist.disabled = true;
  89. btn_makengdtlist.disabled = true;
  90. }
  91. else if (grd_trngngdtlist.valueMatrix(grd_trngngdtlist.fixedRows, grd_trngngdtlist.colRef("paydeduyn")) == "Y") {
  92. btn_payapp.disabled = true;
  93. btn_save.disabled = true;
  94. btn_addgrdtrngngdtlist.disabled = true;
  95. btn_delgrdtrngngdtlist.disabled = true;
  96. btn_makengdtlist.disabled = true;
  97. }
  98. else {
  99. btn_payapp.disabled = false;
  100. btn_save.disabled = false;
  101. btn_addgrdtrngngdtlist.disabled = false;
  102. btn_delgrdtrngngdtlist.disabled = false;
  103. btn_makengdtlist.disabled = false;
  104. }
  105. ]]>
  106. </script>
  107. </button>
  108. <line id="line5" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  109. <input id="ipt_ngdtym" ref="/root/send/trngngdt/ngdtym" class="input_default" inputtype="date" format="yyyy-mm" style="left:329px; top:7px; width:90px; height:19px; text-align:center; vertical-align:middle; "/>
  110. <caption id="cap_payym" class="search_name" style="left:260px; top:8px; width:68px; height:17px; ">당직월:</caption>
  111. <select1 id="cmb_instcd" ref="/root/send/trngngdt/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:65px; top:7px; width:151px; height:19px; ">
  112. <choices>
  113. <itemset>
  114. <label/>
  115. <value/>
  116. </itemset>
  117. </choices>
  118. <script type="javascript" ev:event="xforms-value-changed">
  119. <![CDATA[
  120. btn_search.dispatch("DOMActivate");
  121. ]]>
  122. </script>
  123. </select1>
  124. <caption id="cap_instcd" class="search_name" style="left:11px; top:7px; width:61px; height:17px; ">기관:</caption>
  125. <select1 id="cmb_jobgradcd" ref="/root/send/trngngdt/jobgradcd" class="combo_s_essential" appearance="minimal" style="left:865px; top:7px; width:150px; height:19px; ">
  126. <choices>
  127. <itemset>
  128. <label/>
  129. <value/>
  130. </itemset>
  131. </choices>
  132. </select1>
  133. <caption id="cap_mealflag" class="search_name" style="left:811px; top:7px; width:61px; height:17px; ">직급:</caption>
  134. <input id="ipt_deptcd" ref="/root/send/trngngdt/deptcd" class="input_default" style="left:521px; top:7px; width:79px; height:19px; ">
  135. <script type="javascript" ev:event="xforms-value-changed">
  136. <![CDATA[
  137. misfValidationCheck("02", "", "deptcd,deptnm" );
  138. model.refresh();
  139. ]]>
  140. </script>
  141. </input>
  142. <input id="ipt_deptnm" ref="/root/send/trngngdt/deptnm" class="input_default" style="left:626px; top:7px; width:139px; height:19px; ">
  143. <script type="javascript" ev:event="xforms-value-changed">
  144. <![CDATA[
  145. misfValidationCheck("02", "", "deptcd,deptnm" );
  146. model.refresh();
  147. ]]>
  148. </script>
  149. </input>
  150. <button id="btn_deptcd3" class="icon_search" style="left:605px; top:7px; width:16px; height:16px; ">
  151. <caption/>
  152. <script type="javascript" ev:event="DOMActivate">
  153. <![CDATA[
  154. var recv_list = "deptcd,deptnm";
  155. var instcd = cmb_instcd.value;
  156. rpbfOpenDeptCdHelp(ipt_deptcd,recv_list,instcd,"instcd");
  157. model.refresh();
  158. ]]>
  159. </script>
  160. </button>
  161. <caption id="caption15" class="search_name" style="left:465px; top:8px; width:61px; height:17px; ">부서:</caption>
  162. </group>
  163. <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:49px; width:64px; height:19px; ">
  164. <caption>엑셀저장</caption>
  165. <script type="javascript" ev:event="DOMActivate">
  166. <![CDATA[
  167. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  168. if (fileName != "")
  169. {
  170. grd_trngngdtlist.saveExcel(fileName);
  171. }
  172. ]]>
  173. </script>
  174. </button>
  175. <datagrid id="grd_trngngdtlist" nodeset="/root/main/trngngdt/trngngdtlist" caption="사번^성명^소속^직급^평일당직^휴일당직^합계^비고^급여반영여부^기관^당직월^급여반영^급여마감^사번OLD|사번^성명^소속^직급^평일당직^휴일당직^합계^비고^급여반영여부^기관^당직월^급여반영^급여마감^사번OLD" colsep="^" colwidth="100, 87, 151, 116, 100, 100, 100, 337, 59, 27, 22, 31, 32, 37" dataheight="25" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:73px; width:1193px; height:667px; ">
  176. <col ref="emplno" type="inputbutton"/>
  177. <col ref="emplnm"/>
  178. <col ref="deptnm"/>
  179. <col ref="jobgradnm"/>
  180. <col ref="ngdtcnt" type="input" style="text-align:center; vertical-align:middle; "/>
  181. <col ref="ngdtholicnt" type="input" style="text-align:center; vertical-align:middle; "/>
  182. <col ref="totcnt" style="text-align:center; vertical-align:middle; "/>
  183. <col ref="cmt" type="input"/>
  184. <col ref="paydeduyn"/>
  185. <col ref="instcd" visibility="hidden"/>
  186. <col ref="ngdtym" visibility="hidden"/>
  187. <col ref="payappyn" visibility="hidden"/>
  188. <col ref="payendyn" visibility="hidden"/>
  189. <col ref="oldemplno" visibility="hidden"/>
  190. <script type="javascript" ev:event="onbuttonclick">
  191. <![CDATA[
  192. if (grd_trngngdtlist.colAttribute(grd_trngngdtlist.col,"ref") == "emplno" ) { //계산기준코드
  193. var recv_list = "emplno,emplnm";
  194. rpbfOpenPopUpList("SPRPB00101", grd_trngngdtlist, recv_list,"","N");
  195. model.refresh();
  196. }
  197. ]]>
  198. </script>
  199. <script type="javascript" ev:event="xforms-value-changed">
  200. <![CDATA[
  201. if (grd_trngngdtlist.colAttribute(grd_trngngdtlist.col,"ref") == "emplno" ) { //계산기준코드
  202. var recv_list = "emplno,emplnm";
  203. misfValidationCheck("01-1", "", recv_list);
  204. model.refresh();
  205. }
  206. ]]>
  207. </script>
  208. </datagrid>
  209. <button id="btn_delgrdtrngngdtlist" class="btn2_letter3" style="left:1075px; top:49px; width:53px; height:19px; ">
  210. <caption>행삭제</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. misfGridIUD(grd_trngngdtlist, "D");
  214. ]]>
  215. </script>
  216. </button>
  217. <button id="btn_addgrdtrngngdtlist" class="btn2_letter3" style="left:1019px; top:49px; width:53px; height:19px; ">
  218. <caption>행추가</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. misfGridIUD(grd_trngngdtlist, "A");
  222. ]]>
  223. </script>
  224. </button>
  225. </group>
  226. <group id="grp_btn" scroll="auto" style="left:0; top:12; width:1195px; height:27px; ">
  227. <line id="line4" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  228. <button id="btn_save" class="btn4_letter2" style="left:1137px; top:2px; width:56px; height:22px; ">
  229. <caption>저장</caption>
  230. <script type="javascript" ev:event="DOMActivate">
  231. <![CDATA[
  232. misfSave("TXRWD08101");
  233. btn_search.dispatch("DOMActivate");
  234. ]]>
  235. </script>
  236. </button>
  237. <button id="btn_payapp" class="btn4_letter4" disabled="true" visibility="visible" style="left:970px; top:2px; width:80px; height:22px; ">
  238. <caption>급여반영</caption>
  239. <script type="javascript" ev:event="DOMActivate">
  240. <![CDATA[
  241. if (grd_trngngdtlist.rows - grd_trngngdtlist.fixedRows <= 0) {
  242. messageBox("급여 반영 자료가 없습니다. 자료 조회후 실행하세요!!!.","");
  243. return;
  244. }
  245. var updtdata = getGridUpdateData(grd_trngngdtlist);
  246. if (updtdata != "") {
  247. messageBox("저장후 급여반영 하십시요!!!.","");
  248. return;
  249. }
  250. model.setValue("/root/send/payapp/payym", ipt_ngdtym.value);
  251. model.setValue("/root/send/payapp/payitemcd", "10140");
  252. model.setValue("/root/send/payapp/instcd", cmb_instcd.value);
  253. submit("TXRWZ00303");
  254. btn_search.dispatch("DOMActivate");
  255. ]]>
  256. </script>
  257. </button>
  258. <button id="btn_makengdtlist" class="btn4_letter4" disabled="true" visibility="visible" style="left:1055px; top:2px; width:80px; height:22px; ">
  259. <caption>자료생성</caption>
  260. <script type="javascript" ev:event="DOMActivate">
  261. <![CDATA[
  262. model.setValue("/root/send/trngngdt/ngdtym", ipt_ngdtym.value);
  263. model.setValue("/root/send/trngngdt/instcd", cmb_instcd.value);
  264. submit("TXRWD08102");
  265. btn_search.dispatch("DOMActivate");
  266. ]]>
  267. </script>
  268. </button>
  269. </group>
  270. </xhtml:body>
  271. </xhtml:html>