123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:my="http://www.comsquare.co.kr/example" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>사용자 E-mail 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <email>
- <emaillist/>
- </email>
- <regemail>
- <regemaillist/>
- </regemail>
- <emailinst>
- <emailinstlist/>
- </emailinst>
- </main>
- <send>
- <condition>
- <instcd/>
- <deptcd/>
- <depthngnm/>
- <emplno/>
- <emplnm/>
- <dutplcecd/>
- </condition>
- <regemail>
- <regemaillist/>
- </regemail>
- <emailinst>
- <emailinstlist/>
- </emailinst>
- <acntdept>
- <instcd/>
- <mngtcd>acntdept</mngtcd>
- </acntdept>
- <condition_one>
- <emplno/>
- <emplnm/>
- <dutplcecd/>
- </condition_one>
- </send>
- <init>
- <code>
- <codelist/>
- </code>
- </init>
- <hidden/>
- <source>
- <defaultvalue/>
- </source>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RAC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fResetForm();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //========================================================================================
- //화면 로드시 초기화 함수
- //========================================================================================
- function fResetForm()
- {
- misfComboComCdList("Z0007", cmb_instcd, "Y");
- model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
-
- model.removeNodeset("/root/main/email/emaillist");
- model.removeNodeset("/root/main/regemail/regemaillist");
- model.removeNodeset("/root/main/emailinst/emailinstlist");
-
- model.setValue("/root/send/condition/instcd", getUserInfo("dutplceinstcd"));
- model.setValue("/root/send/acntdept/instcd", getUserInfo("dutplceinstcd"));
-
- model.setValue(ipt_deptcd.attribute("ref"), getUserInfo("dutplcecd"));
- model.setValue(ipt_depthngnm.attribute("ref"), getUserInfo("dutplcenm"));
- model.setValue(ipt_emplno.attribute("ref"), getUserInfo("userid"));
- model.setValue(ipt_name.attribute("ref"), getUserInfo("usernm"));
- model.setValue(ipt_emplno_one.attribute("ref"), getUserInfo("userid"));
- model.setValue(ipt_name_one.attribute("ref"), getUserInfo("usernm"));
-
- model.setValue("/root/send/condition/dutplcecd", getUserInfo("dutplcecd"));
- model.setValue("/root/send/condition_one/dutplcecd", getUserInfo("dutplcecd"));
-
- submit("TRRAZ00001");
-
- if(model.getValue("/root/init/code/codelist/cdid") != getUserInfo("dutplcecd"))
- {
- ipt_deptcd.disabled = true;
- ipt_depthngnm.disabled = true;
- // ipt_emplno.disabled = true;
- // ipt_name.disabled = true;
- ipt_emplno_one.disabled = true;
- ipt_name_one.disabled = true;
-
- cap_instcd.visible = false;
- cmb_instcd.visible = false;
- }
- misfGridComboComCdList('Z0007', grd_regemaillist, "instcd");
- misfGridComboComCdList('Z0007', grd_emailinstlist, "instcd");
- model.refresh();
-
- btn_search.dispatch("DOMActivate");
- }
-
- //========================================================================================
- //코드 Validation Check
- //========================================================================================
- function fValidationCheck(vgbn, recvlist, pcdgrupid, pNextIndex, pValueControl, pNodeName, pRetrKind)
- {
- if(event.keyCode == 13 || event.name == "xforms-value-changed")
- {
- document.controls(event.currentTarget).value = document.controls(event.currentTarget).currentText;
- misfValidationCheck(vgbn, pcdgrupid, recvlist, pValueControl, pNodeName, pRetrKind);
- model.refresh();
-
- if (pNextIndex != "") {
- model.setFocus(pNextIndex);
- }
- }
- }
-
- //========================================================================================
- //부서코드 Help Open
- //========================================================================================
- function fOpenPopupDeptHelp(pControl, pInstance)
- {
- misfOpenPopUpList("11", pControl, "TRRBC00501", pInstance);
- model.refresh();
- }
-
- function fOpenPopupUserHelp(pCtrl, pInstance)
- {
- misfOpenPopUpList("01", pCtrl, "", pInstance);
- model.refresh();
- }
-
- //========================================================================================
- // 기본 기관 지정
- //========================================================================================
- function fSetDefault()
- {
- for(var i = grd_emailinstlist.fixedRows ; i < grd_emailinstlist.rows ; i++)
- {
- if(grd_regemaillist.valueMatrix(1, grd_regemaillist.colRef("instcd")) == grd_emailinstlist.valueMatrix(i, grd_emailinstlist.colRef("instcd")))
- {
- grd_emailinstlist.valueMatrix(i, grd_emailinstlist.colRef("selected")) = "true";
- break;
- }
- }
- }
- ]]>
- </script>
- <submission id="TRRAZ00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/acntdept" resultref="/root/init/code"/>
- <submission id="TXRAC01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/regemail/regemaillist" resultref="/root/temp"/>
- <submission id="TRRAC01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/main/email"/>
- <submission id="TRRAC01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition_one" resultref="/root/main/regemail"/>
- <submission id="TRRAC01203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition_one" resultref="/root/main/emailinst"/>
- <submission id="TXRAC01202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/emailinst/emailinstlist" resultref="/root/temp"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" 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; ">Email 관리</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:15px; width:1195px; height:769px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption7" class="search_name" style="left:16px; top:9px; width:85px; height:17px; ">부 서 :</caption>
- <line id="line5" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_deptcd" ref="/root/send/condition/deptcd" class="input_s_essential" navindex="2" style="left:104px; top:8px; width:76px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfDeptValidCheck("deptcd,depthngnm");
- ]]>
- </script>
- </input>
- <input id="ipt_depthngnm" ref="/root/send/condition/depthngnm" class="input_s_essential" navindex="3" style="left:205px; top:8px; width:140px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- racfDeptValidCheck("deptcd,depthngnm");
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/main/email/emaillist");
- if(grd_emaillist.rows > grd_emaillist.fixedRows)
- {
- misfSetReadOnlyCol(grd_emaillist, "dept_id,dept_name,user_id,authority", true);
-
- for(var i = grd_emaillist.fixedRows ; i < grd_emaillist.rows ; i++)
- {
- if(grd_emaillist.valueMatrix(grd_emaillist.row, grd_emaillist.colRef("password")) == "********")
- {
- misfSetReadOnlyCol(grd_emaillist, "password,cellphone,email", true);
- }
- }
-
- grd_emaillist.col = grd_emaillist.colRef("user_name");
- grd_emaillist.row = grd_emaillist.fixedRows;
- grd_emaillist.dispatch("onrowchanged");
- }
-
-
-
- ]]>
- </script>
- </button>
- <button id="btn_help" class="icon_search" style="left:184px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupDeptHelp(ipt_deptcd, "deptcd,depthngnm");
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:365px; top:10px; width:91px; height:17px; ">사 번 :</caption>
- <input id="ipt_name" ref="/root/send/condition/emplnm" class="input_s_essential" navindex="2" style="left:553px; top:9px; width:140px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("12", "emplno,emplnm", "", "btn_search");
- ]]>
- </script>
- </input>
- <button id="btn_emplno" class="icon_search" style="left:534px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupUserHelp(ipt_emplno, "emplno,emplnm");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_emplno" ref="/root/send/condition/emplno" class="input_s_essential" navindex="1" maxlength="8" style="left:455px; top:9px; width:76px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fValidationCheck("12", "emplno,emplnm", "", "btn_search");
- ]]>
- </script>
- </input>
- <select1 id="cmb_instcd" ref="/root/send/condition/instcd" class="combo_s_essential" disabled="false" navindex="1" visibility="hidden" appearance="minimal" style="left:835px; top:9px; width:210px; height:19px; ">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </select1>
- <caption id="cap_instcd" class="search_name" visibility="hidden" style="left:726px; top:10px; width:104px; height:17px; text-align:left; ">기 관 :</caption>
- </group>
- <caption id="caption9" class="tit_2" style="left:5px; top:75px; width:225px; height:13px; ">기관별 사용자 E-mail List</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:90px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:121px; x2:1194px; y2:121px; "/>
- <datagrid id="grd_emaillist" nodeset="/root/main/email/emaillist" caption="기관코드^관리부서^관리부서^사원번호^성명^비밀번호^핸드폰^E-mail^사용여부^권한" colsep="^" colwidth="0, 85, 120, 100, 100, 120, 90, 250, 80, 100" focuscolor="#ccffff" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" selectionmode="free" style="left:0px; top:95px; width:1194px; height:375px; ">
- <col ref="instcd"/>
- <col class="text_center" ref="dept_id"/>
- <col ref="dept_name"/>
- <col class="text_center" ref="user_id"/>
- <col class="text_center" ref="user_name"/>
- <col ref="password"/>
- <col ref="cellphone"/>
- <col ref="email"/>
- <col checkvalue="Y,N" disabled="false" ref="use_yn" type="checkbox"/>
- <col disabled="true" ref="authority" type="combo" style="text-align:center; vertical-align:middle; ">
- <choices>
- <item>
- <label>관리자</label>
- <value>0</value>
- </item>
- <item>
- <label>일반</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- if(grd_emaillist.col == grd_emaillist.colRef("dept_id"))
- {
- fOpenPopupDeptHelp(grd_emaillist, "dept_id,dept_name");
- }
- else if(grd_emaillist.col == grd_emaillist.colRef("user_id"))
- {
- fOpenPopupUserHelp(grd_emaillist, "user_id,user_name");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
-
- if(grd_emaillist.col == grd_emaillist.colRef("dept_id") || grd_emaillist.col == grd_emaillist.colRef("dept_name"))
- {
- misfValidationCheck("02", "", "dept_id,dept_name");
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- model.setValue(ipt_emplno_one.attribute("ref"), grd_emaillist.valueMatrix(grd_emaillist.row, grd_emaillist.colRef("user_id")));
- model.setValue(ipt_name_one.attribute("ref"), grd_emaillist.valueMatrix(grd_emaillist.row, grd_emaillist.colRef("user_name")));
- model.refresh();
- btn_search_one.dispatch("DOMActivate");
- grd_emaillist.dispatch("onmouseup");
-
-
- ]]>
- </script>
- </datagrid>
- <group id="group4" style="left:0px; top:500px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search_one" class="btn1_letter2" navindex="4" style="left:1123px; top:8px; width:56px; height:22px; text-align:left; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removeNodeset("/root/main/regemail/regemaillist");
- model.removeNodeset("/root/main/emailinst/emailinstlist");
- submit("TRRAC01202");
- submit("TRRAC01203");
-
- misfSetReadOnlyCol(grd_regemaillist, "dept_id,dept_name,user_id,email", true);
-
- if(model.getValue("/root/init/code/codelist/cdid") != getUserInfo("dutplcecd"))
- {
- misfSetReadOnlyCol(grd_regemaillist, "authority", true);
- }
-
- if(grd_regemaillist.valueMatrix(1, grd_regemaillist.colRef("password")) == "********")
- {
- misfSetReadOnlyCol(grd_regemaillist, "password", true);
- for(var i = grd_emailinstlist.fixedRows ; i < grd_emailinstlist.rows ; i++)
- {
- misfSetReadOnlyCol(grd_emailinstlist, "instcd,dept_id,dept_name", true);
- }
- }
-
- fSetDefault();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:15px; top:10px; width:91px; height:17px; ">사 번 :</caption>
- <input id="ipt_name_one" ref="/root/send/condition_one/emplnm" class="input_s_essential" navindex="2" style="left:203px; top:9px; width:140px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fValidationCheck("12", "emplno,emplnm", "", "btn_search");
- ]]>
- </script>
- </input>
- <button id="button3" class="icon_search" style="left:184px; top:11px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenPopupUserHelp(ipt_emplno_one, "emplno,emplnm");
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_emplno_one" ref="/root/send/condition_one/emplno" class="input_s_essential" navindex="1" maxlength="8" style="left:105px; top:9px; width:76px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13)
- {
- model.setFocus("btn_search");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- fValidationCheck("12", "emplno,emplnm", "", "btn_search");
- ]]>
- </script>
- </input>
- </group>
- <datagrid id="grd_regemaillist" nodeset="/root/main/regemail/regemaillist" caption="대표기관^대표기관부서^대표기관부서^사원번호^성명^다큐빌 가입 비밀번호^핸드폰^E-mail^사용여부^권한" colsep="^" colwidth="120, 85, 120, 100, 100, 130, 90, 250, 70, 100" focuscolor="#ccffff" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" selectionmode="free" style="left:0px; top:537px; width:1194px; height:75px; ">
- <col disabled="true" ref="instcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="text_center" ref="dept_id" type="inputbutton" editable="false"/>
- <col ref="dept_name" type="input"/>
- <col class="text_center" ref="user_id" type="inputbutton" editable="false"/>
- <col class="text_center" ref="user_name"/>
- <col ref="password" type="input"/>
- <col ref="cellphone" type="input"/>
- <col ref="email" type="input"/>
- <col checkvalue="Y,N" ref="use_yn" type="checkbox"/>
- <col ref="authority" type="combo" style="text-align:center; vertical-align:middle; ">
- <choices>
- <item>
- <label>관리자</label>
- <value>0</value>
- </item>
- <item>
- <label>일반</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- if(grd_regemaillist.col == grd_regemaillist.colRef("user_id"))
- {
- fOpenPopupUserHelp(grd_regemaillist, "user_id,user_name");
- for(var i = grd_emailinstlist.fixedRows ; i < grd_emailinstlist.rows ; i++)
- {
- grd_emailinstlist.valueMatrix(i, grd_emailinstlist.colRef("user_id")) = grd_regemaillist.valueMatrix(1,grd_regemaillist.colRef("user_id"));
- }
- }
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_delrow" class="btn2_letter3" visibility="hidden" style="left:170px; top:613px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var vRowCnt = 0;
- for(var i = grd_emailinstlist.fixedRows ; i < grd_emailinstlist.rows ; i++)
- {
- if(!(grd_emailinstlist.rowStatus(i) == 4 || grd_emailinstlist.rowStatus(i) == 5 || grd_emailinstlist.rowStatus(i) == 6))
- {
- vRowCnt = vRowCnt + 1;
- }
- }
- if(vRowCnt == 1)
- {
- messageBox("하나이상의 기관코드는 남아 있어야 합니다.","I000");
- return false;
- }
-
- misfGridIUD(grd_emailinstlist, "D");
-
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:380px; top:613px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(grd_regemaillist.valueMatrix(1, grd_regemaillist.colRef("password")) == "********")
- {
- messageBox("권한이 없습니다.","I000");
- return;
- }
-
- for(var i = grd_emailinstlist.fixedRows ; i < grd_emailinstlist.rows ; i++)
- {
- // 입력 수정 삭제 상태이면 더이상 추가 되지 않도록 예외처리, 입력하려는 기관(세션의 기관면 입력된다.)이 기존에 있으면 중복되지 못하도록 추가 제한 예외처리
- if(grd_emailinstlist.rowStatus(i) != 0 || grd_emailinstlist.valueMatrix(i, grd_emailinstlist.colRef("instcd")) == getUserInfo("dutplceinstcd"))
- {
- return false;
- }
- }
-
- var NewYN = "N";
- if((grd_regemaillist.rows - grd_regemaillist.fixedRows) == 0)
- {
- NewYN = "Y";
- misfGridIUD(grd_regemaillist, "A");
- grd_regemaillist.valueMatrix(grd_regemaillist.row, grd_regemaillist.colRef("instcd")) = getUserInfo("dutplceinstcd");
- }
-
- grd_regemaillist.valueMatrix(grd_regemaillist.row, grd_regemaillist.colRef("use_yn")) = "Y";
- grd_regemaillist.valueMatrix(grd_regemaillist.row, grd_regemaillist.colRef("authority")) = "2";
-
- if(NewYN == "Y" )
- {
- grd_regemaillist.valueMatrix(grd_regemaillist.row, grd_regemaillist.colRef("dept_id")) = getUserInfo("dutplcecd");
- grd_regemaillist.valueMatrix(grd_regemaillist.row, grd_regemaillist.colRef("dept_name")) = getUserInfo("dutplcenm");
- grd_regemaillist.valueMatrix(grd_regemaillist.row, grd_regemaillist.colRef("user_id")) = getUserInfo("userid");
- grd_regemaillist.valueMatrix(grd_regemaillist.row, grd_regemaillist.colRef("user_name")) = getUserInfo("usernm");
- }
-
- misfGridIUD(grd_emailinstlist, "A");
-
- grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("instcd")) = getUserInfo("dutplceinstcd");
- grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("user_id")) = getUserInfo("userid");
- grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("dept_id")) = getUserInfo("dutplcecd");
- grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("dept_name")) = getUserInfo("dutplcenm");
-
- misfSetReadOnlyCol(grd_regemaillist, "instcd", true);
- misfSetReadOnlyCol(grd_emailinstlist, "instcd", true);
- if(model.getValue("/root/init/code/codelist/cdid") != getUserInfo("dutplcecd"))
- {
- misfSetReadOnlyCol(grd_regemaillist, "use_yn,authority,dept_id,dept_name,user_id", true);
- misfSetReadOnlyCol(grd_emailinstlist, "dept_id,dept_name", true);
- }
-
- fSetDefault();
- ]]>
- </script>
- </button>
- <datagrid id="grd_emailinstlist" nodeset="/root/main/emailinst/emailinstlist" caption="기관^사원번호^관리부서^관리부서^선택" colsep="^" colwidth="100, 0, 100, 120, 60" focuscolor="#ccffff" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="16" rowsep="|" selectionmode="free" style="left:0px; top:633px; width:430px; height:135px; ">
- <col disabled="true" ref="instcd" type="combo">
- <choices>
- <itemset>
- <label/>
- <value/>
- </itemset>
- </choices>
- </col>
- <col class="text_center" ref="user_id" type="inputbutton"/>
- <col class="text_center" ref="dept_id" type="inputbutton" editable="false"/>
- <col ref="dept_name" type="input"/>
- <col ref="selected" type="radio"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_emailinstlist.col == grd_emailinstlist.colRef("dept_id"))
- {
- fOpenPopupDeptHelp(grd_emailinstlist, "dept_id,dept_name");
- }
- grd_emailinstlist.dispatch("xforms-value-changed");
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
-
- if(grd_emailinstlist.col == grd_emailinstlist.colRef("dept_id") || grd_emailinstlist.col == grd_emailinstlist.colRef("dept_name"))
- {
- misfValidationCheck("02", "", "dept_id,dept_name");
- model.refresh();
- }
- grd_emailinstlist.dispatch("xforms-value-changed");
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_emailinstlist.col == grd_emailinstlist.colRef("dept_id") && grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("selected")) == "true")
- {
- grd_regemaillist.valueMatrix(1, grd_regemaillist.colRef("dept_id")) = grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("dept_id"));
- grd_regemaillist.valueMatrix(1, grd_regemaillist.colRef("dept_name")) = grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("dept_name"));
- }
- else if(grd_emailinstlist.col == grd_emailinstlist.colRef("instcd") && grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("selected")) == "true")
- {
- grd_regemaillist.valueMatrix(1, grd_regemaillist.colRef("instcd")) = grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("instcd"));
- }
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if(grd_emailinstlist.isCell(event.target) && grd_emailinstlist.row >= grd_emailinstlist.fixedRows && grd_emailinstlist.col == grd_emailinstlist.colRef("selected"))
- {
- grd_regemaillist.valueMatrix(1, grd_regemaillist.colRef("instcd")) = grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("instcd"));
- grd_regemaillist.valueMatrix(1, grd_regemaillist.colRef("dept_id")) = grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("dept_id"));
- grd_regemaillist.valueMatrix(1, grd_regemaillist.colRef("dept_name")) = grd_emailinstlist.valueMatrix(grd_emailinstlist.row, grd_emailinstlist.colRef("dept_name"));
- grd_regemaillist.addStatus(1, "update");
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption1" class="tit_2" style="left:5px; top:485px; width:225px; height:13px; ">사용자 E-mail 등록</caption>
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:475px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(getGridUpdateData(grd_regemaillist) == "" && getGridUpdateData(grd_emailinstlist) == "")
- {
- messageBox("변경된 데이터가","I004");
- }
- else
- {
- for(var i = grd_regemaillist.fixedRows ; i < grd_regemaillist.rows ; i++)
- {
- if(grd_regemaillist.valueMatrix(i, grd_regemaillist.colRef("user_id")) == "")
- {
- messageBox("사번을 입력하세요!","I000");
- return false;
- }
- if(grd_regemaillist.valueMatrix(i, grd_regemaillist.colRef("email")) == "")
- {
- messageBox("E-mail 을 입력하세요!","I000");
- return false;
- }
-
- if(grd_regemaillist.valueMatrix(i, grd_regemaillist.colRef("password")) == "")
- {
- messageBox("비밀번호를 입력하세요!","I000");
- return false;
- }
- }
-
- for(var i = grd_emailinstlist.fixedRows ; i < grd_emailinstlist.rows ; i++)
- {
- if(grd_emailinstlist.valueMatrix(i, grd_emailinstlist.colRef("dept_id")) == "")
- {
- messageBox("부서를 선택하세요!","I000");
- return false;
- }
- }
-
- model.setValue("/root/send/regemail/regemaillist", grd_regemaillist.getUpdateData());
- submit("TXRAC01201");
-
- model.setValue("/root/send/emailinst/emailinstlist", grd_emailinstlist.getUpdateData());
- submit("TXRAC01202");
-
- btn_search.dispatch("DOMActivate");
- btn_search_one.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </button>
- <button id="btn_alldelrow" class="btn2_letter4" visibility="hidden" style="left:225px; top:613px; width:53px; height:19px; ">
- <caption>전체삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ret = messageBox("삭제하시겠습니까?","Q999");
- if (ret == "6")
- {
- misfGridIUD(grd_regemaillist, "D");
- for(var i = grd_emailinstlist.fixedRows ; i < grd_emailinstlist.rows ; i++)
- {
- grd_emailinstlist.row = i;
- misfGridIUD(grd_emailinstlist, "D");
- }
- btn_save.dispatch("DOMActivate");
- }
-
- ]]>
- </script>
- </button>
- <caption id="caption3" style="left:10px; top:50px; width:1160px; height:20px; font-weight:bold; color:#ff0000; text-align:left; ">주의 : 전자세금계산서용 E-mail은 입력 후 수정 / 삭제를 할 수 없습니다. 정확히 입력하세요.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|