123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <stndduttablelist/>
- </main>
- <send>
- <instcd/>
- <appym/>
- <deptcd/>
- <deptnm/>
- <stndduttablelist/>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <submission id="TRRPD02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stndduttablelist"/>
- <submission id="TXRPD02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" 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/dligclaznsmngtweb/js/RPD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- misfGridInit(grd_stndduttablelist);
- misfMsterDetailSet(grd_stndduttablelist,null,"TRRPD02101","N");
-
- //화면 권한 설정
- btn_search.disabled = !(checkAuth("R"));
- btn_save.disabled = !(checkAuth("X"));
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- model.removeNodeset("/root/main/stndduttablelist");
- model.resetInstanceNode("/root/send");
-
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- model.setValue("/root/send/appym", getCurrentDate().substr(0, 6));
- misfComboInstCdListMulti("cmb_instcd",getCurrentDate().substr(0, 8),"","Y");
- misfGetAndSetUserInfo();
- misfGetUserAuth();
- rpdfSetControlAuth();
- rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
- rpdfSetDutUnitCombo();
-
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/deptcd", DUT_UNIT_CD);
- model.setValue("/root/send/deptnm", DUT_UNIT_NM);
- model.refresh();
- if (cmb_dutplce.value == "")
- {
- cmb_dutplce.select(0);
- }
- if(cmb_dutplce.length == 1)
- {
- //rpdfSetControlByJobRespCd("ipt_appym,cmb_dutplce,btn_search,btn_save,btn_clear,btn_duttablecopy,btn_grdadd,btn_grddel,btn_excsave,btn_excadd");
- }
- }
- function fAddRow()
- {
- var appym = model.getValue("/root/send/appym");
- if(appym == "")
- {
- messageBox("적용년월을","C002");
- }
- else
- {
- //행추가를 누를시 근무년월을 입력한다.
- misfGridIUD(grd_stndduttablelist, "A");
- grd_stndduttablelist.editCell();
- model.refresh();
- }
- }
-
- function fRetrieve()
- {
- if(ipt_appym.value == "")
- {
- messageBox("적용년월을","C002");
- return;
- }
-
- misfMsterDetailRetrieve();
- }
-
- function fLoadExcel()
- {
- if(grd_stndduttablelist.row < 1)
- {
- var ret = messageBox("중복된 자료가 존재할 수 있습니다. 먼저 조회를 해주시기 바랍니다.","Q003");
- if (ret != 6) { // not OK
- return;
- }
- }
-
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_stndduttablelist.loadExcel(fileName);
-
- model.removenode("/root/main/stndduttablelist[1]");
- model.removenode("/root/main/stndduttablelist[1]");
- grd_stndduttablelist.rebuild();
- for(var i = 2 ; i < grd_stndduttablelist.rows; i++)
- {
- grd_stndduttablelist.addStatus(i,"insert");
- }
- model.refresh();
- }
- function fSave()
- {
- var updtdata = getGridUpdateData(grd_stndduttablelist);
-
- if (updtdata == "" ) {
- messageBox("변경된 데이터가","I004");
- return;
- }
- var null_check1 = "";
- var null_chech2 = "";
- for(var i = 1 ; i < grd_stndduttablelist.rows-1 ; i++)
- {
- null_check1 = model.getValue(grd_stndduttablelist.attribute("nodeset")+"[" + i + "]/appym");
- null_check2 = model.getValue(grd_stndduttablelist.attribute("nodeset")+"[" + i + "]/deptcd");
- if(null_check1 =="")
- {
- messageBox("적용년월","I003");
- return;
- }
- else if(null_check2 == "")
- {
- messageBox("부서코드","I003");
- return;
- }
- }
-
- misfSave("TXRPD02101");
- }
- function fReset()
- {
- var updtdata = getGridUpdateData(grd_stndduttablelist);
-
- if (updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
-
- if (ret != 6) // not OK
- {
- return;
- }
- }
- fInitialize();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:230px; height:14px; ">표준번표 관리</caption>
- <caption id="caption4" class="patient_text_black" style="left:922px; top:0px; width:272px; "/>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:68px; x2:1195px; y2:68px; "/>
- <group id="group4" style="left:0px; top:10px; width:1195; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption5" class="search_name" style="left:270px; top:9px; width:86px; height:17px; ">적용년월 :</caption>
- <line id="line3" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:482px; top:9px; width:125px; height:17px; ">관리부서 :</caption>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </button>
- <button id="btn_dutdept" class="icon_search" visibility="visible" style="left:659px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // misfOpenPopUpList("02", ipt_dutdeptcd, "", "deptcd,deptnm", cmb_instcd.value, "instcd");
- misfOpenPopUpList("02", ipt_dutdeptcd,"","deptcd,deptnm", cmb_instcd.value + "," + ipt_appym.value+"31", "instcd,basedd");
- ]]>
- </script>
- </button>
- <input id="ipt_appym" ref="/root/send/appym" class="input_s_essential" navindex="1" inputtype="date" format="yyyy-mm" style="left:355px; top:8px; width:100px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_appym.value) == "6" ) {
- model.removeNodeset(cmb_instcd.attribute("ref"));
- model.makeNode("/root/send/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_appym.value+"31","","N");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptcd" ref="/root/send/deptcd" class="input_search" navindex="2" visibility="visible" maxlength="10" style="left:574px; top:8px; width:80px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm", cmb_instcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutdeptcd.value = ipt_dutdeptcd.currentText;
-
- misfValidationCheck("02", "", "deptcd,deptnm", cmb_instcd.value, "instcd");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptnm" ref="/root/send/deptnm" class="input_search" navindex="3" visibility="visible" style="left:680px; top:8px; width:132px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "deptcd,deptnm", cmb_instcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_dutdeptnm.value = ipt_dutdeptnm.currentText;
-
- misfValidationCheck("02", "", "deptcd,deptnm", cmb_instcd.value, "instcd");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_dutplce" ref="/root/send/deptcd" class="combo_s_essential" visibility="visible" appearance="minimal" style="left:572px; top:8px; width:240px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/deptnm", cmb_dutplce.label);
- ]]>
- </script>
- </select1>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:100px; top:8px; width:145px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">소속기관 :</caption>
- </group>
- <caption id="caption8" class="tit_2" style="left:5px; top:54px; width:165px; height:13px; ">부서별 표준번표</caption>
- <button id="btn_grddel" class="btn2_letter3" style="left:1010px; top:47px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_stndduttablelist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:955px; top:47px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRow();
- ]]>
- </script>
- </button>
- <button id="btn_excadd" class="btn2_letter4" style="left:1131px; top:47px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fLoadExcel()
- ]]>
- </script>
- </button>
- <button id="btn_duttablecopy" class="btn2_letter5" visibility="hidden" style="left:878px; top:47px; width:75px; height:19px; text-align:left; ">
- <caption>번표COPY</caption>
- </button>
- <datagrid id="grd_stndduttablelist" nodeset="/root/main/stndduttablelist" class="text_center" caption="기관코드^근무년월^부서코드^부서명^월^월^월^화^화^화^수^수^수^목^목^목^금^금^금^토^토^토^일^일^일^밤근무
연속제한일수^밤근무
월제한일수^최초등록자ID^최초등록일시^최종등록자ID^최종등록일시^밤근무월제한일수|기관코드^근무년월^부서코드^부서명^D^E^N^D^E^N^D^E^N^D^E^N^D^E^N^D^E^N^D^E^N^밤근무
연속제한일수^밤근무
월제한일수^최초등록자ID^최초등록일시^최종등록자ID^최종등록일시^밤근무월제한일수" colsep="^" colwidth="57, 65, 90, 120, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 32, 105, 105" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:0px; top:73px; width:1195px; height:662px; focus-rect:visible; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="appym" format="yyyy-mm"/>
- <col disabled="true" ref="deptcd" type="inputbutton"/>
- <col disabled="true" ref="deptnm" type="input"/>
- <col ref="mondaypsncnt" type="input"/>
- <col ref="moneveningpsncnt" type="input"/>
- <col ref="monnightpsncnt" type="input"/>
- <col ref="tuesdaypsncnt" type="input"/>
- <col ref="tueseveningpsncnt" type="input"/>
- <col ref="tuesnightpsncnt" type="input"/>
- <col ref="weddaypsncnt" type="input"/>
- <col ref="wedeveningpsncnt" type="input"/>
- <col ref="wednightpsncnt" type="input"/>
- <col ref="thurdaypsncnt" type="input"/>
- <col ref="thureveningpsncnt" type="input"/>
- <col ref="thurnightpsncnt" type="input"/>
- <col ref="fridaypsncnt" type="input"/>
- <col ref="frieveningpsncnt" type="input"/>
- <col ref="frinightpsncnt" type="input"/>
- <col ref="satdaypsncnt" type="input"/>
- <col ref="sateveningpsncnt" type="input"/>
- <col ref="satnightpsncnt" type="input"/>
- <col ref="sundaypsncnt" type="input"/>
- <col ref="suneveningpsncnt" type="input"/>
- <col ref="sunnightpsncnt" type="input"/>
- <col ref="nightdutcontlimdayno" type="input"/>
- <col ref="nightdutmmlimdayno" type="input"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_stndduttablelist.col == grd_stndduttablelist.colRef("deptcd"))
- {
- misfOpenPopUpList("02", grd_stndduttablelist, "", "deptcd,deptnm");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- grid_oncopy();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_stndduttablelist.col == grd_stndduttablelist.colRef("deptcd") || grd_stndduttablelist.col == grd_stndduttablelist.colRef("deptnm"))
- {
- misfValidationCheck("02", "", "deptcd,deptnm" );
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- // if(event.keyCode == '9') {
- // if(grd_stndduttablelist.colDisabled(grd_stndduttablelist.col) == false) {
- // grd_stndduttablelist.editCell();
- // } else {
- //
- // grd_stndduttablelist.endEditCell();
- // }
- //
- // }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excsave" class="btn2_letter4" style="left:1065px; top:47px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp1.visible = true;
-
- // misfSaveExcel(grd_stndduttablelist);
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:12px; width:1195px; height:27px; ">
- <line id="line75" class="line_6" style="x1:0; y1:25; x2:1195; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1069px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSave();
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fReset();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|