SMRWD01300_월별주차료관리내역.xrw 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  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>SMRWD01300_월별주차료관리내역</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <carempl>
  12. <carempllist>
  13. <mngtinstcd/>
  14. </carempllist>
  15. </carempl>
  16. <carpaybase>
  17. <carpaybaselist/>
  18. </carpaybase>
  19. </list>
  20. </main>
  21. <send>
  22. <carempl>
  23. <ym/>
  24. <instcd/>
  25. <cargrde/>
  26. <emplno/>
  27. <emplnm/>
  28. <carno/>
  29. <stickerno1/>
  30. <stickerno2/>
  31. <yy/>
  32. <workgbn/>
  33. <preststatcd/>
  34. <deduyn/>
  35. <payappyn/>
  36. <stickerno/>
  37. </carempl>
  38. <carebase>
  39. <instcd/>
  40. <appdd/>
  41. <cargrde/>
  42. </carebase>
  43. <save>
  44. <carempllist/>
  45. </save>
  46. <payappsend>
  47. <instcd/>
  48. <payym/>
  49. <payitemcd/>
  50. </payappsend>
  51. <search>
  52. <name/>
  53. <searchflag>name</searchflag>
  54. <count>0</count>
  55. </search>
  56. </send>
  57. <temp>
  58. <checklist>
  59. <creatyn/>
  60. <sumyn/>
  61. <payappyn/>
  62. <bfcnt/>
  63. <afcnt/>
  64. </checklist>
  65. </temp>
  66. <init>
  67. <deduynlist>
  68. <label>공제제외여부</label>
  69. <value>Y</value>
  70. </deduynlist>
  71. <payappynlist>
  72. <label>전체</label>
  73. <value/>
  74. <label>반영</label>
  75. <value>Y</value>
  76. <label>미반영</label>
  77. <value>N</value>
  78. </payappynlist>
  79. </init>
  80. </root>
  81. </instance>
  82. <script type="javascript" ev:event="xforms-ready">
  83. <![CDATA[
  84. misfGridInit(grd_carempl);
  85. misfMsterDetailSet(grd_carempl,null, "TRRWD01301" ,"Y");
  86. grd_carempl.selectionMode = "byrows";
  87. grd_carempl.focusColor = "#ccffcc";
  88. // misfComboInstCdListMulti("cmb_instcd",getCurrentDate(),"","Y");
  89. misfComboComCdList('R0146', cmb_preststatcd,'Y');
  90. var curdate = getCurrentDate();
  91. model.setValue(ipt_ym.attribute("ref") , curdate.substr(0, 6));
  92. model.setValue(ipt_yy.attribute("ref") , curdate.substr(0, 4));
  93. model.setValue("/root/send/carempl/instcd" , getUserInfo("dutplceinstcd"));
  94. // rwcGridCarGradeBase(grd_carempl,"cargrde",getUserInfo("dutplceinstcd"),model.getValue(ipt_ym.attribute("ref")) + "1231", "A");
  95. rwcComboMngtinstBase(cmb_instcd,getUserInfo("dutplceinstcd"),model.getValue(ipt_yy.attribute("ref")));
  96. rwcComboCarGradeBase(cmb_cargrde,getUserInfo("dutplceinstcd"),model.getValue(ipt_yy.attribute("ref")) + "1231", "A", "Y");
  97. grd_carempl.dataHeight = 19;
  98. model.refresh();
  99. ]]>
  100. </script>
  101. <submission id="TXRWD01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  102. <submission id="TRRWD01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/carempl" resultref="/root/main/list/carempl"/>
  103. <submission id="TRRWD01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/carempl" resultref="/root/temp"/>
  104. <submission id="TXRWD01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/carempl" resultref="/root/temp"/>
  105. <submission id="TXRWZ00303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/payappsend" resultref="/root/paytemp"/>
  106. <submission id="TXRWD01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/temp"/>
  107. </model>
  108. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  109. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  110. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  111. <script type="javascript" src="../../../com/commonweb/js/utilHelper.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/paydedufactmngtweb/js/RWD001.js"/>
  116. <script type="javascript">
  117. <![CDATA[
  118. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  119. function fDefaultSetting() {
  120. model.setValue(grd_carempl.nodeset + "["+ (grd_carempl.row - grd_carempl.fixedRows + 1) + "]/mngtinstcd" , model.getValue(cmb_instcd.attribute("ref")));
  121. model.setValue(grd_carempl.nodeset + "["+ (grd_carempl.row - grd_carempl.fixedRows + 1) + "]/yy" , model.getValue(ipt_ym.attribute("ref")));
  122. model.refresh();
  123. }
  124. function fCheckSaveData()
  125. {
  126. if(model.getValue(ipt_ym.attribute("ref")).length== 0 )
  127. {
  128. messageBox("적용일자를 " ,"C002");
  129. model.setFocus("ipt_ym");
  130. return false;
  131. }
  132. for(var row = grd_carempl.fixedRows ; row < grd_carempl.rows ; row++)
  133. {
  134. if(grd_carempl.valueMatrix(row , grd_carempl.colRef("emplno")).length == 0)
  135. {
  136. if(grd_carempl.valueMatrix(row , grd_carempl.colRef("rregno")).length == 0)
  137. {
  138. messageBox("사원번호 또는 주민번호[사원이 아닌경우]를 " ,"C002");
  139. grd_carempl.row= row;
  140. grd_carempl.col= grd_carempl.colRef("emplno");
  141. grd_carempl.editCell();
  142. return false;
  143. }
  144. }
  145. if(grd_carempl.valueMatrix(row , grd_carempl.colRef("emplno")).length == 0 &&
  146. grd_carempl.valueMatrix(row , grd_carempl.colRef("rregno")).length > 0 &&
  147. isResidentNo(grd_carempl.valueMatrix(row, grd_carempl.colRef("rregno"))) == false)
  148. {
  149. messageBox("유효한 주민등록번호가 아닙니다","I");
  150. grd_carempl.row= row;
  151. grd_carempl.col = grd_carempl.colRef("rregno");
  152. grd_carempl.editCell();
  153. return false;
  154. }
  155. if(grd_carempl.valueMatrix(row , grd_carempl.colRef("mngtinstcd")).length == 0)
  156. {
  157. messageBox("대상기관을 " ,"C002");
  158. grd_carempl.row= row;
  159. grd_carempl.col= grd_carempl.colRef("mngtinstcd");
  160. grd_carempl.editCell();
  161. return false;
  162. }
  163. if(grd_carempl.valueMatrix(row , grd_carempl.colRef("deptnm")).length == 0)
  164. {
  165. messageBox("부서명을 " ,"C002");
  166. grd_carempl.row= row;
  167. grd_carempl.col= grd_carempl.colRef("deptnm");
  168. grd_carempl.editCell();
  169. return false;
  170. }
  171. if(grd_carempl.valueMatrix(row , grd_carempl.colRef("jobposnm")).length == 0)
  172. {
  173. messageBox("직위를 " ,"C002");
  174. grd_carempl.row= row;
  175. grd_carempl.col= grd_carempl.colRef("jobposnm");
  176. grd_carempl.editCell();
  177. return false;
  178. }
  179. if(grd_carempl.valueMatrix(row , grd_carempl.colRef("stickerno")).length == 0)
  180. {
  181. messageBox("스티커번호를 " ,"C002");
  182. grd_carempl.row= row;
  183. grd_carempl.col= grd_carempl.colRef("stickerno");
  184. grd_carempl.editCell();
  185. return false;
  186. }
  187. if(grd_carempl.valueMatrix(row , grd_carempl.colRef("cargrde")).length == 0)
  188. {
  189. messageBox("등급을 " ,"C002");
  190. grd_carempl.row= row;
  191. grd_carempl.col= grd_carempl.colRef("cargrde");
  192. grd_carempl.editCell();
  193. return false;
  194. }
  195. if(grd_carempl.valueMatrix(row , grd_carempl.colRef("carparkamt")).length == 0)
  196. {
  197. messageBox("주차요금을 " ,"C002");
  198. grd_carempl.row= row;
  199. grd_carempl.col= grd_carempl.colRef("carparkamt");
  200. grd_carempl.editCell();
  201. return false;
  202. }
  203. if(grd_carempl.valueMatrix(row , grd_carempl.colRef("carno1")).length == 0)
  204. {
  205. messageBox("앞 차량번호를 " ,"C002");
  206. grd_carempl.row= row;
  207. grd_carempl.col= grd_carempl.colRef("carno1");
  208. grd_carempl.editCell();
  209. return false;
  210. }
  211. if(grd_carempl.valueMatrix(row , grd_carempl.colRef("carno2")).length == 0)
  212. {
  213. messageBox("뒤 차량번호를 " ,"C002");
  214. grd_carempl.row= row;
  215. grd_carempl.col= grd_carempl.colRef("carno2");
  216. grd_carempl.editCell();
  217. return false;
  218. }
  219. }
  220. return true;
  221. }
  222. function fCheckRetrieveData()
  223. {
  224. if(model.getValue(ipt_ym.attribute("ref")).length== 0 )
  225. {
  226. messageBox("해당년도를 " ,"C002");
  227. model.setFocus("ipt_ym");
  228. return false;
  229. }
  230. return true;
  231. }
  232. //이름찾기
  233. function fSearch(pColRef, pValue, pErrorValue, pCount)
  234. {
  235. var endRow = grd_carempl.row;
  236. var endRows = grd_carempl.rows;
  237. var count = 0;
  238. var pStartRow = grd_carempl.fixedRows;
  239. if( (grd_carempl.row+1) == grd_carempl.rows)
  240. {
  241. pStartRow = grd_carempl.fixedRows;
  242. }else
  243. {
  244. pStartRow = grd_carempl.row+1;
  245. }
  246. for(var i = grd_carempl.fixedRows; i < grd_carempl.rows; i++)
  247. {
  248. if(pValue == grd_carempl.valueMatrix(i, grd_carempl.colRef(pColRef)))
  249. {
  250. count++;
  251. }
  252. }
  253. pCount.value = count;
  254. for(var i = pStartRow; i <= endRows; i++)
  255. {
  256. if(pValue == grd_carempl.valueMatrix(i, grd_carempl.colRef(pColRef)))
  257. {
  258. grd_carempl.select(i, 3) = true;
  259. grd_carempl.row = i;
  260. return;
  261. }
  262. if(i == grd_carempl.rows)
  263. {
  264. endRows = endRow;
  265. i=0;
  266. }else if(endRow == i)
  267. {
  268. messageBox("조회한 " + cmb_search.label + "[" + pErrorValue + "]" + "가 없습니다.", "");
  269. return;
  270. }
  271. }
  272. }
  273. ]]>
  274. </script>
  275. </xhtml:head>
  276. <xhtml:body>
  277. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  278. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">월별주차료관리내역</caption>
  279. </group>
  280. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  281. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  282. <button id="btn_search" class="btn1_letter2" style="left:1132px; top:30px; width:56px; height:22px; ">
  283. <caption>조회</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. var updtdata = getGridUpdateData(grd_carempl);
  287. if (updtdata != "") {
  288. var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
  289. if (save_val == "6") {
  290. btn_save.dispatch("DOMActivate");
  291. }
  292. }
  293. if(fCheckRetrieveData() == false)return;
  294. model.resetInstanceNode("/root/main/list/telpaybase/telpaybaselist");
  295. grd_carempl.clearStatus();
  296. misfMsterDetailRetrieve();
  297. grd_carempl.subtotalPosition = "below";
  298. grd_carempl.multiTotals = true;
  299. grd_carempl.subtotal("clear", 0, 0);
  300. grd_carempl.subtotal("count",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("name"));
  301. grd_carempl.subtotal("sum",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("instsuppamt"),"#,###","background-color:#99ff99",grd_carempl.colRef("rownum"),"계");
  302. grd_carempl.subtotal("sum",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("carparkamt"),"#,###","background-color:#99ff99",grd_carempl.colRef("rownum"),"계");
  303. grd_carempl.subtotal("sum",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("exptamt"),"#,###","background-color:#99ff99",grd_carempl.colRef("rownum"),"계");
  304. grd_carempl.subtotal("sum",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("addamt"),"#,###","background-color:#99ff99",grd_carempl.colRef("rownum"),"계");
  305. grd_carempl.subtotal("sum",grd_carempl.colRef("mngtinstcd"),grd_carempl.colRef("deduamt"),"#,###","background-color:#99ff99",grd_carempl.colRef("rownum"),"계");
  306. ]]>
  307. </script>
  308. </button>
  309. <line id="line13" class="line_4" style="x1:1124px; y1:20px; x2:1124px; y2:59px; "/>
  310. <line id="line1" class="line_1" style="x1:0px; y1:95px; x2:1189px; y2:95px; "/>
  311. <select1 id="cmb_instcd" ref="/root/send/carempl/instcd" class="combo_default" appearance="minimal" style="left:313px; top:19px; width:145px; height:19px; ">
  312. <choices>
  313. <itemset>
  314. <label/>
  315. <value/>
  316. </itemset>
  317. </choices>
  318. <script type="javascript" ev:event="xforms-value-changed">
  319. <![CDATA[
  320. rwcComboCarGradeBase(cmb_cargrde,cmb_instcd.value,model.getValue(ipt_yy.attribute("ref")) + "1231", "A","Y");
  321. ]]>
  322. </script>
  323. </select1>
  324. <caption id="caption2" class="search_name" style="left:10px; top:18px; width:93px; height:17px; ">해당 년월:</caption>
  325. <datagrid id="grd_carempl" nodeset="/root/main/list/carempl/carempllist" caption="순번^사번^성명^연락처^근무상태^발급일자^직위^급여기관^부서명^근무지부서명^스티커번호^차량종류^차량번호^차량번호^등급^등급^기관보조액^월기본&#xA;공제액^급여공제여부^제외액^추가액^공제대상액^제외&#xA;여부^반영&#xA;여부|순번^사번^성명^연락처^근무상태^발급일자^직위^급여기관^부서명^근무지부서명^스티커번호^차량종류^번호1^번호2^[A]^[B]^기관보조액^월기본&#xA;공제액^급여공제여부^제외액^추가액^공제대상액^제외&#xA;여부^반영&#xA;여부" colsep="^" colwidth="40, 58, 56, 78, 65, 71, 73, 87, 80, 81, 74, 55, 50, 50, 52, 50, 70, 60, 35, 54, 54, 72, 37, 37, 100, 100, 100" dataheight="25" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" selectionmode="byrow" tooltip="true" style="left:0px; top:100px; width:1190px; height:635px; ">
  326. <col ref="rownum"/>
  327. <col ref="emplno" type="output" style="text-align:center; "/>
  328. <col ref="name" style="text-align:center; "/>
  329. <col ref="mpphonno"/>
  330. <col ref="preststatnm" style="text-align:center; "/>
  331. <col ref="issdd" format="yyyy-mm-dd" style="text-align:center; "/>
  332. <col ref="jobposnm" type="output"/>
  333. <col ref="instnm"/>
  334. <col ref="deptnm" type="output"/>
  335. <col ref="dutplcedeptnm"/>
  336. <col ref="stickerno" type="output" format="99-9999" maxlength="6"/>
  337. <col ref="carkind" type="output"/>
  338. <col ref="carno1" type="output"/>
  339. <col ref="carno2" type="output"/>
  340. <col disabled="true" ref="cargrde" style="text-align:center; "/>
  341. <col disabled="true" ref="cargrdedetl" style="text-align:center; "/>
  342. <col ref="instsuppamt" format="(-)#,###" style="text-align:right; "/>
  343. <col ref="carparkamt" format="(-)#,###" style="text-align:right; "/>
  344. <col ref="payyn" style="text-align:center; "/>
  345. <col ref="exptamt" type="input" format="(-)#,###" style="text-align:right; "/>
  346. <col ref="addamt" type="input" format="(-)#,###" style="text-align:right; "/>
  347. <col ref="deduamt" format="(-)#,###" style="text-align:right; "/>
  348. <col checkvalue="Y,N" ref="deduyn" type="checkbox"/>
  349. <col ref="payappyn" style="text-align:center; "/>
  350. <col ref="ym" visibility="hidden"/>
  351. <col ref="mngtinstcd" visibility="hidden"/>
  352. <col ref="rtndd" visibility="hidden"/>
  353. <script type="javascript" ev:event="xforms-value-changed">
  354. <![CDATA[
  355. var deduamt =0;
  356. var carparkamt = grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("carparkamt")) ;
  357. var exptamt = grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("exptamt")) ;
  358. var addamt = grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("addamt")) ;
  359. var deduyn = grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("deduyn")) ;
  360. if(deduyn =='Y'){
  361. grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("exptamt")) =0;
  362. grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("addamt"))=0;
  363. grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("deduamt")) =0;
  364. }else{
  365. deduamt =parseFloat(carparkamt)-parseFloat(exptamt)+parseFloat(addamt);
  366. grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("deduamt"))=deduamt;
  367. }
  368. if (grd_carempl.colAttribute(grd_carempl.col,"ref") == "exptamt" ||grd_carempl.colAttribute(grd_carempl.col,"ref") == "addamt" ) {
  369. if(deduyn =='Y'){
  370. deduamt='0';
  371. }else{
  372. deduamt =parseFloat(carparkamt)-parseFloat(exptamt)+parseFloat(addamt);
  373. }
  374. grd_carempl.valueMatrix(grd_carempl.row, grd_carempl.colRef("deduamt"))=deduamt;
  375. }
  376. ]]>
  377. </script>
  378. <script type="javascript" ev:event="onaftersort">
  379. <![CDATA[
  380. grd_carempl.gridToInstance();
  381. ]]>
  382. </script>
  383. </datagrid>
  384. <input id="ipt_ym" ref="/root/send/carempl/ym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:103px; top:19px; width:95px; height:19px; ">
  385. <script type="javascript" ev:event="xforms-value-changed">
  386. <![CDATA[
  387. rwcComboCarGradeBase(cmb_cargrde,model.getValue(cmb_instcd.attribute("ref")),model.getValue(ipt_yy.attribute("ref")) + "1231","A","Y");
  388. btn_search.dispatch("DOMActivate");
  389. ]]>
  390. </script>
  391. </input>
  392. <select1 id="cmb_cargrde" ref="/root/send/carempl/cargrde" class="combo_default" appearance="minimal" style="left:570px; top:45px; width:95px; height:19px; ">
  393. <choices>
  394. <itemset>
  395. <label/>
  396. <value/>
  397. </itemset>
  398. </choices>
  399. </select1>
  400. <caption id="caption1" class="search_name" style="left:487px; top:46px; width:80px; height:17px; ">등 급:</caption>
  401. <button id="btn_emplno" class="icon_search" style="left:827px; top:45px; width:16px; height:16px; ">
  402. <caption/>
  403. <script type="javascript" ev:event="DOMActivate">
  404. <![CDATA[
  405. var recv_list = "emplno,emplnm" ;
  406. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
  407. model.refresh();
  408. ]]>
  409. </script>
  410. </button>
  411. <caption id="caption7" class="search_name" style="left:690px; top:45px; width:63px; height:17px; ">사번 :</caption>
  412. <input id="ipt_emplnos" ref="/root/send/carempl/emplno" class="input_default" style="left:755px; top:45px; width:70px; height:19px; ">
  413. <script type="javascript" ev:event="xforms-value-changed">
  414. <![CDATA[
  415. var recv_list = "emplno,emplnm" ;
  416. rpbfValidationCheck("EMPLNO", recv_list);
  417. model.refresh();
  418. ]]>
  419. </script>
  420. </input>
  421. <input id="ipt_emplnms" ref="/root/send/carempl/emplnm" class="input_default" style="left:847px; top:45px; width:100px; height:19px; ">
  422. <script type="javascript" ev:event="xforms-value-changed">
  423. <![CDATA[
  424. var recv_list = "emplno,emplnm" ;
  425. rpbfValidationCheck("EMPLNM", recv_list);
  426. model.refresh();
  427. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  428. btn_search.dispatch("DOMActivate");
  429. }
  430. ]]>
  431. </script>
  432. </input>
  433. <caption id="caption3" class="search_name" style="left:215px; top:20px; width:96px; height:17px; ">관 리 기 관:</caption>
  434. <caption id="caption4" class="search_name" style="left:10px; top:45px; width:88px; height:17px; ">차량번호2:</caption>
  435. <input id="ipt_carno" ref="/root/send/carempl/carno" maxlength="4" format="9999" style="left:103px; top:45px; width:92px; height:19px; "/>
  436. <caption id="caption5" class="search_name" style="left:215px; top:45px; width:104px; height:17px; ">스티커번호: :</caption>
  437. <input id="ipt_stickerno1" ref="/root/send/carempl/stickerno1" maxlength="2" format="99" style="left:312px; top:45px; width:45px; height:19px; "/>
  438. <input id="ipt_stickerno2" ref="/root/send/carempl/stickerno2" maxlength="4" format="9999" style="left:374px; top:45px; width:85px; height:19px; "/>
  439. <caption id="caption8" style="left:361px; top:46px; width:10px; height:20px; ">-</caption>
  440. <input id="ipt_yy" ref="/root/send/carempl/yy" visibility="hidden" style="left:465px; top:45px; width:20px; height:19px; "/>
  441. <caption id="caption9" class="search_name" style="left:487px; top:20px; width:81px; height:17px; ">근무상태:</caption>
  442. <select1 id="cmb_preststatcd" ref="/root/send/carempl/preststatcd" class="combo_s_essential" appearance="minimal" style="left:570px; top:19px; width:95px; height:19px; ">
  443. <choices>
  444. <itemset>
  445. <label/>
  446. <value/>
  447. </itemset>
  448. </choices>
  449. </select1>
  450. <select id="ckb_deduyn" ref="/root/send/carempl/deduyn" class="checkbox_search" overflow="visible" appearance="full" style="left:905px; top:20px; width:125px; height:16px; ">
  451. <choices>
  452. <itemset nodeset="/root/init/deduynlist">
  453. <label ref="label"/>
  454. <value ref="value"/>
  455. </itemset>
  456. </choices>
  457. </select>
  458. <select1 id="cmb_payappyn" ref="root/send/carempl/payappyn" class="combo_s_essential" appearance="minimal" style="left:801px; top:19px; width:95px; height:19px; ">
  459. <choices>
  460. <itemset nodeset="/root/init/payappynlist">
  461. <label ref="label"/>
  462. <value ref="value"/>
  463. </itemset>
  464. </choices>
  465. </select1>
  466. <caption id="caption10" class="search_name" style="left:690px; top:20px; width:114px; height:17px; ">급여반영여부:</caption>
  467. <button id="btn_exceldetail" class="btn2_letter4" style="left:1120px; top:74px; width:64px; height:19px; ">
  468. <caption>엑셀저장</caption>
  469. <script type="javascript" ev:event="DOMActivate">
  470. <![CDATA[
  471. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  472. if (fileName != "")
  473. {
  474. grd_carempl.saveExcel(fileName, "sheetname:sheet1;colhiddenextend:false");
  475. }
  476. ]]>
  477. </script>
  478. </button>
  479. <output id="opt_count" ref="/root/send/search/count" class="output_fix" style="left:810px; top:75px; width:35px; height:19px; color:#ff0000; text-align:center; "/>
  480. <select1 id="cmb_search" ref="/root/send/search/searchflag" appearance="minimal" style="left:608px; top:75px; width:82px; height:19px; text-align:center; ">
  481. <choices>
  482. <item>
  483. <label>이름</label>
  484. <value>name</value>
  485. </item>
  486. <item>
  487. <label>스티커번호</label>
  488. <value>stickerno</value>
  489. </item>
  490. <item>
  491. <label>차량번호</label>
  492. <value>carno2</value>
  493. </item>
  494. </choices>
  495. <script type="javascript" ev:event="xforms-value-changed">
  496. <![CDATA[
  497. if(cmb_search.value == "stickerno")
  498. {
  499. ipt_search.attribute("format") = "99-9999999";
  500. }else if(cmb_search.value == "carno2")
  501. {
  502. ipt_search.attribute("format") = "9999999999";
  503. }else
  504. {
  505. ipt_search.attribute("format") = "";
  506. }
  507. ipt_search.value = "";
  508. opt_count.value = 0;
  509. model.setFocus("ipt_search");
  510. ]]>
  511. </script>
  512. </select1>
  513. <caption id="caption11" class="search_name" style="left:527px; top:75px; width:85px; height:17px; ">Search :</caption>
  514. <input id="ipt_search" ref="/root/send/search/name" class="input_default" imemode="hangul" style="left:693px; top:75px; width:115px; height:19px; text-align:center; ">
  515. <script type="javascript" ev:event="onkeypress">
  516. <![CDATA[
  517. if(event.keyCode == 13 || event.keyCode == 9 )
  518. {
  519. model.setFocus("grd_carempl");
  520. var pErrorValue = ipt_search.currentText;
  521. ipt_search.refresh();
  522. fSearch(cmb_search.value, ipt_search.value, pErrorValue, opt_count);
  523. model.setFocus("ipt_search");
  524. }
  525. ]]>
  526. </script>
  527. </input>
  528. </group>
  529. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  530. <button id="btn_save" class="btn4_letter2" style="left:1135px; top:3px; width:56px; height:22px; ">
  531. <caption>저장</caption>
  532. <script type="javascript" ev:event="DOMActivate">
  533. <![CDATA[
  534. var updtdata = getGridUpdateData(grd_carempl);
  535. if (updtdata == "" ) {
  536. messageBox("변경된 데이터가","I004");
  537. return;
  538. }
  539. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  540. if ( retMes != 6) {
  541. return;
  542. }
  543. model.setValue("/root/send/carempl/stickerno",'');
  544. submit("TRRWD01302");
  545. var payappyn =model.getValue("/root/temp/checklist/payappyn");
  546. if(payappyn =='Y'){
  547. messageBox("급여이체가 완료된 자료는 저장할 수 ","I004");
  548. return;
  549. }
  550. misfSave("TXRWD01302");
  551. //if (model.getValue(gvErrorMsgPath + "/type") != "error")misfMsterDetailRetrieve();
  552. ]]>
  553. </script>
  554. </button>
  555. <button id="btn_init" class="btn4_letter3" style="left:772px; top:3px; width:68px; height:22px; ">
  556. <caption>초기화</caption>
  557. <script type="javascript" ev:event="DOMActivate">
  558. <![CDATA[
  559. misfGridInit(grd_carempl);
  560. ]]>
  561. </script>
  562. </button>
  563. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  564. <button id="btn_sumcancel" class="btn4_letter6" style="left:948px; top:3px; width:104px; height:22px; ">
  565. <caption>집계자료취소</caption>
  566. <script type="javascript" ev:event="DOMActivate">
  567. <![CDATA[
  568. if(!isRequiredControls("ipt_telym"))return;
  569. var retMes = messageBox("집계자료를 취소하시겠습니까?", "Q999");
  570. if ( retMes != 6) {
  571. return;
  572. }
  573. model.setValue("/root/send/carempl/stickerno",'');
  574. submit("TRRWD01302");
  575. var sumyn= model.getValue("/root/temp/checklist/sumyn");
  576. var payappyn =model.getValue("/root/temp/checklist/payappyn");
  577. if(sumyn !='Y'){
  578. messageBox("취소할 자료가 ","I004");
  579. return;
  580. }
  581. if(payappyn =='Y'){
  582. messageBox("급여이체가 완료된 자료는 취소 할수 ","I004");
  583. return;
  584. }
  585. model.setValue("/root/send/carempl/workgbn","D");
  586. misfSave("TXRWD01301");
  587. if (model.getValue(gvErrorMsgPath + "/type") != "error")misfMsterDetailRetrieve();
  588. ]]>
  589. </script>
  590. </button>
  591. <button id="btn_sumsave" class="btn4_letter6" style="left:842px; top:3px; width:104px; height:22px; ">
  592. <caption>집계자료생성</caption>
  593. <script type="javascript" ev:event="DOMActivate">
  594. <![CDATA[
  595. if(!isRequiredControls("ipt_telym"))return;
  596. var retMes = messageBox("집계자료를 생성 하시겠습니까?", "Q999");
  597. if ( retMes != 6) {
  598. return;
  599. }
  600. model.setValue("/root/send/carempl/stickerno",'');
  601. submit("TRRWD01302");
  602. var creatyn=model.getValue("/root/temp/checklist/creatyn");
  603. var sumyn= model.getValue("/root/temp/checklist/sumyn");
  604. var payappyn =model.getValue("/root/temp/checklist/payappyn");
  605. if(creatyn!='Y'){
  606. messageBox("집계할 자료가 ","I004");
  607. return;
  608. }
  609. if(sumyn =='Y'){
  610. messageBox("집계이체 자료가 이미","I001");
  611. return;
  612. }
  613. model.setValue("/root/send/carempl/workgbn","C");
  614. misfSave("TXRWD01301");
  615. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  616. messageBox("집계생성작업이","I001");
  617. misfMsterDetailRetrieve();
  618. }
  619. ]]>
  620. </script>
  621. </button>
  622. <button id="btn_paysave" class="btn4_letter4" style="left:1053px; top:3px; width:80px; height:22px; ">
  623. <caption>급여이체</caption>
  624. <script type="javascript" ev:event="DOMActivate">
  625. <![CDATA[
  626. if(!isRequiredControls("ipt_ym"))return;
  627. var retMes = messageBox("자료를 급여이체하시겠습니까?", "Q999");
  628. if ( retMes != 6) {
  629. return;
  630. }
  631. model.setValue("/root/send/carempl/stickerno",'');
  632. submit("TRRWD01302");
  633. var sumyn= model.getValue("/root/temp/checklist/sumyn");
  634. var payappyn =model.getValue("/root/temp/checklist/payappyn");
  635. var bfcnt =model.getValue("/root/temp/checklist/bfcnt");
  636. var afcnt =model.getValue("/root/temp/checklist/afcnt");
  637. if(sumyn !='Y'){
  638. messageBox("이체할 자료가 ","I004");
  639. return;
  640. }
  641. /* if(bfcnt != afcnt){
  642. messageBox("집계자료가 생성되지 않은 기관이 있어 급여이체를 할 수 ","I004");
  643. return;
  644. }*/
  645. if(payappyn =='Y'){
  646. messageBox("급여이체 자료가 이미","I001");
  647. return;
  648. }
  649. var instcd = getUserInfo("dutplceinstcd");
  650. var payym = model.getValue("/root/send/carempl/ym");
  651. var payitemcd = "60070";
  652. model.setValue("/root/send/payappsend/instcd",cmb_instcd.value);
  653. model.setValue("/root/send/payappsend/payym",payym);
  654. model.setValue("/root/send/payappsend/payitemcd",payitemcd);
  655. misfSave("TXRWZ00303");
  656. if (model.getValue(gvErrorMsgPath + "/type") != "error"){
  657. messageBox("급여이체작업이","I001");
  658. misfMsterDetailRetrieve();
  659. }
  660. ]]>
  661. </script>
  662. </button>
  663. </group>
  664. </xhtml:body>
  665. </xhtml:html>