123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591 |
- <?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="">
- <send>
- <search>
- <fromdd/>
- <todd/>
- <cntcflag/>
- <cnstflag/>
- <cntcpsnnm/>
- </search>
- <savedata/>
- </send>
- <main>
- <list>
- <cnstlist>
- <cnstdd/>
- <cnstfromtm/>
- <cnsttotm/>
- <cntcflag/>
- <cntcpsnnm/>
- <sex/>
- <age/>
- <cnstflag/>
- <cnstgrde/>
- <coophospnm/>
- <cnstcnts/>
- <answcnts/>
- <cnstpsnid/>
- <cnstpsnnm/>
- <seqno/>
- <status/>
- </cnstlist>
- </list>
- <cnstinfo>
- <cnstdd/>
- <cnstfromtm/>
- <cnsttotm/>
- <coophospnm/>
- <cntcflag/>
- <cntcpsnnm/>
- <sex/>
- <age/>
- <cnstflag/>
- <cnstcnts/>
- <answcnts/>
- <cnstgrde/>
- <cnstpsnid/>
- <cnstpsnnm/>
- <seqno/>
- <status/>
- </cnstinfo>
- </main>
- <hidden>
- <statFlag/>
- </hidden>
- <init/>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRARH00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
- <submission id="TXARH00301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- </model>
- </xhtml:head>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- // 초기값 셋팅
- function fInit()
- {
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/search/fromdd", CurrentDate);
- model.setValue("/root/send/search/todd", CurrentDate);
-
- //alert(getUserInfo("posdeptnm")); // 사용자부서
-
- fDisabled(true);
-
- model.removeNodeset("/root/main/list/cnstlist");
- model.resetInstanceNode("/root/main/cnstinfo");
-
- model.setValue("/root/main/cnstinfo/cnstpsnid", getUserInfo("userid"));
- model.setValue("/root/main/cnstinfo/cnstpsnnm", getUserInfo("usernm"));
-
- model.refresh();
- }
-
- // 조회
- function fSearch()
- {
- model.resetInstanceNode("/root/main/cnstinfo");
- model.setValue("/root/main/cnstinfo/cnstpsnid", getUserInfo("userid"));
- model.setValue("/root/main/cnstinfo/cnstpsnnm", getUserInfo("usernm"));
- fDisabled(true);
-
- // reqGetCnstList
- // getCnstList
- if (submit("TRARH00301", false) == true)
- {
-
- }
- else
- {
- messageBox("조회를", "E009");
- }
- }
-
- // 저장
- function fSave()
- {
- model.resetInstanceNode("/root/send/savedata");
- model.copyNode("/root/send/savedata","/root/main/cnstinfo")
-
- if (submit("TXARH00301", false) == true)
- {
- fSearch();
- }
- else
- {
- messageBox("저장에", "E009");
- }
-
- model.refresh();
- }
-
- // 신규
- function fNewData()
- {
- fDisabled(false);
- model.resetInstanceNode("/root/main/cnstinfo");
-
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/main/cnstinfo/cnstdd", CurrentDate);
-
- model.setValue("/root/main/cnstinfo/cnstpsnid", getUserInfo("userid"));
- model.setValue("/root/main/cnstinfo/cnstpsnnm", getUserInfo("usernm"));
-
- model.setValue("/root/main/cnstinfo/status", "i");
-
- model.refresh();
- }
-
- // disable 여부
- function fDisabled(flag)
- {
- ipt_cnstdd.disabled = flag;
- ipt_cnstfromtm.disabled = flag;
- ipt_cnsttotm.disabled = flag;
- ipt_coophospnm.disabled = flag;
- cmb_cntcflag.disabled = flag;
- ipt_cntcpsnnm.disabled = flag;
- cmb_sex.disabled = flag;
- ipt_age.disabled = flag;
- cmb_cnstflag.disabled = flag;
- tar_cnstcnts.disabled = flag;
- tar_answcnts.disabled = flag;
- rdo_cnstgrde.disabled = flag;
- }
-
- // 병의원 내용 선택
- function fGridClick()
- {
- if (grd_list.rows<= 1) return;
- if (grd_list.row < 1) return;
-
- fDisabled(false);
- ipt_cnstdd.disabled = true;
- model.copyNode("/root/main/cnstinfo", "/root/main/list/cnstlist[" + grd_list.row + "]");
- model.refresh();
- }
-
- // 초기화
- function fAllClear()
- {
- model.resetInstanceNode("/root/send/search");
-
- // 오늘 날짜로 세팅
- var CurrentDate = getCurrentDate();
- model.setValue("/root/send/search/fromdd", CurrentDate);
- model.setValue("/root/send/search/todd", CurrentDate);
-
- fDisabled(true);
-
- model.removeNodeset("/root/main/list/cnstlist");
- model.resetInstanceNode("/root/main/cnstinfo");
-
- model.setValue("/root/main/cnstinfo/cnstpsnid", getUserInfo("userid"));
- model.setValue("/root/main/cnstinfo/cnstpsnnm", getUserInfo("usernm"));
-
- model.refresh();
- }
-
- // 엑셀로 저장
- function fExcel()
- {
- if (grd_list.rows <= 1) return;
- var fileName = window.fileDialog("save", ",", false, "병의원 전화상담 리스트", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != ""){
- grd_list.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- }
-
- // Default 체크
- function fDefaultCheck()
- {
- if (isNull(ipt_cnstdd.value) == true)
- {
- messageBox("상담일자를", "C001");
- model.setFocus("ipt_cnstdd");
- return false;
- }
-
- if (isNull(cmb_cntcflag.value) == true)
- {
- messageBox("통화자구분을", "C001");
- model.setFocus("cmb_cntcflag");
- return false;
- }
-
- if (isNull(cmb_cnstflag.value) == true)
- {
- messageBox("상담구분을", "C001");
- model.setFocus("cmb_cnstflag");
- return false;
- }
-
- return true;
- }
-
- ]]>
- </script>
- <xhtml:body pagewidth="1000" pageheight="757" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:983; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:165px; height:14px; ">상담관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:983; height:717px; ">
- <group id="group4" style="left:0px; top:10px; width:980px; height:40px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:980px; height:40px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line10" style="x1:904px; y1:9px; x2:904px; y2:31px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption14" class="search_name" style="left:10px; top:10px; width:75px; height:17px; ">상담일 :</caption>
- <caption id="caption1" class="search_name" style="left:300px; top:10px; width:99px; height:17px; ">통화자구분 :</caption>
- <caption id="caption2" class="search_name" style="left:510px; top:10px; width:99px; height:17px; ">상담구분 :</caption>
- <caption id="caption3" class="search_name" style="left:721px; top:10px; width:89px; height:17px; ">통화자명 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:915px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_s_cntcflag" ref="/root/send/search/cntcflag" class="combo_search" appearance="minimal" style="left:405px; top:8px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>- 전 체 -</label>
- <value></value>
- </item>
- <item>
- <label>환자</label>
- <value>1</value>
- </item>
- <item>
- <label>보호자</label>
- <value>2</value>
- </item>
- <item>
- <label>의뢰의사</label>
- <value>3</value>
- </item>
- <item>
- <label>병원관계자</label>
- <value>4</value>
- </item>
- <item>
- <label>기타</label>
- <value>9</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_s_cnstflag" ref="/root/send/search/cnstflag" class="combo_search" appearance="minimal" style="left:603px; top:10px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>- 전 체 -</label>
- <value></value>
- </item>
- <item>
- <label>병의원건의사항</label>
- <value>01</value>
- </item>
- <item>
- <label>환자상태문의</label>
- <value>02</value>
- </item>
- <item>
- <label>진료상담</label>
- <value>03</value>
- </item>
- <item>
- <label>결과지발송</label>
- <value>04</value>
- </item>
- <item>
- <label>전원의뢰중재</label>
- <value>05</value>
- </item>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_s_cntcpsnnm" ref="/root/send/search/cntcpsnnm" class="input_search" style="left:815px; top:10px; width:70px; height:19px; "/>
- <caption id="caption10" class="search_no_b" style="left:181px; top:10px; width:12px; height:17px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/search/fromdd" class="input_search" inputtype="date" style="left:90px; top:10px; width:90px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/search/todd" class="input_search" inputtype="date" style="left:195px; top:10px; width:90px; height:19px; "/>
- </group>
- <line id="line11" class="line_1" style="x1:0px; y1:77px; x2:655px; y2:76px; "/>
- <caption id="caption18" class="tit_2" style="left:5px; top:60px; width:157px; height:13px; ">병의원 전화상담 리스트</caption>
- <caption id="caption4" class="tit_2" style="left:666px; top:60px; width:170px; height:13px; ">병의원 전화상담 상세내역</caption>
- <line id="line1" class="line_1" style="x1:665px; y1:76px; x2:983px; y2:76px; "/>
- <caption id="caption26" class="cell_1" style="left:665px; top:82px; width:85px; height:23px; vertical-align:middle; ">상담일자</caption>
- <line id="line2" class="line_2" style="x1:665px; y1:104px; x2:983px; y2:104px; "/>
- <line id="line3" class="line_2" style="x1:665px; y1:128px; x2:983px; y2:128px; "/>
- <caption id="caption5" class="cell_1" style="left:665px; top:106px; width:85px; height:23px; vertical-align:middle; ">상담시작시간</caption>
- <caption id="caption7" class="cell_1" style="left:665px; top:130px; width:85px; height:23px; vertical-align:middle; ">상담종료시간</caption>
- <line id="line4" class="line_2" style="x1:665px; y1:152px; x2:983px; y2:152px; "/>
- <caption id="caption8" class="cell_1" style="left:665px; top:154px; width:85px; height:23px; vertical-align:middle; ">협력병의원명</caption>
- <line id="line5" class="line_2" style="x1:665px; y1:176px; x2:983px; y2:176px; "/>
- <caption id="caption9" class="cell_1" style="left:665px; top:178px; width:85px; height:23px; vertical-align:middle; ">통화자구분</caption>
- <line id="line6" class="line_2" style="x1:665px; y1:200px; x2:983px; y2:200px; "/>
- <line id="line7" class="line_2" style="x1:665px; y1:224px; x2:983px; y2:224px; "/>
- <caption id="caption11" class="cell_1" style="left:665px; top:250px; width:85px; height:204px; vertical-align:middle; ">상담내용</caption>
- <line id="line8" class="line_2" style="x1:665px; y1:642px; x2:983px; y2:642px; "/>
- <line id="line12" class="line_2" style="x1:665px; y1:690px; x2:983px; y2:690px; "/>
- <caption id="caption12" class="cell_1" style="left:665px; top:668px; width:85px; height:23px; vertical-align:middle; ">상담자ID</caption>
- <line id="line13" class="line_2" style="x1:665px; y1:714px; x2:983px; y2:714px; "/>
- <caption id="caption15" class="cell_1" style="left:665px; top:692px; width:85px; height:23px; vertical-align:middle; ">상담자명</caption>
- <line id="line14" class="line_2" style="x1:665px; y1:666px; x2:983px; y2:666px; "/>
- <caption id="caption16" class="cell_1" style="left:665px; top:644px; width:85px; height:23px; vertical-align:middle; ">상담정도</caption>
- <caption id="caption17" class="cell_1" style="left:665px; top:202px; width:85px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <line id="line15" class="line_2" style="x1:665px; y1:248px; x2:983px; y2:248px; "/>
- <line id="line16" class="line_3" style="x1:665px; y1:714px; x2:983px; y2:714px; "/>
- <caption id="caption19" class="cell_1" style="left:665px; top:455px; width:85px; height:187px; vertical-align:middle; ">답변내용</caption>
- <line id="line9" class="line_2" style="x1:667px; y1:453px; x2:983px; y2:453px; "/>
- <caption id="caption13" class="cell_1" style="left:665px; top:226px; width:85px; height:23px; vertical-align:middle; ">상담구분</caption>
- <input id="ipt_cnstdd" ref="/root/main/cnstinfo/cnstdd" class="input_essential" inputtype="date" style="left:753px; top:82px; width:119px; height:19px; "/>
- <input id="ipt_cnstfromtm" ref="/root/main/cnstinfo/cnstfromtm" class="input_default" maxlength="4" format="hh:nn" style="left:753px; top:107px; width:70px; height:19px; text-align:center; "/>
- <input id="ipt_cnsttotm" ref="/root/main/cnstinfo/cnsttotm" class="input_default" maxlength="4" format="hh:nn" style="left:753px; top:131px; width:70px; height:19px; text-align:center; "/>
- <input id="ipt_coophospnm" ref="/root/main/cnstinfo/coophospnm" class="input_default" visibility="visible" imemode="hangul" maxlength="16" style="left:753px; top:155px; width:228px; height:19px; "/>
- <select1 id="cmb_cntcflag" ref="/root/main/cnstinfo/cntcflag" class="combo_essential" appearance="minimal" style="left:753px; top:179px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>환자</label>
- <value>1</value>
- </item>
- <item>
- <label>보호자</label>
- <value>2</value>
- </item>
- <item>
- <label>의뢰의사</label>
- <value>3</value>
- </item>
- <item>
- <label>병원관계자</label>
- <value>4</value>
- </item>
- <item>
- <label>기타</label>
- <value>9</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_cntcpsnnm" ref="/root/main/cnstinfo/cntcpsnnm" class="input_default" visibility="visible" imemode="hangul" maxlength="16" appearance="input" style="left:841px; top:179px; width:140px; height:19px; "/>
- <select1 id="cmb_sex" ref="/root/main/cnstinfo/sex" class="combo_default" appearance="minimal" style="left:753px; top:203px; width:45px; height:19px; ">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_age" ref="/root/main/cnstinfo/age" class="input_default" maxlength="4" format="#,###" style="left:801px; top:203px; width:40px; height:19px; text-align:right; "/>
- <select1 id="cmb_cnstflag" ref="/root/main/cnstinfo/cnstflag" class="combo_essential" appearance="minimal" style="left:753px; top:227px; width:122px; height:19px; ">
- <choices>
- <item>
- <label>병의원건의사항</label>
- <value>01</value>
- </item>
- <item>
- <label>환자상태문의</label>
- <value>02</value>
- </item>
- <item>
- <label>진료상담</label>
- <value>03</value>
- </item>
- <item>
- <label>결과지발송</label>
- <value>04</value>
- </item>
- <item>
- <label>전원의뢰중재</label>
- <value>05</value>
- </item>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- </select1>
- <textarea id="tar_cnstcnts" ref="/root/main/cnstinfo/cnstcnts" imemode="hangul" maxlength="333" style="left:753px; top:250px; width:230px; height:201px; "/>
- <textarea id="tar_answcnts" ref="/root/main/cnstinfo/answcnts" imemode="hangul" maxlength="333" style="left:753px; top:456px; width:230px; height:183px; "/>
- <select1 id="rdo_cnstgrde" ref="/root/main/cnstinfo/cnstgrde" class="radio_default" overflow="visible" appearance="full" cellspacing="20" cols="3" style="left:755px; top:647px; width:140px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>상</label>
- <value>B</value>
- </item>
- <item>
- <label>중</label>
- <value>M</value>
- </item>
- <item>
- <label>하</label>
- <value>W</value>
- </item>
- </choices>
- </select1>
- <output id="opt_cnstpsnid" ref="/root/main/cnstinfo/cnstpsnid" class="input_default" appearance="output" style="left:753px; top:669px; width:100px; height:19px; "/>
- <output id="opt_cnstpsnnm" ref="/root/main/cnstinfo/cnstpsnnm" class="input_default" appearance="output" style="left:753px; top:693px; width:100px; height:19px; "/>
- <datagrid id="grd_list" nodeset="/root/main/list/cnstlist" caption="상담일자^시작시간^종료시간^통화자구분^통화자명^성별^나이^상담구분^상담정도" colsep="^" colwidth="80, 60, 60, 80, 90, 40, 40, 90, 60" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:80px; width:655px; height:635px; ">
- <col ref="cnstdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="cnstfromtm" format="hh:nn" style="text-align:center; "/>
- <col ref="cnsttotm" format="hh:nn" style="text-align:center; "/>
- <col disabled="true" ref="cntcflag" type="combo">
- <choices>
- <item>
- <label>환자</label>
- <value>1</value>
- </item>
- <item>
- <label>보호자</label>
- <value>2</value>
- </item>
- <item>
- <label>의뢰의사</label>
- <value>3</value>
- </item>
- <item>
- <label>병원관계자</label>
- <value>4</value>
- </item>
- <item>
- <label>기타</label>
- <value>9</value>
- </item>
- </choices>
- </col>
- <col ref="cntcpsnnm"/>
- <col disabled="true" ref="sex" type="combo">
- <choices>
- <item>
- <label>남</label>
- <value>M</value>
- </item>
- <item>
- <label>여</label>
- <value>F</value>
- </item>
- </choices>
- </col>
- <col ref="age" style="text-align:right; "/>
- <col disabled="true" ref="cnstflag" type="combo">
- <choices>
- <item>
- <label>병의원건의사항</label>
- <value>01</value>
- </item>
- <item>
- <label>환자상태문의</label>
- <value>02</value>
- </item>
- <item>
- <label>진료상담</label>
- <value>03</value>
- </item>
- <item>
- <label>결과지발송</label>
- <value>04</value>
- </item>
- <item>
- <label>전원의뢰중재</label>
- <value>05</value>
- </item>
- <item>
- <label>기타</label>
- <value>99</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="cnstgrde" type="combo">
- <choices>
- <item>
- <label>상</label>
- <value>B</value>
- </item>
- <item>
- <label>중</label>
- <value>M</value>
- </item>
- <item>
- <label>하</label>
- <value>W</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGridClick();
- ]]>
- </script>
- </datagrid>
- <button id="btn_new" class="btn2_letter2" style="left:940px; top:56px; width:42px; height:19px; letter-spacing:1; ">
- <caption>신규</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fNewData();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn2_letter2" style="left:615px; top:56px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExcel();
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" scroll="auto" style="left:0px; top:730px; width:983; height:27px; ">
- <button id="btn_save" class="btn4_letter2" style="left:851px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // default 체크
- if (fDefaultCheck() == false) return;
-
- fSave();
- ]]>
- </script>
- </button>
- <button id="btn_allclear" class="btn4_letter3" style="left:910px; top:4px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAllClear();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|