SMRPB18000_용역직원등록.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet ype="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. <emplserventp>
  11. <emplserventplist/>
  12. </emplserventp>
  13. <infoserventp>
  14. <infoserventplist/>
  15. </infoserventp>
  16. <excel>
  17. <excellist/>
  18. </excel>
  19. </main>
  20. <send>
  21. <serventp>
  22. <instcd/>
  23. <srventrcd/>
  24. <contdg/>
  25. <contfromdd/>
  26. <conttodd/>
  27. </serventp>
  28. <save>
  29. <emplserventplist/>
  30. </save>
  31. <infoserventp>
  32. <instcd/>
  33. <srventrcd/>
  34. <contfromdd/>
  35. </infoserventp>
  36. <attach>
  37. <file/>
  38. <instcd/>
  39. <srventrcd/>
  40. <contfromdd/>
  41. </attach>
  42. </send>
  43. <temp/>
  44. <init>
  45. <serventp>
  46. <serventplist/>
  47. </serventp>
  48. <contserventp>
  49. <contserventplist/>
  50. </contserventp>
  51. </init>
  52. </root>
  53. </instance>
  54. <submission id="TRRPB18001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/serventp" resultref="/root/init/serventp"/>
  55. <submission id="TRRPB18002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/serventp" resultref="/root/init/contserventp"/>
  56. <submission id="TRRPB18003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/infoserventp" resultref="/root/main/emplserventp"/>
  57. <submission id="TXRPB18001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  58. <submission id="TRRPB18004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/serventp" resultref="/root/main/infoserventp"/>
  59. <submission id="TXRPB18002" mediatype="multipart/form-data" method="form-data-post" ref="/root/send/attach" resultref="/root/main/excel"/>
  60. </model>
  61. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  62. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  63. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  64. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  65. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  66. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. fInitialize();
  70. ]]>
  71. </script>
  72. <script type="javascript">
  73. <![CDATA[
  74. function fInitialize()
  75. {
  76. model.removenode(grd_infoserventplist.nodeset);
  77. model.removenode(grd_emplserventplist.nodeset);
  78. model.refresh();
  79. // misfComboComCdListMulti("Z0007","cmb_instcd");
  80. misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","N");
  81. model.refresh();
  82. misfMsterDetailSet(grd_infoserventplist, null, "TRRPB18004", "N");
  83. misfMsterDetailSet(grd_emplserventplist, grd_infoserventplist, "TRRPB18003", "Y");
  84. // grd_prtgvnoffcordlist.fixedcellcheckbox(1, 1) = true;
  85. var curdate = getCurrentDate();
  86. cmb_instcd.value = getUserInfo("dutplceinstcd");
  87. submit("TRRPB18001");
  88. addComboItem( "cmb_srventrcd", "[-- 전체 --]", "", "above");
  89. model.setValue(cmb_srventrcd.attribute("ref"), "");
  90. //model.refresh();
  91. }
  92. var fso=new ActiveXObject("Scripting.FileSystemObject");
  93. function fExcelUpload() {
  94. var maxsize = upload1.attribute("filesize");
  95. var filename = window.fileDialog("open", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  96. var filelist = filename.split("|");
  97. model.removeNodeset("/root/main/list/filelist");
  98. model.removeNodeset("/root/send/attach");
  99. //타이틀을 획득한다.
  100. var s = new String(filelist[filelist.length-1]);
  101. var ss = s.split("\\");
  102. if(filename !=""){
  103. //작업 전 row를 추가 >파일명 유/무에 따른 분기>
  104. for(var i = 0 ; i < filelist.length ; i++ ){
  105. grd_attach.addRow(false);
  106. if(filelist[i] == ""){
  107. //alert(grd_attach.rows - 1);
  108. grd_attach.removeRow(false);
  109. grd_attach.refresh();
  110. }else{
  111. grd_attach.valueMatrix(grd_attach.rows - 1, 0) = filelist[i];
  112. //파일크기('tfHelper.checkFileSize' 참조)
  113. var fileCnt = upload1.getFileCount();
  114. var lastIndex = fileCnt - 1;
  115. var fileSize = upload1.getFileSize(lastIndex);
  116. grd_attach.textmatrix(grd_attach.rows - 1,1) = fileSize;
  117. if (!checkFileSize(upload1)){
  118. grd_attach.removeItem();
  119. messageBox("파일 크기가 최대치("+maxsize+"Byte)를", "E003");
  120. return;
  121. }
  122. }
  123. }
  124. model.makeValue("/root/send/attach/instcd",cmb_instcd.value);
  125. model.makeValue("/root/send/attach/srventrcd",cmb_srventrcd.value);
  126. model.makeValue("/root/send/attach/contfromdd",ipt_fromdd.value);
  127. openLoadingBar("파일업로드 작업중입니다... ") ;
  128. submit("TXRPB18002");
  129. closeLoadingBar();
  130. //btn_search.dispatch("DOMActivate");
  131. }
  132. }
  133. ]]>
  134. </script>
  135. </xhtml:head>
  136. <xhtml:body style="margin-left:8; margin-right:8; ">
  137. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  138. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:40px; "/>
  139. <caption id="caption278" class="tit_2" style="left:5px; top:62px; width:162px; height:14px; ">용역직원 List</caption>
  140. <line id="line207" class="line_1" style="x1:0px; y1:77px; x2:1193px; y2:76px; "/>
  141. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:19px; width:56px; height:22px; text-align:left; ">
  142. <caption>조회</caption>
  143. <script type="javascript" ev:event="DOMActivate">
  144. <![CDATA[
  145. misfMsterDetailRetrieve();
  146. ]]>
  147. </script>
  148. </button>
  149. <line id="line3" class="line_4" style="x1:1110px; y1:12px; x2:1110px; y2:50px; border-color:#ffe4bb; border-left-style:solid; "/>
  150. <input id="ipt_lbrunionjobrespnm" ref="/root/main/item/lbrunionjobrespnm" class="input_search" visibility="hidden"/>
  151. <input id="ipt_lbrunionjobresp" ref="/root/main/item/dutplceinst" visibility="hidden"/>
  152. <input id="ipt_emplno_m" ref="/root/main/imsiitem/emplno" visibility="hidden"/>
  153. <input id="ipt_lbrunionrgstyn_m" ref="/root/main/imsiitem/lbrunionrgstyn" visibility="hidden"/>
  154. <input id="ipt_lbrunionrgstdd_m" ref="/root/main/imsiitem/lbrunionrgstdd" visibility="hidden"/>
  155. <input id="ipt_lbrunionsecssdd_m" ref="/root/main/imsiitem/lbrunionsecssdd" visibility="hidden"/>
  156. <input id="ipt_lbrunionjobresp_m" ref="/root/main/imsiitem/lbrunionjobresp" visibility="hidden"/>
  157. <input id="ipt_lbrunionjobrespnm_m" ref="/root/main/imsiitem/lbrunionjobrespnm" visibility="hidden"/>
  158. <input id="ipt_asgnmpostndd_m" ref="/root/main/imsiitem/asgnmpostndd" visibility="hidden"/>
  159. <input id="ipt_todd_m" ref="/root/main/imsiitem/todd" visibility="hidden"/>
  160. <input id="ipt_cur_row" ref="/root/init/cur_row_m" class="input_search" visibility="hidden"/>
  161. <datagrid id="grd_emplserventplist" nodeset="/root/main/emplserventp/emplserventplist" caption="사번^성명^주민번호^계약기간^계약기간^내선번호^휴대폰^성별^결혼여부^비고^기관^업체코드old^계약시작일^계약시작일old^업체코드|사번^성명^주민번호^시작일^종료일^내선번호^휴대폰^성별^결혼여부^비고^기관^업체코드old^계약시작일^계약시작일old^업체코드" colsep="^" colwidth="67, 69, 97, 90, 84, 63, 90, 44, 44, 170, 37, 34, 36, 35, 33" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:335px; top:80px; width:858px; height:660px; ">
  162. <col ref="emplno"/>
  163. <col ref="name" type="input"/>
  164. <col ref="rregno" type="input" format="999999-9999999"/>
  165. <col ref="entcodd" type="inputdate"/>
  166. <col ref="retiredd" type="inputdate"/>
  167. <col ref="hosinseqno" type="input"/>
  168. <col ref="mpphonno" type="input"/>
  169. <col ref="gndr" type="combo">
  170. <choices>
  171. <item>
  172. <label>남</label>
  173. <value>M</value>
  174. </item>
  175. <item>
  176. <label>여</label>
  177. <value>F</value>
  178. </item>
  179. </choices>
  180. </col>
  181. <col ref="maryyn" type="combo">
  182. <choices>
  183. <item>
  184. <label>Y</label>
  185. <value>Y</value>
  186. </item>
  187. <item>
  188. <label>N</label>
  189. <value>N</value>
  190. </item>
  191. </choices>
  192. </col>
  193. <col ref="cmt" type="input"/>
  194. <col ref="instcd" visibility="hidden"/>
  195. <col ref="oldsrventrcd" visibility="hidden"/>
  196. <col ref="contfromdd" visibility="hidden"/>
  197. <col ref="oldcontfromdd" visibility="hidden"/>
  198. <col ref="srventrcd" visibility="hidden"/>
  199. <script type="javascript" ev:event="onrowchanged">
  200. <![CDATA[
  201. misfMsterDetailRetrieve();
  202. ]]>
  203. </script>
  204. </datagrid>
  205. <select1 id="cmb_instcd" ref="/root/send/serventp/instcd" class="combo_s_essential" disabled="true" appearance="minimal" style="left:60px; top:20px; width:154px; height:19px; ">
  206. <choices>
  207. <itemset>
  208. <label/>
  209. <value/>
  210. </itemset>
  211. </choices>
  212. </select1>
  213. <caption id="cap_instcd" class="search_name" style="left:5px; top:20px; width:60px; height:17px; ">기관:</caption>
  214. <input id="ipt_fromdd" ref="/root/send/serventp/contfromdd" class="input_default" disabled="true" inputtype="date" format="yyyy-mm-dd" style="left:771px; top:20px; width:94px; height:19px; text-align:center; vertical-align:middle; "/>
  215. <caption id="caption22" class="search_name" style="left:690px; top:20px; width:85px; height:17px; ">계약기간:</caption>
  216. <input id="ipt_todd" ref="/root/send/serventp/conttodd" class="input_default" disabled="true" inputtype="date" format="yyyy-mm-dd" style="left:878px; top:20px; width:94px; height:19px; text-align:center; vertical-align:middle; "/>
  217. <caption id="caption11" style="left:867px; top:19px; width:10px; height:19px; ">-</caption>
  218. <button id="btn_excelsave" class="btn2_letter4" style="left:1128px; top:54px; width:64px; height:19px; ">
  219. <caption>엑셀저장</caption>
  220. <script type="javascript" ev:event="DOMActivate">
  221. <![CDATA[
  222. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  223. if (fileName != "")
  224. {
  225. grd_emplserventplist.saveExcel(fileName);
  226. }
  227. ]]>
  228. </script>
  229. </button>
  230. <select1 id="cmb_srventrcd" ref="/root/send/serventp/srventrcd" class="combo_s_essential" appearance="minimal" style="left:295px; top:20px; width:154px; height:19px; ">
  231. <choices>
  232. <itemset nodeset="/root/init/serventp/serventplist">
  233. <label ref="srventrnm"/>
  234. <value ref="srventrcd"/>
  235. </itemset>
  236. </choices>
  237. <script type="javascript" ev:event="xforms-value-changed">
  238. <![CDATA[
  239. if (cmb_srventrcd.value == "") {
  240. cmb_contdg.disabled = true;
  241. }
  242. else {
  243. cmb_contdg.disabled = false;
  244. }
  245. submit("TRRPB18002");
  246. addComboItem( "cmb_contdg", "[-- 전체 --]", "", "above");
  247. model.setValue(cmb_contdg.attribute("ref"), "");
  248. cmb_contdg.refresh();
  249. ]]>
  250. </script>
  251. </select1>
  252. <caption id="caption1" class="search_name" style="left:240px; top:20px; width:60px; height:17px; ">업체:</caption>
  253. <caption id="caption2" class="search_name" style="left:480px; top:20px; width:60px; height:17px; ">차수:</caption>
  254. <select1 id="cmb_contdg" ref="/root/send/serventp/contdg" class="combo_s_essential" disabled="true" appearance="minimal" style="left:535px; top:20px; width:110px; height:19px; ">
  255. <choices>
  256. <itemset nodeset="/root/init/contserventp/contserventplist">
  257. <label ref="contdgnm"/>
  258. <value ref="contdg"/>
  259. </itemset>
  260. </choices>
  261. <script type="javascript" ev:event="xforms-value-changed">
  262. <![CDATA[
  263. var fromdd = model.getValue("/root/init/contserventp/contserventplist[" + (cmb_contdg.focusIndex + 1) + "]/contfromdd");
  264. var todd = model.getValue("/root/init/contserventp/contserventplist[" + (cmb_contdg.focusIndex + 1) + "]/conttodd");
  265. ipt_fromdd.value = fromdd;
  266. ipt_todd.value = todd;
  267. ]]>
  268. </script>
  269. </select1>
  270. <datagrid id="grd_infoserventplist" nodeset="/root/main/infoserventp/infoserventplist" caption="업체명^계약기간^계약기간^차수^기관^업체코드|업체명^시작일^종료일^차수^기관^업체코드" colsep="^" colwidth="123, 68, 68, 31, 37, 33" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:80px; width:330px; height:660px; ">
  271. <col ref="srventrnm"/>
  272. <col ref="contfromdd" format="yyyy-mm-dd"/>
  273. <col ref="conttodd" format="yyyy-mm-dd"/>
  274. <col ref="contdg"/>
  275. <col ref="instcd" visibility="hidden"/>
  276. <col ref="srventrcd" visibility="hidden"/>
  277. <script type="javascript" ev:event="onrowchanged">
  278. <![CDATA[
  279. misfMsterDetailRetrieve();
  280. ]]>
  281. </script>
  282. </datagrid>
  283. <button id="btn_grdaddpayitemtitle" class="btn2_letter3" style="left:1018px; top:54px; width:53px; height:19px; ">
  284. <caption>행추가</caption>
  285. <script type="javascript" ev:event="DOMActivate">
  286. <![CDATA[
  287. misfGridIUD(grd_emplserventplist, "A");
  288. ]]>
  289. </script>
  290. </button>
  291. <button id="btn_grddelpayitemtitle" class="btn2_letter3" style="left:1074px; top:54px; width:53px; height:19px; ">
  292. <caption>행삭제</caption>
  293. <script type="javascript" ev:event="DOMActivate">
  294. <![CDATA[
  295. misfGridIUD(grd_emplserventplist, "D");
  296. ]]>
  297. </script>
  298. </button>
  299. <upload id="upload1" nodeset="/root/send/attach/file" ext="zip" filecount="5" filesize="41943040" validate="true" style="left:890px; top:50px; width:25px; height:20px; "/>
  300. <button id="btn_upload" class="btn5_letter5" style="left:910px; top:54px; width:75px; height:19px; ">
  301. <caption>파일업로드</caption>
  302. <script type="javascript" ev:event="DOMActivate">
  303. <![CDATA[
  304. fExcelUpload();
  305. ]]>
  306. </script>
  307. </button>
  308. <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; ">
  309. <col ref="file" style="text-align:center; "/>
  310. <col ref="filesize" format="#,###" style="text-align:right; "/>
  311. </datagrid>
  312. </group>
  313. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  314. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">용역직원등록</caption>
  315. </group>
  316. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  317. <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  318. <button id="btn_save" class="btn4_letter2" style="left:1134px; top:3px; width:56px; height:22px; ">
  319. <caption>저장</caption>
  320. <script type="javascript" ev:event="DOMActivate">
  321. <![CDATA[
  322. misfSave("TXRPB18001");
  323. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  324. btn_search.dispatch("DOMActivate");
  325. }
  326. ]]>
  327. </script>
  328. </button>
  329. </group>
  330. </xhtml:body>
  331. </xhtml:html>