SMRWD00700_개인별전화내역관리.xrw 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616
  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>SMRWD00700_개인별통화내역</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <telempl>
  12. <telempllist/>
  13. </telempl>
  14. <telpaybase>
  15. <telpaybaselist/>
  16. </telpaybase>
  17. </list>
  18. </main>
  19. <send>
  20. <telempl>
  21. <instcd/>
  22. <teldd/>
  23. <appidflag/>
  24. <emplno/>
  25. <emplnm/>
  26. <unitcostbase/>
  27. <appdd/>
  28. </telempl>
  29. <save>
  30. <telempllist/>
  31. </save>
  32. </send>
  33. <temp>
  34. <checklist>
  35. <sumyn/>
  36. </checklist>
  37. </temp>
  38. <cost>
  39. <comcd>
  40. <comcodelist>
  41. <unitcostbase/>
  42. </comcodelist>
  43. </comcd>
  44. </cost>
  45. </root>
  46. </instance>
  47. <!--<bind id="mntamt" ref="/root/main/list/telempl/telempllist/telamt" calculate="../telmnt *../mntcost"/>-->
  48. <script type="javascript" ev:event="xforms-ready">
  49. <![CDATA[
  50. misfGridInit(grd_telempl);
  51. misfMsterDetailSet(grd_telempl,null, "TRRWD00701" ,"Y");
  52. misfComboComCdListMulti("Z0007,R0299,R0300,R0299","cmb_instcd,grd_telempl.appidflag,grd_telempl.telcostflag,cmb_appidflag");
  53. misfComboCopyItemSet(cmb_instcd, "", grd_telempl, "dutplceinst");
  54. var curdate = getCurrentDate();
  55. var cvtdate = curdate.toDate("YYYYMMDD");
  56. model.refresh();
  57. cmb_appidflag.value="01";
  58. model.setValue(ipt_teldd.attribute("ref") , cvtdate.getAddDate(0,"M").getDateFormat("YYYYMMDD"));
  59. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  60. rwcGridUnitCostBase(grd_telempl,"unitcostbase",model.getValue(cmb_instcd.attribute("ref")),model.getValue(ipt_teldd.attribute("ref")));
  61. ]]>
  62. </script>
  63. <submission id="TRRWD00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/telempl" resultref="/root/main/list/telempl"/>
  64. <submission id="TRRWD00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/telempl" resultref="/root/main/list/telpaybase"/>
  65. <submission id="TXRWD00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save" resultref="/root/hidden/temp"/>
  66. <submission id="TRRWD01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/telempl" resultref="/root/temp"/>
  67. </model>
  68. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  70. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  71. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  72. <script type="javascript" src="../../../mis/paybaseinfomngtweb/js/RWC001.js"/>
  73. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  74. <script type="javascript" src="../../../mis/paydedufactmngtweb/js/RWD001.js"/>
  75. <script type="javascript">
  76. <![CDATA[
  77. function fInitialize() {
  78. model.removeNodeset("/root/main/list/telempl/telempllist");
  79. model.refresh();
  80. //model.setValue("/root/main/disadiffpayitem/notiym", curDate.getDateFormat('YYYYMM'));
  81. }
  82. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  83. function fDefaultSetting() {
  84. model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/instcd" , model.getValue(cmb_instcd.attribute("ref")));
  85. model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/teldd" , model.getValue(ipt_teldd.attribute("ref")));
  86. model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/appidflag" , model.getValue(cmb_appidflag.attribute("ref")));
  87. model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/unitcostbase" , "");
  88. model.refresh();
  89. }
  90. function fCheckSaveData()
  91. {
  92. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  93. {
  94. messageBox("기관코드를 " ,"C002");
  95. model.setFocus("cmb_instcd");
  96. return false;
  97. }
  98. if(model.getValue(ipt_teldd.attribute("ref")).length== 0 )
  99. {
  100. messageBox("적용일자를 " ,"C002");
  101. model.setFocus("ipt_teldd");
  102. return false;
  103. }
  104. for(var row = grd_telempl.fixedRows ; row < grd_telempl.rows ; row++)
  105. {
  106. if(grd_telempl.valueMatrix(row , grd_telempl.colRef("teldd")).length == 0)
  107. {
  108. messageBox("통화일자를 " ,"C002");
  109. grd_telempl.row= row;
  110. grd_telempl.col= grd_telempl.colRef("teldd");
  111. grd_telempl.editCell();
  112. return false;
  113. }
  114. if(grd_telempl.valueMatrix(row , grd_telempl.colRef("appidflag")).length == 0)
  115. {
  116. messageBox("신청인구분을 " ,"C002");
  117. grd_telempl.row= row;
  118. grd_telempl.col= grd_telempl.colRef("appidflag");
  119. grd_telempl.editCell();
  120. return false;
  121. }
  122. if(grd_telempl.valueMatrix(row , grd_telempl.colRef("emplno")).length == 0)
  123. {
  124. messageBox("사번을 " ,"C002");
  125. grd_telempl.row= row;
  126. grd_telempl.col= grd_telempl.colRef("emplno");
  127. grd_telempl.editCell();
  128. return false;
  129. }
  130. if(grd_telempl.valueMatrix(row , grd_telempl.colRef("telcostflag")).length == 0)
  131. {
  132. messageBox("통화료구분을 " ,"C002");
  133. grd_telempl.row= row;
  134. grd_telempl.col= grd_telempl.colRef("telcostflag");
  135. grd_telempl.editCell();
  136. return false;
  137. }
  138. if(grd_telempl.valueMatrix(row , grd_telempl.colRef("unitcostbase")).length == 0)
  139. {
  140. messageBox("요금기준을 " ,"C002");
  141. grd_telempl.row= row;
  142. grd_telempl.col= grd_telempl.colRef("unitcostbase");
  143. grd_telempl.editCell();
  144. return false;
  145. }
  146. if(grd_telempl.valueMatrix(row , grd_telempl.colRef("telno")).length == 0)
  147. {
  148. messageBox("통화번호를 " ,"C002");
  149. grd_telempl.row= row;
  150. grd_telempl.col= grd_telempl.colRef("telno");
  151. grd_telempl.editCell();
  152. return false;
  153. }
  154. if(grd_telempl.valueMatrix(row , grd_telempl.colRef("telmnt")).length == 0)
  155. {
  156. messageBox("통화분을 " ,"C002");
  157. grd_telempl.row= row;
  158. grd_telempl.col= grd_telempl.colRef("telmnt");
  159. grd_telempl.editCell();
  160. return false;
  161. }
  162. if(grd_telempl.valueMatrix(row , grd_telempl.colRef("telamt")).length == 0)
  163. {
  164. messageBox("통화금액을 " ,"C002");
  165. grd_telempl.row= row;
  166. grd_telempl.col= grd_telempl.colRef("telamt");
  167. grd_telempl.editCell();
  168. return false;
  169. }
  170. }
  171. return true;
  172. }
  173. function fCheckRetrieveData()
  174. {
  175. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  176. {
  177. messageBox("기관코드를 " ,"C002");
  178. model.setFocus("cmb_instcd");
  179. return false;
  180. }
  181. if(model.getValue(ipt_teldd.attribute("ref")).length== 0 )
  182. {
  183. messageBox("통화일자를 " ,"C002");
  184. model.setFocus("ipt_teldd");
  185. return false;
  186. }
  187. if(model.getValue(cmb_appidflag.attribute("ref")).length== 0 )
  188. {
  189. messageBox("신청인구분을 " ,"C002");
  190. model.setFocus("cmb_appidflag");
  191. return false;
  192. }
  193. return true;
  194. }
  195. function fTeleAmtSet(str){
  196. if (grd_telempl.col == grd_telempl.colRef("unitcostbase") || str =="A")
  197. {
  198. //요금기준선택시 선택한 요금기준에 해당하는 기준정보를 가져온다
  199. var unitcostbase = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("unitcostbase"));
  200. if(unitcostbase.length > 0)
  201. {
  202. grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telmnt"))="";
  203. grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telamt"))="";
  204. model.removenode("/root/main/list/telpaybase/telpaybaselist");
  205. model.makeNode("/root/main/list/telpaybase/telpaybaselist");
  206. model.setValue("/root/send/telempl/unitcostbase" , unitcostbase);
  207. model.setValue("/root/send/telempl/appdd" , model.getValue(ipt_teldd.attribute("ref")));
  208. submit("TRRWD00601");
  209. if(model.getValue("/root/main/list/telpaybase/telpaybaselist/unitcostbase").length > 0)
  210. {
  211. model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/mntcost", model.getValue("/root/main/list/telpaybase/telpaybaselist/mntcost"));
  212. model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/calmthd", model.getValue("/root/main/list/telpaybase/telpaybaselist/calmthd"));
  213. model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/disccost", model.getValue("/root/main/list/telpaybase/telpaybaselist/disccost"));
  214. if(model.getValue("/root/main/list/telpaybase/telpaybaselist/copyyn") == "Y")
  215. {
  216. var data = model.getValue("/root/main/list/telpaybase/telpaybaselist/unitcostbase");
  217. model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/telarea",data);
  218. model.recalculate();
  219. }
  220. if(model.getValue("/root/main/list/telpaybase/telpaybaselist/disccost").length > 0 &&
  221. model.getValue("/root/main/list/telpaybase/telpaybaselist/disccost") > 0)
  222. {
  223. model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/discyn", "Y");
  224. }else{
  225. grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("discyn"))="N";
  226. }
  227. grd_telempl.row= grd_telempl.row;
  228. grd_telempl.col = grd_telempl.colRef("telmnt");
  229. model.refresh();
  230. grd_telempl.editCell();
  231. }
  232. }
  233. }
  234. else if (grd_telempl.col == grd_telempl.colRef("telmnt") || grd_telempl.col == grd_telempl.colRef("telamt") || grd_telempl.col == grd_telempl.colRef("mntcost") )
  235. {
  236. //bind id="telamt" ref="/root/main/list/telempl/telempllist/telamt" calculate="../telmnt *../mntcost"/>-->
  237. var telmnt = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telmnt"));
  238. var mntcost = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("mntcost"));
  239. var discyn = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("discyn"));
  240. var disccost = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("disccost"));
  241. if(grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("calmthd")) == "01")
  242. {
  243. var telamt = telmnt * mntcost
  244. if(discyn =='Y')telamt = telmnt * disccost ;
  245. model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/telamt", telamt);
  246. model.refresh();
  247. }
  248. }
  249. else if (grd_telempl.col == grd_telempl.colRef("discyn"))
  250. {
  251. var discyn = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("discyn"));
  252. var unitcostbase = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("unitcostbase"));
  253. var telmnt = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telmnt"));
  254. var calmthd = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("calmthd"));
  255. var telamt = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telamt"));
  256. model.removenode("/root/main/list/telpaybase/telpaybaselist");
  257. model.makeNode("/root/main/list/telpaybase/telpaybaselist");
  258. model.setValue("/root/send/telempl/unitcostbase" , unitcostbase);
  259. submit("TRRWD00601");
  260. if(model.getValue("/root/main/list/telpaybase/telpaybaselist/unitcostbase").length > 0)
  261. {
  262. var mntcost = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("mntcost"));
  263. var disccost = model.getValue("/root/main/list/telpaybase/telpaybaselist/disccost");
  264. if(calmthd == "01")
  265. {
  266. telamt = telmnt * mntcost;
  267. if(discyn == "Y")
  268. {
  269. if(disccost > 0)
  270. {
  271. telamt = telmnt * disccost;
  272. model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/disccost",disccost);
  273. }else{
  274. telamt = telmnt * mntcost;
  275. grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("discyn"))="N";
  276. }
  277. }
  278. else
  279. {
  280. //model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/disccost","0");
  281. }
  282. model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/telamt",telamt);
  283. }
  284. else
  285. {
  286. if(discyn == "N")model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/disccost","0");
  287. else model.setValue(grd_telempl.nodeset + "[" + (grd_telempl.row - grd_telempl.fixedRows + 1)+ "]/disccost",disccost);
  288. }
  289. }
  290. model.refresh();
  291. }
  292. }
  293. ]]>
  294. </script>
  295. </xhtml:head>
  296. <xhtml:body>
  297. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  298. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">개인별전화내역관리</caption>
  299. </group>
  300. <group id="group2" scroll="auto" style="left:0px; top:38; width:1195px; height:744px; ">
  301. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  302. <button id="btn_search" class="btn1_letter2" style="left:1128px; top:16px; width:56px; height:22px; ">
  303. <caption>조회</caption>
  304. <script type="javascript" ev:event="DOMActivate">
  305. <![CDATA[
  306. var updtdata = getGridUpdateData(grd_telempl);
  307. if (updtdata != "") {
  308. var save_val = messageBox("변경된 자료가 존재 합니다. ", "Q002");
  309. if (save_val == "6") {
  310. btn_save.dispatch("DOMActivate");
  311. }
  312. }
  313. if(fCheckRetrieveData() == false)return;
  314. model.resetInstanceNode("/root/main/list/telpaybase/telpaybaselist");
  315. misfMsterDetailRetrieve();
  316. ]]>
  317. </script>
  318. </button>
  319. <line id="line13" class="line_4" style="x1:1121px; y1:16px; x2:1121px; y2:38px; "/>
  320. <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:1194px; y2:72px; "/>
  321. <button id="btn_grdaddpaydedulist" class="btn2_letter3" style="left:1082px; top:50px; width:53px; height:19px; ">
  322. <caption>행추가</caption>
  323. <script type="javascript" ev:event="DOMActivate">
  324. <![CDATA[
  325. misfGridIUD(grd_telempl, "A");
  326. fDefaultSetting((grd_telempl.row - grd_telempl.fixedRows + 1));
  327. cmb_unitcostbase.selectedindex= 0;
  328. var unitcostbase = cmb_unitcostbase.value;
  329. grd_telempl.valueMatrix(grd_telempl.row,grd_telempl.colRef("unitcostbase"))=unitcostbase;
  330. var unitcostbase = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("unitcostbase"));
  331. fTeleAmtSet("A");
  332. grd_telempl.valueMatrix(grd_telempl.row,grd_telempl.colRef("telcostflag"))="01";
  333. grd_telempl.valueMatrix(grd_telempl.row,grd_telempl.colRef("appidflag"))="01";
  334. ]]>
  335. </script>
  336. </button>
  337. <button id="btn_grddelpaydedulist" class="btn2_letter3" style="left:1138px; top:50px; width:53px; height:19px; ">
  338. <caption>행삭제</caption>
  339. <script type="javascript" ev:event="DOMActivate">
  340. <![CDATA[
  341. misfGridIUD(grd_telempl, "D");
  342. ]]>
  343. </script>
  344. </button>
  345. <select1 id="cmb_instcd" ref="/root/send/telempl/instcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:785px; top:20px; width:40px; height:19px; ">
  346. <choices>
  347. <itemset>
  348. <label/>
  349. <value/>
  350. </itemset>
  351. </choices>
  352. </select1>
  353. <caption id="caption2" class="search_name" style="left:7px; top:18px; width:93px; height:17px; ">통화일자:</caption>
  354. <datagrid id="grd_telempl" nodeset="/root/main/list/telempl/telempllist" caption="순번^통화일자^신청인구분^사번^성명^근무기관^근무지부서^통화료구분^요금기준^통화지역^통화번호^할인^통화분^할인단가^단가^금액" colsep="^" colwidth="56, 100, 67, 81, 76, 109, 113, 66, 74, 68, 85, 30, 49, 63, 53, 80, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:77px; width:1193px; height:660px; ">
  355. <col ref="numno" style="padding-left:5; "/>
  356. <col ref="teldd" type="inputdate"/>
  357. <col id="appidflag" ref="appidflag" type="combo">
  358. <choices>
  359. <itemset>
  360. <label/>
  361. <value/>
  362. </itemset>
  363. </choices>
  364. </col>
  365. <col ref="emplno" type="inputbutton"/>
  366. <col ref="emplnm"/>
  367. <col id="dutplceinst" disabled="true" ref="dutplceinst" type="combo">
  368. <choices>
  369. <itemset>
  370. <label/>
  371. <value/>
  372. </itemset>
  373. </choices>
  374. </col>
  375. <col ref="dutplcedeptnm"/>
  376. <col id="telcostflag" ref="telcostflag" type="combo">
  377. <choices>
  378. <itemset>
  379. <label/>
  380. <value/>
  381. </itemset>
  382. </choices>
  383. </col>
  384. <col id="unitcostbase" ref="unitcostbase" type="combo">
  385. <choices>
  386. <itemset>
  387. <label/>
  388. <value/>
  389. </itemset>
  390. </choices>
  391. </col>
  392. <col ref="telarea" type="input"/>
  393. <col ref="telno" type="input" maxlength="20"/>
  394. <col checkvalue="Y,N" ref="discyn" type="checkbox"/>
  395. <col ref="telmnt" type="input" format="#,###" style="text-align:right; "/>
  396. <col ref="disccost" format="#,###" style="left:937px; top:23px; width:49px; height:23px; text-align:right; "/>
  397. <col ref="mntcost" format="#,###" style="text-align:right; "/>
  398. <col ref="telamt" type="input" format="#,###" style="text-align:right; "/>
  399. <col ref="instcd" visibility="hidden"/>
  400. <col ref="teldd" visibility="hidden"/>
  401. <col ref="dutplcedeptcd" visibility="hidden"/>
  402. <col ref="seqno" visibility="hidden"/>
  403. <col ref="calmthd" visibility="hidden"/>
  404. <col ref="retiredd" visibility="hidden"/>
  405. <col ref="dutplcedeptcd" visibility="hidden"/>
  406. <script type="javascript" ev:event="xforms-value-changed">
  407. <![CDATA[
  408. /*if(grd_telempl.col == grd_telempl.colRef("telno"))
  409. {
  410. var inputValue = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("telno"));
  411. if(inputValue.length > 0)
  412. {
  413. var telpattern = /^0\d{1,2}\-\d{3,4}\-\d{4}$/ig;
  414. var hppattern = /^01[016789]\-\d{3,4}\-\d{4}$/ig;
  415. if( telpattern.exec(inputValue) == null &&
  416. hppattern.exec(inputValue) == null) {
  417. messageBox("전화[휴대폰]번호 형식이", "E004");
  418. grd_telempl.editCell();
  419. return;
  420. }
  421. }
  422. }
  423. else */
  424. fTeleAmtSet("C");
  425. ]]>
  426. </script>
  427. <script type="javascript" ev:event="onbuttonclick">
  428. <![CDATA[
  429. if (grd_telempl.colAttribute(grd_telempl.col,"ref") == "emplno" ) { //계산기준코드
  430. var recv_list = "emplno,emplnm,dutplceinst,dutplcedeptcd,dutplcedeptnm,retiredd";
  431. rpbfOpenPopUpList("SPRPB00101", grd_telempl, recv_list,"","N");
  432. if (grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("retiredd")).length > 0 && grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("retiredd")) != "18000101") {
  433. model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/emplno" , "");
  434. model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/emplnm" , "");
  435. model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/dutplcedeptcd" , "");
  436. model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/dutplcedeptnm" , "");
  437. model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/dutplceinst" , "");
  438. model.setValue(grd_telempl.nodeset + "["+ (grd_telempl.row - grd_telempl.fixedRows + 1) + "]/retiredd" , "");
  439. messageBox("퇴직한 사원은 전화료 공제 처리를","E001");
  440. }
  441. model.refresh();
  442. }
  443. ]]>
  444. </script>
  445. <script type="javascript" ev:event="xforms-value-changed">
  446. <![CDATA[
  447. if (grd_telempl.colAttribute(grd_telempl.col,"ref") == "emplno" ) { //계산기준코드
  448. var recv_list = "emplno,emplnm,instnm,dutplcedeptnm";
  449. misfValidationCheck("01-1", "", recv_list);
  450. model.refresh();
  451. }
  452. ]]>
  453. </script>
  454. <script type="javascript" ev:event="onentercell">
  455. <![CDATA[
  456. if (grd_telempl.col == grd_telempl.colRef("telamt"))
  457. {
  458. var calmthd = grd_telempl.valueMatrix(grd_telempl.row, grd_telempl.colRef("calmthd"));
  459. if(calmthd.length> 0 && calmthd != "03")
  460. {
  461. messageBox("계산방법이 [사용자입력,실금액적용]인 경우만 금액을 조정할수 있습니다", "E");
  462. return;
  463. }
  464. }
  465. ]]>
  466. </script>
  467. </datagrid>
  468. <input id="ipt_teldd" ref="/root/send/telempl/teldd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:89px; top:18px; width:91px; height:19px; ">
  469. <script type="javascript" ev:event="xforms-value-changed">
  470. <![CDATA[
  471. //rwcGridUnitCostBase(grd_telempl,"unitcostbase",model.getValue(cmb_instcd.attribute("ref")),model.getValue(ipt_teldd.attribute("ref")));
  472. //btn_search.dispatch("DOMActivate");
  473. ]]>
  474. </script>
  475. </input>
  476. <select1 id="cmb_appidflag" ref="/root/send/telempl/appidflag" class="combo_s_essential" appearance="minimal" style="left:284px; top:17px; width:125px; height:19px; ">
  477. <choices>
  478. <itemset>
  479. <label/>
  480. <value/>
  481. </itemset>
  482. </choices>
  483. </select1>
  484. <caption id="caption1" class="search_name" style="left:184px; top:18px; width:106px; height:17px; ">신청인구분:</caption>
  485. <button id="btn_emplno" class="icon_search" style="left:563px; top:18px; width:16px; height:16px; ">
  486. <caption/>
  487. <script type="javascript" ev:event="DOMActivate">
  488. <![CDATA[
  489. var recv_list = "emplno,emplnm" ;
  490. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
  491. model.refresh();
  492. ]]>
  493. </script>
  494. </button>
  495. <caption id="caption7" class="search_name" style="left:413px; top:18px; width:63px; height:17px; ">사번 :</caption>
  496. <input id="ipt_emplnos" ref="/root/send/telempl/emplno" class="input_default" style="left:474px; top:18px; width:87px; height:19px; ">
  497. <script type="javascript" ev:event="xforms-value-changed">
  498. <![CDATA[
  499. var recv_list = "emplno,emplnm" ;
  500. rpbfValidationCheck("EMPLNO", recv_list);
  501. model.refresh();
  502. ]]>
  503. </script>
  504. </input>
  505. <input id="ipt_emplnms" ref="/root/send/telempl/emplnm" class="input_default" style="left:580px; top:18px; width:141px; height:19px; ">
  506. <script type="javascript" ev:event="xforms-value-changed">
  507. <![CDATA[
  508. var recv_list = "emplno,emplnm" ;
  509. rpbfValidationCheck("EMPLNM", recv_list);
  510. model.refresh();
  511. if (model.getValue(ipt_emplnos.attribute("ref")).length > 0) {
  512. btn_search.dispatch("DOMActivate");
  513. }
  514. ]]>
  515. </script>
  516. </input>
  517. <select1 id="cmb_unitcostbase" ref="/root/send/telempl/unitcostbase" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:860px; top:20px; width:95px; height:19px; ">
  518. <choices>
  519. <itemset nodeset="/root/cost/comcd/comcodelist">
  520. <label ref="cdnm"/>
  521. <value ref="cdid"/>
  522. </itemset>
  523. </choices>
  524. </select1>
  525. </group>
  526. <group id="grp_btn" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  527. <button id="btn_save" class="btn4_letter2" style="left:1139px; top:3; width:56px; height:22px; ">
  528. <caption>저장</caption>
  529. <script type="javascript" ev:event="DOMActivate">
  530. <![CDATA[
  531. var updtdata = getGridUpdateData(grd_telempl);
  532. if (updtdata == "") {
  533. messageBox("변경된 데이터가","I004");
  534. return;
  535. }
  536. if(fCheckSaveData() == false)return;
  537. var retMes = messageBox("", "Q002");
  538. if ( retMes != 6) {
  539. return;
  540. }
  541. submit("TRRWD01202");
  542. var sumyn= model.getValue("/root/temp/checklist/sumyn");
  543. if(sumyn =='Y'){
  544. messageBox("집계가 완료된 자료는 저장 할 수 ","I004");
  545. return;
  546. }
  547. misfSave("TXRWD00701");
  548. if (model.getValue(gvErrorMsgPath + "/type") != "error")btn_search.dispatch("DOMActivate");
  549. ]]>
  550. </script>
  551. </button>
  552. <button id="btn_init" class="btn4_letter3" style="left:1069px; top:3; width:68px; height:22px; ">
  553. <caption>초기화</caption>
  554. <script type="javascript" ev:event="DOMActivate">
  555. <![CDATA[
  556. fInitialize();
  557. ]]>
  558. </script>
  559. </button>
  560. <line id="line9" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
  561. </group>
  562. </xhtml:body>
  563. </xhtml:html>