SMRWP10500_선택진료수당등록.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  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. <spclamt>
  11. <spclamtlist/>
  12. </spclamt>
  13. <excel>
  14. <excellist/>
  15. </excel>
  16. </main>
  17. <send>
  18. <spclamt>
  19. <instcd>014</instcd>
  20. <payappym/>
  21. <emplno/>
  22. <emplnm/>
  23. <deptcd/>
  24. <deptnm/>
  25. </spclamt>
  26. <save>
  27. <spclamtlist/>
  28. <payapplist>
  29. <instcd>014</instcd>
  30. <fromdd/>
  31. <todd/>
  32. <emplno/>
  33. <emplnm/>
  34. <payappym/>
  35. </payapplist>
  36. </save>
  37. <attach>
  38. <file/>
  39. <instcd/>
  40. </attach>
  41. </send>
  42. </root>
  43. </instance>
  44. <script type="javascript" ev:event="xforms-ready">
  45. <![CDATA[
  46. misfGridInit(grd_spclamtlist);
  47. misfMsterDetailSet(grd_spclamtlist, null, "TRRWP10501" ,"Y");
  48. grd_spclamtlist.fixedcellcheckbox(1, 1) = true;
  49. var curdate = getCurrentDate();
  50. model.setValue(ipt_payappym.attribute("ref") , curdate.substr(0, 6));
  51. //misfComboComCdListMulti("Z0007,R0058","cmb_instcd,cmb_prfshipflag");
  52. //addComboItem( "cmb_prfshipflag", "[-- 전체 --]", "", "above");
  53. //model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  54. //model.setValue(cmb_prfshipflag.attribute("ref") , "");
  55. model.refresh();
  56. model.setFocus("ipt_payappym");
  57. ]]>
  58. </script>
  59. <submission id="TRRWP10501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/spclamt" resultref="/root/main/spclamt"/>
  60. <submission id="TXRWP10501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  61. <submission id="TXRWP10503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/spclamtlist" resultref="/root/hidden/temp"/>
  62. <submission id="TXRWP10502" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/main/excel"/>
  63. <submission id="TXRWP10504" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/spclamt" resultref="/root/hidden/temp"/>
  64. </model>
  65. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  69. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  70. <script type="javascript" src="../../../mis/paybnusmngtweb/js/RWP001.js"/>
  71. <script type="javascript">
  72. <![CDATA[
  73. var fso=new ActiveXObject("Scripting.FileSystemObject");
  74. function fExcelUpload() {
  75. var maxsize = upload1.attribute("filesize");
  76. var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  77. var filelist = filename.split("|");
  78. model.removeNodeset("/root/main/list/filelist");
  79. model.removeNodeset("/root/send/attach");
  80. //타이틀을 획득한다.
  81. var s = new String(filelist[filelist.length-1]);
  82. var ss = s.split("\\");
  83. if(filename !=""){
  84. //작업 전 row를 추가 >파일명 유/무에 따른 분기>
  85. for(var i = 0 ; i < filelist.length ; i++ ){
  86. grd_attach.addRow(false);
  87. if(filelist[i] == ""){
  88. //alert(grd_attach.rows - 1);
  89. grd_attach.removeRow(false);
  90. grd_attach.refresh();
  91. }else{
  92. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  93. //파일크기('tfHelper.checkFileSize' 참조)
  94. var fileCnt = upload1.getFileCount();
  95. var lastIndex = fileCnt - 1;
  96. var fileSize = upload1.getFileSize(lastIndex);
  97. grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
  98. if (!checkFileSize(upload1)){
  99. grd_attach.removeItem();
  100. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  101. return;
  102. }
  103. }
  104. }
  105. model.makeValue("/root/send/attach/instcd",model.getValue("/root/send/spclamt/instcd") );
  106. openLoadingBar("파일업로드 작업중입니다... ") ;
  107. submit("TXRWP10502");
  108. closeLoadingBar();
  109. //btn_search.dispatch("DOMActivate");
  110. }
  111. }
  112. ]]>
  113. </script>
  114. </xhtml:head>
  115. <xhtml:body style="margin-left:8; margin-right:8; ">
  116. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  117. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">선택 진료 수당 등록</caption>
  118. </group>
  119. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  120. <line id="line9" class="line_1" style="x1:0px; y1:69px; x2:1193px; y2:69px; "/>
  121. <caption id="caption34" class="tit_2" style="left:6px; top:52px; width:186px; height:14px; ">선택 진료 수당 List</caption>
  122. <group id="grp_sea" style="left:0px; top:10; width:1195px; height:35px; vertical-align:top; ">
  123. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  124. <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1124px; top:7px; width:56px; height:22px; text-align:left; ">
  125. <caption>조회</caption>
  126. <script type="javascript" ev:event="DOMActivate">
  127. <![CDATA[
  128. misfMsterDetailRetrieve();
  129. ]]>
  130. </script>
  131. </button>
  132. <line id="line5" class="line_4" style="x1:1109px; y1:7px; x2:1109px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  133. <caption id="cap_fromdd" class="search_name" style="left:10px; top:8px; width:81px; height:17px; ">지급년월:</caption>
  134. <input id="ipt_payappym" ref="/root/send/spclamt/payappym" class="input_default" inputtype="date" format="yyyy-mm" style="left:91px; top:7px; width:101px; height:19px; text-align:center; vertical-align:middle; "/>
  135. <caption id="caption1" class="search_name" style="left:609px; top:8px; width:81px; height:17px; ">사원번호:</caption>
  136. <button id="btn_emplno" class="icon_search" style="left:784px; top:8px; width:16px; height:16px; ">
  137. <caption/>
  138. <script type="javascript" ev:event="DOMActivate">
  139. <![CDATA[
  140. var recv_list = "emplno,emplnm" ;
  141. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"","N");
  142. model.refresh();
  143. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  144. btn_search.dispatch("DOMActivate");
  145. }
  146. ]]>
  147. </script>
  148. </button>
  149. <input id="ipt_emplnos" ref="/root/send/spclamt/emplno" class="input_default" style="left:692px; top:8px; width:90px; height:19px; ">
  150. <script type="javascript" ev:event="onkeyup">
  151. <![CDATA[
  152. if (ipt_emplnos.currentText != null && ipt_emplnos.currentText != "" ) {
  153. inputEnterKey("ipt_emplnos", "xforms-value-changed");
  154. }
  155. ]]>
  156. </script>
  157. <script type="javascript" ev:event="xforms-value-changed">
  158. <![CDATA[
  159. var recv_list = "emplno,emplnm" ;
  160. rpbfValidationCheck("EMPLNO", recv_list);
  161. model.refresh();
  162. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  163. btn_search.dispatch("DOMActivate");
  164. }
  165. ]]>
  166. </script>
  167. </input>
  168. <input id="ipt_emplnms" ref="/root/send/spclamt/emplnm" class="input_default" style="left:803px; top:8px; width:96px; height:19px; ">
  169. <script type="javascript" ev:event="onkeyup">
  170. <![CDATA[
  171. if (ipt_emplnms.currentText != null && ipt_emplnms.currentText != "" ) {
  172. inputEnterKey("ipt_emplnms", "xforms-value-changed");
  173. }
  174. ]]>
  175. </script>
  176. <script type="javascript" ev:event="xforms-value-changed">
  177. <![CDATA[
  178. var recv_list = "emplno,emplnm" ;
  179. rpbfValidationCheck("EMPLNM", recv_list);
  180. model.refresh();
  181. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  182. btn_search.dispatch("DOMActivate");
  183. }
  184. ]]>
  185. </script>
  186. </input>
  187. <caption id="caption2" class="search_name" style="left:250px; top:8px; width:61px; height:17px; ">부서:</caption>
  188. <input id="ipt_deptnm" ref="/root/send/spclamt/deptnm" class="input_default" style="left:411px; top:8px; width:139px; height:19px; ">
  189. <script type="javascript" ev:event="xforms-value-changed">
  190. <![CDATA[
  191. misfValidationCheck("02", "", "deptcd,deptnm" );
  192. model.refresh();
  193. ]]>
  194. </script>
  195. </input>
  196. <button id="btn_deptcd" class="icon_search" style="left:390px; top:8px; width:16px; height:16px; ">
  197. <caption/>
  198. <script type="javascript" ev:event="DOMActivate">
  199. <![CDATA[
  200. var recv_list = "deptcd,deptnm";
  201. var instcd = model.getValue("/root/send/spclamt/instcd");
  202. rpbfOpenDeptCdHelp(ipt_deptcd,recv_list,instcd,"instcd");
  203. model.refresh();
  204. ]]>
  205. </script>
  206. </button>
  207. <input id="ipt_deptcd" ref="/root/send/spclamt/deptcd" class="input_default" style="left:306px; top:8px; width:79px; height:19px; ">
  208. <script type="javascript" ev:event="xforms-value-changed">
  209. <![CDATA[
  210. misfValidationCheck("02", "", "deptcd,deptnm" );
  211. model.refresh();
  212. ]]>
  213. </script>
  214. </input>
  215. </group>
  216. <datagrid id="grd_spclamtlist" nodeset="/root/main/spclamt/spclamtlist" caption="확정^사번^성명^근무부서^근무부서^수당금액^소득세^주민세^실지급액^기관^사번OLD^근무부서old^급여반영월|^사번^성명^근무부서^근무부서^수당금액^소득세^주민세^실지급액^기관^사번OLD^근무부서old^급여반영월" colsep="^" colwidth="40, 91, 126, 288, 19, 173, 135, 134, 141, 23, 25, 30, 38" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:75px; width:1193px; height:665px; ">
  217. <col checkvalue="Y,N" ref="cnfmyn" type="checkbox"/>
  218. <col ref="emplno" type="inputbutton"/>
  219. <col ref="emplnm"/>
  220. <col ref="deptnm"/>
  221. <col ref="dutunitcd" type="inputbutton"/>
  222. <col ref="spclordamt" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  223. <col ref="spclincmtax" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  224. <col ref="spclresdntax" type="input" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  225. <col ref="payamt" format="(-)#,###" style="text-align:right; vertical-align:middle; "/>
  226. <col ref="instcd" visibility="hidden"/>
  227. <col ref="oldemplno" visibility="hidden"/>
  228. <col ref="olddutunitcd" visibility="hidden"/>
  229. <col ref="payappym" visibility="hidden"/>
  230. <col ref="oldcnfmyn" visibility="hidden"/>
  231. <script type="javascript" ev:event="onbuttonclick">
  232. <![CDATA[
  233. if (grd_spclamtlist.col == grd_spclamtlist.colRef("emplno")) {
  234. rpbfOpenPopUpList("SPRPB00101", grd_spclamtlist, "emplno,emplnm","","","","emplno,emplnm");
  235. model.refresh();
  236. }
  237. else if (grd_spclamtlist.col == grd_spclamtlist.colRef("dutunitcd")) {
  238. var instcd = model.getValue("/root/send/spclamt/instcd");
  239. misfOpenPopUpList("02", grd_spclamtlist, "", "dutunitcd,deptnm", instcd, "instcd");
  240. model.refresh();
  241. }
  242. ]]>
  243. </script>
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. var recv_list = "";
  247. if (grd_spclamtlist.col == grd_spclamtlist.colRef("emplno")) {
  248. recv_list = "emplno,emplnm" ;
  249. rpbfValidationCheck("EMPLNM", recv_list,"","emplno,emplnm");
  250. }
  251. model.refresh();
  252. ]]>
  253. </script>
  254. </datagrid>
  255. <button id="btn_saveexcel" class="btn2_letter4" style="left:1130px; top:49px; width:64px; height:19px; ">
  256. <caption>엑셀저장</caption>
  257. <script type="javascript" ev:event="DOMActivate">
  258. <![CDATA[
  259. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  260. if (fileName != "")
  261. {
  262. grd_spclamtlist.saveExcel(fileName);
  263. }
  264. ]]>
  265. </script>
  266. </button>
  267. <button id="btn_delgrdspclamtlist" class="btn2_letter3" style="left:1074px; top:49px; width:53px; height:19px; ">
  268. <caption>행삭제</caption>
  269. <script type="javascript" ev:event="DOMActivate">
  270. <![CDATA[
  271. misfGridIUD(grd_spclamtlist, "D");
  272. ]]>
  273. </script>
  274. </button>
  275. <button id="btn_addgrdspclamtlist" class="btn2_letter3" visibility="visible" style="left:1018px; top:49px; width:53px; height:19px; ">
  276. <caption>행추가</caption>
  277. <script type="javascript" ev:event="DOMActivate">
  278. <![CDATA[
  279. misfGridIUD(grd_spclamtlist, "A");
  280. ]]>
  281. </script>
  282. </button>
  283. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:825px; top:45px; width:25px; height:20px; "/>
  284. <button id="btn_upload" class="btn5_letter5" style="left:935px; top:49px; width:75px; height:19px; ">
  285. <caption>파일업로드</caption>
  286. <script type="javascript" ev:event="DOMActivate">
  287. <![CDATA[
  288. fExcelUpload();
  289. ]]>
  290. </script>
  291. </button>
  292. <datagrid id="grd_attach" nodeset="/root/send/attach" class="datagrid1" visibility="hidden" caption="File Name^File Size" colsep="^" colwidth="403, 93" dataheight="23" ellipsis="true" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" style="left:605px; top:430px; width:505px; height:69px; ">
  293. <col ref="file" style="text-align:center; "/>
  294. <col ref="filesize" format="#,###" style="text-align:right; "/>
  295. </datagrid>
  296. </group>
  297. <group id="grp_btn" scroll="auto" style="left:0; top:12; width:1195px; height:27px; ">
  298. <button id="btn_save" class="btn4_letter2" style="left:1134px; top:3px; width:56px; height:22px; ">
  299. <caption>저장</caption>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. misfSave("TXRWP10501");
  303. btn_search.dispatch("DOMActivate");
  304. ]]>
  305. </script>
  306. </button>
  307. <line id="line4" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  308. <button id="btn_payapply" class="btn4_letter4" style="left:1050px; top:3px; width:80px; height:22px; ">
  309. <caption>급여이체</caption>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. var payappym = ipt_payappym.value;
  313. if (payappym == null || payappym == ""){
  314. messageBox("급여 반영월을 입력후 실행 하세요.","");
  315. return;
  316. }
  317. for (var i = grd_spclamtlist.fixedRows; i < grd_spclamtlist.rows; i++) {
  318. if (grd_spclamtlist.valueMatrix(i, grd_spclamtlist.colRef("cnfmyn")) != grd_spclamtlist.valueMatrix(i, grd_spclamtlist.colRef("oldcnfmyn"))) {
  319. grd_spclamtlist.rowStatus(i) = "2";
  320. }
  321. }
  322. misfSave("TXRWP10503");
  323. btn_search.dispatch("DOMActivate");
  324. ]]>
  325. </script>
  326. </button>
  327. <button id="btn_getHisData" class="btn4_letter4" style="left:905px; top:3px; width:92px; height:22px; ">
  328. <caption>자료생성</caption>
  329. <script type="javascript" ev:event="DOMActivate">
  330. <![CDATA[
  331. var updtdata = getGridUpdateData(grd_spclamtlist);
  332. if (updtdata != "" ) {
  333. messageBox("변경된 데이터가 존재 합니다. 저장후 실행 하세요.","");
  334. return;
  335. }
  336. submit("TXRWP10504");
  337. btn_search.dispatch("DOMActivate");
  338. ]]>
  339. </script>
  340. </button>
  341. </group>
  342. </xhtml:body>
  343. </xhtml:html>