123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- * Name : SPCPC01200_건진정보마이닝그룹리스트
- * Summary : 건진정보마이닝 그룹 리스트
- * Programmer : 최정환
- * Date Written : 2009.05.21
- * History : 2009.05.21
- * 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>
- <healexamdtmnlist>
- <healexamdtmntitl/>
- <healexamdtmnsmltitl/>
- <lnktmplyn/>
- <autexecflag/>
- <fstrgstdt/>
- <fstrgstnm/>
- <examcnt/>
- <lastexamcnt/>
- <lastexamdd/>
- <healexamdtmnkey/>
- </healexamdtmnlist>
- <choihealexamdtmnlist/>
- </list>
- <rcvcnt/>
- <chkvalue1/>
- <chkvalue2/>
- </main>
- <init>
- <C0030list/>
- <C0031list/>
- <C0032list/>
- </init>
- <send>
- <healexamdtmnsrch>
- <healexamdtmnsmlcd>0</healexamdtmnsmlcd>
- </healexamdtmnsrch>
- <data>
- <rgstfromdd/>
- <rgsttodd/>
- <healexamdtmnnm/>
- <rgstnm/>
- <autexecflag/>
- <cmpnlnkyn/>
- <healexamdtmnsmlcd/>
- </data>
- </send>
- <temp>
- <healexamtrsmtrgtlist>
- <status>I</status>
- <healexamdtmntitl/>
- <appbasedd/>
- <spcldd/>
- <clintdupltretmthd/>
- <daydd/>
- <healexamdtmnkey/>
- </healexamtrsmtrgtlist>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRCHT00401" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/main/healexamdtmntreeinfo"/>
- <submission id="TRCHT00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list"/>
- </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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.removeNodeset("/root/main/list/healexamdtmnlist");
- model.removeNodeset("/root/main/list/choihealexamdtmnlist");
-
- // C0030: 자동실행여부, C0031: 고객중복처리여부, C0032: 적용기준일
- zbcfGetCodeList(new Array("C0030", "C0031", "C0032"),
- new Array("/root/init/C0030list", "/root/init/C0031list", "/root/init/C0032list"));
-
- model.removeNodeset("/root/main/healexamdtmntreeinfo/healexamdtmntreelist");
- submit("TRCHT00401");
-
- var scrnflag = model.getValue("/root/hidden/scrnflag");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- //----------------------------------------//
- // 체크된 행을 대상그리드에 추가 후 삭제 //
- //----------------------------------------//
- function fGridRowAddRow(sndGrid, rcvGrid, type){
- var sRows = sndGrid.rows;
- var sfRow = sndGrid.fixedRows;
- var cntRows = sndGrid.rows-1;
- var rRows = rcvGrid.rows;
-
- if(type=="del") {
- var rows = sndGrid.rows;
- var fRow = sndGrid.fixedRows;
- for(var i=fRow; i<rows; i++){
- sndGrid.valueMatrix(i,sndGrid.colRef("chk"))="Y";
- }
- model.refresh();
- }
-
- var check_cnt = 0;
- for(var i=sfRow; i<sRows; i++){
- if(sndGrid.valueMatrix(i,sndGrid.colRef("chk")) == "Y" ){
- var lnktmplyn = grd_healexamdtmnlist.valueMatrix(i,grd_healexamdtmnlist.colRef("lnktmplyn"));
- if (lnktmplyn == "Y") {
- messageBox("선택된 건진정보마이닝은 기존에 연결된 캠페인에서 제외처리 되오니","I007");
- rcvGrid.valueMatrix(rRows, rcvGrid.colRef("status")) = "U"
- }
- rcvGrid.addRow();
- if (lnktmplyn == "Y") {
- rcvGrid.valueMatrix(rRows, rcvGrid.colRef("status")) = "U"
- } else {
- rcvGrid.valueMatrix(rRows, rcvGrid.colRef("status")) = "I"
- }
- rcvGrid.valueMatrix(rRows, rcvGrid.colRef("healexamdtmntitl")) = sndGrid.valueMatrix(i,sndGrid.colRef("healexamdtmntitl"));
- rcvGrid.valueMatrix(rRows, rcvGrid.colRef("healexamdtmnkey")) = sndGrid.valueMatrix(i,sndGrid.colRef("healexamdtmnkey"));
-
- check_cnt++;
- rRows++;
- }
- }
-
- if(check_cnt < 1) {
- messageBox("건진정보마이닝 리스트를","C002");
- }
-
- //추가된 사람 목록삭제
- for(var j=sRows; j>=sfRow; j--){
- if(sndGrid.valueMatrix(j,sndGrid.colRef("chk")) == "Y"){
- sndGrid.deleterow(j,false);
- cntRows--;
- }
- }
-
- if(type == "add"){
- model.setValue("/root/main/rcvcnt",rRows-1);//수신인 숫자
- }else{
- model.setValue("/root/main/rcvcnt",cntRows);//수신인 숫자
- }
- model.refresh();
- }
-
- function fGetTrsmTrgt() {
- var count = 0;
- var check_cnt = 0;
- for (i=0; i < grd_choihealexamdtmnlist.selectedRows; i++) {
- if(grd_choihealexamdtmnlist.valueMatrix(i+1,grd_choihealexamdtmnlist.colRef("chk")) == "Y" ){
- var healexamdtmntitl = grd_choihealexamdtmnlist.valuematrix(grd_choihealexamdtmnlist.selectedRow(i),1)
- var appbasedd = grd_choihealexamdtmnlist.valuematrix(grd_choihealexamdtmnlist.selectedRow(i),2)
- var spcldd = grd_choihealexamdtmnlist.valuematrix(grd_choihealexamdtmnlist.selectedRow(i),3)
- var clintdupltretmthd = grd_choihealexamdtmnlist.valuematrix(grd_choihealexamdtmnlist.selectedRow(i),4)
- var daydd = grd_choihealexamdtmnlist.valuematrix(grd_choihealexamdtmnlist.selectedRow(i),5)
-
- var healexamdtmnkey = grd_choihealexamdtmnlist.valuematrix(grd_choihealexamdtmnlist.selectedRow(i),6)
- var status = grd_choihealexamdtmnlist.valuematrix(grd_choihealexamdtmnlist.selectedRow(i),7)
-
- count = count + 1
- model.makeValue("/root/temp/healexamtrsmtrgtlist/healexamdtmntitl", healexamdtmntitl);
- model.makeValue("/root/temp/healexamtrsmtrgtlist/appbasedd", appbasedd); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/healexamtrsmtrgtlist/spcldd", spcldd); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/healexamtrsmtrgtlist/clintdupltretmthd", clintdupltretmthd); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/healexamtrsmtrgtlist/daydd", daydd); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/healexamtrsmtrgtlist/healexamdtmnkey", healexamdtmnkey); // 임시노드에 선택된 항목을 넣어준다.
- model.makeValue("/root/temp/healexamtrsmtrgtlist/status", status); // 임시노드에 선택된 항목을 넣어준다.
-
- model.duplicate(opener.root.main.cmpn, root.temp.healexamtrsmtrgtlist); // 임시노드에 있는 항목을 메인(부모)창에 복사해준다.
- model.removenodeset("/root/temp/healexamtrsmtrgtlist/healexamdtmntitl"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/healexamtrsmtrgtlist/appbasedd"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/healexamtrsmtrgtlist/spcldd"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/healexamtrsmtrgtlist/clintdupltretmthd"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/healexamtrsmtrgtlist/daydd"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/healexamtrsmtrgtlist/healexamdtmnkey"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
- model.removenodeset("/root/temp/healexamtrsmtrgtlist/status"); // 다음항목 복사시 중복되지 않도록 임시노드를 지워준다.
-
- check_cnt++;
- }
-
- }
- if(check_cnt < 1) {
- messageBox("건진정보마이닝 리스트를","C002");
- }else{
- opener.model.refresh();
- window.close();
- }
- }
-
- function fGetDtmnInfo() {
- submit("TRCHT00201");
- /* for(var i=1; i<grd_healexamdtmnlist.rows; i++){
- var lnktmplyn = grd_healexamdtmnlist.valueMatrix(i,grd_healexamdtmnlist.colRef("lnktmplyn"));
- if (lnktmplyn == "Y") {
- grd_healexamdtmnlist.isReadOnly(i,0,i,0) = true;
- }
- }
- */
- }
-
- function fGridAllRow(mode) {
- // 주소록 그룹 조회
- if (mode == "A") {
- var rows = grd_healexamdtmnlist.rows;
- var fRow = grd_healexamdtmnlist.fixedRows;
- var chk = grd_healexamdtmnlist.valueMatrix(1, grd_healexamdtmnlist.colRef("chk"));
- var boolchk = model.getValue("/root/main/chkvalue1");
-
- if (boolchk == "Y") {
- for(var i=fRow; i<rows; i++) {
- grd_healexamdtmnlist.valueMatrix(i, grd_healexamdtmnlist.colRef("chk"))="Y";
- }
- } else {
- for(var i=fRow; i<rows; i++) {
- grd_healexamdtmnlist.valueMatrix(i, grd_healexamdtmnlist.colRef("chk"))="N";
- }
- }
- model.refresh();
- // 그룹 내역
- } else if (mode == "B") {
- var rows = grd_choihealexamdtmnlist.rows;
- var fRow = grd_choihealexamdtmnlist.fixedRows;
- var chk = grd_choihealexamdtmnlist.valueMatrix(1, grd_choihealexamdtmnlist.colRef("chk"));
- var boolchk = model.getValue("/root/main/chkvalue2");
-
- if (boolchk == "Y") {
- for(var i=fRow; i<rows; i++){
- grd_choihealexamdtmnlist.valueMatrix(i, grd_choihealexamdtmnlist.colRef("chk"))="Y";
- }
- } else {
- for(var i=fRow; i<rows; i++){
- grd_choihealexamdtmnlist.valueMatrix(i, grd_choihealexamdtmnlist.colRef("chk"))="N";
- }
- }
- model.refresh();
-
- } else if (mode == "C") { // 데이터 이동 후 마스터 목록 선택 해제
- var rows = grd_healexamdtmnlist.rows;
- var fRow = grd_healexamdtmnlist.fixedRows;
- var chk = grd_healexamdtmnlist.valueMatrix(1, grd_healexamdtmnlist.colRef("chk"));
-
- for(var i=fRow; i<rows; i++){
- grd_healexamdtmnlist.valueMatrix(i, grd_healexamdtmnlist.colRef("chk"))="N";
- }
- model.setValue("/root/main/chkvalue1", "");
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="908" pageheight="600" style="border-color:#c7a3cf; ">
- <group id="group1" style="left:0px; top:0px; width:908px; height:600px; ">
- <caption id="caption9" class="tit_2" style="left:225px; top:0px; width:200px; height:13px; ">건진정보마이닝 그룹 조회</caption>
- <group id="grp_johe" style="left:225px; top:14px; width:675px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:675px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:25px; top:9px; width:104px; height:17px; ">검색어 :</caption>
- <input id="ipt_s_healexamdtmnnm" ref="/root/send/data/healexamdtmnnm" class="input_s_essential" navindex="2" style="left:149px; top:8px; width:130px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- //var param = ipt_s_dtmnnm.currentText;
- if("13" == event.keyCode){
- btn_search.dispatch("DOMActivate");
- //fClicked("search", grd_userbaseinfo, param);
- }
- ]]>
- </script>
- </input>
- <line id="line13" style="x1:460px; y1:7px; x2:460px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:490px; top:5px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(ipt_s_healexamdtmnnm.currentText == ""){
- messageBox("검색어를 1자이상 ", "C001");
- } else {
- model.removeNodeset("/root/main/list/healexamdtmnlist");
- fGetDtmnInfo();
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_body" style="left:225px; top:49px; width:675px; height:310px; ">
- <line id="line2" class="line_1" style="x1:0px; y1:10px; x2:675px; y2:10px; "/>
- <datagrid id="grd_healexamdtmnlist" nodeset="/root/main/list/healexamdtmnlist" caption="^건진정보마이닝 그룹명^연결캠페인^자동실행^등록일^등록부서^등록자^" colwidth="20, 290, 70, 60, 70, 80, 60, 0" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" style="left:0px; top:15px; width:675px; height:295px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox" style="text-align:center; "/>
- <col ref="healexamdtmntitl"/>
- <col disabled="true" ref="lnktmplyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>연결</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="autexecflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/C0030list/C0030">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fstrgstdt" format="yyyy-mm-dd"/>
- <col ref="deptnm"/>
- <col ref="fstrgstnm"/>
- <col ref="healexamdtmnkey" visibility="hidden"/>
- </datagrid>
- <bool id="bool1" ref="/root/main/chkvalue1" style="left:3px; top:19px; width:15px; height:15px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var mode = "A";
- fGridAllRow(mode);
- ]]>
- </script>
- </bool>
- </group>
- <group id="group3" style="left:225px; top:359px; width:675px; height:210px; ">
- <caption id="caption3" class="tit_2" style="left:0px; top:10px; width:200px; height:13px; ">그룹내역</caption>
- <button id="btn_saveexcel" class="btn2_letter3" style="left:555px; top:4px; width:53px; height:19px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridRowAddRow(grd_choihealexamdtmnlist,grd_healexamdtmnlist,"del");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter4" style="left:611px; top:4px; width:64px; height:19px; ">
- <caption>그룹추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGridRowAddRow(grd_healexamdtmnlist,grd_choihealexamdtmnlist,"add");
- var mode = "C";
- fGridAllRow(mode);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:675px; y2:24px; "/>
- <datagrid id="grd_choihealexamdtmnlist" nodeset="/root/main/list/choihealexamdtmnlist" caption="^건진정보마이닝 그룹명^산정기준일^특정일^업데이트 구분^업데이트실행시간^^" colwidth="20, 270, 80, 90, 90, 100, 0, 0" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" style="left:0px; top:29px; width:675px; height:181px; margin-left:0; margin-top:0; margin-right:0; margin-bottom:0; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox" style="text-align:center; "/>
- <col ref="healexamdtmntitl" type="input"/>
- <col disabled="true" ref="appbasedd" type="combo" _key="true">
- <choices>
- <item>
- <label>오늘</label>
- <value>0</value>
- </item>
- <item>
- <label>건진일</label>
- <value>1</value>
- </item>
- <item>
- <label>특정일</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col ref="spcldd" type="inputdate" format="yyyy-mm-dd"/>
- <col ref="clintdupltretmthd" type="combo" _key="true">
- <choices>
- <itemset nodeset="/root/init/C0031list/C0031">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col class="text_center" ref="daydd" type="input" format="hh:nn"/>
- <col ref="healexamdtmnkey" visibility="hidden"/>
- <col ref="status" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //해당 행을 활성화한다
- grd_choihealexamdtmnlist.isReadOnly(grd_choihealexamdtmnlist.row, grd_choihealexamdtmnlist.colRef("appbasedd") + 1, grd_choihealexamdtmnlist.row, grd_choihealexamdtmnlist.colRef("spcldd")) = false;
- ]]>
- </script>
- </datagrid>
- <bool id="bool2" ref="/root/main/chkvalue2" style="left:3px; top:34px; width:15px; height:15px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var mode = "B";
- fGridAllRow(mode);
- ]]>
- </script>
- </bool>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:573px; width:900px; height:27px; ">
- <button id="button2" class="btn4_letter2" style="left:785px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetTrsmTrgt();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:844px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- <group id="group12" style="left:0px; top:0px; width:215px; height:572px; ">
- <caption id="caption30" class="tit_2" style="left:0px; top:0px; width:215px; height:14px; ">건진정보마이닝 그룹</caption>
- <group id="grp_tree" scroll="auto" style="left:0px; top:13px; width:215px; height:557px; ">
- <line id="lin_tree" class="line_1" style="x1:0px; y1:0px; x2:215px; y2:0px; "/>
- <treeview id="trv_leftmenu" ref="/root/send/healexamdtmnsrch/healexamdtmnsmlcd" expanddepth="2" fullrowselect="true" itemsettype="depth" oneclickexpand="true" style="left:0px; top:5px; width:215px; height:550px; ">
- <itemset nodeset="/root/main/healexamtreeinfo/healexamtreelist">
- <label ref="healexamdtmnnm"/>
- <value ref="healexamdtmnsmlcd"/>
- <depth ref="depth"/>
- </itemset>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var healexamdtmnsmlcd = trv_leftmenu.value;
- var healexamdtmn_smlcd = healexamdtmnsmlcd;
- if (healexamdtmn_smlcd > 0) {
- model.setValue("/root/send/data/healexamdtmnsmlcd", healexamdtmnsmlcd);
- fGetDtmnInfo();
- //model.setValue("/root/send/data/healexamdtmnsmlcd", healexamdtmnsmlcd);
- }
- ]]>
- </script>
- </treeview>
- </group>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|