SMRPV09300_프로세스별 진행사항 조회.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <?xml-stylesheet href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" type="text/css" ?>
  4. <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">
  5. <xhtml:head>
  6. <xhtml:title>프로세스별 진행사항 조회</xhtml:title>
  7. <model id="model1">
  8. <instance id="instance1">
  9. <root xmlns="">
  10. <main>
  11. <bizvaluproc>
  12. <bizvaluproclist/>
  13. </bizvaluproc>
  14. <smsdata>
  15. <bizabbr/>
  16. <replytelno/>
  17. <rsrvyn/>
  18. <rsrvdate/>
  19. <rsrvtime/>
  20. <msgcnts/>
  21. <recvrlist>
  22. <chk/>
  23. <recvrnm/>
  24. <recvrtelno/>
  25. </recvrlist>
  26. </smsdata>
  27. <maildata>
  28. <fromaddress/>
  29. <fromname/>
  30. <toaddress/>
  31. <ccaddress/>
  32. <subject/>
  33. <msg/>
  34. <attach>
  35. <file/>
  36. <filename/>
  37. <filesize/>
  38. </attach>
  39. </maildata>
  40. </main>
  41. <send>
  42. <bizvaluproc>
  43. <valuyy/>
  44. <fstscndhfyyflag/>
  45. <instcd/>
  46. <deptcd/>
  47. <deptnm/>
  48. <emplnm/>
  49. <emplno/>
  50. <proc/>
  51. <program/>
  52. <valua/>
  53. </bizvaluproc>
  54. </send>
  55. <init/>
  56. <temp/>
  57. </root>
  58. </instance>
  59. <script type="javascript" ev:event="xforms-ready">
  60. <![CDATA[
  61. fInitialize();
  62. ]]>
  63. </script>
  64. <submission id="TRRPV09301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bizvaluproc" resultref="/root/main/bizvaluproc"/>
  65. </model>
  66. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  69. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  70. <script type="javascript" src="../../../mis/valuationmngtweb/js/RPV001.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  72. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  73. <script type="javascript">
  74. <![CDATA[
  75. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  76. function fInitialize() {
  77. misfGridInit(grd_bizvaluproclist);
  78. model.resetInstanceNode("/root/main");
  79. model.resetInstanceNode("/root/send");
  80. grd_bizvaluproclist.fixedcellcheckbox(1, 1) = true;
  81. // 현재 년도 설정.
  82. model.setValue(ipt_valuyy.attribute("ref"), getCurrentDate().toDate().getDateFormat("YYYY"));
  83. rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")),"R093P","cmb_program");
  84. rpvfComboInstCdList("cmb_instcd");
  85. //cmb_program.select(0);
  86. // 사용자 기본설정.
  87. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  88. //model.setValue(ipt_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
  89. //model.setValue(ipt_deptnm.attribute("ref"), getUserInfo("dutplcenm"));
  90. //model.setValue(ipt_emplno.attribute("ref") , getUserInfo("userid"));
  91. //model.setValue(ipt_emplnm.attribute("ref") , getUserInfo("usernm"));
  92. model.refresh();
  93. }
  94. function fSendMsg()
  95. {
  96. misfGridInit(grd_msg);
  97. var fPhone = '';
  98. var sPhone = '';
  99. model.setValue("/root/main/smsdata/bizabbr", "mis");
  100. model.setValue("/root/main/smsdata/replytelno", "112");
  101. model.setValue("/root/main/smsdata/rsrvyn", "0");
  102. model.setValue("/root/main/smsdata/rsrvdate", getCurrentDate());
  103. model.setValue("/root/main/smsdata/rsrvtime", getCurrentTime().substr(0,4));
  104. model.setValue("/root/main/smsdata/msgcnts", "");
  105. if (grd_bizvaluproclist.rows - grd_bizvaluproclist.fixedRows > 0) {
  106. model.setValue("/root/main/smsdata/replytelno", grd_bizvaluproclist.valueMatrix(grd_bizvaluproclist.fixedRows, grd_bizvaluproclist.colRef("trgtphone")));
  107. }
  108. for(var i = grd_bizvaluproclist.fixedRows; i < grd_bizvaluproclist.rows; i++ )
  109. {
  110. if(grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.colRef("chooseyn")) == "Y")
  111. {
  112. if(grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.colRef("phone")) != '')
  113. {
  114. misfGridIUD(grd_msg, "A");
  115. fPhone = grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.colRef("phone")).split("-");
  116. sPhone = '';
  117. for(var p = 0; p < fPhone.length; p++ )
  118. {
  119. sPhone += fPhone[p];
  120. }
  121. grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("chk")) = 'Y';
  122. grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("recvrnm")) = grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.colRef("emplnm"));
  123. grd_msg.valueMatrix(grd_msg.row, grd_msg.colRef("recvrtelno")) = sPhone;
  124. }
  125. }
  126. }
  127. //zmsfOpenSMS("/root/main/smsdata");
  128. rpvfOpenSMS(10, 10, "/root/main/smsdata");
  129. }
  130. function fSendEmail()
  131. {
  132. var fEmail = '';
  133. model.setValue("/root/main/maildata/fromaddress", grd_bizvaluproclist.valueMatrix(grd_bizvaluproclist.fixedRows, grd_bizvaluproclist.colRef("tretemail")).getTrim()) ; // 보내는 사람의 E-mail 주소
  134. model.setValue("/root/main/maildata/fromname", getUserInfo("usernm")); // 보내는 사람명
  135. for(var i = grd_bizvaluproclist.fixedRows; i < grd_bizvaluproclist.rows; i++ )
  136. {
  137. if(grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.colRef("chooseyn")) == "Y")
  138. {
  139. if(grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.colRef("email")).getTrim() != '')
  140. {
  141. if(fEmail.length >0)
  142. {
  143. fEmail += ';';
  144. }
  145. fEmail += grd_bizvaluproclist.valueMatrix(i, grd_bizvaluproclist.colRef("email")).getTrim();
  146. }
  147. }
  148. }
  149. model.setValue("/root/main/maildata/toaddress", fEmail); // 받는이 이메일 주소 여러명일때 구분자 ';'
  150. model.setValue("/root/main/maildata/ccaddress", ''); // 참조인 이메일 주소
  151. model.setValue("/root/main/maildata/subject", ''); // 제목
  152. model.setValue("/root/main/maildata/msg", ''); // 전송메세지
  153. //zmefOpenMail("/root/main/maildata");
  154. rpvfOpenMail(10, 10, "/root/main/maildata");
  155. }
  156. ]]>
  157. </script>
  158. </xhtml:head>
  159. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  160. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  161. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">프로세스별 진행사항 조회</caption>
  162. </group>
  163. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  164. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:65px; vertical-align:top; ">
  165. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  166. <line id="line13" class="line_4" style="x1:1110px; y1:5px; x2:1110px; y2:60px; border-color:#ffe4bb; border-left-style:solid; "/>
  167. <caption id="cap_valuyy" class="search_name" style="left:10px; top:9px; width:90px; height:17px; ">평가년도 :</caption>
  168. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:22px; width:56px; height:22px; ">
  169. <caption>조회</caption>
  170. <script type="javascript" ev:event="DOMActivate">
  171. <![CDATA[
  172. var program = cmb_program.value;
  173. if (program == "RP2" || program == "RP4" || program == "RP5"|| program == "RP7"||program == "RP8") {
  174. // if(!isRequiredControls("ipt_valuyy", "cmb_instcd", "cmb_program", "cmb_proc" )) return;
  175. }
  176. else {
  177. // if(!isRequiredControls("ipt_valuyy", "cmb_instcd", "cmb_fstscndhfyyflag", "cmb_program", "cmb_proc" )) return;
  178. }
  179. submit("TRRPV09301");
  180. ]]>
  181. </script>
  182. </button>
  183. <input id="ipt_valuyy" ref="/root/send/bizvaluproc/valuyy" class="input_s_essential" inputtype="date" format="yyyy" style="left:105px; top:8px; width:80px; height:19px; text-align:center; ">
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. var instcd = cmb_instcd.value;
  187. if( getStringLength(ipt_valuyy.value) == "4" ) {
  188. rpvfComboInstCdList("cmb_instcd",ipt_valuyy.value);
  189. cmb_instcd.value = instcd;
  190. model.refresh();
  191. }
  192. ]]>
  193. </script>
  194. </input>
  195. <select1 id="cmb_instcd" ref="/root/send/bizvaluproc/instcd" class="combo_s_essential" appearance="minimal" style="left:381px; top:8px; width:199px; height:19px; ">
  196. <choices>
  197. <itemset>
  198. <label/>
  199. <value/>
  200. </itemset>
  201. </choices>
  202. </select1>
  203. <caption id="cap_instcd" class="search_name" style="left:320px; top:9px; width:61px; height:17px; vertical-align:middle; ">기관 :</caption>
  204. <select1 id="cmb_fstscndhfyyflag" ref="/root/send/bizvaluproc/fstscndhfyyflag" class="combo_search" appearance="minimal" style="left:935px; top:8px; width:165px; height:19px; ">
  205. <choices>
  206. <itemset>
  207. <label/>
  208. <value/>
  209. </itemset>
  210. </choices>
  211. </select1>
  212. <caption id="cap_fstscndhfyyflag" class="search_name" style="left:848px; top:9px; width:86px; height:17px; vertical-align:middle; ">상하반기 :</caption>
  213. <input id="ipt_deptnm" ref="/root/send/bizvaluproc/deptnm" class="input_search" style="left:211px; top:35px; width:89px; height:19px; text-align:center; ">
  214. <script type="javascript" ev:event="xforms-value-changed">
  215. <![CDATA[
  216. misfValidationCheck("02", "", "deptcd,deptnm" );
  217. model.refresh();
  218. ]]>
  219. </script>
  220. </input>
  221. <input id="ipt_deptcd" ref="/root/send/bizvaluproc/deptcd" class="input_search" style="left:105px; top:35px; width:84px; height:19px; text-align:center; ">
  222. <script type="javascript" ev:event="xforms-value-changed">
  223. <![CDATA[
  224. misfValidationCheck("02", "", "deptcd,deptnm" );
  225. model.refresh();
  226. ]]>
  227. </script>
  228. </input>
  229. <caption id="cap_deptcd" class="search_name" style="left:10px; top:35px; width:85px; height:17px; ">부 서 :</caption>
  230. <button id="btn_deptcd" class="icon_search" style="left:192px; top:37px; width:16px; height:16px; ">
  231. <caption/>
  232. <script type="javascript" ev:event="DOMActivate">
  233. <![CDATA[
  234. var recv_list = "deptcd,deptnm";
  235. var instcd = cmb_instcd.value;
  236. // rpvfOpenDeptCdHelp(ipt_deptcd,recv_list);
  237. misfOpenPopUpList("02", ipt_deptcd,"", recv_list) ;
  238. model.refresh();
  239. ]]>
  240. </script>
  241. </button>
  242. <caption id="cap_emplnos" class="search_name" style="left:320px; top:35px; width:63px; height:17px; font-weight:bold; ">사번 :</caption>
  243. <input id="ipt_emplno" ref="/root/send/bizvaluproc/emplno" class="input_search" style="left:381px; top:35px; width:79px; height:19px; ">
  244. <script type="javascript" ev:event="xforms-value-changed">
  245. <![CDATA[
  246. var recv_list = "emplno,emplnm" ;
  247. rpbfValidationCheck("EMPLNO", recv_list);
  248. model.refresh();
  249. ]]>
  250. </script>
  251. </input>
  252. <input id="ipt_emplnm" ref="/root/send/bizvaluproc/emplnm" class="input_search" style="left:483px; top:35px; width:97px; height:19px; "/>
  253. <button id="btn_emplno" class="icon_search" style="left:464px; top:37px; width:16px; height:16px; ">
  254. <caption/>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. var recv_list = "emplno,emplnm" ;
  258. rpbfOpenPopUpList("SPRPB00101", ipt_emplnos, recv_list,"1","N");
  259. model.refresh();
  260. ]]>
  261. </script>
  262. </button>
  263. <caption id="cap_proc" class="search_name" style="left:848px; top:35px; width:86px; height:17px; vertical-align:middle; ">진행상태 :</caption>
  264. <select1 id="cmb_proc" ref="/root/send/bizvaluproc/proc" class="combo_s_essential" appearance="minimal" style="left:935px; top:35px; width:165px; height:19px; ">
  265. <choices>
  266. <itemset>
  267. <label/>
  268. <value/>
  269. </itemset>
  270. </choices>
  271. </select1>
  272. <select1 id="cmb_program" ref="/root/send/bizvaluproc/program" class="combo_s_essential" appearance="minimal" style="left:685px; top:8px; width:145px; height:19px; ">
  273. <choices>
  274. <itemset>
  275. <label/>
  276. <value/>
  277. </itemset>
  278. </choices>
  279. <script type="javascript" ev:event="xforms-value-changed">
  280. <![CDATA[
  281. var program = cmb_program.value;
  282. if (program == "RP2" || program == "RP4" ||
  283. program == "RP5" || program == "RP7" ||
  284. program == "RP8" ) { //TFT활동, 역량평가 일경우,자기개발계획서,조직몰입도
  285. //cmb_fstscndhfyyflag.value = "";
  286. cmb_fstscndhfyyflag.disabled = true;
  287. }
  288. else {
  289. cmb_fstscndhfyyflag.disabled = false;
  290. }
  291. if (program == "RP7" || program == "RP6") {
  292. cmb_valua.disabled = true;
  293. rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")), cmb_program.value, "cmb_proc");
  294. }
  295. else {
  296. cmb_valua.disabled = false;
  297. }
  298. rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")), cmb_program.value +"F", "cmb_fstscndhfyyflag");
  299. //rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")), cmb_program.value, "cmb_proc");
  300. rpvfAnotherComboValuCdDataList(ipt_valuyy.value, cmb_program.value + "V", "cmb_valua");
  301. cmb_proc.value = "";
  302. cmb_valua.value = "";
  303. model.refresh();
  304. ]]>
  305. </script>
  306. </select1>
  307. <caption id="cap_program" class="search_name" style="left:598px; top:9px; width:86px; height:17px; vertical-align:middle; ">프로그램 :</caption>
  308. <select1 id="cmb_valua" ref="/root/send/bizvaluproc/valua" class="combo_search" appearance="minimal" style="left:685px; top:35px; width:145px; height:19px; ">
  309. <choices>
  310. <itemset>
  311. <label/>
  312. <value/>
  313. </itemset>
  314. </choices>
  315. <script type="javascript" ev:event="xforms-value-changed">
  316. <![CDATA[
  317. var valua = cmb_valua.value;
  318. if (valua == "01") { //평가자
  319. rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")), cmb_program.value+"A", "cmb_proc");
  320. }
  321. else {
  322. rpvfAnotherComboValuCdDataList(model.getValue(ipt_valuyy.attribute("ref")), cmb_program.value, "cmb_proc");
  323. }
  324. model.refresh();
  325. ]]>
  326. </script>
  327. </select1>
  328. <caption id="cap_valua" class="search_name" style="left:598px; top:35px; width:86px; height:17px; vertical-align:middle; ">평 가 자 :</caption>
  329. </group>
  330. <caption id="caption22" class="tit_2" style="left:5px; top:84px; width:144px; height:13px; ">DATA LIST</caption>
  331. <line id="line19" class="line_1" style="x1:0px; y1:99px; x2:1195px; y2:99px; "/>
  332. <datagrid id="grd_bizvaluproclist" nodeset="/root/main/bizvaluproc/bizvaluproclist" autoresize="true" caption="선택^기관^부서^직책^직급^사원번호^성명^평가그룹^핸드폰^이메일^발신자전화^발신자이메일|^기관^부서^직책^직급^사원번호^성명^평가그룹^핸드폰^이메일^발신자전화^발신자이메일" colsep="^" colwidth="42, 239, 197, 120, 131, 130, 134, 157, 32, 35, 47, 51" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:105px; width:1195px; height:639px; ">
  333. <col checkvalue="Y,N" ref="chooseyn" type="checkbox"/>
  334. <col ref="instnm"/>
  335. <col ref="deptnm"/>
  336. <col ref="jobrespnm"/>
  337. <col ref="jobgradnm"/>
  338. <col ref="emplno"/>
  339. <col ref="emplnm"/>
  340. <col ref="valuclsnm"/>
  341. <col ref="phone" visibility="hidden"/>
  342. <col ref="email" visibility="hidden"/>
  343. <col ref="trgtphone" visibility="hidden"/>
  344. <col ref="tretemail" visibility="hidden"/>
  345. </datagrid>
  346. <button id="btn_saveexcel" class="btn2_letter5" style="left:1114px; top:78px; width:75px; height:19px; ">
  347. <caption>Excel저장</caption>
  348. <script type="javascript" ev:event="DOMActivate">
  349. <![CDATA[
  350. var fileName = window.fileDialog ("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  351. if (fileName != "")
  352. {
  353. grd_bizvaluproclist.saveExcel(fileName);
  354. }
  355. ]]>
  356. </script>
  357. </button>
  358. <button id="btn_msg" class="btn5_letter4" style="left:1045px; top:78px; width:64px; height:19px; ">
  359. <caption>문자전송</caption>
  360. <script type="javascript" ev:event="DOMActivate">
  361. <![CDATA[
  362. fSendMsg();
  363. ]]>
  364. </script>
  365. </button>
  366. <button id="btn_email" class="btn5_letter3" style="left:990px; top:78px; width:53px; height:19px; ">
  367. <caption>E-mail</caption>
  368. <script type="javascript" ev:event="DOMActivate">
  369. <![CDATA[
  370. fSendEmail();
  371. ]]>
  372. </script>
  373. </button>
  374. <datagrid id="grd_msg" nodeset="/root/main/smsdata/recvrlist" visibility="hidden" caption="체크여부^이름^전화번호" colsep="^" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:230px; top:240px; width:310px; height:125px; ">
  375. <col ref="chk"/>
  376. <col ref="recvrnm"/>
  377. <col ref="recvrtelno"/>
  378. </datagrid>
  379. </group>
  380. <group id="group2" style="left:0px; top:12px; width:1195px; height:27px; ">
  381. <line id="line16" class="line_2" style="x1:0px; y1:25px; x2:1195px; y2:25px; "/>
  382. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3; width:68px; height:22px; ">
  383. <caption>초기화</caption>
  384. <script type="javascript" ev:event="DOMActivate">
  385. <![CDATA[
  386. window.reload() ;
  387. ]]>
  388. </script>
  389. </button>
  390. </group>
  391. </xhtml:body>
  392. </xhtml:html>