123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617 |
- <?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>
- <stndduttabletrgtmanlist/>
- <dutdeptlist>
- </dutdeptlist>
- </main>
- <send>
- <instcd/>
- <appdd/>
- <posdeptcd/>
- <posdeptnm/>
- <dutunitcd/>
- <dutunitnm/>
- <emplno/>
- <emplnm/>
- <stndduttabletrgtmanlist/>
- <dummy/>
- <flag/>
- <dutdeptcd/>
- <dutdeptnm/>
- </send>
- <init/>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <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" src="../../../mis/humtrafactmngtweb/js/RPB001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRRPD01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dutdeptlist"/>
- <submission id="TRRPD01902" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stndduttabletrgtmanlist"/>
- <submission id="TXRPD01901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize()
- {
- misfGridInit(grd_dutdeptlist);
- misfGridInit(grd_stndduttabletrgtmanlist);
- misfMsterDetailSet(grd_dutdeptlist,null,"TRRPD01901","N");
- misfMsterDetailSet(grd_stndduttabletrgtmanlist,null, "TRRPD01902", "Y");
-
- model.resetInstanceNode("/root/send");
-
- // misfComboComCdListMulti("Z0007","cmb_instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_appdd.value,"","N");
- misfComboComCdListMulti("R0426","grd_stndduttabletrgtmanlist.untitle");
- misfGetAndSetUserInfo();
- misfGetUserAuth();
-
- rpdfSetControlAuth();
- //model.removeNode("/root/main/dutdeptlist");
- rpdfComboCdList(cmb_dutplce); // 권한별 근무부서 세팅
- rpdfSetDutUnitCombo();
-
- fSetComBoBind();
-
- model.setValue("/root/send/dutunitcd", DUT_UNIT_CD);
- model.setValue("/root/send/dutunitnm", DUT_UNIT_NM);
- model.setValue("/root/send/dutdeptcd", DUT_UNIT_CD);
- model.setValue("/root/send/dutdeptnm", DUT_UNIT_NM);
- model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
-
- if(getUserInfo("dutplceinstcd") == "001" && DUTY_PART_YN == "Y")
- {
- cmb_instcd.disabled = false;
- ipt_dutdeptcd.disabled = false;
- ipt_dutdeptnm.disabled = false;
- btn_dutdept.disabled = false;
- }
- else if ( DUTY_PART_YN == "Y" ) {
- ipt_dutdeptcd.disabled = false;
- ipt_dutdeptnm.disabled = false;
- btn_dutdept.disabled = false;
- }
- else
- {
- cmb_instcd.disabled = true;
- ipt_dutdeptcd.disabled = true;
- ipt_dutdeptnm.disabled = true;
- btn_dutdept.disabled = true;
- }
- //화면 권한 설정
- btn_save.disabled = !(checkAuth("X"));
- btn_search.disabled = !(checkAuth("X"));
-
- if(cmb_dutplce.length == 1)
- {
- //rpdfSetControlByJobRespCd("ipt_appdd,ipt_dutdeptcd,btn_dutdept,ipt_dutdeptnm,ipt_emplno,btn_empl,ipt_emplnm,btn_grdadd,btn_grddel,btn_excsave,btn_excadd,btn_search,btn_save,btn_clear");
- }
-
- //ipt_appdd.value = getCurrentDate();
- ipt_appdd.value = "20000101";
- model.refresh();
-
- var iRowIdx = grd_dutdeptlist.findRow(DUT_UNIT_CD, 0, grd_dutdeptlist.colRef("dutdeptcd"));
- if(iRowIdx > 0)
- {
- grd_dutdeptlist.row = iRowIdx;
- grd_dutdeptlist.select(iRowIdx, grd_dutdeptlist.colRef("dutdeptnm")) = true;
- grd_dutdeptlist.dispatch("ondblclick");
- }
- }
-
- function fSetComBoBind()
- {
- rpdfComboCdList(cmb_dutplce);
- model.copyNode("/root/init/cmb_dutplce","/root/init/combocd");
-
- if(instance1.selectNodes("/root/init/cmb_dutplce/combocodelist").length == 0)
- {
- model.removenode("/root/main/dutdeptlist");
- model.makeValue("/root/main/dutdeptlist/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/main/dutdeptlist/dutdeptcd", DUT_UNIT_CD);
- model.makeValue("/root/main/dutdeptlist/dutdeptnm", DUT_UNIT_NM);
- cmb_dutplce.value = DUT_UNIT_NM;
- }
- else
- {
- var bAdd = true;
- var iStartIdx = 0;
-
- for(var i=0; i<=instance1.selectNodes("/root/init/cmb_dutplce/combocodelist").length - 1; i++)
- {
- if(model.getValue("/root/init/cmb_dutplce/combocodelist[" + (i + 1) + "]/cdid") == DUT_UNIT_CD) bAdd = false;
- }
-
- if(bAdd)
- {
- iStartIdx++;
- model.makeValue("/root/main/dutdeptlist[" + iStartIdx + "]/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/main/dutdeptlist[" + iStartIdx + "]/dutdeptcd", DUT_UNIT_CD);
- model.makeValue("/root/main/dutdeptlist[" + iStartIdx + "]/dutdeptnm", DUT_UNIT_NM);
- }
-
- var iIdx = 1;
- for(var i=0; i<instance1.selectNodes("/root/init/cmb_dutplce/combocodelist").length ; i++)
- {
- model.makeValue("/root/main/dutdeptlist[" + (i + 1 + iStartIdx) + "]/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/main/dutdeptlist[" + (i + 1 + iStartIdx) + "]/dutdeptcd", model.getValue("/root/init/cmb_dutplce/combocodelist[" + (iIdx) + "]/cdid"));
- model.makeValue("/root/main/dutdeptlist[" + (i + 1 + iStartIdx) + "]/dutdeptnm", model.getValue("/root/init/cmb_dutplce/combocodelist[" + (iIdx) + "]/cdnm"));
-
- iIdx++;
- }
- }
-
- model.refresh();
- }
-
- function fRetrieve()
- {
- if(ipt_appdd.value == "")
- {
- messageBox("적용일자를","C002");
- return;
- }
-
- model.setValue("/root/send/flag", "1");
-
- misfMsterDetailRetrieve();
- grd_dutdeptlist.col = 2;
- model.refresh();
- }
-
- function fSave()
- {
- var updtdata = getGridUpdateData(grd_stndduttabletrgtmanlist);
-
- if (updtdata == "" )
- {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- var null_check1 = "";
- var null_chech2 = "";
-
- for(var i=1;i<=grd_stndduttabletrgtmanlist.rows-2;i++)
- {
- null_check1 = model.getValue(grd_stndduttabletrgtmanlist.attribute("nodeset")+"["+i+"]/emplno");
- null_check2 = model.getValue(grd_stndduttabletrgtmanlist.attribute("nodeset")+"["+i+"]/appdd");
-
- if(null_check1 =="")
- {
- messageBox("사원번호는","I003");
- return;
- }
- else if(null_check2 == "")
- {
- messageBox("적용일자는","I003");
- return;
- }
- }
-
- misfSave("TXRPD01901");
-
- grd_stndduttabletrgtmanlist.endEditCell();
- model.refresh();
- }
-
- function fReset()
- {
- var updtdata = getGridUpdateData(grd_stndduttabletrgtmanlist);
-
- if (updtdata != "")
- {
- var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 초기화 작업을","Q003");
- if (ret != 6) // not OK
- {
- return;
- }
- }
-
- fInitialize();
- }
-
- function fAddRow()
- {
- var null_check1 = ipt_appdd.value;
- if(null_check1 == "")
- {
- messageBox("적용일자를","C002");
- return;
- }
- misfGridIUD(grd_stndduttabletrgtmanlist,"A");
- grd_stndduttabletrgtmanlist.editCell();
- grd_stndduttabletrgtmanlist.col = 2;
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:0; margin-top:0; margin-right:0; 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="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:1070px; 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>
- <group id="group3" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <line id="line1" class="line_1" style="x1:264px; y1:68px; x2:1194px; y2:68px; "/>
- <group id="group4" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line3" class="line_4" style="x1:1110px; y1:4px; x2:1110px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption1" class="search_name" style="left:293px; top:9px; width:86px; height:17px; ">근무부서 :</caption>
- <caption id="caption2" class="search_name" style="left:617px; top:9px; width:86px; height:17px; ">사원번호 :</caption>
- <input id="ipt_emplno" ref="/root/send/emplno" class="input_search" navindex="6" style="left:703px; top:8px; width:70px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- if(ipt_emplno.value == ipt_emplno.currentText) return;
-
- ipt_emplno.value = ipt_emplno.currentText;
- rpbfValidationCheck("EMPLNO", "emplno,emplnm,dutunitcd,dutunitnm");
-
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_empl" class="icon_search" style="left:778px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rpbfOpenPopUpList("SPRPB00101", ipt_emplno, "emplno,emplnm,dutunitcd,dutunitnm", "", "N");
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_emplnm" ref="/root/send/emplnm" class="input_search" navindex="7" style="left:799px; top:8px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("01-2", "", "emplno,emplnm");
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- ipt_emplnm.value = ipt_emplnm.currentText;
-
- misfValidationCheck("01-2", "", "emplno,emplnm");
-
- model.setFocus("btn_search");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" navindex="8" style="left:1125px; top:7px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fRetrieve();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" visibility="hidden" style="left:135px; top:10px; width:86px; height:17px; ">적용일자 :</caption>
- <select1 id="cmb_dutplce" ref="/root/send/dutunitcd" class="combo_s_essential" visibility="hidden" appearance="minimal" style="left:380px; top:8px; width:79px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_appdd" ref="/root/send/appdd" class="input_s_essential" navindex="1" visibility="hidden" inputtype="date" appearance="input" style="left:221px; top:9px; width:90px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var instcd = cmb_instcd.value;
- if( getStringLength(ipt_appdd.value) == "8" ) {
- // model.removeNodeset(cmb_instcd.attribute("ref"));
- // model.makeNode("/root/send/instcd");
- misfComboInstCdListMulti("cmb_instcd",ipt_appdd.value,"","Y");
- cmb_instcd.value = instcd;
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptcd" ref="/root/send/dutunitcd" class="input_search" navindex="4" maxlength="10" style="left:380px; top:8px; width:80px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", 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", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_dutdeptnm" ref="/root/send/dutunitnm" class="input_search" navindex="5" style="left:483px; top:8px; width:120px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- misfValidationCheck("02", "", "dutunitcd,dutunitnm", 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", "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <button id="btn_dutdept" class="icon_search" style="left:464px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfOpenPopUpList("02", ipt_dutdeptcd, "", "dutunitcd,dutunitnm", cmb_instcd.value, "instcd");
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" navindex="1" appearance="minimal" style="left:102px; top:8px; width:153px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:14px; top:9px; width:86px; height:17px; ">소속기관 :</caption>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:54px; width:202px; height:14px; ">관리부서 목록</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:68px; x2:260px; y2:68px; "/>
- <caption id="caption3" class="tit_2" style="left:265px; top:54px; width:139px; height:13px; ">표준번표 적용대상자</caption>
- <datagrid id="grd_stndduttabletrgtmanlist" nodeset="/root/main/stndduttabletrgtmanlist" class="text_center" allowuserresize="false" caption="기관코드^사원번호^성명^직종^소속부서^현소속부서^근무부서^근무지^분류^팀^유닛^직군^직열^적용일자^근무유형^통상근무^통상근무^야간근무^야간근무^야간근무^정렬순서^flag|기관코드^사원번호^성명^직종^소속부서^현소속부서^근무부서^근무지^분류^팀^유닛^직군^직열^적용일자^근무유형^근무코드^근무코드명^Grade^순번^여부^정렬순서^flag" colsep="^" colwidth="0, 70, 70, 80, 0, 0, 0, 147, 89, 0, 0, 0, 0, 95, 80, 60, 113, 50, 44, 44, 40, 0" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:264px; top:73px; width:931px; height:670px; ">
- <col ref="instcd" visibility="hidden"/>
- <col class="input_essential" disabled="true" ref="emplno" type="inputbutton"/>
- <col disabled="true" ref="emplnm" type="input"/>
- <col ref="jobkindnm"/>
- <col ref="posdeptcd" visibility="hidden"/>
- <col ref="posdeptnm" visibility="hidden"/>
- <col ref="dutdeptcd" visibility="hidden"/>
- <col ref="dutdeptnm" style="text-align:left; "/>
- <col editmode="inputsearch" ref="untitle" type="combo" style="text-align:left; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col ref="teamcd" visibility="hidden"/>
- <col ref="unitcd" visibility="hidden"/>
- <col ref="grupjoblncd" visibility="hidden"/>
- <col ref="joblncd" visibility="hidden"/>
- <col class="input_essential" disabled="true" ref="appdd" type="inputdate" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="dutkindcd" type="combo">
- <choices>
- <item>
- <label>통상근무</label>
- <value>A</value>
- </item>
- <item>
- <label>격일제 근무</label>
- <value>B</value>
- </item>
- <item>
- <label>3교대근무</label>
- <value>C</value>
- </item>
- </choices>
- </col>
- <col ref="dutcd" type="inputbutton"/>
- <col ref="dutnm" type="input"/>
- <col ref="dutgrde" type="input"/>
- <col ref="dutseq" type="input"/>
- <col checkvalue="Y,N" ref="nigtdutyn" type="checkbox"/>
- <col ref="prntseq" type="input" style="text-align:right; "/>
- <col ref="flag" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_stndduttabletrgtmanlist.col == 2) //부서코드 버튼을 눌렀을 때
- {
- rpbfOpenPopUpList("SPRPB00101", grd_stndduttabletrgtmanlist, "emplno,emplnm", "", "N");
- }
- else if(grd_stndduttabletrgtmanlist.col == grd_stndduttabletrgtmanlist.colRef("dutcd")) //근무코드 버튼을 눌렀을 때
- {
- misfOpenPopUpList("09", grd_stndduttabletrgtmanlist, "", "dutcd,dutnm", cmb_instcd.value, "instcd");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_stndduttabletrgtmanlist.col == grd_stndduttabletrgtmanlist.colRef("nigtdutyn"))
- {
- var sYn = grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("nigtdutyn"));
- if(sYn == "Y")
- {
- grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("dutkindcd")) = "C";
- }
- else
- {
- grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("dutkindcd")) = "A";
- }
- }
- else if(grd_stndduttabletrgtmanlist.col == grd_stndduttabletrgtmanlist.colRef("dutkindcd"))
- {
- var sDutKind = grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("dutkindcd"));
- if(sDutKind == "C")
- {
- grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("nigtdutyn")) = "Y";
- }
- else
- {
- grd_stndduttabletrgtmanlist.valueMatrix(grd_stndduttabletrgtmanlist.row, grd_stndduttabletrgtmanlist.colRef("nigtdutyn")) = "N";
- }
- }
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_dutdeptlist" nodeset="/root/main/dutdeptlist" allowuserresize="false" caption="기관코드^부서 코드^부서 명|기관코드^부서 코드^부서 명" colsep="^" colwidth="0, 77, 150" mergecellsfixedrows="bycolrec" rowheader="select" rowheight="23" rowsep="|" style="left:0px; top:73px; width:260px; height:670px; ">
- <col ref="instcd" visibility="hidden"/>
- <col ref="dutdeptcd" style="text-align:center; "/>
- <col ref="dutdeptnm"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- if(JOB_RESP_CD == "1901" || JOB_RESP_CD == "1070" || grd_dutdeptlist.rows > 2)
- {
- // model.setValue("/root/send/dutunitcd", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptcd")));
- // model.setValue("/root/send/dutunitnm", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptnm")));
- // model.setValue("/root/send/flag", "1");
- //
- // submit("TRRPD01902");
- // model.dispatch("onmouseup");
- grd_dutdeptlist.dispatch("ondblclick");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(JOB_RESP_CD == "1901" || JOB_RESP_CD == "1070" || grd_dutdeptlist.rows > 2)
- {
- model.setValue("/root/send/dutunitcd", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptcd")));
- model.setValue("/root/send/dutunitnm", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptnm")));
- model.setValue("/root/send/dutdeptcd", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptcd")));
- model.setValue("/root/send/dutdeptnm", grd_dutdeptlist.valueMatrix(grd_dutdeptlist.row, grd_dutdeptlist.colRef("dutdeptnm")));
- model.setValue("/root/send/flag", "1");
- submit("TRRPD01902");
- for(var i=2; i<grd_stndduttabletrgtmanlist.rows; i++)
- {
- if(grd_stndduttabletrgtmanlist.valueMatrix(i, grd_stndduttabletrgtmanlist.colRef("flag")) == "0")
- {
- grd_stndduttabletrgtmanlist.addStatus(i, "insert");
- misfSetReadOnlyCol(grd_stndduttabletrgtmanlist, "appdd", false, i);
- grd_stndduttabletrgtmanlist.valueMatrix(i, grd_stndduttabletrgtmanlist.colRef("appdd")) = ipt_appdd.value;
-
- }
- }
-
- model.dispatch("onmouseup");
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_excadd" class="btn2_letter4" style="left:1130px; top:48px; width:64px; height:19px; text-align:left; ">
- <caption>엑셀입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_stndduttabletrgtmanlist.loadExcel(fileName);
- model.removenode("/root/main/stndduttabletrgtmanlist[1]");
- model.removenode("/root/main/stndduttabletrgtmanlist[1]");
- grd_stndduttabletrgtmanlist.rebuild();
- for(var i = 2 ; i < grd_stndduttabletrgtmanlist.rows; i++)
- {
- grd_stndduttabletrgtmanlist.addStatus(i,"insert");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" style="left:1009px; top:48px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfGridIUD(grd_stndduttabletrgtmanlist,"D");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:954px; top:48px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAddRow();
-
- ]]>
- </script>
- </button>
- <button id="btn_excsave" class="btn2_letter4" style="left:1064px; top:48px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- misfSaveExcel(grd_stndduttabletrgtmanlist);
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/send/dutdeptcd" style="left:480px; top:45px; width:25px; height:19px; "/>
- <output id="output2" ref="/root/send/dutdeptnm" style="left:515px; top:45px; width:25px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|