123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>CP지표</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cpgidxinfo/>
- <cond>
- <orddeptcd/>
- <medispclid/>
- <fromdd/>
- <todd/>
- <dateflag/>
- <cpgno/>
- <typeflag/>
- <yyyy/>
- <wardcd/>
- <menuflag/>
- <menunm/>
- <sumcondflag>D</sumcondflag>
- </cond>
- <search_cond>
- <cpgflagcd>D</cpgflagcd>
- <cpgorddeptcd/>
- <cpgnm/>
- <getflag/>
- <no/>
- <seq/>
- <authflag/>
- </search_cond>
- <tChartinfo>
- <dropChart>
- <valunm/>
- <jan/>
- <feb/>
- <mar/>
- <apr/>
- <may/>
- <jun/>
- <jul/>
- <oug/>
- <sep/>
- <oct/>
- <nob/>
- <de/>
- </dropChart>
- </tChartinfo>
- </main>
- <send>
- <reqdata/>
- </send>
- <hidden>
- </hidden>
- <init>
- <initdate>
- <today/>
- </initdate>
- <warddeptlist>
- </warddeptlist>
- <deptlist>
- </deptlist>
- <userlist>
- <usercombo>
- <usernm/>
- <userid/>
- </usercombo>
- </userlist>
- <M0335list>
- </M0335list>
- <baseinfo>
- <statlst/>
- <cpflaglst/>
- <srhstat/>
- </baseinfo>
- <cpglist>
- <cpginfo/>
- </cpglist>
- </init>
- <temp>
- <cpcpgapppatinfo/>
- </temp>
- </root>
- </instance>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZSU10105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMB04102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var cur_day = getCurrentDate();
- var idate = new Date();
- var peveDate = idate.getAddDate(-1, "M");
- var cur_year = cur_day.substr(0,4);
- model.setValue("/root/main/cond/fromdd", peveDate.getDateFormat());
- model.setValue("/root/main/cond/todd" , cur_day );
- model.setValue(cmb_datefg.attribute("ref") , "I");
- model.setValue("/root/main/cond/yyyy", cur_year); // 현재 년도 셋팅
- model.setValue("/root/main/cond/typeflag", "1");
- fInitialize();
- fGetCPGInfo();
- fGrdinit() ;
- group1.visible=false;
- model.refresh();
- ]]>
- </script>
- <submission id="TRMMP01201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/cpglist"/>
- <submission id="TRMQP00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" replace="instance" resultref="/root/main/cpgidxlist"/>
- <submission id="TRMQP00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cpgidxinfo"/>
- </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/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tchartHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.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="../../../com/commonweb/js/tchartHelper.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize() {
- // 진료과 정보를 가지고 온다.
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/deptlist";
- var sort_field = "depthngnm";
- var sort_method = "asc";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref, sort_method);
- addComboInstance("/root/init/deptlist", "deptcd^depthngnm", "0000000000^선택안함", "dept"); //의사콤보 전체항목 추가
- addComboItem("cmb_orddept","","","above");
-
- zbcfGetDeptCodeList(instcd, "orduseyn", "W", "/root/init/warddeptlist", "deptcd", "asc"); //병동
- addComboInstance("/root/init/warddeptlist", "deptcd^depthngnm", "0^선택안함", "dept"); //의사콤보 전체항목 추가
- addComboItem("cmb_ward","","","above");
-
-
- //담당교수 정보를 가지고 온다.
- //zsufGetUserInfoCombo(getUserInfo("dutplcecd"), "/root/init/userlist", "_D"); //의사(담당교수) 콤보조회
- mmbfGetUserComboList("/root/send/reqdata" , "/root/init/userlist" , getUserInfo("dutplcecd"), "0330");
-
- model.makeNode("/root/init/userlist/usercombo");
- //zsufGetUserInfoCombo(cmb_orddept.value, "/root/init/userlist", "_D"); //부서콤보 해당 의사콤보 조회
- addComboInstance("/root/init/userlist", "userid^usernm", "000000^선택안함", "usercombo"); //의사콤보 선택안함항목 추가
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- model.setValue("/root/main/cond/medispclid", "-");
- model.refresh();
- }
- // CP 명을 가지고 온다. (TRMMP01201)
- function fGetCPGInfo(){
- var getFlag = model.getValue("/root/main/search_cond/getflag");
- model.removeNodeset("/root/send/reqdata");
- model.makeNode("/root/send/reqdata");
- model.copyNode("/root/send/reqdata", "/root/main/search_cond");
- model.makeValue("/root/send/reqdata/cpgorddeptcd", cmb_orddept.value);
- model.makeValue("/root/send/reqdata/getflag", "S");
-
-
- var srch_str = model.getValue("/root/main/search_cond/cpgnm");
- if(srch_str.charCodeAt(0) >= 97){
- srch_str = "'%" + srch_str.toUpperCase() + "%'";
- } else {
- srch_str = "'%" + srch_str + "%'";
- }
-
- //var str = srch_str.setReplaceWord(" ", "%' AND UCase(CINF.cpgnm) like '%");
- model.setValue("/root/send/reqdata/cpgnm", srch_str);
- //model.makeValue("/root/send/reqdata/authdept", dutPlceCd); //추가
-
- submit("TRMMP01201", true);
- model.setValue("/root/main/search_cond/getflag", "");
- model.setValue("/root/main/search_cond/no", "");
- addComboInstance("/root/init/cpglist", "cpgno^cpgnm", "000000^선택안함", "cpginfo"); //CP명 선택안함항목 추가
- addComboItem("cmb_cpglst","","","above");
- cmb_cpglst.select(0);
- }
-
- function fGrdinit() {
- var dropflag = model.getValue("/root/main/cond/dropresn");
- if (dropflag == 'true') {
- model.toggle("case2");
- model.removeNodeset("/root/main/cpgidxinfo/cpgidxinfolist");
- model.refresh();
- } else {
- model.toggle("case1");
- model.removeNodeset("/root/main/cpgidxinfo/cpgidxinfolist");
- model.refresh();
- }
- }
-
- // 지표메인 클릭
- function fCpMain() {
- //fChkFixedCols() ;
- var fixedCol = grd_cpgidxlist.fixedCols;
- grd_cpgidxlist.caption ="진료과^교수명^병동^CP명^CP사용 분석^CP사용 분석^CP사용 분석^CP완료 분석^CP완료 분석^CP완료 분석^CP Drop분석^CP Drop분석^CP Drop분석^병동코드^주치의ID^병동코드^CP코드|진료과^교수명^병동^CP명^CP 대상건수^CP 적용건수^CP사용률^CP 적용건수^CP 완료건수^CP 완료율^CP 적용건수^CP Drop건수^CP Drop률^병동코드^주치의ID^병동코드^CP코드"
- grd_cpgidxlist.colHidden(fixedCol) = false;
- grd_cpgidxlist.colHidden(fixedCol+1) = false;
- grd_cpgidxlist.colHidden(fixedCol+2) = false;
- grd_cpgidxlist.colHidden(fixedCol+3) = false;
- grd_cpgidxlist.colHidden(fixedCol+4) = false;
- grd_cpgidxlist.colHidden(fixedCol+5) = false;
- grd_cpgidxlist.colHidden(fixedCol+6) = false;
- grd_cpgidxlist.colHidden(fixedCol+7) = false;
- grd_cpgidxlist.colHidden(fixedCol+8) = false;
- }
- //CP 사용분석 버튼 클릭
- function fCpUseAnalysis() {
- //fChkFixedCols();
- var fixedCol = grd_cpgidxlist.fixedCols;
- grd_cpgidxlist.caption ="진료과^교수명^병동^CP명^CP사용 분석^CP사용 분석^CP사용 분석^CP완료 분석^CP완료 분석^CP완료 분석^CP Drop분석^CP Drop분석^CP Drop분석^병동코드^주치의ID^병동코드^CP코드|진료과^교수명^병동^CP명^CP 대상건수^CP 적용건수^CP사용률^CP 적용건수^CP 완료건수^CP 완료율^CP 적용건수^CP Drop건수^CP Drop률^병동코드^주치의ID^병동코드^CP코드"
- grd_cpgidxlist.colHidden(fixedCol) = false;
- grd_cpgidxlist.colHidden(fixedCol+1) = false;
- grd_cpgidxlist.colHidden(fixedCol+2) = false;
- grd_cpgidxlist.colHidden(fixedCol+3) = true;
- grd_cpgidxlist.colHidden(fixedCol+4) = true;
- grd_cpgidxlist.colHidden(fixedCol+5) = true;
- grd_cpgidxlist.colHidden(fixedCol+6) = true;
- grd_cpgidxlist.colHidden(fixedCol+7) = true;
- grd_cpgidxlist.colHidden(fixedCol+8) = true;
- }
- //CP 완료분석 버튼 클릭
- function fCpEndAnalysis() {
- //fChkFixedCols() ;
- var fixedCol = grd_cpgidxlist.fixedCols;
- grd_cpgidxlist.caption ="진료과^교수명^병동^CP명^CP사용 분석^CP사용 분석^CP사용 분석^CP완료 분석^CP완료 분석^CP완료 분석^CP Drop분석^CP Drop분석^CP Drop분석^병동코드^주치의ID^병동코드^CP코드|진료과^교수명^병동^CP명^CP 대상건수^CP 적용건수^CP사용률^CP 적용건수^CP 완료건수^CP 완료율^CP 적용건수^CP Drop건수^CP Drop률^병동코드^주치의ID^병동코드^CP코드"
- grd_cpgidxlist.colHidden(fixedCol) = true;
- grd_cpgidxlist.colHidden(fixedCol+1) = true;
- grd_cpgidxlist.colHidden(fixedCol+2) = true;
- grd_cpgidxlist.colHidden(fixedCol+3) = false;
- grd_cpgidxlist.colHidden(fixedCol+4) = false;
- grd_cpgidxlist.colHidden(fixedCol+5) = false;
- grd_cpgidxlist.colHidden(fixedCol+6) = true;
- grd_cpgidxlist.colHidden(fixedCol+7) = true;
- grd_cpgidxlist.colHidden(fixedCol+8) = true;
- }
- //CP Drop분석 버튼 클릭
- function fCpDropAnalysis() {
- //fChkFixedCols() ;
- var fixedCol = grd_cpgidxlist.fixedCols;
- grd_cpgidxlist.caption ="진료과^교수명^병동^CP명^CP사용 분석^CP사용 분석^CP사용 분석^CP완료 분석^CP완료 분석^CP완료 분석^CP Drop분석^CP Drop분석^CP Drop분석^병동코드^주치의ID^병동코드^CP코드|진료과^교수명^병동^CP명^CP 대상건수^CP 적용건수^CP사용률^CP 적용건수^CP 완료건수^CP 완료율^CP 적용건수^CP Drop건수^CP Drop률^병동코드^주치의ID^병동코드^CP코드"
- grd_cpgidxlist.colHidden(fixedCol) = true;
- grd_cpgidxlist.colHidden(fixedCol+1) = true;
- grd_cpgidxlist.colHidden(fixedCol+2) = true;
- grd_cpgidxlist.colHidden(fixedCol+3) = true;
- grd_cpgidxlist.colHidden(fixedCol+4) = true;
- grd_cpgidxlist.colHidden(fixedCol+5) = true;
- grd_cpgidxlist.colHidden(fixedCol+6) = false;
- grd_cpgidxlist.colHidden(fixedCol+7) = false;
- grd_cpgidxlist.colHidden(fixedCol+8) = false;
- }
-
- // Case1 그리드의 fixedCols의 값을 변경한다.
- function fChkFixedCols() {
- var fixedCol = grd_cpgidxlist.fixedCols;
- cmborddeptcd = model.getValue("/root/main/cond/orddeptcd");
- cmbmedispclid = model.getValue("/root/main/cond/medispclid");
- cmbcpgno = model.getValue("/root/main/cond/cpgno");
- cmbwardcd = model.getValue("root/main/cond/wardcd");
- if (cmborddeptcd == '0000000000') {
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("orddeptnm")) = true;
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("orddeptcd")) = true;
- } else {
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("orddeptnm")) = false;
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("orddeptcd")) = false;
- }
- if (cmbmedispclid == '000000') {
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("medispclid")) = true;
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("medispclnm")) = true;
- } else {
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("medispclid")) = false;
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("medispclnm")) = false;
- }
- if (cmbcpgno == '000000') {
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("cpgnm")) = true;
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("cpgno")) = true;
- } else {
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("cpgnm")) = false;
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("cpgno")) = false;
- }
- if (cmbwardcd == '0') {
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("wardcdnm")) = true;
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("wardcd")) = true;
- } else {
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("wardcdnm")) = false;
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("wardcd")) = false;
- }
- }
-
- // Case 2 그리드의 fixedCols의 값을 변경한다.
- function fChkFixedCols2() {
- var fixedCol = grd_cpgidxlist2.fixedCols;
- cmborddeptcd = model.getValue("/root/main/cond/orddeptcd");
- cmbmedispclid = model.getValue("/root/main/cond/medispclid");
- cmbcpgno = model.getValue("/root/main/cond/cpgno");
- cmbwardcd = model.getValue("root/main/cond/wardcd");
- var yyyy = model.getValue("/root/main/cond/yyyy");
- grd_cpgidxlist2.caption ="진료과^주치의^병동^CP명^사유^"+ yyyy + '^'+ yyyy + '^'+ yyyy + '^'+ yyyy + '^'+ yyyy + '^'+ yyyy + '^'+ yyyy + '^'+ yyyy + '^'+ yyyy + '^'+ yyyy + '^'+ yyyy + '^'+ yyyy + "|진료과^주치의^병동^CP명^사유^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월"
- if (cmborddeptcd == '0000000000') {
- grd_cpgidxlist2.colHidden(grd_cpgidxlist2.colRef("orddeptnm")) = true;
- } else {
- grd_cpgidxlist2.colHidden(grd_cpgidxlist2.colRef("orddeptnm")) = false;
- }
- if (cmbmedispclid == '000000') {
- grd_cpgidxlist2.colHidden(grd_cpgidxlist2.colRef("medispclid")) = true;
- } else {
- grd_cpgidxlist2.colHidden(grd_cpgidxlist2.colRef("medispclid")) = false;
- }
- if (cmbcpgno == '000000') {
- grd_cpgidxlist2.colHidden(grd_cpgidxlist2.colRef("cpgnm")) = true;
- } else {
- grd_cpgidxlist2.colHidden(grd_cpgidxlist2.colRef("cpgnm")) = false;
- }
- if (cmbwardcd == '0') {
- grd_cpgidxlist2.colHidden(grd_cpgidxlist2.colRef("wardcdnm")) = true;
- } else {
- grd_cpgidxlist2.colHidden(grd_cpgidxlist2.colRef("wardcdnm")) = false;
- }
- }
-
- function fChkDateflag() {
- var cmbwardcd = model.getValue("root/main/cond/wardcd");
- var dateflag = model.getValue("/root/main/cond/dateflag");
- if (cmbwardcd != '0') {
- if (dateflag == "O") {
- grd_cpgidxlist2.colHidden(grd_cpgidxlist2.colRef("wardcdnm")) = true;
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("wardcdnm")) = true;
- } else {
- grd_cpgidxlist2.colHidden(grd_cpgidxlist2.colRef("wardcdnm")) = false;
- grd_cpgidxlist.colHidden(grd_cpgidxlist.colRef("wardcdnm")) = false;
- }
- }
-
- }
-
- // typeflag 의 값에 따라서 조회조건의 기간 구분을 연도와 fromdd와 todd로 변경해준다.
- // 조회시에도 사용한다.
- function fChkTypeFlag() {
- var typeflag = model.getValue("/root/main/cond/typeflag");
- if (typeflag == 1) {
- ipt_yyyy.visible = false;
- ipt_fromdd.visible = true;
- ipt_todd.visible = true;
- caption12.visible = true;
- btn_pre.visible = false;
- btn_next.visible = false;
- } else {
- ipt_yyyy.visible = true;
- ipt_fromdd.visible = false;
- ipt_todd.visible = false;
- caption12.visible = false;
- btn_pre.visible = true;
- btn_next.visible = true;
- }
- }
-
- // 한개의 라인을 그리기 위해서 사용
- function fdrawLine(tChartObj, gridObj, col, title, refresh) {
- // TChart 초기화
- if( refresh ) {
- clearTChart(tChartObj);
- }
- if( title != null || title != "" ) {
- tChartObj.Header.Text(0) = title; // Title 설정
- }
- tChartObj.Aspect.View3D = 0; // 모양 설정 :: 0 = 2D | 1 = 3D
- tChartObj.Legend.CheckBoxes = true;
- tChartObj.Legend.Alignment = 0; // Legend 위치 설정 :: 0 = left | 1 = right | 2 = top| 3 = bottom
- var Rnd1, Rnd2, Rnd3;
- var cColor;
- var i;
- var x, y;
- tChartObj.AddSeries(0); // TChart Type 설정 :: 0 = Line | 1 = Bar ..
- var seriesIndex = tChartObj.SeriesCount - 1;
- var trgCol = col;
- tChartObj.Series(seriesIndex).asLine.Pointer.Visible = true;
- tChartObj.Series(seriesIndex).asLine.Pointer.Style = 1; //PointStyle 설정 :: 0 - 8
- tChartObj.Series(seriesIndex).Title = gridObj.valueMatrix(0, trgCol);
- //tChartObj.Series(cline - 2).Marks.Style = 0;
- Rnd1 = Math.random();
- Rnd2 = Math.random();
- Rnd3 = Math.random();
- cColor = window.rgb( (255 - 1) * Rnd1 + 1, (255 - 1) * Rnd2 + 1 , (255 - 1) * Rnd3 + 1);
- for( i = 0; i < gridObj.rows - gridObj.fixedRows; i++ ){
- x = gridObj.valueMatrix(i+gridObj.fixedRows, 0);
- y = gridObj.valueMatrix(i+gridObj.fixedRows, trgCol);
- tChartObj.Series(seriesIndex).Add (y, x, tChartObj.Series(seriesIndex).Color);
- tChartObj.Series(seriesIndex).LegendItemColor(cColor);
- }
- }
-
- function fdrawLineAll(tChartObj, gridObj, title) {
- for( var i = gridObj.fixedCols; i < gridObj.cols; i ++)
- fdrawLine(tChartObj, gridObj, i, title, false);
- }
-
- //CP 지표 메인
- function fMainChart() {
- clearTChart(TChart1);
- var cols = new Array();
- cols[0] = grd_cpgidxlist.colRef("userate");
- cols[1] = grd_cpgidxlist.colRef("endrate");
- cols[2] = grd_cpgidxlist.colRef("droprate");
-
- var rows = new Array();
- for (var i=0 ; i < grd_cpgidxlist.rows - grd_cpgidxlist.fixedRows ; i++) {
- rows[i] = i + grd_cpgidxlist.fixedRows;
- }
-
- drawSelectBar(TChart1, grd_cpgidxlist, "데이터", rows, cols, true, false, "row");
- }
-
- //CP 사용분석
- function fUseChart() {
- clearTChart(TChart1);
- var cols = new Array();
- cols[0] = grd_cpgidxlist.colRef("cppasscnt");
- cols[1] = grd_cpgidxlist.colRef("cpappcnt");
-
- var rows = new Array();
- for (var i=0 ; i < grd_cpgidxlist.rows - grd_cpgidxlist.fixedRows ; i++) {
- rows[i] = i + grd_cpgidxlist.fixedRows;
- }
-
- drawSelectBar(TChart1, grd_cpgidxlist, "데이터", rows, cols, true, false, "row");
-
- fdrawLine(TChart1, grd_cpgidxlist, 5, "TChart Line Sample", false);
- }
-
- //CP 완료 분석
- function fEndChart() {
- clearTChart(TChart1);
- var cols = new Array();
- cols[0] = grd_cpgidxlist.colRef("cpappcnt");
- cols[1] = grd_cpgidxlist.colRef("endcnt");
-
- var rows = new Array();
- for (var i=0 ; i < grd_cpgidxlist.rows - grd_cpgidxlist.fixedRows ; i++) {
- rows[i] = i + grd_cpgidxlist.fixedRows;
- }
-
- drawSelectBar(TChart1, grd_cpgidxlist, "데이터", rows, cols, true, false, "row");
-
- fdrawLine(TChart1, grd_cpgidxlist, 8, "TChart Line Sample", false);
- }
-
- //CP Drop 분석
- function fDropChart() {
- clearTChart(TChart1);
- var cols = new Array();
- cols[0] = grd_cpgidxlist.colRef("cpappcnt");
- cols[1] = grd_cpgidxlist.colRef("dropcnt");
-
- var rows = new Array();
- for (var i=0 ; i < grd_cpgidxlist.rows - grd_cpgidxlist.fixedRows ; i++) {
- rows[i] = i + grd_cpgidxlist.fixedRows;
- }
-
- drawSelectBar(TChart1, grd_cpgidxlist, "데이터", rows, cols, true, false, "row");
-
- fdrawLine(TChart1, grd_cpgidxlist, 11, "TChart Line Sample", false);
- }
- function fCallWndCpAppList() {
- iRow = grd_cpgidxlist.row;
- var orddeptnm = model.getValue("/root/main/cpgidxinfo/cpgidxinfolist["+ iRow + "]/orddeptcd");
- var medispclid = model.getValue("/root/main/cpgidxinfo/cpgidxinfolist["+ iRow + "]/orddeptcd");
- var cpgnm = model.getValue("/root/main/cpgidxinfo/cpgidxinfolist["+ iRow + "]/orddeptcd");
- setParameter("SMMMP02700_openflag", "P");
- setParameter("SMMMP02700_datefg", cmb_datefg.value);
- setParameter("SMMMP02700_fromdd", ipt_fromdd.value);
- setParameter("SMMMP02700_todd", ipt_todd.value);
- setParameter("SMMMP02700_cpgnm", cpgnm);
- setParameter("SMMMP02700_medispclid", medispclid);
- setParameter("SMMMP02700_orddeptnm", orddeptnm);
-
- open("SMMMP02700");
- }
-
- // 조회
- function fSearch() {
- model.makeNode("/root/send/reqdata");
- model.removeNodeset("/root/main/cpgidxinfo/cpgidxinfolist");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
- zsufGetUserInfoCombo(cmb_orddept.value, "/root/init/userlist", "_D"); //부서콤보 해당 의사콤보 조회
- addComboInstance("/root/init/userlist", "userid^usernm", "000000^선택안함", "usercombo"); //의사콤보 선택안함항목 추가
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
-
- var typeflag = model.getValue("/root/main/cond/typeflag");
- if (typeflag == 1) {
- fChkFixedCols() ;
- submit("TRMQP00101");
- } else {
- fChkFixedCols2();
- submit("TRMQP00102");
- }
-
-
- // 레포트에 각 조회조건을 전달하기 위한 값을 저장
- var datanm = cmb_datefg.label;
- model.makeValue("/root/main/cond/datenm", datanm);
-
- var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
- var depthngnm = model.getValue("/root/init/deptlist/dept" + "[deptcd = '" + orddeptcd + "']/depthngnm");
- model.makeValue("/root/main/cond/deptnm",depthngnm);
-
- var medispclid = model.getValue("/root/main/cond/medispclid");
- var usernm = model.getValue("/root/init/userlist/usercombo" + "[userid= '" + medispclid+ "']/usernm");
- model.makeValue("/root/main/cond/usernm",usernm);
-
- var cpgno = model.getValue("/root/main/cond/cpgno");
- var cpgnm = model.getValue("/root/init/cpglist/cpginfo" + "[cpgno= '" + cpgno+ "']/cpgnm");
- model.makeValue("/root/main/cond/cpgnm",cpgnm);
- }
-
- function saveGridToExcel(grdObj){
- var excelnm = model.getValue("/root/main/cond/menunm");
- var fileName = window.fileDialog("save", ",", false, excelnm, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- grdObj.saveExcel(fileName, "SheetName", true, true, "", "", true);
- }
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="2,0;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1195px; height:784px; ">
- <line id="line7" class="line_1" style="x1:0px; y1:60px; x2:1194px; y2:60px; "/>
- <line id="line1" class="line_3" style="x1:0px; y1:753px; x2:1194px; y2:753px; "/>
- <line id="line4" class="line_3" style="x1:0px; y1:756px; x2:1194px; y2:756px; "/>
- <group id="grp_sea" style="left:0px; top:15px; width:1194px; height:45px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:1px; width:1194px; height:40px; "/>
- <select1 id="cmb_medispclid" ref="/root/main/cond/medispclid" class="combo_search" appearance="minimal" style="left:623px; top:9px; width:74px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:5px; top:11px; width:89px; height:17px; ">기 간 :</caption>
- <line id="line3" style="x1:1115px; y1:11px; x2:1115px; y2:35px; border-color:#ffe4bb; border-left-style:solid; "/>
- <caption id="caption7" class="search_name" style="left:366px; top:11px; width:83px; height:17px; ">진료과 :</caption>
- <caption id="caption8" class="search_name" style="left:870px; top:11px; width:70px; height:17px; ">CP명 :</caption>
- <input id="ipt_yyyy" ref="/root/main/cond/yyyy" class="input_s_essential" visibility="hidden" format="yyyy" style="left:197px; top:9px; width:60px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setFocus("btn_search");
- btn_search.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_search" class="btn1_letter2" style="left:1125px; top:11px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/send/reqdata");
- model.removeNodeset("/root/main/cpgidxinfo/cpgidxinfolist");
- model.copyNode("/root/send/reqdata", "/root/main/cond");
-
- /*
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
- zsufGetUserInfoCombo(cmb_orddept.value, "/root/init/userlist", "_D"); //부서콤보 해당 의사콤보 조회
- addComboInstance("/root/init/userlist", "userid^usernm", "000000^선택안함", "usercombo"); //의사콤보 선택안함항목 추가
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- */
- var typeflag = model.getValue("/root/main/cond/typeflag");
- if (typeflag == 1) {
- fChkFixedCols() ;
- fChkDateflag();
- submit("TRMQP00101");
- /*
- var menuflag = model.getValue("/root/main/cond/menuflag")
- if (menuflag == 1 || menuflag==""){
- fMainChart();
- } else if (menuflag == 2) {
- fUseChart();
- } else if (menuflag ==3) {
- fEndChart()
- } else if (menuflag == 5) {
- fDropChart() ;
- }
- */
- } else {
- fChkFixedCols2();
- fChkDateflag() ;
- submit("TRMQP00102");
- /*
- var menuflag = model.getValue("/root/main/cond/menuflag")
- if (menuflag == 4) {
- clearTChart(TChart2);
- drawLineAll(TChart2, grd_cpgidxlist2, "Exclusion 사유 분석");
- } else if (menuflag == 6) {
- clearTChart(TChart2);
- drawLineAll(TChart2, grd_cpgidxlist2, "Drop 사유 분석");
- }
- */
- }
-
-
- // 레포트에 각 조회조건을 전달하기 위한 값을 저장
- var datanm = cmb_datefg.label;
- model.makeValue("/root/main/cond/datenm", datanm);
-
- var orddeptcd = model.getValue("/root/main/cond/orddeptcd");
- var depthngnm = model.getValue("/root/init/deptlist/dept" + "[deptcd = '" + orddeptcd + "']/depthngnm");
- model.makeValue("/root/main/cond/deptnm",depthngnm);
-
- var medispclid = model.getValue("/root/main/cond/medispclid");
- var usernm = model.getValue("/root/init/userlist/usercombo" + "[userid= '" + medispclid+ "']/usernm");
- model.makeValue("/root/main/cond/usernm",usernm);
-
- var cpgno = model.getValue("/root/main/cond/cpgno");
- var cpgnm = model.getValue("/root/init/cpglist/cpginfo" + "[cpgno= '" + cpgno+ "']/cpgnm");
- model.makeValue("/root/main/cond/cpgnm",cpgnm);
- ]]>
- </script>
- </button>
- <select1 id="cmb_cpglst" ref="/root/main/cond/cpgno" class="combo_search" appearance="minimal" style="left:935px; top:9px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cpglist/cpginfo">
- <label ref="cpgnm"/>
- <value ref="cpgno"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_search" appearance="minimal" style="left:441px; top:9px; width:74px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/init/userlist");
- model.makeNode("/root/init/userlist/usercombo");
- //zsufGetUserInfoCombo(cmb_orddept.value, "/root/init/userlist", "_D"); //부서콤보 해당 의사콤보 조회
- if(cmb_orddept.value != "" && cmb_orddept.value != "0000000000"){
- mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist" , cmb_orddept.value, "0330"); //진료과 의사콤보 조회
- }
- addComboInstance("/root/init/userlist", "userid^usernm", "000000^선택안함", "usercombo"); //의사콤보 선택안함항목 추가
- addComboInstance("/root/init/userlist", "userid^usernm", "-^전체", "usercombo"); //의사콤보 전체항목 추가
- //2008-01-27 손주연 수정 시작
-
- fGetCPGInfo();
- cmborddeptcd = model.getValue("/root/main/cond/orddeptcd");
- //2008-01-27 손주연 수정 종료
-
- model.setValue("/root/main/cond/medispclid", "-");
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:538px; top:11px; width:86px; height:17px; ">담당교수 :</caption>
- <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_s_essential" inputtype="date" style="left:155px; top:9px; width:90px; height:19px; "/>
- <input id="ipt_todd" ref="/root/main/cond/todd" class="input_s_essential" inputtype="date" style="left:265px; top:9px; width:90px; height:19px; "/>
- <caption id="caption12" class="search_no_b" style="left:250px; top:11px; width:12px; height:17px; ">~</caption>
- <select1 id="cmb_datefg" ref="/root/main/cond/dateflag" class="combo_s_essential" appearance="minimal" style="left:85px; top:9px; width:67px; height:19px; ">
- <choices>
- <item>
- <label>입원일</label>
- <value>I</value>
- </item>
- <item>
- <label>퇴원일</label>
- <value>D</value>
- </item>
- <!--item>
- <label>내원일</label>
- <value>O</value>
- </item-->
- <item>
- <label>적용일</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var dateflag = model.getValue("/root/main/cond/dateflag");
- if (dateflag == "O") {
- cmb_ward.disabled = true;
- } else {
- cmb_ward.disabled = false;
- }
- ]]>
- </script>
- </select1>
- <button id="btn_pre" class="icon_left" visibility="hidden" style="left:168px; top:9px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_year = ipt_yyyy.value;
- cur_year --;
- model.setValue("/root/main/cond/yyyy", cur_year);
- model.makeValue("/root/send/reqdata/yyyy", cur_year);
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMQP00102");
- ]]>
- </script>
- </button>
- <button id="btn_next" class="icon_right" visibility="hidden" style="left:260px; top:9px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_year = ipt_yyyy.value;
- cur_year ++;
- model.setValue("/root/main/cond/yyyy", cur_year);
- model.copyNode("/root/send/reqdata", "/root/main/cond");
- submit("TRMQP00102");
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:715px; top:11px; width:65px; height:17px; ">병동 :</caption>
- <select1 id="cmb_ward" ref="/root/main/cond/wardcd" class="combo_search" appearance="minimal" style="left:775px; top:9px; width:74px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/warddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <switch id="switch1" style="left:100px; top:65px; width:1095px; height:685px; ">
- <case id="case1" selected="true">
- <!--<datagrid id="grd_cpgidxlist" nodeset="/root/main/cpgidxinfo/cpgidxinfolist" caption="진료과^교수명^CP명^CP사용 분석^CP사용 분석^CP사용 분석^CP완료 분석^CP완료 분석^CP완료 분석^CP Drop분석^CP Drop분석^CP Drop분석|진료과^교수명^CP명^CP 대상건수^CP 적용건수^CP사용률^CP 적용건수^CP 완료건수^CP 완료율^CP 적용건수^CP Drop건수^CP Drop률" colsep="^" colwidth="80, 75, 215, 80, 80, 80, 80, 80, 80, 80, 80, 80" ellipsis="true" fixedcols="3" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:0px; width:1093px; height:350px; text-align:center; ">-->
- <datagrid id="grd_cpgidxlist" nodeset="/root/main/cpgidxinfo/cpgidxinfolist" caption="진료과^교수명^병동^CP명^CP사용 분석^CP사용 분석^CP사용 분석^CP완료 분석^CP완료 분석^CP완료 분석^CP Drop분석^CP Drop분석^CP Drop분석^병동코드^주치의ID^병동코드^CP코드|진료과^교수명^병동^CP명^CP 대상건수^CP 적용건수^CP적용률^CP 적용건수^CP 완료건수^CP 완료율^CP 적용건수^CP Drop건수^CP Drop률^병동코드^주치의ID^병동코드^CP코드" colsep="^" colwidth="65, 60, 70, 215, 80, 80, 80, 80, 80, 80, 80, 80, 80, 0, 0, 0, 0" ellipsis="true" fixedcols="4" mergecellsfixedcols="bycolrec" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:0px; width:1088px; height:683px; text-align:center; ">
- <col ref="orddeptnm"/>
- <col ref="medispclnm"/>
- <col ref="wardcdnm"/>
- <col ref="cpgnm"/>
- <col ref="cppasscnt"/>
- <col ref="cpappcnt"/>
- <col ref="userate" format="###%" style="text-align:center; "/>
- <col ref="cpappcnt"/>
- <col ref="endcnt"/>
- <col ref="endrate" format="###%" style="text-align:center; "/>
- <col ref="cpappcnt"/>
- <col ref="dropcnt"/>
- <col ref="droprate" format="###%" style="text-align:center; "/>
- <col ref="orddeptcd"/>
- <col ref="medispclid"/>
- <col ref="wardcd"/>
- <col ref="cpgno"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var currow = grd_cpgidxlist.row;
- var curcol = grd_cpgidxlist.col;
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (isDataCell() == true) {
- fCallWndCpAppList() ;
- }
- ]]>
- </script>
- </datagrid>
- <!--
- <group id="group1" style="left:0px; top:350px; width:1090px; height:325px; ">
- <object id="TChart1" navindex="-1" clsid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" Visible="false" style="left:0px; top:0px; width:1089px; height:324px; margin-left:2; margin-top:1; "/>
- </group>
- -->
- </case>
- <case id="case2">
- <!--<datagrid id="grd_cpgidxlist2" nodeset="/root/main/cpgidxinfo/cpgidxinfolist2" caption="진료과^주치의^CP명^사유^^^^^^^^^^^^|진료과^주치의^CP명^사유^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월" colsep="^" colwidth="70, 65, 230, 244, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40" ellipsis="true" fixedcols="4" mergecellsfixedcols="byrowrec" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:0px; width:1092px; height:350px; text-align:center; ">-->
- <datagrid id="grd_cpgidxlist2" nodeset="/root/main/cpgidxinfo/cpgidxinfolist2" caption="진료과^주치의^병동^CP명^사유^^^^^^^^^^^^^합계|진료과^주치의^병동^CP명^사유^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계" colsep="^" colwidth="65, 50, 63, 181, 244, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 40, 39" ellipsis="true" fixedcols="5" mergecellsfixedcols="byrowrec" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:0px; width:1092px; height:683px; text-align:center; ">
- <col ref="orddeptnm"/>
- <col ref="medispclid"/>
- <col ref="wardcdnm"/>
- <col ref="cpgnm"/>
- <col ref="valunm"/>
- <col ref="jan"/>
- <col ref="feb"/>
- <col ref="mar"/>
- <col ref="apr"/>
- <col ref="may"/>
- <col ref="jun"/>
- <col ref="jul"/>
- <col ref="oug"/>
- <col ref="sep"/>
- <col ref="oct"/>
- <col ref="nob"/>
- <col ref="de"/>
- <col ref="total"/>
- </datagrid>
- <!--<group id="group2" style="left:0px; top:350px; width:1090px; height:325px; ">
- <object id="TChart2" navindex="-1" clsid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" Visible="false" style="left:0px; top:0px; width:1089px; height:324px; margin-left:2; margin-top:1; "/>
- </group>
- -->
- <datagrid id="grd_dropChart" nodeset="/root/main/tChartinfo/dropChart" visibility="hidden" caption="사유^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월" colsep="^" colwidth="56, 31, 20, 17, 22, 23, 22, 25, 33, 21, 30, 35, 19" fixedcols="1" mergecellsfixedrows="bycolrec" rowsep="|" style="left:365px; top:135px; width:365px; height:150px; ">
- <col ref="valunm"/>
- <col ref="jan"/>
- <col ref="feb"/>
- <col ref="mar"/>
- <col ref="apr"/>
- <col ref="may"/>
- <col ref="jun"/>
- <col ref="jul"/>
- <col ref="oug"/>
- <col ref="sep"/>
- <col ref="oct"/>
- <col ref="nob"/>
- <col ref="de"/>
- </datagrid>
- <group id="group1" style="left:15px; top:315px; width:1045px; height:330px; ">
- <object id="TChart1" clsid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}" Top="106" Width="580" Height="325" style="left:0px; top:0px; width:945px; height:325px; "/>
- </group>
- <datagrid id="datagrid1" visibility="hidden" caption="caption1^caption2^caption3" colsep="^" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:85px; width:350px; height:150px; ">
- <col/>
- <col/>
- <col/>
- </datagrid>
- </case>
- </switch>
- <button id="btn_main" class="btn2_letter7" style="left:1px; top:106px; width:97px; height:19px; ">
- <caption>지표Main</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rdo_sumcondflag.disabled = false;
- var typeflag = model.getValue("/root/main/cond/typeflag");
- model.setValue("/root/main/cond/menuflag", "1");
- model.setValue("/root/main/cond/menunm", btn_main.attribute("text"));
- model.toggle("case1");
- model.removeNodeset("/root/main/cpgidxinfo/cpgidxinfolist2");
- if (typeflag !=1) {
- submit("TRMQP00101");
- }
- model.setValue("/root/main/cond/typeflag", "1");
- fChkFixedCols();
- fChkDateflag();
- fChkTypeFlag();
- model.refresh();
- fCpMain();
- //fMainChart();
- ]]>
- </script>
- </button>
- <button id="btn_use" class="btn2_letter7" style="left:1px; top:128px; width:97px; height:19px; ">
- <caption>CP 적용분석</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rdo_sumcondflag.disabled = false;
- var typeflag = model.getValue("/root/main/cond/typeflag");
- model.setValue("/root/main/cond/menuflag", "2");
- model.setValue("/root/main/cond/menunm", btn_main.attribute("text"));
- model.toggle("case1");
- model.removeNodeset("/root/main/cpgidxinfo/cpgidxinfolist2");
- if (typeflag !=1) {
- submit("TRMQP00101");
- }
- model.setValue("/root/main/cond/typeflag", "1");
- fChkFixedCols();
- fChkDateflag();
- fChkTypeFlag();
- model.refresh();
- fCpUseAnalysis() ;
- //fUseChart();
- ]]>
- </script>
- </button>
- <button id="btn_end" class="btn2_letter7" style="left:1px; top:150px; width:97px; height:19px; ">
- <caption>CP 완료분석</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rdo_sumcondflag.disabled = false;
- var typeflag = model.getValue("/root/main/cond/typeflag");
- model.setValue("/root/main/cond/menuflag", "3");
- model.setValue("/root/main/cond/menunm", btn_main.attribute("text"));
- model.toggle("case1");
- model.removeNodeset("/root/main/cpgidxinfo/cpgidxinfolist2");
- if (typeflag !=1) {
- submit("TRMQP00101");
- }
- model.setValue("/root/main/cond/typeflag", "1");
- fChkFixedCols();
- fChkDateflag();
- fChkTypeFlag();
- model.refresh();
- fCpEndAnalysis() ;
- //fEndChart()
- ]]>
- </script>
- </button>
- <button id="btn_exclusion" class="btn2_letter7" style="left:1px; top:194px; width:97px; height:19px; ">
- <caption>Exclusion분석</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rdo_sumcondflag.disabled = true;
- model.setValue("/root/main/cond/typeflag", "2");
- model.setValue("/root/main/cond/menuflag", "4");
- model.setValue("/root/main/cond/menunm", btn_exclusion.attribute("text"));
- model.toggle("case2");
- model.removeNodeset("/root/main/cpgidxinfo/cpgidxinfolist2");
- fChkFixedCols2();
- fChkTypeFlag();
- model.refresh();
- fChkTypeFlag();
- fSearch();
- fChkDateflag();
- //clearTChart(TChart2);
- //drawLineAll(TChart2, grd_cpgidxlist2, "Exclusion 사유 분석");
- grd_cpgidxlist2.caption = "진료과^주치의^병동^CP명^Exclusion 사유^^^^^^^^^^^^^합계|진료과^주치의^병동^CP명^Exclusion 사유^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계";
- ]]>
- </script>
- </button>
- <button id="btn_drop" class="btn2_letter7" style="left:1px; top:172px; width:97px; height:19px; ">
- <caption>CP Drop분석</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rdo_sumcondflag.disabled = false;
- var typeflag = model.getValue("/root/main/cond/typeflag");
- model.setValue("/root/main/cond/menuflag", "5");
- model.setValue("/root/main/cond/menunm", btn_main.attribute("text"));
- model.toggle("case1");
- model.removeNodeset("/root/main/cpgidxinfo/cpgidxinfolist2");
- if (typeflag !=1) {
- submit("TRMQP00101");
- }
- model.setValue("/root/main/cond/typeflag", "1");
- fChkFixedCols();
- fChkDateflag();
- fChkTypeFlag();
- model.refresh();
- fCpDropAnalysis() ;
-
- //fDropChart() ;
- ]]>
- </script>
- </button>
- <button id="btn_droprsn" class="btn2_letter7" style="left:1px; top:216px; width:97px; height:19px; ">
- <caption>Drop 사유분석</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rdo_sumcondflag.disabled = true;
- model.setValue("/root/main/cond/typeflag", "3");
- model.setValue("/root/main/cond/menuflag", "6");
- model.setValue("/root/main/cond/menunm", btn_droprsn.attribute("text"));
- model.toggle("case2");
- model.removeNodeset("/root/main/cpgidxinfo/cpgidxinfolist2");
- fChkFixedCols2();
- fChkTypeFlag();
- model.refresh();
- fChkTypeFlag();
- fSearch();
- fChkDateflag();
- //clearTChart(TChart2);
- //drawLineAll(TChart2, grd_cpgidxlist2, "Drop 사유 분석");
- grd_cpgidxlist2.caption = "진료과^주치의^병동^CP명^Drop 사유^^^^^^^^^^^^^합계|진료과^주치의^병동^CP명^Drop 사유^1월^2월^3월^4월^5월^6월^7월^8월^9월^10월^11월^12월^합계";
- ]]>
- </script>
- </button>
- <button id="button14" class="btn2_letter7" style="left:1px; top:238px; width:97px; height:19px; ">
- <caption>CP처방 일치율</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- rdo_sumcondflag.disabled = true;
- messageBox("개발중", "E008");
- ]]>
- </script>
- </button>
- <button id="button1" class="icon_bottom" visibility="hidden" style="left:70px; top:370px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_cpgidxlist2.attribute("top") = 0;
- grd_cpgidxlist2.attribute("height") = 683;
- group2.visible = false;
- grd_cpgidxlist.attribute("top") = 0;
- grd_cpgidxlist.attribute("height") = 683;
- group1.visible = false;
- ]]>
- </script>
- </button>
- <button id="button2" class="icon_top" visibility="hidden" style="left:70px; top:390px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_cpgidxlist2.attribute("top") = 0;
- grd_cpgidxlist2.attribute("height") = 350;
- group2.visible = true;
- grd_cpgidxlist.attribute("top") = 0;
- grd_cpgidxlist.attribute("height") = 350;
- group1.visible = true;
- ]]>
- </script>
- </button>
- <select1 id="rdo_sumcondflag" ref="/root/main/cond/sumcondflag" appearance="full" cellspacing="5" cols="1" overflow="visible" style="left:0px; top:68px; width:100px; height:37px; border-style:none; ">
- <choices>
- <item>
- <label>과별 합계</label>
- <value>D</value>
- </item>
- <item>
- <label>진료의별 합계</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_search.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="btn_graph" class="icon_bottom" visibility="hidden" style="left:70px; top:420px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ref = "/root/main/cpgidxinfo/cpgidxinfolist2";
- var ref1 ="/root/main/tChartinfo/dropChart";
- group1.visible=true;
- var cpgnm;
- var valunm;
- // model.makeNode("/root/main/tChartinfo/dropChart/valunm");
- //grd_cpgidxlist2.attribute("top") = 0;
- grd_cpgidxlist2.attribute("height") = 283;
- /*group2.visible = false;
- grd_cpgidxlist.attribute("top") = 0;
- grd_cpgidxlist.attribute("height") = 683;
- group1.visible = false;*/
- for(var i=1;i<grd_cpgidxlist2.rows;i++){
- cpgnm = model.getValue(ref + "[" + i + "]/cpgnm");
-
- for(var j=1; j<=i; j++){
-
- if (model.getValue(ref + "[" + j + "]/cpgnm")==cpgnm){
- //model.alert("4444444444");
- valunm = model.getValue(ref + "[" + j + "]/valunm");
- //model.alert("555");
- //model.setValue(ref1 + "[" + j + "]/valunm",valunm);
- model.setValue("/root/main/tChartinfo/dropChart/valunm",valunm);
- }
- }
-
- }
-
-
-
-
- //drawLine(TChart1,grd_dropChart,1,"TChart1",true);
- ]]>
- </script>
- <hint>
- <![CDATA[그래프 보이기]]>
- </hint>
- </button>
- <button id="btn_graphHide" class="icon_top" visibility="hidden" style="left:70px; top:440px; width:26px; height:19px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- group1.visible=false;
- //grd_cpgidxlist2.attribute("top") = 0;
- grd_cpgidxlist.attribute("height") = 683;
- /* group2.visible = true;
- grd_cpgidxlist.attribute("top") = 0;
- grd_cpgidxlist.attribute("height") = 350;
- group1.visible = true; */
- ]]>
- </script>
- <hint>
- <![CDATA[그래프 숨기기]]>
- </hint>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:755px; width:1195px; height:29px; ">
- <button id="btn_prt" class="btn6_letter2" style="left:139px; top:3px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var typeflag = model.getValue("/root/main/cond/typeflag");
- if (typeflag == "1") {
- exeReportPreview("RPMQP00100", "XMLSTR");
- } else {
- }
- ]]>
- </script>
- </button>
- <button id="btn_help" class="btn4_letter3" visibility="hidden" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>도움말</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/main/cpgidxlist/cpgidxlist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_preview" class="btn6_letter4" style="left:59px; top:3px; width:80px; height:22px; ">
- <caption>미리보기</caption>
- </button>
- <button id="btn_exesave" class="btn3_letter2" style="left:3px; top:3px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var typeflag = model.getValue("/root/main/cond/typeflag");
- if (typeflag == "1") {
- saveGridToExcel(grd_cpgidxlist);
- } else {
- saveGridToExcel(grd_cpgidxlist2);
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="caption9" class="tit_1" style="left:0px; top:0px; width:205px; height:13px; ">CP지표</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|