SMRPV01500_평가진행사항조회.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  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. <valursltlist>
  11. <program/>
  12. <instnm/>
  13. <deptnm/>
  14. <jobrespnm/>
  15. <emplno/>
  16. <emplnm/>
  17. <progress/>
  18. </valursltlist>
  19. <maildata>
  20. <fromaddress/>
  21. <fromname/>
  22. <toaddress/>
  23. <ccaddress/>
  24. <subject/>
  25. <msg/>
  26. <attach>
  27. <file/>
  28. <filename/>
  29. <filesize/>
  30. </attach>
  31. </maildata>
  32. <smsdata>
  33. <bizabbr/>
  34. <replytelno/>
  35. <rsrvyn/>
  36. <rsrvdate/>
  37. <rsrvtime/>
  38. <msgcnts/>
  39. <recvrlist>
  40. <chk/>
  41. <recvrnm/>
  42. <recvrtelno/>
  43. </recvrlist>
  44. </smsdata>
  45. </main>
  46. <send>
  47. <valurslt>
  48. <valuyy/>
  49. <instcd/>
  50. <deptcd/>
  51. <deptnm/>
  52. <emplno/>
  53. <emplnm/>
  54. <valucd/>
  55. <progress/>
  56. <fstscndhfyyflag/>
  57. <valucdflag/>
  58. </valurslt>
  59. </send>
  60. <init>
  61. <selyn>
  62. <valupsncnfmyn/>
  63. </selyn>
  64. </init>
  65. </root>
  66. </instance>
  67. <script type="javascript" ev:event="xforms-ready">
  68. <![CDATA[
  69. /* Grid 초기화 */
  70. misfGridInit(grd_valurslt);
  71. /* Submit의 ref에 참조 될 Node들은 꼭 Instance에 생성 해야 함.*/
  72. /* Grid의 Mater, Detail관계 설정
  73. misfMsterDetailSet(관계설정할 Grid, Mater가 될 Grid, submit ID, 저장여부) */
  74. misfMsterDetailSet(grd_valurslt,null, "TRRPV01501" ,"N");
  75. rpvfComboInstCdList("cmb_schinstcd");
  76. misfComboComCdList('R0237', cmb_fstscndhfyyflag,'');
  77. var curdate = getCurrentDate();
  78. model.setValue(ipt_valuyy.attribute("ref") , curdate.substr(0, 4));
  79. rpvfComboProgramSet(model.getValue(ipt_valuyy.attribute("ref")),cmb_program,"PROGRAM");
  80. addGridComboItemAll("cmb_schinstcd","전체","","above");
  81. model.setValue(cmb_schinstcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  82. //model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("posdeptcd"));
  83. //model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("posdeptnm"));
  84. model.refresh();
  85. ]]>
  86. </script>
  87. <submission id="TRRPV01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/valurslt" resultref="/root/main/valursltlist"/>
  88. </model>
  89. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  90. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  91. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  92. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  93. <script type="javascript" src="../../../com/batchinfoweb/js/ZSB001.js"/>
  94. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  95. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  96. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  97. <script type="javascript" src="../../../com/shortmsgweb/js/ZMS001.js"/>
  98. <script type="javascript" src="../../../com/emailsenderweb/js/ZME001.js"/>
  99. <script type="javascript">
  100. <![CDATA[
  101. function fSendMsg()
  102. {
  103. misfGridInit(grd_msg);
  104. var fPhone = '';
  105. var sPhone = '';
  106. model.setValue("/root/main/smsdata/bizabbr", "mis");
  107. model.setValue("/root/main/smsdata/replytelno", "112");
  108. model.setValue("/root/main/smsdata/rsrvyn", "0");
  109. model.setValue("/root/main/smsdata/rsrvdate", getCurrentDate());
  110. model.setValue("/root/main/smsdata/rsrvtime", getCurrentTime().substr(0,4));
  111. model.setValue("/root/main/smsdata/msgcnts", "");
  112. if (grd_valurslt.rows - grd_valurslt.fixedRows > 0) {
  113. model.setValue("/root/main/smsdata/replytelno", grd_valurslt.valueMatrix(grd_valurslt.fixedRows, grd_valurslt.colRef("trgtphone")));
  114. }
  115. for(var i = grd_valurslt.fixedRows; i < grd_valurslt.rows; i++ )
  116. {
  117. if(grd_valurslt.valueMatrix(i, grd_valurslt.colRef("chooseyn")) == "Y")
  118. {
  119. if(grd_valurslt.valueMatrix(i, grd_valurslt.colRef("phone")) != '')
  120. {
  121. misfGridIUD(grd_msg, "A");
  122. fPhone = grd_valurslt.valueMatrix(i, grd_valurslt.colRef("phone")).split("-");
  123. sPhone = '';
  124. for(var p = 0; p < fPhone.length; p++ )
  125. {
  126. sPhone += fPhone[p];
  127. }
  128. grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("chk")) = 'Y';
  129. grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("recvrnm")) = grd_valurslt.valueMatrix(i, grd_valurslt.colRef("emplnm"));
  130. grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("recvrtelno")) = sPhone;
  131. }
  132. }
  133. }
  134. //zmsfOpenSMS("/root/main/smsdata");
  135. rpvfOpenSMS(10, 10, "/root/main/smsdata");
  136. }
  137. function fSendEmail()
  138. {
  139. var fEmail = '';
  140. model.setValue("/root/main/maildata/fromaddress", grd_valurslt.valueMatrix(grd_valurslt.fixedRows, grd_valurslt.colRef("tretemail")).getTrim()) ; // 보내는 사람의 E-mail 주소
  141. model.setValue("/root/main/maildata/fromname", getUserInfo("usernm")); // 보내는 사람명
  142. for(var i = grd_valurslt.fixedRows; i < grd_valurslt.rows; i++ )
  143. {
  144. if(grd_valurslt.valueMatrix(i, grd_valurslt.colRef("chooseyn")) == "Y")
  145. {
  146. if(grd_valurslt.valueMatrix(i, grd_valurslt.colRef("email")).getTrim() != '')
  147. {
  148. if(fEmail.length >0)
  149. {
  150. fEmail += ';';
  151. }
  152. fEmail += grd_valurslt.valueMatrix(i, grd_valurslt.colRef("email")).getTrim();
  153. }
  154. }
  155. }
  156. model.setValue("/root/main/maildata/toaddress", fEmail); // 받는이 이메일 주소 여러명일때 구분자 ';'
  157. model.setValue("/root/main/maildata/ccaddress", ''); // 참조인 이메일 주소
  158. model.setValue("/root/main/maildata/subject", ''); // 제목
  159. model.setValue("/root/main/maildata/msg", ''); // 전송메세지
  160. //zmefOpenMail("/root/main/maildata");
  161. rpvfOpenMail(10, 10, "/root/main/maildata");
  162. }
  163. ]]>
  164. </script>
  165. </xhtml:head>
  166. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  167. <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
  168. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">평가 진행사항 조회</caption>
  169. </group>
  170. <group id="group3" style="left:0px; top:38px; width:1195px; height:692px; ">
  171. <!--<datagrid id="datagrid1" nodeset="/root/example" class="datagrid2" caption="구분^확정^목표^시작일자^종료일자^가중치" colsep="^" colwidth="48, 16, 80, 40, 50, 20" dataheight="23" defaultrows="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:317px; top:110px; width:876px; height:481px; ">-->
  172. <group id="grpmain2" style="left:0px; top:48px; width:1194px; height:637px; ">
  173. <datagrid id="grd_valurslt" nodeset="/root/main/valursltlist" class="datagrid2" caption="선택^프로그램명^기관^부서^직책^사원번호^성명^평가그룹^진행사항^전화번호^이메일^발신전화번호^발신이메일" colsep="^" colwidth="45, 245, 160, 145, 96, 88, 91, 100, 209, 39, 35, 39, 36" dataheight="23" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" style="left:0px; top:60px; width:1192px; height:560px; font-weight:normal; color:#99cc00; ">
  174. <col checkvalue="Y,N" ref="chooseyn" type="checkbox"/>
  175. <col ref="program" type="output" style="text-align:center; "/>
  176. <col ref="instnm" style="text-align:center; "/>
  177. <col ref="deptnm" style="text-align:center; "/>
  178. <col ref="jobrespnm" style="text-align:center; "/>
  179. <col ref="emplno" style="text-align:center; "/>
  180. <col ref="emplnm" style="text-align:center; "/>
  181. <col ref="valuclsnm" style="text-align:center; "/>
  182. <col ref="progress" style="text-align:center; "/>
  183. <col ref="phone" visibility="hidden"/>
  184. <col ref="email" visibility="hidden"/>
  185. <col ref="trgtphone" visibility="hidden"/>
  186. <col ref="tretemail" visibility="hidden"/>
  187. </datagrid>
  188. <caption id="caption8" class="tit_2" style="left:5px; top:40px; width:165px; height:14px; ">평가 진행사항</caption>
  189. <line id="line5" class="line_1" style="x1:0px; y1:55px; x2:1190px; y2:55px; "/>
  190. <button id="btn_saveexcel" class="btn2_letter5" style="left:1114px; top:35px; width:75px; height:19px; ">
  191. <caption>Excel저장</caption>
  192. <script type="javascript" ev:event="DOMActivate">
  193. <![CDATA[
  194. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  195. if (fileName != "")
  196. {
  197. grd_valurslt.saveExcel(fileName);
  198. }
  199. ]]>
  200. </script>
  201. </button>
  202. <button id="btn_msg" class="btn5_letter4" style="left:1045px; top:35px; width:64px; height:19px; ">
  203. <caption>문자전송</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. fSendMsg();
  207. ]]>
  208. </script>
  209. </button>
  210. <button id="btn_email" class="btn5_letter3" style="left:990px; top:35px; width:53px; height:19px; ">
  211. <caption>E-mail</caption>
  212. <script type="javascript" ev:event="DOMActivate">
  213. <![CDATA[
  214. fSendEmail();
  215. ]]>
  216. </script>
  217. </button>
  218. <datagrid id="grd_msg" nodeset="/root/main/smsdata/recvrlist" visibility="hidden" caption="체크여부^이름^전화번호" colsep="^" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:230px; top:125px; width:310px; height:125px; ">
  219. <col ref="chk"/>
  220. <col ref="recvrnm"/>
  221. <col ref="recvrtelno"/>
  222. </datagrid>
  223. <button id="btn_selectall" class="btn2_letter4" style="left:120px; top:34px; width:64px; height:19px; ">
  224. <caption>전체선택</caption>
  225. <script type="javascript" ev:event="DOMActivate">
  226. <![CDATA[
  227. for(var i = grd_valurslt.fixedRows; i < grd_valurslt.rows; i++ ) {
  228. grd_valurslt.valueMatrix(i, grd_valurslt.colRef("chooseyn")) = "Y";
  229. }
  230. ]]>
  231. </script>
  232. </button>
  233. <button id="btn_unselectall" class="btn2_letter6" style="left:187px; top:35px; width:64px; height:19px; ">
  234. <caption>전체선택취소</caption>
  235. <script type="javascript" ev:event="DOMActivate">
  236. <![CDATA[
  237. for(var i = grd_valurslt.fixedRows; i < grd_valurslt.rows; i++ ) {
  238. grd_valurslt.valueMatrix(i, grd_valurslt.colRef("chooseyn")) = "N";
  239. }
  240. ]]>
  241. </script>
  242. </button>
  243. </group>
  244. <group id="group5" style="left:0px; top:10px; width:1195px; height:70px; ">
  245. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:65px; "/>
  246. <caption id="cap_deptcd" class="search_name" style="left:670px; top:9px; width:87px; height:17px; font-weight:bold; vertical-align:middle; ">부 서 :</caption>
  247. <line id="line3" class="line_4" style="x1:1109px; y1:5px; x2:1109px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
  248. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
  249. <caption>조회</caption>
  250. <script type="javascript" ev:event="DOMActivate">
  251. <![CDATA[
  252. if(cmb_program.value =="SMRPV05700"){
  253. return;
  254. }
  255. if(cmb_program.value=="SMRPV04200"||cmb_program.value=="SMRPV04300" ||cmb_program.value=="SMRPV01800"){
  256. if ( !isRequiredControls("ipt_valuyy","cmb_program") )return false;
  257. }else{
  258. if ( !isRequiredControls("ipt_valuyy","cmb_fstscndhfyyflag","cmb_program") )return false;
  259. }
  260. var valucdflag = model.getValue("/root/init/cmb_progress/rpvdcodelist/valucdflag");
  261. model.setValue("/root/send/valurslt/valucdflag",valucdflag);
  262. misfMsterDetailRetrieve();
  263. ]]>
  264. </script>
  265. </button>
  266. <select1 id="cmb_schinstcd" ref="/root/send/valurslt/instcd" class="combo_s_essential" appearance="minimal" style="left:256px; top:8px; width:129px; height:19px; ">
  267. <choices>
  268. <itemset>
  269. <label/>
  270. <value/>
  271. </itemset>
  272. </choices>
  273. </select1>
  274. <caption id="cap_valuyy" class="search_name" style="left:5px; top:9px; width:100px; height:17px; vertical-align:middle; ">기준년도 :</caption>
  275. <caption id="cap_schinstcd" class="search_name" style="left:195px; top:9px; width:61px; height:17px; vertical-align:middle; ">기관 :</caption>
  276. <input id="ipt_valuyy" ref="/root/send/valurslt/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:95px; top:8px; width:85px; height:19px; ">
  277. <script type="javascript" ev:event="xforms-value-changed">
  278. <![CDATA[
  279. var instcd = cmb_schinstcd.value;
  280. if( getStringLength(ipt_valuyy.value) == "4" ) {
  281. rpvfComboInstCdList("cmb_schinstcd",ipt_valuyy.value);
  282. cmb_schinstcd.value = instcd;
  283. model.refresh();
  284. }
  285. ]]>
  286. </script>
  287. </input>
  288. <input id="ipt_deptnm" ref="/root/send/valurslt/deptnm" class="input_default" style="left:876px; top:8px; width:125px; height:19px; ">
  289. <script type="javascript" ev:event="xforms-value-changed">
  290. <![CDATA[
  291. misfValidationCheck("02", "", "deptcd,deptnm" );
  292. if (ipt_deptnm.label == "") {
  293. ipt_deptcd.value = "";
  294. }
  295. model.refresh();
  296. ]]>
  297. </script>
  298. </input>
  299. <input id="ipt_deptcd" ref="/root/send/valurslt/deptcd" class="input_default" visibility="visible" style="left:765px; top:8px; width:80px; height:19px; "/>
  300. <button id="btn_deptcd" class="icon_search" style="left:854px; top:9px; width:16px; height:16px; ">
  301. <caption/>
  302. <script type="javascript" ev:event="DOMActivate">
  303. <![CDATA[
  304. if ( !isRequiredControls("cmb_schinstcd") ) {
  305. return false;
  306. }
  307. var recv_list = "deptcd,deptnm";
  308. var instcd = cmb_schinstcd.value;
  309. rpvfOpenDeptCdHelp(ipt_deptnm,recv_list, instcd, "instcd");
  310. model.refresh();
  311. ]]>
  312. </script>
  313. </button>
  314. <caption id="caption26" class="search_name" style="left:670px; top:35px; width:85px; height:17px; ">사 번 :</caption>
  315. <button id="button1" class="icon_search" style="left:853px; top:35px; width:16px; height:16px; ">
  316. <caption/>
  317. <script type="javascript" ev:event="DOMActivate">
  318. <![CDATA[
  319. /* 사원번호 Help 화면 Open
  320. misfOpenPopUpList(화면종류Code, OPEN하는 Control, 공통코드, 리턴받을 Instance명) */
  321. var recv_list = "emplno,emplnm" ;
  322. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, recv_list,"","N");
  323. model.refresh();
  324. if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
  325. btn_search.dispatch("DOMActivate");
  326. }
  327. ]]>
  328. </script>
  329. </button>
  330. <input id="ipt_emplno" ref="/root/send/valurslt/emplno" class="input_default" style="left:766px; top:34px; width:80px; height:19px; ">
  331. <script type="javascript" ev:event="xforms-value-changed">
  332. <![CDATA[
  333. rpbfValidationCheck("EMPLNO", "emplno,emplnm");
  334. model.refresh();
  335. if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
  336. btn_search.dispatch("DOMActivate");
  337. }
  338. ]]>
  339. </script>
  340. </input>
  341. <input id="ipt_emplnm" ref="/root/send/valurslt/emplnm" class="input_default" style="left:878px; top:34px; width:125px; height:19px; ">
  342. <script type="javascript" ev:event="xforms-value-changed">
  343. <![CDATA[
  344. var recv_list = "emplno,emplnm";
  345. misfValidationCheck("01-2", "", recv_list);
  346. model.refresh();
  347. if (model.getValue(ipt_emplno.attribute("ref")).length > 0) {
  348. btn_search.dispatch("DOMActivate");
  349. }
  350. ]]>
  351. </script>
  352. </input>
  353. <caption id="cap_program" class="search_name" style="left:5px; top:35px; width:91px; height:17px; ">프로그램 :</caption>
  354. <select1 id="cmb_program" ref="/root/send/valurslt/valucd" class="combo_s_essential" appearance="minimal" style="left:95px; top:35px; width:290px; height:19px; ">
  355. <choices>
  356. <itemset>
  357. <label/>
  358. <value/>
  359. </itemset>
  360. </choices>
  361. <script type="javascript" ev:event="xforms-value-changed">
  362. <![CDATA[
  363. /* 발령구분 선택시 발령 세부구분 자료를 Setting,한다 */
  364. var program = cmb_program.value;
  365. if(program =="SMRPV01800")
  366. {
  367. progress="PLANDOCPROCESS";
  368. }else if(program =="SMRPV01900")
  369. {
  370. progress="PLANDOCCNFM";
  371. }else if(program =="SMRPV05800")
  372. {
  373. progress="INPUTENDFLAG";
  374. }else if(program == "SMRPV06400" ||program == "SMRPV07200"||program == "SMRPV07500")
  375. {
  376. progress="VALUPSNCNFMFLAG2";
  377. }else if(program =="SMRPV05900")
  378. {
  379. progress="APRVFLAG";
  380. }else if(program =="SMRPV04300" || program == "SMRPV06000" ||program == "SMRPV06100"|| program == "SMRPV06500"|| program == "SMRPV06300" || program == "SMRPV06400" ||program == "SMRPV07300"||program == "SMRPV07400")
  381. {
  382. progress="TRETFLAG";
  383. }else{
  384. progress="PROCSTAT";
  385. }
  386. rpvfComboProgramSet(model.getValue(ipt_valuyy.attribute("ref")),cmb_progress,progress);
  387. cmb_progress.value="";
  388. //misfComboCopyItemSet(cmb_gvnoffcorddetlflag_s, "", grd_gvnoffcordmastlist, "gvnoffcorddetlflag");
  389. ]]>
  390. </script>
  391. </select1>
  392. <caption id="caption2" class="search_name" style="left:415px; top:35px; width:110px; height:17px; font-weight:bold; vertical-align:middle; ">진행상태 :</caption>
  393. <select1 id="cmb_progress" ref="/root/send/valurslt/progress" class="combo_s_essential" appearance="minimal" style="left:506px; top:35px; width:130px; height:19px; ">
  394. <choices>
  395. <itemset>
  396. <label/>
  397. <value/>
  398. </itemset>
  399. </choices>
  400. </select1>
  401. <select1 id="cmb_fstscndhfyyflag" ref="/root/send/valurslt/fstscndhfyyflag" class="combo_s_essential" appearance="minimal" style="left:506px; top:9px; width:130px; height:19px; ">
  402. <choices>
  403. <itemset nodeset="/root/init/fstscndhfyyflag">
  404. <label ref="cdnm"/>
  405. <value ref="code"/>
  406. </itemset>
  407. </choices>
  408. </select1>
  409. <caption id="cap_fstscndhfyyflag" class="search_name" style="left:415px; top:10px; width:86px; height:17px; vertical-align:middle; ">상하반기 :</caption>
  410. </group>
  411. </group>
  412. <!--<line id="line3" class="line_1" style="x1:0px; y1:67px; x2:1195px; y2:67px; "/>-->
  413. <group id="group6" style="left:0px; top:12; width:1195; height:27; ">
  414. <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  415. </group>
  416. </xhtml:body>
  417. </xhtml:html>