123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>고객 그룹관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <grouplrglist>
- <gridgrouplrg>
- <grouplrgtitl/>
- <grouplrgcd/>
- </gridgrouplrg>
- </grouplrglist>
- <groupmdllist>
- <gridgroupmdl>
- <groupmdltitl/>
- <groupmdlcd/>
- <grouplrgcd/>
- </gridgroupmdl>
- </groupmdllist>
- <groupsmllist>
- <gridgroupsml>
- <groupsmltitl/>
- <rgstdeptcd/>
- <autcretyn/>
- <groupsmlcd/>
- <grouplrgcd/>
- <groupmdlcd/>
- </gridgroupsml>
- </groupsmllist>
- </list>
- </main>
- <send>
- <grouplrgcd/>
- <grouplrglist/>
- <groupmdlcd/>
- <groupmdllist/>
- <groupsmlcd/>
- <groupsmllist/>
- </send>
- <init>
- <basecdlist>
- <orddeptlist>
- <dept>
- <depthngnm/>
- <deptcd/>
- </dept>
- </orddeptlist>
- </basecdlist>
- </init>
- </root>
- </instance>
- <submission id="TRCMZ00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/grouplrglist"/>
- <submission id="TRCMZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/groupmdllist"/>
- <submission id="TRCMZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list/groupsmllist"/>
- <submission id="TXCMZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXCMZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXCMZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- submit("TRCMZ00100");
- model.SetFocus("grd_grouplrglist");
- grd_grouplrglist.dispatch("onrowchanged"); // 선택된 행의 인덱스가 바뀌면 onrowchanged 이벤트 발생됨.
-
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = "D"; // 외래진료과
- var rslt_ref = "/root/init/basecdlist/orddeptlist";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
-
- fCheckAuth();
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fCheckAuth() {
- // 권한체크
- //if (!checkAuth("r")) {
- //}
- if (!checkAuth("x")) {
- btn_add_grouplrg.disabled=true;
- btn_delete_grouplrg.disabled=true;
- btn_save_grouplrg.disabled=true;
- btn_add_groupmdl.disabled=true;
- btn_delete_groupmdl.disabled=true;
- btn_save_groupmdl.disabled=true;
- btn_add_groupsml.disabled=true;
- btn_delete_dtmnsml.disabled=true;
- btn_save_groupsml.disabled=true;
- }
- //if (!checkAuth("p")) {
- //}
- }
-
- // 대그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
- function fSaveClicklrg(grid){
- var updt_list = getGridUpdateData(grid);
- if (updt_list != "") {
- model.setValue("/root/send/grouplrglist", grid.getUpdateData());
- }
- if ( submit("TXCMZ00101") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.removeNodeset("/root/main/list/groupmdllist/gridgroupmdl");
- model.removeNodeset("/root/main/list/groupsmllist/gridgroupsml");
- submit("TRCMZ00100"); // 저장하면 DB에 반영된 내용을 가져옴
- // model.refresh();
- }
- }
-
- // 중그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
- function fSaveClickmdl(grid){
- var row = grd_grouplrglist.row;
-
- var updt_list = getGridUpdateData(grid);
- if (updt_list != "") {
- model.setValue("/root/send/groupmdllist", grid.getUpdateData());
- }
- if ( submit("TXCMZ00102") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- model.removeNodeset("/root/main/list/groupsmllist/gridgroupsml");
- submit("TRCMZ00101");
- // model.refresh();
- }
- }
-
- // 데이터마이닝 소그룹의 변경사항(입력, 수정, 삭제)을 처리한다.
- function fSaveClicksml(grid){
- var row = grd_groupmdllist.row;
- var updt_list = getGridUpdateData(grid);
- if (updt_list != "") {
- model.setValue("/root/send/groupsmllist", grid.getUpdateData());
- }
- if ( submit("TXCMZ00103") ) {
- grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
- submit("TRCMZ00102");
- // model.refresh();
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="800" pageheight="460" style="border-color:#c7a3cf; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:630px; height:13px; ">고객 그룹관리</caption>
- <group id="group1" scroll="auto" style="left:5px; top:13px; width:213px; height:407px; ">
- <button id="btn_add_grouplrg" class="btn2_letter3" style="left:59px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.SetFocus("grd_grouplrglist");
- grd_grouplrglist.addrow();
- grd_grouplrglist.editCell(); // 입력대기상태
- ]]>
- </script>
- </button>
- <button id="btn_delete_grouplrg" class="btn2_letter3" style="left:115px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_grouplrglist.row;
- var grouplrgcd = grd_grouplrglist.valueMatrix( row, grd_grouplrglist.colRef("grouplrgcd"));
-
- if (grouplrgcd != "") {
- var rtn = messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
- if(rtn == 6){
- deleteSelectedRows(grd_grouplrglist, false);
- // grd_grouplrglist.deleteRow(grd_grouplrglist.row);
- }
- } else
- {
- messageBox("대분류가 선택되지 ", "E007");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save_grouplrg" class="btn5_letter2" style="left:171px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveClicklrg(grd_grouplrglist);
- ]]>
- </script>
- </button>
- <line id="line12" class="line_1" style="x1:0px; y1:27px; x2:213px; y2:27px; "/>
- <datagrid id="grd_grouplrglist" nodeset="/root/main/list/grouplrglist/gridgrouplrg" caption="대그룹 제목^대그룹코드" colwidth="171,0" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tooltip="true" style="left:0px; top:29px; width:213px; height:378px; ">
- <col ref="grouplrgtitl" type="input"/>
- <col ref="grouplrgcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // 선택한 대그룹에 속한 중그룹을 가져온다.
- var row = grd_grouplrglist.row;
- var grouplrgcd = grd_grouplrglist.valueMatrix( row, grd_grouplrglist.colRef("grouplrgcd"));
- var grouplrgnm = grd_grouplrglist.valueMatrix( row, grd_grouplrglist.colRef("grouplrgtitl"));
-
- if (grouplrgnm != "") {
- model.setValue("/root/send/grouplrgcd", grouplrgcd);
-
- model.removenodeset("/root/main/list/groupmdllist/gridgroupmdl");
- model.removenodeset("/root/main/list/groupsmllist/gridgroupsml");
- submit("TRCMZ00101");
- } else {
- }
- grd_grouplrglist.dispatch("onmouseup");
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group2" scroll="auto" style="left:223px; top:13px; width:213px; height:407px; ">
- <button id="btn_add_groupmdl" class="btn2_letter3" style="left:59px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.SetFocus("grd_groupmdllist");
-
- var row = grd_grouplrglist.row;
- var grouplrgcd = grd_grouplrglist.valueMatrix( row, grd_grouplrglist.colRef("grouplrgcd"));
-
- if (grouplrgcd != "") {
- grd_groupmdllist.addrow();
- grd_groupmdllist.editCell();
- model.setValue("/root/main/list/groupmdllist/gridgroupmdl["+grd_groupmdllist.row+"]/grouplrgcd",grouplrgcd);
- } else {
- messageBox("대분류가 선택되지 ", "E007");
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_delete_groupmdl" class="btn2_letter3" style="left:115px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_groupmdllist.row;
- var groupmdlcd = grd_groupmdllist.valueMatrix( row, grd_groupmdllist.colRef("groupmdlcd"));
-
- if (groupmdlcd != "") {
- var rtn = messageBox(" 하위 그룹이 있는 경우 함께 삭제됩니다.", "Q001");
- if(rtn == 6){
- deleteSelectedRows(grd_groupmdllist, false);
- // grd_groupmdllist.deleteRow(grd_groupmdllist.row);
- }
- } else
- {
- messageBox("중분류가 선택되지 ", "E007");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save_groupmdl" class="btn5_letter2" style="left:171px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveClickmdl(grd_groupmdllist);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:27px; x2:213px; y2:27px; "/>
- <datagrid id="grd_groupmdllist" nodeset="/root/main/list/groupmdllist/gridgroupmdl" caption="중그룹 제목^중그룹 코드^" colwidth="171,0,0" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" tooltip="true" style="left:0px; top:29px; width:213px; height:378px; ">
- <col ref="groupmdltitl" type="input"/>
- <col ref="groupmdlcd" visibility="hidden"/>
- <col ref="grouplrgcd" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- // 선택한 중그룹에 속한 소그룹을 가져온다.
- var row = grd_groupmdllist.row;
- var groupmdlcd = grd_groupmdllist.valueMatrix( row, grd_groupmdllist.colRef("groupmdlcd"));
- var grouplrgcd = grd_groupmdllist.valueMatrix( row, grd_groupmdllist.colRef("grouplrgcd"));
- var groupmdlnm = grd_groupmdllist.valueMatrix( row, grd_groupmdllist.colRef("groupmdltitl"));
-
- if ( groupmdlnm != "" ){
- model.setValue("/root/send/groupmdlcd", groupmdlcd);
- model.setValue("/root/send/grouplrgcd", grouplrgcd);
-
- model.removenodeset("/root/main/list/groupsmllist/gridgroupsml");
- submit("TRCMZ00102");
- } else {
- }
- grd_groupmdllist.dispatch("onmouseup");
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group3" scroll="auto" style="left:441px; top:13px; width:353px; height:407px; ">
- <button id="btn_add_groupsml" class="btn2_letter3" style="left:199px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.SetFocus("grd_groupsmllist");
-
- var row = grd_groupmdllist.row;
- var grouplrgcd = grd_groupmdllist.valueMatrix( row, grd_groupmdllist.colRef("grouplrgcd"));
- var groupmdlcd = grd_groupmdllist.valueMatrix( row, grd_groupmdllist.colRef("groupmdlcd"));
-
- if (groupmdlcd != "") {
- grd_groupsmllist.addrow();
- grd_groupsmllist.editCell();
- model.setValue("/root/main/list/groupsmllist/gridgroupsml["+grd_groupsmllist.row+"]/grouplrgcd",grouplrgcd);
- model.setValue("/root/main/list/groupsmllist/gridgroupsml["+grd_groupsmllist.row+"]/groupmdlcd",groupmdlcd);
- } else {
- messageBox("중분류가 선택되지 ", "E007");
- }
- ]]>
- </script>
- </button>
- <button id="btn_delete_dtmnsml" class="btn2_letter3" style="left:255px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //grd_grouplrglist.deleteRow(grd_grouplrglist.row, true);
-
- var row = grd_groupsmllist.row;
- var groupsmlcd = grd_groupsmllist.valueMatrix( row, grd_groupsmllist.colRef("groupsmlcd"));
-
- if (groupsmlcd != "") {
- var rtn = messageBox("소그룹을 ", "Q001");
- if(rtn == 6){
- deleteSelectedRows(grd_groupsmllist, false);
- // grd_groupsmllist.deleteRow(grd_groupsmllist.row);
- }
- } else
- {
- messageBox("소분류가 선택되지 ", "E007");
- }
- ]]>
- </script>
- </button>
- <button id="btn_save_groupsml" class="btn5_letter2" style="left:311px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveClicksml(grd_groupsmllist);
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:27px; x2:353px; y2:27px; "/>
- <datagrid id="grd_groupsmllist" nodeset="/root/main/list/groupsmllist/gridgroupsml" caption="소그룹 제목^등록부서^자동등록^소그룹코드^^" colwidth="161, 100, 50, 0, 0, 0" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" style="left:0px; top:29px; width:353px; height:378px; ">
- <col ref="groupsmltitl" type="input"/>
- <col ref="rgstdeptnm" type="inputbutton"/>
- <col class="text_center" ref="autcretyn" type="combo">
- <choices>
- <item>
- <label>등록</label>
- <value>Y</value>
- </item>
- <item>
- <label>없음</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="rgstdeptcd"/>
- <col ref="groupsmlcd" visibility="hidden"/>
- <col ref="grouplrgcd" visibility="hidden"/>
- <col ref="groupmdlcd" visibility="hidden"/>
- <script type="javascript" ev:event="onstartedit">
- <![CDATA[
- if ( grd_groupsmllist.col == 2 ) {
- event.defaultAction = "cancel";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var col = grd_groupsmllist.col;
- var row = grd_groupsmllist.row;
-
- if (col == 2) {
- var search_condition = "deptnm";
- var search_term = model.getValue("/root/main/list/prcplist["+row+"]/rgstdeptnm");
- var receive_deptcd_path = "/root/main/list/prcplist["+row+"]/rgstdeptcd";
- var receive_deptnm_path = "/root/main/list/prcplist["+row+"]/rgstdeptnm";
-
- cczfOpenSelectDept(search_condition, search_term, receive_deptcd_path, receive_deptnm_path);
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:420px; width:800px; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:738px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- opener.javascript.fInitGrid();
- window.close();
- // opener.activate();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|