123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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="">
- <send>
- <fromdd/>
- <todd/>
- <pid/>
- <chkflag>1</chkflag>
- <judgrid/>
- <updatedata/>
- <sendflag/>
- <chkdate>2</chkdate>
- </send>
- <main>
- <list1>
- <grdsendmsglist>
- <ordtype/>
- <kindflag/>
- <sendmsg/>
- <recvmsg/>
- </grdsendmsglist>
- <sendmsginfo/>
- </list1>
- <msginfo>
- <sendmsg/>
- <msgwrtedd/>
- <recvmsg/>
- <recvcnfmyn/>
- </msginfo>
- </main>
- <init>
- <judgrid>0</judgrid>
- <openchk>
- <refyn/>
- <pid/>
- <orddd/>
- <cretno/>
- <mskind/>
- <orddeptcd/>
- <orddrid/>
- <orddrnm/>
- <ordtype/>
- </openchk>
- </init>
- <hidden>
- <tmp/>
- <tmpsendmsginfo/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- model.refresh();
- ]]>
- </script>
- <submission id="TRPIJ02503" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/judgrid"/>
- <submission id="TXPIJ02501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/hidden"/>
- <submission id="TRPIJ02502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1/grdsendmsglist"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize(){
- var curDate = getCurrentDate();
-
- model.setValue("/root/send/fromdd", curDate);
- model.setValue( "/root/send/todd", curDate);
- submit("TRPIJ02503");
-
- //팝업으로 호출시
- if (checkOpener()) {
-
- curDate = curDate.toDate().getAddDate(-6,"M");
- var nextDate = curDate.getFullYear();
- nextDate = nextDate.toString() + (( curDate.getMonth() + 1 > 9 ) ? curDate.getMonth() + 1 : "0" + (curDate.getMonth() + 1));
- nextDate = nextDate.toString() + (( curDate.getDate() > 9 ) ? curDate.getDate() : "0" + curDate.getDate()) ;
-
- //model.setValue("/root/send/sendflag", model.getValue(""));
- //model.setValue("/root/init/judgrid", model.getValue(""));
- model.setValue("/root/send/chkdate", "2");
- model.setValue("/root/send/fromdd", nextDate);
- //model.setValue("/root/send/todd", model.getValue(""));
- model.setValue("/root/send/pid", model.getValue("/root/init/openchk/pid"));
- model.setValue("/root/send/chkflag", "1");
-
- //inputEnterKey("btn_search", "DOMActivate");
- btn_search.dispatch("onclick");
-
- model.refresh();
- }
-
-
-
- }
-
- function fSave(flag) {
- if(flag == "U"){
- var vrecvcnfmyn = ""
- if(model.getValue("/root/main/msginfo/recvcnfmyn") == "1")
- {
- vrecvcnfmyn = "Y"
- }
- else
- {
- vrecvcnfmyn = "N"
- }
- }
-
- model.makeValue("/root/send/updatedata/sendmsg",model.getValue("/root/main/msginfo/sendmsg"));
- model.makeValue("/root/send/updatedata/recvcnfmyn",vrecvcnfmyn);
- model.makeValue("/root/send/updatedata/msgwrtedd",model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/msgwrtedd"));
- model.makeValue("/root/send/updatedata/msgwrteno",model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/msgwrteno"));
- model.makeValue("/root/send/updatedata/msgwrtehistno",model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/msgwrtehistno"));
- model.makeValue("/root/send/updatedata/workflag", flag);
-
- if (submit("TXPIJ02501") == true) {
- btn_search.dispatch("onclick"); //저장처리 후, 내역 재조회(조회 이벤트 호출)
- }
-
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:269px; height:14px; ">메세지현황</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:771px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1121px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.setValue("/root/send/judgrid",model.getValue("/root/init/judgrid"));
- submit("TRPIJ02502");
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:1115px; y1:15px; x2:1115px; y2:37px; border-color:#ffe4bb; border-left-style:solid; "/>
- <line id="line1" class="line_1" style="x1:1px; y1:65px; x2:1195px; y2:65px; "/>
- <caption id="caption1" class="search_name" style="left:150px; top:20px; width:124px; height:17px; ">심사자(송신자) :</caption>
- <caption id="caption2" class="search_name" style="left:767px; top:20px; width:93px; height:17px; ">등록번호 :</caption>
- <caption id="caption5" style="left:641px; top:24px; width:15px; height:15px; ">~</caption>
- <select1 id="chkflag" ref="/root/send/chkflag" overflow="visible" appearance="full" cols="3" rows="1" style="left:950px; top:20px; width:160px; height:16px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>1</value>
- </item>
- <item>
- <label>응답</label>
- <value>2</value>
- </item>
- <item>
- <label>미응답</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="tit_2" style="left:5px; top:50px; width:150px; height:13px; ">메세지 송신내역</caption>
- <caption id="caption7" class="tit_2" style="left:10px; top:480px; width:157px; height:14px; ">보낸 메세지</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" inputtype="date" style="left:550px; top:20px; width:87px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" inputtype="date" style="left:662px; top:20px; width:90px; height:19px; "/>
- <input id="ipt_pid" ref="/root/send/pid" class="input_s_essential" style="left:865px; top:20px; width:70px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') {
- setInputNodeCurText();
- btn_search.dispatch("onclick");
- }
- ]]>
- </script>
- </input>
- <select1 id="cmb_judgrid" ref="/root/init/judgrid" class="combo_search" appearance="minimal" style="left:285px; top:20px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/judgrid">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <datagrid id="grd_sendmsglist" nodeset="/root/main/list1/grdsendmsglist" caption="진료형태^종류구분^수신처^등록번호^환자명^진료과^지정수신자^송신내용^송신자^송신일시^수신확인자^수신일시^수신내용^anybody^연속조회여부^주(M)/부(S)유형^진료일시^처방코드^처방코드명칭^처방급비^처방수량^처방횟수^처방일수^instcd^msgwrtedd^msgwrteno^msgwrtehistno" colsep="^" colwidth="65, 66, 55, 65, 63, 90, 77, 484, 76, 120, 76, 115, 236, 73, 91, 108, 115, 96, 204, 61, 61, 54, 60, 100, 100, 100, 100" dataheight="25" defaultrows="0" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" frozencols="6" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:70px; width:1194px; height:390px; ">
- <col ref="ordtype" style="text-align:center; "/>
- <col ref="kindflag" style="text-align:center; "/>
- <col ref="sendflag" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="orddeptcd" style="text-align:center; "/>
- <col ref="deliveid" style="text-align:center; "/>
- <col ref="sendmsg"/>
- <col ref="sendid" style="text-align:center; "/>
- <col ref="senddate" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="recvid" style="text-align:center; "/>
- <col ref="recvdate" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="recvmsg"/>
- <col ref="anybodyyn" style="text-align:center; "/>
- <col ref="recvcnfmyn" style="text-align:center; "/>
- <col ref="mskind" style="text-align:center; "/>
- <col ref="rgstdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="grupcalcscorcd"/>
- <col ref="codehngnm"/>
- <col ref="prcppayflag" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordqty" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordtims" style="text-align:center; "/>
- <col ref="orddays" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="msgwrtedd" visibility="hidden"/>
- <col ref="msgwrteno" visibility="hidden"/>
- <col ref="msgwrtehistno" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- //if (grd_sendmsglist.row > 0) {
- model.resetInstanceNode("/root/send/updatedata");
- model.resetInstanceNode("/root/hidden/tmpsendmsginfo");
- model.makeNode("/root/hidden/tmpsendmsginfo");
-
- var vrecvid = model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/recvid");
-
- if (vrecvid != "") {
- messageBox("이미 수신된 내역은 수정.","E001","");
- //btn_modify.disabled = true;
- btn_delete.disabled = true;
- txt_send.disabled = true;
- //return;
- }
- else{
- btn_modify.disabled = false;
- txt_send.disabled = false;
- btn_delete.disabled = false;
- }
-
- model.copyNode("/root/main/list1/sendmsginfo","/root/main/list1/grdsendmsglist["+(grd_sendmsglist.row-1)+"]");
- model.copyNode("/root/hidden/tmpsendmsginfo","/root/main/list1/grdsendmsglist["+(grd_sendmsglist.row-1)+"]");
-
- var vsendmsg = model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/sendmsg");
- txt_send.value = vsendmsg;
- var vrecvmsg = model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/recvmsg");
- txt_recv.value = vrecvmsg;
-
- var vrecvcnfmyn = model.getValue("/root/main/list1/grdsendmsglist["+ grd_sendmsglist.row +"]/recvcnfmyn");
- if (vrecvcnfmyn == 'Y')
- {
- vrecvcnfmyn = 1
- }
- else
- {
- vrecvcnfmyn = 0
- }
- cmb_recvcnfmyn.value = vrecvcnfmyn;
-
- model.refresh();
- }
- else {
- //messageBox("선택된 내역이 없습니다.", "E999","");
- //return;
- }
-
-
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- //sorting 시 인스턴스 구조를 재구성
- grd_sendmsglist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <caption id="caption8" class="tit_2" style="left:605px; top:480px; width:157px; height:13px; ">받은 메세지</caption>
- <button id="button2" class="btn4_letter2" style="left:1130px; top:735px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <button id="btn_modify" class="btn4_letter2" style="left:990px; top:735px; width:56px; height:22px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave("U");
- ]]>
- </script>
- </button>
- <textarea id="txt_send" ref="/root/main/msginfo/sendmsg" scroll="vertical" style="left:5px; top:500px; width:585px; height:220px; "/>
- <textarea id="txt_recv" ref="/root/main/msginfo/recvmsg" disabled="true" scroll="vertical" style="left:605px; top:500px; width:590px; height:220px; "/>
- <caption id="caption9" class="search_name" style="left:320px; top:475px; width:124px; height:17px; ">연속조회여부 :</caption>
- <select1 id="cmb_recvcnfmyn" ref="/root/main/msginfo/recvcnfmyn" class="combo_search" appearance="minimal" style="left:455px; top:475px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>Y</label>
- <value>1</value>
- </item>
- <item>
- <label>N</label>
- <value>0</value>
- </item>
- </choices>
- </select1>
- <button id="btn_delete" class="btn4_letter2" style="left:1060px; top:735px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave("D");
- ]]>
- </script>
- </button>
- <caption id="caption10" class="search_name" style="left:5px; top:20px; width:80px; height:17px; ">수신처 :</caption>
- <select1 id="cmb_sendflag" ref="/root/send/sendflag" class="combo_search" appearance="minimal" style="left:85px; top:20px; width:55px; height:19px; ">
- <choices>
- <item>
- <label>진료</label>
- <value>O</value>
- </item>
- <item>
- <label>간호</label>
- <value>C</value>
- </item>
- <item>
- <label>원무</label>
- <value>P</value>
- </item>
- <item>
- <label>수납</label>
- <value>R</value>
- </item>
- <item>
- <label/>
- <value/>
- </item>
- </choices>
- </select1>
- <select1 id="chkdate" ref="/root/send/chkdate" overflow="visible" appearance="full" cols="3" rows="1" style="left:390px; top:20px; width:155px; height:16px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>처방일자</label>
- <value>1</value>
- </item>
- <item>
- <label>송신일자</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="button1" class="btn4_letter2" style="left:920px; top:735px; width:56px; height:22px; ">
- <caption>액셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_sendmsglist.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|