1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609 |
- <?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>
- <masterinfo>
- <grid1>
- <drugno/>
- <hosinhosoutflagnm/>
- <pid/>
- <hngnm/>
- <prcpstatcd/>
- <orddd/>
- <rcptexecdt/>
- <drugchkstat/>
- <reteresnnm/>
- <drugchknm/>
- <drugchkdt/>
- <cretno/>
- <acptseqno/>
- <instcd/>
- <orddeptcd/>
- <drugdd/>
- <grdselrow/>
- <reteresn/>
- <hosinhosoutflag/>
- <rtnyn/>
- <prcpdd/>
- </grid1>
- </masterinfo>
- <detailinfo>
- <baseinfo>
- <pid/>
- <orddd/>
- <orddrnm/>
- <tel/>
- <hngnm/>
- <rsvdd/>
- <licenseno/>
- <diagnm/>
- <age/>
- <orddeptnm/>
- <hostinprcpresnm/>
- <instcd/>
- <insukind/>
- <detladdr/>
- <orddeptcd/>
- <rrgstno/>
- <sideinfo/>
- </baseinfo>
- <memoinfo>
- <pid/>
- <seqno/>
- <hosinhosoutflag/>
- <instcd/>
- <orddeptcd/>
- <orddeptnm/>
- <drugdd/>
- <drugno/>
- <writid2/>
- <writnm/>
- <writdt/>
- <memo/>
- <useyn/>
- <m/>
- <ioflag/>
- <writid/>
- </memoinfo>
- <grid2>
- <hosinhosoutflagnm/>
- <prcpcd/>
- <prcpnm/>
- <prcpvoldisp/>
- <prcpqtydisp/>
- <prcptimes/>
- <prcpdayno/>
- <ordrtnflag/>
- <prcpmixno/>
- <powdflag/>
- <mthdcd/>
- <payflagcd/>
- <prcpexecdeptnm/>
- <fstrgstdt/>
- <lastupdtdt/>
- <hosinprcpresncd/>
- <prcpdelivefact/>
- <execprcphistcdnm/>
- <orddd/>
- <prcpno/>
- <prcphistno/>
- <instcd/>
- <orddeptnm/>
- <prcpvol/>
- <prcpvolunitflag/>
- <prcpqty/>
- <prcpqtyunitflag/>
- <prcpdd/>
- <execprcphistcd/>
- <rtnprnt/>
- <drugstatnm/>
- <resncnts/>
- </grid2>
- <diaginfo>
- <icd10cd/>
- <diagengnm/>
- <diaghngnm/>
- </diaginfo>
- <etcinfo>
- <prcpno/>
- <sumkindflag/>
- <prcpnm/>
- </etcinfo>
- </detailinfo>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <srchinfo>
- <srchdd/>
- <srchorddeptcd/>
- <srchhosinhosoutflag/>
- <srchpid/>
- <srchhngnm/>
- <srchdrugno/>
- <srchdrugnocheck/>
- <srchpidonly/>
- <srchdrugchkstat/>
- <srchddflag>O</srchddflag>
- <srchtodd/>
- </srchinfo>
- <memosrchinfo>
- <srchpid/>
- <srchorddeptcd/>
- <srchseqno/>
- <srchinstcd/>
- <srchioflag/>
- <srchhosinhosoutflag/>
- </memosrchinfo>
- <detailsrchinfo>
- <srchpid/>
- <srchorddd/>
- <srchprcpdd/>
- <srchcretno/>
- <srchacptseqno/>
- <srchinstcd/>
- <srchorddeptcd/>
- <srchhosinhosoutflag/>
- <srchdrugdd/>
- <srchdrugno/>
- <rcptyn/>
- </detailsrchinfo>
- <usersrchinfo>
- <srchuserid/>
- </usersrchinfo>
- <req>
- <data1>
- <pid/>
- <orddd/>
- <ioflag/>
- <cretno/>
- <hosinhosoutflag/>
- <instcd/>
- <drugchkstat/>
- <reteresn/>
- <drugchkdt/>
- <drugchkid/>
- </data1>
- <data2>
- <m/>
- </data2>
- <data3>
- <pid/>
- <orddd/>
- <cretno/>
- <valiyn/>
- <formcd/>
- </data3>
- </req>
- <srchtempinfo/>
- </send>
- <init>
- <baseinfo>
- <prcpitem/>
- </baseinfo>
- <dateinfo>
- </dateinfo>
- <orddept>
- <dept/>
- </orddept>
- <autoflag/>
- <patinfo>
- <pid/>
- <hngnm/>
- <srchcond/>
- </patinfo>
- </init>
- <hidden>
- <momoitem>
- <count/>
- <seqno/>
- </momoitem>
- <chkitem>
- <count/>
- </chkitem>
- <patinfo>
- <pid/>
- <hngnm/>
- </patinfo>
- <userinfo>
- <userid/>
- <usernm/>
- </userinfo>
- <prcpsrch>
- <drugno/>
- <drugdd/>
- </prcpsrch>
- <popup>
- <prcp>
- <item>
- <name>기초임상정보 성인</name>
- <param>0900006607</param>
- </item>
- <item>
- <name>기초임상정보 소아</name>
- <param>0900006608</param>
- </item>
- </prcp>
- </popup>
- <forminfo>
- <formcd/>
- <formrecseq/>
- </forminfo>
- </hidden>
- <temp>
- <reteresn/>
- <prcpdelivefact/>
- </temp>
- </root>
- </instance>
- <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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <submission id="TRADT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srchtempinfo" replace="instance" resultref="/root/main/masterinfo/grid1"/>
- <submission id="TRADT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/detailsrchinfo" replace="instance" resultref="/root/main/detailinfo"/>
- <submission id="TXADT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data2" replace="instance" resultref="/root/hidden/momoitem"/>
- <submission id="TXADT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data1" replace="instance" resultref="/root/hidden/chkitem"/>
- <submission id="TRADE00100" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req/data3" replace="instance" resultref="/root/hidden/forminfo"/>
- <script type="javascript">
- <![CDATA[
-
- function fSubmitDrugChk(drugchkstat){
- var reteresn = "";
- var selrow = grd_chklist.row;
- // 환자선택 필수
- if (model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid") == "" ) {
- messageBox("환자를", "C002");
- return;
- }
-
- // 수납된 처방은 검수불가
- //if (model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/prcpstatcd") == "Y") {
- // messageBox("수납된 처방은 검수처리", "E001");
- // return;
- //}
-
- // 검수보류사유
- if (drugchkstat == "NC") {
- modal("SMADT00101",0,100,160,"SMADT00101","","");
- reteresn = model.getValue("/root/temp/reteresn");
-
- if (reteresn == "") {
- messageBox("보류사유을", "C002");
- return;
- }
- }
-
- model.setValue("/root/send/req/data1/pid" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid"));
- model.setValue("/root/send/req/data1/orddd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/orddd"));
- model.setValue("/root/send/req/data1/ioflag" , "O");
- model.setValue("/root/send/req/data1/cretno" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/cretno"));
- model.setValue("/root/send/req/data1/hosinhosoutflag" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/hosinhosoutflag"));
- model.setValue("/root/send/req/data1/instcd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/instcd"));
- model.setValue("/root/send/req/data1/drugchkstat" , drugchkstat);
- model.setValue("/root/send/req/data1/reteresn" , reteresn);
-
- // 수정
- submit("TXADT00101");
-
-
- // 처리결과
- fViewList();
-
- if ( grd_chklist.rows >= selrow+1){
-
- grd_chklist.row = selrow+1;
- fViewDetlList("");
- }
- }
-
- function fViewList() {
- var srchpid = "";
- var srchpidonly = "";
- var srchddflag = "";
-
- srchpid = model.getValue("/root/send/srchtempinfo/srchpid");
- srchpidonly = model.getValue("/root/send/srchtempinfo/srchpidonly");
- srchddflag = model.getValue("/root/send/srchtempinfo/srchddflag");
-
- if (srchpidonly == "Y") {
- if (model.getValue("/root/send/srchtempinfo/srchpid") == "" ) {
- messageBox("등록번호를","C001");
- return;
- }
- } else {
-
- if (srchddflag == "") {
- messageBox("검색일자구분을","C001");
- return;
- }
-
- if (srchddflag == "O" && model.getValue("/root/send/srchtempinfo/srchdd") == "" ) {
- messageBox("적용일자를","C001");
- return;
- }
-
- if (srchddflag == "P" && model.getValue("/root/send/srchtempinfo/srchdd") == "" ) {
- messageBox("수납일자를","C001");
- return;
- }
-
- model.setValue("/root/send/srchtempinfo/srchpidonly","N");
- }
-
- // 초기화
- model.removeNodeset("/root/main/masterinfo/grid1");
- model.removeNodeset("/root/main/detailinfo/baseinfo");
- model.removeNodeset("/root/main/detailinfo/memoinfo");
- model.removeNodeset("/root/main/detailinfo/grid2");
- var success = submit("TRADT00101");
- if (success) {
- // 로우색상표시
- grd_chklist.rebuildStyle();
- //etRowStyle("grd_chklist" , "1" , "원내" , "hosinhosoutflagnm", "equal" );
- var style = new Array("#fcd2c1" , "#ffe79d" , "#f3e1bf" , "#7BE6B7" , "#b9e5fb" , "#f7a08b" , "#fec34d" , "#dec6a4" , "#c8e67b" , "#43c8f5", "#99cf16", "#e5f3c2" );
-
- // 검수보류 색표시
- for (var i=1; i<grd_chklist.rows; i++) {
- if (model.getValue("/root/main/masterinfo/grid1["+i+"]/drugchkstat") == "검수보류"){
- // grd_chklist.cellStyle("color", i, 6) = "#ff0000";
- // grd_chklist.cellStyle("font-weight", i, 6) = "bold";
- //2008-10-13 검수보류앞에 적용일자 삽입("color", i, 7) / 2008-10-19 검수보류앞에 수납일시 삽입("color", i, 8)
- grd_chklist.cellStyle("color", i, 8) = "#ff0000";
- grd_chklist.cellStyle("font-weight", i, 8) = "bold";
- }
-
- if(model.getValue("/root/main/masterinfo/grid1["+i+"]/hosinhosoutflagnm") == "원내"){
- grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("drugno")) = style[1];
- }
-
- if(model.getValue("/root/main/masterinfo/grid1["+i+"]/rtnyn") == "Y") {
- grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("pid")) = "#FFEB46";
- grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("hngnm")) = "#FFEB46";
- grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("prcpstatcd")) = "#FFEB46";
- // grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("drugchkstat")) = "#FFEB46";
- //2008-10-13 검수보류앞에 적용일자 삽입
- grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("orddd")) = "#FFEB46";
- //2008-10-19 검수보류앞에 수납일시 삽입
- grd_chklist.cellStyle("background-color", i, grd_chklist.colRef("rcptexecdt")) = "#FFEB46";
- }
- }
-
- // 상세조회표시
- if (grd_chklist.rows> 0) {
- grd_chklist.row= 1;
- fViewDetlList("");
- }
- }
- }
-
- function fViewDetlList(flag) {
- var row = grd_chklist.row;
- if (row <= 0) return;
-
- // 수동입력일 경우는 타이머 멈춤
- if (flag == "manual") {
- model.setValue("/root/init/autoflag","");
- if (gTimer != null) {
- window.clearinterval(gTimer);
- gTimer = null;
- }
- }
-
- // 검색
- model.setValue("/root/send/detailsrchinfo/srchpid" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid"));
- model.setValue("/root/send/detailsrchinfo/srchorddd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/orddd"));
- model.setValue("/root/send/detailsrchinfo/srchprcpdd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/prcpdd"));
- model.setValue("/root/send/detailsrchinfo/srchcretno" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/cretno"));
- model.setValue("/root/send/detailsrchinfo/srchacptseqno" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/acptseqno"));
- model.setValue("/root/send/detailsrchinfo/srchinstcd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/instcd"));
- model.setValue("/root/send/detailsrchinfo/srchorddeptcd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/orddeptcd"));
- model.setValue("/root/send/detailsrchinfo/srchhosinhosoutflag" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/hosinhosoutflag"));
- model.setValue("/root/send/detailsrchinfo/srchdrugdd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugdd"));
- model.setValue("/root/send/detailsrchinfo/srchdrugno" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugno"));
- model.setValue("/root/send/detailsrchinfo/rcptyn" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/prcpstatcd"));
-
- // 초기화
- model.removeNodeset("/root/main/detailinfo/baseinfo");
- model.removeNodeset("/root/main/detailinfo/memoinfo");
- model.removeNodeset("/root/main/detailinfo/grid2");
-
- var success = submit("TRADT00102");
-
- grd_ordlist.rebuildStyle();
- var style = new Array("#fcd2c1" , "#ffe79d" , "#f3e1bf" , "#7BE6B7" , "#b9e5fb" , "#f7a08b" , "#fec34d" , "#dec6a4" , "#c8e67b" , "#43c8f5", "#99cf16", "#e5f3c2" );
-
- // 20100127_laboru
- if(model.getValue("/root/main/detailinfo/grid2/execprcphistcdnm") == "DC전"
- || model.getValue("/root/main/detailinfo/grid2/execprcphistcdnm") == "DC"
- || model.getValue("/root/main/detailinfo/grid2/execprcphistcdnm") == "반납") {
- if(model.getValue("/root/main/detailinfo/grid2/rtnprnt") == "Y") {
- model.setValue("/root/main/detailinfo/grid2/drugstatnm", "출력" );
- } else {
- //model.setValue("/root/main/detailinfo/grid2/drugstatnm", "미출력" );
- }
- }
-
- // 20100209_laboru
- var cnt = 1;
- while( 1 ) {
- if(model.getValue("/root/main/detailinfo/etcinfo["+cnt+"]/prcpno") != "") {
- cnt++;
- } else {
- break;
- }
- }
-
- // 용량단위,수량단위세팅 및 반환처방 색변경
- for (var i=1; i<grd_ordlist.rows; i++) {
- var prcpvol = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpvol");
- var prcpvol2 = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpvol2");
- var prcpvolunitflag = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpvolunitflag");
- var prcpqtyl = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpqty");
- var prcpqtyl2 = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpqty2");
- var prcpqtyunitflag = model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpqtyunitflag");
-
- model.setValue("/root/main/detailinfo/grid2["+i+"]/prcpvoldisp", prcpvol+prcpvolunitflag);
- model.setValue("/root/main/detailinfo/grid2["+i+"]/prcpqtydisp", prcpqtyl+prcpqtyunitflag);
- model.setValue("/root/main/detailinfo/grid2["+i+"]/prcpvol2disp", prcpvol2+prcpvolunitflag);
- model.setValue("/root/main/detailinfo/grid2["+i+"]/prcpqty2disp", prcpqtyl2+prcpqtyunitflag);
-
- var execprcphistcdnm = model.getValue("/root/main/detailinfo/grid2["+i+"]/execprcphistcdnm");
-
- if( execprcphistcdnm == "DC전") {
- grd_ordlist.cellStyle("background-color", i, grd_ordlist.colRef("prcpcd")) = style[2];
- }
- if( execprcphistcdnm == "DC") {
- grd_ordlist.cellStyle("background-color", i, grd_ordlist.colRef("prcpcd")) = style[6];
- }
- if( execprcphistcdnm == "반납") {
- grd_ordlist.cellStyle("background-color", i, grd_ordlist.colRef("prcpcd")) = style[6];
- }
- if(model.getValue("/root/main/detailinfo/grid2["+i+"]/execprcphistcd") == "Z") { //반환후 남은 처방
- grd_ordlist.cellStyle("background-color", i, grd_ordlist.colRef("prcpcd")) = style[4];
- }
-
- if(model.getValue("/root/main/detailinfo/grid2["+i+"]/injyn") == "Y"){
- grd_ordlist.cellStyle("background-color", i, grd_ordlist.colRef("prcpcd")) = "#BEBEBE";
- }
-
- // 20100209_laboru_집계상태
- for(var t = 1 ; t < cnt ; t++) {
- if(model.getValue("/root/main/detailinfo/grid2["+i+"]/prcpno") == model.getValue("/root/main/detailinfo/etcinfo["+t+"]/prcpno")) {
- model.setValue("/root/main/detailinfo/grid2["+i+"]/sumkindflag", model.getValue("/root/main/detailinfo/etcinfo["+t+"]/sumkindflag"));
- } else {
- if(model.getValue("/root/main/detailinfo/grid2["+i+"]/sumkindflag") == "") {
- model.setValue("/root/main/detailinfo/grid2["+i+"]/sumkindflag", "");
- }
- }
- }
- }
- /*
- grd_ordlist.rebuildStyle();
- setRowStyle("grd_ordlist" , "6" , "DC전" , "execprcphistcdnm", "equal" );
- setRowStyle("grd_ordlist" , "2" , "DC" , "execprcphistcdnm", "equal" );
- setRowStyle("grd_ordlist" , "2" , "반납" , "execprcphistcdnm", "equal" );
- */
- //setRowStyle("grd_ordlist" , "6" , "true" , "ordrtnflag", "equal" );
- //model.refresh();
-
- // 메모내용이 없으면 사번,이름,작성일시 기본세팅
- var pid = model.getValue("/root/main/detailinfo/memoinfo/pid");
- var seqno = model.getValue("/root/main/detailinfo/memoinfo/seqno");
- var hosinhosoutflag = model.getValue("/root/main/detailinfo/memoinfo/hosinhosoutflag");
- var instcd = model.getValue("/root/main/detailinfo/memoinfo/instcd");
-
- if (pid == null) pid = "";
- if (seqno == null) seqno = "";
- if (hosinhosoutflag == null) hosinhosoutflag = "";
- if (instcd == null) instcd = "";
-
- if (pid == "" && seqno == "" && hosinhosoutflag == "" && instcd == "") {
- fResetMemo();
- }
- }
-
- function fResetMemo() {
- model.setValue("/root/main/detailinfo/memoinfo/pid" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid"));
- model.setValue("/root/main/detailinfo/memoinfo/seqno" , "");
- model.setValue("/root/main/detailinfo/memoinfo/hosinhosoutflag" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/hosinhosoutflag"));
- model.setValue("/root/main/detailinfo/memoinfo/instcd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/instcd"));
- model.setValue("/root/main/detailinfo/memoinfo/orddeptcd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/orddeptcd"));
- model.setValue("/root/main/detailinfo/memoinfo/orddeptnm" , "");
- model.setValue("/root/main/detailinfo/memoinfo/drugdd" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugdd"));
- model.setValue("/root/main/detailinfo/memoinfo/drugno" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugno"));
- model.setValue("/root/main/detailinfo/memoinfo/useyn" , "Y");
- model.setValue("/root/main/detailinfo/memoinfo/memo" , "");
- model.setValue("/root/main/detailinfo/memoinfo/writid" , getUserId());
- model.setValue("/root/main/detailinfo/memoinfo/writid2" , "");
- model.setValue("/root/main/detailinfo/memoinfo/writnm" , getUserName());
- model.setValue("/root/main/detailinfo/memoinfo/writdt" , getCurrentDate() + getCurrentTime());
- model.refresh();
- }
-
- function trim(data) {
- return data.replace(/(^\s*)|(\s*$)/g, "");
- }
-
- function fSubmitMemo() {
- var varSaveMode = ""; // i-입력, m-수정(제외)
- var varSaveFlag = false;
- var varDrugNo = 0;
- var varWritId = "";
-
- // 환자선택 필수
- if (model.getValue("/root/main/detailinfo/baseinfo/pid") == "" ) {
- messageBox("환자를 선택하시고", "C001");
- return;
- }
-
- // 작성자
- varWritId = model.getValue("/root/main/detailinfo/memoinfo/writid2");
- if (varWritId == "" ) {
- messageBox("메모작성자 이름은", "I003");
- // setInputNodeCurText();
- // model.setFocus("ipt_writeid");
- return;
- }
-
- // 메모내용필수_20100203_laboru 없앰.
- // if (model.getValue("/root/main/detailinfo/memoinfo/memo") == "" ) {
- // messageBox("메모내용은", "I003");
- // return;
- // }
-
- /* 본인이 작성하지 않은 메모수정불가
- if (model.getValue("/root/main/detailinfo/memoinfo/writid") != getUserId()) {
- messageBox("자료를 수정할", "E002");
- return;
- }
- */
-
- model.setValue("/root/main/detailinfo/memoinfo/pid" , model.getValue("/root/main/detailinfo/baseinfo/pid"));
- // model.setValue("/root/main/detailinfo/memoinfo/indd" , model.getValue("/root/main/detailinfo/baseinfo/indd"));
- model.setValue("/root/main/detailinfo/memoinfo/useyn" , "Y");
- model.setValue("/root/main/detailinfo/memoinfo/seqno" , "");
- // model.setValue("/root/main/detailinfo/memoinfo/memo" , "");
- model.setValue("/root/main/detailinfo/memoinfo/orddeptcd" , model.getValue("/root/main/detailinfo/baseinfo/orddeptcd"));
- // model.setValue("/root/main/detailinfo/memoinfo/writid" , getUserId());
- // model.setValue("/root/main/detailinfo/memoinfo/writid2" , "");
- // model.setValue("/root/main/detailinfo/memoinfo/writnm" , getUserName());
- model.setValue("/root/main/detailinfo/memoinfo/writdt" , model.getValue("/root/init/dateinfo/currentdt"));
- // 입원/외래 구분 로직 필요
- model.setValue("/root/main/detailinfo/memoinfo/ioflag" , "O");
- model.setValue("/root/main/detailinfo/memoinfo/writid", varWritId);
-
- // 20100204_laboru_특조실로 떨어지는 처방의 경우 약사메모 저장하면 hosinhosoutflag [G] 로 저장되는 것을 외래 원내, 원외 처방 flag 로 저장.
- var chrow = grd_chklist.row;
- var flag = "";
- if(model.getValue("/root/main/masterinfo/grid1[" + chrow + "]/hosinhosoutflagnm") == "원내") {
- flag = "I";
- } else if(model.getValue("/root/main/masterinfo/grid1[" + chrow + "]/hosinhosoutflagnm") == "원외") {
- flag = "O";
- }
- if(flag != "") model.setValue("/root/main/detailinfo/memoinfo/hosinhosoutflag", flag);
-
- // 자료수집
- varDrugNo = model.getValue("/root/main/detailinfo/memoinfo/drugno");
- if (varDrugNo == null || varDrugNo == "") {
- model.setValue("/root/main/detailinfo/memoinfo/drugno", 0);
- }
- model.copyNode("/root/send/req/data2", "/root/main/detailinfo/memoinfo");
-
- // 저장은 무조건 추가로 처리, 수정기능은 제외
- varSaveMode = "i";
- /*
- if (model.getValue("/root/main/detailinfo/memoinfo/seqno") == "") {
- varSaveMode = "i";
- } else {
- varSaveMode = "u";
- }
- */
-
- model.setValue("/root/send/req/data2/m", varSaveMode);
- // submit("TXADT10102","false");
- submit("TXADT00102");
-
- varSaveFlag = true;
-
- /* 저장여부확인
- if (varSaveMode == "i" && Number(model.getValue("/root/hidden/memoitem/seqno")) > 0) {
- varSaveFlag = true;
- model.setValue("/root/main/detailinfo/memoinfo/seqno", model.getValue("/root/hidden/memoitem/seqno"));
- }
- /* 저장은 무조건 추가로 처리, 수정기능은 제외
- if (varSaveMode == "u" && Number(model.getValue("/root/hidden/memoitem/count")) > 0) {
- varSaveFlag = true;
- }
- */
-
- // 화면정리 및 메세지처리
- if (varSaveFlag == true) {
- model.refresh();
- messageBox("메모저장이", "I002");
- }
- }
-
- function fOpenPopupDeptRecform(formcd){
- // ========================================================================================================================
- // JCI - 외래 환자의 키, 체중은 부서별 기록관리의 기초임상정보 서식을 로드하여 보여준다.(2010/06/28 - 안혜림 약사 요청)
- // formcd - 0900006609 : 기초임상정보 산부인과
- // formcd - 0900006607 : 기초임상정보 성인
- // formcd - 0900006608 : 기초임상정보 소아
- // ========================================================================================================================
- var vformrecseq = "";
- var selrow = grd_chklist.row;
- var vpid = "";
- var vorddd = "";
- var vcretno = 0;
- var vvaliyn = "";
- var vformcd = "";
-
- var patParamStr = "";
- var vpatnm = "";
- var vsexage = "";
- var vorddeptnm = "";
- var vroomcd = "";
-
-
- // 환자선택 필수
- if (model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid") == "" ) {
- messageBox("환자를", "C002");
- return;
- }
-
- // 1.formrecseq 를 조회한다.
- vpid = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/pid");
- vorddd = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/orddd");
- vcretno = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/cretno");
- vvaliyn = "Y";
- vformcd = formcd;
-
- vpatnm = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/hngnm");
-
- model.setValue("/root/send/req/data3/pid", vpid);
- model.setValue("/root/send/req/data3/orddd", vorddd);
- model.setValue("/root/send/req/data3/cretno", vcretno);
- model.setValue("/root/send/req/data3/valiyn", vvaliyn);
- model.setValue("/root/send/req/data3/formcd", vformcd);
-
- submit("TRADE00100");
-
- //alert(model.getValue("/root/hidden/forminfo/formcd"));
- //alert(model.getValue("/root/hidden/forminfo/formrecseq"));
-
- // 조회된 formrecseq 가 있을 경우만 기초임상정보를 호출한다.
- if (model.getValue("/root/hidden/forminfo/formrecseq") == "") {
- // formrecseq 가 조회되지 않았으면 메세지 알림으로 처리한다.
- messageBox("입력된 기초임상정보가 ", "E014");
- } else {
- // 2.조회된 formrecseq 로 기초임상정보 서식을 호출한다.
- patParamStr = vpid + "▦" + vpatnm + "▦" + vsexage + "▦" + vorddeptnm + "▦" + vroomcd;
- setParameter("disppatinfo", patParamStr);
- setParameter("openmode", "recform");
- setParameter("formrecseq", model.getValue("/root/hidden/forminfo/formrecseq")); //서식기록테이블의 formrecseq(기록순번)
- setParameter("btndisableyn", "Y");
- modal("SSMMR01100", 1, 0, 0 ,"", "", "");
- }
-
-
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 버튼권한
- btn_sea.disabled = !checkAuth("R") ;
- btn_confsave.disabled = !checkAuth("X") ;
- btn_rsvsave.disabled = !checkAuth("X") ;
-
- // 로긴사번,이름,현재일자셋팅
- submit("TRADT00103");
-
- // 진료과세팅
- zbcfGetDeptCodeList(getUserInfo("dutplceinstcd"), "orduseyn", "D", "/root/init/orddept"); //부서코드 콤보조회
- if ( model.instances(0).selectSingleNode("/root/init/orddept/dept") != null) {
- astfAddCombo("/root/init/orddept","dept","deptcd,depthngnm",",전체");
- }
-
- model.setValue("/root/main/detailinfo/memoinfo/writid" , getUserId() );
- model.setValue("/root/main/detailinfo/memoinfo/writnm", getUserName() );
- model.setValue("/root/main/detailinfo/memoinfo/writdt" , model.getValue("/root/init/dateinfo/currentdt"));
- model.setValue("/root/send/srchinfo/srchdd" , getCurrentDate());
- model.setValue("/root/send/srchinfo/srchtodd" , getCurrentDate());
- //조제시참조사항
- zbcfGetCodeList( new Array("P0096"), new Array("/root/init/baseinfo/prcpitem") );
- model.refresh();
-
- //1일기준인지 1회기준인지 체크하여 컬럼을 hidden
- var colHidnValue = grdBaseColHidn("D");
- //1회 기준
- if( colHidnValue == "C") {
- grd_ordlist.colHidden(grd_ordlist.colRef("prcpvoldisp")) = true;
- grd_ordlist.colHidden(grd_ordlist.colRef("prcpqtydisp")) = true;
- } else {
- grd_ordlist.colHidden(grd_ordlist.colRef("prcpvol2disp")) = true;
- grd_ordlist.colHidden(grd_ordlist.colRef("prcpqty2disp")) = true;
- }
- ]]>
- </script>
- <submission id="TRADT00103" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/dateinfo"/>
- <submission id="TRZBC00101"/>
- <submission id="TRADT00104" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init/deptinfo"/>
- <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRADT00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/usersrchinfo" replace="instance" resultref="/root/hidden/userinfo"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1192;1,358;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <script type="javascript" ev:event="onmenu">
- <![CDATA[
- var popupParam = event.description;
- fOpenPopupDeptRecform(popupParam);
- ]]>
- </script>
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">외래처방전감사</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:2px; top:709px; width:283px; height:30px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
- <output id="opt_diagnm" ref="/root/main/detailinfo/baseinfo/diagnm" class="output_fix" appearance="output" style="left:815px; top:67px; width:379px; height:19px; "/>
- <caption id="caption51" style="left:125px; top:717px; width:35px; height:14px; vertical-align:middle; ">원내</caption>
- <group id="group2" style="left:0px; top:10px; width:355px; height:160px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:4px; width:355px; height:155px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button2" class="icon_search" style="left:176px; top:76px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/init/patinfo", "/root/send");
- model.setValue("/root/send/srchinfo/srchpid" ,model.getValue("/root/init/patinfo/pid"));
- model.setValue("/root/send/srchinfo/srchhngnm",model.getValue("/root/init/patinfo/hngnm"));
- ]]>
- </script>
- </button>
- <caption id="caption21" class="search_name" style="left:6px; top:52px; width:86px; height:17px; ">원 내 외 :</caption>
- <caption id="caption1" class="search_name" style="left:6px; top:30px; width:86px; height:17px; ">진 료 과 :</caption>
- <caption id="caption4" class="search_name" style="left:6px; top:74px; width:86px; height:17px; ">등록번호 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:287px; top:75px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script id="script1" type="javascript">
- <![CDATA[
- var gTimer;
- ]]>
- </script>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 검색조건 copy
- model.copyNode("/root/send/srchtempinfo","/root/send/srchinfo");
-
- // 조회
- fViewList();
-
- // 등록번호/등록번호만으로조회/이름/투약번호 reset
- //model.setValue("/root/send/srchinfo/srchddflag" ,"O");
- //model.setValue("/root/send/srchinfo/srchdd" ,getCurrentDate());
- //model.setValue("/root/send/srchinfo/srchorddeptcd" ,"");
- //model.setValue("/root/send/srchinfo/srchhosinhosoutflag" ,"");
- //model.setValue("/root/send/srchinfo/srchpid" ,"");
- //model.setValue("/root/send/srchinfo/srchhngnm" ,"");
- //model.setValue("/root/send/srchinfo/srchdrugno" ,"");
- //model.setValue("/root/send/srchinfo/srchpidonly" ,"");
- //model.setValue("/root/send/srchinfo/srchdrugchkstat" ,"");
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="cmb_srchorddeptcd" ref="/root/send/srchinfo/srchorddeptcd" class="combo_search" appearance="minimal" style="left:95px; top:30px; width:172px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 키엔터시 조회버튼 클릭
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_srchpid" ref="/root/send/srchinfo/srchpid" class="input_search" style="left:96px; top:74px; width:78px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 키엔터시 조회버튼 클릭
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="ipt_srchhngnm" ref="/root/send/srchinfo/srchhngnm" class="input_search" style="left:193px; top:74px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 키엔터시 조회버튼 클릭
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="rdo_srchioflag" ref="/root/send/srchinfo/srchhosinhosoutflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:95px; top:51px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- <item>
- <label>전체</label>
- <value/>
- </item>
- </choices>
- </select1>
- <caption id="caption27" class="search_name" style="left:6px; top:115px; width:86px; height:17px; ">투약번호 :</caption>
- <input id="input2" ref="/root/send/srchinfo/srchdrugno" class="input_search" maxlength="5" format="#####" style="left:95px; top:115px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 키엔터시 조회버튼 클릭
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select id="chk_autoflag" ref="/root/init/autoflag" overflow="visible" appearance="full" style="left:287px; top:55px; width:56px; height:15px; text-align:center; border-style:none; ">
- <choices>
- <item>
- <label>자동</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var autoflag = model.getValue("/root/init/autoflag");
- if (autoflag == "1" ) {
- if (gTimer == null) gTimer = window.setInterval("fViewList()",10000);
- } else {
- if (gTimer != null) {
- window.clearinterval(gTimer);
- gTimer = null;
- }
- }
- ]]>
- </script>
- </select>
- <line id="line13" class="line_4" style="x1:277px; y1:10px; x2:277px; y2:130px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select id="chk_srchpid" ref="/root/send/srchinfo/srchpidonly" overflow="visible" appearance="full" style="left:93px; top:96px; width:160px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>등록번호만으로 조회</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <input id="ipt_srchprcpdd" ref="/root/send/srchinfo/srchdd" class="input_s_essential" inputtype="date" style="left:175px; top:8px; width:92px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 키엔터시 조회버튼 클릭
- if(event.keyCode == "13") {
- setInputNodeCurText("-");
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption22" class="search_name" style="left:6px; top:136px; width:86px; height:17px; ">검수상태 :</caption>
- <select1 id="radio1" ref="/root/send/srchinfo/srchdrugchkstat" class="radio_search" appearance="full" cols="4" rows="1" overflow="visible" style="left:95px; top:136px; width:250px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>검수대상</label>
- <value>O</value>
- </item>
- <item>
- <label>검수완료</label>
- <value>C</value>
- </item>
- <item>
- <label>검수보류</label>
- <value>NC</value>
- </item>
- <item>
- <label>전체</label>
- <value/>
- </item>
- </choices>
- </select1>
- <select1 id="combo1" ref="/root/send/srchinfo/srchddflag" appearance="minimal" style="left:96px; top:8px; width:78px; height:19px; ">
- <choices>
- <item>
- <label>적용일자</label>
- <value>O</value>
- </item>
- <item>
- <label>수납일자</label>
- <value>P</value>
- </item>
- </choices>
- </select1>
- <caption id="caption5" class="search_name" style="left:6px; top:10px; width:86px; height:17px; ">검색일자 :</caption>
- </group>
- <caption id="caption10" class="cell_1" style="left:732px; top:42px; width:80px; height:23px; vertical-align:middle; ">면허번호</caption>
- <caption id="caption11" class="cell_1" style="left:546px; top:92px; width:80px; height:23px; ">보험유형</caption>
- <caption id="caption23" class="cell_1" style="left:360px; top:67px; width:80px; height:23px; ">성별/나이</caption>
- <caption id="caption12" class="cell_1" style="left:917px; top:42px; width:80px; height:23px; ">원내사유</caption>
- <line id="line15" class="line_3" style="x1:360px; y1:114px; x2:1194px; y2:114px; "/>
- <caption id="caption24" class="cell_1" style="left:360px; top:17px; width:80px; height:23px; ">등록번호</caption>
- <caption id="caption13" class="cell_1" style="left:732px; top:17px; width:80px; height:23px; ">담당의</caption>
- <caption id="caption25" class="cell_1" style="left:360px; top:42px; width:80px; height:23px; ">환자명</caption>
- <caption id="caption14" class="cell_1" style="left:547px; top:17px; width:80px; height:23px; ">진료과</caption>
- <caption id="caption47" class="cell_2" style="left:17px; top:714px; width:70px; height:20px; ">범 례</caption>
- <line id="line1" class="line_2" style="x1:360px; y1:65px; x2:1194px; y2:65px; "/>
- <caption id="caption26" class="tit_2" style="left:360px; top:123px; width:82px; height:13px; ">약사메모</caption>
- <line id="line2" class="line_1" style="x1:360px; y1:10px; x2:1194px; y2:10px; "/>
- <caption id="caption15" class="cell_1" style="left:546px; top:67px; width:80px; height:23px; ">예약일</caption>
- <caption id="caption16" class="cell_1" style="left:798px; top:115px; width:35px; height:23px; ">이름</caption>
- <caption id="caption7" class="cell_1" style="left:680px; top:115px; width:35px; height:23px; ">사번</caption>
- <button id="button10" class="btn2_letter2" style="left:447px; top:117px; width:42px; height:19px; ">
- <caption>이력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/main/detailinfo/baseinfo/pid") == "" ) {
- messageBox("환자를", "C002");
- return;
- }
-
- // 약사메모이력
- model.setValue("/root/send/memosrchinfo/srchpid" , model.getValue("/root/main/detailinfo/baseinfo/pid"));
- model.setValue("/root/send/memosrchinfo/srchinstcd" , model.getValue("/root/main/detailinfo/baseinfo/instcd"));
- model.setValue("/root/send/memosrchinfo/srchhosinhosoutflag" , model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/hosinhosoutflag"));
- model.setValue("/root/send/memosrchinfo/srchioflag" , "O");
- model.setValue("/root/send/memosrchinfo/srchorddeptcd" , model.getValue("/root/main/detailinfo/baseinfo/orddeptcd"));
-
- modal("SPADB60600",0,100,150,"SPADB60600","/root/send/memosrchinfo","/root/send/srchinfo");
- ]]>
- </script>
- </button>
- <caption id="caption49" class="color_2" style="left:107px; top:716px; width:15px; height:15px; "/>
- <caption id="caption17" class="cell_1" style="left:917px; top:17px; width:80px; height:23px; ">연락처</caption>
- <caption id="caption8" class="cell_1" style="left:732px; top:67px; width:80px; height:23px; ">상병</caption>
- <line id="line4" class="line_2" style="x1:360px; y1:40px; x2:1194px; y2:40px; "/>
- <caption id="caption18" class="cell_1" style="left:360px; top:138px; width:80px; height:30px; ">메모사항</caption>
- <caption id="caption9" class="cell_1" style="left:546px; top:42px; width:80px; height:23px; ">진료일자</caption>
- <button id="btn_save" class="btn5_letter2" style="left:491px; top:117px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSubmitMemo();
-
- /*
- var varSaveMode = ""; // i-입력,m-수정
- var varSaveFlag = false;
- var varDrugNo = 0;
- var varWritId = "";
-
- // 환자선택 필수
- if (model.getValue("/root/main/detailinfo/baseinfo/pid") == "" ) {
- messageBox("환자를 선택하시고", "C001");
- return;
- }
-
- // 작성자
- varWritId = model.getValue("/root/main/detailinfo/memoinfo/writid2");
- if (varWritId == "" ) {
- messageBox("메모작성자를", "I003");
- return;
- }
-
- // 메모내용필수
- if (model.getValue("/root/main/detailinfo/memoinfo/memo") == "" ) {
- messageBox("메모내용은", "I003");
- return;
- }
-
- // 자료수집
- varDrugNo = model.getValue("/root/main/detailinfo/memoinfo/drugno");
- if ( varDrugNo == null || varDrugNo == "") {
- model.setValue("/root/main/detailinfo/memoinfo/drugno",0);
- }
-
- // 수정모드
- if (model.getValue("/root/main/detailinfo/memoinfo/seqno") == "") {
- varSaveMode = "i";
- } else {
- varSaveMode = "u";
- }
-
- // 본인이 작성하지 않은 메모수정불가
- if (varSaveMode == "u" && model.getValue("/root/main/detailinfo/memoinfo/writid") != getUserId()) {
- messageBox("자료를 수정할", "E002");
- return;
- }
-
- model.setValue("/root/main/detailinfo/memoinfo/writid",varWritId);
- model.setValue("/root/main/detailinfo/memoinfo/ioflag","O");
- model.copyNode("/root/send/req/data2", "/root/main/detailinfo/memoinfo");
- model.setValue("/root/send/req/data2/m", varSaveMode);
- submit("TXADT00102");
-
- // 저장여부확인
- if (varSaveMode == "i" && Number(model.getValue("/root/hidden/memoitem/seqno")) > 0) {
- varSaveFlag = true;
- model.setValue("/root/main/detailinfo/memoinfo/seqno", model.getValue("/root/hidden/memoitem/seqno"));
- }
-
- if (varSaveMode == "u" && Number(model.getValue("/root/hidden/memoitem/count")) > 0) {
- varSaveFlag = true;
- }
-
- // 화면정리 및 메세지처리
- if (varSaveFlag == true) {
- messageBox("메모저장이", "I002");
- }
- */
- ]]>
- </script>
- </button>
- <output id="opt_pid" ref="/root/main/detailinfo/baseinfo/pid" class="output_fix" appearance="output" style="left:443px; top:18px; width:97px; height:19px; "/>
- <output id="output1" ref="/root/main/detailinfo/baseinfo/orddd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:630px; top:42px; width:97px; height:19px; "/>
- <output id="opt_orddrid" ref="/root/main/detailinfo/baseinfo/orddrnm" class="output_fix" appearance="output" style="left:815px; top:18px; width:97px; height:19px; "/>
- <output id="opt_tel" ref="/root/main/detailinfo/baseinfo/tel" class="output_fix" appearance="output" style="left:999px; top:18px; width:195px; height:19px; "/>
- <output id="opt_hngnm" ref="/root/main/detailinfo/baseinfo/hngnm" class="output_fix" appearance="output" style="left:443px; top:42px; width:97px; height:19px; "/>
- <output id="opt_rsvdd" ref="/root/main/detailinfo/baseinfo/rsvdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:630px; top:67px; width:97px; height:19px; "/>
- <output id="opt_licenseno" ref="/root/main/detailinfo/baseinfo/licenseno" class="output_fix" appearance="output" style="left:815px; top:42px; width:97px; height:19px; "/>
- <output id="opt_age" ref="/root/main/detailinfo/baseinfo/age" class="output_fix" appearance="output" style="left:443px; top:67px; width:97px; height:19px; "/>
- <output id="opt_orddeptcd" ref="/root/main/detailinfo/baseinfo/orddeptnm" class="output_fix" appearance="output" style="left:630px; top:18px; width:97px; height:19px; "/>
- <output id="opt_hostinprcpresncd" ref="/root/main/detailinfo/baseinfo/hostinprcpresnm" class="output_fix" appearance="output" style="left:999px; top:42px; width:195px; height:19px; "/>
- <input id="ipt_writenm" ref="/root/main/detailinfo/memoinfo/writnm" class="output_fix" style="left:835px; top:116px; width:77px; height:19px; "/>
- <textarea id="tar_innrmemo" ref="/root/main/detailinfo/memoinfo/memo" style="left:443px; top:138px; width:750px; height:30px; "/>
- <datagrid id="grd_ordlist" nodeset="/root/main/detailinfo/grid2" caption="원내외^처방코드^처방명^1일용량^1일수량^1회용량^1회수량^횟수^일수^반환^Mix^Powder^용법^급여^처방수행부서^처방일시^최종수정일시^수납일시^원내사유^처방전달사항^처방상태^조제상태^집계^caption1^DUR모듈명^DUR 처방사유" colsep="^" colwidth="48, 95, 269, 64, 65, 65, 65, 34, 34, 36, 36, 48, 280, 32, 100, 125, 122, 100, 315, 229, 79, 79, 60, 100, 100, 300" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:360px; top:175px; width:834px; height:450px; ">
- <col ref="hosinhosoutflagnm" style="text-align:center; "/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="prcpvoldisp" style="text-align:right; "/>
- <col ref="prcpqtydisp" style="text-align:right; "/>
- <col ref="prcpvol2disp" style="text-align:right; "/>
- <col ref="prcpqty2disp" style="text-align:right; "/>
- <col ref="prcptimes" style="text-align:right; "/>
- <col ref="prcpdayno" style="text-align:right; "/>
- <col ref="ordrtnflag" type="checkbox"/>
- <col ref="prcpmixno"/>
- <col ref="powdflag" type="checkbox"/>
- <col ref="mthdcd"/>
- <col ref="payflagcd"/>
- <col ref="prcpexecdeptnm"/>
- <col ref="fstrgstdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="rcptexecdt" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="hosinprcpresncd"/>
- <col ref="prcpdelivefact" type="inputbutton"/>
- <col ref="execprcphistcdnm"/>
- <col ref="drugstatnm"/>
- <col ref="sumkindflag"/>
- <col ref="injyn" visibility="hidden"/>
- <col ref="resnnm"/>
- <col ref="resncnts"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if ( grd_ordlist.col== grd_ordlist.colRef("prcpdelivefact") ){
- model.setValue("/root/temp/prcpdelivefact", model.getValue("/root/main/detailinfo/grid2["+grd_ordlist.row+"]/prcpdelivefact"));
- model.refresh();
- grp_prcpdelivefact.visible=true;
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption3" class="cell_1" style="left:917px; top:115px; width:80px; height:23px; vertical-align:middle; ">작성일시</caption>
- <input id="input1" ref="/root/main/detailinfo/memoinfo/writdt" class="output_fix" format="yyyy-mm-dd hh:ss:dd" style="left:999px; top:116px; width:195px; height:19px; "/>
- <output id="output2" ref="/root/main/detailinfo/baseinfo/insukind" class="output_fix" appearance="output" style="left:630px; top:92px; width:97px; height:19px; "/>
- <button id="button1" class="btn2_letter8" style="left:535px; top:117px; width:107px; height:19px; ">
- <caption>약사메모 상용구</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/memosrchinfo/srchioflag","O");
- modal("SPADB60602",0,100,160,"SPADB60602","/root/send/memosrchinfo","/root/send/srchinfo");
- ]]>
- </script>
- </button>
- <caption id="caption19" class="cell_1" style="left:360px; top:92px; width:80px; height:23px; ">주민등록번호</caption>
- <output id="output3" ref="/root/main/detailinfo/baseinfo/detladdr" class="output_fix" appearance="output" style="left:815px; top:92px; width:379px; height:19px; "/>
- <input id="ipt_writid" ref="/root/main/detailinfo/memoinfo/writid2" class="input_essential" autonext="false" maxlength="8" style="left:717px; top:116px; width:77px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
-
- if(event.keyCode == "13") {
- setInputNodeCurText();
- if(trim(model.getValue("/root/main/detailinfo/memoinfo/writid2")) != "") {
- var writid = trim(model.getValue("/root/main/detailinfo/memoinfo/writid2"));
- model.setValue("/root/send/usersrchinfo/srchuserid",writid);
- var success = submit("TRADT00105");
-
- if (success) {
- model.setValue("/root/main/detailinfo/memoinfo/writid2", trim(model.getValue("/root/main/detailinfo/memoinfo/writid2")));
- model.setValue("/root/main/detailinfo/memoinfo/writnm",model.getValue("/root/hidden/userinfo/item/usernm"));
- model.refresh();
-
- // 반환된 약사정보(이름) 체크
- if(trim(model.getValue("/root/main/detailinfo/memoinfo/writnm")) != "") {
- // 메모 내용 입력여부 체크
- // 20100205_laboru_공백 저장 가능하게 수정.
- // if (trim(model.getValue("/root/main/detailinfo/memoinfo/memo")) == "" ) {
- // messageBox("메모내용은", "I003");
- // model.setFocus("tar_memo");
- // return;
- // } else {
- fSubmitMemo();
- /* 메모저장여부 확인 부분
- if (messageBox("메모사항을", "Q002", "") == 7) {
- return;
- } else {
- fSubmitMemo();
- return;
- }
- */
- //}
- } else {
- messageBox("입력한 사번으로 이름 확인을", "E009");
- return;
- }
- }
- } else {
- messageBox("약사메모 입력을 위해 사번은", "I003");
- model.setValue("/root/main/detailinfo/memoinfo/writid2", trim(model.getValue("/root/main/detailinfo/memoinfo/writid2")));
- return;
- }
- }
-
- /* // 20100204_laboru_약사메모 사번 입력시 매 키 입력시 체크를 함으로써 느리게 되는 문제 수정
- if(event.keyCode == "13") {
- setInputNodeCurText();
- var writid = model.getValue("/root/main/detailinfo/memoinfo/writid2");
- model.setValue("/root/send/usersrchinfo/srchuserid",writid);
- var success = submit("TRADT00105");
-
- if (success) {
- model.setValue("/root/main/detailinfo/memoinfo/writnm",model.getValue("/root/hidden/userinfo/item/usernm"));
- model.refresh();
- }
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- //setInputNodeCurText();
- //model.setValue("/root/main/detailinfo/memoinfo/writnm", "");
- //model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption20" class="cell_1" style="left:732px; top:92px; width:80px; height:23px; ">주소</caption>
- <line id="line3" class="line_2" style="x1:360px; y1:90px; x2:1194px; y2:90px; "/>
- <output id="output4" ref="/root/main/detailinfo/baseinfo/rrgstno" class="output_fix" appearance="output" style="left:443px; top:92px; width:97px; height:19px; "/>
- <group id="grp_prcpdelivefact" visibility="hidden" style="left:635px; top:250px; width:315px; height:155px; border-color:#000080; border-width:2; border-style:solid; ">
- <button id="button20" class="btn4_letter2" visibility="visible" style="left:253px; top:128px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_prcpdelivefact.visible=false;
- ]]>
- </script>
- </button>
- <textarea id="tar_prcpdelivefact" ref="/root/temp/prcpdelivefact" class="input_default" style="left:3px; top:3px; width:305px; height:120px; "/>
- </group>
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:360px; top:709px; width:832px; height:30px; background-color:transparent; border-color:#7cbbdd; border-style:solid; "/>
- <caption id="caption2" style="left:553px; top:717px; width:35px; height:14px; vertical-align:middle; ">반환</caption>
- <caption id="caption28" class="cell_2" style="left:375px; top:714px; width:70px; height:20px; ">범 례</caption>
- <caption id="caption29" class="color_2" style="left:535px; top:716px; width:15px; height:15px; "/>
- <caption id="caption32" style="left:475px; top:717px; width:50px; height:14px; vertical-align:middle; ">반환의뢰</caption>
- <caption id="caption33" class="color_7" style="left:457px; top:716px; width:15px; height:15px; "/>
- <group id="group5" style="left:0px; top:10px; width:355px; height:160px; ">
- <shape id="roundrect4" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:4px; width:355px; height:155px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="button5" class="icon_search" style="left:176px; top:76px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/init/patinfo", "/root/send");
- model.setValue("/root/send/srchinfo/srchpid" ,model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/srchinfo/srchhngnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- ]]>
- </script>
- </button>
- <caption id="caption30" class="search_name" style="left:6px; top:52px; width:86px; height:17px; ">원 내 외 :</caption>
- <caption id="caption31" class="search_name" style="left:6px; top:30px; width:86px; height:17px; ">진 료 과 :</caption>
- <caption id="caption34" class="search_name" style="left:6px; top:74px; width:86px; height:17px; ">등록번호 :</caption>
- <button id="button6" class="btn1_letter2" style="left:287px; top:75px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script id="script2" type="javascript">
- <![CDATA[
- var gTimer;
- ]]>
- </script>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 검색조건 copy
- model.copyNode("/root/send/srchtempinfo","/root/send/srchinfo");
-
- // 조회
- fViewList();
-
- // 등록번호/등록번호만으로조회/이름/투약번호 reset
- //model.setValue("/root/send/srchinfo/srchddflag" ,"O");
- //model.setValue("/root/send/srchinfo/srchdd" ,getCurrentDate());
- //model.setValue("/root/send/srchinfo/srchorddeptcd" ,"");
- //model.setValue("/root/send/srchinfo/srchhosinhosoutflag" ,"");
- //model.setValue("/root/send/srchinfo/srchpid" ,"");
- //model.setValue("/root/send/srchinfo/srchhngnm" ,"");
- //model.setValue("/root/send/srchinfo/srchdrugno" ,"");
- //model.setValue("/root/send/srchinfo/srchpidonly" ,"");
- //model.setValue("/root/send/srchinfo/srchdrugchkstat" ,"");
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/send/srchinfo/srchorddeptcd" class="combo_search" appearance="minimal" style="left:95px; top:30px; width:172px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddept/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 키엔터시 조회버튼 클릭
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 검색조건 copy
- model.copyNode("/root/send/srchtempinfo","/root/send/srchinfo");
-
- // 조회
- fViewList();
- ]]>
- </script>
- </select1>
- <input id="input3" ref="/root/send/srchinfo/srchpid" class="input_search" autonext="false" maxlength="10" style="left:95px; top:74px; width:78px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- var srchpid = "";
- srchpid = input3.currentText;
- if(srchpid == "") {
- model.setValue("/root/send/srchinfo/srchpid", "");
- model.setValue("/root/send/srchinfo/srchhngnm", "");
- model.refresh();
- }
- // 키엔터시 조회버튼 클릭
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <input id="input4" ref="/root/send/srchinfo/srchhngnm" class="input_search" editable="false" style="left:193px; top:74px; width:75px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 키엔터시 조회버튼 클릭
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="radio2" ref="/root/send/srchinfo/srchhosinhosoutflag" class="radio_search" appearance="full" cols="3" rows="1" overflow="visible" style="left:95px; top:51px; width:135px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- <item>
- <label>전체</label>
- <value/>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 검색조건 copy
- model.copyNode("/root/send/srchtempinfo","/root/send/srchinfo");
-
- // 조회
- fViewList();
- ]]>
- </script>
- </select1>
- <caption id="caption35" class="search_name" style="left:6px; top:115px; width:86px; height:17px; ">투약번호 :</caption>
- <input id="input5" ref="/root/send/srchinfo/srchdrugno" class="input_search" autonext="false" maxlength="5" format="99999" style="left:95px; top:115px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 키엔터시 조회버튼 클릭
- if(event.keyCode == "13") {
- setInputNodeCurText();
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select id="checkbox1" ref="/root/init/autoflag" overflow="visible" appearance="full" style="left:287px; top:55px; width:56px; height:15px; text-align:center; border-style:none; ">
- <choices>
- <item>
- <label>자동</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var autoflag = model.getValue("/root/init/autoflag");
- if (autoflag == "1" ) {
- if (gTimer == null) gTimer = window.setInterval("fViewList()",10000);
- } else {
- if (gTimer != null) {
- window.clearinterval(gTimer);
- gTimer = null;
- }
- }
- ]]>
- </script>
- </select>
- <line id="line5" class="line_4" style="x1:277px; y1:29px; x2:277px; y2:115px; border-color:#ffe4bb; border-left-style:solid; "/>
- <select id="checkbox2" ref="/root/send/srchinfo/srchpidonly" overflow="visible" appearance="full" style="left:93px; top:96px; width:160px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>등록번호만으로 조회</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(model.getValue("/root/send/srchinfo/srchpidonly") == "Y") {
- combo3.disabled = true;
- input6.disabled = true;
- input7.disabled = true;
- } else {
- combo3.disabled = false;
- input6.disabled = false;
- input7.disabled = false;
- }
- ]]>
- </script>
- </select>
- <input id="input6" ref="/root/send/srchinfo/srchdd" class="input_s_essential" inputtype="date" style="left:168px; top:8px; width:92px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 키엔터시 조회버튼 클릭
- if(event.keyCode == "13") {
- setInputNodeCurText("-");
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <caption id="caption36" class="search_name" style="left:6px; top:136px; width:86px; height:17px; ">검수상태 :</caption>
- <select1 id="radio3" ref="/root/send/srchinfo/srchdrugchkstat" class="radio_search" appearance="full" cols="4" rows="1" overflow="visible" style="left:95px; top:136px; width:250px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>검수대상</label>
- <value>O</value>
- </item>
- <item>
- <label>검수완료</label>
- <value>C</value>
- </item>
- <item>
- <label>검수보류</label>
- <value>NC</value>
- </item>
- <item>
- <label>전체</label>
- <value/>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 검색조건 copy
- model.copyNode("/root/send/srchtempinfo","/root/send/srchinfo");
-
- // 조회
- fViewList();
- ]]>
- </script>
- </select1>
- <select1 id="combo3" ref="/root/send/srchinfo/srchddflag" appearance="minimal" style="left:95px; top:8px; width:73px; height:19px; ">
- <choices>
- <item>
- <label>적용일자</label>
- <value>O</value>
- </item>
- <item>
- <label>수납일자</label>
- <value>P</value>
- </item>
- </choices>
- </select1>
- <caption id="caption37" class="search_name" style="left:6px; top:10px; width:86px; height:17px; ">검색일자 :</caption>
- <input id="input7" ref="/root/send/srchinfo/srchtodd" class="input_s_essential" inputtype="date" style="left:260px; top:8px; width:92px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- // 키엔터시 조회버튼 클릭
- if(event.keyCode == "13") {
- setInputNodeCurText("-");
- btn_sea.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select id="checkbox3" ref="/root/send/srchinfo/srchdrugnocheck" overflow="visible" appearance="full" style="left:213px; top:117px; width:107px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>투약번호 99999</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //event.pTarget.value
- if (model.getValue(checkbox3.attribute("ref")) == "Y") {
- model.setValue(input5.attribute("ref"), "");
- input5.refresh();
- } else {
-
- }
- ]]>
- </script>
- </select>
- </group>
- <caption id="caption38" style="left:615px; top:716px; width:38px; height:14px; vertical-align:middle; ">주사</caption>
- <caption id="caption39" style="left:595px; top:716px; width:15px; height:15px; background-color:#BEBEBE; "/>
- <button id="btn_large" class="btn2_letter4" style="left:288px; top:715px; width:64px; height:19px; ">
- <caption>확대보기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_chklist.attribute("width") == 355){
- grd_chklist.attribute("width") =510;
- btn_large.attribute("text")="축소보기"
- } else {
- grd_chklist.attribute("width")=355;
- btn_large.attribute("text")="확대보기"
-
- }
- ]]>
- </script>
- </button>
- <textarea id="textarea1" ref="/root/main/detailinfo/baseinfo/sideinfo" class="output_fix" style="left:930px; top:627px; width:262px; height:80px; "/>
- <caption id="caption40" class="cell_1" style="left:359px; top:628px; width:57px; height:80px; ">상 병 및 참조사항</caption>
- <datagrid id="datagrid1" nodeset="/root/main/detailinfo/diaginfo" class="datagrid0" caption="caption1^caption2^caption3" colsep="^" colwidth="63, 229, 175" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:418px; top:628px; width:510px; height:80px; ">
- <col ref="icd10cd"/>
- <col ref="diagengnm"/>
- <col ref="diaghngnm"/>
- </datagrid>
- <datagrid id="grd_chklist" nodeset="/root/main/masterinfo/grid1" caption="투약번호^원내외^등록번호^환자명^수납^적용일자^수납일시^검수상태^보류사유^검수자^검수일시^caption2^caption3^caption4^caption5^caption6^caption7^caption8^caption1^caption10^caption11^caption9" colsep="^" colwidth="55, 42, 70, 60, 31, 76, 127, 70, 100, 58, 130, 28, 30, 33, 20, 35, 26, 17, 34, -27, 23" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" selectionmode="free" style="left:0px; top:175px; width:355px; height:530px; text-align:center; ">
- <col ref="drugno"/>
- <col ref="hosinhosoutflagnm"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="prcpstatcd"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="rcptexecdt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="drugchkstat"/>
- <col ref="reteresnnm" style="text-align:left; "/>
- <col ref="drugchknm"/>
- <col ref="drugchkdt" format="yyyy-mm-dd hh:mm:ss"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="acptseqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="drugdd" visibility="hidden"/>
- <col ref="grdselrow" visibility="hidden"/>
- <col ref="reteresn" visibility="hidden"/>
- <col ref="hosinhosoutflag" visibility="hidden"/>
- <col ref="rtnyn" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( ! isDataCell() ) return;
- fViewDetlList("manual");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_chklist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_chklist", true, "/root/hidden/popup/prcp/item", "name", "param");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="btn_confsave" class="btn4_letter4" style="left:1029px; top:5px; width:80px; height:22px; ">
- <caption>검수확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSubmitDrugChk("C");
- ]]>
- </script>
- </button>
- <button id="btn_rsvsave" class="btn4_letter4" style="left:1114px; top:5px; width:80px; height:22px; ">
- <caption>검수보류</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSubmitDrugChk("NC");
- ]]>
- </script>
- </button>
- <button id="button13" class="btn6_letter5" style="left:260px; top:5px; width:92px; height:22px; ">
- <caption>처방전출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var drugno = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugno");
- var drugdd = model.getValue("/root/main/masterinfo/grid1["+grd_chklist.row+"]/drugdd");
-
- model.setValue("/root/hidden/prcpsrch/drugno", drugno);
- model.setValue("/root/hidden/prcpsrch/drugdd", drugdd);
- open("SMADT01100",0,0,10,"SMADT01100","/root/hidden/prcpsrch","/root/hidden/popupinfo");
-
- ]]>
- </script>
- </button>
- <button id="button23" class="btn3_letter4" style="left:5px; top:5px; width:80px; height:22px; ">
- <caption>약력조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADB10100",0,0,0,"SMADB10100","/root/send/detailsrchinfo/srchpid","/root/temp/patinfo/pid");
- ]]>
- </script>
- </button>
- <button id="button3" class="btn3_letter4" style="left:175px; top:5px; width:80px; height:22px; ">
- <caption>처방확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADT40100",0,0,0,"SMADT40100","","");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn3_letter4" style="left:90px; top:5px; width:80px; height:22px; ">
- <caption>편람조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMADB01900",0,0,0,"SMADB01900","/root/main/detailinfo/grid2["+grd_ordlist.row+"]/prcpcd","/root/hidden/receivedata/srchdrugcd");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|