12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCMS00500_내부고객관리
- * Summary : 내부고객 관리
- * Programmer : 최정환
- * Date Written : 2007.09.05
- * History : 차재훈 2008.07.18
- * Remark :
- -->
- <?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>
- <list>
- <userlist>
- <innrclntflagnm/>
- <innrclntnm/>
- <mpphontel/>
- <detladdr/>
- <email/>
- <pid/>
- <memoyn/>
- <dutinstnm/>
- <dutdeptnm/>
- <jobrespcd/>
- <posinstnm/>
- <posdeptnm/>
- <innrgrupid/>
- <userid/>
- <innrclntflag/>
- <zipcd/>
- <zipcd1/>
- <zipcd2/>
- <innrclntid/>
- </userlist>
- </list>
- <innrgruplist>
- <innrgrupid/>
- <innrgrupnm/>
- <publyn/>
- <cretuserid/>
- </innrgruplist>
- <innrgrupflag/>
- </main>
- <send>
- <searchitem/>
- <flag/>
- <innrgrupid/>
- <innrgrupnm/>
- <innrgruplist/>
- <delinnrgruplist/>
- <publyn/>
- <data>
- <innrclntflag/>
- <searchtype>1</searchtype>
- <searchstring/>
- <searchtype2/>
- <innrclntnm/>
- <mpphonno/>
- <email/>
- <memo/>
- </data>
- </send>
- <sendfolder>
- <innrgrupattr>
- <savemode/>
- <innrgrupid/>
- <innrgrupnm/>
- <publyn/>
- <copymode/>
- <innrgruplist/>
- </innrgrupattr>
- </sendfolder>
- <temp>
- <key>
- <sndpid/>
- <inputmode/>
- </key>
- <smsinfo>
- <recvrlist>
- <chk/>
- <recvrnm/>
- <recvrtelno/>
- </recvrlist>
- </smsinfo>
- <list>
- <userlist>
- <innrclntnm/>
- <email/>
- <mpphontel/>
- <zipcd1/>
- <zipcd2/>
- <detladdr/>
- </userlist>
- </list>
- <userlist/>
- <copynode>
- <userlist>
- <innrclntnm/>
- <email/>
- <mpphontel/>
- <detladdr/>
- <innrgrupid/>
- <userid/>
- <innrclntflag/>
- <zipcd1/>
- <zipcd2/>
- <pid/>
- <innrclntid/>
- </userlist>
- </copynode>
- <deletenode>
- <userlist>
- <innrgrupid/>
- <innrclntid/>
- <innrclntflag/>
- </userlist>
- </deletenode>
- <copytype>0</copytype>
- <grupkey>
- <sndpublnm/>
- <sndinnrgrupnm/>
- <sndinnrgrupid/>
- </grupkey>
- <publkey>
- <fwdpublyn/>
- <fwdinnrgrupid/>
- </publkey>
- </temp>
- <init>
- <R0063list>
- <cdid/>
- <cdnm/>
- </R0063list>
- </init>
- <hidden>
- <grupinfo>
- <innrgrupid>0</innrgrupid>
- </grupinfo>
- <mouseinit>
- <mouserght>
- <label>SMS 발송하기</label>
- <func>fGetSMSTrsm</func>
- </mouserght>
- <mouserght>
- <label>메일 발송하기</label>
- <func>fGetEmailTrsm</func>
- </mouserght>
- <mouserght>
- <label>DM 발송하기</label>
- <func>fGetDMTrsm</func>
- </mouserght>
- <mouserght>
- <label/>
- <func/>
- </mouserght>
- <mouserght>
- <label>고객등록</label>
- <func>fInsNewInnrClnt</func>
- </mouserght>
- <mouserght>
- <label>상세보기</label>
- <func>fGetPopMember</func>
- </mouserght>
- <mouserght>
- <label>수정</label>
- <func>fUpdatePopMember</func>
- </mouserght>
- <mouserght>
- <label>삭제</label>
- <func>fDelInnrGrup</func>
- </mouserght>
- <mouserght>
- <label>복사</label>
- <func>copy2</func>
- </mouserght>
- <mouserght>
- <label>잘라내기</label>
- <func>move2</func>
- </mouserght>
- <mouserght>
- <label>파일로 저장</label>
- <func>fSaveExcel</func>
- </mouserght>
- <mouserght>
- <label>프린트</label>
- <func>fGetPrintList</func>
- </mouserght>
- </mouseinit>
- <mousecopy>
- <mouserght>
- <label>붙여넣기</label>
- <func>fGetAddGrid</func>
- </mouserght>
- <mouserght>
- <label/>
- <func/>
- </mouserght>
- <mouserght>
- <label>SMS 발송하기</label>
- <func>fGetSMSTrsm</func>
- </mouserght>
- <mouserght>
- <label>메일 발송하기</label>
- <func>fGetEmailTrsm</func>
- </mouserght>
- <mouserght>
- <label>DM 발송하기</label>
- <func>fGetDMTrsm</func>
- </mouserght>
- <mouserght>
- <label/>
- <func/>
- </mouserght>
- <mouserght>
- <label>고객등록</label>
- <func>fInsNewInnrClnt</func>
- </mouserght>
- <mouserght>
- <label>상세보기</label>
- <func>fGetPopMember</func>
- </mouserght>
- <mouserght>
- <label>수정</label>
- <func>fUpdatePopMember</func>
- </mouserght>
- <mouserght>
- <label>삭제</label>
- <func>fDelInnrGrup</func>
- </mouserght>
- <mouserght>
- <label>복사</label>
- <func>copy2</func>
- </mouserght>
- <mouserght>
- <label>잘라내기</label>
- <func>move2</func>
- </mouserght>
- <mouserght>
- <label>파일로 저장</label>
- <func>fSaveExcel</func>
- </mouserght>
- <mouserght>
- <label>프린트</label>
- <func>fGetPrintList</func>
- </mouserght>
- </mousecopy>
- <mousetree>
- <mouserghtset>
- <label>새폴더</label>
- <func>fNewFolder</func>
- </mouserghtset>
- <mouserghtset>
- <label>이름바꾸기</label>
- <func>fFolderNm</func>
- </mouserghtset>
- <mouserghtset>
- <label>삭제</label>
- <func>fDelFolder</func>
- </mouserghtset>
- <mouserghtset>
- <label/>
- <func/>
- </mouserghtset>
- <mouserghtset>
- <label>폴더복사</label>
- <func>fGetCopyFolder</func>
- </mouserghtset>
- <mouserghtset>
- <label>폴더붙여넣기</label>
- <func>fGetSaveFolder</func>
- </mouserghtset>
- </mousetree>
- </hidden>
- <fwd>
- <innrclntflag/>
- <innrgrupid/>
- <innrclntid/>
- <savemode/>
- <publyn/>
- </fwd>
- </root>
- </instance>
- <submission id="TRCCN00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/innrgruplist"/>
- <submission id="TRCMS00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
- <submission id="TRCMS00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
- <submission id="TXCMS00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXCMS00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXCMZ00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/sendfolder/innrgrupattr" replace="instance"/>
- <submission id="TXCMZ00302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var rePublnm = model.getValue("/root/temp/grupkey/sndpublnm")
- var reInnrgrupnm = model.getValue("/root/temp/grupkey/sndinnrgrupnm")
- var reInnrgrupid = model.getValue("/root/temp/grupkey/sndinnrgrupid")
-
- zbcfGetCodeList( new Array("R0063"), new Array("/root/init/R0063list"), true );
-
- group1.attribute("height") = 0;
- rdo_search.select(0);
- cmb_searchtype2.select(0);
-
- // 내부고객관리 그리드의 col을 초기화 시켜준다.
- model.removenodeset("/root/main/list/userlist"); // 내부고객관리 리스트
- model.removeNodeset("/root/main/innrgruplist"); // 내부고객관리 트리구조
- model.removeNodeset("/root/temp/userlist"); // 내부고객관리에서 그룹추가시 임시로 저장되는 내부고객정보
- model.removeNodeset("/root/temp/deletenode/userlist");//복사처리 그리드 초기화
- model.removeNodeset("/root/temp/copynode/userlist");
-
- if (( rePublnm == "" || rePublnm == null ) || ( reInnrgrupnm == "" || reInnrgrupnm == null ) || ( reInnrgrupid == "" || reInnrgrupid == null )) {
- // 개인주소록
- btn_n.selected = true;
- model.setValue("/root/send/innrgrupid", "");
- model.setValue("/root/send/publyn" , "N");
- model.resetInstanceNode("/root/main/innrgruplist");
- model.resetInstanceNode("/root/main/list/userlist");
- submit("TRCCN00501");
- trv_leftmenu.refresh();
- } else {
- if ( rePublnm == "개인" ) {
- // 개인주소록
- btn_n.selected = true;
- model.setValue("/root/send/publyn" , "N");
- } else {
- // 부서주소록
- btn_y.selected = true;
- model.setValue("/root/send/publyn" , "Y");
- }
-
- model.setValue("/root/send/innrgrupid", "");
- model.resetInstanceNode("/root/main/innrgruplist");
- model.resetInstanceNode("/root/main/list/userlist");
- submit("TRCCN00501");
- model.setValue("/root/send/innrgrupid", reInnrgrupid);
- submit("TRCMS00502");
-
- for(var i=0; i<trv_leftmenu.length; i++)
- {
- //if(trv_leftmenu.item(i).label == reInnrgrupnm)
- if(trv_leftmenu.item(i).value == reInnrgrupid)
- {
- // var path = trv_leftmenu.getItemPath(i, "/");
- // var curIndex = 0;
- // var node;
- //
- // for(var j=0; j<path.length; j++)
- // {
- // if(path.charAt(j) == '/')
- // {
- // node = path.substring(curIndex, j);
- // curIndex = j+1;
- // trv_leftmenu.expand(labelToIndex(node, trv_leftmenu), true);
- // }
- // }
-
- trv_leftmenu.select(i);
- return;
- }
- }
- }
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //==========================================================================//
- //목록 더블클릭시 종류에따라 환자는고객정보관리 화면으로 직원기타는 상세보기//
- //==========================================================================//
- function fGetPatEmpView() {
- var grid = grd_userbaseinfo;
- var pid = grid.valuematrix(grid.selectedRow(0),grid.colRef("pid"));
- var innrclntnm = grid.valuematrix(grid.selectedRow(0),grid.colRef("innrclntnm"));
- if(pid != ""){//환자일때
- if (messageBox("["+ innrclntnm +"] 고객정보 관리 화면으로 이동합니다.","Q003")==6) {
- model.setValue("/root/temp/key/sndpid", pid);
- navigate("SMCMS00400", "", "", "", "SMCMS00400", "/root/temp/key", "/root/temp/key");
- // window.load("SMCMS00400_고객정보내용.xrw", "", "", "", "/root/temp/key", "/root/temp/key");
- }else{
- return;
- }
- }else{ //교직원 기타
- fGetPopMember();//상세보기
- }
- }
- //======================//
- //새폴더 //
- //======================//
- function fNewFolder(){
- model.setValue("/root/sendfolder/innrgrupattr/savemode", "I");
- model.setValue("/root/sendfolder/innrgrupattr/publyn", model.getValue("/root/send/publyn"));
- fShowWndIptBox();
- }
-
- //======================//
- //폴더 이름바꾸기 //
- //======================//
- function fFolderNm(){
- model.setValue("/root/sendfolder/innrgrupattr/savemode", "U");
- var innrgrupid = model.getValue("/root/send/innrgrupid");
- var innrgrupnm = model.getValue("/root/send/innrgrupnm");
- if(innrgrupid != ""){
- model.setValue("/root/sendfolder/innrgrupattr/innrgrupid", innrgrupid);
- model.setValue("/root/sendfolder/innrgrupattr/innrgrupnm", innrgrupnm);
- model.setValue("/root/sendfolder/innrgrupattr/publyn", model.getValue("/root/send/publyn"));
- fShowWndIptBox();
- }else{
- messageBox("선택된 폴더가","I004");
- }
- }
-
- //======================//
- //폴더 삭제 //
- //======================//
- function fDelFolder(){
- model.setValue("/root/sendfolder/innrgrupattr/savemode", "D");
- var innrgrupid = model.getValue("/root/send/innrgrupid");
- if(innrgrupid != ""){
- if (messageBox("선택된 폴더를 ","Q001")==6){
- model.setValue("/root/sendfolder/innrgrupattr/innrgrupid", innrgrupid);
- submit("TXCMZ00302");
-
- model.setValue("/root/sendfolder/innrgrupattr/innrgrupid","");
- model.setValue("/root/sendfolder/innrgrupattr/innrgrupnm","");
- model.setValue("/root/sendfolder/innrgrupattr/savemode","");
- model.setValue("/root/sendfolder/innrgrupattr/publyn","");
-
- model.removeNodeset("/root/main/innrgruplist");
- model.removeNodeset("/root/main/list/userlist");
- model.refresh();
- // 내부고객그룹리스트
- submit("TRCCN00501");
- }
- }else{
- messageBox("선택된 폴더가","I004");
- }
- }
-
- //======================//
- // inputBox //
- //======================//
- function fShowWndIptBox(){
- if(event.clientY >= 750){
- var ypos = 750;
- }else{
- var ypos = event.clientY
- }
- group1.attribute("top") = ypos;
- group1.attribute("height") = 55;
- model.setFocus("ipt_setnm");
- model.refresh();
- }
-
- function fSearchClick(grid, param){
- var iSearchitem = param;
-
- grid.explorerbar = "sortshow";
- model.removeNodeset("/root/main/list/userlist");
- grid.rebuild();
-
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/searchitem", iSearchitem);
- model.setValue("/root/send/flag", rdo_search.value);
-
- submit("TRCMS00501");
- model.setValue("/root/main/innrgrupflag","N");
- }
-
- function fGroupOpen(grid) {
-
- var count = 0;
- for (i=0; i < grid.selectedRows; i++) {
-
- var innrclntid = grid.valuematrix(grid.selectedRow(i),1)
- var innrclntnm = grid.valuematrix(grid.selectedRow(i),2)
- var rrgstno = grid.valuematrix(grid.selectedRow(i),3)
- var posinstnm = grid.valuematrix(grid.selectedRow(i),4)
- var posinstcd = grid.valuematrix(grid.selectedRow(i),5)
- var posdeptnm = grid.valuematrix(grid.selectedRow(i),6)
- var deptcd = grid.valuematrix(grid.selectedRow(i),7)
- var email = grid.valuematrix(grid.selectedRow(i),12)
- var mpphontel = grid.valuematrix(grid.selectedRow(i),13)
-
- count = count + 1
- if (innrclntnm != "" && innrclntid != "") {
- model.makeValue("/root/temp/userlist[" + count + "]/innrclntid", innrclntid);
- model.makeValue("/root/temp/userlist[" + count + "]/innrclntnm", innrclntnm);
- model.makeValue("/root/temp/userlist[" + count + "]/rrgstno", rrgstno);
- model.makeValue("/root/temp/userlist[" + count + "]/posinstnm", posinstnm);
- model.makeValue("/root/temp/userlist[" + count + "]/posinstcd", posinstcd);
- model.makeValue("/root/temp/userlist[" + count + "]/posdeptnm", posdeptnm);
- model.makeValue("/root/temp/userlist[" + count + "]/deptcd", deptcd);
- model.makeValue("/root/temp/userlist[" + count + "]/email", email);
- model.makeValue("/root/temp/userlist[" + count + "]/mpphonno", mpphontel);
- model.makeValue("/root/temp/userlist[" + count + "]/innrgrupid", "");
- }
-
- }
-
- if (count == 0) {
- messageBox("고객그룹을 추가하시려면 먼저 고객을 ","C002");
- } else {
- modal("SPCMZ00400", "", "", "", "SPCMZ00400", "/root/temp", "/root/main/list");
- model.removeNodeset("/root/temp");
- }
- }
-
- // 선택된 내부그룹삭제
- function fDelInnrGrup() {
- var grid = grd_userbaseinfo;
- //var cur_row = grid.row; // 행 번호 가져오기
- var innrgrupflag = model.getValue("/root/main/innrgrupflag");
-
- deleteSelectedRows(grid, true); // 대상자 선택행 삭제
- }
-
- // 내부담당자 삭제를 처리한다.
- function fSaveInnrGrup(grid){
- var innrgrupflag = model.getValue("/root/main/innrgrupflag");
-
- if (innrgrupflag == "Y") {
- var updt_userbaseinfo_lnk = getGridUpdateData(grd_userbaseinfo);
- if (updt_userbaseinfo_lnk != "") {
- model.setValue("/root/send/innrgruplist", grid.getUpdateData());
- if ( submit("TXCMS00501") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- }
- submit("TRCMS00502");
- }
- } else {
- messageBox("내부고객이 아닌 사용자는 삭제할 수","I004");
- }
- }
-
- //==========================//
- //선택된 그리드 행 복사 //
- //==========================//
- function fGetCopyGrid() {
- model.setValue("/root/temp/copytype","0");//일반 복사
- model.removeNodeset("/root/temp/copynode/userlist");
- model.removeNodeset("/root/temp/deletenode/userlist");
-
- var grid = grd_userbaseinfo;
- var copygrid = grd_userlistcopy;
- var count = 0;
- for (i=0; i < grid.selectedRows; i++) {
- var userid = grid.valuematrix(grid.selectedRow(i),grid.colRef("userid"));
- var innrclntid = grid.valuematrix(grid.selectedRow(i),grid.colRef("innrclntid"));
- var innrclntnm = grid.valuematrix(grid.selectedRow(i),grid.colRef("innrclntnm"));
- var pid = grid.valuematrix(grid.selectedRow(i),grid.colRef("pid"));
- var innrgrupid = grid.valuematrix(grid.selectedRow(i),grid.colRef("innrgrupid"));
- var innrclntflag = grid.valuematrix(grid.selectedRow(i),grid.colRef("innrclntflag"));
- var email = grid.valuematrix(grid.selectedRow(i),grid.colRef("email"));
- var mpphontel = grid.valuematrix(grid.selectedRow(i),grid.colRef("mpphontel"));
- var detladdr = grid.valuematrix(grid.selectedRow(i),grid.colRef("detladdr"));
- var zipcd1 = grid.valuematrix(grid.selectedRow(i),grid.colRef("zipcd1"));
- var zipcd2 = grid.valuematrix(grid.selectedRow(i),grid.colRef("zipcd2"));
- if (innrclntid != "" ) {
- count = count + 1
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/userid", userid);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/innrclntid", innrclntid);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/innrclntnm", innrclntnm);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/pid", pid);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/innrgrupid", innrgrupid);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/innrclntflag", innrclntflag);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/email", email);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/mpphontel", mpphontel);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/detladdr", detladdr);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/zipcd1", zipcd1);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/zipcd2", zipcd2);
- }
- }
- model.refresh();
- }
-
- //==========================//
- //복사된 행 붙여넣기 //
- //==========================//
- function fGetAddGrid() {
- var copygrid = grd_userlistcopy;
- var delgrid = grd_userlistdel;
- var rcvgrid = grd_userbaseinfo;
- var innrgrupid = copygrid.valuematrix(1,copygrid.colRef("innrgrupid"));
- var rcvinnrgrupid = model.getValue("/root/send/innrgrupid");
- var gridupdate = "";
-
- if(innrgrupid == rcvinnrgrupid || rcvinnrgrupid == ""){
- messageBox("동일한 그룹에는 복사할 수","I004");
- }else{
- //복사처리
- for(i=1; i<copygrid.rows; i++){//복사할 그룹으로 아이디 바꿈
- model.makeValue("/root/temp/copynode/userlist[" + i + "]/innrgrupid",rcvinnrgrupid);
- }
- gridupdate = copygrid.getUpdateData();
- model.setValue("/root/send/innrgruplist", gridupdate);
- //복사후에 잘라내기이면
- if(model.getValue("/root/temp/copytype")=="1"){
- //행삭제
- gridupdate = delgrid.getUpdateData();
- model.setValue("/root/send/delinnrgruplist", gridupdate);
- model.removeNodeset("/root/temp/deletenode/userlist");
- model.removeNodeset("/root/temp/copynode/userlist");
- }
- submit("TXCMS00502");
-
- //결과 조회
- model.setValue("/root/send/innrgrupid", rcvinnrgrupid);
- submit("TRCMS00502");
- }
- model.refresh();
- }
-
- //==========================//
- //선택된 그리드 행 잘라내기 //
- //==========================//
- function fGetMoveGrid() {
- model.setValue("/root/temp/copytype","1");//잘라내기로 설정
- model.removeNodeset("/root/temp/deletenode/userlist");
- model.removeNodeset("/root/temp/copynode/userlist");
- var grid = grd_userbaseinfo;
- var copygrid = grd_userlistcopy;
- var delgrid = grd_userlistdel;
- var count = 0;
- for (i=0; i < grid.selectedRows; i++) {
- var userid = grid.valuematrix(grid.selectedRow(i),grid.colRef("userid"));
- var innrclntnm = grid.valuematrix(grid.selectedRow(i),grid.colRef("innrclntnm"));
- var innrclntid = grid.valuematrix(grid.selectedRow(i),grid.colRef("innrclntid"));
- var pid = grid.valuematrix(grid.selectedRow(i),grid.colRef("pid"));
- var innrgrupid = grid.valuematrix(grid.selectedRow(i),grid.colRef("innrgrupid"));
- var innrclntflag = grid.valuematrix(grid.selectedRow(i),grid.colRef("innrclntflag"));
- var email = grid.valuematrix(grid.selectedRow(i),grid.colRef("email"));
- var mpphontel = grid.valuematrix(grid.selectedRow(i),grid.colRef("mpphontel"));
- var detladdr = grid.valuematrix(grid.selectedRow(i),grid.colRef("detladdr"));
- var zipcd1 = grid.valuematrix(grid.selectedRow(i),grid.colRef("zipcd1"));
- var zipcd2 = grid.valuematrix(grid.selectedRow(i),grid.colRef("zipcd2"));
- grid.rowStatus(grid.selectedRow(i)) = 4;
-
- if (innrclntid != "" ) {
- count = count + 1
-
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/userid", userid);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/innrclntid", innrclntid);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/innrclntnm", innrclntnm);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/pid", pid);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/innrgrupid", innrgrupid);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/innrclntflag", innrclntflag);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/email", email);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/mpphontel", mpphontel);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/detladdr", detladdr);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/zipcd1", zipcd1);
- model.makeValue("/root/temp/copynode/userlist[" + count + "]/zipcd2", zipcd2);
-
- model.makeValue("/root/temp/deletenode/userlist[" + count + "]/innrclntid", innrclntid);
- model.makeValue("/root/temp/deletenode/userlist[" + count + "]/innrgrupid", innrgrupid);
- model.makeValue("/root/temp/deletenode/userlist[" + count + "]/innrclntflag", innrclntflag);
- }
- }
- model.refresh();
- }
-
- //==============================//
- //마우스 오른쪽 복사 //
- //==============================//
- function copy2(){
- fGetCopyGrid();
- fGetStatusIns(grd_userlistcopy);
- }
-
- //==============================//
- //마우스 오른쪽 잘라내기 //
- //==============================//
- function move2(){
- fGetMoveGrid();
- fGetStatusIns(grd_userlistcopy);
- fGetStatusDel(grd_userlistdel);
- }
-
- //=======================//
- //SMS보내기창 호출 //
- //=======================//
- function fGetSMSTrsm(){
- cczfSMSTrsmOpen("grid",grd_userbaseinfo,2,3,"","");
- }
-
- //=======================//
- //Email보내기창 호출 //
- //=======================//
- function fGetEmailTrsm(){
- cczfEmailTrsmOpen("grid",grd_userbaseinfo,3,"");
- }
-
- //=======================//
- //DM 보내기창 호출 //
- //=======================//
- function fGetDMTrsm(){
- cczfDMTrsmOpen(grd_userbaseinfo, 2, 17, 4, 6);
- }
-
- //=====================//
- //Excel저장 //
- //=====================//
- function fSaveExcel(){
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_userbaseinfo.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- }
- //=====================//
- //Excel불러오기 //
- //=====================//
- function fGetExcel(){
- var fileName = window.fileDialog("open", ",", false, "", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- grd_sample.loadExcel(fileName, 1, false);
- grd_sample.deleteRow(1);
- model.removeNodeset("/root/main/list/userlist");
-
- var sGrid = grd_sample;
- var sRows = grd_sample.rows;
- var rGrid = grd_userbaseinfo;
- var count = 0;
- for (i=1; i < sRows; i++) {
- var innrclntnm = sGrid.valuematrix(i,sGrid.colRef("innrclntnm"));
- var email = sGrid.valuematrix(i,sGrid.colRef("email"));
- var mpphontel = sGrid.valuematrix(i,sGrid.colRef("mpphontel"));
- var detladdr = sGrid.valuematrix(i,sGrid.colRef("detladdr"));
- var zipcd1 = sGrid.valuematrix(i,sGrid.colRef("zipcd1"));
- var zipcd2 = sGrid.valuematrix(i,sGrid.colRef("zipcd2"));
- var innrclntflag = "3";
- var innrclntflagnm = "기타";
- var innrgrupid = model.getValue("/root/send/innrgrupid");
- if (innrclntnm != "" ) {
- count = count + 1
- model.makeValue("/root/main/list/userlist[" + count + "]/innrclntnm", innrclntnm);
- model.makeValue("/root/main/list/userlist[" + count + "]/email", email);
- model.makeValue("/root/main/list/userlist[" + count + "]/mpphontel", mpphontel);
- model.makeValue("/root/main/list/userlist[" + count + "]/detladdr", detladdr);
- model.makeValue("/root/main/list/userlist[" + count + "]/zipcd1", zipcd1);
- model.makeValue("/root/main/list/userlist[" + count + "]/zipcd2", zipcd2);
- model.makeValue("/root/main/list/userlist[" + count + "]/innrclntflag", innrclntflag);
- model.makeValue("/root/main/list/userlist[" + count + "]/innrclntflagnm", innrclntflagnm);
- model.makeValue("/root/main/list/userlist[" + count + "]/innrgrupid", innrgrupid);
- }
- }
- model.refresh();
- }
-
- //상태 insert로
- function fGetStatusIns(grid){
- for(i=1; i<grid.rows; i++){
- grid.addStatus(i, "insert");
- }
- model.refresh();
- }
-
- //상태 delete로
- function fGetStatusDel(grid){
- for(i=1; i<grid.rows; i++){
- grid.addStatus(i, "delete");
- }
- model.refresh();
- }
-
- //==========================//
- //그리드 저장삭제를 실행한다//
- //==========================//
- function fSaveGridStatus(grid){
- var gridupdate = "";
- gridupdate = grid.getUpdateData();
- model.setValue("/root/send/innrgruplist", gridupdate);
- submit("TXCMS00502");
- }
-
- //==========================//
- //폴더 복사 //
- //==========================//
- function fGetCopyFolder() {
- var innrgrupid = model.getValue("/root/send/innrgrupid");
- if(innrgrupid != ""){
- model.setValue("/root/sendfolder/innrgrupattr/copymode", "Y");
- var grid = grd_userbaseinfo;
- var gridupdate = "";
-
- fGetStatusIns(grid);
- gridupdate = grid.getUpdateData();
- model.setValue("/root/sendfolder/innrgrupattr/innrgruplist", gridupdate);
- }else{
- messageBox("선택된 폴더가","I004");
- }
- }
-
- //==========================//
- //폴더 붙여넣기 //
- //==========================//
- function fGetSaveFolder() {
- if(model.getValue("/root/sendfolder/innrgrupattr/copymode")== "Y"){
- model.setValue("/root/sendfolder/innrgrupattr/savemode", "I");
- model.setValue("/root/sendfolder/innrgrupattr/publyn", model.getValue("/root/send/publyn"));
- fShowWndIptBox();
- }else{
- messageBox("붙여넣을 폴더가","I004");
- }
- }
- //============//
- //프린트 //
- //============//
- function fGetPrintList(){
- var rows = grd_userbaseinfo.rows;
- if(rows < 2){
- messageBox("출력할 목록이","I004");
- return;
- }
- exeReportPreview("RPCMS00100", "XMLSTR", "/root/main/list/userlist");
- }
- //=====================================//
- //팝업에서 목록추가한후 새로 고침 //
- //=====================================//
- function fGetRefreshTree(innrgrupid) {
- model.setValue("/root/send/innrgrupid", innrgrupid);
- submit("TRCMS00502");
- model.setValue("/root/main/innrgrupflag","Y");
- }
-
- //==========================//
- //목록 상세보기 //
- //==========================//
- function fGetPopMember() {
- var grid = grd_userbaseinfo;
- var innrgrupid = grid.valuematrix(grid.selectedRow(0),grid.colRef("innrgrupid"));
- var innrclntflag = grid.valuematrix(grid.selectedRow(0),grid.colRef("innrclntflag"));
- var innrclntid = grid.valuematrix(grid.selectedRow(0),grid.colRef("innrclntid"));
-
- model.setValue("/root/fwd/innrgrupid", innrgrupid);
- model.setValue("/root/fwd/innrclntflag", innrclntflag);
- model.setValue("/root/fwd/innrclntid", innrclntid);
- model.setValue("/root/fwd/savemode", "G");
- model.setValue("/root/fwd/publyn", model.getValue("/root/send/publyn"));
- modal("SPCMS00600", "", "", "", "SPCMS00600", "/root/fwd", "/root/fwd");
- }
-
- //==========================//
- //목록 수정 //
- //==========================//
- function fUpdatePopMember() {
- var grid = grd_userbaseinfo;
- var innrgrupid = grid.valuematrix(grid.selectedRow(0),grid.colRef("innrgrupid"));
- var innrclntflag = grid.valuematrix(grid.selectedRow(0),grid.colRef("innrclntflag"));
- var innrclntid = grid.valuematrix(grid.selectedRow(0),grid.colRef("innrclntid"));
- model.setValue("/root/fwd/innrgrupid", innrgrupid);
- model.setValue("/root/fwd/innrclntflag", innrclntflag);
- model.setValue("/root/fwd/innrclntid", innrclntid);
- model.setValue("/root/fwd/savemode", "U");
- model.setValue("/root/fwd/publyn", model.getValue("/root/send/publyn"));
- modal("SPCMS00600", "", "", "", "SPCMS00600", "/root/fwd", "/root/fwd");
- }
- //==========================//
- //목록 새로추가 기타 //
- //==========================//
- function fInsNewInnrClnt(){
- model.setValue("/root/fwd/innrclntflag", "0");
- model.setValue("/root/fwd/savemode", "I");
- model.setValue("/root/fwd/publyn", model.getValue("/root/send/publyn"));
- model.setValue("/root/fwd/innrgrupid", model.getValue("/root/send/innrgrupid"));
- modal("SPCMS00600", "", "", "", "SPCMS00600", "/root/fwd", "/root/fwd");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">고객그룹 : 주소록</caption>
- </group>
- <caption id="caption9" class="tit_2" style="left:225px; top:22px; width:150px; height:14px; ">그룹 리스트 조회</caption>
- <group id="grp_johe" style="left:225px; top:36px; width:970px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:970px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption33" class="search_name" style="left:25px; top:9px; width:86px; height:17px; ">분 류 :</caption>
- <select1 id="rdo_search" ref="/root/send/data/innrclntflag" class="s" navindex="1" appearance="full" cellspacing="5" cols="4" overflow="visible" style="left:101px; top:9px; width:219px; height:16px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>환자</label>
- <value>1</value>
- </item>
- <item>
- <label>교직원</label>
- <value>2</value>
- </item>
- <item>
- <label>기타</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:396px; top:9px; width:89px; height:17px; ">검색조건 :</caption>
- <select1 id="cmb_searchtype" ref="/root/send/data/searchtype" navindex="2" appearance="minimal" style="left:490px; top:8px; width:130px; height:19px; ">
- <choices>
- <item>
- <label>성명</label>
- <value>1</value>
- </item>
- <item>
- <label>휴대폰 번호</label>
- <value>2</value>
- </item>
- <item>
- <label>E-Mail</label>
- <value>3</value>
- </item>
- <item>
- <label>메모 내용</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_search_item" ref="/root/send/data/searchstring" class="input_default" navindex="3" style="left:625px; top:8px; width:160px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <line id="line13" style="x1:845px; y1:7px; x2:845px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="4" style="left:875px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/data/searchtype")=="1"){//이름조회
- model.setValue("/root/send/data/innrclntnm", model.getValue("/root/send/data/searchstring"));
- model.setValue("/root/send/data/mpphonno", "");
- model.setValue("/root/send/data/email", "");
- model.setValue("/root/send/data/memo", "");
- }else if(model.getValue("/root/send/data/searchtype")=="2"){//핸드폰 조회
- model.setValue("/root/send/data/mpphonno", model.getValue("/root/send/data/searchstring"));
- model.setValue("/root/send/data/innrclntnm", "");
- model.setValue("/root/send/data/email", "");
- model.setValue("/root/send/data/memo", "");
- }else if(model.getValue("/root/send/data/searchtype")=="3"){//email조회
- model.setValue("/root/send/data/email", model.getValue("/root/send/data/searchstring"));
- model.setValue("/root/send/data/innrclntnm", "");
- model.setValue("/root/send/data/mpphonno", "");
- model.setValue("/root/send/data/memo", "");
- }else if(model.getValue("/root/send/data/searchtype")=="4"){//메모 조회
- model.setValue("/root/send/data/memo", model.getValue("/root/send/data/searchstring"));
- model.setValue("/root/send/data/email", "");
- model.setValue("/root/send/data/innrclntnm", "");
- model.setValue("/root/send/data/mpphonno", "");
- }else{
- model.setValue("/root/send/data/innrclntnm", "");
- model.setValue("/root/send/data/mpphonno", "");
- model.setValue("/root/send/data/email", "");
- model.setValue("/root/send/data/memo", "");
- }
-
- submit("TRCMS00501");
-
- model.setFocus("grd_userbaseinfo");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_body" style="left:225px; top:71px; width:970px; height:682px; ">
- <button id="btn_cmpn" class="btn3_letter7" navindex="7" style="left:195px; top:13px; width:116px; height:22px; ">
- <caption>새주소록 (기타)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsNewInnrClnt();
- ]]>
- </script>
- </button>
- <button id="btn_excsave" class="btn2_letter4" style="left:795px; top:16px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "주소록엑셀", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_userbaseinfo.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter4" style="left:861px; top:16px; width:64px; height:19px; ">
- <caption>목록삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelInnrGrup(); // 선택된 내부고객그룹 삭제flag 표시
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter2" style="left:927px; top:16px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveGridStatus(grd_userbaseinfo);//저장
- //저장후 주소록 선택상황인지 체크후 조회
- if(model.getValue("/root/send/innrgrupid")!=""){
- submit("TRCMS00502");
- }else{
- submit("TRCMS00501");
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:38px; x2:970px; y2:38px; "/>
- <datagrid id="grd_userbaseinfo" nodeset="/root/main/list/userlist" caption="분 류^성 명^휴대전화^주 소^E-Mail^등록번호^메모^근무기관^근부부서^직책^소속기관^소속부서^메모" colwidth="54, 83, 100, 300, 150, 77, 30, 110, 130, 100, 110, 130, 300, 0, 0, 0, 0, 0, 0, 0" dataheight="23" ellipsis="true" explorerbar="sortshowmove" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" tooltip="true" style="left:0px; top:43px; width:970px; height:637px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <col ref="innrclntflagnm" style="text-align:center; "/>
- <col ref="innrclntnm" style="text-align:center; "/>
- <col ref="mpphontel" style="text-align:center; "/>
- <col ref="detladdr"/>
- <col ref="email"/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="memoyn" style="text-align:center; "/>
- <col ref="dutinstnm"/>
- <col ref="dutdeptnm"/>
- <col disabled="true" ref="jobrespcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/R0063list/R0063">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="posinstnm"/>
- <col ref="posdeptnm"/>
- <col ref="memo"/>
- <col ref="innrgrupid" visibility="hidden"/>
- <col ref="userid" visibility="hidden"/>
- <col ref="innrclntflag" visibility="hidden"/>
- <col ref="zipcd" visibility="hidden"/>
- <col ref="zipcd1" visibility="hidden"/>
- <col ref="zipcd2" visibility="hidden"/>
- <col ref="innrclntid" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- if(model.getValue("/root/temp/copynode/userlist/innrclntid")==""){
- window.setPopupMenu(true, "/root/hidden/mouseinit/mouserght", "label", "func", false);
- }else{
- window.setPopupMenu(true, "/root/hidden/mousecopy/mouserght", "label", "func", false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_userbaseinfo.row;
-
- if ((grd_userbaseinfo.row > 0) && grd_userbaseinfo.isCell(event.target)){
- fGetPatEmpView();
- }
- ]]>
- </script>
- </datagrid>
- <button id="btn_find" class="btn3_letter2" navindex="6" style="left:135px; top:13px; width:56px; height:22px; ">
- <caption>찾기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/temp/publkey/fwdpublyn", model.getValue("/root/send/publyn"));
- model.setValue("/root/temp/publkey/fwdinnrgrupid", model.getValue("/root/send/innrgrupid"));
-
- if(model.getValue("/root/send/data/searchtype2") =="1"){//환자
- modal("SPCMS00700", "", "", "", "SPCMS00700", "/root/temp/publkey", "/root/temp/publkey");
- }else{ //직원
- modal("SPCMS00800", "", "", "", "SPCMS00800", "/root/temp/publkey", "/root/temp/publkey");
- }
- ]]>
- </script>
- </button>
- <select1 id="cmb_searchtype2" ref="/root/send/data/searchtype2" navindex="5" appearance="minimal" style="left:10px; top:14px; width:120px; height:19px; ">
- <choices>
- <item>
- <label>환자</label>
- <value>1</value>
- </item>
- <item>
- <label>교직원</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <datagrid id="grd_userlistcopy" nodeset="/root/temp/copynode/userlist" visibility="hidden" caption="innrclntnm^email^mpphontel^detladdr^innrgrupid^userid^innrclntflag^zipcd1^zipcd2^pid^innrclntid" colsep="^" colwidth="60, 65, 71, 78, 40, 64, 42, 40, 41, 42, 71" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:260px; width:645px; height:145px; ">
- <col ref="innrclntnm"/>
- <col ref="email"/>
- <col ref="mpphontel"/>
- <col ref="detladdr"/>
- <col ref="innrgrupid"/>
- <col ref="userid"/>
- <col ref="innrclntflag"/>
- <col ref="zipcd1"/>
- <col ref="zipcd2"/>
- <col ref="pid"/>
- <col ref="innrclntid"/>
- </datagrid>
- <datagrid id="grd_userlistdel" nodeset="/root/temp/deletenode/userlist" visibility="hidden" caption="innrgrupid^innrclntid^innrclntflag" colsep="^" colwidth="69, 71, 81" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:665px; top:260px; width:270px; height:145px; ">
- <col ref="innrgrupid"/>
- <col ref="innrclntid"/>
- <col ref="innrclntflag"/>
- </datagrid>
- <datagrid id="grd_sample" nodeset="/root/temp/list/userlist" visibility="hidden" caption="성 명^E-Mail^휴대전화^우편번호(앞자리)^우편번호(뒷자리)^주 소" colwidth="83, 101, 101, 70, 70, 155" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" style="left:0px; top:413px; width:615px; height:257px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <col ref="innrclntnm"/>
- <col ref="email"/>
- <col ref="mpphontel"/>
- <col ref="zipcd1"/>
- <col ref="zipcd2"/>
- <col ref="detladdr"/>
- </datagrid>
- <button id="btn_sms" class="btn3_letter5" style="left:315px; top:13px; width:92px; height:22px; ">
- <caption>SMS전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfSMSTrsmOpen("grid", grd_userbaseinfo,2,3, "", "");
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:225px; top:751px; width:970px; height:29px; vertical-align:top; ">
- <button id="btn_select" class="btn2_letter4" style="left:0px; top:3px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grid = grd_userbaseinfo;
- var grid_rows = grid.rows-1;
- grid.selectionmode = "byrow";
- grid.select(1, 1, grid_rows, 1) = true;
- ]]>
- </script>
- </button>
- <button id="btn_release" class="btn2_letter4" style="left:67px; top:3px; width:64px; height:19px; ">
- <caption>전체해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var grid = grd_userbaseinfo;
- var grid_rows = grid.rows-1;
- grid.selectionmode = "byrow";
- grid.select(1, 1, grid_rows, 1) = false;
- ]]>
- </script>
- </button>
- <button id="btn_sample" class="btn2_letter4" style="left:762px; top:3px; width:64px; height:19px; ">
- <caption>샘플파일</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "주소록샘플", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_sample.saveExcel(fileName, "주소록", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- <button id="btn_insert" class="btn2_letter6" style="left:828px; top:3px; width:86px; height:19px; ">
- <caption>파일불러오기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/innrgrupid")==""){
- messageBox("선택된 그룹이","I004");
- return;
- }
- fGetExcel();
- fGetStatusIns(grd_userbaseinfo);
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn2_letter3" style="left:916px; top:3px; width:53px; height:19px; ">
- <caption>프린트</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetPrintList();
- ]]>
- </script>
- </button>
- </group>
- <group id="group12" style="left:0px; top:23px; width:215px; height:757px; ">
- <button id="btn_n" class="btn_sw" group="tab" style="left:0px; top:3px; width:71px; height:22px; ">
- <caption>개인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/innrgrupid", "");
- model.setValue("/root/send/publyn" , "N");
- model.resetInstanceNode("/root/main/innrgruplist");
- model.resetInstanceNode("/root/main/list/userlist");
-
- submit("TRCCN00501");
- trv_leftmenu.refresh();
- // model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_y" class="btn_sw" group="tab" style="left:72px; top:3px; width:71px; height:22px; ">
- <caption>부서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/innrgrupid", "");
- model.setValue("/root/send/publyn" , "Y");
- model.resetInstanceNode("/root/main/innrgruplist");
- model.resetInstanceNode("/root/main/list/userlist");
-
- submit("TRCCN00501");
- trv_leftmenu.refresh();
- //model.refresh();
- ]]>
- </script>
- </button>
- <treeview id="trv_leftmenu" ref="/root/main/innrgruplist" fullrowselect="true" itemsettype="depth" oneclickexpand="true" style="left:0px; top:25px; width:215px; height:703px; ">
- <itemset nodeset="/root/main/innrgruplist">
- <label ref="innrgrupnm"/>
- <value ref="innrgrupid"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var innrgrupid = trv_leftmenu.value;
- if (innrgrupid != "") {
- model.setValue("/root/send/innrgrupid", innrgrupid);
- submit("TRCMS00502");
- model.setFocus("grd_userbaseinfo");
- }
- trv_leftmenu.refresh();
- // model.refresh();
- ]]>
- </script>
- </treeview>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if(event.button == 3){
- var innrgrupid = trv_leftmenu.value;
- var innrgrupnm = trv_leftmenu.label;
- model.setValue("/root/send/innrgrupid", innrgrupid);
- model.setValue("/root/send/innrgrupnm", innrgrupnm);
-
- window.setPopupMenu(true, "/root/hidden/mousetree/mouserghtset", "label", "func", false);
- }
- ]]>
- </script>
- <!--<button id="btn_mnggrp" class="btn2_letter4" style="left:151px; top:731px; width:64px; height:19px; ">
- <caption>그룹관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPCMZ00300");
- ]]>
- </script>
- </button>-->
- </group>
- <group id="group1" style="left:31px; top:137px; width:164px; height:55px; background-color:#99ccff; border-color:#3366ff; border-style:solid; ">
- <caption id="caption4" style="left:5px; top:5px; width:41px; height:20px; font-weight:bold; vertical-align:middle; ">폴더명</caption>
- <input id="ipt_setnm" ref="/root/sendfolder/innrgrupattr/innrgrupnm" class="input_default" style="left:55px; top:5px; width:104px; height:19px; border-color:#3366ff; border-style:solid; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- inputEnterKey("btn_cnfm", "DOMActivate");
- var keycode = event.keyCode;
- if(keycode == 27){
- group1.attribute("height") = 0;
- model.setFocus("trv_leftmenu");
- return;
- }
- ]]>
- </script>
- </input>
- <button id="btn_cnfm" class="btn2_letter2" style="left:73px; top:26px; width:42px; height:19px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var foldernm = model.getValue("/root/sendfolder/innrgrupattr/innrgrupnm");
- if(foldernm != ""){
- submit("TXCMZ00301");
- group1.attribute("height") = 0;
- model.setFocus("trv_leftmenu");
- model.setValue("/root/sendfolder/innrgrupattr/innrgrupid","");
- model.setValue("/root/sendfolder/innrgrupattr/innrgrupnm","");
- model.setValue("/root/sendfolder/innrgrupattr/savemode","");
- model.setValue("/root/sendfolder/innrgrupattr/publyn","");
- model.setValue("/root/sendfolder/innrgrupattr/copymode", "");
-
- model.removeNodeset("/root/main/innrgruplist");
- model.refresh();
- // 내부고객그룹리스트
- submit("TRCCN00501");
- }else{
- messageBox("폴더명이 입력 되지","E007");
- model.setFocus("ipt_setnm");
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:117px; top:26px; width:42px; height:19px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group1.attribute("height") = 0;
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|