SMRPD01400_확정마감번표현황조회.xrw 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  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. <list>
  11. <dutschecnfmstatlist/>
  12. </list>
  13. <savelist>
  14. </savelist>
  15. </main>
  16. <send>
  17. <retrparams>
  18. <instcd/>
  19. <dutym/>
  20. <dutunitcd/>
  21. <dutunitnm/>
  22. <cnfmyn>N</cnfmyn>
  23. <kind>all</kind>
  24. <appscheexecflag>3</appscheexecflag>
  25. </retrparams>
  26. </send>
  27. <init/>
  28. <temp/>
  29. </root>
  30. </instance>
  31. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  32. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  33. <submission id="TRRPD01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
  34. <submission id="TXRPD01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savelist/cncllist" resultref="/root/temp"/>
  35. <submission id="TXRPD02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/temp"/>
  36. </model>
  37. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  39. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  40. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  41. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  42. <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
  43. <script type="javascript" ev:event="xforms-ready">
  44. <![CDATA[
  45. fInitialize();
  46. ]]>
  47. </script>
  48. <script type="javascript">
  49. <![CDATA[
  50. var DUT_UNIT_CD = "";
  51. var DUT_UNIT_NM = "";
  52. function fInitialize()
  53. {
  54. model.removenode("/root/main/list/dutschecnfmstatlist");
  55. model.setValue("/root/send/retrparams/dutym", getCurrentDate().substr(0, 6));
  56. // misfComboComCdListMulti("Z0007","cmb_instcd");
  57. misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+getCurrentDate().substr(6, 2),"","Y");
  58. misfMsterDetailSet(grd_dutschecnfmstatlist, null, "TRRPD01401", "N");
  59. misfMsterDetailSet(grd_cncllist, null, "TRRPD01401", "Y");
  60. model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
  61. model.refresh();
  62. }
  63. function fRetrieve()
  64. {
  65. submit("TRRPD01401");
  66. }
  67. function fConfirmCancel(sType)
  68. {
  69. var sCheck = "N";
  70. var sDutUnitCd = "";
  71. var sMsg = "";
  72. if(sType == "Cnfm") sMsg = "확정 마감";
  73. else sMsg = "마감 취소";
  74. var dlgRslt = messageBox("선택하신 부서를 " + sMsg + " 하시겠습니까?", "Q999");
  75. if(dlgRslt != 6) return;
  76. model.removeNodeset("/root/main/savelist/cncllist");
  77. for(var i=1; i<grd_dutschecnfmstatlist.rows; i++)
  78. {
  79. sCheck = grd_dutschecnfmstatlist.valueMatrix(i, grd_dutschecnfmstatlist.colRef("chk"));
  80. sExecYn = grd_dutschecnfmstatlist.valueMatrix(i, grd_dutschecnfmstatlist.colRef("execschecloseyn"));
  81. sCnfmYn = grd_dutschecnfmstatlist.valueMatrix(i, grd_dutschecnfmstatlist.colRef("cnfmyn"));
  82. sDeptNm = grd_dutschecnfmstatlist.valueMatrix(i, grd_dutschecnfmstatlist.colRef("deptnm"));
  83. if(sCheck == "Y")
  84. {
  85. if(sType == "Cnfm" && (sCnfmYn == "Y" || sExecYn == "N"))
  86. {
  87. var sSubMsg = (sCnfmYn == "Y") ? "확정마감이 되었으므로 마감" : (sExecYn == "N") ? "실시마감이 되지 않았으므로 마감" : "마감";
  88. messageBox("[ " + sDeptNm + " ] 은(는) " + sSubMsg, "E001");
  89. continue;
  90. }
  91. if(sType == "Cncl" && sCnfmYn == "N") continue;
  92. sDutUnitCd = grd_dutschecnfmstatlist.valueMatrix(i, grd_dutschecnfmstatlist.colRef("deptcd"));
  93. var iInstanceRowCnt = instance1.selectNodes("/root/main/savelist/cncllist").length + 1;
  94. model.makeValue("/root/main/savelist/cncllist[" + iInstanceRowCnt + "]/instcd", model.getValue("/root/send/retrparams/instcd"));
  95. model.makeValue("/root/main/savelist/cncllist[" + iInstanceRowCnt + "]/dutym", model.getValue("/root/send/retrparams/dutym"));
  96. model.makeValue("/root/main/savelist/cncllist[" + iInstanceRowCnt + "]/dutunitcd", sDutUnitCd);
  97. model.makeValue("/root/main/savelist/cncllist[" + iInstanceRowCnt + "]/appscheexecflag", "3");
  98. model.makeValue("/root/main/savelist/cncllist[" + iInstanceRowCnt + "]/txkind", sType);
  99. }
  100. }
  101. if(instance1.selectNodes("/root/main/savelist/cncllist").length > 0)
  102. {
  103. grd_cncllist.nodeset = "/root/main/savelist/cncllist";
  104. model.refresh();
  105. for(var i=0; i<grd_cncllist.rows; i++)
  106. {
  107. grd_cncllist.addStatus(i, "update");
  108. }
  109. misfSave("TXRPD01401");
  110. fRetrieve();
  111. }
  112. }
  113. function fConfirm()
  114. {
  115. }
  116. ]]>
  117. </script>
  118. </xhtml:head>
  119. <xhtml:body style="margin-left:8; margin-right:8; ">
  120. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  121. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">확정 마감 번표 현황 조회</caption>
  122. </group>
  123. <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  124. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  125. <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
  126. <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:162px; height:14px; ">확정 마감 번표 현황</caption>
  127. <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  128. <caption id="caption5" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
  129. <caption id="caption1" class="search_name" style="left:265px; top:19px; width:86px; height:17px; ">근무년월 :</caption>
  130. <input id="ipt_dutym" ref="/root/send/retrparams/dutym" class="input_search" navindex="2" inputtype="date" format="yyyy-mm" style="left:360px; top:18px; width:95px; height:19px; text-align:center; ">
  131. <script type="javascript" ev:event="xforms-value-changed">
  132. <![CDATA[
  133. var instcd = cmb_instcd.value;
  134. if( getStringLength(ipt_dutym.value) == "6" ) {
  135. model.removeNodeset(cmb_instcd.attribute("ref"));
  136. model.makeNode("/root/send/retrparams/instcd");
  137. misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","Y");
  138. cmb_instcd.value = instcd;
  139. model.refresh();
  140. }
  141. fRetrieve();
  142. ]]>
  143. </script>
  144. </input>
  145. <select1 id="cmb_instcd" ref="/root/send/retrparams/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:100px; top:18px; width:145px; height:19px; ">
  146. <choices>
  147. <itemset>
  148. <label/>
  149. <value/>
  150. </itemset>
  151. </choices>
  152. </select1>
  153. <button id="btn_dutdept" class="icon_search" style="left:643px; top:20px; width:16px; height:16px; ">
  154. <caption/>
  155. <script type="javascript" ev:event="DOMActivate">
  156. <![CDATA[
  157. // misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
  158. misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", cmb_instcd.value + "," + ipt_dutym.value+"31", "instcd,basedd");
  159. model.refresh();
  160. ]]>
  161. </script>
  162. </button>
  163. <caption id="caption2" class="search_name" style="left:477px; top:19px; width:88px; height:17px; ">근무부서 :</caption>
  164. <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" navindex="4" style="left:661px; top:18px; width:114px; height:19px; ">
  165. <script type="javascript" ev:event="onkeypress">
  166. <![CDATA[
  167. if(event.keyCode == 13)
  168. {
  169. if(ipt_dutdeptnm.value == ipt_dutdeptnm.currentText) return;
  170. ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
  171. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  172. model.refresh();
  173. }
  174. ]]>
  175. </script>
  176. <script type="javascript" ev:event="xforms-value-changed">
  177. <![CDATA[
  178. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  179. model.refresh();
  180. ]]>
  181. </script>
  182. </input>
  183. <input id="ipt_dutdeptcd" ref="/root/send/retrparams/dutunitcd" class="input_search" navindex="3" maxlength="10" style="left:565px; top:18px; width:75px; height:19px; text-align:center; ">
  184. <script type="javascript" ev:event="onkeypress">
  185. <![CDATA[
  186. if(event.keyCode == 13)
  187. {
  188. if(ipt_dutdeptcd.value == ipt_dutdeptcd.currentText) return;
  189. ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
  190. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  191. model.refresh();
  192. }
  193. ]]>
  194. </script>
  195. <script type="javascript" ev:event="xforms-value-changed">
  196. <![CDATA[
  197. misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
  198. model.refresh();
  199. ]]>
  200. </script>
  201. </input>
  202. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
  203. <caption>조회</caption>
  204. <script type="javascript" ev:event="DOMActivate">
  205. <![CDATA[
  206. fRetrieve();
  207. ]]>
  208. </script>
  209. </button>
  210. <datagrid id="grd_dutschecnfmstatlist" nodeset="/root/main/list/dutschecnfmstatlist" caption="부서코드^근무부서^실시번표작성여부^실시마감여부^확정마감여부^확정취소부서선택^집계여부^밤근무월제한일수" colsep="^" colwidth="100, 180, 110, 110, 110, 120, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:74px; width:1195px; height:656px; ">
  211. <col ref="deptcd"/>
  212. <col ref="deptnm"/>
  213. <col ref="execscheyn" style="text-align:center; "/>
  214. <col ref="execschecloseyn" style="text-align:center; "/>
  215. <col ref="cnfmyn" style="text-align:center; "/>
  216. <col checkvalue="Y,N" ref="chk" type="checkbox"/>
  217. <col ref="sumyn" visibility="hidden"/>
  218. <script type="javascript" ev:event="onaftersort">
  219. <![CDATA[
  220. grd_dutschecnfmstatlist.gridToInstance();
  221. ]]>
  222. </script>
  223. </datagrid>
  224. <select1 id="radio1" ref="/root/send/retrparams/cnfmyn" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:880px; top:20px; width:195px; height:20px; border-style:none; ">
  225. <choices>
  226. <item>
  227. <label>전체</label>
  228. <value/>
  229. </item>
  230. <item>
  231. <label>마감</label>
  232. <value>Y</value>
  233. </item>
  234. <item>
  235. <label>비마감</label>
  236. <value>N</value>
  237. </item>
  238. </choices>
  239. <script type="javascript" ev:event="xforms-value-changed">
  240. <![CDATA[
  241. btn_cnfmclose.disabled = false;
  242. btn_cnfmcncl.disabled = false;
  243. if(model.getValue("/root/send/retrparams/cnfmyn") == "Y")
  244. {
  245. btn_cnfmclose.disabled = true;
  246. }
  247. fRetrieve();
  248. ]]>
  249. </script>
  250. </select1>
  251. <caption id="caption3" class="search_name" style="left:795px; top:20px; width:88px; height:17px; ">마감여부 :</caption>
  252. <datagrid id="grd_cncllist" visibility="hidden" caption="기관^근무년월^부서^TX구분^번표유형^밤근무월제한일수" colsep="^" colwidth="70, 82, 74, 100, 100" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:1065px; top:75px; width:130px; height:116px; ">
  253. <col ref="instcd"/>
  254. <col ref="dutym"/>
  255. <col ref="dutunitcd" style="text-align:center; "/>
  256. <col ref="txkind"/>
  257. <col ref="appscheexecflag"/>
  258. </datagrid>
  259. </group>
  260. <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
  261. <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
  262. <button id="btn_cnfmclose" class="btn4_letter4" style="left:1033px; top:3px; width:80px; height:22px; ">
  263. <caption>확정마감</caption>
  264. <script type="javascript" ev:event="DOMActivate">
  265. <![CDATA[
  266. fConfirmCancel("Cnfm");
  267. ]]>
  268. </script>
  269. </button>
  270. <button id="btn_cnfmcncl" class="btn4_letter4" style="left:1115px; top:3px; width:80px; height:22px; ">
  271. <caption>확정취소</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. // if( model.getValue("/root/main/list/dutschecnfmstatlist/sumyn") == "Y" ) {
  275. // messageBox("이미 집계가 되었습니다. 집계내역 삭제후 진행해 주세요.","I999");
  276. // return;
  277. // }
  278. // else {
  279. fConfirmCancel("Cncl");
  280. // }
  281. ]]>
  282. </script>
  283. </button>
  284. </group>
  285. </xhtml:body>
  286. </xhtml:html>