123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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="">
- <main>
- <grpmasterinfo>
- <grpmasterinfolist>
- <shownm/>
- <grtype/>
- <staffid/>
- <orddeptcd/>
- </grpmasterinfolist>
- </grpmasterinfo>
- <drinfo>
- <drinfolist>
- <drnm/>
- <drid/>
- <deptcd/>
- <phone/>
- <bbtel/>
- </drinfolist>
- </drinfo>
- <workerinfo>
- <workerinfolist/>
- </workerinfo>
- <titleinfo>
- <worktitle/>
- <grpmtitle/>
- <staffnm/>
- <staffid/>
- <fromtm/>
- <totm/>
- </titleinfo>
- <drdetlinfo>
- <drnm/>
- <drid/>
- <deptcd/>
- <phone/>
- <bbtel/>
- </drdetlinfo>
- <prtinfo/>
- </main>
- <cond>
- <srchym/>
- <orddeptcd/>
- <drid/>
- <prtdeptcd/>
- </cond>
- <init>
- <orddeptinfo>
- <orddeptinfolist>
- <orddeptcd/>
- <orddeptnm/>
- </orddeptinfolist>
- </orddeptinfo>
- <menu>
- <item>
- <name>추가</name>
- <func>fAddWorkDr</func>
- </item>
- <item>
- <name>삭제</name>
- <func>fSetWorkDr</func>
- </item>
- <item>
- <name>새로고침</name>
- <func>fRefreshWorkDr</func>
- </item>
- </menu>
- </init>
- <send/>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
-
- function fInit() {
- zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/init/orddept"); //부서코드 콤보조회
- zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/prtinfo/orddept"); //부서코드 콤보조회
- addComboInstance("/root/init/orddept", "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 전체추가
- model.refresh();
- }
-
- function fSearch() {
- var deptcd = model.getValue("/root/cond/orddeptcd");
- var drid = model.getValue("/root/cond/drid");
-
- model.removenode("/root/send/deptcd");
- model.makeValue("/root/send/deptcd", deptcd);
- model.removenode("/root/send/drid");
- model.makeValue("/root/send/drid", drid);
-
- submit("TRMMO41002") ;
- }
-
- function fAdd() {
- var deptcd = model.getValue("/root/cond/orddeptcd");
- var deptnm = cmb_orddeptcd.label;
- var drid = model.getValue("/root/cond/drid");
- var drnm = combo1.label;
-
- if (deptcd == "" || deptcd == null || deptcd == "-") {
- messageBox("진료과를 선택하세요", "I999");
- return;
- }
-
- if (drid == "" || drid == null || drid == "-") {
- messageBox("의사를 선택하세요", "I999");
- return;
- }
-
- if (grd_rnlist.rows > 1 ){
- grd_rnlist.insertRow(1, "above");
- } else if (grd_rnlist.rows == 1 ){
- grd_rnlist.addRow(true, true);
- }
-
- grd_rnlist.valuematrix(1, grd_rnlist.colRef("deptcd")) = deptcd;
- grd_rnlist.valuematrix(1, grd_rnlist.colRef("deptnm")) = deptnm;
- grd_rnlist.valuematrix(1, grd_rnlist.colRef("drid")) = drid;
- grd_rnlist.valuematrix(1, grd_rnlist.colRef("drnm")) = drnm;
-
- grd_rnlist.refresh();
- }
-
- function fSave() {
- model.removenode("/root/send/savedata");
-
- var sHeader = "status▦deptcd▦drid▦seqno▦ampm▦datenm▦starttm▦endtm▦bigo▩";
- var sData = "";
-
- for(i = grd_rnlist.fixedRows; i < grd_rnlist.rows; i++) {
-
- var status = grd_rnlist.rowStatus(i) ;
-
- if (status == 1 || status == 2 || status == 3 || status == 4) {
- var ampm = grd_rnlist.ValueMatrix(i, grd_rnlist.colRef("ampm"));
- if (ampm == "" || ampm == null) {
- ampm = "T";
- }
-
- var datenm = grd_rnlist.ValueMatrix(i, grd_rnlist.colRef("datenm"));
- if (datenm == "" || datenm == null) {
- datenm = "T";
- }
-
- sData += status + "▦"
- + grd_rnlist.ValueMatrix(i, grd_rnlist.colRef("deptcd")) + "▦"
- + grd_rnlist.ValueMatrix(i, grd_rnlist.colRef("drid")) + "▦"
- + grd_rnlist.ValueMatrix(i, grd_rnlist.colRef("seqno")) + "▦"
- + ampm + "▦"
- + datenm + "▦"
- + grd_rnlist.ValueMatrix(i, grd_rnlist.colRef("starttm")) + "▦"
- + grd_rnlist.ValueMatrix(i, grd_rnlist.colRef("endtm")) + "▦"
- + grd_rnlist.ValueMatrix(i, grd_rnlist.colRef("bigo")) + "▩";
- }
- }
-
- model.makeValue("/root/send/savedata/roundlist", sHeader + sData);
-
- if(submit("TXMMO41001")){
- fSearch();
- }
- }
-
- function fPrt() {
- var prtgbn = "";
- if (grd_prtdept.Rows == 1) {
- prtgbn = "all";
- }
-
- model.removenode("/root/send/deptcd");
- model.removenode("/root/send/drid");
- model.makeValue("/root/send/drid", "");
- var tmpDeptcd = "";
-
- if (prtgbn == "all") {
- model.makeValue("/root/send/deptcd", "");
- } else {
- for(var i = 1; i < grd_prtdept.Rows; i++) {
- tmpDeptcd += "'" + grd_prtdept.valueMatrix(i, grd_prtdept.colRef("deptcd")) + "',"
- }
- var deptcd = tmpDeptcd.substr(0, tmpDeptcd.length-1);
- model.makeValue("/root/send/deptcd", deptcd);
- }
-
- submit("TRMMO41002");
-
- exeReportPreview("RPMMO41001", "XMLSTR");
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMO41001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="root/main/userlist"/>
- <submission id="TRMMO41002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/roundinfo"/>
- <submission id="TXMMO41001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp/roundinfo"/>
- </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/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- </xhtml:head>
- <xhtml:body pagewidth="850" pageheight="580" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:16px; width:820px; height:550px; text-align:center; ">
- <line id="line2" class="line_1" style="x1:1px; y1:42px; x2:820px; y2:42px; "/>
- <group id="group4" style="left:0px; top:0px; width:820px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:820px; height:40px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:524px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:517px; y1:9px; x2:517px; y2:34px; "/>
- <caption id="caption1" class="search_name" style="left:5px; top:9px; width:91px; height:17px; ">진 료 과 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/cond/orddeptcd" navindex="2" appearance="minimal" style="left:90px; top:9px; width:190px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removenode("/root/send/deptcd");
- model.makeValue("/root/send/deptcd", cmb_orddeptcd.value);
- model.setValue("/root/cond/drid", "");
- submit("TRMMO41001");
- addComboInstance("/root/main/userlist", "userid^usernm", "-^전체", "usercombo");
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:295px; top:9px; width:71px; height:17px; ">의 사:</caption>
- <select1 id="combo1" ref="/root/cond/drid" navindex="2" appearance="minimal" style="left:360px; top:9px; width:120px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/main/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/cond/drid", combo1.value);
- //btn_search.dispatch('DOMActivate');
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn1_letter2" navindex="3" style="left:581px; top:10px; width:56px; height:22px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fAdd();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn1_letter2" navindex="3" style="left:695px; top:10px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn1_letter2" navindex="3" style="left:638px; top:10px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for (var i = 1; i < grd_rnlist.rows; i++) {
- if (grd_rnlist.isSelected(i)) {
- grd_rnlist.rowStatus(i) = 4;
- }
- }
- grd_rnlist.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn1_letter2" navindex="3" style="left:752px; top:10px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group1.visible = true;
- ]]>
- </script>
- </button>
- </group>
- <!-- 조회그룹 종료 -->
- <shape id="roundrect3" class="roundrect_example" appearance="roundrect" style="left:0px; top:517px; width:820px; height:32px; "/>
- <caption id="caption3" style="left:5px; top:520px; width:800px; height:27px; ">* 회진 시간은 사정에 따라 변경될 수 있으니 양해 바랍니다.</caption>
- <datagrid id="grd_rnlist" nodeset="/root/main/roundinfo/roundlist" caption="^진료과^^의사^seqno^오전/오후^요일^시작시간^종료시간^비고" colsep="^" colwidth="0, 140, 0, 90, 0, 60, 50, 70, 70, 300" defaultrows="0" focuscolor="#7fef0f" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:47px; width:820px; height:468px; ">
- <col ref="deptcd"/>
- <col ref="deptnm" type="output"/>
- <col ref="drid"/>
- <col ref="drnm" type="output"/>
- <col ref="seqno"/>
- <col ref="ampm" type="combo">
- <choices>
- <item>
- <label>오전</label>
- <value>A</value>
- </item>
- <item>
- <label>오후</label>
- <value>P</value>
- </item>
- <item>
- <label/>
- <value>T</value>
- </item>
- </choices>
- </col>
- <col ref="datenm" type="combo">
- <choices>
- <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>5</value>
- </item>
- <item>
- <label>금</label>
- <value>6</value>
- </item>
- <item>
- <label>토</label>
- <value>7</value>
- </item>
- <item>
- <label>일</label>
- <value>1</value>
- </item>
- <item>
- <label/>
- <value>T</value>
- </item>
- </choices>
- </col>
- <col ref="starttm" type="input" format="hh:nn"/>
- <col ref="endtm" type="input" format="hh:nn"/>
- <col ref="bigo" type="input" style="text-align:left; "/>
- </datagrid>
- <group id="group1" visibility="hidden" style="left:240px; top:135px; width:390px; height:250px; background-color:#ccffff; border-style:solid; ">
- <datagrid id="grd_prtdept" nodeset="/root/main/prtinfo/dept" caption="출력할 진료과^" colsep="^" colwidth="264, 0" mergecellsfixedrows="bycolrec" rowsep="|" style="left:12px; top:34px; width:367px; height:205px; ">
- <col ref="deptnm"/>
- <col ref="deptcd"/>
- </datagrid>
- <select1 id="cmb_dept2" ref="/root/cond/prtdeptcd" navindex="2" appearance="minimal" style="left:12px; top:9px; width:170px; height:19px; text-align:left; ">
- <choices>
- <itemset nodeset="/root/prtinfo/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <button id="button5" class="btn2_letter2" navindex="3" style="left:186px; top:9px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var deptcd = cmb_dept2.value;
- var deptnm = cmb_dept2.label;
-
- if (deptcd == "" || deptcd == null) {
- messageBox("출력할 진료과를 선택하십시오", "I999");
- return;
- }
-
- for (var i = 1 ; i < grd_prtdept.rows; i++) {
- if (deptcd == grd_prtdept.valuematrix(i, grd_prtdept.colRef("deptcd"))) {
- messageBox("이미 선택된 진료과 입니다.", "I999");
- return;
- }
- }
-
- if (grd_prtdept.rows > 1 ){
- grd_prtdept.insertRow(1, "above");
- } else if (grd_prtdept.rows == 1 ){
- grd_prtdept.addRow(true, true);
- }
-
- grd_prtdept.valuematrix(1, grd_prtdept.colRef("deptcd")) = deptcd;
- grd_prtdept.valuematrix(1, grd_prtdept.colRef("deptnm")) = deptnm;
-
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter2" navindex="3" style="left:229px; top:9px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_prtdept.Rows == 1) {
- if (messageBox("전체 진료과를 출력하시겠습니까?", "Q999") != "6") {
- return;
- }
- }
-
- fPrt();
- button7.dispatch('DOMActivate');
- group1.visible = false;
- ]]>
- </script>
- </button>
- <button id="button7" class="btn2_letter4" navindex="3" style="left:272px; top:9px; width:64px; height:19px; ">
- <caption>새로고침</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.destroy("/root/main/prtinfo");
- grd_prtdept.refresh();
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter2" navindex="3" style="left:337px; top:9px; width:42px; height:19px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- button7.dispatch('DOMActivate');
- group1.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">과별 교수별 회진 시간 관리</caption>
- </xhtml:body>
- </xhtml:html>
|