SMRWP01000_급여이체화일생성.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <?xml-stylesheet type="text/css" href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>급여 이체 화일 생성</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <payspeclist/>
  12. <writedata/>
  13. <recivepaydd/>
  14. </main>
  15. <send>
  16. <payym/>
  17. <saldfrayflag/>
  18. <dutdeptcd/>
  19. <payinst/>
  20. <empno/>
  21. <empnm/>
  22. <dutdeptnm/>
  23. <attachflag/>
  24. <payitemcd/>
  25. <transfbankcd/>
  26. <paydd/>
  27. <holyordflag/>
  28. </send>
  29. <init>
  30. <requirementemp>
  31. <label>사원번호</label>
  32. <value>goodflaghngnm</value>
  33. <label>사원명</label>
  34. <value>fixasetcd</value>
  35. </requirementemp>
  36. <attachflag>
  37. <label>Y</label>
  38. <value>Y</value>
  39. <label>N</label>
  40. <value>N</value>
  41. <label>전체</label>
  42. <value/>
  43. </attachflag>
  44. <payitemcd>
  45. <label>30000</label>
  46. <value>30000</value>
  47. </payitemcd>
  48. </init>
  49. <hidden/>
  50. <temp/>
  51. </root>
  52. </instance>
  53. <script type="javascript">
  54. <![CDATA[
  55. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  56. function fInitialize() {
  57. model.removeNodeset("/root/main/payspeclist");
  58. model.resetInstanceNode("/root/send");
  59. model.refresh();
  60. misfGridInit(grd_payspeclist);
  61. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  62. misfComboComCdListMulti("R0112,R0242","cmb_saldfrayflag,cmb_transfbankcd");
  63. addComboItem( "cmb_transfbankcd", "[-- 전체 --]", "", "above");
  64. addComboItem( "cmb_transfbankcd", "계좌없는사번", "98", "before");
  65. model.setValue(cmb_transfbankcd.attribute("ref"), "");
  66. //rszfComboAppendBlankChild("cmb_transfbankcd");
  67. misfMsterDetailSet(grd_payspeclist,null,"TRRWP01001","N"); //마스터 설정
  68. model.setValue("/root/send/payinst", getUserInfo("dutplceinstcd")); // 세션에서 소속 기관 코드 가져오기
  69. //cmb_saldfrayflag.select(0);
  70. cmb_payitemcd.select(0);
  71. //cmb_transfbankcd.select(0);
  72. var curdate = getCurrentDate();
  73. var sFrontTime = curdate.substr(0, 6);
  74. model.setValue("/root/send/payym" ,sFrontTime);
  75. model.setValue(ipt_paydd.attribute("ref") ,curdate);
  76. model.setValue("/root/send/holyordflag", "1");
  77. //model.setValue("/root/send/saldfrayflag", "1");
  78. //화면 권한 설정
  79. btn_save.disabled = !(checkAuth("X"));
  80. btn_prt.disabled= !(checkAuth("P"));
  81. misfGetUserAuth();
  82. if (DUTY_PAY_YN == "Y" ) {
  83. cmb_instcd.disabled = false;
  84. }
  85. else {
  86. cmb_instcd.disabled = true;
  87. }
  88. model.refresh();
  89. }
  90. function fsearch(){
  91. // var updtdata = getGridUpdateData(grd_payspeclist);
  92. //
  93. // //기관코드 값 체크
  94. // if ( updtdata != "") {
  95. // var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  96. // if (ret != 6) { // not OK
  97. // return;
  98. // }
  99. // }
  100. misfMsterDetailRetrieve();
  101. }
  102. function fSaveTextFile()
  103. {
  104. submit("TRRWP01002");
  105. var sDefaultdate = model.getValue("/root/send/paydd");
  106. if(sDefaultdate == "" || sDefaultdate == null)
  107. {
  108. messageBox("조회된 데이터가", "I004");
  109. return;
  110. }
  111. var sDefaultdate = sDefaultdate.substr(2,6);
  112. var sDefaultFileName = cmb_saldfrayflag.value + sDefaultdate;
  113. var fso = new ActiveXObject("Scripting.FileSystemObject");
  114. var fileName = window.fileDialog("save", "", false, sDefaultFileName+".txt", "txt", "텍스트 문서(*.txt)");
  115. if (fileName.length > 0) {
  116. var oFileStream = fso.OpenTextFile(fileName, 2, true);
  117. if (oFileStream == null) {
  118. var oFileStream = fso.CreateTextFile(fileName, true);
  119. }
  120. for(var i=1; i<grd_writedata.rows; i++)
  121. {
  122. var wData = model.getValue("/root/main/writedata[" + i + "]/data1");
  123. oFileStream.WriteLine(wData);
  124. }
  125. oFileStream.Close();
  126. }
  127. }
  128. function fGetPayDD()
  129. {
  130. //submit("TRRWP01003");
  131. var sPayDD = ipt_paydd.value; //model.getValue("/root/main/recivepaydd/paydd");
  132. model.setValue("/root/send/paydd" ,sPayDD);
  133. }
  134. ]]>
  135. </script>
  136. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  137. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  138. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  139. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  140. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  141. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  142. <script type="javascript" ev:event="xforms-ready">
  143. <![CDATA[
  144. fInitialize();
  145. ]]>
  146. </script>
  147. <submission id="TRRWP01001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/payspeclist"/>
  148. <submission id="TRRWP01002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/writedata"/>
  149. <submission id="TRRWP01003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/recivepaydd"/>
  150. </model>
  151. </xhtml:head>
  152. <xhtml:body pagewidth="1211" pageheight="784" guideline="1,592;1,591;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  153. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  154. <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">급여이체화일생성</caption>
  155. </group>
  156. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  157. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:80px; vertical-align:top; ">
  158. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  159. <caption id="cap_instcd" class="search_name" style="left:490px; top:5px; width:86px; height:17px; ">지급년월 :</caption>
  160. <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:55px; border-color:#ffe4bb; border-left-style:solid; "/>
  161. <caption id="cap_csrreqdeptcd" class="search_name" style="left:10px; top:5px; width:84px; height:17px; ">급여종류:</caption>
  162. <button id="btn_search" class="btn1_letter2" navindex="10" style="left:1125px; top:20px; width:56px; height:42px; ">
  163. <caption>조회</caption>
  164. <script type="javascript" ev:event="DOMActivate">
  165. <![CDATA[
  166. //fGetPayDD();
  167. fsearch();
  168. ]]>
  169. </script>
  170. </button>
  171. <input id="ipt_payym" ref="/root/send/payym" navindex="3" inputtype="date" format="yyyy-mm" style="left:575px; top:5px; width:120px; height:19px; text-align:center; "/>
  172. <select1 id="cmb_saldfrayflag" ref="/root/send/saldfrayflag" navindex="1" appearance="minimal" editmode="inputsearch" style="left:93px; top:5px; width:108px; height:19px; ">
  173. <choices>
  174. <itemset>
  175. <label/>
  176. <value/>
  177. </itemset>
  178. </choices>
  179. <script type="javascript" ev:event="xforms-value-changed">
  180. <![CDATA[
  181. if (DUTY_PAY_YN == "Y" || cmb_saldfrayflag.value == "2") {
  182. cmb_instcd.disabled = false;
  183. }
  184. else {
  185. cmb_instcd.disabled = true;
  186. }
  187. if (cmb_saldfrayflag.value == "2") {
  188. misfComboComCdListMulti("R0112,R0242,Z0007","cmb_saldfrayflag,cmb_transfbankcd,cmb_instcd");
  189. addComboItem( "cmb_instcd", "[-- 전체 --]", "%", "above");
  190. addComboItem( "cmb_transfbankcd", "계좌없는사번", "98", "before");
  191. model.setValue(cmb_instcd.attribute("ref"), "%");
  192. }
  193. else {
  194. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  195. misfComboComCdListMulti("R0112,R0242","cmb_saldfrayflag,cmb_transfbankcd");
  196. addComboItem( "cmb_transfbankcd", "[-- 전체 --]", "", "above");
  197. addComboItem( "cmb_transfbankcd", "계좌없는사번", "98", "before");
  198. model.setValue(cmb_transfbankcd.attribute("ref"), "");
  199. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  200. }
  201. model.refresh();
  202. ]]>
  203. </script>
  204. </select1>
  205. <caption id="caption1" class="search_name" style="left:490px; top:35px; width:86px; height:17px; ">부서 :</caption>
  206. <input id="ipt_deptcd" ref="/root/send/dutdeptcd" class="input_default" navindex="8" appearance="input" style="left:575px; top:35px; width:120px; height:19px; "/>
  207. <output id="opt_deptnm" ref="/root/send/dutdeptnm" class="output_fix" appearance="output" style="left:718px; top:35px; width:187px; height:19px; "/>
  208. <button id="btn_deptcd" class="icon_search" style="left:698px; top:35px; width:16px; height:16px; ">
  209. <caption/>
  210. <script type="javascript" ev:event="DOMActivate">
  211. <![CDATA[
  212. var recv_list = "dutdeptcd,deptnm";
  213. rpbfOpenDeptCdHelp(ipt_deptcd,recv_list);
  214. model.refresh();
  215. ]]>
  216. </script>
  217. </button>
  218. <caption id="cap_empno" class="search_name" style="left:207px; top:35px; width:61px; height:17px; ">사번:</caption>
  219. <input id="ipt_empno" ref="/root/send/empno" class="input_default" navindex="7" appearance="input" style="left:263px; top:35px; width:65px; height:19px; "/>
  220. <output id="opt_empnm" ref="/root/send/empnm" class="output_fix" appearance="output" style="left:350px; top:35px; width:125px; height:19px; "/>
  221. <button id="btn_empcd" class="icon_search" style="left:330px; top:35px; width:16px; height:16px; ">
  222. <script type="javascript" ev:event="DOMActivate">
  223. <![CDATA[
  224. var recv_list = "empno,empnm";
  225. misfOpenPopUpList("12", ipt_empno,"", recv_list, "%","instcd") ;
  226. model.refresh();
  227. btn_search.dispatch("DOMActivate");
  228. ]]>
  229. </script>
  230. <caption/>
  231. </button>
  232. <caption id="cap_transfbankcd" class="search_name" style="left:10px; top:35px; width:84px; height:17px; ">이체은행:</caption>
  233. <select1 id="cmb_payitemcd" ref="/root/send/payitemcd" navindex="9" visibility="hidden" appearance="minimal" style="left:1000px; top:35px; width:100px; height:19px; ">
  234. <choices>
  235. <itemset nodeset="/root/init/payitemcd">
  236. <label ref="label"/>
  237. <value ref="value"/>
  238. </itemset>
  239. </choices>
  240. </select1>
  241. <caption id="cap_attachflag" class="search_name" visibility="hidden" style="left:930px; top:5px; width:86px; height:17px; ">압류여부 :</caption>
  242. <select1 id="cmb_transfbankcd" ref="/root/send/transfbankcd" navindex="6" appearance="minimal" style="left:93px; top:35px; width:108px; height:19px; ">
  243. <choices>
  244. <itemset>
  245. <label/>
  246. <value/>
  247. </itemset>
  248. </choices>
  249. </select1>
  250. <caption id="cap_payitemcd" class="search_name" visibility="hidden" style="left:913px; top:35px; width:87px; height:17px; ">급여항목:</caption>
  251. <select1 id="cmb_attachflag" ref="/root/send/attachflag" visibility="hidden" appearance="minimal" style="left:1015px; top:5px; width:80px; height:19px; ">
  252. <choices>
  253. <itemset nodeset="/root/init/attachflag">
  254. <label ref="label"/>
  255. <value ref="value"/>
  256. </itemset>
  257. </choices>
  258. </select1>
  259. <input id="ipt_paydd" ref="/root/send/paydd" navindex="4" inputtype="date" format="yyyy-mm-dd" style="left:795px; top:5px; width:110px; height:19px; text-align:center; "/>
  260. <caption id="cap_paydd" class="search_name" style="left:710px; top:5px; width:86px; height:17px; ">지급일자 :</caption>
  261. <select1 id="cmb_instcd" ref="/root/send/payinst" class="combo_s_essential" navindex="2" appearance="minimal" style="left:273px; top:5px; width:212px; height:19px; ">
  262. <choices>
  263. <itemset>
  264. <label/>
  265. <value/>
  266. </itemset>
  267. </choices>
  268. </select1>
  269. <caption id="caption2" class="search_name" style="left:207px; top:5px; width:61px; height:17px; ">기관:</caption>
  270. <caption id="caption5" class="search_name" visibility="hidden" style="left:913px; top:7px; width:87px; height:17px; ">직원구분 :</caption>
  271. <select1 id="cmb_holyordflag" ref="/root/send/holyordflag" class="combo_s_essential" navindex="5" visibility="hidden" appearance="minimal" style="left:1000px; top:5px; width:100px; height:19px; ">
  272. <choices>
  273. <item>
  274. <label>직원</label>
  275. <value>1</value>
  276. </item>
  277. <item>
  278. <label>의사</label>
  279. <value>2</value>
  280. </item>
  281. </choices>
  282. <script type="javascript" ev:event="xforms-value-changed">
  283. <![CDATA[
  284. if (model.getValue("/root/send/paytrgt/holyordflag") == "1"){
  285. model.setValue("/root/send/paydd" , ipt_payym.value + "25");
  286. }else{
  287. model.setValue("/root/send/paydd" , ipt_payym.value + "22");
  288. }
  289. model.refresh();
  290. ]]>
  291. </script>
  292. </select1>
  293. </group>
  294. <line id="line2" class="line_1" style="x1:0px; y1:129px; x2:1194px; y2:129px; "/>
  295. <caption id="cap_payspeclist_title" class="tit_2" style="left:5px; top:114px; width:133px; height:13px; ">급여 지급 데이터</caption>
  296. <datagrid id="grd_payspeclist" nodeset="/root/main/payspeclist" caption="부서명^사원번호^성명^주민번호^은행코드^은행명^계좌번호^이체금액^압류여부" colsep="^" colwidth="190, 101, 98, 162, 75, 119, 185, 140, 74" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:135px; width:1195px; height:605px; ">
  297. <col ref="depthngnm"/>
  298. <col ref="emplno"/>
  299. <col ref="name"/>
  300. <col ref="rregno" format="999999-9999999" style="text-align:center; "/>
  301. <col ref="transfbankcd"/>
  302. <col ref="cdnm"/>
  303. <col ref="transfacntno" style="text-align:center; "/>
  304. <col ref="payitemamt" format="#,###" style="text-align:right; "/>
  305. <col checkvalue="Y,N" ref="attachflag" type="checkbox"/>
  306. <script type="javascript" ev:event="onaftersort">
  307. <![CDATA[
  308. grd_payspeclist.gridToInstance();
  309. ]]>
  310. </script>
  311. </datagrid>
  312. <button id="btn_file" class="btn2_letter4" style="left:1061px; top:105px; width:64px; height:19px; ">
  313. <caption>파일 출력</caption>
  314. <script type="javascript" ev:event="DOMActivate">
  315. <![CDATA[
  316. //fGetPayDD();
  317. fSaveTextFile();
  318. ]]>
  319. </script>
  320. </button>
  321. <datagrid id="grd_writedata" nodeset="/root/main/writedata" visibility="hidden" caption="출력데이타" colsep="^" colwidth="100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:5px; top:590px; width:105px; height:150px; ">
  322. <col ref="data1"/>
  323. </datagrid>
  324. <datagrid id="grd_recivepaydd" nodeset="/root/main/recivepaydd" visibility="hidden" caption="지급일자" colsep="^" colwidth="100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:115px; top:590px; width:105px; height:150px; ">
  325. <col ref="paydd"/>
  326. </datagrid>
  327. <button id="btn_saveexcel" class="btn2_letter4" style="left:1129px; top:105px; width:64px; height:19px; ">
  328. <caption>엑셀저장</caption>
  329. <script type="javascript" ev:event="DOMActivate">
  330. <![CDATA[
  331. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  332. if (fileName != "")
  333. {
  334. grd_payspeclist.saveExcel(fileName);
  335. }
  336. ]]>
  337. </script>
  338. </button>
  339. </group>
  340. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  341. <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  342. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  343. <caption>초기화</caption>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. fInitialize();
  347. ]]>
  348. </script>
  349. </button>
  350. <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:1069px; top:3; width:56px; height:22px; ">
  351. <caption>저장</caption>
  352. <script type="javascript" ev:event="DOMActivate">
  353. <![CDATA[
  354. // fsave();
  355. ]]>
  356. </script>
  357. </button>
  358. <button id="btn_prt" class="btn6_letter2" style="left:0px; top:3; width:56px; height:22px; ">
  359. <caption>출력</caption>
  360. </button>
  361. <button id="btn_scrnmove" class="btn3_letter4" style="left:58px; top:3px; width:80px; height:22px; ">
  362. <caption>화면이동</caption>
  363. </button>
  364. </group>
  365. </xhtml:body>
  366. </xhtml:html>