SPRPD08000_직원출장비품의.xrw 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  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. <list>
  11. <chulemplist>
  12. <instcd/>
  13. <chulseq/>
  14. <upddate/>
  15. <sysdate/>
  16. <chulgubun/>
  17. <chulsabun/>
  18. <name/>
  19. <buseocode/>
  20. <dutplcedeptcd/>
  21. <inorddeptnm/>
  22. <chulpurpose/>
  23. <chulorgan/>
  24. <pumno/>
  25. <adminaff/>
  26. <adminaffdate/>
  27. <adminaffsabun/>
  28. <adminbuseo/>
  29. <adminbuseodate/>
  30. <adminbuseosabun/>
  31. </chulemplist>
  32. </list>
  33. <detaillst>
  34. <chulempdetaillst/>
  35. </detaillst>
  36. <lognempinfo>
  37. <empinfo/>
  38. </lognempinfo>
  39. <emplbankinfo/>
  40. </main>
  41. <send>
  42. <srchfrmdd/>
  43. <srchendd/>
  44. <srchchulseq/>
  45. <adminbuseoflag/>
  46. <adminaffflag/>
  47. <admingubn/>
  48. <instcd/>
  49. <srchchulgubun/>
  50. <popflag/>
  51. <sabun/>
  52. <save>
  53. <chuldetail/>
  54. <chullst/>
  55. </save>
  56. <tempchulseq/>
  57. <rownum/>
  58. </send>
  59. <hidden>
  60. <item>
  61. <pumno/>
  62. </item>
  63. <savelist>
  64. <detail/>
  65. </savelist>
  66. </hidden>
  67. <init>
  68. <chulgubuninfo>
  69. <chulgubunlist>
  70. <nm>교육출장</nm>
  71. <cd>1</cd>
  72. </chulgubunlist>
  73. <chulgubunlist>
  74. <nm>업무출장</nm>
  75. <cd>2</cd>
  76. </chulgubunlist>
  77. <chulgubunlist>
  78. <nm>QA출장</nm>
  79. <cd>3</cd>
  80. </chulgubunlist>
  81. <chulgubunlist>
  82. <nm>기타</nm>
  83. <cd>4</cd>
  84. </chulgubunlist>
  85. </chulgubuninfo>
  86. </init>
  87. <temp/>
  88. <pop4data>
  89. <popchullist/>
  90. <chulseq/>
  91. <yogudeptcd/>
  92. </pop4data>
  93. </root>
  94. </instance>
  95. <script type="javascript" ev:event="xforms-ready">
  96. <![CDATA[
  97. initialize();
  98. ]]>
  99. </script>
  100. <submission id="TRRPD08001" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  101. <submission id="TRRPD08002" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/main/detaillst"/>
  102. <submission id="TXRPD08002" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  103. <submission id="TXRPD08003" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/hidden/savelist" replace="instance" resultref="/root/temp"/>
  104. <submission id="TXRPD08001" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/temp"/>
  105. <submission id="TRRPD08003" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/main/lognempinfo"/>
  106. <submission id="TRRPD08004" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send" replace="instance" resultref="/root/main/emplbankinfo"/>
  107. <submission id="TXRPD08004" mediatype="application/x-www-form-urlencoded" method="get" ref="/root/send/save" replace="instance" resultref="/root/temp"/>
  108. </model>
  109. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  112. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  113. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  114. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  115. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  116. <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
  117. <script type="javascript" src="../../../mis/acntcommonweb/js/RAD001.js"/>
  118. <script type="javascript">
  119. <![CDATA[
  120. function initialize(){
  121. model.resetInstanceNode("/root/main/chulinfo");
  122. model.removeNodeset("/root/main/list/chulemplist");
  123. model.removeNodeset("/root/main/detaillst/chulempdetaillst");
  124. model.setValue("/root/send/srchchulgubun", "0");
  125. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  126. // model.setValue("/root/send/srchfrmdd", getCurrentDate());
  127. // model.setValue("/root/send/srchendd", getCurrentDate());
  128. btn_search.dispatch("DOMActivate");
  129. model.refresh();
  130. }
  131. //========================================================================================
  132. // 직원출장 조회
  133. //========================================================================================ㄴ
  134. function fGetChulEmpList(){
  135. model.setValue("/root/send/popflag", "Y");
  136. model.removeNodeset("/root/main/list/chulemplist"); //조회시 기존 데이터 삭제
  137. submit("TRRPD08001");
  138. model.refresh();
  139. }
  140. //========================================================================================
  141. // 직원출장 상세내역 조회
  142. //========================================================================================
  143. function fGetChulEmpDetailList(){
  144. model.removeNodeset("/root/main/detaillst/chulempdetaillst"); //조회시 기존 데이터 삭제
  145. submit("TRRPD08002");
  146. model.refresh();
  147. }
  148. ]]>
  149. </script>
  150. </xhtml:head>
  151. <xhtml:body pagewidth="980" pageheight="630" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  152. <group id="group2" scroll="auto" style="left:0px; top:18px; width:960px; height:592px; ">
  153. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:6px; width:955px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  154. <button id="btn_search" class="btn1_letter2" style="left:887px; top:13px; width:56px; height:22px; ">
  155. <caption>조회</caption>
  156. <script type="javascript" ev:event="DOMActivate">
  157. <![CDATA[
  158. fGetChulEmpList();
  159. ]]>
  160. </script>
  161. </button>
  162. <line id="line13" class="line_4" style="x1:874px; y1:13px; x2:874px; y2:35px; "/>
  163. <line id="line1" class="line_1" style="x1:0px; y1:67px; x2:955px; y2:67px; "/>
  164. <input id="ipt_fromdd" ref="/root/send/srchfrmdd" class="input_s_essential" navindex="14" inputtype="date" style="left:96px; top:14px; width:90px; height:19px; "/>
  165. <caption id="caption2" class="search_name" style="left:8px; top:15px; width:93px; height:17px; ">조회기간 :</caption>
  166. <datagrid id="grd_chullist" nodeset="/root/main/list/chulemplist" caption="신청일자^번호^사번^성명^부서명^출장구분^목적" colsep="^" colwidth="85, 70, 76, 80, 120, 73, 413, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:70px; width:955px; height:230px; ">
  167. <col ref="sysdate" format="yyyy-mm-dd" style="text-align:center; "/>
  168. <col ref="chulseq" style="text-align:center; "/>
  169. <col ref="chulsabun" style="text-align:center; "/>
  170. <col ref="name" style="text-align:center; "/>
  171. <col ref="inorddeptnm" style="text-align:center; "/>
  172. <col disabled="false" ref="chulgubun" type="combo" style="text-align:center; ">
  173. <choices>
  174. <itemset nodeset="/root/init/chulgubuninfo/chulgubunlist">
  175. <label ref="nm"/>
  176. <value ref="cd"/>
  177. </itemset>
  178. </choices>
  179. </col>
  180. <col ref="chulpurpose" style="text-align:left; "/>
  181. <col ref="adminbuseo" visibility="hidden"/>
  182. <col ref="adminaff" visibility="hidden"/>
  183. <col ref="buseocode" visibility="hidden"/>
  184. <col ref="chulorgan" visibility="hidden"/>
  185. <col ref="pumno" visibility="hidden"/>
  186. <col ref="adminaffdate" visibility="hidden"/>
  187. <col ref="adminaffsabun" visibility="hidden"/>
  188. <col ref="adminbuseodate" visibility="hidden"/>
  189. <col ref="adminbuseosabun" visibility="hidden"/>
  190. <col ref="upddate" visibility="hidden"/>
  191. <col ref="instcd" visibility="hidden"/>
  192. <col ref="chulgubun" visibility="hidden"/>
  193. <col ref="dutplcedeptcd" visibility="hidden"/>
  194. <col ref="adminaff" visibility="hidden"/>
  195. <col ref="adminbuseo" visibility="hidden"/>
  196. <script type="javascript" ev:event="onaftersort">
  197. <![CDATA[
  198. grd_chullist.gridToInstance();
  199. ]]>
  200. </script>
  201. <script type="javascript" ev:event="onclick">
  202. <![CDATA[
  203. if( grd_chullist.rows > 1 ){
  204. model.setValue("/root/send/srchchulseq", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulseq"));
  205. model.setValue("/root/send/rownum", grd_chullist.row);
  206. fGetChulEmpDetailList();
  207. model.refresh();
  208. }
  209. ]]>
  210. </script>
  211. </datagrid>
  212. <caption id="caption1" class="tit_2" style="left:5px; top:51px; width:180px; height:13px; ">직원출장 신청내역</caption>
  213. <input id="ipt_enddd" ref="/root/send/srchendd" class="input_s_essential" navindex="14" inputtype="date" style="left:202px; top:14px; width:90px; height:19px; "/>
  214. <caption id="caption3" style="left:184px; top:13px; width:20px; height:25px; font-size:10pt; font-weight:bold; text-align:center; ">~</caption>
  215. <datagrid id="dtg_chuldetaillst" nodeset="/root/main/detaillst/chulempdetaillst" caption="사번^성명^부서^직급^시작일자^종료일자^출장비^출장지역^장소" colsep="^" colwidth="70, 60, 105, 60, 85, 85, 100, 150, 205, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:330px; width:955px; height:230px; ">
  216. <col ref="sabun" style="text-align:center; "/>
  217. <col ref="name" style="text-align:center; "/>
  218. <col ref="inorddeptnm" style="text-align:center; "/>
  219. <col ref="jikgeubcode" style="text-align:center; "/>
  220. <col ref="chulfrdate" format="yyyy-mm-dd" style="text-align:center; "/>
  221. <col ref="chultodate" format="yyyy-mm-dd" style="text-align:center; "/>
  222. <col ref="chulkeum" type="input" format="#,###" style="text-align:right; padding-right:5; "/>
  223. <col ref="chulcon" style="text-align:left; "/>
  224. <col ref="chulorgan" style="text-align:left; "/>
  225. <col ref="chulseq" visibility="hidden"/>
  226. <col ref="upddate" visibility="hidden"/>
  227. <col ref="sysdate" visibility="hidden"/>
  228. <col ref="dutplcedeptcd" visibility="hidden"/>
  229. <col ref="besabun" visibility="hidden"/>
  230. <script type="javascript" ev:event="onaftersort">
  231. <![CDATA[
  232. dtg_chuldetaillst.gridToInstance();
  233. ]]>
  234. </script>
  235. </datagrid>
  236. <line id="line2" class="line_1" style="x1:0px; y1:325px; x2:955px; y2:325px; "/>
  237. <caption id="caption10" class="tit_2" style="left:0px; top:309px; width:180px; height:13px; ">직원출장 신청 세부내역</caption>
  238. <caption id="caption11" class="search_name" style="left:305px; top:15px; width:93px; height:17px; ">출장구분 :</caption>
  239. <select1 id="radio2" ref="/root/send/srchchulgubun" appearance="full" cellspacing="2" cols="5" vcellspacing="3" overflow="visible" style="left:394px; top:14px; width:320px; height:20px; border-style:none; ">
  240. <choices>
  241. <item>
  242. <label>전 체</label>
  243. <value>0</value>
  244. </item>
  245. <item>
  246. <label>교육출장</label>
  247. <value>1</value>
  248. </item>
  249. <item>
  250. <label>업무출장</label>
  251. <value>2</value>
  252. </item>
  253. <item>
  254. <label>QA출장</label>
  255. <value>3</value>
  256. </item>
  257. <item>
  258. <label>기타</label>
  259. <value>4</value>
  260. </item>
  261. </choices>
  262. </select1>
  263. <button id="button1" class="btn4_letter2" style="left:899px; top:565px; width:56px; height:22px; ">
  264. <caption>종료</caption>
  265. <script type="javascript" ev:event="DOMActivate">
  266. <![CDATA[
  267. window.close();
  268. ]]>
  269. </script>
  270. </button>
  271. <button id="button2" class="btn4_letter6" style="left:794px; top:565px; width:104px; height:22px; ">
  272. <caption>품의자료생성</caption>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. var mastercnt = 0;
  276. for( var i = 1 ; i < grd_chullist.rows ; i++ ){
  277. if( grd_chullist.rowStatus(i) == 2 ){
  278. mastercnt ++;
  279. }
  280. }
  281. var detailcnt = 0;
  282. for( var a = 1 ; a < dtg_chuldetaillst.rows ; a++ ){
  283. if( dtg_chuldetaillst.rowStatus(a) == 2 ){
  284. detailcnt ++;
  285. }
  286. }
  287. if( mastercnt > 0 || detailcnt > 0 ){
  288. messageBox("수정사항 중 저장하지 않은 내역이 있습니다. 저장 후 진행해주세요.", "E999", "");
  289. return;
  290. }
  291. if( grd_chullist.row == ""){
  292. messageBox("직원출장 신청내역을 선택하여주십시오.", "E999", "");
  293. return;
  294. }
  295. opener.javascript.button35.dispatch("DOMActivate");
  296. opener.javascript.model.setValue("/root/pop4data/chulseq", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulseq"));
  297. opener.javascript.model.setValue("/root/main/grnt/grntlist1/naeyong", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulpurpose"));
  298. opener.javascript.model.setValue("/root/main/grnt/grntlist1/usedate" , model.getValue("/root/main/detaillst/chulempdetaillst[1]/chulfrdate"));
  299. opener.javascript.model.setValue("/root/main/grnt/grntlist1/fromdate" , model.getValue("/root/main/detaillst/chulempdetaillst[1]/chulfrdate"));
  300. opener.javascript.model.setValue("/root/main/grnt/grntlist1/todate", model.getValue("/root/main/detaillst/chulempdetaillst[1]/chultodate"));
  301. opener.javascript.model.setValue("/root/main/grnt/grntlist1/custcode", "1000");
  302. opener.javascript.model.setValue("/root/main/grnt/grntlist1/nabdate", "00000000");
  303. opener.javascript.model.setValue("/root/main/grnt/grntlist1/yogudeptcd", model.getValue("/root/pop4data/yogudeptcd"));
  304. opener.javascript.combo1.dispatch("xforms-value-changed");
  305. var cnt = getNodesetCount("/root/main/detaillst/chulempdetaillst");
  306. var pumamt = 0;
  307. for(var i = 1 ; i <= cnt ; i++ ){
  308. pumamt = pumamt + parseInt(model.getValue("/root/main/detaillst/chulempdetaillst[" + i + "]/chulkeum"));
  309. }
  310. opener.javascript.btn_grdaddpaydedulist.dispatch("DOMActivate");
  311. opener.javascript.model.makeNode("/root/main/grnt/grntlist2");
  312. opener.javascript.model.makeValue("/root/main/grnt/grntlist2/pumamt", pumamt );
  313. opener.javascript.model.makeValue("/root/main/grnt/grntlist2/hyubdate", "00000000");
  314. // 업무출장인 경우 국내출장일로 셋팅.
  315. if( model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulgubun") == "2" ){
  316. opener.javascript.model.setValue("/root/main/grnt/grntlist1/yogudeptcd", "4030100000");
  317. opener.javascript.combo1.dispatch("xforms-value-changed");
  318. model.refresh();
  319. opener.javascript.model.makeValue("/root/main/grnt/grntlist2/cdacntcd", "51320100");
  320. opener.javascript.grd_grntpsn1.dispatch("xforms-value-changed");
  321. }
  322. // 거래처
  323. opener.javascript.ipt_custcd.dispatch("xforms-value-changed");
  324. // 신청 세부내역의 직원이 1명일 경우만 계좌정보 보여주기.
  325. if( cnt == 1 ){
  326. model.setValue("/root/send/sabun", model.getValue("/root/main/detaillst/chulempdetaillst[1]/sabun"));
  327. if( submit("TRRPD08004") ) { // 계좌번호 가져오기
  328. opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankno", model.getValue("/root/main/emplbankinfo/bankinfo/transfacntno"));
  329. opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankcode", model.getValue("/root/main/emplbankinfo/bankinfo/transfbankcd"));
  330. }
  331. opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankman", model.getValue("/root/main/detaillst/chulempdetaillst[1]/name"));
  332. }else if( cnt > 1 ){
  333. opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankno", "");
  334. opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankcode", "");
  335. opener.javascript.model.setValue("/root/main/grnt/grntlist1/bankman", "");
  336. }
  337. opener.model.refresh();
  338. window.close();
  339. ]]>
  340. </script>
  341. </button>
  342. <button id="button3" class="btn4_letter2" style="left:737px; top:565px; width:56px; height:22px; ">
  343. <caption>저장</caption>
  344. <script type="javascript" ev:event="DOMActivate">
  345. <![CDATA[
  346. if( grd_chullist.row == ""){
  347. messageBox("직원출장 신청내역을 선택하여주십시오.", "E999", "");
  348. return;
  349. }
  350. // model.setValue("/root/send/save/chulseq", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulseq"));
  351. // model.setValue("/root/send/save/chulgubun", model.getValue("/root/main/list/chulemplist[" + grd_chullist.row + "]/chulgubun"));
  352. model.setValue("/root/send/save/chullst" , grd_chullist.getUpdateData());
  353. model.setValue("/root/send/save/chuldetail" , dtg_chuldetaillst.getUpdateData());
  354. model.setValue("/root/send/tempchulseq", model.getValue("/root/send/srchchulseq"));
  355. if( submit("TXRPD08004") ){
  356. messageBox("저장되었습니다.", "I000", "");
  357. fGetChulEmpList();
  358. fGetChulEmpDetailList();
  359. grd_chullist.row = parseInt(model.getValue("/root/send/rownum"));
  360. grd_chullist.dispatch("onclick");
  361. }
  362. ]]>
  363. </script>
  364. </button>
  365. <caption id="caption4" class="search_name" style="left:710px; top:15px; width:68px; height:17px; ">기관 :</caption>
  366. <select1 id="radio1" ref="/root/send/instcd" appearance="full" cellspacing="2" cols="5" vcellspacing="3" overflow="visible" style="left:773px; top:14px; width:110px; height:20px; border-style:none; ">
  367. <choices>
  368. <item>
  369. <label>본원</label>
  370. <value>031</value>
  371. </item>
  372. <item>
  373. <label>칠곡</label>
  374. <value>032</value>
  375. </item>
  376. </choices>
  377. </select1>
  378. </group>
  379. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:500px; height:12px; ">직원출장 신청조회</caption>
  380. </xhtml:body>
  381. </xhtml:html>