123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPMB02100_진료일정관리.xrw
- * 수정이력
- * - 2007.10.29 / 최초작성 / 박재형
- -->
- <?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>
- <drordunit>
- <drordunitlist/>
- </drordunit>
- <ordcls>
- <ordclslist>
- <cls>진료예정</cls>
- <choicls>선택진료 예정</choicls>
- <month/>
- </ordclslist>
- <ordclslist>
- <cls/>
- <choicls>일반진료 예정</choicls>
- <month/>
- </ordclslist>
- <ordclslist>
- <cls/>
- <choicls>합계</choicls>
- <month/>
- </ordclslist>
- <ordclslist>
- <cls>휴진</cls>
- <choicls>선택진료</choicls>
- <month/>
- </ordclslist>
- <ordclslist>
- <cls/>
- <choicls>일반진료</choicls>
- <month/>
- </ordclslist>
- <ordclslist>
- <cls/>
- <choicls>합계</choicls>
- <month/>
- </ordclslist>
- <ordclslist>
- <cls>대진,임진</cls>
- <choicls>선택진료</choicls>
- <month/>
- </ordclslist>
- <ordclslist>
- <cls/>
- <choicls>일반진료</choicls>
- <month/>
- </ordclslist>
- <ordclslist>
- <cls/>
- <choicls>합계</choicls>
- <month/>
- </ordclslist>
- <ordclslist>
- <cls>진료</cls>
- <choicls>선택진료</choicls>
- <month/>
- </ordclslist>
- <ordclslist>
- <cls/>
- <choicls>일반진료</choicls>
- <month/>
- </ordclslist>
- <ordclslist>
- <cls/>
- <choicls>합계</choicls>
- <month/>
- </ordclslist>
- </ordcls>
- <ordunitcnt>
- <ordunitcntlist>
- <cls>교수</cls>
- <unit/>
- <dr/>
- <ordunit/>
- </ordunitcntlist>
- <ordunitcntlist>
- <cls>부교수</cls>
- <unit/>
- <dr/>
- <ordunit/>
- </ordunitcntlist>
- <ordunitcntlist>
- <cls>조교수</cls>
- <unit/>
- <dr/>
- <ordunit/>
- </ordunitcntlist>
- <ordunitcntlist>
- <cls>전임강사</cls>
- <unit/>
- <dr/>
- <ordunit/>
- </ordunitcntlist>
- <ordunitcntlist>
- <cls>임상강사</cls>
- <unit/>
- <dr/>
- <ordunit/>
- </ordunitcntlist>
- <ordunitcntlist>
- <cls>기타(초빙)</cls>
- <unit/>
- <dr/>
- <ordunit/>
- </ordunitcntlist>
- </ordunitcnt>
- </main>
- <send>
- <drordunitlist>
- <orddeptcd/>
- <orddrid/>
- <fromdd/>
- <todd/>
- <aftfromdd/>
- <afttodd/>
- </drordunitlist>
- <unitlist>
- <orddeptcd/>
- <year/>
- <month>-</month>
- <drinclyn/>
- <yearmonth/>
- </unitlist>
- </send>
- <init>
- <R0009list>
- <R0009>
- <cdnm/>
- <cdid/>
- </R0009>
- </R0009list>
- <R0062list>
- <R0062>
- <cdnm/>
- <cdid/>
- </R0062>
- </R0062list>
- <NR0062list>
- <NR0062>
- <cdnm>교수</cdnm>
- <cdid>1782</cdid>
- </NR0062>
- <NR0062>
- <cdnm>교수</cdnm>
- <cdid>1783</cdid>
- </NR0062>
- <NR0062>
- <cdnm>부교수</cdnm>
- <cdid>1784</cdid>
- </NR0062>
- <NR0062>
- <cdnm>부교수</cdnm>
- <cdid>1785</cdid>
- </NR0062>
- <NR0062>
- <cdnm>조교수</cdnm>
- <cdid>1786</cdid>
- </NR0062>
- <NR0062>
- <cdnm>조교수</cdnm>
- <cdid>1787</cdid>
- </NR0062>
- <NR0062>
- <cdnm>전임강사</cdnm>
- <cdid>1788</cdid>
- </NR0062>
- <NR0062>
- <cdnm>전임강사</cdnm>
- <cdid>1789</cdid>
- </NR0062>
- <NR0062>
- <cdnm>임상강사</cdnm>
- <cdid>0545</cdid>
- </NR0062>
- <NR0062>
- <cdnm>임상강사</cdnm>
- <cdid>1847</cdid>
- </NR0062>
- <NR0062>
- <cdnm>임상강사</cdnm>
- <cdid>1848</cdid>
- </NR0062>
- <NR0062>
- <cdnm>임상강사</cdnm>
- <cdid>1849</cdid>
- </NR0062>
- <NR0062>
- <cdnm>임상강사</cdnm>
- <cdid>1850</cdid>
- </NR0062>
- <NR0062>
- <cdnm>기타(초빙)</cdnm>
- <cdid>1800</cdid>
- </NR0062>
- <NR0062>
- <cdnm>기타(초빙)</cdnm>
- <cdid>1845</cdid>
- </NR0062>
- <NR0062>
- <cdnm>기타(초빙)</cdnm>
- <cdid>1799</cdid>
- </NR0062>
- </NR0062list>
- </init>
- <hidden>
- <orddeptcd>
- <orddeptcdlist>
- <nm/>
- <cd/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- </orddridlist>
- </orddrid>
- <ordcls>
- <ordclslist/>
- </ordcls>
- <ordunitcnt>
- <ordunitcntlist/>
- </ordunitcnt>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPMB02101" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/hidden"/>
- <submission id="TRPMB02102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/drordunitlist" resultref="/root/main/drordunit"/>
- <submission id="TRPMB02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unitlist" resultref="/root/hidden/ordcls"/>
- <submission id="TXPMB02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/save/drordunitlist"/>
- <submission id="TRPMB02104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/unitlist" resultref="/root/hidden/ordunitcnt"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
-
- fInitialize(); // 기본 화면 초기화 한다.
-
- //2008-08-20 이동식 추가
- btn_outrgst.selected = true;
- btn_outupdt.selected = false;
- model.toggle("case_outrgst");
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
-
- zbcfGetCodeList(new Array("R0062"), new Array("/root/init/R0062list"));
- //pamGetDeptCDDrIDList(); // 진료과
- submit("TRPMB02101"); // 진료과와 진료의사 콤보data.
-
-
- button2.visible= false; //총진료실 저장 버튼 초기숨김.
- model.setValue("/root/send/drordunitlist/afttodd",getCurrentDate()); //진료종료기간 현재일자 셋팅
- model.setValue("/root/send/drordunitlist/aftfromdd",getCurrentDate() - 6); //진료시작일자 현재일자 -7일
- cmb_orddrid.disabled = true; //초기 의사별 진료탭 진료의사 비활성화
- var today = getCurrentDate();
- var todayyear = today.substr(0,4);
- var todaymonth = today.substr(4,2); // 초기 현재 년월 셋팅
- model.setValue("/root/send/unitlist/year",todayyear);
- model.setValue("/root/send/unitlist/month",todaymonth);
- model.setValue("/root/send/unitlist/drinclyn",1);
-
- // 진료구분별 통계 merge
- grd_monthflag.mergeByFree(1,0,3,0); //진료예정
- grd_monthflag.mergeByFree(4,0,6,0); //휴진
- grd_monthflag.mergeByFree(7,0,9,0); //대진, 임진
- grd_monthflag.mergeByFree(10,0,12,0); //진료
-
- model.refresh();
- }
-
- function fCheck() {
- var orddeptcd = model.getValue("/root/send/drordunitlist/orddeptcd");
- var orddrid = model.getValue("/root/send/drordunitlist/orddrid");
- var aftfromdd = model.getValue("/root/send/drordunitlist/aftfromdd");
- var afttodd = model.getValue("/root/send/drordunitlist/afttodd");
-
- // if(orddeptcd == ""){
- // messageBox("");
- // return false;
- // }
- // if(orddrid == ""){
- // messageBox("");
- // return false;
- // }
- if(aftfromdd == "" && afttodd != ""){
- messageBox("시작일자를","C001");
- return false;
- }
- if(afttodd == "" && aftfromdd !=""){
- messageBox("종료일자를","C001");
- return false;
- }
-
- // 지난주 날짜 셋팅~!!
- var aftfromdd = model.getValue("/root/send/drordunitlist/aftfromdd");
- var afttodd = model.getValue("/root/send/drordunitlist/afttodd");
-
- var aftfromdate = aftfromdd.toDate(); //날짜형식변환
- var afttodate = afttodd.toDate(); //날짜형식변환
-
- var fromdddate = aftfromdate.getAddDate(-7, "D"); //일자로 7일더함
- var todddate = afttodate.getAddDate(-7, "D"); //일자로 7일더함
-
- var fromdd = fromdddate.getDateFormat(); //문자형식변환
- var todd = todddate.getDateFormat(); //문자형식변환
-
- model.setValue("/root/send/drordunitlist/fromdd",fromdd);
- model.setValue("/root/send/drordunitlist/todd",todd);
-
- model.refresh();
-
- return true;
- }
-
- function fOrddrid(orddeptcd){
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/hidden/orddrid/orddridlist[dp = '" + orddeptcd + "']";
- cmb_orddrid.refresh();
- }
- function fUnitCheck(){
-
- var orddeptcd = model.getValue("/root/send/unitlist/orddeptcd")
- var yr = model.getValue("/root/send/unitlist/year")
- var mon = model.getValue("/root/send/unitlist/month")
-
- if( isNaN(yr ) || yr.length != 4 ){
- messageBox("년도를","C001");
- return false;
- }else if ( mon == '-' || mon == '' ){
- messageBox("월을","C001");
- return false;
- }else if( orddeptcd == '' || orddeptcd == '-' ){
- messageBox("진료과를","C001");
- return false;
- }
-
- var monnm = model.getValue("/root/send/unitlist/month");
- grd_monthflag.valueMatrix(0,2) = monnm+"월"
-
- model.setValue("/root/send/unitlist/yearmonth", yr + mon );
- return true;
- }
- function fUnitSet() {
- var msgcnt = model.getValue("/root/properties/error/msg");
-
- alert(msgcnt);
-
- var cnt = msgcnt.substr(0,1);
- var intcnt = parseInt(cnt);
-
-
- for(var i=1 ; i<=intcnt ; i++){
- var flag = model.getValue("/root/hidden/ordcls/ordclslist[" + i + "]/flag");
- var spcyn = model.getValue("/root/hidden/ordcls/ordclslist[" + i + "]/specordyn");
- var cnt = model.getValue("/root/hidden/ordcls/ordclslist[" + i + "]/cnt");
- var rows = grd_monthflag.rows;
- var fixedrows = grd_monthflag.fixedrows;
- var allrow = rows - fixedrows;
-
- if(flag == "1진료예정" && spcyn == "Y"){
- model.setValue("/root/main/ordcls/ordclslist[1]/month",cnt);
- }
- if(flag == "1진료예정" && spcyn == "N"){
- model.setValue("/root/main/ordcls/ordclslist[2]/month",cnt);
- }
- if(flag == "2휴진" && spcyn == "Y"){
- model.setValue("/root/main/ordcls/ordclslist[4]/month",cnt);
- }
- if(flag == "2휴진" && spcyn == "N"){
- model.setValue("/root/main/ordcls/ordclslist[5]/month",cnt);
- }
- if(flag == "3대진,임진" && spcyn == "Y"){
- model.setValue("/root/main/ordcls/ordclslist[7]/month",cnt);
- }
- if(flag == "3대진,임진" && spcyn == "N"){
- model.setValue("/root/main/ordcls/ordclslist[8]/month",cnt);
- }
- if(flag == "4진료" && spcyn == "Y"){
- model.setValue("/root/main/ordcls/ordclslist[10]/month",cnt);
- }
- if(flag == "4진료" && spcyn == "N"){
- model.setValue("/root/main/ordcls/ordclslist[11]/month",cnt);
-
- }
- for(var j = 1; j <= allrow ; j++){
- var value = model.getValue("/root/main/ordcls/ordclslist[" + j + "]/month");
- if(value == ""){
- model.setValue("/root/main/ordcls/ordclslist[" + j + "]/month", "0");
- }
- }
- var cnt1 = model.getValue("/root/main/ordcls/ordclslist[1]/month");
- var cnt2 = model.getValue("/root/main/ordcls/ordclslist[2]/month");
- model.setValue("/root/main/ordcls/ordclslist[3]/month",parseInt(cnt1)+parseInt(cnt2));
-
- var cnt4 = model.getValue("/root/main/ordcls/ordclslist[4]/month");
- var cnt5 = model.getValue("/root/main/ordcls/ordclslist[5]/month");
- model.setValue("/root/main/ordcls/ordclslist[6]/month",parseInt(cnt4)+parseInt(cnt5));
-
- var cnt7 = model.getValue("/root/main/ordcls/ordclslist[7]/month");
- var cnt8 = model.getValue("/root/main/ordcls/ordclslist[8]/month");
- model.setValue("/root/main/ordcls/ordclslist[9]/month",parseInt(cnt7)+parseInt(cnt8));
-
- var cnt10 = model.getValue("/root/main/ordcls/ordclslist[10]/month");
- var cnt11 = model.getValue("/root/main/ordcls/ordclslist[11]/month");
- model.setValue("/root/main/ordcls/ordclslist[12]/month",parseInt(cnt10)+parseInt(cnt11));
- }
- model.refresh();
- }
-
- function fMerge() {
- var grdrows = grd_drordunitlist.rows;
- var grdfixedrows = grd_drordunitlist.fixedRows;
- var newrows = grdrows - grdfixedrows;
- var chknum = 0;
- var chkrow = 0;
- var i = 1;
- var j = i+1;
-
- for(i; i <= newrows;){
- var value1 = model.getValue("/root/main/drordunit/drordunitlist[" + i + "]/deptcd");
- for(j; j <= newrows; j++){
- var value2 = model.getValue("/root/main/drordunit/drordunitlist[" + j + "]/deptcd");
- if(value1 == value2){
- chknum = chknum + 1;
- } else {
- break;
- }
- }
- grd_drordunitlist.mergeByFree(i+1+chkrow, 0, j+chkrow, 0);
- grd_drordunitlist.mergeByFree(i+1+chkrow, 1, j+chkrow, 1);
- grd_drordunitlist.mergeByFree(i+1+chkrow, 2, j+chkrow, 2);
- grd_drordunitlist.mergeByFree(i+1+chkrow, 3, j+chkrow, 3);
- grd_drordunitlist.mergeByFree(j+chkrow+1,2,j+chkrow+1,5);
- chkrow = chkrow+1;
-
- i = j;
- j = i+1;
- }
-
-
-
- // var grdrows = grd_drordunitlist.rows;
- // var grdfixedrows = grd_drordunitlist.fixedRows;
- // var newrows = grdrows - grdfixedrows;
- // var chknum = 0;
- // var i = 1;
- // var j = i+1;
- //
- // for(i; i <= newrows;){
- // var value1 = model.getValue("/root/main/drordunit/drordunitlist[" + i + "]/deptcd");
- // for(j; j <= newrows; j++){
- // var value2 = model.getValue("/root/main/drordunit/drordunitlist[" + j + "]/deptcd");
- // if(value1 == value2){
- // chknum = chknum + 1;
- // } else {
- // break;
- // }
- // }
- // grd_drordunitlist.mergeByFree(i+1, 1, j, 1);
- // //grd_drordunitlist.mergeByFree(i+1, 2, j, 2);
- // //grd_drordunitlist.mergeByFree(i+1, 3, j, 3);
- // i = j;
- // j = i+1;
- // }
- }
-
- function fSubtotal() {
- grd_drordunitlist.subtotalPosition = "below";
- grd_drordunitlist.subtotal("clear", 0, 0);
- grd_drordunitlist.subtotal("sum", 1, 7, "format:#,###; roundmode:round; roundpostion:2", "background-color:#c0c0c0; color:#000000; font-weight:bold; " ,2, "합 계" ,false);
- grd_drordunitlist.subtotal("sum", 1, 8, "format:#,###; roundmode:round; roundpostion:2", "background-color:#c0c0c0; color:#000000; font-weight:bold; " ,2, "합 계" ,false);
- grd_drordunitlist.subtotal("sum", 1, 9, "format:#,###; roundmode:round; roundpostion:2", "background-color:#c0c0c0; color:#000000; font-weight:bold; " ,2, "합 계" ,false);
- grd_drordunitlist.subtotal("sum", 1, 10, "format:#,###; roundmode:round; roundpostion:2", "background-color:#c0c0c0; color:#000000; font-weight:bold; " ,2, "합 계" ,false);
- grd_drordunitlist.subtotal("sum", 1, 11, "format:#,###; roundmode:round; roundpostion:2", "background-color:#c0c0c0; color:#000000; font-weight:bold; " ,2, "합 계" ,false);
- grd_drordunitlist.subtotal("sum", 1, 12, "format:#,###; roundmode:round; roundpostion:2", "background-color:#c0c0c0; color:#000000; font-weight:bold; " ,2, "합 계" ,false);
- grd_drordunitlist.subtotal("sum", 1, 13, "format:#,###; roundmode:round; roundpostion:2", "background-color:#c0c0c0; color:#000000; font-weight:bold; " ,2, "합 계" ,false);
- grd_drordunitlist.subtotal("sum", 1, 14, "format:#,###; roundmode:round; roundpostion:2", "background-color:#c0c0c0; color:#000000; font-weight:bold; " ,2, "합 계" ,false);
- grd_drordunitlist.subtotal("sum", 1, 15, "format:#,###; roundmode:round; roundpostion:2", "background-color:#c0c0c0; color:#000000; font-weight:bold; " ,2, "합 계" ,false);
- grd_drordunitlist.subtotal("sum", 1, 16, "format:#,###; roundmode:round; roundpostion:2", "background-color:#c0c0c0; color:#000000; font-weight:bold; " ,2, "합 계" ,false);
- }
-
- function fSave(){
- var allrows = grd_drordunitlist.rows;
- var fixedrows = grd_drordunitlist.fixedRows;
- var rows = allrows - fixedrows;
- var irow = 1;
-
- for(var i = 2; i <= rows; i++){
- var status = grd_drordunitlist.rowstatus(i);
- if(status != 0){
- var orddeptcd = grd_drordunitlist.valueMatrix(i,1);
- var allordroomqty = grd_drordunitlist.valueMatrix(i,2);
- model.makeNode("/root/send/save/drordunitlist[" + irow + "]/status");
- model.makeNode("/root/send/save/drordunitlist[" + irow + "]/orddeptcd");
- model.makeNode("/root/send/save/drordunitlist[" + irow + "]/allordroomqty");
- model.setValue("/root/send/save/drordunitlist[" + irow + "]/status",status);
- model.setValue("/root/send/save/drordunitlist[" + irow + "]/orddeptcd",orddeptcd);
- model.setValue("/root/send/save/drordunitlist[" + irow + "]/allordroomqty",allordroomqty);
- irow = irow + 1;
- }
- }
- return true;
- }
-
- function fAllUnit(){
- var grdrows = grd_drordunitlist.rows;
- var fixedrows = grd_drordunitlist.fixedRows;
- var rows = grdrows - fixedrows;
-
- for(var i=2; i <= rows; i++){
- var allordroom = grd_drordunitlist.valuematrix(i, 2);
- var allpossunit = allordroom * 11;
- grd_drordunitlist.valuematrix(i, 3) = allpossunit;
- model.refresh();
- }
- }
-
- function fOrdUnit(){
- var msgcnt = model.getValue("/root/properties/error/msg");
- var cnt = msgcnt.substr(0,1);
- var intcnt = parseInt(cnt);
-
- for(var i=1 ; i<=intcnt ; i++){
- var jobposcd = model.getValue("/root/hidden/ordunitcnt/ordunitcntlist[" + i + "]/jobposcd");
- var unit = model.getValue("/root/hidden/ordunitcnt/ordunitcntlist[" + i + "]/unit");
- var dr = model.getValue("/root/hidden/ordunitcnt/ordunitcntlist[" + i + "]/dr");
- var ordunit = model.getValue("/root/hidden/ordunitcnt/ordunitcntlist[" + i + "]/ordunit");
- var rows = grd_jobpos.rows;
- var fixedrows = grd_jobpos.fixedrows;
- var allrow = rows - fixedrows;
- if(jobposcd == "1교수"){
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[1]/unit",unit);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[1]/dr",dr);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[1]/ordunit",ordunit);
- }
- if(jobposcd == "2부교수"){
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[2]/unit",unit);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[2]/dr",dr);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[2]/ordunit",ordunit);
- }
- if(jobposcd == "3조교수"){
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[3]/unit",unit);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[3]/dr",dr);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[3]/ordunit",ordunit);
- }
- if(jobposcd == "4전임강사"){
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[4]/unit",unit);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[4]/dr",dr);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[4]/ordunit",ordunit);
- }
- if(jobposcd == "5임상강사"){
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[5]/unit",unit);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[5]/dr",dr);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[5]/ordunit",ordunit);
- }
- if(jobposcd == "6기타(초빙)"){
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[6]/unit",unit);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[6]/dr",dr);
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[6]/ordunit",ordunit);
- }
- for(var j = 1; j <= allrow ; j++){
- var value = model.getValue("/root/main/ordunitcnt/ordunitcntlist[" + j + "]/ordunit");
- if(value == ""){
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[" + j + "]/unit","0");
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[" + j + "]/dr","0");
- model.setValue("/root/main/ordunitcnt/ordunitcntlist[" + j + "]/ordunit","0");
- }
- }
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1003;2,537;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:985px; height:15px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:235px; height:13px; ">진료일정관리통계</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:508px; width:980px; height:28px; ">
- <button id="btn_clear" class="btn4_letter3" style="left:911px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.reset();
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter6" style="left:806px; top:3px; width:104px; height:22px; ">
- <caption>총진료실저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- if(submit("TXPMB02101")){
- var grdrows = grd_drordunitlist.rows;
- var fixedrows = grd_drordunitlist.fixedRows;
- var rows = grdrows - fixedrows;
- for(var i=0; i<= rows; i++){
- if(grd_drordunitlist.rowStatus(i) != 0) {
- grd_drordunitlist.rowStatus(i) = 0;
- }
- }
- model.removeNodeset("/root/send/save/drordunitlist");
- }
- ]]>
- </script>
- </button>
- <button id="btn_excelsave" class="btn2_letter4" style="left:6px; top:5px; width:75px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var outrgst = btn_outrgst.selected;
- var outupdt = btn_outupdt.selected;
-
- if(outrgst == true){
- var rgstFileName1 = window.fileDialog("save", ",", false, "진료구분별통계", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (rgstFileName1 != "")
- {
- grd_monthflag.saveExcel(rgstFileName1, "진료구분별통계");
- }
-
- var rgstFileName2 = window.fileDialog("save", ",", false, "1인당 진료 Unit 수", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (rgstFileName2 != "")
- {
- grd_jobpos.saveExcel(rgstFileName2, "1인당 진료 Unit 수");
- }
- }
-
- if(outupdt == true){
- var updtFileName = window.fileDialog("save", ",", false, "진료일정통계", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (updtFileName != "")
- {
- grd_drordunitlist.saveExcel(updtFileName, "진료일정통계");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn2_letter2" visibility="hidden" style="left:72px; top:5px; width:42px; height:19px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // exeReportPreview("RPPMB02101", "XMLSTR", "/root/main/drordunit/drordunitlist",true, true,"pdf","C:\Documents and Settings\pak0985\바탕 화면\진료일정관리통계\의사진료통계",1, false,1);
- exeReportPreview("RPPMB02101", "XMLSTR" , "/root/main/drordunit/drordunitlist" , "" , "true" , "", "", "", "", "true");
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:16px; width:1000px; height:489px; ">
- <group id="group6" style="left:0px; top:3px; width:995px; height:482px; ">
- <switch id="swt_outpatient" style="left:0px; top:26px; width:990px; height:449px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_outrgst" selected="true" style="left:0px; top:0px; width:983px; height:442px; ">
- <line id="line17" class="line_1" style="x1:3px; y1:71px; x2:458px; y2:71px; "/>
- <datagrid id="grd_monthflag" nodeset="/root/main/ordcls/ordclslist" class="datagrid2" caption="진료구분^선택구분^월" colsep="^" colwidth="130, 165, 157" dataheight="23" defaultrows="13" ellipsis="false" extendlastcol="scroll" fixedcols="2" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:3px; top:76px; width:455px; height:359px; text-align:center; ">
- <col ref="cls" format="yyyy-mm-dd hh:nn" style="text-align:left; "/>
- <col ref="choicls" style="text-align:left; "/>
- <col ref="month" format="#,###"/>
- </datagrid>
- <datagrid id="grd_jobpos" nodeset="/root/main/ordunitcnt/ordunitcntlist" class="datagrid2" caption="^진료 Unit 총수^진료의사 총수^진료Unit수(1인당)" colsep="^" colwidth="147, 135, 116, 119" dataheight="23" defaultrows="7" ellipsis="false" extendlastcol="scroll" fixedcols="1" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" tooltip="true" style="left:460px; top:76px; width:520px; height:360px; text-align:center; ">
- <col ref="cls" format="#,###"/>
- <col ref="unit" format="#,###"/>
- <col ref="dr" format="#,###.##"/>
- <col ref="ordunit"/>
- </datagrid>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:12px; width:978px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_search" class="btn1_letter2" style="left:909px; top:18px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fUnitCheck()){
- for(var i = 1 ; i <= 11 ; i++)
- model.resetInstanceNode("/root/main/ordcls/ordclslist[" +i+ "]/month");
-
- for(var j = 1; j <= 6 ; j++){
- model.resetInstanceNode("/root/main/ordunitcnt/ordunitcntlist[" + j + "]/unit");
- model.resetInstanceNode("/root/main/ordunitcnt/ordunitcntlist[" + j + "]/dr");
- model.resetInstanceNode("/root/main/ordunitcnt/ordunitcntlist[" + j + "]/ordunit");
- }
-
-
- if(submit("TRPMB02103")){
- fUnitSet();
- }
- if(submit("TRPMB02104")) {
- fOrdUnit();
- }
- }
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:893px; y1:18px; x2:893px; y2:40px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select1 id="cmb_orddept" ref="/root/send/unitlist/orddeptcd" class="combo_search" appearance="minimal" style="left:99px; top:19px; width:200px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:22px; top:20px; width:73px; height:17px; ">진료과 :</caption>
- <input id="ipt_patnm" ref="/root/send/unitlist/year" class="input_search" maxlength="4" format="yyyy" style="left:384px; top:19px; width:138px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:317px; top:20px; width:73px; height:17px; ">년도 :</caption>
- <caption id="caption2" class="search_name" style="left:539px; top:19px; width:53px; height:17px; ">월 :</caption>
- <select1 id="cbo_suppkind" ref="/root/send/unitlist/month" class="combo_search" appearance="minimal" style="left:593px; top:19px; width:80px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value>-</value>
- </item>
- <item>
- <label>1월</label>
- <value>01</value>
- </item>
- <item>
- <label>2월</label>
- <value>02</value>
- </item>
- <item>
- <label>3월</label>
- <value>03</value>
- </item>
- <item>
- <label>4월</label>
- <value>04</value>
- </item>
- <item>
- <label>5월</label>
- <value>05</value>
- </item>
- <item>
- <label>6월</label>
- <value>06</value>
- </item>
- <item>
- <label>7월</label>
- <value>07</value>
- </item>
- <item>
- <label>8월</label>
- <value>08</value>
- </item>
- <item>
- <label>9월</label>
- <value>09</value>
- </item>
- <item>
- <label>10월</label>
- <value>10</value>
- </item>
- <item>
- <label>11월</label>
- <value>11</value>
- </item>
- <item>
- <label>12월</label>
- <value>12</value>
- </item>
- </choices>
- </select1>
- <line id="line2" class="line_1" style="x1:460px; y1:71px; x2:980px; y2:71px; "/>
- <caption id="caption5" class="tit_2" style="left:3px; top:55px; width:130px; height:14px; ">진료구분별 통계</caption>
- <select1 id="radio1" ref="/root/send/unitlist/drinclyn" overflow="visible" appearance="full" cols="2" style="left:697px; top:20px; width:175px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전공의포함</label>
- <value>0</value>
- </item>
- <item>
- <label>전공의비포함</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="tit_2" style="left:463px; top:55px; width:130px; height:14px; ">1인당 진료 Unit수</caption>
- </case>
- <case id="case_outupdt" style="left:0px; top:0px; width:983px; height:442px; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:16px; width:978px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button1" class="btn1_letter2" style="left:912px; top:23px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(fCheck()){
- submit("TRPMB02102");
- }
- // 총가능 unit계산
- fAllUnit();
-
- // 합계 계산
- fSubtotal();
-
- // 같은영역 합침
- fMerge();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:896px; y1:24px; x2:896px; y2:46px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption9" class="search_name" style="left:20px; top:25px; width:73px; height:17px; ">진료과 :</caption>
- <select1 id="cmb_orddeptcd" ref="/root/send/drordunitlist/orddeptcd" class="combo_search" appearance="minimal" style="left:95px; top:24px; width:133px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(cmb_orddeptcd.value == "" || cmb_orddeptcd.value == "-"){
- cmb_orddrid.value = "";
- cmb_orddrid.disabled = true;
- } else {
- cmb_orddrid.disabled = false;
- fOrddrid(cmb_orddeptcd.value);
- }
- ]]>
- </script>
- </select1>
- <caption id="caption7" class="search_name" style="left:264px; top:25px; width:90px; height:17px; ">진료의사 :</caption>
- <select1 id="cmb_orddrid" ref="/root/send/drordunitlist/orddrid" class="combo_search" appearance="minimal" style="left:352px; top:24px; width:105px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption8" class="search_name" style="left:499px; top:25px; width:86px; height:17px; ">진료기간 :</caption>
- <input id="ipt_fromdd" ref="/root/send/drordunitlist/aftfromdd" class="input_s_essential" inputtype="date" style="left:587px; top:24px; width:93px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var aftfromdd = model.getValue("/root/send/drordunitlist/aftfromdd");
- var aftfromdate = aftfromdd.toDate(); //날짜형식변환
- var afttodddate = aftfromdate.getAddDate(6, "D"); //일자로 7일더함
- var afttodd = afttodddate.getDateFormat(); //문자형식변환
- model.setValue("/root/send/drordunitlist/afttodd",afttodd);
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption10" style="left:683px; top:26px; width:15px; height:20px; ">~</caption>
- <input id="ipt_todd" ref="/root/send/drordunitlist/afttodd" class="input_s_essential" inputtype="date" style="left:696px; top:24px; width:93px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var afttodd = model.getValue("/root/send/drordunitlist/afttodd");
- var afttodate = afttodd.toDate(); //날짜형식변환
- var aftfromdddate = afttodate.getAddDate(-6, "D"); //일자로 7일더함
- var aftfromdd = aftfromdddate.getDateFormat(); //문자형식변환
- model.setValue("/root/send/drordunitlist/aftfromdd",aftfromdd);
- model.refresh();
- ]]>
- </script>
- </input>
- <line id="line4" class="line_1" style="x1:5px; y1:81px; x2:977px; y2:82px; "/>
- <datagrid id="grd_drordunitlist" nodeset="/root/main/drordunit/drordunitlist" class="datagrid2" caption="진료과^총 진료실^총가능
Unit^직위^진료의사^구
분^지난주^지난주^지난주^지난주^지난주^이번주^이번주^이번주^이번주^이번주|진료과^총 진료실^총가능
Unit^직위^진료의사^구
분^예정^휴진^임진^대진^실제^예정^휴진^임진^대진^실제" colsep="^" colwidth="155, 61, 50, 70, 85, 25, 50, 50, 50, 50, 50, 50, 50, 50, 50, 50" dataheight="23" defaultrows="1" ellipsis="false" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:85px; width:974px; height:353px; text-align:center; ">
- <col disabled="true" ref="deptcd" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="allordroom" type="input"/>
- <col disabled="true" ref="allpossunit" type="input"/>
- <col disabled="true" ref="jobposcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/NR0062list/NR0062">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="specordyn"/>
- <col disabled="true" ref="bfsche"/>
- <col disabled="true" ref="bfholi"/>
- <col disabled="true" ref="bftemp"/>
- <col disabled="true" ref="bfsubt"/>
- <col disabled="true" ref="bforg"/>
- <col disabled="true" ref="aftsche"/>
- <col disabled="true" ref="aftholi"/>
- <col disabled="true" ref="afttemp"/>
- <col disabled="true" ref="aftsubt"/>
- <col disabled="true" ref="aftorg"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var row = grd_drordunitlist.row;
- var col = grd_drordunitlist.col;
- var allordroom = grd_drordunitlist.valuematrix(row, col);
- var allpossunit = allordroom * 11;
- grd_drordunitlist.valueMatrix(row, col+1) = allpossunit;
- ]]>
- </script>
- </datagrid>
- <caption id="caption11" class="tit_2" style="left:5px; top:65px; width:205px; height:13px; ">의사별 진료 Unit 수 주간 통계</caption>
- </case>
- </switch>
- <button id="btn_outrgst" class="btn_sw" group="tab" selected="true" style="left:0px; top:3px; width:100px; height:22px; ">
- <caption>Unit수 월통계</caption>
- <toggle case="case_outrgst" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- button2.visible= false;
- ]]>
- </script>
- </button>
- <button id="btn_outupdt" class="btn_sw" group="tab" selected="false" style="left:100px; top:3px; width:170px; height:22px; ">
- <caption>의사별 진료Unit 주간통계</caption>
- <toggle case="case_outupdt" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- button2.visible= true;
- ]]>
- </script>
- </button>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|