123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737 |
- <?xml version="1.0" encoding="UTF-8"?>
- <?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>
- <workerinfo>
- <workerinfolist/>
- </workerinfo>
- <scheinfo>
- <schelist/>
- </scheinfo>
- <scheuserinfo>
- <scheusertel/>
- </scheuserinfo>
- </main>
- <cond>
- <sdate/>
- <edate/>
- <deptcd/>
- <gbn>A</gbn>
- <drid/>
- <workno/>
- </cond>
- <init>
- <orddeptinfo>
- <orddeptinfolist>
- <orddeptcd/>
- <orddeptnm/>
- </orddeptinfolist>
- </orddeptinfo>
- </init>
- <send/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- grd_workerlist.fixedcellcheckbox(0, 0) = true;
-
- var sStartdate = getCurrentDate().substr(0, 6) + "01";
- var sCurdate = getCurrentDate();
-
- model.setValue("/root/cond/sdate", sStartdate);
- model.setValue("/root/cond/edate", sCurdate);
-
- model.refresh();
-
- model.makeValue("/root/send/userid", getUserInfo("userid"));
- model.makeValue("/root/send/dutplcecd", getUserInfo("dutplcecd"));
- model.makeValue("/root/send/workdd", getCurrentDate());
- submit("TRMNE05805");
-
- if (model.getValue("/root/main/userinfo/superuser") == "Y") {
- btn_confirm.disabled = false;
- btn_workno.disabled = false;
- rdo_workno.disabled = false;
- } else {
- btn_confirm.disabled = true;
- btn_workno.disabled = true;
- rdo_workno.disabled = true;
- }
-
- ]]>
- </script>
- <!--submission id="TRMNE05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddeptinfo/orddeptinfolist"/-->
- <submission id="TRMNW00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init"/>
- <submission id="TRMNE05801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
- <submission id="TRMNE05802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/drinfo"/>
- <submission id="TRMNE05803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/deptinfo"/>
- <submission id="TRMNE05804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prtinfo"/>
- <submission id="TRMNE05805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/userinfo"/>
- <submission id="TRMNE05806" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/monthinfo" resultref="/root/main/scheinfo/schelist"/>
- <submission id="TRMNE05807" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/monthinfo" resultref="/root/main/scheuserinfo/scheusertel"/>
- <submission id="TXMNE05801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
- <submission id="TXMNE05802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/workerinfo/workerinfolist"/>
- <submission id="TXMNE05803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/workno" resultref="/root/temp"/>
- </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="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript">
- <![CDATA[
- var xPAth = "/root/main/workerinfo/workerinfolist";
-
- function fInit() {
-
- }
-
- function fGetDeptList() {
- var sSdate = model.getValue("/root/cond/sdate");
- var sEdate = model.getValue("/root/cond/edate");
- var sGbn = model.getValue("/root/cond/gbn");
-
- model.removeNodeset("/root/send/info");
- model.makeValue("/root/send/info/sdate", sSdate);
- model.makeValue("/root/send/info/edate", sEdate);
- model.makeValue("/root/send/info/gbn", sGbn);
-
- submit("TRMNE05803");
- }
-
- function fGetDrList() {
-
- model.setValue("/root/cond/drid", "");
-
- var sSdate = model.getValue("/root/cond/sdate");
- var sEdate = model.getValue("/root/cond/edate");
- var sGbn = model.getValue("/root/cond/gbn");
- var sDeptcd = model.getValue("/root/cond/deptcd");
-
- model.removeNodeset("/root/send/info");
- model.makeValue("/root/send/info/sdate", sSdate);
- model.makeValue("/root/send/info/edate", sEdate);
- model.makeValue("/root/send/info/gbn", sGbn);
- model.makeValue("/root/send/info/deptcd", sDeptcd);
-
- submit("TRMNE05802");
- }
-
- function fWorkYn() {
-
- var sSuperUser = model.getValue("/root/main/userinfo/superuser");
-
- model.removeNodeset("/root/send/saveinfo");
-
- var sHeader = "deptcd▦workdd▦gbn▦duty▦workyn▦workynrid▩";
- var sData = "";
-
- for(var i = 2 ; i < grd_workerlist.rows; i++ ){
- if (model.getValue(xPAth + "[" + (i-1) + "]/sel") == "Y" && (model.getValue(xPAth + "[" + (i-1) + "]/drid") == getUserInfo("userid") || sSuperUser == "Y")) {
-
- sData += model.getValue(xPAth + "[" + (i-1) + "]/deptcd") + "▦"
- + model.getValue(xPAth + "[" + (i-1) + "]/workdd") + "▦"
- + model.getValue(xPAth + "[" + (i-1) + "]/gbncd") + "▦"
- + model.getValue(xPAth + "[" + (i-1) + "]/dutycd") + "▦"
- + "Y" + "▦"
- + model.getValue(xPAth + "[" + (i-1) + "]/drid") + "▩" ;
- }
- }
-
- model.makeValue("/root/send/saveinfo/savelist", sHeader+sData);
- submit("TXMNE05801");
-
- }
-
- function fConfirmYn() {
-
- var sSuperUser = model.getValue("/root/main/userinfo/superuser");
-
- if (sSuperUser != "Y") {
- return;
- }
-
- model.removeNodeset("/root/send/saveinfo");
-
- var sHeader = "deptcd▦workdd▦gbn▦duty▦confirmyn▩";
- var sData = "";
-
- for(var i = 2 ; i < grd_workerlist.rows; i++ ){
- if (model.getValue(xPAth + "[" + (i-1) + "]/sel") == "Y") {
- sData += model.getValue(xPAth + "[" + (i-1) + "]/deptcd") + "▦"
- + model.getValue(xPAth + "[" + (i-1) + "]/workdd") + "▦"
- + model.getValue(xPAth + "[" + (i-1) + "]/gbncd") + "▦"
- + model.getValue(xPAth + "[" + (i-1) + "]/dutycd") + "▦"
- + "Y▩" ;
- }
- }
-
- model.makeValue("/root/send/saveinfo/savelist", sHeader+sData);
- submit("TXMNE05802");
-
- }
-
- function fSaveWorkno () {
-
- var sHeader = "workdd▦duty▦drid▦drnm▦orddeptcd▦orddeptnm▦workno▩";
- var sData = "";
-
- for ( var i = 1; i < grd_month.rows; i++) {
- deptcd = grd_month.valueMatrix(i, grd_month.colRef("orddeptcd"));
- deptnm = grd_month.valueMatrix(i, grd_month.colRef("orddeptnm"));
-
- for ( var j = 1; j <= 7; j++) {
- if (grd_month.valueMatrix(i, grd_month.colRef("modify" + j)) == "Y") {
- drid = grd_month.valueMatrix(i, grd_month.colRef("drid" + j));
- drnm = grd_month.valueMatrix(i, grd_month.colRef("drnm" + j));
- workdd = grd_month.valueMatrix(i, grd_month.colRef("workdd" + j));
- workno = grd_month.valueMatrix(i, grd_month.colRef("workno" + j));
-
- sData += workdd + "▦"
- + "D" + "▦"
- + drid + "▦"
- + drnm + "▦"
- + deptcd + "▦"
- + deptnm + "▦"
- + workno + "▩" ;
- }
- }
- }
-
- model.removeNodeset("/root/send/workno");
- model.makeValue("/root/send/workno/savelist", sHeader + sData);
-
- submit("TXMNE05803");
-
- fSearchMonth();
- }
-
- function fSearchMonth() {
-
- model.removeNodeset("/root/send/monthinfo");
- model.makeValue("/root/send/monthinfo/schmonth", model.getValue("/root/cond/sdate").substr(0, 6));
- model.makeValue("/root/send/monthinfo/gbn", model.getValue("/root/send/info/gbn"));
- model.makeValue("/root/send/monthinfo/deptcd", model.getValue("/root/send/info/deptcd"));
- model.makeValue("/root/send/monthinfo/drid", model.getValue("/root/send/info/drid"));
-
- submit("TRMNE05806");
-
- var deptcd = "";
- var workno = "";
-
- for(var i = 1; i <= grd_month.rows; i++){
-
- if (i == 1) {
- grd_month.cellstyle("background-color", i, 0, i, 30) = "#FFF000";
- }
-
- if (i > 1) {
- j = i - 1;
- deptcd = model.getValue("/root/main/scheinfo/schelist[" + i + "]/orddeptcd");
-
- if (deptcd == "") {
- grd_month.cellstyle("background-color", i, 0, i, 30) = "#FFF000";
- } else {
- grd_month.cellstyle("background-color", i, 3, i, 30) = "#ffffff";
- grd_month.cellstyle("background-color", i, 2, i, 2) = "#ccffff";
- }
- }
-
- for ( var j= 1; j <= 7; j ++ ) {
-
- workno = model.getValue("/root/main/scheinfo/schelist[" + i + "]/workno" + j);
- drid = model.getValue("/root/main/scheinfo/schelist[" + i + "]/drid" + j);
-
- if (drid != "" && deptcd != "") {
-
- tmpColNo = parseInt(6 + (j - 1) * 4) ;
-
- switch (workno) {
- case "1":
- tmpBgColor = "#ff99cc";
- break;
- case "2":
- tmpBgColor = "#ffcc99";
- break;
- case "3":
- tmpBgColor = "#ffff99";
- break;
- case "4":
- tmpBgColor = "#ccffcc";
- break;
- case "5":
- tmpBgColor = "#ccffff";
- break;
- case "6":
- tmpBgColor = "#cc99ff";
- break;
- default:
- if (deptcd == "") {
- tmpBgColor = "#fff000";
- } else {
- tmpBgColor = "#ffffff";
- }
- break;
- }
-
- tmpDrCol = parseInt(tmpColNo - 3);
- grd_month.cellstyle("background-color", i, tmpDrCol, i, tmpColNo) = tmpBgColor;
-
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1130" pageheight="880" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:92px; width:485px; height:745px; text-align:center; ">
- <line id="line3" class="line_1" style="x1:0px; y1:0px; x2:485px; y2:0px; "/>
- <datagrid id="grd_workerlist" nodeset="/root/main/workerinfo/workerinfolist" caption="^일자^구분^진료과^duty^의사^의사^근무
확인^최종
확인|^일자^구분^진료과^duty^사번^이름^근무
확인^최종
확인" colsep="^" colwidth="30, 70, 50, 80, 35, 45, 60, 55, 40" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:5px; width:485px; height:740px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="workdd" format="yyyy-mm-dd"/>
- <col ref="gbn"/>
- <col ref="deptnm"/>
- <col ref="dutycd"/>
- <col ref="drid"/>
- <col ref="drnm"/>
- <col ref="worker"/>
- <col ref="confirmyn"/>
- </datagrid>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:720px; height:13px; ">기간별 권역외상센터 당직의사 조회</caption>
- <group id="group4" style="left:0px; top:20px; width:1110px; height:70px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1110px; height:70px; "/>
- <button id="btn_search" class="btn1_letter2" navindex="3" style="left:567px; top:12px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sSuperUser = model.getValue("/root/main/userinfo/superuser");
- var sSdate = model.getValue("/root/cond/sdate");
- var sEdate = model.getValue("/root/cond/edate");
- var sGbn = model.getValue("/root/cond/gbn");
- var sDeptcd = model.getValue("/root/cond/deptcd");
- var sDrid = model.getValue("/root/cond/drid");
-
- model.removeNodeset("/root/send/info");
- model.makeValue("/root/send/info/sdate", sSdate);
- model.makeValue("/root/send/info/edate", sEdate);
- model.makeValue("/root/send/info/gbn", sGbn);
- model.makeValue("/root/send/info/deptcd", sDeptcd);
- model.makeValue("/root/send/info/drid", sDrid);
-
- submit("TRMNE05801");
-
- for(var i = 2 ; i < grd_workerlist.rows; i++ ){
- //근무확인했으면 비활성화
- if (model.getValue(xPAth + "[" + (i-1) + "]/workyn") == "Y" && sSuperUser != "Y") {
- grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = true;
- } else {
- //본인꺼만 활성화
- if (model.getValue(xPAth + "[" + (i-1) + "]/drid") == getUserInfo("userid") || "ENR" == getUserInfo("userid") || sSuperUser == "Y") {
- grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = false;
- } else {
- grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = true;
- }
- }
- }
-
- fSearchMonth();
-
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:4px; top:10px; width:91px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">기 간 :</caption>
- <caption id="caption8" style="left:184px; top:9px; width:15px; height:20px; font-weight:bold; ">~</caption>
- <input id="ipt_srhto" ref="/root/cond/edate" class="input_s_essential" inputtype="date" style="left:199px; top:10px; width:92px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <input id="ipt_srhfrom" ref="/root/cond/sdate" class="input_s_essential" inputtype="date" style="left:90px; top:10px; width:92px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </input>
- <caption id="caption2" class="search_name" style="left:300px; top:10px; width:91px; height:17px; ">구 분 :</caption>
- <select1 id="radio1" ref="/root/cond/gbn" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:375px; top:10px; width:175px; height:20px; font-weight:bold; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>당직</label>
- <value>T</value>
- </item>
- <item>
- <label>OnCall</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInit();
- ]]>
- </script>
- </select1>
- <caption id="caption1" class="search_name" style="left:4px; top:39px; width:91px; height:17px; ">진 료 과 :</caption>
- <select1 id="cmb_dept" ref="/root/cond/deptcd" class="combo_search" appearance="minimal" style="left:90px; top:40px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptinfo/">
- <label ref="deptnm"/>
- <value ref="deptid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- fGetDeptList();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetDrList();
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn1_letter2" navindex="3" style="left:699px; top:12px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sSdate = model.getValue("/root/cond/sdate");
- var sEdate = model.getValue("/root/cond/edate");
- var sGbn = model.getValue("/root/cond/gbn");
- var sDeptcd = model.getValue("/root/cond/deptcd");
- var sDrid = model.getValue("/root/cond/drid");
-
- model.removeNodeset("/root/send/info");
- model.makeValue("/root/send/info/sdate", sSdate);
- model.makeValue("/root/send/info/edate", sEdate);
- model.makeValue("/root/send/info/gbn", sGbn);
- model.makeValue("/root/send/info/deptcd", sDeptcd);
- model.makeValue("/root/send/info/drid", sDrid);
-
- submit("TRMNE05804");
- exeReportPreview("RPMNE05800", "XMLSTR","","","");
- ]]>
- </script>
- </button>
- <line id="line1" style="x1:560px; y1:11px; x2:560px; y2:61px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="button2" class="btn2_letter4" navindex="3" style="left:567px; top:38px; width:64px; height:19px; ">
- <caption>근무확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fWorkYn();
-
- var sSuperUser = model.getValue("/root/main/userinfo/superuser");
-
- for(var i = 2 ; i < grd_workerlist.rows; i++ ){
- //근무확인했으면 비활성화
- if (model.getValue(xPAth + "[" + (i-1) + "]/workyn") == "Y") {
- grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = true;
- } else {
- //본인꺼만 활성화
- if (model.getValue(xPAth + "[" + (i-1) + "]/drid") == getUserInfo("userid") || sSuperUser == "Y") {
- grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = false;
- } else {
- grd_workerlist.isReadOnly(i, grd_workerlist.colRef("sel")) = true;
- }
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:300px; top:40px; width:91px; height:17px; ">의 사 :</caption>
- <select1 id="combo1" ref="/root/cond/drid" class="combo_search" appearance="minimal" style="left:377px; top:40px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/drinfo/">
- <label ref="drnm"/>
- <value ref="drid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_search.dispatch('DOMActivate');
- fInit();
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- fGetDrList();
- ]]>
- </script>
- </select1>
- <button id="button3" class="btn1_letter3" navindex="3" style="left:627px; top:12px; width:68px; height:22px; ">
- <caption>EXCEL</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "권역외상센터당직의", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(fileName != ""){
- grd_workerlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_confirm" class="btn5_letter4" navindex="3" style="left:635px; top:38px; width:64px; height:19px; ">
- <caption>최종확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fConfirmYn();
- ]]>
- </script>
- </button>
- <button id="btn_workno" class="btn5_letter4" navindex="3" style="left:978px; top:38px; width:64px; height:19px; ">
- <caption>순번저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSaveWorkno();
-
- ]]>
- </script>
- </button>
- <select1 id="rdo_workno" ref="/root/cond/workno" appearance="full" cellspacing="5" cols="7" overflow="visible" style="left:750px; top:40px; width:225px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>(-)</label>
- <value/>
- </item>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- <item>
- <label>4</label>
- <value>4</value>
- </item>
- <item>
- <label>5</label>
- <value>5</value>
- </item>
- <item>
- <label>6</label>
- <value>6</value>
- </item>
- </choices>
- </select1>
- <shape id="rectangle1" appearance="rectangle" style="left:801px; top:20px; width:20px; height:15px; background-color:#ff99cc; "/>
- <shape id="rectangle2" appearance="rectangle" style="left:831px; top:20px; width:20px; height:15px; background-color:#ffcc99; "/>
- <shape id="rectangle3" appearance="rectangle" style="left:862px; top:20px; width:20px; height:15px; background-color:#ffff99; "/>
- <shape id="rectangle4" appearance="rectangle" style="left:894px; top:20px; width:20px; height:15px; background-color:#ccffcc; "/>
- <shape id="rectangle5" appearance="rectangle" style="left:924px; top:20px; width:20px; height:15px; background-color:#ccffff; "/>
- <shape id="rectangle6" appearance="rectangle" style="left:955px; top:20px; width:20px; height:15px; background-color:#cc99ff; "/>
- <button id="button4" class="btn1_letter2" navindex="3" style="left:983px; top:13px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // var sSdate = model.getValue("/root/cond/sdate");
- // var sEdate = model.getValue("/root/cond/edate");
- // var sGbn = model.getValue("/root/cond/gbn");
- // var sDeptcd = model.getValue("/root/cond/deptcd");
- // var sDrid = model.getValue("/root/cond/drid");
- //
- // model.removeNodeset("/root/send/info");
- // model.makeValue("/root/send/info/sdate", sSdate);
- // model.makeValue("/root/send/info/edate", sEdate);
- // model.makeValue("/root/send/info/gbn", sGbn);
- // model.makeValue("/root/send/info/deptcd", sDeptcd);
- // model.makeValue("/root/send/info/drid", sDrid);
- //
- // submit("TRMNE05804");
- submit("TRMNE05807");
-
-
- /*
- var cnt1 = 1;
- var cnt2 = 1;
- var cnt3 = 1;
-
- for(var i = 0 ; i < grd_usertel.rows; i++ ){
- var vOrddeptcd = model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptcd");
- if(vOrddeptcd == "2040000000" || vOrddeptcd == "2070000000" || vOrddeptcd == "2060000000"){
-
- model.makeValue("/root/main/scheuserinfo1/scheusertel[" + cnt1 + "]/orddeptcd", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptcd"));
- model.makeValue("/root/main/scheuserinfo1/scheusertel[" + cnt1 + "]/orddeptnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptnm"));
- model.makeValue("/root/main/scheuserinfo1/scheusertel[" + cnt1 + "]/drid", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drid"));
- model.makeValue("/root/main/scheuserinfo1/scheusertel[" + cnt1 + "]/drnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drnm"));
- model.makeValue("/root/main/scheuserinfo1/scheusertel[" + cnt1 + "]/mpphonno", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/mpphonno"));
- cnt1++;
- }else if(vOrddeptcd == "2050000000" || vOrddeptcd == "2090000000" || vOrddeptcd == "2160000000"){
- model.makeValue("/root/main/scheuserinfo2/scheusertel[" + cnt2 + "]/orddeptcd", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptcd"));
- model.makeValue("/root/main/scheuserinfo2/scheusertel[" + cnt2 + "]/orddeptnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptnm"));
- model.makeValue("/root/main/scheuserinfo2/scheusertel[" + cnt2 + "]/drid", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drid"));
- model.makeValue("/root/main/scheuserinfo2/scheusertel[" + cnt2 + "]/drnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drnm"));
- model.makeValue("/root/main/scheuserinfo2/scheusertel[" + cnt2 + "]/mpphonno", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/mpphonno"));
- cnt2++;
- }else{
- model.makeValue("/root/main/scheuserinfo3/scheusertel[" + cnt3 + "]/orddeptcd", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptcd"));
- model.makeValue("/root/main/scheuserinfo3/scheusertel[" + cnt3 + "]/orddeptnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/orddeptnm"));
- model.makeValue("/root/main/scheuserinfo3/scheusertel[" + cnt3 + "]/drid", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drid"));
- model.makeValue("/root/main/scheuserinfo3/scheusertel[" + cnt3 + "]/drnm", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/drnm"));
- model.makeValue("/root/main/scheuserinfo3/scheusertel[" + cnt3 + "]/mpphonno", model.getValue("/root/main/scheuserinfo/scheusertel[" + i + "]/mpphonno"));
- cnt3++;
-
- }
- }
- */
- exeReportPreview("RPMNE05801", "XMLSTR","","","");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn1_letter3" navindex="3" style="left:1040px; top:13px; width:68px; height:22px; ">
- <caption>EXCEL</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "권역외상센터 월별 당직의" + ipt_srhfrom.value, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(fileName != ""){
- grd_month.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
- submit("TRMNE05807");
- var fileName = window.fileDialog("save", ",", false, "권역외상센터 월별 당직의 연락처" + ipt_srhfrom.value, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(fileName != ""){
- grd_usertel.saveExcel(fileName, "SheetName", true, true, "", "", false);
- }
-
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" scroll="auto" style="left:490px; top:92px; width:622px; height:745px; text-align:center; ">
- <line id="line2" class="line_1" style="x1:0px; y1:0px; x2:620px; y2:0px; "/>
- <datagrid id="grd_month" nodeset="/root/main/scheinfo/schelist" autoresize="true" caption="week^진료과^진료과^일^일^일^일^월^월^월^월^화^화^화^화^수^수^수^수^목^목^목^목^금^금^금^금^토^토^토^토^수정1^수정2^수정3^수정4^수정5^수정6^수정7" colsep="^" colwidth="0, 0, 70, 78, 0, 0, 0, 78, 0, 0, 0,78, 0, 0, 0, 78, 0, 0, 0, 78, 0, 0, 0, 78, 0, 0, 0, 78, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" ellipsis="false" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" tooltip="true" style="left:0px; top:5px; width:620px; height:740px; ">
- <col ref="weekno" format="yyyy-mm-dd"/>
- <col ref="orddeptcd"/>
- <col ref="orddeptnm" style="text-align:left; "/>
- <col ref="drnm1"/>
- <col ref="drid1"/>
- <col ref="workdd1"/>
- <col ref="workno1"/>
- <col ref="drnm2"/>
- <col ref="drid2"/>
- <col ref="workdd2"/>
- <col ref="workno2"/>
- <col ref="drnm3" style="left:246px; top:23px; width:60px; height:23px; "/>
- <col ref="drid3"/>
- <col ref="workdd3"/>
- <col ref="workno3" style="left:306px; top:23px; width:5px; height:23px; "/>
- <col ref="drnm4"/>
- <col ref="drid4"/>
- <col ref="workdd4"/>
- <col ref="workno4"/>
- <col ref="drnm5"/>
- <col ref="drid5"/>
- <col ref="workdd5"/>
- <col ref="workno5"/>
- <col ref="drnm6"/>
- <col ref="drid6"/>
- <col ref="workdd6"/>
- <col ref="workno6"/>
- <col ref="drnm7"/>
- <col ref="drid7"/>
- <col ref="workdd7"/>
- <col ref="workno7"/>
- <col ref="modify1"/>
- <col ref="modify2"/>
- <col ref="modify3"/>
- <col ref="modify4"/>
- <col ref="modify5"/>
- <col ref="modify6"/>
- <col ref="modify7"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var cells = grd_month.selectedCells;
- var sRow, sCol, sColNm;
- var sSelNo;
- var sBgcolor;
- var sWorkno;
-
- for (var i = 0; i < cells.length; i++) {
- sRow = cells.item(i).row;
- sCol = cells.item(i).col;
- sColNm = grd_month.colAttribute(sCol, "ref");
- sSelNo = sColNm.substr(sColNm.length - 1, 1);
-
- deptcd = grd_month.valueMatrix(sRow, grd_month.colRef("orddeptcd"));
- deptnm = grd_month.valueMatrix(sRow, grd_month.colRef("orddeptnm"));
- drnm = grd_month.valueMatrix(sRow, grd_month.colRef("drnm"+sSelNo));
- drid = grd_month.valueMatrix(sRow, grd_month.colRef("drid"+sSelNo));
- workdd = grd_month.valueMatrix(sRow, grd_month.colRef("workdd"+sSelNo));
- workno = grd_month.valueMatrix(sRow, grd_month.colRef("workno"+sSelNo));
-
- if (drid != "" && deptcd != "") {
- sWorkno = model.getValue("/root/cond/workno");
- grd_month.valueMatrix(sRow, grd_month.colRef("workno"+sSelNo)) = sWorkno;
-
- switch (sWorkno) {
- case "1":
- sBgcolor = "#ff99cc";
- break;
- case "2":
- sBgcolor = "#ffcc99";
- break;
- case "3":
- sBgcolor = "#ffff99";
- break;
- case "4":
- sBgcolor = "#ccffcc";
- break;
- case "5":
- sBgcolor = "#ccffff";
- break;
- case "6":
- sBgcolor = "#cc99ff";
- break;
- default:
- sBgcolor = "#ffffff";
- break;
- }
-
- if (workno != "" && workno != "-" && sBgcolor == "#ffffff") {
- if (messageBox("순번을 삭제하시겠습니까?", "Q999") == 6) {
- grd_month.cellStyle("background-color", sRow, grd_month.colRef("workno"+sSelNo)) = sBgcolor;
- grd_month.cellStyle("background-color", sRow, grd_month.colRef("drnm"+sSelNo)) = sBgcolor;
- grd_month.valueMatrix(sRow, grd_month.colRef("modify"+sSelNo)) = "Y";
- fSaveWorkno();
- }
- } else {
- grd_month.cellStyle("background-color", sRow, grd_month.colRef("workno"+sSelNo)) = sBgcolor;
- grd_month.cellStyle("background-color", sRow, grd_month.colRef("drnm"+sSelNo)) = sBgcolor;
- grd_month.valueMatrix(sRow, grd_month.colRef("modify"+sSelNo)) = "Y";
- }
- }
-
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <datagrid id="grd_usertel" nodeset="/root/main/scheuserinfo/scheusertel" visibility="hidden" caption="진료과^의사^전화번호" colsep="^" colwidth="150, 100, 224, 0, 0, 0" dataheight="25" explorerbar="sortmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:525px; top:320px; width:549px; height:280px; ">
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="drnm" style="text-align:center; "/>
- <col ref="mpphonno" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_usertel.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </xhtml:body>
- </xhtml:html>
|