123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>확정 마감 번표 현황 조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <dutschecnfmstatlist/>
- </list>
- <savelist>
- </savelist>
- </main>
- <send>
- <retrparams>
- <instcd/>
- <dutym/>
- <dutunitcd/>
- <dutunitnm/>
- <cnfmyn>N</cnfmyn>
- <kind>all</kind>
- <appscheexecflag>3</appscheexecflag>
- </retrparams>
- </send>
- <init/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <submission id="TRRPD01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/main/list"/>
- <submission id="TXRPD01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savelist/cncllist" resultref="/root/temp"/>
- <submission id="TXRPD02202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retrparams" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var DUT_UNIT_CD = "";
- var DUT_UNIT_NM = "";
-
- function fInitialize()
- {
- model.removenode("/root/main/list/dutschecnfmstatlist");
-
- model.setValue("/root/send/retrparams/dutym", getCurrentDate().substr(0, 6));
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+getCurrentDate().substr(6, 2),"","Y");
-
- misfMsterDetailSet(grd_dutschecnfmstatlist, null, "TRRPD01401", "N");
- misfMsterDetailSet(grd_cncllist, null, "TRRPD01401", "Y");
- model.setValue("/root/send/retrparams/instcd", getUserInfo("dutplceinstcd"));
- model.refresh();
- }
-
- function fRetrieve()
- {
- submit("TRRPD01401");
- }
-
- function fConfirmCancel(sType)
- {
- var sCheck = "N";
- var sDutUnitCd = "";
-
- var sMsg = "";
-
- if(sType == "Cnfm") sMsg = "확정 마감";
- else sMsg = "마감 취소";
-
- var dlgRslt = messageBox("선택하신 부서를 " + sMsg + " 하시겠습니까?", "Q999");
-
- if(dlgRslt != 6) return;
-
- model.removeNodeset("/root/main/savelist/cncllist");
-
- for(var i=1; i<grd_dutschecnfmstatlist.rows; i++)
- {
- sCheck = grd_dutschecnfmstatlist.valueMatrix(i, grd_dutschecnfmstatlist.colRef("chk"));
- sExecYn = grd_dutschecnfmstatlist.valueMatrix(i, grd_dutschecnfmstatlist.colRef("execschecloseyn"));
- sCnfmYn = grd_dutschecnfmstatlist.valueMatrix(i, grd_dutschecnfmstatlist.colRef("cnfmyn"));
- sDeptNm = grd_dutschecnfmstatlist.valueMatrix(i, grd_dutschecnfmstatlist.colRef("deptnm"));
-
- if(sCheck == "Y")
- {
- if(sType == "Cnfm" && (sCnfmYn == "Y" || sExecYn == "N"))
- {
- var sSubMsg = (sCnfmYn == "Y") ? "확정마감이 되었으므로 마감" : (sExecYn == "N") ? "실시마감이 되지 않았으므로 마감" : "마감";
- messageBox("[ " + sDeptNm + " ] 은(는) " + sSubMsg, "E001");
- continue;
- }
-
- if(sType == "Cncl" && sCnfmYn == "N") continue;
-
- sDutUnitCd = grd_dutschecnfmstatlist.valueMatrix(i, grd_dutschecnfmstatlist.colRef("deptcd"));
- var iInstanceRowCnt = instance1.selectNodes("/root/main/savelist/cncllist").length + 1;
-
- model.makeValue("/root/main/savelist/cncllist[" + iInstanceRowCnt + "]/instcd", model.getValue("/root/send/retrparams/instcd"));
- model.makeValue("/root/main/savelist/cncllist[" + iInstanceRowCnt + "]/dutym", model.getValue("/root/send/retrparams/dutym"));
- model.makeValue("/root/main/savelist/cncllist[" + iInstanceRowCnt + "]/dutunitcd", sDutUnitCd);
- model.makeValue("/root/main/savelist/cncllist[" + iInstanceRowCnt + "]/appscheexecflag", "3");
- model.makeValue("/root/main/savelist/cncllist[" + iInstanceRowCnt + "]/txkind", sType);
- }
- }
-
- if(instance1.selectNodes("/root/main/savelist/cncllist").length > 0)
- {
- grd_cncllist.nodeset = "/root/main/savelist/cncllist";
- model.refresh();
-
- for(var i=0; i<grd_cncllist.rows; i++)
- {
- grd_cncllist.addStatus(i, "update");
- }
-
- misfSave("TXRPD01401");
- fRetrieve();
- }
- }
-
- function fConfirm()
- {
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-right:8; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">확정 마감 번표 현황 조회</caption>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line13" class="line_4" style="x1:1110px; y1:16px; x2:1110px; y2:38px; "/>
- <caption id="caption278" class="tit_2" style="left:5px; top:54px; width:162px; height:14px; ">확정 마감 번표 현황</caption>
- <line id="line207" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
- <caption id="caption5" class="search_name" style="left:10px; top:19px; width:86px; height:17px; ">소속기관 :</caption>
- <caption id="caption1" class="search_name" style="left:265px; top:19px; width:86px; height:17px; ">근무년월 :</caption>
- <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; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_dutym.value) == "6" ) {
- model.removeNodeset(cmb_instcd.attribute("ref"));
- model.makeNode("/root/send/retrparams/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_dutym.value+"31","","Y");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- fRetrieve();
- ]]>
- </script>
- </input>
- <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; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_dutdept" class="icon_search" style="left:643px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- misfOpenPopUpList("02", ipt_dutdeptcd,"","dutunitcd,dutunitnm", cmb_instcd.value + "," + ipt_dutym.value+"31", "instcd,basedd");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:477px; top:19px; width:88px; height:17px; ">근무부서 :</caption>
- <input id="ipt_dutdeptnm" ref="/root/send/retrparams/dutunitnm" class="input_search" navindex="4" style="left:661px; top:18px; width:114px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_dutdeptnm.value == ipt_dutdeptnm.currentText) return;
- ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- </input>
- <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; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_dutdeptcd.value == ipt_dutdeptcd.currentText) return;
- ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
-
- ]]>
- </script>
- </button>
- <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; ">
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <col ref="execscheyn" style="text-align:center; "/>
- <col ref="execschecloseyn" style="text-align:center; "/>
- <col ref="cnfmyn" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="sumyn" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_dutschecnfmstatlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <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; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>마감</label>
- <value>Y</value>
- </item>
- <item>
- <label>비마감</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- btn_cnfmclose.disabled = false;
- btn_cnfmcncl.disabled = false;
- if(model.getValue("/root/send/retrparams/cnfmyn") == "Y")
- {
- btn_cnfmclose.disabled = true;
- }
- fRetrieve();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:795px; top:20px; width:88px; height:17px; ">마감여부 :</caption>
- <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; ">
- <col ref="instcd"/>
- <col ref="dutym"/>
- <col ref="dutunitcd" style="text-align:center; "/>
- <col ref="txkind"/>
- <col ref="appscheexecflag"/>
- </datagrid>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line4" class="line_6" style="x1:0px; y1:25; x2:1195px; y2:25; "/>
- <button id="btn_cnfmclose" class="btn4_letter4" style="left:1033px; top:3px; width:80px; height:22px; ">
- <caption>확정마감</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fConfirmCancel("Cnfm");
- ]]>
- </script>
- </button>
- <button id="btn_cnfmcncl" class="btn4_letter4" style="left:1115px; top:3px; width:80px; height:22px; ">
- <caption>확정취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // if( model.getValue("/root/main/list/dutschecnfmstatlist/sumyn") == "Y" ) {
- // messageBox("이미 집계가 되었습니다. 집계내역 삭제후 진행해 주세요.","I999");
- // return;
- // }
- // else {
- fConfirmCancel("Cncl");
- // }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|