123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * Name : SMCMS00200_VOC고객목록조회
- * Summary : 고객 목록조회
- * Programmer : 최정환
- * Date Written : 2007.03.29
- * History : 2007.05.23 김준규 수정
- * Remark :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>고객 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <patlist>
- <hngnm/>
- <pid/>
- <sex/>
- <age/>
- <lastchosdt/>
- <fstchosdt/>
- <mpphontel/>
- <hometel/>
- <zipcd/>
- <address/>
- <email/>
- <btype/>
- <rh/>
- <vipyn/>
- <chchnm/>
- <recmerid/>
- <smsaprvyn/>
- <emailuseaprvyn/>
- <postdeliveuseyn/>
- <inhospyn/>
- <dethyn/>
- </patlist>
- </list>
- </main>
- <temp>
- <smsinfo>
- <recvrlist>
- <chk/>
- <recvrnm/>
- <recvrtelno/>
- </recvrlist>
- </smsinfo>
- <emailinfo>
- <recvremail/>
- </emailinfo>
- <patinfo/>
- </temp>
- <send>
- <data>
- <srchfstchosdd1/>
- <srchfstchosdd2/>
- <srchpid/>
- <srchhometel/>
- <srchlastchosdd1/>
- <srchlastchosdd2/>
- <srchhngnm/>
- <srchmpphontel/>
- <srchaddresult/>
- </data>
- <key>
- <sndpid/>
- <inputmode/>
- </key>
- <grupinfo>
- <lrgrupgcd/>
- <mdlgrupcd/>
- <smlgrupcd>0</smlgrupcd>
- </grupinfo>
- <sendlist/>
- </send>
- </root>
- </instance>
- <submission id="TRCMS00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
- <submission id="TRCMS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/grupinfo" replace="instance" resultref="/root/main/list"/>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- var reSmlGrupCD = model.getValue("/root/send/grupinfo/smlgrupcd")
- model.setValue("/root/hidden/grupinfo/smlgrupcd", reSmlGrupCD);
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var reSrchAddResult = model.getValue("/root/send/data/srchaddresult");
- var reSmlGrupCD = model.getValue("/root/send/grupinfo/smlgrupcd")
- var reSrchFstCHosDD1 = model.getValue("/root/send/data/srchfstchosdd1")
- var reSrchFstCHosDD2 = model.getValue("/root/send/data/srchfstchosdd2")
- var reSrchPID = model.getValue("/root/send/data/srchpid")
- var reSrchHomeTel = model.getValue("/root/send/data/srchhometel")
- var reSrchLastCHosDD1 = model.getValue("/root/send/data/srchlastchosdd1")
- var reSrchLastCHosDD2 = model.getValue("/root/send/data/srchlastchosdd2")
- var reSrchHngNm = model.getValue("/root/send/data/srchhngnm")
- var reSrchMPPhonTel = model.getValue("/root/send/data/srchmpphontel")
- if ( reSmlGrupCD == "0" ) {
- if ( (reSrchFstCHosDD1 == "" || reSrchFstCHosDD1 == null) && (reSrchFstCHosDD2 == "" || reSrchFstCHosDD2 == null) && (reSrchPID == "" || reSrchPID == null) && (reSrchHomeTel == "" || reSrchHomeTel == null) && (reSrchLastCHosDD1 == "" || reSrchLastCHosDD1 == null) && (reSrchLastCHosDD2 == "" || reSrchLastCHosDD2 == null) && (reSrchHngNm == "" || reSrchHngNm == null) && (reSrchMPPhonTel == "" || reSrchMPPhonTel == null ) ){
- if ( reSrchAddResult == "Y" ) {
- } else {
- model.removeNodeset("/root/main/list");
- }
- } else {
- model.makeNode("/root/main/list/patlist");
- copyNodeListType("/root/main/list", "/root/send/sendlist/patlist" );
- model.SetFocus("grd_patlist");
- }
- } else {
- submit("TRCMS00101");
- // model.setValue("/root/hidden/grupinfo/smlgrupcd", reSmlGrupCD);
- model.SetFocus("grd_patlist");
- }
- fCheckAuth();
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- if (!checkAuth("r")) {
- btnicon_search3.disabled = true;
- btnicon_search4.disabled = true;
- btn_search.disabled = true;
- btn_list.disabled = true;
- }
- if (!checkAuth("x")) {
- btn_sms.disabled = true;
- btn_email.disabled = true;
- btn_dm.disabled = true;
- btn_cmpn.disabled = true;
- btn_addgrup.disabled = true;
- btn_rgst.disabled = true;
- }
- if (!checkAuth("p")) {
- btn_excsave.disabled = true;
- }
- }
-
- function fGroupOpen(grid) {
-
- var count = 0;
-
- for (i=1; i < grid.rows; i++) {
- if (grid.isselected(i) == true) {
- var recvrnm = grid.valuematrix(i,1)
- var recvrpid = grid.valuematrix(i,2)
- var recvrsex = grid.valuematrix(i,3)
- var recvrage = grid.valuematrix(i,4)
- var recvrtel = grid.valuematrix(i,7)
-
- if (recvrnm != "" && recvrpid != "") {
- count = count + 1
- model.makeValue("/root/temp/patinfo/patlist[" + count + "]/hngnm", recvrnm);
- model.makeValue("/root/temp/patinfo/patlist[" + count + "]/pid", recvrpid);
- model.makeValue("/root/temp/patinfo/patlist[" + count + "]/sex", recvrsex);
- model.makeValue("/root/temp/patinfo/patlist[" + count + "]/age", recvrage);
- model.makeValue("/root/temp/patinfo/patlist[" + count + "]/mpphontel", recvrtel);
- model.makeValue("/root/temp/patinfo/patlist[" + count + "]/lrggroupcd", "");
- model.makeValue("/root/temp/patinfo/patlist[" + count + "]/mdlgroupcd", "");
- model.makeValue("/root/temp/patinfo/patlist[" + count + "]/smlgroupcd", "");
- }
- }
- }
-
- if (count == 0) {
- messageBox("고객그룹을 추가하시려면 먼저 고객을 ","C002");
- } else {
- modal("SPCMZ00200", "", "", "", "SPCMZ00200", "/root/temp/patinfo", "/root/main/list");
- model.removeNodeset("/root/temp/patinfo");
- }
- }
- ]]>
- </script>
- </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="../../../crm/crmweb/js/CCZ001.js"/>
- </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>
- <select id="chk_healexamyn" ref="/root/send/data/srchaddresult" overflow="hidden" appearance="full" style="left:1025px; top:18px; width:167px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>기존 결과에 추가해서 검색</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <group id="grp_johe" style="left:225px; top:36px; width:970px; height:59px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:970px; height:59px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:111px; height:17px; ">신환등록일 :</caption>
- <input id="ipt_fstchosdd1" ref="/root/send/data/srchfstchosdd1" class="input_search" navindex="1" inputtype="date" style="left:118px; top:8px; width:120px; height:19px; "/>
- <caption id="caption3" class="search_no_b" style="left:243px; top:9px; width:12px; height:17px; ">~</caption>
- <input id="ipt_fstchosdd2" ref="/root/send/data/srchfstchosdd2" class="input_search" navindex="2" inputtype="date" style="left:258px; top:8px; width:120px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:394px; top:9px; width:87px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid" ref="/root/send/data/srchpid" class="input_search" navindex="3" style="left:483px; top:9px; width:107px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btnicon_search3" class="icon_search" style="left:593px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var search_condition = "pid";
- var search_term = model.getValue("/root/send/data/srchpid");
- var receive_pid_path = "/root/send/data/srchpid";
- var receive_patnm_path = "";
-
- setParameter("search_condition", search_condition);
- setParameter("search_term", search_term);
- setParameter("receive_pid_path", receive_pid_path);
- setParameter("receive_patnm_path", receive_patnm_path);
-
- modal("SPCCM00100");
-
- clearParameter("search_condition");
- clearParameter("search_term");
- clearParameter("receive_pid_path");
- clearParameter("receive_patnm_path");
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:640px; top:9px; width:100px; height:17px; ">집전화번호 :</caption>
- <input id="ipt_hometel" ref="/root/send/data/srchhometel" class="input_search" navindex="4" style="left:743px; top:9px; width:130px; height:17px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption6" class="search_name" style="left:15px; top:33px; width:100px; height:17px; ">최종내원일 :</caption>
- <caption id="caption8" class="search_name" style="left:394px; top:33px; width:86px; height:17px; ">이 름 :</caption>
- <line id="line1" class="line_4" style="x1:883px; y1:7px; x2:883px; y2:53px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:898px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var reSrchFstCHosDD1 = model.getValue("/root/send/data/srchfstchosdd1");
- var reSrchFstCHosDD2 = model.getValue("/root/send/data/srchfstchosdd2");
- var reSrchPID = model.getValue("/root/send/data/srchpid");
- var reSrchHomeTel = model.getValue("/root/send/data/srchhometel");
- var reSrchLastCHosDD1 = model.getValue("/root/send/data/srchlastchosdd1");
- var reSrchLastCHosDD2 = model.getValue("/root/send/data/srchlastchosdd2");
- var reSrchHngNm = model.getValue("/root/send/data/srchhngnm");
- var reSrchMPPhonTel = model.getValue("/root/send/data/srchmpphontel");
- var reSrchMPPhonTel = model.getValue("/root/send/data/srchmpphontel");
- var reSrchAddResult = model.getValue("/root/send/data/srchaddresult");
-
- model.setValue("/root/hidden/grupinfo/smlgrupcd", "0");
-
- if ( (reSrchFstCHosDD1 == "" || reSrchFstCHosDD1 == null) && (reSrchFstCHosDD2 == "" || reSrchFstCHosDD2 == null) && (reSrchPID == "" || reSrchPID == null) && (reSrchHomeTel == "" || reSrchHomeTel == null) && (reSrchLastCHosDD1 == "" || reSrchLastCHosDD1 == null) && (reSrchLastCHosDD2 == "" || reSrchLastCHosDD2 == null) && (reSrchHngNm == "" || reSrchHngNm == null) && (reSrchMPPhonTel == "" || reSrchMPPhonTel == null ) ){
- messageBox("적어도 하나 이상의 조건을 ", "C002");
- } else if ( ( ipt_hngnm.value.length > 0 ) && (ipt_hngnm.value.length < 2) ){
- messageBox("고객 이름 검색은 최소 2글자 이상 ", "C001");
- model.setFocus("ipt_hngnm");
- } else {
- if ( reSrchAddResult == "Y" ) {
- TRCMS00201.attribute("add") = "bottom";
- } else {
- model.removeNodeset("/root/main/list/patlist");
- }
- submit("TRCMS00201");;
- model.SetFocus("grd_patlist");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <input id="ipt_lastchosdd1" ref="/root/send/data/srchlastchosdd1" class="input_search" inputtype="date" style="left:118px; top:33px; width:120px; height:19px; "/>
- <caption id="caption7" class="search_no_b" style="left:243px; top:34px; width:12px; height:17px; ">~</caption>
- <input id="ipt_lastchosdd2" ref="/root/send/data/srchlastchosdd2" class="input_search" inputtype="date" style="left:258px; top:33px; width:120px; height:19px; "/>
- <input id="ipt_hngnm" ref="/root/send/data/srchhngnm" class="input_search" style="left:483px; top:34px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <caption id="caption10" class="search_name" style="left:640px; top:35px; width:100px; height:17px; ">휴 대 폰 :</caption>
- <input id="ipt_mpphontel" ref="/root/send/data/srchmpphontel" class="input_search" style="left:743px; top:33px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- </group>
- <group id="grp_body" style="left:225px; top:95px; width:970px; height:658px; ">
- <button id="btn_sms" class="btn3_letter5" style="left:5px; top:13px; width:92px; height:22px; ">
- <caption>SMS전송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfSMSTrsmOpen("grid", grd_patlist,1,7, "", "");
- ]]>
- </script>
- </button>
- <button id="btn_email" class="btn3_letter5" style="left:100px; top:13px; width:92px; height:22px; ">
- <caption>이메일발송</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfEmailTrsmOpen("grid", grd_patlist,11, "");
- ]]>
- </script>
- </button>
- <button id="btn_dm" class="btn3_letter4" style="left:194px; top:13px; width:80px; height:22px; ">
- <caption>DM출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfDMTrsmOpen(grd_patlist,1,9,10,2);
- ]]>
- </script>
- </button>
- <button id="btn_cmpn" class="btn3_letter5" style="left:276px; top:13px; width:92px; height:22px; ">
- <caption>캠페인등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- cczfOpenInsertCmpn(grd_patlist, "01");
- ]]>
- </script>
- </button>
- <button id="btn_addgrup" class="btn3_letter5" style="left:370px; top:13px; width:92px; height:22px; ">
- <caption>그룹 추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGroupOpen(grd_patlist);
- ]]>
- </script>
- </button>
- <button id="btn_rgst" class="btn3_letter5" style="left:464px; top:13px; width:92px; height:22px; ">
- <caption>고객 등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- navigate("SMCMS00100");
- ]]>
- </script>
- </button>
- <button id="btn_excsave" class="btn2_letter4" style="left:906px; top:13px; 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_patlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:38px; x2:970px; y2:38px; "/>
- <datagrid id="grd_patlist" nodeset="/root/main/list/patlist" caption="이름^등록번호^성별^나이^신환등록일^최종내원일^휴대폰^집전화번호^우편번호^주소^이메일^혈액형^RH^VIP여부^성당명^추천인 ID^SMS 여부^이메일 여부^우편 여부^재원 여부^사망 여부" colsep="^" colwidth="80, 85, 40, 40, 80, 80, 85, 85, 70, 290, 150, 50, 50, 50, 100, 80, 70, 70, 70, 70, 70" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:43px; width:970px; height:613px; ">
- <col class="text_center" ref="hngnm"/>
- <col class="text_center" ref="pid"/>
- <col class="text_center" ref="sex"/>
- <col class="text_center" ref="age"/>
- <col class="text_center" ref="fstchosdt" format="yyyy-mm-dd"/>
- <col class="text_center" ref="lastchosdt" format="yyyy-mm-dd"/>
- <col class="text_center" ref="mpphontel"/>
- <col class="text_center" ref="hometel"/>
- <col class="text_center" ref="zipcd"/>
- <col ref="address"/>
- <col ref="email"/>
- <col class="text_center" ref="btype"/>
- <col class="text_center" ref="rh"/>
- <col class="text_center" ref="vipyn"/>
- <col class="text_center" ref="chchnm"/>
- <col class="text_center" ref="recmerid"/>
- <col class="text_center" ref="smsaprvyn"/>
- <col class="text_center" ref="emailuseaprvyn"/>
- <col class="text_center" ref="postdeliveuseyn"/>
- <col class="text_center" ref="inhospyn"/>
- <col class="text_center" ref="dethyn"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- var row = grd_patlist.row;
- var receive_pid = grd_patlist.valueMatrix(row, grd_patlist.colRef("pid"));
- if (grd_patlist.row > 0){
- model.setValue("/root/send/key/sndpid", receive_pid);
- model.setValue("/root/send/key/inputmode", "R");
- copyNodeListType("/root/send/sendlist", "/root/main/list/patlist" );
-
- navigate("SMCMS00400", "", "", "", "SMCMS00400", "/root/send", "/root/temp");
- } else {
- }
- ]]>
- </script>
- </datagrid>
- </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_patlist;
- 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_patlist;
- var grid_rows = grid.rows-1;
- grid.selectionmode = "byrow";
- grid.select(1, 1, grid_rows, 1) = false;
- ]]>
- </script>
- </button>
- <button id="btn_list" class="btn2_letter4" style="left:903px; top:3px; width:64px; height:19px; ">
- <caption>정보보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_patlist.row;
- var receive_pid = grd_patlist.valueMatrix(row, grd_patlist.colRef("pid"));
-
- if (grd_patlist.row > 0){
- if (grd_patlist.selectedRows < 1) {
- messageBox("선택된 목록이 ","I004");
- model.SetFocus("grd_patlist");
- } else if (grd_patlist.selectedRows > 1) {
- messageBox("상세 정보를 보시려면 1개만 ","C002");
- model.SetFocus("grd_patlist");
- } else {
- model.setValue("/root/send/key/sndpid", receive_pid);
- model.setValue("/root/send/key/inputmode", "R");
- copyNodeListType("/root/send/sendlist", "/root/main/list/patlist" );
-
- navigate("SMCMS00400", "", "", "", "SMCMS00400", "/root/send", "/root/temp");
- }
- } else {
- messageBox("조회하신 후 목록을 ","C002");
- model.SetFocus("grd_patlist");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group12" style="left:0px; top:23px; width:215px; height:757px; ">
- <caption id="caption30" class="tit_2" style="left:0px; top:0px; width:215px; height:14px; ">고객 그룹</caption>
- <import id="import1" overflow="hidden" src="./SSCMS00101_LeftTree.xrw" instancetype="merge" style="left:0px; top:13px; width:215px; height:744px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|