SMRTS01900_사랑나눔교육일정변경확정.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <humnatreducdgcapalist/>
  11. <item>
  12. <cmt/>
  13. </item>
  14. <humnatrsreq>
  15. <humnatrscorlist/>
  16. </humnatrsreq>
  17. <humnatrsempl>
  18. <humnatrempllist/>
  19. </humnatrsempl>
  20. <reportlist>
  21. <humnatrscorlist/>
  22. <humnatrempllist/>
  23. </reportlist>
  24. </main>
  25. <temp>
  26. </temp>
  27. <init>
  28. <cnfmynlist>
  29. <label>확정</label>
  30. <value>Y</value>
  31. <label>미확정</label>
  32. <value>N</value>
  33. </cnfmynlist>
  34. </init>
  35. <send>
  36. <req>
  37. <yy/>
  38. <dgno/>
  39. <deptcd/>
  40. <valuerslt/>
  41. <emplno/>
  42. <emplnm/>
  43. </req>
  44. <humnatrsreq>
  45. <yy/>
  46. <emplno/>
  47. <dgno/>
  48. </humnatrsreq>
  49. <humnatrsreq>
  50. <humnatrscorlist/>
  51. </humnatrsreq>
  52. </send>
  53. </root>
  54. </instance>
  55. <script type="javascript" ev:event="xforms-ready">
  56. <![CDATA[
  57. submit("TRRTS00602");
  58. addComboItem( "cmb_deptcd", "전체", "", "above");
  59. misfGridInit(grd_humnatrscorlist);
  60. misfGridInit(grd_humnatrempllist);
  61. misfMsterDetailSet(grd_humnatrempllist, null, "TRRTS01901", "N");
  62. misfMsterDetailSet(grd_humnatrscorlist,grd_humnatrempllist, "TRRTS01802", "Y");
  63. misfGridComboComCdList("R0256",grd_humnatrempllist,"valuerslt");
  64. misfComboComCdListMulti("R0256", "cmb_valuerslt");
  65. addComboItem( "cmb_valuerslt", "전체", "", "above");
  66. var today = getCurrentDate();
  67. var cur_mm = parseInt(today.substring(4, 6));
  68. var cur_yy = parseInt(today.substring(0, 4));
  69. if (cur_mm < 3)
  70. {
  71. cur_yy--;
  72. }
  73. model.setValue("/root/send/req/yy", cur_yy);
  74. submit("TRRTC01301");
  75. addComboItem( "cmb_dgno", "전체", "", "above");
  76. addComboItem( "cmb_dgno", "차기년도", "0", "below");
  77. misfComboCopyItemSet(cmb_dgno, "/root/send/req/chdgno", grd_humnatrscorlist, "chdgno");
  78. ipt_yy.refresh();
  79. model.setValue("/root/send/req/yy", cur_yy);
  80. if(!checkAuth("P"))
  81. {
  82. cmb_deptcd.value = getUserInfo("posdeptcd");
  83. }
  84. else
  85. {
  86. cmb_deptcd.value = "";
  87. }
  88. ]]>
  89. </script>
  90. <submission id="TRRTC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatreducdgcapalist"/>
  91. <submission id="TRRTS00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdept" resultref="/root/main/tisorddeptcdlist"/>
  92. <submission id="TRRTS01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/humnatrsreq" resultref="/root/main/humnatrsreq"/>
  93. <submission id="TXRTS01802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/humnatrsreq" resultref="/root/temp"/>
  94. <submission id="TRRTS01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/humnatrsempl"/>
  95. <submission id="TRRTS01803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" resultref="/root/main/reportlist"/>
  96. </model>
  97. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  100. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  101. <script type="javascript" src="../../../mis/tistrngeducplanmngtweb/js/SMRTS00600.js"/>
  102. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  103. <script type="javascript">
  104. <![CDATA[
  105. function fCheckData(cur_row){
  106. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("dgno")) = '';
  107. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("educfromdd")) = '';
  108. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("eductodd")) = '';
  109. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("eduinstnm")) = '';
  110. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("valuerslt")) = '';
  111. grd_humnatrscorlist.valueMatrix(cur_row,grd_humnatrscorlist.colRef("cnfmyn")) = '';
  112. }
  113. ]]>
  114. </script>
  115. </xhtml:head>
  116. <xhtml:body>
  117. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  118. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">사랑나눔교육 평가 일정변경 확정</caption>
  119. </group>
  120. <group id="group2" scroll="auto" style="left:0px; top:43px; width:1195px; height:697px; ">
  121. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1195px; height:36px; background-color:#fffbf2; border-color:#ffd799; "/>
  122. <datagrid id="grd_humnatrscorlist" nodeset="/root/main/humnatrsreq/humnatrscorlist" caption="차수^일련번호^사원번호^년도^차수^교육시작일자^교육종료일자^교육근무기관^확정여부^비고^caption1^caption3^caption2^구분^확정차수" colsep="^" colwidth="0, 0, 0, 0, 58, 90, 99, 101, 61, 147, 35, 22, 30, 20, 20, 0" dataheight="25" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:760px; top:75px; width:435px; height:430px; ">
  123. <col ref="dgno" visibility="hidden"/>
  124. <col ref="seqno" visibility="hidden"/>
  125. <col ref="emplno" visibility="hidden"/>
  126. <col ref="yy" style="text-align:center; "/>
  127. <col ref="chdgno" type="combo" style="text-align:center; ">
  128. <choices>
  129. <itemset>
  130. <label/>
  131. <value/>
  132. </itemset>
  133. </choices>
  134. </col>
  135. <col ref="educfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
  136. <col ref="eductodd" format="yyyy-mm-dd" style="text-align:center; "/>
  137. <col ref="eduinstnm"/>
  138. <col ref="cnfmyn" type="combo">
  139. <choices>
  140. <itemset nodeset="/root/init/cnfmynlist">
  141. <label ref="label"/>
  142. <value ref="value"/>
  143. </itemset>
  144. </choices>
  145. </col>
  146. <col ref="cmt" visibility="hidden"/>
  147. <col ref="appfromdd" visibility="hidden"/>
  148. <col ref="cnfmmanid" visibility="hidden"/>
  149. <col ref="cnfmdd" visibility="hidden"/>
  150. <col ref="workgbn" visibility="hidden"/>
  151. <col ref="newdgno" visibility="hidden"/>
  152. <col ref="oldcnfmyn" visibility="hidden"/>
  153. <script type="javascript" ev:event="onaftersort">
  154. <![CDATA[
  155. grd_humnatrscorlist.gridToInstance();
  156. ]]>
  157. </script>
  158. </datagrid>
  159. <caption id="caption3" class="tit_2" style="left:760px; top:55px; width:201px; height:13px; ">사랑나눔교육 변경 신청 예정일</caption>
  160. <line id="line1" class="line_1" style="x1:760px; y1:70px; x2:1194px; y2:70px; "/>
  161. <select1 id="cmb_deptcd" ref="/root/send/req/deptcd" class="combo_search" appearance="minimal" style="left:665px; top:15px; width:100px; height:19px; ">
  162. <choices>
  163. <itemset nodeset="/root/main/tisorddeptcdlist">
  164. <label ref="deptnm"/>
  165. <value ref="deptcd"/>
  166. </itemset>
  167. </choices>
  168. </select1>
  169. <input id="ipt_yy" ref="/root/send/req/yy" class="input_s_essential" style="left:90px; top:14px; width:55px; height:19px; ">
  170. <script type="javascript" ev:event="xforms-value-changed">
  171. <![CDATA[
  172. submit("TRRTC01301");
  173. addComboItem( "cmb_dgno", "전체", "", "above");
  174. ipt_yy.refresh();
  175. ]]>
  176. </script>
  177. </input>
  178. <caption id="caption1" class="search_name" style="left:575px; top:15px; width:85px; height:17px; ">임 상 과 :</caption>
  179. <caption id="cap_dgno" class="search_name" style="left:164px; top:16px; width:94px; height:17px; ">교육차수 :</caption>
  180. <select1 id="cmb_valuerslt" ref="/root/send/req/valuerslt" class="combo_s_essential" appearance="minimal" style="left:460px; top:15px; width:100px; height:19px; ">
  181. <choices>
  182. <itemset>
  183. <label/>
  184. <value/>
  185. </itemset>
  186. </choices>
  187. </select1>
  188. <caption id="cap_valuerslt" class="search_name" style="left:374px; top:16px; width:94px; height:17px; ">평가결과 :</caption>
  189. <button id="btn_search" class="btn1_letter2" style="left:1130px; top:12px; width:56px; height:22px; text-align:left; ">
  190. <caption>조회</caption>
  191. <script type="javascript" ev:event="DOMActivate">
  192. <![CDATA[
  193. if ( !isRequiredControls("ipt_yy") ) {
  194. return false;
  195. }
  196. // submit("TRRTS01901");
  197. misfMsterDetailRetrieve();
  198. // submit("TRRTS01001");
  199. ]]>
  200. </script>
  201. </button>
  202. <select1 id="cmb_dgno" ref="/root/send/req/dgno" class="combo_s_essential" appearance="minimal" style="left:250px; top:15px; width:100px; height:19px; ">
  203. <choices>
  204. <itemset nodeset="/root/main/humnatreducdgcapalist">
  205. <label ref="dgno"/>
  206. <value ref="value"/>
  207. </itemset>
  208. </choices>
  209. </select1>
  210. <line id="line82" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:36px; border-color:#ffe4bb; border-left-style:solid; "/>
  211. <caption id="cap_yy" class="search_name" style="left:5px; top:15px; width:86px; height:17px; ">년 도 :</caption>
  212. <datagrid id="grd_humnatrempllist" nodeset="/root/main/humnatrsempl/humnatrempllist" caption="년도^사원번호^성명^현근무기관^현근무부서^차수^평가결과^교육시작일자^교육종료일자^교육근무기관" colsep="^" colwidth="0, 81, 75, 87, 81, 58, 81, 90, 89, 89" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:75px; width:755px; height:600px; ">
  213. <col ref="yy"/>
  214. <col ref="emplno"/>
  215. <col ref="name"/>
  216. <col ref="dutinstnm"/>
  217. <col ref="deptnm"/>
  218. <col ref="dgno"/>
  219. <col disabled="true" ref="valuerslt" type="combo">
  220. <choices>
  221. <itemset>
  222. <label/>
  223. <value/>
  224. </itemset>
  225. </choices>
  226. </col>
  227. <col ref="educfromdd" format="yyyy-mm-dd"/>
  228. <col ref="eductodd" format="yyyy-mm-dd"/>
  229. <col ref="dutinstnm"/>
  230. <script type="javascript" ev:event="onrowchanged">
  231. <![CDATA[
  232. misfMsterDetailRetrieve();
  233. txt_cmt.value = grd_humnatrscorlist.valueMatrix(1,grd_humnatrscorlist.colRef("cmt"));
  234. ]]>
  235. </script>
  236. </datagrid>
  237. <textarea id="txt_cmt" ref="/root/main/item/cmt" disabled="true" maxlength="100" style="left:760px; top:530px; width:425px; height:145px; "/>
  238. <caption id="caption4" class="tit_2" style="left:760px; top:515px; width:201px; height:13px; ">변경사유</caption>
  239. <line id="line2" class="line_1" style="x1:0px; y1:70px; x2:755px; y2:70px; "/>
  240. <caption id="caption5" class="tit_2" style="left:0px; top:55px; width:201px; height:14px; ">사랑나눔교육 평가 변경 리스트</caption>
  241. <button id="btn_helppsn" class="icon_search" style="left:971px; top:16px; width:16px; height:16px; ">
  242. <caption/>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm", "ipt_systemflag","N");
  246. ipt_emplno.refresh();
  247. ipt_emplnm.refresh();
  248. ]]>
  249. </script>
  250. </button>
  251. <input id="ipt_emplnm" ref="/root/send/req/emplnm" class="output_search" style="left:989px; top:15px; width:100px; height:19px; "/>
  252. <caption id="cap_emplno" class="search_name" style="left:776px; top:16px; width:86px; height:17px; ">사원번호 :</caption>
  253. <input id="ipt_emplno" ref="/root/send/req/emplno" class="input_search" style="left:865px; top:15px; width:100px; height:19px; "/>
  254. </group>
  255. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  256. <button id="btn_save" class="btn4_letter2" style="left:1130px; top:2px; width:56px; height:22px; ">
  257. <caption>저장</caption>
  258. <script type="javascript" ev:event="DOMActivate">
  259. <![CDATA[
  260. var updtdata = getGridUpdateData(grd_humnatrscorlist);
  261. if (updtdata == "" ) {
  262. messageBox("변경된 데이터가","I004");
  263. return;
  264. }
  265. var retMes = messageBox("저장 하시겠습니까?", "Q999");
  266. if ( retMes != 6) {
  267. return;
  268. }
  269. var cnfmcnt=0;
  270. var curdate = getCurrentDate();
  271. var cvtdate = curdate.toDate("YYYYMMDD");
  272. var valuerslt = grd_humnatrempllist.valueMatrix(grd_humnatrempllist.row,grd_humnatrempllist.colRef("valuerslt"));
  273. if(valuerslt =='X' || valuerslt =='Y' || valuerslt =='E' ){
  274. for(i=grd_humnatrscorlist.fixedRows; i < grd_humnatrscorlist.rows;i++){
  275. var cnfmyn = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cnfmyn"));
  276. if(cnfmyn =='Y'){
  277. cnfmcnt=cnfmcnt+1;
  278. }
  279. }
  280. cnfmcnt=cnfmcnt;
  281. if(cnfmcnt >1 && valuerslt !='E')
  282. {
  283. messageBox("2개이상의 일정을 확정 ","E001");
  284. return;
  285. }
  286. }else{
  287. messageBox("평가가 완료된 교육은 변경","E001");
  288. return;
  289. }
  290. for(i=grd_humnatrscorlist.fixedRows; i < grd_humnatrscorlist.rows;i++){
  291. var cnfmyn = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cnfmyn"));
  292. var oldcnfmyn = grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("oldcnfmyn"));
  293. if(oldcnfmyn != cnfmyn){
  294. grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cnfmmanid")) = getUserInfo("userid");
  295. grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("cnfmdd")) = cvtdate.getAddDate(0,"M").getDateFormat("YYYYMMDD");
  296. if(cnfmcnt == 0){
  297. grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("workgbn")) ='Y';
  298. }else if(cnfmcnt >0 && cnfmyn =='Y'){
  299. grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("workgbn")) ='Y';
  300. }else{
  301. grd_humnatrscorlist.valueMatrix(i,grd_humnatrscorlist.colRef("workgbn")) ='N';
  302. }
  303. }
  304. }
  305. misfSave("TXRTS01802");
  306. if (model.getValue(gvErrorMsgPath + "/type") != "error")misfMsterDetailRetrieve();
  307. ]]>
  308. </script>
  309. </button>
  310. <button id="button2" class="btn4_letter5" style="left:968px; top:2px; width:92px; height:22px; ">
  311. <caption>신청서출력</caption>
  312. <script type="javascript" ev:event="DOMActivate">
  313. <![CDATA[
  314. submit("TRRTS01803");
  315. exeReportPreview("RPRTS01901", "XMLSTR", "/root/main/send");
  316. ]]>
  317. </script>
  318. </button>
  319. <button id="btn_init" class="btn4_letter3" style="left:1061px; top:2px; width:68px; height:22px; ">
  320. <caption>초기화</caption>
  321. <script type="javascript" ev:event="DOMActivate">
  322. <![CDATA[
  323. var updtdata = getGridUpdateData(grd_humnatrscorlist);
  324. if (updtdata != "" ) {
  325. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
  326. if (ret != 6) { // not OK
  327. return;
  328. }
  329. }
  330. misfGridInit(grd_humnatrscorlist);
  331. misfGridInit(grd_humnatrempllist);
  332. cmb_dgno.value= "" ;
  333. cmb_valuerslt.value= "" ;
  334. ipt_emplno.value= "" ;
  335. ipt_emplnm.value= "" ;
  336. ]]>
  337. </script>
  338. </button>
  339. </group>
  340. </xhtml:body>
  341. </xhtml:html>