123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>외래 진찰료 마감</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <cond>
- <orddeptcd/>
- <orddrid/>
- <execflag>Y</execflag>
- <ordclsdeptflag/>
- <supdeptcd/>
- <orddrnm/>
- <fromdd/>
- <todd/>
- <stat>-</stat>
- </cond>
- <dracptinfo>
- <dracptlist>
- <ordtm/>
- <pid/>
- <hngnm/>
- <sexage/>
- <fsexamflag/>
- <rsrvflag/>
- <stat/>
- <endtd/>
- <orddeptcd/>
- <orddrid/>
- <orddd/>
- <nursacptyn/>
- <dracptyn/>
- <prcpgenryn/>
- <ordtype/>
- <cretno/>
- <instcd/>
- <acptseqno/>
- <etcordflag/>
- <enddd/>
- <endtm/>
- <ndstat/>
- <acptno/>
- <dracptdd/>
- <dracpttm/>
- <acptyn/>
- <centcd/>
- <subdeptcd/>
- <subdeptnm/>
- </dracptlist>
- </dracptinfo>
- </main>
- <send/>
- <init>
- <orddept>
- <dept/>
- </orddept>
- <orddr>
- <orddr>
- <usernm/>
- <userid/>
- </orddr>
- <orddrlist>
- <usernm/>
- <userid/>
- </orddrlist>
- </orddr>
- <depttret>
- <depttret>
- <deptcd/>
- <tret/>
- </depttret>
- </depttret>
- </init>
- <tmp>
- <selecteddrid/>
- </tmp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var dt = getCurrentDate();
- var instcd = getUserInfo("dutplceinstcd");
- var rslt_ref = "/root/init/orddept";
- var sort_field = "depthngnm";
- var sort_method = "asc";
-
- if (opener.javascript.getParameter("orddd") != "") {
- model.setValue("/root/main/cond/fromdd", opener.javascript.getParameter("orddd"));
- model.setValue("/root/main/cond/todd", opener.javascript.getParameter("orddd"));
- //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "rcptuseyn", "X", "/root/init/orddept", "depthngnm", "asc"); //부서코드 콤보조회
- //zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
- // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
- zsdfGetCareOutOrderDepartmentList(instcd, rslt_ref, dt);
-
-
- cmb_orddept.value = opener.javascript.getParameter("orddeptcd");
-
- }else{
- model.setValue("/root/main/cond/fromdd", getCurrentDate());
- model.setValue("/root/main/cond/todd", getCurrentDate());
- //zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "rcptuseyn", "X", "/root/init/orddept", "depthngnm", "asc"); //부서코드 콤보조회
- //zsdfGetOutOrdDeptList( instcd, rslt_ref, sort_field, sort_method, dt );
- // 간호외래진료부서콤보 (특정하위부서를 포함- 분만실, 육아상담실, 인공신장실)
- zsdfGetCareOutOrderDepartmentList(instcd, rslt_ref, dt);
- model.setValue("/root/main/cond/orddeptcd", getUserInfo("dutplcecd"));
- }
-
- addComboInstance("/root/init/orddept" , "deptcd^depthngnm", "-^전체", "dept"); //부서콤보 전체항목 추가
-
- // 간호하드코딩 테이블 조회_20090603(kys)-서울성모기관코드조회
- var pCode = "'079'"; // 조회할 CdGrupID 코드정보
- var pDate = getCurrentDate(); //조회기준일자
- fGetNursHardCdInfo(pCode, pDate);
-
- for(i=1; i<=getNodesetCount("/root/code/codeinfo/codelist"); i++){
- switch (model.getValue("/root/code/codeinfo/codelist["+i+"]/cdgrupid")){
- case "079": // 서울성모기관코드(주사실에서 등록한 코드를 사용함-20090602)
- Seoulinstcd = model.getValue("/root/code/codeinfo/codelist["+i+"]/cdid");
- break;
- }
- }
- //model.setValue("/root/main/cond/orddeptcd", "2010600000");
- fOrddr();
-
- //model.setValue("/root/main/cond/orddrid", getUserId());
- //model.setValue("/root/main/cond/orddrid", "91620025");
- //20090805-kys(그리드 상단 컬럼 전체 체크박스)
- grd_dracptlist.fixedcellcheckbox(0,1) = true;
-
- model.refresh();
- // fSearch();
-
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- var Seoulinstcd; //서울성모병원 기관코드추가(진찰료마감조회기준변경으로 수정)-20090603
-
- function fSearch() {
- //진료의 조회시 전체선택박스 체크 해제-20090825-kys
- grd_dracptlist.fixedcellischeck(0,1) = false;
-
- grd_dracptlist.rebuildStyle();
- model.removeNodeset("/root/main/dracptinfo");
- model.removeNodeset("/root/send");
-
- model.makeNode("/root/send");
- model.makeValue("/root/send/fromdd" , model.getValue("/root/main/cond/fromdd"));
- model.makeValue("/root/send/todd" , model.getValue("/root/main/cond/todd"));
- model.makeValue("/root/send/orddeptcd" , model.getValue("/root/main/cond/orddeptcd"));
- model.makeValue("/root/send/orddrid" , model.getValue("/root/main/cond/orddrid"));
- model.makeValue("/root/send/execflag" , model.getValue("/root/main/cond/execflag"));
- model.makeValue("/root/send/ordclsdeptflag" , model.getValue("/root/main/cond/ordclsdeptflag"));
- model.makeValue("/root/send/stat" , model.getValue("/root/main/cond/stat"));
- if(model.getValue("/root/main/cond/ordclsdeptflag") != "C"){
- model.makeValue("/root/send/supdeptcd" , model.getValue("/root/main/cond/supdeptcd"));
- }else{
- model.makeValue("/root/send/supdeptcd" , model.getValue("/root/init/orddr/orddr[usernm = '" + model.getValue("/root/main/cond/orddrnm") + "']/deptcd") );
- }
- //8개병원 공통블로킹 처리(진찰료미마감,외래선처치마감)_20090707_SMY
- // if(Seoulinstcd == getUserInfo('dutplceinstcd')){//20090603-서울성모만 반영
- model.makeValue("/root/send/applyyn" , "Y");
- /*
- }else{
- model.makeValue("/root/send/applyyn" , "N");
- }
- */
- submit("TRMNO02601");
- for(i=1 ; i < grd_dracptlist.rows ; i++ ){
-
- grd_dracptlist.isReadOnly(i, 12) = true; //20090805-kys선택추가로 인한 인덱스변경 6->8->12
-
- ndstat = model.getValue("/root/main/dracptinfo/dracptlist[" + i + "]/ndstat");
- if( ndstat == "NN" ){
- grd_dracptlist.rowStyle(i, "data", "background-color") = "#ff7f50";
- //grd_dracptlist.rowStyle(i, "data", "background-color") = "#fffd700";
- }else if( ndstat == "YN" ){
- if(model.getValue("/root/main/dracptinfo/dracptlist[" + i + "]/earnendyn") == "2"){ //간호접수를 진료부도로 수정 후 마감해도 간호접수로 조회되는 오류로 인하여 earnendyn으로 값 체크하여 조회되도록 수정_20091130_SMY
- grd_dracptlist.rowStyle(i, "data", "background-color") = "#ff7f50";
- }else{
- grd_dracptlist.rowStyle(i, "data", "background-color") = "#fffd700";
- grd_dracptlist.isReadOnly(i, 12) = false; //20090805-kys선택추가로 인한 인덱스변경 6->8->12
- }
- }
- //마감후 조회시 선택박스 비활성화-20090825-kys
- if(model.getValue("/root/main/dracptinfo/dracptlist["+i+"]/endtd") !=""){
- grd_dracptlist.isReadOnly(i, grd_dracptlist.colRef("acptyn")) = true;
- } else {
- grd_dracptlist.isReadOnly(i, grd_dracptlist.colRef("acptyn")) = false;
- }
- }
- }
- function fOrddr() {
- model.removeNodeset("/root/main/dracptinfo");
- caption2.attribute("text") = "";
- model.removeNodeset("/root/send");
- model.makeNode("/root/send");
- model.makeValue("/root/send/orddd" , model.getValue("/root/main/cond/todd"));
- model.makeValue("/root/send/orddeptcd" , model.getValue("/root/main/cond/orddeptcd"));
- model.makeValue("/root/send/prcpspecflag" ,"Y");
-
- var sordclsdeptflag = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/ordclsdeptflag"); // 센터/대표/분과/서브 구분
- var sorddeptkind = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/orddeptkind"); // 센터/대표 구분
- var ssupdeptcd = model.getValue("/root/init/orddept/dept[deptcd = '"+model.getValue("/root/main/cond/orddeptcd")+"']/supdeptcd"); // 상위부서코드
-
- var sorddeptflag = "";
- var captiontext = ""; //진찰료마감여부텍스트추가-20091113-kys
-
- if (sorddeptkind == "C") { // 센터이면
- sorddeptflag = "C";
- //} else if (sorddeptkind != "C" && sordclsdeptflag == "A") { // 센터가 아니면서 분과이면
- // sorddeptflag = "A";
- } else { // 그외에 기타과
- sorddeptflag = "etc";
- }
-
- model.setValue("/root/main/cond/ordclsdeptflag",sorddeptflag);
- model.setValue("/root/main/cond/supdeptcd",ssupdeptcd);
-
- model.makeValue("/root/send/ordclsdeptflag", model.getValue("/root/main/cond/ordclsdeptflag"));
- model.makeValue("/root/send/supdeptcd", model.getValue("/root/main/cond/supdeptcd"));
-
- //alert("Seoulinstcd : " + Seoulinstcd);
- //8개병원 공통블로킹 처리(진찰료미마감,외래선처치마감)_20090707_SMY
- //if(Seoulinstcd == getUserInfo('dutplceinstcd')){//20090603-서울성모만 반영
- model.makeValue("/root/send/applyyn" , "Y");
- /*
- }else{
- model.makeValue("/root/send/applyyn" , "N");
- }
- */
- submit("TRMNO02603");
-
- //센터인경우 여러개의 과가 조회되어 마감중인데도 마감완료로 나옴(첫줄 셋팅됨)-20091112-kys
- captiontext = model.getValue("/root/init/depttret/depttret/tret")
- for(i = 1;i<=getNodesetCount("/root/init/depttret/depttret/tret");i++){
- if(model.getValue("/root/init/depttret/depttret[" + i + "]/tret") == "(마감중)"){
- captiontext = "(마감중)";
- break;
- }
- }
- //caption2.attribute("text") = model.getValue("/root/init/depttret/depttret/tret");
- caption2.attribute("text") = captiontext;
-
- submit("TRMNO02602");
- if(getNodesetCount("/root/init/orddr/orddr") > 0){ //진료의콤보 전체추가-20091102-kys
- addComboInstance("/root/init/orddr", "usernm^userid^deptcd", "전체의사^00000000^0000000000", "orddr");
- model.resetInstanceNode("/root/main/cond/orddrid");
- } else {
- model.makeValue("/root/init/orddr/orddr/usernm", "전체의사");
- model.makeValue("/root/init/orddr/orddr/userid", "00000000");
- model.makeValue("/root/init/orddr/orddr/deptcd", "0000000000");
- }
-
- model.setValue("/root/main/cond/orddrid", "00000000");
-
- //cmb_orddrid.select(0);
- model.refresh();
- }
-
- function addComboInstance(combopath, nodename, nodeval, parentnode){
- nodename = nodename.split("^");
- nodeval = nodeval.split("^");
- if(nodename.length != nodeval.length){
- return;
- }
-
- var label = model.instances(0).createElement(nodename[0]);
- var val = model.instances(0).createElement(nodename[1]);
- var val2 = model.instances(0).createElement(nodename[2]);
- var combo = model.instances(0).createElement(parentnode);
- label.value = "" + nodeval[0] + "";
- val.value = "" + nodeval[1] + "";
- val2.value = "" + nodeval[2] + "";
-
- combo.appendChild(label);
- combo.appendChild(val);
- combo.appendChild(val2);
-
- chkNode = model.instances(0).selectSingleNode(combopath);
- if(chkNode == null){
- model.makeNode(combopath);
- srcNode = model.instances(0).selectSingleNode(combopath);
- }else{
- srcNode = model.instances(0).selectSingleNode(combopath);
- }
-
- desNode = model.instances(0).selectSingleNode(combopath + "/" + parentnode);
- srcNode.insertBefore(combo, desNode);
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRMNO02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/dracptlist"/>
- <submission id="TRMNO02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/orddr"/>
- <submission id="TRMNO02603" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/depttret"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/orddeptlist/dept"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TXMNO02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/indate" resultref="/root/temp/rslt"/>
- <submission id="TRZSD00206" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRMNW00001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/code/codelist"/>
- </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="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;1,5;1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" style="left:0px; top:18px; width:1194px; height:744px; ">
- <group id="grp_sea" style="left:3px; top:1px; width:1189px; height:59px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1187px; height:55px; "/>
- <caption id="cap_ward" class="search_name" style="left:282px; top:9px; width:73px; height:17px; ">진료과</caption>
- <button id="button1" class="btn1_letter2" navindex="5" style="left:1125px; top:16px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption8" class="search_name" style="left:6px; top:9px; width:86px; height:17px; ">진료일자</caption>
- <input id="input5" ref="/root/main/cond/fromdd" class="input_search" navindex="3" inputtype="date" style="left:88px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/main/dracptinfo");
- caption2.attribute("text") = "";
-
- model.setValue("/root/main/cond/todd", model.getValue("/root/main/cond/fromdd"));
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption10" class="search_name" style="left:815px; top:9px; width:56px; height:17px; ">구분:</caption>
- <line id="line13" class="line_4" style="x1:1114px; y1:6px; x2:1114px; y2:49px; "/>
- <select1 id="cmb_orddept" ref="/root/main/cond/orddeptcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:352px; top:8px; width:133px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fOrddr();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/main/cond/orddrid" class="combo_search" appearance="minimal" style="left:654px; top:8px; width:141px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddr/orddr">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //20090805-kys(마감후 클릭되어 있던 진료의의 마감정보를 조회하기 위해)
- //model.setValue("/root/main/cond/orddrid", model.getValue("/root/init/orddr/orddr[usernm = '" + model.getValue("/root/main/cond/orddrnm") + "']/userid"));
- //model.setValue("root/tmp/selecteddrid","");
- model.setValue("root/tmp/selecteddrid",model.getValue("/root/main/cond/orddrid"));
- fSearch();
- ]]>
- </script>
- </select1>
- <select1 id="combo1" ref="/root/main/cond/execflag" class="combo_search" appearance="minimal" style="left:872px; top:8px; width:73px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>마감전</label>
- <value>Y</value>
- </item>
- <item>
- <label>마감후</label>
- <value>N</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(combo1.value == "Y"){
- btn_acting.visible = true;
- }else {
- btn_acting.visible = false;
- }
- fSearch();
- ]]>
- </script>
- </select1>
- <caption id="caption3" class="search_name" style="left:587px; top:9px; width:66px; height:17px; ">진료의</caption>
- <caption id="caption2" style="left:489px; top:10px; width:76px; height:17px; font-weight:bold; "/>
- <caption id="caption4" style="left:175px; top:10px; width:15px; height:20px; ">~</caption>
- <input id="input3" ref="/root/main/cond/todd" class="input" inputtype="date" style="left:190px; top:8px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.removeNodeset("/root/main/dracptinfo");
- caption2.attribute("text") = "";
-
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:6px; top:32px; width:86px; height:17px; ">진료여부</caption>
- <select1 id="radio1" ref="/root/main/cond/stat" class="radio_search" appearance="full" cellspacing="5" cols="5" rows="1" overflow="visible" style="left:90px; top:33px; width:400px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>진료부도</label>
- <value>0</value>
- </item>
- <item>
- <label>간호접수</label>
- <value>1</value>
- </item>
- <item>
- <label>진료종료</label>
- <value>2</value>
- </item>
- <item>
- <label>진료부도+간호접수</label>
- <value>9</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:73px; width:75px; height:13px; ">진료내역</caption>
- <button id="btn_acting" class="btn5_letter2" navindex="6" style="left:1148px; top:68px; width:42px; height:19px; ">
- <caption>마감</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var chkcnt = 0; //20090825-kys
- if(cmb_orddrid.label == "") { //20091102-kys-추가
- messageBox("진료의를 선택하지 ","E007");
- return;
- }
-
- if(getNodesetCount("/root/main/dracptinfo/dracptlist") < 1 ){
- messageBox("외래 진찰료 마감 대상내역이","E014");
- return;
- }
-
- var sCurrentDt = getCurrentDate() + getCurrentTime().substr(0,4);
- for (var i =1 ; i < grd_dracptlist.rows ; i++){
- if(model.getValue("/root/main/dracptinfo/dracptlist["+i+"]/acptyn") == "true"){
- if(model.getValue("/root/main/dracptinfo/dracptlist["+i+"]/ndstat") == "YN"){
- messageBox("간호 접수건이 있으면 마감을","E001");
- return;
- }
-
- var sOrdDt = model.getValue("/root/main/dracptinfo/dracptlist["+i+"]/orddd") + model.getValue("/root/main/dracptinfo/dracptlist["+i+"]/ordtm") ;
- if(sOrdDt > sCurrentDt ) { // 현재 시간 이후 예약 마감할수 없도록 추가 2015.11.17 엄영만
- messageBox("진료예약 시간이 현재 시간 이후이면 마감을","E001");
- return;
- }
-
- chkcnt = chkcnt + 1;
- }
- }
-
- //체크여부 블럭추가-20090825-kys
- if(chkcnt == 0){
- messageBox("마감할 진료내역이 없습니다. 선택후 진찰료 마감을 해 주십시오.","I");
- return;
- }
- model.removeNodeset("/root/send/indate");
- model.makeValue("/root/send/indate",grd_dracptlist.getupdatedataAll("i"));
- if ( submit("TXMNO02601") == true ) {
- messageBox("마감이 정상적으로","I002");
- //fSearch();(20090805주석처리)
- //cmb_orddept.refresh();
- fOrddr(); // 마감후 진료의/구분 재조회
- model.setValue("/root/main/cond/orddrid", model.getValue("root/tmp/selecteddrid"));
- fSearch(); //20090805-kys(마감후 선택되어있던 진료의로 조회를 하기위해 순서변경)
- }
- ]]>
- </script>
- </button>
- <line id="line2" class="line_1" style="x1:0px; y1:90px; x2:1191px; y2:90px; "/>
- <datagrid id="grd_dracptlist" nodeset="/root/main/dracptinfo/dracptlist" caption="^진료일^진료시간^도착시간^진료종료^등록번호^환자명^S/A^센터^진료과^하위부서^진료의^진료의^초재진^예약구분^진료기록^진료여부^마감일시^마감자^출장의사점검여부" colsep="^" colwidth="25, 70, 55, 55, 55, 65, 70, 40, 110, 110, 0, 70, 0, 45, 70, 60, 70, 110, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="23" defaultrows="2" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="7" style="left:1px; top:95px; width:1190px; height:645px; ">
- <col ref="acptyn" type="checkbox"/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordtm" format="mm:hh" style="text-align:center; "/>
- <col ref="nursacpttm" format="mm:hh" style="text-align:center; "/>
- <col ref="dracpttm" format="mm:hh" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sexage" style="text-align:center; "/>
- <col disabled="true" ref="centcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="subdeptnm" style="text-align:center; "/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddr/orddrlist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </col>
- <col ref="fsexamflag" style="text-align:center; "/>
- <col ref="rsrvflag" style="text-align:center; "/>
- <col ref="reccheck" style="text-align:center; "/>
- <col disabled="true" ref="stat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>진료부도</label>
- <value>진료부도</value>
- </item>
- <item>
- <label>진료종료</label>
- <value>진료종료</value>
- </item>
- <item>
- <label>간호접수</label>
- <value>간호접수</value>
- </item>
- </choices>
- </col>
- <col ref="endtd" format="yyyy-mm-dd hh:mm" style="text-align:center; "/>
- <col ref="endnm" style="left:1165px; top:23px; width:100px; height:23px; text-align:center; "/>
- <col ref="holicheck" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="orddrid" visibility="hidden" style="text-align:center; "/>
- <col ref="nursacptyn" visibility="hidden" style="left:1061px; top:23px; width:100px; height:23px; text-align:center; "/>
- <col ref="dracptyn" visibility="hidden" style="text-align:center; "/>
- <col ref="prcpgenryn" visibility="hidden" style="text-align:center; "/>
- <col ref="ordtype" visibility="hidden" style="text-align:center; "/>
- <col ref="cretno" visibility="hidden" style="text-align:center; "/>
- <col ref="instcd" visibility="hidden" style="text-align:center; "/>
- <col ref="acptseqno" visibility="hidden" style="text-align:center; "/>
- <col ref="etcordflag" visibility="hidden" style="text-align:center; "/>
- <col ref="enddd" visibility="hidden" style="text-align:center; "/>
- <col ref="endtm" visibility="hidden" style="text-align:center; "/>
- <col ref="ndstat" visibility="hidden" style="text-align:center; "/>
- <col ref="acptno" visibility="hidden" style="text-align:center; "/>
- <col ref="dracptdd" visibility="hidden" style="text-align:center; "/>
- <col ref="nursacptdd" visibility="hidden" style="text-align:center; "/>
- <col ref="subdeptcd" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //var iCol2 = 0;
- //iCol2 = grd_dracptlist.col;
-
- if(grd_dracptlist.col == grd_dracptlist.colRef("stat")){
- var stat = model.getValue("/root/main/dracptinfo/dracptlist[" + grd_dracptlist.row + "]/stat");
-
- if(stat == "진료부도" ){
- model.setValue("/root/main/dracptinfo/dracptlist[" + grd_dracptlist.row + "]/ndstat","NN");
- }else if(stat == "진료종료" ){
- model.setValue("/root/main/dracptinfo/dracptlist[" + grd_dracptlist.row + "]/stat","간호접수");
- model.setValue("/root/main/dracptinfo/dracptlist[" + grd_dracptlist.row + "]/ndstat","YN");
- messageBox("진료종료를 선택할 수","I004");
- }else if(stat == "간호접수" ){
- model.setValue("/root/main/dracptinfo/dracptlist[" + grd_dracptlist.row + "]/ndstat","YN");
- }
- model.refresh();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var iRow = 0;
- var iCol = 0;
- var xDracptListPath = "/root/main/dracptinfo/dracptlist";
-
- iRow = grd_dracptlist.row;
- iCol = grd_dracptlist.col;
- //alert("iCol : " + iCol);
-
- //** 전체선택 체크박스 기능******************************************//
- if(iRow == "0"){
- if(grd_dracptlist.fixedcellischeck(0, grd_dracptlist.colRef("acptyn"))==true){ // 선택시
- for(i=1;i<=getNodesetCount(xDracptListPath);i++){
- model.makeValue(xDracptListPath + "[" + i + "]/acptyn", "true");
- }
- } else{
- for(i=1;i<=getNodesetCount(xDracptListPath);i++){
- model.makeValue(xDracptListPath + "[" + i + "]/acptyn", "false");
- }
- }
- }
- //***************************************************************************************//
- if(iCol == grd_dracptlist.colRef("acptyn") || iCol == grd_dracptlist.colRef("stat")) return; //8->12로변경-kys-20091030
- if(iRow < 1) return;
- if(model.getValue(xDracptListPath+"["+iRow+"]/acptyn") == "true"){
- model.setValue(xDracptListPath+"["+iRow+"]/acptyn","false");
- }else{
- model.setValue(xDracptListPath+"["+iRow+"]/acptyn", "true");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- iRow = grd_dracptlist.row;
- iCol = grd_dracptlist.col;
-
- if(iRow < 1) return;
-
- if(iCol == grd_dracptlist.colRef("reccheck")) { // 기록여부 더블클릭시만
- button5.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </datagrid>
- <button id="button5" class="btn2_letter6" style="left:963px; top:68px; width:86px; height:19px; ">
- <caption>통합기록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var iRow = grd_dracptlist.row;
-
- var pid = model.getValue("/root/main/dracptinfo/dracptlist[" +iRow+ "]/pid");
- if(pid == ""){
- messageBox("환자를 선택 하세요.", "C999");
- return;
- }
- setParameter("SMMRI00400_param_pid", pid);
- open("SMMRI00400");
- ]]>
- </script>
- </button>
- <button id="btn_ordend" class="btn2_letter5" navindex="6" style="left:1055px; top:68px; width:75px; height:19px; ">
- <caption>선처치 마감</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- setParameter("orddeptcd", model.getValue("/root/main/cond/orddeptcd"));
- setParameter("orddd", model.getValue("/root/main/cond/todd"));
-
- modal("SMMNO00900");
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">외래 진찰료 마감</caption>
- </xhtml:body>
- </xhtml:html>
|