123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAHA00910_정밀검사상담관리.xrw
- * 설 명 : 정밀검사상담관리
- * 설 계 자 : 서원식
- * 작 성 자 : 서원식
- * 작 성 일 : 2012.05.16
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <rsrvacptlst>
- <item>
- <healexamflag/>
- <rsrvdd/>
- <rsrvno/>
- <healexamdetlflag/>
- <orddd/>
- <healexampid/>
- <pid/>
- <hngnm/>
- <mpphon/>
- <rsltcnstdd/>
- <rsltcnstrsrvstarttm/>
- <atypeyn/>
- <atypedd/>
- <atypetm/>
- <btpyeyn/>
- <btypedd/>
- <btypetm/>
- <ctpyeyn/>
- <ctypedd/>
- <ctypetm/>
- <dtpyeyn/>
- <dtypedd/>
- <dtypetm/>
- <remcnts/>
- <sage/>
- <rsltorddd/>
- <rsltordtm/>
- <aorddd/>
- <aordtm/>
- <borddd/>
- <bordtm/>
- <corddd/>
- <cordtm/>
- <dorddd/>
- <dordtm/>
- <vipyn/>
- <clntgrde/>
- </item>
- </rsrvacptlst>
- </main>
- <send>
- <srchhealexamflag>C</srchhealexamflag>
- <srchhealexamdetlflag>C01</srchhealexamdetlflag>
- <srchtype>orddd</srchtype>
- <srchstatflag/>
- <srchfromdd/>
- <srchtodd/>
- <srchprecise/>
- <srchhngnm/>
- <srchpid/>
- </send>
- <savedata/>
- <temp/>
- <popup>
- <item>
- <name>외래등록</name>
- <func>fInsOtpt</func>
- </item>
- <item>
- <name>외래예약확인</name>
- <func>fRsrvOtptChk</func>
- </item>
- </popup>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/SMAHA00910.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var curDt = getCurrentDate();
- // curDt = "20120503";
- model.setValue(ipt_srchfromdd.attribute("ref") , curDt);
- model.setValue(ipt_srchtodd.attribute("ref") , curDt);
- model.refresh();
- ]]>
- </script>
- <submission id="TRAHA00910" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvacptlst"/>
- <submission id="TRAHA00911" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/savedata" replace="instance" resultref="/root/temp"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /**==========================================================================================================================
- * 정밀검사상담관리 조회
- *==========================================================================================================================*/
- function GetPreciseRsrvList(){
- if(submit("TRAHA00910")){
- fSetColor();
- }
- }
-
- /**==========================================================================================================================
- * 정밀검사상담관리 리스트 색설정
- *==========================================================================================================================*/
- function fSetColor(){
- grd_rsrvacpt.rebuildStyle();
- for(var i=2; i<=grd_rsrvacpt.rows; i++){
- if(grd_rsrvacpt.valueMatrix( i , grd_rsrvacpt.colRef("vipyn")) == "Y"){
- grd_rsrvacpt.rowStyle(i, "data", "background-color") = "#FFC0CB"; // 주황
- }else{
- grd_rsrvacpt.rowStyle(i, "data", "background-color") = "#FFFFFF";
- }
-
- if(grd_rsrvacpt.valueMatrix( i , grd_rsrvacpt.colRef("atypeyn")) == "Y"){
- grd_rsrvacpt.cellStyle("background-color" , i , grd_rsrvacpt.colRef("atypeyn") , i , grd_rsrvacpt.colRef("atypetm")) = "#FF8888"; //빨강
- }
- if(grd_rsrvacpt.valueMatrix( i , grd_rsrvacpt.colRef("btypeyn")) == "Y"){
- grd_rsrvacpt.cellStyle("background-color" , i , grd_rsrvacpt.colRef("btypeyn") , i , grd_rsrvacpt.colRef("btypetm")) = "#FFDC74"; //노랑
- }
- if(grd_rsrvacpt.valueMatrix( i , grd_rsrvacpt.colRef("ctypeyn")) == "Y"){
- grd_rsrvacpt.cellStyle("background-color" , i , grd_rsrvacpt.colRef("ctypeyn") , i , grd_rsrvacpt.colRef("ctypetm")) = "#C4E693"; //녹색
- }
- if(grd_rsrvacpt.valueMatrix( i , grd_rsrvacpt.colRef("dtypeyn")) == "Y"){
- grd_rsrvacpt.cellStyle("background-color" , i , grd_rsrvacpt.colRef("dtypeyn") , i , grd_rsrvacpt.colRef("dtypetm")) = "#85B3FF"; //파랑
- }
- }
- }
-
- /**==========================================================================================================================
- * 정밀검사상담관리 저장
- *==========================================================================================================================*/
- function fSavePreciseRsrv(){
- model.makeValue("/root/savedata", grd_rsrvacpt.getUpdateData());
- if(submit("TRAHA00911")){
- btn_search.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="2,788;" style="border-left-style:none; 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:230px; height:13px; ">정밀검사상담관리</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:15px; width:1195px; height:740px; ">
- <group id="group5" style="left:0px; top:5px; width:1195px; height:80px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:5px; width:1190px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption11" class="search_name" style="left:10px; top:14px; width:105px; height:17px; ">조회기준 :</caption>
- <select1 id="rdo_srchcond" ref="/root/send/srchtype" class="radio_search" appearance="full" cellspacing="2" cols="2" overflow="visible" style="left:101px; top:14px; width:119px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>건진일</label>
- <value>orddd</value>
- </item>
- <item>
- <label>상담일</label>
- <value>rsltdd</value>
- </item>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:367px; top:14px; width:63px; height:17px; ">일자 :</caption>
- <input id="ipt_srchfromdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:428px; top:14px; width:99px; height:19px; "/>
- <caption id="caption19" class="search_n_b" style="left:531px; top:14px; width:19px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_srchtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:545px; top:14px; width:99px; height:19px; "/>
- <caption id="caption4" class="search_name" style="left:650px; top:14px; width:89px; height:17px; ">정밀검사 :</caption>
- <select1 id="cmb_srchprecise" ref="/root/send/srchprecise" class="combo_s_essential" appearance="minimal" style="left:735px; top:14px; width:79px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>심장정밀</label>
- <value>A</value>
- </item>
- <item>
- <label>뇌정밀</label>
- <value>B</value>
- </item>
- <item>
- <label>남성정밀</label>
- <value>C</value>
- </item>
- <item>
- <label>여성정밀</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:10px; top:45px; width:61px; height:17px; ">성명 :</caption>
- <input id="ipt_srchpnm" ref="/root/send/srchhngnm" class="input_search" imemode="hangul" style="left:75px; top:45px; width:67px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13){
- ipt_srchpnm.value = ipt_srchpnm.currentText;
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption7" class="search_name" style="left:153px; top:45px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_srchpid" ref="/root/send/srchpid" class="input_search" style="left:243px; top:45px; width:77px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13){
- ipt_srchpid.value = ipt_srchpid.currentText;
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_prt" class="btn6_letter2" style="left:1055px; top:29px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeValue("/root/main/export/srchfromdd" , model.getValue("/root/send/srchfromdd").toDate().getDateFormat("YYYY/MM/DD"));
- model.makeValue("/root/main/export/srchtodd" , model.getValue("/root/send/srchtodd").toDate().getDateFormat("YYYY/MM/DD"));
- exeReportPreview("RPAHA00910", "XMLSTR", "/root/main/export","", "false","","","","","false");
- ]]>
- </script>
- </button>
- <line id="line2" class="line_4" style="x1:1117px; y1:14px; x2:1117px; y2:62px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:29px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- GetPreciseRsrvList();
- ]]>
- </script>
- </button>
- <select1 id="cmb_srchstatfg" ref="/root/send/srchstatflag" class="combo_s_essential" appearance="minimal" style="left:281px; top:14px; width:78px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>예약</label>
- <value>AC</value>
- </item>
- <item>
- <label>예약취소</label>
- <value>D</value>
- </item>
- <item>
- <label>접수</label>
- <value>E</value>
- </item>
- <item>
- <label>결과</label>
- <value>G</value>
- </item>
- <item>
- <label>판정</label>
- <value>HI</value>
- </item>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:220px; top:14px; width:63px; height:17px; ">상태 :</caption>
- <button id="btn_srchpat" class="icon_search" style="left:322px; top:47px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchPatInfo("SMAHA00910", "pid", ipt_srchpid.currentText , "N", "/root/send" ,ipt_srchpid.attribute("ref"), ipt_srchpnm.attribute("ref") );
- ]]>
- </script>
- </button>
- </group>
- <button id="button1" class="btn2_letter4" style="left:1125px; top:88px; width:64px; height:19px; ">
- <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_rsrvacpt.saveExcel(fileName, "SheetName", false, false, "", "", false);
- ]]>
- </script>
- </button>
- <datagrid id="grd_rsrvacpt" nodeset="/root/main/rsrvacptlst/item" backcoloralternate="transparent" caption="healexamflag^rsrvdd^rsrvno^healexamdetlflag^healexampid^검진일^등록번호^성명^성별/
나이^연락처^VIP^VIP사유^결과상담^결과상담^외래예약(결과)^외래예약(결과)^심장정밀^심장정밀^심장정밀^외래예약(심장)^외래예약(심장)^남성정밀^남성정밀^남성정밀^외래예약(남성)^외래예약(남성)^여성정밀^여성정밀^여성정밀^외래예약(여성)^외래예약(여성)^비고^뇌정밀^뇌정밀^뇌정밀^외래예약(뇌정밀)^외래예약(뇌정밀)^VIP여부^VIP사유|healexamflag^rsrvdd^rsrvno^healexamdetlflag^healexampid^검진일^등록번호^성명^성별/
나이^연락처^VIP^VIP사유^예약일자^시간^예약일자^시간^여부^예약일자^시간^예약일자^시간^여부^예약일자^시간^예약일자^시간^여부^예약일자^시간^예약일자^시간^비고^여부^예약일자^시간^예약일자^시간^VIP여부^VIP사유" colsep="^" colwidth="10, 10, 10, 10, 10, 70, 60, 60, 38, 85, 29, 51, 75, 35, 75, 35, 30, 85, 35, 75, 35, 30, 85, 35, 75, 35, 30, 85, 35, 75, 35, 155, 30, 85, 35, 75, 35" ellipsis="true" explorerbar="sortshow" frozencols="10" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:110px; width:1190px; height:625px; ">
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="healexampid" visibility="hidden"/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid" style="text-align:left; padding-left:5; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sage" style="text-align:center; "/>
- <col ref="mpphon" style="text-align:center; "/>
- <col ref="vipyn" style="text-align:center; "/>
- <col ref="clntgrde" style="text-align:center; "/>
- <col ref="rsltcnstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rsltcnstrsrvstarttm" format="hh:nn" style="text-align:center; "/>
- <col ref="rsltorddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="rsltordtm" format="hh:nn" style="text-align:center; "/>
- <col ref="atypeyn" style="text-align:center; "/>
- <col ref="atypedd" type="inputdate"/>
- <col ref="atypetm" type="input" format="hh:nn"/>
- <col ref="aorddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="aordtm" format="hh:nn" style="text-align:center; "/>
- <col ref="ctypeyn" style="text-align:center; "/>
- <col ref="ctypedd" type="inputdate"/>
- <col ref="ctypetm" type="input" format="hh:nn"/>
- <col ref="corddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cordtm" format="hh:nn" style="text-align:center; "/>
- <col ref="dtypeyn" style="text-align:center; "/>
- <col ref="dtypedd" type="inputdate"/>
- <col ref="dtypetm" type="input" format="hh:nn"/>
- <col ref="dorddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="dordtm" format="hh:nn" style="text-align:center; "/>
- <col ref="remcnts" type="input" style="text-align:left; "/>
- <col ref="btypeyn" style="text-align:center; "/>
- <col ref="btypedd" type="inputdate"/>
- <col ref="btypetm" type="input" format="hh:nn"/>
- <col ref="borddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="bordtm" format="hh:nn" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- grd_rsrvacpt.col = grd_rsrvacpt.col + 1;
- // if(grd_rsrvacpt.col == grd_rsrvacpt.colRef("atypedd")){
- // grd_rsrvacpt.col = grd_rsrvacpt.colRef("atypetm")
- // grd_rsrvacpt.endEditCell();
- // grd_rsrvacpt.editCell();
- // model.setFocus("grd_rsrvacpt");
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_rsrvacpt.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3){
- if(grd_rsrvacpt.isCell(event.target) && grd_rsrvacpt.mouseRow >= grd_rsrvacpt.fixedRows){
- setPopupMenu("grd_rsrvacpt", false, "/root/popup/item", "name", "func");
-
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //2016/10/25 동명이인 관련 알림 팝업
- //fChkPatNameC(grd_rsrvacpt.nodeset, "hngnm", grd_rsrvacpt.valueMatrix(grd_rsrvacpt.row, grd_rsrvacpt.colRef("hngnm")));
- //2016/10/25 동명이인 관련 알림 팝업
- ]]>
- </script>
- </datagrid>
- </group>
- <button id="btn_prntname" class="btn4_letter2" style="left:1135px; top:760px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSavePreciseRsrv();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|