SMRPB03100_근무지이동등록.xrw 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  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>근무지 이동 등록</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <dutpempl>
  11. <dutplceempllist>
  12. <emplno/>
  13. <emplnm/>
  14. <dutplceinstnm/>
  15. <dutunitcd/>
  16. <dutunitnm/>
  17. <predutplcedeptnm/>
  18. <predutplcedeptcd/>
  19. <dutplceinst/>
  20. <dutplcedeptcd/>
  21. </dutplceempllist>
  22. </dutpempl>
  23. <dutplcemoveform>
  24. <dutplcemovelist>
  25. <dutplceinstnm/>
  26. <dutunitcd/>
  27. <dutunitnm/>
  28. <dutplcedeptcd/>
  29. <dutplcedeptnm/>
  30. <dutdeptupdtdd/>
  31. <predutplcedeptnm/>
  32. <cmt/>
  33. <dutplceinst/>
  34. <emplno/>
  35. <seqno/>
  36. <predutplcedeptcd/>
  37. <predutdeptupdtdd/>
  38. <prfshipflag/>
  39. <jobkindcd/>
  40. <jobposcd/>
  41. <jobrespcd/>
  42. </dutplcemovelist>
  43. </dutplcemoveform>
  44. </main>
  45. <send>
  46. <search>
  47. <dutplceinst/>
  48. <dutunitcd/>
  49. <dutunitnm/>
  50. <dutplcedeptcd/>
  51. <dutplcedeptnm/>
  52. <emplno/>
  53. <emplnm/>
  54. <instcd/>
  55. <unitcd/>
  56. </search>
  57. <dutpempl>
  58. <dutinstcd/>
  59. <emplno/>
  60. <dutunitcd/>
  61. <dutplcedeptcd/>
  62. </dutpempl>
  63. <savelist>
  64. <dutplcemovelist/>
  65. </savelist>
  66. </send>
  67. <init/>
  68. <temp/>
  69. </root>
  70. </instance>
  71. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  73. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  74. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  75. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  76. <script type="javascript" ev:event="xforms-ready">
  77. <![CDATA[
  78. fInitialize();
  79. misfGridInit(grd_dutplceempllist);
  80. misfGridInit(grd_dutplcemovelist);
  81. misfMsterDetailSet(grd_dutplceempllist, null, "TRRPB03101" ,"N");
  82. misfMsterDetailSet(grd_dutplcemovelist, grd_dutplceempllist, "TRRPB03102" ,"Y");
  83. misfComboComCdListMulti("Z0007,Z0007", "cmb_dutplceinst,grd_dutplcemovelist.dutplceinst");
  84. var dutplceinst = getUserInfo("dutplceinstcd");
  85. cmb_dutplceinst.value=dutplceinst;
  86. var dutunitcd = getUserInfo("dutplcecd");
  87. var dutunitnm = getUserInfo("dutplcenm");
  88. ipt_dutunitcd.value=dutunitcd;
  89. ipt_dutunitnm.value=dutunitnm;
  90. //btn_search.dispatch("DOMActivate");
  91. //화면 권한 설정
  92. btn_save.disabled = !(checkAuth("X"));
  93. ]]>
  94. </script>
  95. <submission id="TRRPB03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/dutpempl"/>
  96. <submission id="TRRPB03102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/dutpempl" resultref="/root/main/dutplcemoveform"/>
  97. <submission id="TXRPB03101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savelist" resultref="/root/temp"/>
  98. </model>
  99. <script type="javascript">
  100. <![CDATA[
  101. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  102. function fInitialize() {
  103. model.removeNodeset("/root/main/dutpempl/dutplceempllist");
  104. model.removeNodeset("/root/main/dutplcemoveform/dutplcemovelist");
  105. model.resetInstanceNode("/root/send");
  106. model.refresh();
  107. }
  108. function fUpdateValue(){
  109. var cur_row=grd_dutplcemovelist.rows
  110. for(var i=1; i< cur_row ; i++){
  111. var status=grd_dutplcemovelist.rowStatus(i);
  112. if(status=="2"){
  113. if(cur_row >2){
  114. var predutdeptupdtdd=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+(i-1)+"]/dutdeptupdtdd");
  115. }else{
  116. var predutdeptupdtdd=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+ i+"]/dutdeptupdtdd");
  117. }
  118. model.setValue("/root/main/dutplcemoveform/dutplcemovelist["+i+"]/predutdeptupdtdd",predutdeptupdtdd);
  119. }else if(status=="4"){
  120. grd_dutplcemovelist.addStatus((i-1),"update");
  121. if(cur_row >3){
  122. var predutdeptupdtdd=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+(i-2)+"]/dutdeptupdtdd");
  123. }else{
  124. var predutdeptupdtdd=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+ (i-1)+"]/dutdeptupdtdd");
  125. }
  126. model.setValue("/root/main/dutplcemoveform/dutplcemovelist["+(i-1)+"]/predutdeptupdtdd",predutdeptupdtdd);
  127. }
  128. }
  129. }
  130. function fsaveCheckValue(){
  131. var iInsCnt = 0;
  132. var iDupCnt = 0;
  133. var bDel = false;
  134. var icolidx= grd_dutplcemovelist.colRef("emplno");
  135. var icolidx1=grd_dutplcemovelist.colRef("dutplceinst");
  136. var icolidx2=grd_dutplcemovelist.colRef("dutunitcd");
  137. var icolidx3=grd_dutplcemovelist.colRef("dutplcedeptcd");
  138. var icolidx4=grd_dutplcemovelist.colRef("dutdeptupdtdd");
  139. for(var i=0; i<grd_dutplcemovelist.rows; i++)
  140. {
  141. if(grd_dutplcemovelist.rowStatus(i) == 1 || grd_dutplcemovelist.rowStatus(i) == 3)
  142. {
  143. iInsCnt = i;
  144. break;
  145. }
  146. }
  147. for(var i=iInsCnt; i<grd_dutplcemovelist.rows; i++)
  148. {
  149. for(var j=1; j<i; j++)
  150. {
  151. if(grd_dutplcemovelist.valueMatrix(i, icolidx) == grd_dutplcemovelist.valueMatrix(j, icolidx) && grd_dutplcemovelist.valueMatrix(i, icolidx1) == grd_dutplcemovelist.valueMatrix(j, icolidx1) && grd_dutplcemovelist.valueMatrix(i, icolidx2) == grd_dutplcemovelist.valueMatrix(j, icolidx2)
  152. && grd_dutplcemovelist.valueMatrix(i, icolidx3) == grd_dutplcemovelist.valueMatrix(j, icolidx3)&& grd_dutplcemovelist.valueMatrix(i, icolidx4) == grd_dutplcemovelist.valueMatrix(j, icolidx4))
  153. {
  154. if(grd_dutplcemovelist.rowStatus(i) == 1 || grd_dutplcemovelist.rowStatus(i) == 3)
  155. { var ret= messageBox("중복된 행을 삭제", "Q001");
  156. if (ret != 6) { // not OK
  157. bDel = false;
  158. return false;
  159. }else{
  160. grd_dutplcemovelist.deleteItem(i);
  161. iDupCnt++;
  162. bDel = true;
  163. }
  164. }
  165. }
  166. }
  167. if(bDel)
  168. {
  169. bDel = false;
  170. i--;
  171. }
  172. }
  173. if(iDupCnt > 0)
  174. {
  175. messageBox("중복된 행이 삭제", "I001");
  176. }
  177. return true;
  178. }
  179. ]]>
  180. </script>
  181. </xhtml:head>
  182. <xhtml:body style="margin-left:8; margin-right:8; ">
  183. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  184. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">근무지 이동등록</caption>
  185. </group>
  186. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  187. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  188. <caption id="cap_dutplceinst" class="search_name" style="left:15px; top:19; width:86px; height:17px; ">기 관 :</caption>
  189. <line id="line207" class="line_1" style="x1:0px; y1:68px; x2:360px; y2:68px; "/>
  190. <datagrid id="grd_dutplceempllist" nodeset="/root/main/dutpempl/dutplceempllist" caption="사원번호^성명^입사일^직위^기관^부서^부서^이전근무지명^이전근무지^기관^근무지^근무지명^변경일" colsep="^" colwidth="74, 69, 84, 95, 27, 31" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:73px; width:360px; height:661px; ">
  191. <col ref="emplno" style="text-align:center; "/>
  192. <col ref="emplnm" style="text-align:center; "/>
  193. <col ref="entcodd" format="yyyy-mm-dd"/>
  194. <col ref="jobposnm"/>
  195. <col ref="dutinstcd" visibility="hidden"/>
  196. <col ref="dutunitcd" visibility="hidden"/>
  197. <script type="javascript" ev:event="onrowchanged">
  198. <![CDATA[
  199. misfMsterDetailRetrieve();
  200. // var nowdate=getCurrentDate();
  201. // for(i=1; i<grd_dutplcemovelist.rows; i++){
  202. // var lastupdtdt=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+i+"]/lastupdtdt");
  203. // if(lastupdtdt !=nowdate){
  204. // misfSetReadOnlyCol(grd_dutplcemovelist, "dutplcedeptcd", true, i);
  205. // misfSetReadOnlyCol(grd_dutplcemovelist, "dutdeptupdtdd", true, i);
  206. // }
  207. // }
  208. ]]>
  209. </script>
  210. </datagrid>
  211. <caption id="cap_dutunitcd" class="search_name" style="left:260px; top:19; width:85px; height:17px; ">부 서 :</caption>
  212. <input id="ipt_dutunitcd" ref="/root/send/search/dutunitcd" class="input_search" style="left:345px; top:18; width:70px; height:19px; "/>
  213. <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:17px; width:56px; height:22px; text-align:left; ">
  214. <caption>조회</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. if(!isRequiredControls("cmb_dutplceinst","ipt_dutunitcd"))return;
  218. misfMsterDetailRetrieve();
  219. var nowdate=getCurrentDate();
  220. for(i=1; i<grd_dutplcemovelist.rows; i++){
  221. var lastupdtdt=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+i+"]/lastupdtdt");
  222. if(lastupdtdt !=nowdate){
  223. misfSetReadOnlyCol(grd_dutplcemovelist, "dutplcedeptcd", true, i);
  224. misfSetReadOnlyCol(grd_dutplcemovelist, "dutdeptupdtdd", true, i);
  225. }
  226. }
  227. ]]>
  228. </script>
  229. </button>
  230. <caption id="cap_emplno" class="search_name" style="left:613px; top:19; width:99px; height:17px; ">사원번호 :</caption>
  231. <datagrid id="grd_dutplcemovelist" nodeset="/root/main/dutplcemoveform/dutplcemovelist" caption="근무지기관^근무지부서^근무지부서^적용일자^종료일자^주근무지^사유^등록일^사원번호^기관^부서^발령번호" colsep="^" colwidth="135, 155, 19, 102, 100, 63, 212, 34, 29, 28, 35, 33, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:365px; top:73px; width:830px; height:661px; ">
  232. <col id="dutplceinst" disabled="true" ref="dutplceinst" type="combo" style="text-align:center; ">
  233. <choices>
  234. <itemset>
  235. <label/>
  236. <value/>
  237. </itemset>
  238. </choices>
  239. </col>
  240. <col ref="dutplcedeptnm" style="text-align:center; "/>
  241. <col ref="dutplcedeptcd" type="inputbutton" style="text-align:center; "/>
  242. <col ref="dutdeptupdtdd" type="inputdate" style="text-align:center; "/>
  243. <col ref="dutdeptenddd" type="inputdate"/>
  244. <col checkvalue="Y,N" ref="maindutyn" type="checkbox" _key="true" style="text-align:center; "/>
  245. <col ref="cmt" type="input"/>
  246. <col ref="lastupdtdt" visibility="hidden" style="text-align:center; "/>
  247. <col ref="emplno" visibility="hidden"/>
  248. <col ref="dutinstcd" visibility="hidden" style="text-align:center; "/>
  249. <col ref="dutunitcd" visibility="hidden"/>
  250. <col ref="gvnoffcordno" visibility="hidden"/>
  251. <col ref="olddutplceinst" visibility="hidden"/>
  252. <col ref="olddutplcedeptcd" visibility="hidden"/>
  253. <col ref="olddutdeptupdtdd" visibility="hidden"/>
  254. <col ref="prfshipflag" visibility="hidden"/>
  255. <col ref="jobkindcd" visibility="hidden"/>
  256. <col ref="jobposcd" visibility="hidden"/>
  257. <col ref="jobrespcd" visibility="hidden"/>
  258. <script type="javascript" ev:event="onbuttonclick">
  259. <![CDATA[
  260. var cur_row = grd_dutplcemovelist.row;
  261. if(grd_dutplcemovelist.col == grd_dutplcemovelist.colRef("dutplcedeptcd") ){
  262. var instcd= grd_dutplcemovelist.valueMatrix(grd_dutplcemovelist.row,grd_dutplcemovelist.colRef("dutinstcd"));
  263. var unitcd= grd_dutplcemovelist.valueMatrix(grd_dutplcemovelist.row,grd_dutplcemovelist.colRef("dutunitcd"));
  264. ipt_instcd.value=instcd;
  265. ipt_unitcd.value=unitcd;
  266. misfOpenPopUpList("28", grd_dutplcemovelist, "", "dutplceinst,dutplcedeptcd,dutplcedeptnm");
  267. }
  268. model.refresh();
  269. ipt_instcd.value="";
  270. ipt_unitcd.value="";
  271. ]]>
  272. </script>
  273. <script type="javascript" ev:event="xforms-value-changed">
  274. <![CDATA[
  275. var cur_row = grd_dutplcemovelist.row;
  276. if(grd_dutplcemovelist.col == 6){
  277. var predutdeptupdtdd=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+cur_row+"]/predutdeptupdtdd");
  278. var dutdeptupdtdd=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+cur_row+"]/dutdeptupdtdd");
  279. if(dutdeptupdtdd < predutdeptupdtdd){
  280. messageBox("적용일자는 이전 적용일자 ","E012");
  281. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("dutdeptupdtdd")) ="";
  282. }
  283. }
  284. ]]>
  285. </script>
  286. </datagrid>
  287. <line id="line1" class="line_1" style="x1:365px; y1:68px; x2:1195px; y2:68px; "/>
  288. <line id="line13" class="line_4" style="x1:1110px; y1:17px; x2:1110px; y2:39px; "/>
  289. <select1 id="cmb_dutplceinst" ref="/root/send/search/dutplceinst" class="combo_s_essential" appearance="minimal" style="left:100; top:18; width:135px; height:19px; ">
  290. <choices>
  291. <itemset>
  292. <label/>
  293. <value/>
  294. </itemset>
  295. </choices>
  296. </select1>
  297. <input id="ipt_dutunitnm" ref="/root/send/search/dutunitnm" class="input_search" style="left:437px; top:18; width:150px; height:19px; "/>
  298. <button id="btn_deptcdhelp" class="icon_search" style="left:419px; top:20px; width:16px; height:16px; ">
  299. <caption/>
  300. <script type="javascript" ev:event="DOMActivate">
  301. <![CDATA[
  302. var precv_list = "dutunitcd" + "," + "dutunitnm";
  303. misfOpenPopUpList("02", ipt_dutunitcd, "", precv_list);
  304. model.refresh();
  305. ]]>
  306. </script>
  307. </button>
  308. <button id="btn_grddel" class="btn2_letter3" style="left:1075px; top:47px; width:53px; height:19px; ">
  309. <caption>행삭제</caption>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. var nowdate=getCurrentDate();
  313. var cur_row=grd_dutplcemovelist.rows;
  314. var row = grd_dutplcemovelist.row;
  315. var lastupdtdt=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+row+"]/lastupdtdt");
  316. if(cur_row ==2 || lastupdtdt != nowdate){
  317. messageBox("근무지이동 내역을 삭제","E001");
  318. return;
  319. }
  320. misfGridIUD(grd_dutplcemovelist,"D");
  321. model.refresh();
  322. ]]>
  323. </script>
  324. </button>
  325. <button id="btn_grdadd" class="btn2_letter3" style="left:1019px; top:47px; width:53px; height:19px; ">
  326. <caption>행추가</caption>
  327. <script type="javascript" ev:event="DOMActivate">
  328. <![CDATA[
  329. var nowdate=getCurrentDate();
  330. var rows=grd_dutplcemovelist.rows;
  331. for(i=1; i<grd_dutplcemovelist.rows; i++){
  332. var lastupdtdt=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+i+"]/lastupdtdt");
  333. if(lastupdtdt==nowdate){
  334. messageBox(nowdate+"(일) 근무지 이동내역이 이미","I001");
  335. return;
  336. }
  337. }
  338. misfGridIUD(grd_dutplcemovelist, "A");
  339. var cur_row=grd_dutplcemovelist.row;
  340. var row=grd_dutplceempllist.row;
  341. var dutplceinst=model.getValue("/root/main/dutpempl/dutplceempllist["+row+"]/dutplceinst");
  342. var dutunitcd=model.getValue("/root/main/dutpempl/dutplceempllist["+row+"]/dutunitcd");
  343. var emplnm=model.getValue("/root/main/dutpempl/dutplceempllist["+row+"]/emplnm");
  344. var dutunitnm=model.getValue("/root/main/dutpempl/dutplceempllist["+row+"]/dutunitnm");
  345. var prfshipflag=model.getValue("/root/main/dutpempl/dutplceempllist["+row+"]/prfshipflag");
  346. var jobkindcd=model.getValue("/root/main/dutpempl/dutplceempllist["+row+"]/jobkindcd");
  347. var jobposcd=model.getValue("/root/main/dutpempl/dutplceempllist["+row+"]/jobposcd");
  348. var jobrespcd=model.getValue("/root/main/dutpempl/dutplceempllist["+row+"]/jobrespcd");
  349. if(rows ==1){
  350. var dutplcedeptnm="";
  351. var dutplcedeptcd ="";
  352. var predutdeptupdtdd ="";
  353. // var dutplcedeptnm=model.getValue("/root/main/dutpempl/dutplceempllist["+row+"]/dutplcedeptnm");
  354. // var dutplcedeptcd=model.getValue("/root/main/dutpempl/dutplceempllist["+row+"]/dutplcedeptcd");
  355. // var predutdeptupdtdd=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+ cur_row+"]/dutdeptupdtdd");
  356. }else{
  357. var dutplcedeptnm=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+(cur_row-1)+"]/dutplcedeptnm");
  358. var dutplcedeptcd=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+(cur_row-1)+"]/dutplcedeptcd");
  359. var predutdeptupdtdd=model.getValue("/root/main/dutplcemoveform/dutplcemovelist["+ (cur_row-1)+"]/dutdeptupdtdd");
  360. }
  361. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("dutplcedeptcd")) ="";
  362. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("dutplceinst")) =dutplceinst;
  363. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("dutunitnm")) =dutunitnm;
  364. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("dutunitcd")) =dutunitcd;
  365. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("predutplcedeptnm")) =dutplcedeptnm;
  366. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("predutplcedeptcd")) =dutplcedeptcd;
  367. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("predutdeptupdtdd")) =predutdeptupdtdd;
  368. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("prfshipflag")) =prfshipflag;
  369. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("jobkindcd")) =jobkindcd;
  370. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("jobposcd")) =jobposcd;
  371. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("jobrespcd")) =jobrespcd;
  372. grd_dutplcemovelist.valueMatrix(cur_row, grd_dutplcemovelist.colRef("emplnm")) =emplnm;
  373. model.setValue("/root/main/dutplcemoveform/dutplcemovelist["+cur_row+"]/lastupdtdt",nowdate);
  374. ]]>
  375. </script>
  376. </button>
  377. <input id="ipt_instcd" ref="/root/send/search/instcd" class="input_search" visibility="hidden" style="left:471px; top:47px; width:106px; height:19px; "/>
  378. <input id="ipt_unitcd" ref="/root/send/search/unitcd" class="input_search" visibility="hidden" style="left:370px; top:47px; width:80px; height:19px; "/>
  379. <input id="ipt_emplnm" ref="/root/send/search/emplnm" class="input_default" navindex="21" style="left:792px; top:18; width:150px; height:19px; ">
  380. <script type="javascript" ev:event="xforms-value-changed">
  381. <![CDATA[
  382. var recv_list = "emplno,emplnm";
  383. rpbfValidationCheck("EMPLNM", recv_list);
  384. model.refresh();
  385. ]]>
  386. </script>
  387. </input>
  388. <input id="ipt_emplno" ref="/root/send/search/emplno" class="input_default" navindex="20" style="left:700px; top:18; width:70px; height:19px; ">
  389. <script type="javascript" ev:event="xforms-value-changed">
  390. <![CDATA[
  391. var recv_list = "emplno,emplnm";
  392. rpbfValidationCheck("EMPLNO", recv_list);
  393. model.refresh();
  394. ]]>
  395. </script>
  396. </input>
  397. <button id="btn_emplsearch" class="icon_search" style="left:774px; top:20px; width:16px; height:16px; ">
  398. <caption/>
  399. <script type="javascript" ev:event="DOMActivate">
  400. <![CDATA[
  401. var recv_list = "emplno,emplnm";
  402. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
  403. model.refresh();
  404. ]]>
  405. </script>
  406. </button>
  407. <button id="btn_excelsave" class="btn2_letter4" style="left:1131px; top:47px; width:64px; height:19px; ">
  408. <caption>엑셀저장</caption>
  409. <script type="javascript" ev:event="DOMActivate">
  410. <![CDATA[
  411. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  412. if (fileName != "")
  413. {
  414. grd_dutplcemovelist.saveExcel(fileName, "SheetName", true, true, "", "");
  415. }
  416. ]]>
  417. </script>
  418. </button>
  419. </group>
  420. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  421. <line id="line11" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  422. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; ">
  423. <caption>저장</caption>
  424. <script type="javascript" ev:event="DOMActivate">
  425. <![CDATA[
  426. var updtdata = getGridUpdateData(grd_dutplcemovelist);
  427. if (updtdata == "" ) {
  428. messageBox("변경된 데이터가","I004");
  429. return;
  430. }
  431. if(!checkKeyColumn("grd_dutplcemovelist"))return;
  432. //if(!fsaveCheckValue())return;
  433. //fUpdateValue();
  434. misfSave("TXRPB03101");
  435. ]]>
  436. </script>
  437. </button>
  438. <button id="btn_clear" class="btn4_letter3" style="left:1069px; top:3px; width:68px; height:22px; ">
  439. <caption>초기화</caption>
  440. <script type="javascript" ev:event="DOMActivate">
  441. <![CDATA[
  442. var updtdata = getGridUpdateData(grd_dutplcemovelist);
  443. if (updtdata != "" ) {
  444. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  445. if (ret != 6) { // not OK
  446. return;
  447. }
  448. }
  449. fInitialize();
  450. ]]>
  451. </script>
  452. </button>
  453. </group>
  454. </xhtml:body>
  455. </xhtml:html>