123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511 |
- <?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>
- <prcpclscdlist>
- <prcpclscdlist/>
- </prcpclscdlist>
- <list>
- <nuclbasevollist/>
- </list>
- <picmmech>
- <picmmechlist>
- <picmmech_hidden/>
- <picmmech_calcgrupcd/>
- <picmmech_agepay/>
- <picmmech_calcscorcd/>
- <picmmech_insuedicd/>
- <picmmech_oldordcd/>
- <picmmech_engnm/>
- <picmmech_hngnm/>
- <picmmech_pynpy1/>
- <picmmech_rbpnt/>
- <picmmech_unitcost/>
- <picmmech_specrate/>
- <picmmech_gnrlunitcost/>
- <picmmech_forgnunitcost/>
- <picmmech_mouunitcost/>
- <picmmech_ordnm/>
- <picmmech_qty/>
- <picmmech_estmmncd/>
- <picmmech_fromdd/>
- <picmmech_todd/>
- <picmmech_lastupdtdt/>
- <picmmech_lastupdtrid/>
- <picmmech_temp_insupynpy1/>
- <picmmech_temp_insuunitcost/>
- <picmmech_temp_specrate/>
- <picmmech_temp_instcd/>
- <picmmech_temp_grupsnglflag/>
- <picmmech_ordinptflag/>
- </picmmechlist>
- </picmmech>
- </main>
- <prcpsrch>
- <prcplist>
- <status/>
- <prcpstatcd/>
- <prcpclscd/>
- <prcpkindcd/>
- <prcpcd/>
- <prcpnm/>
- <prcpvol/>
- <prcpvolunitnm/>
- <prcpqty/>
- <prcpqtyunitnm/>
- <prcptims/>
- <prcpdayno/>
- <drugmthdspccdnm/>
- <prcpmixno/>
- <payflagcd/>
- <prcpdelivefact/>
- <hosinhosoutflag/>
- <prcpexecdeptcd/>
- <prcphopedd/>
- <choiordflag/>
- <rgstdt/>
- <rgstridnm/>
- <testrsltunit/>
- <testrsltcnts/>
- <prcpgenrflag/>
- <prcphistcd/>
- <tempprcpflag/>
- <prcpsetcd/>
- <prcpvolunitflag/>
- <prcpqtyunitflag/>
- <orgprcpqty/>
- <drugspd/>
- <drugspdunitflag/>
- <powdflag/>
- <prnprcpflag/>
- <prepprcpflag/>
- <selfprcpflag/>
- <selfdrugflag/>
- <drugpackflag/>
- <erprcpflag/>
- <precureprcpflag/>
- <nigtprcpflag/>
- <portprcpflag/>
- <fixprcpflag/>
- <anamneflag/>
- <fastprcpflag/>
- <erreadflag/>
- <prcpdirecflag/>
- <tnsuseflag/>
- <tnsfiltflag/>
- <trnptbftestflag/>
- <offictourhealexamflag/>
- <stemcellflag/>
- <angioflagcd/>
- <opansflagcd/>
- <ansttm/>
- <mealcalrcnts/>
- <mealprotcnts/>
- <mealupdtflag/>
- <hosinprcpresncd/>
- <etcprcpresncd/>
- <drugmthdspccd/>
- <issdeptcd/>
- <prcpauthflag/>
- <prcpinptflag/>
- <prcpsignflag/>
- <rateprcpflag/>
- <prcprefseq/>
- <ordreqlnkno/>
- <testreqlnkno/>
- <prcplnkdd/>
- <prcplnkno/>
- <oprsrvno/>
- <tootfact/>
- <clinccmtcnts/>
- <prcpessninptflag/>
- <grupsnglflag/>
- <drugrateqty/>
- <asttestflag/>
- <clincstdyflag/>
- <prtlno/>
- <clincstdycd/>
- <optermcd/>
- <prcpflag/>
- <hscttempprcpflag/>
- <inclprcpcd/>
- <inclprcpno/>
- <pampkspec/>
- <prcppkspec/>
- <calcscormastspec/>
- <drugmastspec/>
- <rateprcpspec/>
- <matrsetprcpspec/>
- <suppdeptspec/>
- <contprcpspec/>
- <etclnkspec/>
- <srchcondcnts/>
- <orgprcpnm/>
- <chkcol/>
- <hsctdelivepos/>
- <hsctlnkno/>
- <etcprcpflag/>
- <aftcertflag/>
- <aftcertdrid/>
- <prcpvalidd/>
- <insukind/>
- <specdrid/>
- <anticncrprtlno/>
- <anticncrdayno/>
- <druglnkno/>
- <drprcpetc1/>
- <drprcpetc2/>
- <drprcpetc3/>
- <drprcpetc4/>
- <drprcpetc5/>
- <drprcpetc6/>
- <drprcpetc7/>
- <drprcpetc8/>
- <drprcpetc9/>
- <drprcpetc10/>
- <tempcol1/>
- <tempcol2/>
- <tempcol3/>
- <tempcol4/>
- <tempcol5/>
- <tempcol6/>
- <tempcol7/>
- <tempcol8/>
- <tempcol9/>
- <tempcol10/>
- <tempcol11/>
- <tempcol12/>
- <tempcol13/>
- <tempcol14/>
- <tempcol15/>
- <tempcol16/>
- <tempcol17/>
- <tempcol18/>
- <tempcol19/>
- <tempcol20/>
- <tempcol21/>
- <tempcol22/>
- <tempcol23/>
- <tempcol24/>
- <tempcol25/>
- </prcplist>
- </prcpsrch>
- <send>
- <midclscd/>
- <smlclscd/>
- <suppdeptcd/>
- <excucd/>
- <excucdnm/>
- <nuclbasevollist/>
- <cond1/>
- <cond2/>
- <cond3/>
- <cond4/>
- <cond5/>
- <cond6/>
- <cond7/>
- <cond8/>
- <cond9/>
- <cond10/>
- <cond99/>
- <data>
- <con1_dd/>
- <con2_gsflag/>
- <con3_search1/>
- <con4_search2/>
- <con5_insu/>
- <con6_calcscorcd/>
- <con7_todd/>
- <con8_instcd/>
- <con9_lastupdtdt/>
- </data>
- <row/>
- </send>
- <init>
- <P0104list>
- <P0104>
- <cdid/>
- <cdnm/>
- </P0104>
- </P0104list>
- <P0141list>
- <P0141>
- <cdid/>
- <cdnm/>
- </P0141>
- </P0141list>
- <clsnm/>
- <updtyn/>
- <prcpclscd/>
- </init>
- <hidden>
- <list1>
- <testclslist/>
- </list1>
- <list2>
- <nuclcdlist>
- <label/>
- <value/>
- </nuclcdlist>
- </list2>
- <iMouseRow/>
- </hidden>
- </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/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
-
- // 초기화
- function fInitialize() {
-
- zbcfGetCodeList(new Array("P0104","P0141"),new Array("/root/init/P0104list","/root/init/P0141list"));
-
- model.removenode("/root/prcpsrch");
- model.removenode("/root/main/picmmech");
- model.setValue("/root/send/cond1","E");
- submit("TRMMO02201");
- }
-
-
- // 검사 상세 분류 조회
- function fPrcpClsSrchInfo(flag) {
- var iMouseRow;
- var row = model.getValue("/root/hidden/iMouseRow");
- if (flag == "S") {
- iMouseRow = trv_prcpclscdlist.mouseRow;
- model.setValue("/root/hidden/iMouseRow",iMouseRow);
- } else {
- iMouseRow = row;
- }
- var iRow = eval(iMouseRow) + 1;
- var prcpclscd = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/prcpclscd");
- var prcpclscd1 = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/prcpclscd1");
- var prcpclscd2 = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/prcpclscd2");
- var prcpclscd3 = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/prcpclscd3");
- var prcpclsnm = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/prcpclsnm");
- var lvl = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/lvl");
-
- iRow = eval(iMouseRow) + 2;
- var lvl2 = model.getValue ( "/root/main/prcpclscdlist/prcpclscdlist[" + iRow + "]/lvl");
- if ( lvl != lvl2 && !isNull(lvl2)) {
- if ( lvl < lvl2 ) {
- trv_prcpclscdlist.expand(trv_prcpclscdlist.mouseRow, true);
- model.removenode("root/prcpsrch");
- model.refresh();
- return false;
- }
- }
-
- var gSRCHFLAG = "1";
- var gPRCPFLAG = "1";
- var ordprcpflag = "";
- var ioflag = "I";
-
- model.resetInstanceNode( "/root/send" );
- model.setValue ( "/root/send/cond1" , gSRCHFLAG); // 검색구분(식이, 지시..)
- model.setValue ( "/root/send/cond2" , ioflag ); // 외래, 입원, 응급 구분
- model.setValue ( "/root/send/cond3" , getCurrentDate()); // 처방일
- model.setValue ( "/root/send/cond4" , "11"); // 환자보험유형
- model.setValue ( "/root/send/cond5" , prcpclscd1); // 분류1
- model.setValue ( "/root/send/cond6" , prcpclscd2); // 분류2
- model.setValue ( "/root/send/cond7" , prcpclscd3); // 분류3
- model.setValue ( "/root/send/cond8" , prcpclscd ); // 분류: 약에서 사용한다.
- model.setValue ( "/root/send/cond9" , gPRCPFLAG ); // 지시처방
- model.setValue ( "/root/send/cond10", ordprcpflag); // 지시처방구분(일반:genr, BMT:bmt)
- model.setValue ( "/root/send/cond99","getPrcpClsSrchInfo" ); // 검색구분
- model.removenode("/root/main/picmmech");
-
- if (submit( "TRAEB02601" )){
- grd_prcpsrchlist.valueMatrix ( 0, 2 ) = prcpclsnm.getTrim();
- return true;
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- //group1.attribute("height") = 0;
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRMMO02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prcpclscdlist"/>
- <submission id="TRAEB02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/prcpsrch"/>
- <submission id="TRAEB02602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/picmmech"/>
- <submission id="TXAEB02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data/prcpsrch"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="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:189px; height:14px; ">검사 분류별 조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:740px; ">
- <caption id="caption2" class="tit_2" style="left:0px; top:8px; width:161px; height:14px; vertical-align:middle; ">검사분류</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:24px; x2:235px; y2:24px; "/>
- <button id="button2" class="btn2_letter2" style="left:151px; top:4px; width:42px; height:19px; ">
- <caption>처방</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("root/prcpsrch");
- model.setValue("/root/send/cond1","E");
- submit("TRMMO02201");
- ]]>
- </script>
- </button>
- <button id="button1" class="btn2_letter2" style="left:194px; top:4px; width:42px; height:19px; ">
- <caption>재료</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.removenode("root/prcpsrch");
- model.setValue("/root/send/cond1","L");
- submit("TRMMO02201");
- ]]>
- </script>
- </button>
- <treeview id="trv_prcpclscdlist" ref="/root/main/prcpclscdlist/prcpclscdlist" expanddepth="1" itemsettype="depth" style="left:0px; top:29px; width:235px; height:706px; border-style:solid; ">
- <itemset nodeset="/root/main/prcpclscdlist/prcpclscdlist">
- <label ref="prcpclsnm"/>
- <value ref="path"/>
- <depth ref="lvl"/>
- </itemset>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fPrcpClsSrchInfo("S");
- ]]>
- </script>
- </treeview>
- <datagrid id="grd_prcpsrchlist" nodeset="/root/prcpsrch/prcplist" caption="선택^검사코드^검사명^종료일자^사용여부" colsep="^" colwidth="0, 146, 770, 0, 0" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:240px; top:29px; width:955px; height:441px; ">
- <col checkvalue="Y,N" ref="check" type="checkbox" visibility="hidden"/>
- <col ref="prcpcd"/>
- <col ref="prcpnm"/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="prcpuseflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0141list/P0141">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if ( (grd_prcpsrchlist.row >= grd_prcpsrchlist.fixedRows) && (grd_prcpsrchlist.isCell(event.target)) ) {
-
- var row = grd_prcpsrchlist.row;
- var prcpcd = model.getValue("/root/prcpsrch/prcplist[ " + row + "]/prcpcd");
-
- model.setValue("/root/send/data/con1_dd",getCurrentDate());
- model.setValue("/root/send/data/con3_search1", "calcscorcd");
- model.setValue("/root/send/data/con4_search2", prcpcd);
- model.setValue("/root/send/data/con5_insu", "insu");
- model.setValue("/root/send/data/con9_lastupdtdt",getCurrentDate());
-
- submit( "TRAEB02602" );
-
- grd_mech.rebuildStyle();
-
- // 무산정 싱글이 존재하는 경우, 단가합에서 제외처리 추가 by 조중래 20141201
- var sUnitCostSum = 0;
- var sUnitCostFree = 0;
- var sGroupIndex = 0;
-
- var listCnt = getNodesetCount("/root/main/picmmech/picmmechlist");
-
- for (var i = 1; i <= listCnt; i++){
-
- if (model.getValue("/root/main/picmmech/picmmechlist[" + i + "]/picmmech_hidden") == "1") {
- sUnitCostSum = Number(model.getValue("/root/main/picmmech/picmmechlist[" + i + "]/picmmech_unitcost"));
- sGroupIndex = i;
- continue;
- }
-
- // 무산정 싱글의 경우, 해당 금액을 저장
- if (model.getValue("/root/main/picmmech/picmmechlist[" + i + "]/picmmech_freeflag") == "Y") {
- grd_mech.cellStyle("background-color" , i + 1, grd_mech.colRef("picmmech_freeflag") , i + 1, grd_mech.colRef("picmmech_freeflag")) = "#FFCCFF";
- sUnitCostFree += Number(model.getValue("/root/main/picmmech/picmmechlist[" + i + "]/picmmech_unitcost"));
-
- }
- }
-
- //alert( "sUnitCostSum = " + sUnitCostSum);
- //alert( "sUnitCostFree = " + sUnitCostFree);
-
- // 무산정 단가가 존재한다면, 단가합에서 제외처리
- if (sUnitCostFree > 0) {
- model.setValue("/root/main/picmmech/picmmechlist[" + sGroupIndex + "]/picmmech_unitcost", (sUnitCostSum - sUnitCostFree));
- }
-
- setTree(grd_mech, 0, 0, false);
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line2" class="line_1" style="x1:240px; y1:24px; x2:1195px; y2:24px; "/>
- <button id="button3" class="btn2_letter2" visibility="hidden" style="left:1150px; top:5px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var nodeList = instance1.selectNodes("/root/prcpsrch/prcplist[check='Y' ]");
- var rCSV = getNodeListCSV(nodeList);
-
- if ( rCSV == null ) {
- messageBox("그룹코드를 선택해 주십시오.","I999");
- return "0";
- }
- model.makeValue("/root/send/data/prcpsrch/prcplist", rCSV);
- if (submit("TXAEB02601")) {
- fPrcpClsSrchInfo("R");
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:245px; top:8px; width:161px; height:14px; vertical-align:middle; ">그룹코드</caption>
- <caption id="caption3" class="tit_2" style="left:240px; top:479px; width:161px; height:13px; vertical-align:middle; ">하위 수가코드</caption>
- <line id="line3" class="line_1" style="x1:240px; y1:495px; x2:1195px; y2:495px; "/>
- <datagrid id="grd_mech" nodeset="/root/main/picmmech/picmmechlist" caption="±^그룹코드^수가코드^보험EDI코드^분류번호^처방명^수량^무
산정^보험^보험^보험^일반^한글명|±^그룹코드^수가코드^보험EDI코드^분류번호^처방명^수량^무
산정^급여구분^단가합^특진단가^단가합^한글명" colsep="^" colwidth="19, 90, 90, 80, 77, 277, 40, 40, 60, 73, 60, 60, 190" mergecellsfixedrows="bycolrec" rowsep="|" style="left:240px; top:500px; width:955px; height:235px; ">
- <col ref="picmmech_hidden"/>
- <col ref="picmmech_calcgrupcd"/>
- <col ref="picmmech_calcscorcd"/>
- <col ref="picmmech_insuedicd"/>
- <col ref="picmmech_insuclsno"/>
- <col ref="picmmech_ordnm"/>
- <col ref="picmmech_qty" style="text-align:right; "/>
- <col ref="picmmech_freeflag" style="text-align:center; "/>
- <col disabled="true" ref="picmmech_pynpy1" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/P0104list/P0104">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="picmmech_unitcost" format="#,###,###" style="text-align:right; "/>
- <col ref="picmmech_specamt" format="#,###" style="text-align:right; "/>
- <col ref="picmmech_gnrlunitcost" format="#,###" style="text-align:right; "/>
- <col ref="picmmech_hngnm" visibility="hidden"/>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|