123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHA02800.xrw
- * 설 명 : DM발송
- * 설 계 자 : 최예원
- * 작 성 자 : 최예원
- * 작 성 일 : 2010.12.15
- * 수정이력 : 2010.12.15 최예원 신규
- * 기 타 :
- -->
- <?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>건진 DM발송관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <healdminfo>
- <healdmlist>
- <item/>
- </healdmlist>
- </healdminfo>
- <seqprntdata>
- <labelname>
- <list>
- <pid/>
- <hngnm/>
- <sexage/>
- <orddd/>
- </list>
- </labelname>
- </seqprntdata>
- <prntpatlist/>
- </main>
- <send>
- <srchfromdd/>
- <srchtodd/>
- <srchstate/>
- <clscd/>
- <etccd/>
- <printformat>02</printformat>
- </send>
- <init>
- <combobscdlst/>
- <baseinfo>
- <detlcodelst/>
- </baseinfo>
- </init>
- <hidden/>
- <temp/>
- <rexaddprnt/>
- </root>
- </instance>
- <submission id="TRAVB00001"/>
- <submission id="TRAHB00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/baseinfo/detlcodelst"/>
- <submission id="TRAHA02800" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/healdminfo/healdmlist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../ast/tissuebankbaseweb/js/tissuebankcombolist.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetScreenInit();
- dtg_healdmlist.fixedcellcheckbox(0 , 1) = true;
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
-
- // 화면 초기화
- function fGetScreenInit(){
- model.removeNodeset("/root/main/healdminfo/healdmlist/item");
- model.setValue("/root/send/srchfromdd" , getCurrentDate());
- model.setValue("/root/send/srchtodd" , getCurrentDate());
-
- //공통코드
- model.setValue("/root/send/clscd", "G" );
- model.setValue("/root/send/etccd", "G16");
- submit("TRAHB00602");
-
- //콤포박스 초기화
- addComboItem("cmb_state", "전체", "all", "above");
- cmb_state.value = "all";
- model.refresh();
- }
- function fGetLabeladdr(){
- var nodeList = null;
- var nodeList = instance1.selectNodes(dtg_healdmlist.nodeset + "[chk='Y']");
- if((nodeList == null) || (nodeList.length < 1)){
- messageBox("출력할 내역이 ", "I004");
- return ;
- }
-
- var vGrd = null;
- var printFormat = model.getValue("/root/send/printformat");
- var rCSV = getNodeListCSV(nodeList);
- model.makeNode("/root/main/seqprntdata/labelname/list/pid");
- model.makeNode("/root/main/seqprntdata/labelname/list/hngnm");
- model.makeNode("/root/main/seqprntdata/labelname/list/sexage");
- model.makeNode("/root/main/seqprntdata/labelname/list/orddd");
-
- model.removenode("/root/main/seqprntdata/labelname/list");
- model.setValue("/root/main/seqprntdata/labelname", rCSV);
- var CSV = model.getValue("/root/main/seqprntdata/labelname");
- model.removenode("/root/main/seqprntdata/labelname");
- model.makeNode("/root/main/seqprntdata/labelname");
- setCSVToNode("/root/main/seqprntdata/labelname", CSV);
- model.refresh();
- nodeList= null;
- nodeList= instance1.selectNodes("/root/main/seqprntdata/item");
- if((nodeList != null)||(nodeList.length >0 )){
- if(printFormat == "01") {
- exeReportPreview("RPAHA00410", "XMLSTR" , "" , "" , "false" , "", "", "", "", "fasle");
- }else if(printFormat == "02") {
- exeReportPreview("RPAHA00411", "XMLSTR" , "" , "" , "false" , "", "", "", "", "fasle");
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,784;" 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="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; ">DM 발송관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:56px; width:210px; height:14px; ">DM 발송 LIST</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:1194px; y2:71px; "/>
- <datagrid id="dtg_healdmlist" nodeset="/root/main/healdminfo/healdmlist/item" scroll="auto" caption="^등록번호^환자명^주민번호^전화번호^핸드폰번호^우편번호^주소^누적횟수^마지막검진일" colsep="^" colwidth="25, 80, 70, 100, 100, 100, 80, 278, 55, 255" dataheight="23" ellipsis="true" explorerbar="sortshow" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:75px; width:1194px; height:664px; text-align:center; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="pid" type="output"/>
- <col ref="hngnm" type="output"/>
- <col ref="rrgstno" type="output"/>
- <col ref="telno" type="output"/>
- <col ref="mpphon" type="output"/>
- <col ref="zipcode" type="output" format="999-999"/>
- <col ref="address" type="output" style="text-align:left; "/>
- <col ref="accnum" type="output" style="text-align:center; "/>
- <col ref="testnm" type="output" format="yyyy-mm-dd" style="text-align:left; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- dtg_healdmlist.gridtoinstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- if(isDataCell()){
- for(var i=1; i<dtg_healdmlist.rows; i++){
- model.setValue("/root/main/healdminfo/healdmlist/item[" + i + "]/chk", "N");
- }
- for(var i=0; i<dtg_healdmlist.selectedRows;i++){
- model.setValue("/root/main/healdminfo/healdmlist/item[" + dtg_healdmlist.selectedRow(i) + "]/chk", "Y");
- }
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
- <caption id="caption5" class="search_no_b" style="left:485px; top:9px; width:12px; height:17px; ">~</caption>
- <line id="line13" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <input id="ipt_fromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:382px; top:8px; width:100px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:500px; top:8px; width:100px; height:19px; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/send/srchstate") == "" || model.getValue("/root/send/srchstate") == "all"){
- messageBox("조회조건을", "C002");
- return;
- }
- submit("TRAHA02800");
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:290px; top:9px; width:86px; height:17px; ">발송일자 :</caption>
- <select1 id="cmb_state" ref="/root/send/srchstate" class="combo_search" appearance="minimal" style="left:110px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/detlcodelst/item">
- <label ref="etcdetlnm"/>
- <value ref="etcdetlcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <button id="btn_excsave" class="btn2_letter4" style="left:1129px; top:50px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save",",",false,"excel","xls","All File(*.*)|*.*|Excel File(*.xls)|*.xls");
- if (filename != ""){
- dtg_healdmlist.saveExcel(filename);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_prt" class="btn6_letter2" style="left:0px; top:4px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetLabeladdr()
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/send/printformat" appearance="minimal" style="left:60px; top:5px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>2x5</label>
- <value>01</value>
- </item>
- <item>
- <label>2x8</label>
- <value>02</value>
- </item>
- </choices>
- </select1>
- <button id="button1" class="btn6_letter7" style="left:164px; top:4px; width:116px; height:22px; ">
- <caption>추후검사 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //2011.01.20 c y w 추후검사 우편물 발송 출력기능 추가.
- //추후검사일 경우에만..
- if(model.getValue("/root/send/srchstate") == "07" || model.getValue("/root/send/srchstate") == "08" || model.getValue("/root/send/srchstate") == "09"){
- var idx = 1;
- var cnt = getNodesetCount("/root/main/healdminfo/healdmlist/item");
- for(i=1; i<=cnt; i++){
- if(model.getValue("/root/main/healdminfo/healdmlist/item[" + i + "]/chk") == "Y"){
- model.makeValue("/root/rexaddprnt/item["+ idx +"]/pid" , model.getValue("/root/main/healdminfo/healdmlist/item["+ i +"]/pid"));
- model.makeValue("/root/rexaddprnt/item["+ idx +"]/hngnm" , model.getValue("/root/main/healdminfo/healdmlist/item["+ i +"]/hngnm"));
- model.makeValue("/root/rexaddprnt/item["+ idx +"]/rrgstno" , model.getValue("/root/main/healdminfo/healdmlist/item["+ i +"]/rrgstno"));
- model.makeValue("/root/rexaddprnt/item["+ idx +"]/zipcode" , model.getValue("/root/main/healdminfo/healdmlist/item["+ i +"]/zipcode"));
- model.makeValue("/root/rexaddprnt/item["+ idx +"]/address" , model.getValue("/root/main/healdminfo/healdmlist/item["+ i +"]/address"));
- model.makeValue("/root/rexaddprnt/item["+ idx +"]/testnm" , model.getValue("/root/main/healdminfo/healdmlist/item["+ i +"]/testnm"));
- idx++;
- }
- }
- var instcd = getUserInfo("dutplceinstcd");
- if (instcd == "031"){
- exeReportPreview("RPAHA02800", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- }else{
- exeReportPreview("RPAHA02801", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- }
- model.removeNodeset("/root/rexaddprnt");
- }else{
- messageBox("추후검사일 경우에만", "I006");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|