1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>평가관련등록관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list1>
- <listautd/>
- </list1>
- <list2>
- <listmech/>
- <listdiag/>
- </list2>
- </main>
- <send>
- <testgrup/>
- <testgrupnm/>
- <orddeptcd/>
- <edicd/>
- <diagcd/>
- <minage/>
- <maxage/>
- <sex>A</sex>
- <useyn/>
- <inpath/>
- <updatedata>
- <gruplist/>
- <mechlist/>
- <diaglist/>
- <seldeptlist/>
- </updatedata>
- <item2>
- <grdsrchnm>
- <iptsearch/>
- <searchkind/>
- </grdsrchnm>
- </item2>
- <item3>
- <srchdiag>
- <basedd/>
- <diagcd/>
- <diagnm/>
- <selectedrdodiagkind/>
- </srchdiag>
- </item3>
- </send>
- <send2>
- <testgrup/>
- <orddeptcd/>
- </send2>
- <hidden>
- <sppiz00400>
- <rslt>
- <diagcd/>
- <diaghngnm/>
- <diagengnm/>
- </rslt>
- </sppiz00400>
- <mode/>
- <smpic00200>
- <cond>
- <calcnm/>
- </cond>
- </smpic00200>
- <seldeptlist>
- <selyn/>
- <deptcd/>
- <deptnm/>
- <oldselyn/>
- </seldeptlist>
- <seldeptbase>
- <testgrup/>
- <testgrupnm/>
- <orddeptcd/>
- </seldeptbase>
- </hidden>
- <init>
- <orddeptcd>
- <orddeptcdlist>
- <nm>전체</nm>
- <cd>-</cd>
- </orddeptcdlist>
- </orddeptcd>
- <P0002list>
- <P0002>
- <cdnm/>
- <cdid/>
- </P0002>
- </P0002list>
- <P0391list>
- <P0391>
- <cdnm/>
- <cdid/>
- </P0391>
- </P0391list>
- </init>
- <temp>
- <calcdiagnm>
- <hngnm/>
- </calcdiagnm>
- <picmmech>
- <picmmech_edicd/>
- <picmmech_hngnm/>
- </picmmech>
- </temp>
- <maxgrup>
- <maxno>
- <maxtestgrup/>
- </maxno>
- </maxgrup>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TRPIB02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list1"/>
- <submission id="TRPIB02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send2" resultref="/root/main/list2"/>
- <submission id="TXPIB02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/result"/>
- <submission id="TRPIB00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item2/grdsrchnm" resultref="/root/temp"/>
- <submission id="TRPIB02603" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/maxgrup"/>
- <submission id="TXPIB02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" replace="instance" resultref="/root/result"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0002", "P0391"), new Array("/root/init/P0002list", "/root/init/P0391list"), false);
-
- fInitialize();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialize() {
- // grid를 인스턴스에 mapping후 인스턴스에 해당하는 빈줄 1줄이 생기므로 grid 초기화
- model.removeNodeset("/root/main/list1/listautd");
- model.removeNodeset("/root/main/list2/listmech");
- model.removeNodeset("/root/main/list2/listdiag");
-
- // (PAM.js) submission id="TRPAM00101" 를 사용하여 Combo item을 가져온다.
- pamGetDeptCDDrIDList();
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/cd","-");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/nm","전체");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/deptengabbgr","-");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/reqdeptno","-");
- copyNodeType("/root/init/orddeptcd","/root/hidden/orddeptcd","before");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/cd","");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/nm","");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/deptengabbgr","-");
- model.makeValue("/root/hidden/orddeptcd/orddeptcdlist/reqdeptno","-");
- copyNodeType("/root/init/orddeptcd","/root/hidden/orddeptcd","before");
-
- cmb_orddeptcd.refresh();
- // 김용민 지저분해서 삭제
- model.removeNodeset("/root/init/orddrid");
- model.removeNodeset("/root/init/centcd");
- model.removeNodeset("/root/init/subdeptcd");
- // 김용민 추가 - 과별 선택기능을 위한 진료과 리스트 작업
- model.removeNodeset("/root/hidden/seldeptlist");
- for( i = 1; i <= model.getXPathValue( "count(/root/init/orddeptcd/orddeptcdlist)" ) ; i++ ) {
- model.makeNode("root/hidden/seldeptlist[" + i + "]/selyn");
- model.makeNode("root/hidden/seldeptlist[" + i + "]/deptcd");
- model.makeNode("root/hidden/seldeptlist[" + i + "]/deptnm");
- model.makeNode("root/hidden/seldeptlist[" + i + "]/oldselyn");
-
- model.setValue("/root/hidden/seldeptlist[" + i + "]/deptcd", model.getValue("/root/init/orddeptcd/orddeptcdlist[" + i + "]/cd") );
- model.setValue("/root/hidden/seldeptlist[" + i + "]/deptnm", model.getValue("/root/init/orddeptcd/orddeptcdlist[" + i + "]/nm") );
- }
- }
-
- // 처방이나 상병코드로 명칭을 검색 결과가 단일일때 명칭을 표기 아닐경우는 상병조회,수가조회 팝업과 연동
- function fSearchNm(mode) {
- var srchkind = model.getValue("/root/send/searchkind");
- var hngnm = model.getValue("/root/temp/calcdiagnm/hngnm");
-
- var calc_col = grd_tstdiagrgst.colRef("calcscorcd");
- var frd_col = grd_tstdiagrgst.colRef("diagcd");
-
- model.resetInstanceNode("/root/main/temp");
- model.resetInstanceNode("/root/hidden/sppiz00400");
-
- model.setValue("/root/hidden/mode",mode);
-
- // srchkind - 1 : 수가 , 2 : 상병 , 3 : 처방
- // mode - 1 : 검색조건 , 2 : 그리드
- if ( (srchkind == 1 && mode == 1) || (grd_tstdiagrgst.col == calc_col && mode == 2) ) { // 수가검색
- if (grd_tstdiagrgst.col == calc_col && mode == 2) {
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/calcscornm",model.getValue("/root/temp/calcdiagnm/hngnm"));
- }
- if (hngnm == "") { // 검색된 건수가 2건이상이면 팝업을 통해 조회한다.
- var trgtManWindow = getChildWindow("SMPIC00200"); // 수가 조회
- if (trgtManWindow == null) {
- if (mode == 1) { // 조회창에서 검색
- modal("SMPIC00200" ,"", "10", "10", "SMPIC00200", "/root/send/iptsearch", "/root/temp", "", "");
- model.setValue("/root/send/iptsearch",model.getValue("/root/temp/picmmech/picmmech_calcscorcd"));
- model.setValue("/root/send/srchnm",model.getValue("/root/temp/picmmech/picmmech_hngnm"));
- }
- else if (mode == 2 && grd_tstdiagrgst.col == calc_col) { // 그리드에서 검색
- modal("SMPIC00200" ,"", "10", "10", "SMPIC00200", "/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/calcscorcd", "/root/temp", "", "");
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/calcscorcd",model.getValue("/root/temp/picmmech/picmmech_calcscorcd"));
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/calcscornm",model.getValue("/root/temp/picmmech/picmmech_hngnm"));
- var srchnm = model.getValue("/root/temp/picmmech/picmmech_hngnm");
- if (srchnm == "") {
- //model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+" ]/calcscorcd","");
- //model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+" ]/calcscornm","");
- }
- }
- } else {
- trgtManWindow.javascript.fSearchDiag();
- activateChild("SMPIC00200");
- }
- model.refresh();
- }
- } else if ( (srchkind == 2 && mode == 1) || (grd_tstdiagrgst.col == frd_col && mode == 2)) { // 상병조회
-
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/diagnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
-
- if (hngnm == "") { // 검색된 건수가 2건이상이면 팝업을 통해 조회한다.
- var trgtManWindow = getChildWindow("SPPIZ00400"); // 상병 조회
- if (trgtManWindow == null) {
- model.setValue("/root/send/item1/srchdiag/basedd", model.getValue("/root/send/badd"));
- if (mode == 1) { // 조회창에서 검색
- model.setValue("/root/send/item1/srchdiag/diagcd", model.getValue("/root/send/iptsearch"));
- } else if (mode == 2) { // 그리드에서 검색
- model.setValue("/root/send/item1/srchdiag/diagcd", model.getValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/diagcd"));
- }
- model.setValue("/root/send/item1/srchdiag/selectedrdodiagkind","1"); // icd10으로
- modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/send/item1/srchdiag", "/root/init", "", "");
-
- var srchnm = model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm");
- if (srchnm == "") {
-
- //model.setValue("/root/main/list1/listautd[" +grd_tstdiagrgst.row+ " ]/diagcd","");
- //model.setValue("/root/main/list1/listautd[" +grd_tstdiagrgst.row+ " ]/diagnm","");
-
- }
- } else {
- trgtManWindow.javascript.fSearchDiag();
- activateChild("SPPIZ00400");
- }
- model.refresh();
- }
-
- }
- }
-
- // 상병조회 팝업에서 상병을 더블클릭 했을경우 상병 그리드에 반영, 상병명은 상병조회팝업의 상병명을 사용하지 않고 ICD10 사용
- function fSetDiagCdNm() {
-
- var mode = model.getValue("/root/hidden/mode");
-
- if (mode == 1) {
- model.setValue("/root/send/iptsearch",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/send/srchnm",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- } else if (mode == 2) {
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/diagcd", model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/diagnm", model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- }
-
- model.refresh();
- }
-
- // 조회시 데이터의 유효성체크
- function fCheckSrchData() {
- var srchkind = model.getValue("/root/send/searchkind");
- var iptsearch = model.getValue("/root/send/iptsearch");
-
- if (srchkind == "-") {
- return true;
- }
- if (iptsearch == "") {
- if (srchkind == "1") {
- messageBox("처방코드는","I003"); // 처방코드는 필수입력입니다.
- return false;
- }
- if (srchkind == "2") {
- messageBox("상병코드는","I003"); // 상병코드는 필수입력입니다.
- return false;
- }
- return true;
- }
- return true;
- }
-
- // 저장시 데이터의 유효성체크
- function fCheckSaveData() {
- var gupdtdata = getGridUpdateData(grd_tstdiagrgst);
- var mupdtdata = getGridUpdateData(grd_tstmech);
- var cupdtdata = getGridUpdateData(grd_tstdiag);
- if (gupdtdata == "" && mupdtdata =="" && cupdtdata == "") {
- messageBox("변경된 데이터가","I004");
- return false;
- }
-
- for(var i = 1 ; i < grd_tstdiagrgst.rows ; i++) {
- var status = grd_tstdiagrgst.rowStatus(i);
- if(status == "1" || status == "2" || status =="3" ) {
- if ( model.getValue("/root/main/list1/listautd[" + i + "]/testgrupnm") == "" ) {
- messageBox("그룹명칭은","I003");
- return false;
- }
- }
- }
-
- for(var i = 1 ; i < grd_tstdiagrgst.rows ; i++) {
- var status = grd_tstdiagrgst.rowStatus(i);
- if(status == "1" || status == "2" || status =="3" ) {
- if ( model.getValue("/root/main/list1/listautd[" + i + "]/sex") == "" ) {
- messageBox("성별은","I003");
- return false;
- }
- }
- }
-
- for(var i = 1 ; i < grd_tstdiagrgst.rows ; i++) {
- var status = grd_tstdiagrgst.rowStatus(i);
- if(status == "1" || status == "2" || status =="3" ) {
- if ( model.getValue("/root/main/list1/listautd[" + i + "]/inpath") == "" ) {
- model.setValue("/root/main/list1/listautd[" + i + "]/inpath", "");
- }
- }
- }
-
- for(var i = 1 ; i < grd_tstmech.rows ; i++) {
- var status = grd_tstmech.rowStatus(i);
- if(status == "1" || status == "2" || status =="3" ) {
- if ( model.getValue("/root/main/list2/listmech[" + i + "]/edicd") == "" ) {
- messageBox("EDI코드는","I003");
- return false;
- }
- }
- }
- for(var i = 1 ; i < grd_tstdiag.rows ; i++) {
- var status = grd_tstdiag.rowStatus(i);
- if(status == "1" || status == "2" || status =="3" ) {
- if ( model.getValue("/root/main/list2/listdiag[" + i + "]/diagcd") == ""
- || model.getValue("/root/main/list2/listdiag[" + i + "]/diagcd") == "-"
- )
- {
- messageBox("시작상병코드는","I003");
- return false;
- }
- }
- }
-
- for(var i = 1 ; i < grd_tstdiag.rows ; i++) {
- var status = grd_tstdiag.rowStatus(i);
- if(status == "1" || status == "2" || status =="3" ) {
- if ( model.getValue("/root/main/list2/listdiag[" + i + "]/chkflag") == ""
- || model.getValue("/root/main/list2/listdiag[" + i + "]/chkflag") == "-"
- )
- {
- messageBox("적용여부는","I003");
- return false;
- }
- }
- }
-
-
- return true;
- }
-
- function fCallSubList() {
- var rtn = null;
-
- model.removeNodeset("/root/main/list2/listmech");
- model.removeNodeset("/root/main/list2/listdiag");
-
- /*
- if ( model.getValue("root/main/list1/listautd[ "+ grd_tstdiagrgst.row + "]/testgrup") == "9999" ) {
- grd_tstdiag.refresh();
- grd_tstdiag.colAttribute(6,"disabled") = "false";
- } else {
- grd_tstdiag.colAttribute(6,"disabled") = "true";
- }
- */
- var row = grd_tstdiagrgst.selectedRow(0);
-
- var testgrup = grd_tstdiagrgst.textmatrix(row, 1); // 그룹코드
- var orddeptcd = grd_tstdiagrgst.textmatrix(row, 3); // 적용과
-
- model.setValue( "root/send2/testgrup" , testgrup);
- model.setValue( "root/send2/orddeptcd", orddeptcd);
-
- if ( testgrup == "" || orddeptcd == "" ) {
- grd_tstmech.refresh();
- grd_tstdiag.refresh();
- return; // 조회할 코드 없으면 그냥 리턴
- }
- rtn = submit("TRPIB02602");
- }
-
- function fSrchSnglCalcscorNm() {
- var col = grd_tstmech.col;
- var row = grd_tstmech.row;
-
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list2/listmech["+row+"]/edicd"));
- model.setValue("/root/send/item2/grdsrchnm/searchkind","1");
-
- submit("TRPIB00202");
-
- var hngnm = model.getValue("/root/temp/calcdiagnm/hngnm");
- if (hngnm == "") {
- setParameter("openflag", 'edicd');
- modal("SMPIC00200" ,"", "10", "10", "SMPIC00200","/root/send/item2/grdsrchnm/iptsearch", "/root/temp", "", "");
- model.setValue("/root/main/list2/listmech["+row+"]/edicd",model.getValue("/root/temp/picmmech/picmmech_insuedicd"));
- model.setValue("/root/main/list2/listmech["+row+"]/hngnm",model.getValue("/root/temp/picmmech/picmmech_hngnm"));
-
- var srchnm = model.getValue("/root/temp/picmmech/picmmech_hngnm");
- if (srchnm == "") {
- model.setValue("/root/main/list2/listmech[" + row + " ]/edicd","");
- model.setValue("/root/main/list2/listmech[" + row + " ]/hngnm","");
- }
-
- } else {
- model.setValue("/root/main/list2/listmech["+row+"]/hngnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
- }
- }
-
- function fSrchDiagNm(fromto) {
- var col = grd_tstdiag.col;
- var row = grd_tstdiag.row;
- if ( fromto == "FROM" ) {
- // '-' 기호 null 로 처리
- if ( model.getValue("/root/main/list2/listdiag["+row+"]/diagcd") == '-' ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/diagcd","");
- }
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list2/listdiag["+row+"]/diagcd"));
-
- } else if ( fromto == "TO" ) {
- // '-' 기호 null 로 처리
- if ( model.getValue("/root/main/list2/listdiag["+row+"]/diagcdto") == '-' ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/diagcdto","");
- }
- model.setValue("/root/send/item2/grdsrchnm/iptsearch",model.getValue("/root/main/list2/listdiag["+row+"]/diagcdto"));
- }
- model.setValue("/root/send/item2/grdsrchnm/searchkind","2");
-
- submit("TRPIB00202");
-
- var hngnm = model.getValue("/root/temp/calcdiagnm/hngnm");
- if (hngnm == "") {
- var today = getCurrentDate(); // 현재 날짜를 얻어옴
- model.setValue("/root/send/item3/srchdiag/basedd", today);
- if ( fromto == "FROM" ) {
- model.setValue("/root/send/item3/srchdiag/diagcd",model.getValue("/root/main/list2/listdiag["+row+"]/diagcd"));
- } else if ( fromto == "TO" ) {
- model.setValue("/root/send/item3/srchdiag/diagcd",model.getValue("/root/main/list2/listdiag["+row+"]/diagcdto"));
- }
- model.setValue("/root/send/item3/srchdiag/selectedrdodiagkind","1"); // icd10으로
- modal("SPPIZ00400" ,"", "10", "10", "SPPIZ00400", "/root/send/item3/srchdiag", "/root/init", "", "");
-
- var diagcd = model.getValue("/root/hidden/sppiz00400/rslt/diagcd");
-
- if ( fromto == "FROM" ) {
- if (diagcd == "") {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagcd","-");
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagnm","-");
- } else {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagcd",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagnm",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- }
- } else if ( fromto == "TO" ) {
- if (diagcd == "") {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagcdto","-");
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagnmto","-");
- } else {
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagcdto",model.getValue("/root/hidden/sppiz00400/rslt/diagcd"));
- model.setValue("/root/main/list2/listdiag[" + row + " ]/diagnmto",model.getValue("/root/hidden/sppiz00400/rslt/diaghngnm"));
- }
- }
-
- } else {
- if ( fromto == "FROM" ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/diagnm",model.getValue("/root/temp/calcdiagnm/hngnm"));
- } else if ( fromto == "TO" ) {
- model.setValue("/root/main/list2/listdiag["+row+"]/diagnmto",model.getValue("/root/temp/calcdiagnm/hngnm"));
- }
- }
- }
-
- //진료과 선택창 띄위기전에 초기작업을 한다.
- function fSelectDeptInit() {
-
- model.setValue("/root/hidden/seldeptbase/testgrup" , model.getValue("/root/main/list1/listautd[" + grd_tstdiagrgst.row + "]/testgrup") );
- model.setValue("/root/hidden/seldeptbase/testgrupnm", model.getValue("/root/main/list1/listautd[" + grd_tstdiagrgst.row + "]/testgrupnm") );
- model.setValue("/root/hidden/seldeptbase/orddeptcd", model.getValue("/root/main/list1/listautd[" + grd_tstdiagrgst.row + "]/orddeptcd") );
- // 일단 기존꺼 지우고
- for( i = 1; i <= model.getXPathValue( "count(/root/init/orddeptcd/orddeptcdlist)" ) ; i++ ) {
- model.setValue("/root/hidden/seldeptlist[" + i + "]/selyn", "false" );
- model.setValue("/root/hidden/seldeptlist[" + i + "]/oldselyn", "false" );
- grd_seldeptlist.clearStatus();
- }
- for( i = grd_tstdiagrgst.fixedRows; i < grd_tstdiagrgst.rows ; i++ ) {
- if ( model.getValue("/root/hidden/seldeptbase/testgrup") == model.getValue("/root/main/list1/listautd[" + i + "]/testgrup") ) {
- var tmpDeptcd = model.getValue("/root/main/list1/listautd[" + i + "]/orddeptcd");
-
- for( j = grd_seldeptlist.fixedRows; j < grd_seldeptlist.rows ; j++ ) {
- if ( tmpDeptcd == grd_seldeptlist.valueMatrix(j,1) ) {
- model.setValue("/root/hidden/seldeptlist[" + j + "]/selyn","true");
- model.setValue("/root/hidden/seldeptlist[" + j + "]/oldselyn","true");
- }
- }
- }
- }
- model.refresh();
-
- }
- // 김용민 ... 진료과 선택창 완료시 체크
- function fSelectDeptChk() {
- var changecnt = 0;
- var alldept = 0;
- var etcdept = 0;
-
- for( i = grd_seldeptlist.fixedRows; i < grd_seldeptlist.rows ; i++ ) {
- if ( model.getValue("/root/hidden/seldeptlist[" + i + "]/selyn") != model.getValue("/root/hidden/seldeptlist[" + i + "]/oldselyn") )
- {
- changecnt++;
- }
-
- if ( model.getValue("/root/hidden/seldeptlist[" + i + "]/selyn") == "true" ) {
- if ( model.getValue("/root/hidden/seldeptlist[" + i + "]/deptcd") == "-" ) {
- alldept++;
- } else {
- etcdept++;
- }
- }
- }
-
- if ( changecnt == 0 ) {
- messageBox("변경된 데이터가","I004");
- return false;
- }
- if ( alldept != 0 && etcdept != 0 ) {
- messageBox("전체과와 타과를 같이 선택할수","I004");
- return false;
- }
-
- if ( alldept == 0 && etcdept == 0 ) {
- messageBox("선택된 진료과가 하나도","I004");
- return false;
- }
-
- return true;
- }
- // 김용민 - 선택된 진료과를 입력한다.
- function fSelectDeptInput() {
-
- var jobrow = 0;
-
- model.removeNodeset("/root/temp/save/seldeptlist");
-
- for( i = grd_seldeptlist.fixedRows; i < grd_seldeptlist.rows ; i++ ) {
- if ( model.getValue("root/hidden/seldeptlist[" + i + "]/selyn") == "true"
- && model.getValue("root/hidden/seldeptlist[" + i + "]/oldselyn") == "false"
- )
- {
- // 신규입력
- jobrow++;
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/testgrup");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/basedept");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/orddeptcd");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/status");
-
- model.setValue("/root/temp/save/seldeptlist[" + jobrow+ "]/testgrup", model.getValue("/root/hidden/seldeptbase/testgrup") );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow + "]/basedept", model.getValue("/root/hidden/seldeptbase/orddeptcd") );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow + "]/orddeptcd", model.getValue("/root/hidden/seldeptlist[" + i + "]/deptcd") );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow+ "]/status", "i" );
-
- } else if ( model.getValue("root/hidden/seldeptlist[" + i + "]/selyn") == "false"
- && model.getValue("root/hidden/seldeptlist[" + i + "]/oldselyn") == "true"
- )
- {
- // 삭제
- jobrow++;
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/testgrup");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/basedept");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/orddeptcd");
- model.makeNode("/root/temp/save/seldeptlist[" + jobrow + "]/status");
-
- model.setValue("/root/temp/save/seldeptlist[" + jobrow+ "]/testgrup", model.getValue("/root/hidden/seldeptbase/testgrup") );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow + "]/basedept", "" );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow + "]/orddeptcd", model.getValue("/root/hidden/seldeptlist[" + i + "]/deptcd") );
- model.setValue("/root/temp/save/seldeptlist[" + jobrow+ "]/status", "d" );
- }
-
- }
-
- model.setValue("/root/send/updatedata/seldeptlist", getNodeListCSV(instance1.selectNodes("/root/temp/save/seldeptlist")) );
- }
- // 김용민 - 화면 display 버튼 사용여부 제어
- function fSetDisplayDisable(iFlag) {
- if ( iFlag == true ) {
- grd_tstdiagrgst.disabled = true;
- grd_tstmech.disabled = true;
- grd_tstdiag.disabled = true;
-
- btn_search.disabled = true;
- btn_save.disabled = true;
- btn_init.disabled = true;
-
- btn_sel_dept.disabled = true;
- btn_addrow.disabled = true;
- btn_delrow.disabled = true;
- btn_copy.disabled = true;
- btn_autdiag_insrow.disabled = true;
- btn_autdiag_delrow.disabled = true;
- btn_autmech_insrow.disabled = true;
- btn_autmech_delrow.disabled = true;
-
- } else {
-
- grd_tstdiagrgst.disabled = false;
- grd_tstmech.disabled = false;
- grd_tstdiag.disabled = false;
- btn_search.disabled = false;
- btn_save.disabled = false;
- btn_init.disabled = false;
-
- btn_sel_dept.disabled = false;
- btn_addrow.disabled = false;
- btn_delrow.disabled = false;
- btn_copy.disabled = false;
- btn_autdiag_insrow.disabled = false;
- btn_autdiag_delrow.disabled = false;
- btn_autmech_insrow.disabled = false;
- btn_autmech_delrow.disabled = false;
-
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" guideline="1,1194;" style="vertical-align:bottom; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:159px; height:13px; ">평가관련등록관리</caption>
- </group>
- <group id="group3" scroll="test" style="left:0px; top:13px; width:1195px; height:771px; ">
- <group id="group2" style="left:0px; top:10px; width:1194px; height:58px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:55px; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">그룹코드 :</caption>
- <button id="btn_search" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.removenode("/root/main/list1");
- model.removeNodeset("/root/main/list2/listmech"); // 조회시 처방 그리드도 지운다
- model.removeNodeset("/root/main/list2/listdiag"); // 조회시 상병 그리드도 지운다.
- model.makeNode("/root/main/list1");
- submit("TRPIB02601");
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1106px; y1:7px; x2:1106px; y2:29px; "/>
- <caption id="caption11" class="search_name" style="left:180px; top:9px; width:98px; height:17px; ">그룹명칭 :</caption>
- <input id="ipt_srchspclcd" ref="/root/send/testgrupnm" class="input_search" style="left:270px; top:8px; width:225px; height:19px; "/>
- <input id="input1" ref="/root/send/testgrup" class="input_search" imemode="disabled" _chartype="upper" style="left:110px; top:8px; width:65px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" navindex="4" appearance="minimal" style="left:580px; top:8px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:502px; top:9px; width:86px; height:17px; ">진료과 :</caption>
- <caption id="caption3" class="search_name" style="left:730px; top:9px; width:86px; height:17px; ">EDI코드 :</caption>
- <input id="ipt_edicd" ref="/root/send/edicd" class="input_search" imemode="disabled" _chartype="upper" style="left:825px; top:8px; width:100px; height:19px; "/>
- <caption id="caption8" class="search_name" style="left:930px; top:9px; width:86px; height:17px; ">상병코드 :</caption>
- <input id="ipt_diagcd" ref="/root/send/diagcd" class="input_search" imemode="disabled" _chartype="upper" style="left:1025px; top:8px; width:75px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:180px; top:33px; width:86px; height:17px; ">최소나이 :</caption>
- <input id="input4" ref="/root/send/minage" class="input_search" imemode="disabled" _chartype="upper" style="left:270px; top:32px; width:65px; height:19px; "/>
- <input id="input5" ref="/root/send/maxage" class="input_search" imemode="disabled" _chartype="upper" style="left:430px; top:32px; width:65px; height:19px; "/>
- <caption id="caption10" class="search_name" style="left:340px; top:33px; width:86px; height:17px; ">최대나이 :</caption>
- <caption id="caption12" class="search_name" style="left:502px; top:33px; width:86px; height:17px; ">성 별 :</caption>
- <caption id="caption13" class="search_name" style="left:930px; top:33px; width:86px; height:17px; ">사용여부 :</caption>
- <select1 id="combo1" ref="/root/send/sex" navindex="4" appearance="minimal" style="left:580px; top:32px; width:75px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0391list/P0391">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/send/useyn" navindex="4" appearance="minimal" style="left:1025px; top:32px; width:75px; height:19px; ">
- <choices>
- <item>
- <label/>
- <value/>
- </item>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </select1>
- <select1 id="ipt_inpath" ref="/root/send/inpath" appearance="minimal" style="left:825px; top:32px; width:75px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- </choices>
- </select1>
- <caption id="caption17" class="search_name" style="left:730px; top:33px; width:99px; height:17px; ">입원경로 :</caption>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:75px; width:175px; height:14px; ">평가관련 마스터 목록</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:90px; x2:1194px; y2:90px; "/>
- <button id="btn_delrow" class="btn2_letter3" style="left:1073px; top:70px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- /*
- if ( model.getValue("root/main/list1/listautd[ "+ grd_tstdiagrgst.row + "]/testgrup") == "9999" ) {
- messageBox("9999 (제외상병) 은 행삭제","E001");
- return;
- }
- */
- var row = grd_tstdiagrgst.row;
- var rowstatus = grd_tstdiagrgst.rowstatus(row);
-
- // 행추가를 한 행을 [행삭제]하면 행을 그리드에서 삭제, 기존에 존재하는 행을 [행삭제]하면 플래그를 D로 변경
- if (rowstatus == 1 || rowstatus == 3) {
- grd_tstdiagrgst.deleteRow(row,true);
- } else {
- grd_tstdiagrgst.rowstatus(row) = 4;
- }
- ]]>
- </script>
- </button>
- <button id="btn_addrow" class="btn2_letter3" style="left:1017px; top:70px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- submit("TRPIB02603");
-
- var maxtestgrup = model.getValue("/root/maxgrup/maxno/maxtestgrup");
-
- //model.alert(maxtestgrup);
-
-
- grd_tstdiagrgst.addRow(false);
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/testgrup", maxtestgrup);
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/orddeptcd","-");
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/inpath","A");
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/sex","A");
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/minage","0");
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/maxage","999");
- model.setValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/useyn","Y");
- grd_tstdiagrgst.col = 1; // 추가된 row로 이동
- fCallSubList(); // 행추가시 처방,상병 목록을 다시 조회해 온다.
- ]]>
- </script>
- </button>
- <datagrid id="grd_tstmech" nodeset="/root/main/list2/listmech" caption="그룹^EDI코드^EDI명칭^적용과" colsep="^" colwidth="43, 98, 220, 67" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:5px; top:348px; width:455px; height:394px; ">
- <col ref="testgrup" type="output"/>
- <col imemode="disabled" ref="edicd" type="inputbutton" _chartype="upper"/>
- <col ref="hngnm" type="output"/>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var col = grd_tstmech.col;
- var row = grd_tstmech.row;
-
- // 처방코드나 상병코드이면
- if (col == grd_tstmech.colRef("edicd")) {
- fSrchSnglCalcscorNm();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var col = grd_tstmech.col;
- var row = grd_tstmech.row;
-
- // 처방코드이면
- if (col == grd_tstmech.colRef("edicd")) {
- fSrchSnglCalcscorNm();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_tstdiagrgst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="btn_copy" class="btn2_letter3" style="left:1129px; top:70px; width:53px; height:19px; ">
- <caption>행복사</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("root/main/list1/listautd[ "+ grd_tstdiagrgst.row + "]/testgrup") == "9999" ) {
- messageBox("9999 (제외상병) 은 행복사","E001");
- return;
- }
- var oldrow = grd_tstdiagrgst.row;
- if (oldrow <= 0) return;
- grd_tstdiagrgst.addRow();
- var newrow = grd_tstdiagrgst.row;
- //model.setValue("/root/main/list1/listautd[" + newrow + "]/testgrupcd", model.getValue("/root/main/list1/listautd[" + oldrow + "]/testgrupcd"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/testgrup", model.getValue("/root/main/list1/listautd[" + oldrow + "]/testgrup"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/testgrupnm", model.getValue("/root/main/list1/listautd[" + oldrow + "]/testgrupnm"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/orddeptcd", model.getValue("/root/main/list1/listautd[" + oldrow + "]/orddeptcd"));
- //model.setValue("/root/main/list1/listautd[" + newrow + "]/snglcalcscorcd", model.getValue("/root/main/list1/listautd[" + oldrow + "]/snglcalcscorcd"));
- //model.setValue("/root/main/list1/listautd[" + newrow + "]/orddeptcd", model.getValue("/root/main/list1/listautd[" + oldrow + "]/orddeptcd"));
- //model.setValue("/root/main/list1/listautd[" + newrow + "]/diagcd", model.getValue("/root/main/list1/listautd[" + oldrow + "]/diagcd"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/minage", model.getValue("/root/main/list1/listautd[" + oldrow + "]/minage"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/maxage", model.getValue("/root/main/list1/listautd[" + oldrow + "]/maxage"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/sex", model.getValue("/root/main/list1/listautd[" + oldrow + "]/sex"));
- model.setValue("/root/main/list1/listautd[" + newrow + "]/useyn", model.getValue("/root/main/list1/listautd[" + oldrow + "]/useyn"));
- grd_tstdiagrgst.col = 1; // 복사된 곳으로 이동
- ]]>
- </script>
- </button>
- <datagrid id="grd_tstdiag" nodeset="/root/main/list2/listdiag" caption="그룹^시작상병^시작상병명^종료상병^종료상병명^적용과^적용여부" colsep="^" colwidth="45, 62, 217, 65, 182, 68, 63" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:464px; top:348px; width:726px; height:394px; ">
- <col ref="testgrup" type="output"/>
- <col imemode="disabled" ref="diagcd" type="inputbutton" _chartype="upper"/>
- <col ref="diagnm" type="output"/>
- <col imemode="disabled" ref="diagcdto" type="inputbutton" _chartype="upper"/>
- <col ref="diagnmto" type="output"/>
- <col disabled="true" ref="orddeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="chkflag" type="combo">
- <choices>
- <item>
- <label>적용</label>
- <value>Y</value>
- </item>
- <item>
- <label>제외</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var col = grd_tstdiag.col;
- var row = grd_tstdiag.row;
-
- // 처방코드이면
- if ( col == grd_tstdiag.colRef("diagcd") ) {
- fSrchDiagNm("FROM");
- }
- else if ( col == grd_tstdiag.colRef("diagcdto") ) {
- fSrchDiagNm("TO");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var col = grd_tstdiag.col;
- var row = grd_tstdiag.row;
-
- // 처방코드이면
- if ( col == grd_tstdiag.colRef("diagcd") ) {
- fSrchDiagNm("FROM");
- }
- else if ( col == grd_tstdiag.colRef("diagcdto") ) {
- fSrchDiagNm("TO");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_tstdiagrgst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_tstdiagrgst" nodeset="/root/main/list1/listautd" caption="그룹코드^그룹명칭^적용과^입원경로^성별^최소나이^최대나이^사용여부^&" colsep="^" colwidth="90, 319, 156, 100, 63, 65, 65, 61, 20" dataheight="23" defaultrows="0" ellipsis="true" explorerbar="sortshow" frozencols="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" style="left:5px; top:96px; width:1184px; height:224px; ">
- <col ref="testgrup" type="output" maxlength="12" _key="true"/>
- <col ref="testgrupnm" type="input"/>
- <col disabled="true" ref="orddeptcd" type="combo" _key="true">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="inpath" type="combo">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="sex" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0391list/P0391">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="minage" type="input" format="###"/>
- <col ref="maxage" type="input" format="###"/>
- <col ref="useyn" type="combo">
- <choices>
- <item>
- <label>사용</label>
- <value>Y</value>
- </item>
- <item>
- <label>미사용</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="detail" type="inputbutton"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var col = grd_tstdiagrgst.col;
- if (col == grd_tstdiagrgst.colRef("detail")) { // 그룹코드
-
- fCallSubList();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_tstdiagrgst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- var row = grd_tstdiagrgst.row;
- var col = grd_tstdiagrgst.col;
- if (col == grd_tstdiagrgst.colRef("orddeptcd")) { // 적용과가 변경된 경우
-
- var mupdtdata = getGridUpdateData(grd_tstmech);
- var cupdtdata = getGridUpdateData(grd_tstdiag);
-
- if ( mupdtdata != "" || cupdtdata != "") {
- messageBox("작업중인 처방, 상병 내역이 있습니다. 변경된 진료과로 내역을 변경합니다.","");
-
- var base_testgrup = model.getValue("/root/main/list1/listautd[" + row + "]/testgrup");
- var base_orddeptcd = model.getValue("/root/main/list1/listautd[" + row + "]/orddeptcd");
-
- for( i = grd_tstmech.fixedRows; i < grd_tstmech.rows ; i++ ) {
- var rowstat = grd_tstmech.rowStatus(i);
- if (
- model.getValue("/root/main/list2/listmech[" + i + "]/testgrup") == base_testgrup
- && model.getValue("/root/main/list2/listmech[" + i + "]/orddeptcd") != base_orddeptcd
- && ( rowstat == 1 || rowstat == 2 || rowstat == 3 )
- ) {
- model.setValue("/root/main/list2/listmech[" + i + "]/orddeptcd", base_orddeptcd);
- }
- }
- for( i = grd_tstdiag.fixedRows; i < grd_tstdiag.rows ; i++ ) {
- var rowstat = grd_tstdiag.rowStatus(i);
- if (
- model.getValue("/root/main/list2/listdiag[" + i + "]/testgrup") == base_testgrup
- && model.getValue("/root/main/list2/listdiag[" + i + "]/orddeptcd") != base_orddeptcd
- && ( rowstat == 1 || rowstat == 2 || rowstat == 3 )
- ) {
- model.setValue("/root/main/list2/listdiag[" + i + "]/orddeptcd", base_orddeptcd);
- }
- }
- } else {
- fCallSubList();
- }
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- //if ( model.getValue("root/main/list1/listautd[ "+ grd_tstdiagrgst.row + "]/orddeptcd") == "" ) { return; }
- fCallSubList();
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:5px; y1:343px; x2:460px; y2:343px; "/>
- <caption id="caption4" class="tit_2" style="left:10px; top:326px; width:162px; height:14px; ">평가관련 처방 목록</caption>
- <caption id="caption5" class="tit_2" style="left:481px; top:326px; width:157px; height:14px; ">평가관련 질병 목록</caption>
- <line id="line3" class="line_1" style="x1:465px; y1:345px; x2:1189px; y2:343px; "/>
- <button id="btn_autmech_delrow" class="btn2_letter3" style="left:402px; top:322px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_tstmech.row;
- var rowstatus = grd_tstmech.rowstatus(row);
-
- // 행추가를 한 행을 [행삭제]하면 행을 그리드에서 삭제, 기존에 존재하는 행을 [행삭제]하면 플래그를 D로 변경
- if (rowstatus == 1 || rowstatus == 3) {
- grd_tstmech.deleteRow(row,true);
- } else {
- grd_tstmech.rowstatus(row) = 4;
- }
- ]]>
- </script>
- </button>
- <button id="btn_autmech_insrow" class="btn2_letter3" style="left:346px; top:322px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("root/main/list1/listautd[ "+ grd_tstdiagrgst.row + "]/orddeptcd") == "" ) { return; }
-
- grd_tstmech.addRow(false,true);
-
- model.setValue("/root/main/list2/listmech["+grd_tstmech.row+"]/orddeptcd",model.getValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/orddeptcd"));
- model.setValue("/root/main/list2/listmech["+grd_tstmech.row+"]/testgrup",model.getValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/testgrup"));
- grd_tstmech.col = 1; // 추가된 row로 이동
- ]]>
- </script>
- </button>
- <button id="btn_autdiag_delrow" class="btn2_letter3" style="left:1132px; top:322px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_tstdiag.row;
- var rowstatus = grd_tstdiag.rowstatus(row);
-
- // 행추가를 한 행을 [행삭제]하면 행을 그리드에서 삭제, 기존에 존재하는 행을 [행삭제]하면 플래그를 D로 변경
- if (rowstatus == 1 || rowstatus == 3) {
- grd_tstdiag.deleteRow(row,true);
- } else {
- grd_tstdiag.rowstatus(row) = 4;
- }
- ]]>
- </script>
- </button>
- <button id="btn_autdiag_insrow" class="btn2_letter3" style="left:1076px; top:322px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("root/main/list1/listautd[ "+ grd_tstdiagrgst.row + "]/orddeptcd") == "" ) { return; }
- grd_tstdiag.addRow(false,true);
- model.setValue("/root/main/list2/listdiag["+grd_tstdiag.row+"]/orddeptcd",model.getValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/orddeptcd"));
- model.setValue("/root/main/list2/listdiag["+grd_tstdiag.row+"]/testgrup",model.getValue("/root/main/list1/listautd["+grd_tstdiagrgst.row+"]/testgrup"));
- model.setValue("/root/main/list2/listdiag["+grd_tstdiag.row+"]/chkflag","-"); // 적용과 전체
- model.setValue("/root/main/list2/listdiag["+grd_tstdiag.row+"]/diagcd","-");
- model.setValue("/root/main/list2/listdiag["+grd_tstdiag.row+"]/diagnm","-");
- model.setValue("/root/main/list2/listdiag["+grd_tstdiag.row+"]/diagcdto","-");
- model.setValue("/root/main/list2/listdiag["+grd_tstdiag.row+"]/diagnmto","-");
- grd_tstdiag.col = 1; // 추가된 row로 이동
- ]]>
- </script>
- </button>
- <button id="btn_sel_dept" class="btn2_letter5" navindex="5" style="left:939px; top:70px; width:75px; height:19px; ">
- <caption>진료과선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( model.getValue("root/main/list1/listautd[ "+ grd_tstdiagrgst.row + "]/orddeptcd") == "" ) { return; }
-
- var gupdtdata = getGridUpdateData(grd_tstdiagrgst);
- var mupdtdata = getGridUpdateData(grd_tstmech);
- var cupdtdata = getGridUpdateData(grd_tstdiag);
- if (gupdtdata != "" || mupdtdata != "" || cupdtdata != "") {
- messageBox("작업중인 내역을 저장후","I008");
- return false;
- }
-
- fSelectDeptInit();
-
- grp_dept_select.attribute("top") = 110;
- grp_dept_select.attribute("left") = 380;
- grd_seldeptlist.row = 1;
- grp_dept_select.visible = true;
- fSetDisplayDisable(true); // 화면 사용여부 제어
- ]]>
- </script>
- </button>
- <group id="grp_dept_select" visibility="hidden" style="left:435px; top:145px; width:360px; height:530px; border-color:#333333; border-style:solid; ">
- <datagrid id="grd_seldeptlist" nodeset="/root/hidden/seldeptlist" caption="선택^진료과코드^진료과명^기존선택" colsep="^" colwidth="56, 88, 162, 9, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:14px; top:74px; width:330px; height:400px; border-color:#333333; ">
- <col ref="selyn" type="checkbox"/>
- <col ref="deptcd"/>
- <col ref="deptnm"/>
- <col ref="oldselyn" visibility="hidden"/>
- </datagrid>
- <caption id="caption15" class="tit_2" style="left:5px; top:5px; width:344px; height:13px; ">자동메모 진료과 선택 (그룹코드로 조회후 사용하세요)</caption>
- <button id="button6" class="btn4_letter2" style="left:281px; top:492px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_dept_select.visible = false;
- fSetDisplayDisable(false); // 화면 사용여부 제어
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter2" style="left:216px; top:492px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( fSelectDeptChk() == false ) return;
- if ( messageBox("선택된 진료과로 수가코드, 상병이 복사됩니다.", "Q003") != 6 ) return;
- fSelectDeptInput(); // 저장 데이타 생성
- grp_dept_select.visible = false;
- fSetDisplayDisable(false); // 화면 사용여부 제어
- if (submit("TXPIB02602")) {
- messageBox("저장", "I002");
- }
-
- // 4. 재조회
- model.removeNodeset("/root/main/list2/listmech"); // 조회시 처방 그리드도 지운다
- model.removeNodeset("/root/main/list2/listdiag"); // 조회시 상병 그리드도 지운다.
- submit("TRPIB02601");
-
- ]]>
- </script>
- </button>
- <line id="line4" class="line_1" style="x1:4px; y1:20px; x2:354px; y2:20px; "/>
- <output id="opt_seldeptcd" ref="/root/hidden/seldeptbase/testgrup" class="output_fix" appearance="output" style="left:14px; top:29px; width:75px; height:19px; color:#ff00ff; "/>
- <output id="opt_seldeptnm" ref="/root/hidden/seldeptbase/testgrupnm" class="output_fix" appearance="output" style="left:94px; top:29px; width:245px; height:19px; color:#ff00ff; "/>
- <button id="btn_selall" class="btn2_letter4" navindex="5" style="left:214px; top:51px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for( i = grd_seldeptlist.fixedRows; i < grd_seldeptlist.rows ; i++ ) {
- model.setValue("/root/hidden/seldeptlist[" + i + "]/selyn","true");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_selno" class="btn2_letter4" navindex="5" style="left:279px; top:51px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for( i = grd_seldeptlist.fixedRows; i < grd_seldeptlist.rows ; i++ ) {
- model.setValue("/root/hidden/seldeptlist[" + i + "]/selyn","false");
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="opt_seldeptorddeptcd" ref="/root/hidden/seldeptbase/orddeptcd" class="output_fix" visibility="hidden" appearance="output" style="left:14px; top:52px; width:145px; height:19px; color:#ff00ff; "/>
- </group>
- </group>
- <group id="group4" scroll="test" style="left:0px; top:755px; width:1194px; height:27px; ">
- <line id="line23" class="line_6" style="x1:0px; y1:0px; x2:700px; y2:0px; "/>
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:4px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 1. 저장데이터 유효성 체크
- if (!fCheckSaveData()) return;
-
- // 2. 저장하시겠습니까?
- var rtn = messageBox("평가관련 기준정보를", "Q002");
- if (rtn != 6) {
- return;
- }
-
- // 3. 저장
- model.setValue("/root/send/updatedata/gruplist",grd_tstdiagrgst.getupdatedata());
- model.setValue("/root/send/updatedata/mechlist",grd_tstmech.getupdatedata());
- model.setValue("/root/send/updatedata/diaglist",grd_tstdiag.getupdatedata());
-
- /*
- model.alert(model.getValue("/root/send/updatedata/gruplist"));
- return;
- */
- if (submit("TXPIB02601")) {
- messageBox("저장", "I002");
- }
-
- // 4. 재조회
- model.removeNodeset("/root/main/list2/listmech"); // 조회시 처방 그리드도 지운다
- model.removeNodeset("/root/main/list2/listdiag"); // 조회시 상병 그리드도 지운다.
- submit("TRPIB02601");
-
-
- // model.removeNodeset("/root/main/list2/listmech");
- // model.removeNodeset("/root/main/list2/listdiag");
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|