1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMAED00100.xrw
- * 설 명 : 치기공접수
- * 설 계 자 : 손승현
- * 작 성 자 : 손승현
- * 작 성 일 : 2010.09.26
- * 수정이력 : 2010.09.26 손승현 신규
- * 기 타 :
- -->
- <?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 tag="""">
- <xhtml:title>치 기공접수</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <acptinfo>
- <item>
- <mode/>
- <acptno/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <sex/>
- <age/>
- <telno/>
- <calcscorcd/>
- <prcpnm/>
- <rcptyn/>
- <prcpgenrflag/>
- <orddeptcd/>
- <orddepthngnm/>
- <orddrid/>
- <orddrnm/>
- <insuflag/>
- <execprcpuniqno/>
- <prcpdd/>
- <rsrvdd/>
- <execdd/>
- <state/>
- <rcptamt/>
- <tootfact11/>
- <tootfact12/>
- <tootfact21/>
- <tootfact22/>
- <prodroom/>
- <prodcd/>
- <enddd/>
- <metalcd/>
- <useqty/>
- <prodid/>
- <prodnm/>
- <outordyn/>
- <bigo/>
- <cnclyn/>
- <initinsukind/>
- <mig/>
- <acptyear/>
- <rcptdd/>
- <useqty_b/>
- <prcpqty/>
- </item>
- </acptinfo>
- <acptlist>
- <item>
- <mode/>
- <acptno/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <sex/>
- <age/>
- <telno/>
- <calcscorcd/>
- <prcpnm/>
- <rcptyn/>
- <prcpgenrflag/>
- <orddeptcd/>
- <orddepthngnm/>
- <orddrid/>
- <orddrnm/>
- <insuflag/>
- <execprcpuniqno/>
- <prcpdd/>
- <rsrvdd/>
- <execdd/>
- <state/>
- <rcptamt/>
- <tootfact11/>
- <tootfact12/>
- <tootfact21/>
- <tootfact22/>
- <prodroom/>
- <prodcd/>
- <enddd/>
- <metalcd/>
- <useqty/>
- <prodid/>
- <prodnm/>
- <outordyn/>
- <bigo/>
- <cnclyn/>
- <initinsukind/>
- <mig/>
- <acptyear/>
- <rcptdd/>
- <useqty_b/>
- </item>
- </acptlist>
- <eqmtlist>
- <item>
- <sortno/>
- <basecd/>
- <basecdflagdesc/>
- <basecdcnts/>
- <basesuppdeptcd/>
- <basecdflag/>
- </item>
- </eqmtlist>
- <eqmtcnlist>
- <item>
- <sortno/>
- <basecd/>
- <basecdflagdesc/>
- <basecdcnts/>
- <basesuppdeptcd/>
- <basecdflag/>
- </item>
- </eqmtcnlist>
- <execrcodelist>
- <execrcode>
- <sortno/>
- <basecd/>
- <basecdflagdesc/>
- <basecdcnts/>
- <basecdflag/>
- <basesuppdeptcd/>
- <seq/>
- </execrcode>
- </execrcodelist>
- <codelist>
- <item>
- <suppdeptcd/>
- <grupcdid/>
- <cdid/>
- <cdnm/>
- <detldesc/>
- <useyn/>
- <dispseq/>
- <cntlyn1/>
- <cntlcd1/>
- </item>
- </codelist>
- <codelist1>
- <item>
- <suppdeptcd/>
- <grupcdid/>
- <cdid/>
- <cdnm/>
- <detldesc/>
- <useyn/>
- <dispseq/>
- <cntlyn1/>
- <cntlcd1/>
- </item>
- </codelist1>
- <acptnum>
- <item/>
- </acptnum>
- <examcurecdlist>
- <item>
- <excucd/>
- <excucdnm/>
- <excuroomcd/>
- <excupartcd/>
- <execbaseflag/>
- <rcptacptyn/>
- <rcptrsrvyn/>
- <prcptdayaftrcptyn/>
- <excuclscd/>
- <lrgcd/>
- <mdlcd/>
- <ioexamflag/>
- <excucdrem/>
- <angioaltprcpcd/>
- <angiouseyn/>
- <autroomassgyn/>
- <autroomassgcd/>
- <section/>
- <rslttmplcd/>
- <ocrtmplcd/>
- <eqmtifyn/>
- <readdrid3/>
- <readdrid3nm/>
- <rsltclscd1/>
- <rsltclscd2/>
- <partcntstats/>
- <phocntstats/>
- <rsrvexcupossyn/>
- <rsrvexcuroomposscd/>
- <rsrvexcuroomposscd2/>
- <rsrvplceflag/>
- <excutm/>
- <rsrvexmptmplcd/>
- <rsrvmultitmplcd/>
- <rsrvexmptmplexecrnm/>
- <rsrvexmpcnt/>
- <fastyn/>
- <enemayn/>
- <rsrvaprvtmplcd/>
- <modality/>
- <slepyn/>
- <dcusrsrvyn/>
- <pacsnocretyn/>
- <prestddappyn/>
- <anotestyn/>
- <sytserdispyn/>
- <sytshealdispyn/>
- <anotestyn/>
- <glycostestyn/>
- <bonedentestyn/>
- <prcpexecdeptcd/>
- <basesuppdeptcd/>
- <excutodd/>
- <curetims/>
- <excurem/>
- <nextexcuroomcd/>
- <rsrvsono/>
- <etceqmtifyn/>
- <emryn/>
- <rsrvupdtcncllimdayno/>
- <rsltdispyn/>
- <rsltdispgbn/>
- <excupatrem/>
- </item>
- </examcurecdlist>
- <tootcode/>
- <stockcount/>
- <stocklist/>
- <rsltclst/>
- <rcptamtinfo/>
- <stckcnt>
- <item>
- <stockqty/>
- </item>
- </stckcnt>
- </main>
- <send>
- <srch>
- <srchsearch/>
- <srchfromdd/>
- <srchtodd/>
- <srchpid/>
- <srchhngnm/>
- <srchstate/>
- <srchcnclyn/>
- <grupcdid/>
- <suppdeptcd/>
- <dutplceinstcd/>
- <prodroom/>
- <prcpdd/>
- <srchexamcurecd/>
- <srchexamcurenm/>
- <basesuppdeptcd/>
- <newoldyb/>
- <excuroomcd/>
- <basecdcnts/>
- <prcpno/>
- <metalcd/>
- <useqty/>
- <srchoutordyn/>
- <srchmetalcd/>
- <calcscorcd/>
- </srch>
- <req>
- <savedata/>
- </req>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <basecd/>
- <basecdflag/>
- <instcd/>
- <ordlist1>
- <mainordlist>
- <check/>
- <pid/>
- <hngnm/>
- <sna/>
- <rrgstno1/>
- <rrgstno2/>
- <orddepthngnm/>
- <orddrnm/>
- <portprcpflag/>
- <calcscorcd/>
- <prcpdd/>
- <execprcpstatcd/>
- <roomcd/>
- <srchrsrvdt/>
- <prcpnm/>
- <rsrvrid/>
- <execdt/>
- <execrid1/>
- <execrnm/>
- <rcptyn/>
- <hight/>
- <weight/>
- <prcpexecdeptnm/>
- <execdeptnm/>
- <hometel/>
- <mpphontel/>
- <statcd/>
- <basecd/>
- <execprcpuniqno/>
- <prcpexecdeptcd/>
- <excuroomcd/>
- <inflag/>
- <rcptacptyn/>
- <execbaseflag/>
- <excupartcd/>
- <modality/>
- <execrem/>
- <prcpdelivefact/>
- <carecnfmdd/>
- <prcpkindcd/>
- <rcptno/>
- <acptseqno/>
- <prcpgenrflag/>
- <orddd/>
- <orddeptcd/>
- <orddrid/>
- <prcpno/>
- <eqmtifyn/>
- <basesuppdeptcd/>
- <cretno/>
- <wardcd/>
- <rsrvdt/>
- <rgstdeptcd/>
- <rgstrid/>
- <inclprcpcd/>
- <lrgcd/>
- <mdlcd/>
- <actorddd/>
- <actcretno/>
- <examroomnm/>
- <prcphistno/>
- <pacsnocretyn/>
- <tmpldata/>
- <prcpdt/>
- <rsrvrnm/>
- <deptengabbr/>
- <cnclresncdnm/>
- <rsrvexmptmplcd/>
- <age/>
- <tretflagcd/>
- <rsrvexcuroomposscd/>
- <prcphopedd/>
- <precureprcpflag/>
- <clincstdycd/>
- <aftrcptinfo/>
- <centcd/>
- <prcpclscd/>
- <ioflag/>
- <bf_srchrsrvtm/>
- <emryn/>
- <prcpqty/>
- <unrsrvexecyn/>
- <insukind/>
- <ordrsrvdt/>
- <rcptdd/>
- </mainordlist>
- </ordlist1>
- <ssmetalcd/>
- </send>
- <init>
- <combobscdlst/>
- <combobscdlstsrch>
- <item>
- <suppdeptcd/>
- <grupcdid/>
- <cdid/>
- <cdnm/>
- <detldesc/>
- <useyn/>
- <dispseq/>
- <cntlyn1/>
- <cntlcd1/>
- </item>
- </combobscdlstsrch>
- <comboYn>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </comboYn>
- <baseinfo>
- <initinsukind/>
- </baseinfo>
- </init>
- <hidden>
- <item>
- <count/>
- </item>
- </hidden>
- <temp>
- <templst/>
- </temp>
- <rexprnt>
- <acptlist>
- <item/>
- </acptlist>
- </rexprnt>
- <temp_1>
- <templst/>
- </temp_1>
- <temp_2/>
- </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="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../ast/dentalcraftweb/js/dentalcraftcombolist.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/combolist.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fGetScreenInit();
- fGetComboInit();
- fGetAcptList();
- ]]>
- </script>
- <submission id="TRAVB00001"/>
- <submission id="TRAAA00001"/>
- <submission id="TRAVB00002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/comboptcdlst"/>
- <submission id="TRAVB00003" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/combogtcdlst"/>
- <submission id="TRAED00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" replace="instance" resultref="/root/main/acptlist"/>
- <submission id="TXAED00101" mediatype="application/x-www-form-urlencoded" method="post" ref="root/main/acptinfo/item" replace="instance" resultref="/root/main/acptinfo"/>
- <submission id="TRAED00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/comboptcdlst"/>
- <submission id="TRAED00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/eqmtlist"/>
- <submission id="TRAED00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/eqmtcnlist"/>
- <submission id="TRAEB00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/execrcodelist"/>
- <submission id="TRAEB00010" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/codelist"/>
- <submission id="TRAED00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/acptnum"/>
- <submission id="TRAEB00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/examcurecdlist"/>
- <submission id="TRZBC00101"/>
- <submission id="TXAED00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ordlist1/mainordlist" resultref="/root/hidden"/>
- <submission id="TXAED00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ordlist1/mainordlist" resultref="/root/hidden"/>
- <submission id="TXAED00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ordlist1/mainordlist" resultref="/root/hidden"/>
- <submission id="TRAED00106"/>
- <submission id="TRAED00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/tootcode"/>
- <submission id="TRAED00300" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/stocklist"/>
- <submission id="TXAED00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRAED00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsltclst"/>
- <submission id="TRAED00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/ordlist1/mainordlist" replace="instance" resultref="/root/main/rcptamtinfo"/>
- <submission id="TRAED00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/stckcnt"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- var init = true;
- var count = 1;
- var click_useqty = 0;
- var click_metalcd = "";
- /**
- * 콤보 초기화
- */
- function fGetComboInit() {
- astGetComboList( new Array( "V001", "V002" ),
- new Array( "/root/temp_1/templst" , "/root/temp_1/templst" ));
-
- // 콤보선택
- cmb_srchsearch.select(1);
- combo2.select(1);
- aezfSetSuppDeptcd();
- model.setValue("/root/send/srch/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
-
- submit("TRAED00102");
- //처방상태 공통코드 갖고오기
- zbcfGetCodeList( new Array("P0008"), new Array("/root/init/baseinfo/initinsukind") );
- submit("TRZBC00101", false);
- // "A001",
- var i , j;
- var rows;
- for (i=1; i <=3;i++){
- if(i==1){
- model.setValue("/root/send/srch/grupcdid" , "A001");
- submit("TRAEB00010");
- rows = getNodesetCount("/root/main/codelist/item");
- for(j = 1; j <= rows; j++ ){
- model.makeNode("/root/main/codelist1/item[" + j + "]");
- model.copyNode("/root/main/codelist1/item[" + j + "]", "/root/main/codelist/item[" + j + "]" );
- }
- }
- if(i==2){
- model.resetInstanceNode("/root/main/codelist/item");
- model.setValue("/root/send/srch/grupcdid" , "B001");
- submit("TRAEB00010");
- rows = getNodesetCount("/root/main/codelist/item");
- for(j = 1; j <= rows; j++ ){
- model.makeNode("/root/main/codelist2/item[" + j + "]");
- model.copyNode("/root/main/codelist2/item[" + j + "]", "/root/main/codelist/item[" + j + "]" );
- }
- }
-
- if(i==3) {
- model.resetInstanceNode("/root/main/codelist/item");
- model.setValue("/root/send/srch/grupcdid" , "C001");
- submit("TRAEB00010");
- }
- }
-
- // 금속종류 코드 LIST(대분류)
- model.setValue("/root/send/basecdflag", "H");
- submit("TRAED00103");
- // model.makeValue("/root/main/eqmtlist/item");
- addComboItem("cmb_metalcd", "전체", "all", "above");
- cmb_metalcd.value = "all";
- // cmb_metalcd" ref="/root/send/srch/srchmetalcd
- // 제작물 코드LIST (중분류)
- model.setValue("/root/send/basecdflag", "I");
- submit("TRAED00104");
-
- var eqmCnt = getNodesetCount("/root/main/eqmtcnlist/item");
- for(var i = 1 ; i <= eqmCnt ; i++ ){
- model.makeNode("/root/init/eqmtcnlist/item[" + i + "]");
- model.copyNode("/root/init/eqmtcnlist/item[" + i + "]", "/root/main/eqmtcnlist/item[" + i + "]");
- }
-
- // 실시자 조회
- model.setValue("/root/send/basecdflag", "E");
- submit("TRAEB00801");
-
- // 재고LIST 조회
- submit("TRAED00300");
-
- cmb_srchsearch.value = "01";
- ipt_srchfromdd.disabled = true;
- ipt_srchtodd.disabled = true;
-
- model.refresh();
- }
- /**
- * 화면 기본 초기화
- */
- function fGetScreenInit() {
- if(init == true) { // xforms-ready시 , 초기화 버튼 클릭시에만 조회값으로 셋팅 되어있는 날짜 초기화.
- var curDD = getCurrentDate();
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/srch/srchfromdd" , curDD ); // 조회시작일자
- model.setValue("/root/send/srch/srchtodd" , curDD ); // 조회종료일자
- model.setValue("/root/main/acptinfo/item/enddd", getCurrentDate() );
- }
-
- model.removeNodeset("/root/main/acptlist/item");
- model.resetInstanceNode("/root/main/acptinfo/item");
- model.resetInstanceNode("/root/main/examcurecdlist/item");
- cmb_metalcd.select(0);
-
- model.refresh();
- }
-
- /**
- * 접수정보 LIST의 내용 클릭시, 아래 환자, 처방정보에 뿌려주기.
- */
- function fGetAcptListClick() {
- // 접수정보LIST에 조회된 내용이 있는지 확인.
- var idx = grd_maininfo.rows;
- if(idx > 2) {
- if(grd_maininfo.row != 0) {
- model.removeNodeset("/root/main/acptinfo/item");
- var rows = grd_maininfo.row;
- model.makeNode("/root/main/acptinfo/item");
- model.copyNode("/root/main/acptinfo/item", "/root/main/acptlist/item["+ (parseInt(rows)-1) + "]");
- var useqty_b = model.getValue("/root/main/acptinfo/item/useqty_b");
- if ( useqty_b != "0") {
- combo1.disabled = true;
- } else {
- combo1.disabled = false;
- }
- }
- }
- model.refresh();
- }
-
- /**
- * 접수정보 List 조회
- */
- function fGetAcptList() {
- var search = model.getValue("/root/send/srch/srchsearch");
- var state = model.getValue("/root/send/srch/srchstate");
-
- if( state != "01" && state != "02" ) {
- model.setValue("/root/send/srch/srchstate", "" );
- }
-
- if( search != "01" && search != "02" && search != "03") {
- model.setValue("/root/send/srch/srchsearch", "00" );
- }
-
- submit("TRAED00101");
-
- model.resetInstanceNode("/root/main/acptinfo/item");
- model.refresh();
- }
-
- /**
- * 접수, 변경, 취소
- */
- function fSaveAcpt(vMode) {
- var mesg = "";
- var mapfile = "";
- model.removeNodeset("/root/send/ordlist1/mainordlist/item");
-
- if (vMode == "i") {
- mesg = "신규";
- mapfile = "TXAED00102";
- }
- else if (vMode == "u") {
- mesg = "변경";
- mapfile = "TXAED00103";
- } else {
- mesg = "취소";
- mapfile = "TXAED00104";
- }
-
- if ( messageBox("치기공 접수 " + mesg + " 정보를","Q002")== 6 ) {
-
- // 검사실 코드
- if("" != model.getValue("/root/main/acptinfo/item/calcscorcd")){
- fGetExamCureCodeList();
- }
- if (vMode == "i") {
- if( model.getValue("/root/main/examcurecdlist/item/excuroomcd") == ""){
- messageBox("처방코드에 대한 검사실이 존재하지", "I011", "처방코드의 검사실을 확인하세요.");
- return 0;
- }
- // 신규시 접수번호 가지고 오기
- model.setValue("/root/send/srch/prodroom", model.getValue("/root/main/examcurecdlist/item/excuroomcd").substr(3,2));
- model.setValue("/root/send/srch/prcpdd", model.getValue("/root/main/acptinfo/item/prcpdd"));
- submit("TRAED00105");
- model.setValue("/root/main/acptinfo/item/acptno", model.getValue("/root/main/acptnum/item/acptno"));
- model.setValue("/root/main/acptinfo/item/acptyear", getCurrentDate().substring(0,4));
- }
- if( model.getValue("/root/main/acptinfo/item/rcptdd" ) == "") {
- model.makeValue("/root/main/acptinfo/item/rcptdd", model.getValue("/root/main/acptinfo/item/prcpdd" ) );
- }
-
-
-
- model.duplicate("/root/send/ordlist1/mainordlist", "/root/main/acptinfo/item[1]");
- model.setValue("/root/send/ordlist1/mainordlist/execrid1", getUserId() );
- model.setValue("/root/main/acptinfo/item/prodnm", cmb_prodid.label);
- model.setValue("/root/send/ordlist1/mainordlist/basesuppdeptcd" , model.getValue("/root/send/globalinstance/instance1"));
-
-
- if (vMode == "d") {
- model.removenode("/root/send/ordlist1/mainordlist/orddrnm");
- model.removenode("/root/send/ordlist1/mainordlist/rrgstno1");
- model.removenode("/root/send/ordlist1/mainordlist/rrgstno2");
- model.removenode("/root/send/ordlist1/mainordlist/hngnm");
- model.removenode("/root/send/ordlist1/mainordlist/execprcpuniqno");
- model.removenode("/root/send/ordlist1/mainordlist/pid");
- model.removenode("/root/send/ordlist1/mainordlist/age");
- model.removenode("/root/send/ordlist1/mainordlist/calcscorcd");
- model.removenode("/root/send/ordlist1/mainordlist/prcpnm");
- model.removenode("/root/send/ordlist1/mainordlist/rcptyn");
- model.removenode("/root/send/ordlist1/mainordlist/prcpgenrflag");
- model.removenode("/root/send/ordlist1/mainordlist/orddeptcd");
- model.removenode("/root/send/ordlist1/mainordlist/orddepthngnm");
- model.removenode("/root/send/ordlist1/mainordlist/orddrid");
- model.removenode("/root/send/ordlist1/mainordlist/prcpdd");
- }
- var ret = submit(mapfile);
-
- } else {
- return 0;
- }
- model.refresh();
- return ret;
- }
- /**
- * 검사실 코드 조회
- */
- function fGetExamCureCodeList() {
- model.resetInstanceNode("/root/main/examcurecdlist/item");
- model.setValue("/root/send/srch/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- model.setValue("/root/send/srch/srchexamcurecd", model.getValue("/root/main/acptinfo/item/calcscorcd"));
- submit("TRAEB00201");
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,885;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">치기공 접수</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="btn_del" class="btn4_letter2" style="left:1134px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/main/acptinfo/item/acptno") != "") {
- model.setValue("/root/main/acptinfo/item/cnclyn", "Y");
- var ret = fSaveAcpt("d");
- init = false;
- /////fGetScreenInit();
- /////fGetAcptList();
- } else {
- messageBox("선택된 접수정보가", "I004", "선택 후 다시 시도해주세요.");
- }
- ]]>
- </script>
- </button>
- <button id="btn_prt" class="btn6_letter6" style="left:1px; top:3px; width:56px; height:22px; ">
- <caption>기록표 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/acptinfo/item/acptno") != ""){
- model.makeNode("/root/hidden/rex");
- model.copyNode("/root/hidden/rex", "/root/main/acptinfo/item");
-
- if( model.getValue("/root/hidden/rex/metalcd") == "all" ){
- model.setValue("/root/hidden/rex/metalcd", "" );
- } else {
- model.setValue("/root/hidden/rex/metalcd", combo1.label );
- }
-
- if( model.getValue("/root/hidden/rex/prodcd") == "all" ){
- model.setValue("/root/hidden/rex/prodcd", "" );
- } else {
- model.setValue("/root/hidden/rex/prodcd", cmb_prodcd.label );
- }
- model.setValue("/root/hidden/rex/enddd", ipt_enddd.label);
-
- exeReportPreview("RPAED00100", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true");
- } else {
- messageBox("접수된 환자의 기록만 출력이", "I006", "접수된 환자를 선택 후 출력하십시오.");
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1015px; top:3px; width:56px; height:22px; ">
- <caption>접수</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(model.getValue("/root/main/acptinfo/item/pid") != "") {
- if (model.getValue("/root/main/acptinfo/item/acptno") != "") {
- messageBox("이미 접수된 정보", "I009" , "접수정보를 변경하려면 변경 버튼을 누르세요.");
- } else {
- model.setValue("/root/send/ssmetalcd", model.getValue("/root/main/acptinfo/item/metalcd"));
- if( submit("TRAED00203") ){
- if ( parseFloat(model.getValue("/root/stckcnt/item/stockqty")) >= ( parseFloat(model.getValue("/root/main/acptinfo/item/useqty")) - parseFloat(model.getValue("/root/main/acptinfo/item/useqty_b")) ) ){
- init = false;
- model.setValue("/root/main/acptinfo/item/cnclyn", "N");
- var ret = fSaveAcpt("i");
- if (ret) { //true 이면
- btn_prt.dispatch("DOMActivate");
- fGetAcptList();
- }
- }else{
- messageBox("현재 재고량 보다 사용량이 더", "E003", "다시 입력해주세요.");
- }
- }
- }
- } else {
- messageBox("입력된 접수정보가", "I004" , "조회 후 접수하세요.");
- }
- ]]>
- </script>
- </button>
- <button id="btn_edit" class="btn4_letter2" style="left:1075px; top:3px; width:56px; height:22px; ">
- <caption>변경</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(model.getValue("/root/main/acptinfo/item/pid") != null) {
- if (model.getValue("/root/main/acptinfo/item/acptno") == "") {
- messageBox("입력된 접수번호가 ", "I004" , "신규접수인경우 접수 버튼을 누르세요.");
- } else {
- model.setValue("/root/send/ssmetalcd", model.getValue("/root/main/acptinfo/item/metalcd"));
- if( submit("TRAED00203") ){
- // 해당 금속의 재고량보다 사용량이 적을 경우
- if ( parseFloat(model.getValue("/root/stckcnt/item/stockqty")) >= ( parseFloat(model.getValue("/root/main/acptinfo/item/useqty")) - parseFloat(model.getValue("/root/main/acptinfo/item/useqty_b")) ) ){
- init = false;
- var ret = fSaveAcpt("u");
- fGetAcptList();
- }else{
- messageBox("현재 재고량 보다 사용량이 더", "E003", "다시 입력해주세요.");
- }
- }
- }
- } else {
- messageBox("선택된 접수 정보가 ", "I004");
- }
- ]]>
- </script>
- </button>
- <button id="btn_clear" class="btn4_letter3" style="left:943px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- init = true;
- fGetScreenInit();
- // fGetComboInit();
- ]]>
- </script>
- </button>
- <button id="btn_metalmng" class="btn6_letter10" visibility="hidden" style="left:106px; top:3px; width:104px; height:22px; ">
- <caption>기공물 관리대장 출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/rexprnt/acptlist/item");
- var acptlistCnt = getNodesetCount("/root/main/acptlist/item");
- var eqmtlistCnt = getNodesetCount("/root/main/eqmtlist/item");
- var eqmtcnlistCnt = getNodesetCount("/root/init/eqmtcnlist/item");
-
- if( acptlistCnt > 0 ) {
- for(var i = 1; i <= acptlistCnt ; i++ ) {
- model.makeNode("/root/rexprnt/acptlist/item["+ i +"]");
- model.copyNode("/root/rexprnt/acptlist/item["+ i +"]", "/root/main/acptlist/item["+ i +"]")
-
- //금속종류명 셋팅
- for(var a = 1; a <= eqmtlistCnt ; a++ ){
- if( model.getValue("/root/rexprnt/acptlist/item["+ i +"]/metalcd") == model.getValue("/root/main/eqmtlist/item[" + a + "]/basecd") ) {
- model.setValue("/root/rexprnt/acptlist/item["+ i +"]/metalcd" , model.getValue("/root/main/eqmtlist/item[" + a + "]/basecdflagdesc") );
- }
- }
- // 제작물명 셋팅
- for(var j = 1; j <= eqmtcnlistCnt ; j++ ){
- if( model.getValue("/root/rexprnt/acptlist/item["+ i +"]/prodcd") == model.getValue("/root/init/eqmtcnlist/item[" + j + "]/basecd") ) {
- model.setValue("/root/rexprnt/acptlist/item["+ i +"]/prodcd" , model.getValue("/root/init/eqmtcnlist/item[" + j + "]/basecdflagdesc") );
- }
- }
- }
- exeReportPreview("RPAED00101", "XMLSTR" , "" , "" , "false" , "", "", "", "", "false");
- } else {
- messageBox("환자LIST", "I004", "조회 또는 접수 후 출력하십시오.");
- }
- model.refresh();
-
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_main" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_srch" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:1px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line16" class="line_4" style="x1:1115px; y1:7px; x2:1115px; y2:29px; "/>
- <input id="ipt_srchpid" ref="/root/send/srch/srchpid" class="input_search" style="left:531px; top:8px; width:70px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_srchpid.value == "") {
- opt_srchhngnm.value = "";
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if ( event.keyCode == "13" ) {
- inputEnterKey("btn_select","DOMActivate");
- }
- ]]>
- </script>
- </input>
- <output id="opt_srchhngnm" ref="/root/send/srch/srchhngnm" class="output_search" style="left:624px; top:8px; width:80px; height:19px; "/>
- <button id="btn_select" class="btn1_letter2" style="left:1128px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- init = false;
- fGetScreenInit();
- fGetAcptList();
- ]]>
- </script>
- </button>
- <input id="ipt_srchtodd" ref="/root/send/srch/srchtodd" class="input_s_essential" inputtype="date" style="left:342px; top:8px; width:90px; height:19px; "/>
- <input id="ipt_srchfromdd" ref="/root/send/srch/srchfromdd" class="input_s_essential" inputtype="date" style="left:233px; top:8px; width:90px; height:19px; "/>
- <select1 id="cmb_srchsearch" ref="/root/send/srch/srchsearch" class="combo_search" appearance="minimal" style="left:102px; top:8px; width:60px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp_1/templst/V001">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var curDD = getCurrentDate();
- var idate = new Date();
-
- if (cmb_srchsearch.value == "03" ) {
- ipt_srchfromdd.disabled = false;
- ipt_srchtodd.disabled = false;
- } else {
- ipt_srchfromdd.disabled = true;
- ipt_srchtodd.disabled = true;
- }
-
- // 오늘이 선택되면 등록번호 와 성명을 지움
- if (cmb_srchsearch.value == "01") {
- model.setValue("/root/send/srch/srchpid", "" ); // 등록번호
- model.setValue("/root/send/srch/srchhngnm" , "" ); // 성명
- }
- if (cmb_srchsearch.value == "02") {
- // 일수만큼 차감하고 문자형으로 변형
- var chacng_date = idate.getAddDate(-7, "D").getDateFormat();
- model.setValue("/root/send/srch/srchfromdd" , chacng_date ); // 조회시작일자
- model.setValue("/root/send/srch/srchtodd" , curDD ); // 조회종료일자
- } else {
- model.setValue("/root/send/srch/srchfromdd" , curDD ); // 조회시작일자
- model.setValue("/root/send/srch/srchtodd" , curDD ); // 조회종료일자
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="btn_search1" class="icon_search" style="left:604px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 선택화면 Call
- modal("SPAVT00100");
-
- // 정상인 경우 가져온값 setting
- if (model.getValue("/root/temp/okflag") == "ok") {
- // 조회조건에 값넣기
- model.setValue("/root/send/srch/srchpid", model.getValue("/root/temp/templst/item/pid" ) );
- model.setValue("/root/send/srch/srchhngnm", model.getValue("/root/temp/templst/item/hngnm" ) );
-
- // 임시 Node 삭제
- model.removenode("/root/temp/okflag");
- model.removenode("/root/temp/templst/item");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="lbl_srchpid" class="search_name" style="left:442px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <caption id="lbl_srchsearch" class="search_name" style="left:12px; top:9px; width:86px; height:17px; ">조회조건 :</caption>
- <caption id="lbl_srchdd" class="search_name" style="left:170px; top:9px; width:60px; height:17px; ">기간 :</caption>
- <caption id="lbl_~" class="search_no_b" style="left:327px; top:10px; width:12px; height:17px; ">~</caption>
- <bool id="bool1" checkvalue="Y,N" ref="/root/send/srch/srchoutordyn" style="left:978px; top:8px; width:25px; height:20px; "/>
- <caption id="caption75" style="left:1001px; top:9px; width:52px; height:20px; ">외주</caption>
- <select1 id="combo2" ref="/root/send/srch/srchstate" class="combo_search" appearance="minimal" style="left:779px; top:8px; width:56px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp_1/templst/V002">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="search_name" style="left:716px; top:9px; width:70px; height:17px; ">상태 :</caption>
- <caption id="caption4" class="search_name" style="left:843px; top:8px; width:65px; height:17px; ">금속 :</caption>
- <select1 id="cmb_metalcd" ref="/root/send/srch/srchmetalcd" class="combo_search" appearance="minimal" style="left:907px; top:8px; width:65px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/eqmtlist/item">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </select1>
- <bool id="bool_srchcnclyn" checkvalue="Y,N" ref="/root/send/srch/srchcnclyn" style="left:1032px; top:8px; width:25px; height:20px; "/>
- <caption id="caption7" style="left:1055px; top:9px; width:52px; height:20px; ">취소여부</caption>
- </group>
- <multilinegrid id="grd_maininfo" nodeset="/root/main/acptlist/item" caption="접수번호^등록번호^성별^처방명^처방일자^처치일자^상태^금속종류^제작자^사용량^수량|접수번호^환자명^나이^처방명^예약일자^완료일자^상태^제작물^외주여부^사용량^수량" colsep="^" colwidth="100, 95, 60, 270, 95, 95, 70, 100, 100, 80, 80" dataheight="23" defaultrows="1" ellipsis="true" extendlastcol="scroll" focuscolor="#b9e5fb" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" mergecellsfixedrows="bycolrec" style="left:0px; top:75px; width:1195px; height:480px; text-align:center; ">
- <row>
- <col ref="acptno" rowspan="2" type="output" format="9999-99-9999"/>
- <col ref="pid" type="output"/>
- <col ref="sex" type="output"/>
- <col ref="prcpnm" rowspan="2" text-alig="left" style="text-align:left; "/>
- <col ref="prcpdd" format="yyyy-mm-dd"/>
- <col ref="execdd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="state" rowspan="2" type="combo">
- <choices>
- <itemset nodeset="/root/main/codelist/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="metalcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/eqmtlist/item">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="prodid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/execrcodelist/execrcode">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col ref="useqty" rowspan="2" style="text-align:right; "/>
- <col ref="prcpqty" rowspan="2" style="text-align:right; "/>
- </row>
- <row>
- <col ref="hngnm" type="output"/>
- <col ref="age" type="output"/>
- <col ref="rsrvdd" format="yyyy-mm-dd"/>
- <col ref="enddd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="prodcd" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/main/eqmtcnlist/item">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </col>
- <col ref="outordyn" style="text-align:center; "/>
- </row>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- fGetAcptListClick();
- ]]>
- </script>
- </multilinegrid>
- <caption id="caption45" class="tit_2" style="left:5px; top:55px; width:72px; height:14px; ">접수정보</caption>
- <line id="line18" class="line_1" style="x1:0px; y1:70px; x2:1195px; y2:70px; "/>
- <group id="grp_pidinfo" style="left:0px; top:560px; width:210px; height:180px; ">
- <caption id="lbl_pidinfo" class="tit_2" style="left:5px; top:5px; width:110px; height:13px; ">환자정보</caption>
- <line id="line19" class="line_1" style="x1:0px; y1:20px; x2:204px; y2:20px; "/>
- <caption id="lbl_acptno" class="cell_1" style="left:0px; top:25px; width:80px; height:20px; text-align:center; vertical-align:middle; ">접수번호</caption>
- <input id="ipt_acptno" ref="/root/main/acptinfo/item/acptno" class="input_essential" disabled="true" format="9999-99-9999" style="left:84px; top:25px; width:120px; height:19px; "/>
- <caption id="lbl_pid" class="cell_1" style="left:0px; top:47px; width:80px; height:20px; text-align:center; vertical-align:middle; ">등록번호</caption>
- <input id="ipt_pid" ref="/root/main/acptinfo/item/pid" class="input_essential" maxlength="10" style="left:84px; top:47px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_search2", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_search2" class="icon_search" style="left:187px; top:48px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.resetInstanceNode("/root/send/ordlist1/mainordlist");
- // 선택화면 Call
- clearParameter("SPAVT00110_PID");
- model.getValue("/root/main/acptinfo/item/pid");
- setParameter ("SPAVT00110_PID", ipt_pid.value);
-
- modal("SPAED00100");
- // 정상인 경우 가져온값 setting
- if (model.getValue("/root/temp/okflag") == "ok") {
- // 조회조건에 값넣기
- model.setValue("/root/main/acptinfo/item/pid", model.getValue("/root/send/ordlist1/mainordlist/pid" ) );
- model.setValue("/root/main/acptinfo/item/hngnm", model.getValue("/root/send/ordlist1/mainordlist/hngnm" ) );
- model.setValue("/root/main/acptinfo/item/rrgstno1", model.getValue("/root/send/ordlist1/mainordlist/rrgstno1" ) );
- model.setValue("/root/main/acptinfo/item/rrgstno2", model.getValue("/root/send/ordlist1/mainordlist/rrgstno2" ) );
- model.setValue("/root/main/acptinfo/item/age", model.getValue("/root/send/ordlist1/mainordlist/age" ) );
- model.setValue("/root/main/acptinfo/item/sex", model.getValue("/root/send/ordlist1/mainordlist/sna").substr(0 , 1) );
- model.setValue("/root/main/acptinfo/item/calcscorcd", model.getValue("/root/send/ordlist1/mainordlist/calcscorcd" ) );
- model.setValue("/root/main/acptinfo/item/prcpnm", model.getValue("/root/send/ordlist1/mainordlist/prcpnm" ) );
- model.setValue("/root/main/acptinfo/item/orddrid", model.getValue("/root/send/ordlist1/mainordlist/orddrid" ) );
- model.setValue("/root/main/acptinfo/item/orddrnm", model.getValue("/root/send/ordlist1/mainordlist/orddrnm" ) );
- model.setValue("/root/main/acptinfo/item/orddeptcd", model.getValue("/root/send/ordlist1/mainordlist/orddeptcd" ) );
- model.setValue("/root/main/acptinfo/item/orddepthngnm", model.getValue("/root/send/ordlist1/mainordlist/orddepthngnm" ) );
- model.setValue("/root/main/acptinfo/item/prcpdd", model.getValue("/root/send/ordlist1/mainordlist/prcpdd" ) );
- model.setValue("/root/main/acptinfo/item/prcpqty", model.getValue("/root/send/ordlist1/mainordlist/prcpqty" ) );
- model.setValue("/root/main/acptinfo/item/rcptyn", model.getValue("/root/send/ordlist1/mainordlist/rcptyn" ) );
- model.setValue("/root/main/acptinfo/item/insuflag", model.getValue("/root/send/ordlist1/mainordlist/insukind" ) );
- model.setValue("/root/main/acptinfo/item/execprcpuniqno", model.getValue("/root/send/ordlist1/mainordlist/execprcpuniqno" ) );
- model.setValue("/root/main/acptinfo/item/prcpgenrflag", model.getValue("/root/send/ordlist1/mainordlist/prcpgenrflag" ) );
- model.setValue("/root/main/acptinfo/item/execdd", model.getValue("/root/send/ordlist1/mainordlist/execdt" ).substr(0,8) );
- model.setValue("/root/main/acptinfo/item/useqty", "0" );
- model.setValue("/root/main/acptinfo/item/useqty_b", "0" );
-
-
- if( model.getValue("/root/send/ordlist1/mainordlist/rcptdd" ) == "") {
- model.setValue("/root/main/acptinfo/item/rcptdd", model.getValue("/root/send/ordlist1/mainordlist/prcpdd" ) );
- }else{
- model.setValue("/root/main/acptinfo/item/rcptdd", model.getValue("/root/send/ordlist1/mainordlist/rcptdd" ) );
- }
-
- //20171123 참고사항 보여주기
- model.setValue("/root/main/acptinfo/item/bigo", model.getValue("/root/send/ordlist1/mainordlist/prcpdelivefact" ) );
-
- // 외래일 경우에만 수납금액 조회 2010.12.20
- //입원일 경우도 수납금액 조회하도록 요청 by kya 2011.07.08
- //if( model.getValue("/root/send/ordlist1/mainordlist/ioflag") == "O" ){
- if( submit("TRAED00109") ) {
- var total = 0;
- if(model.getValue("/root/main/rcptamtlst/item/hospaddamt") == "" ){
- model.makeValue("/root/main/rcptamtlst/item/hospaddamt", "0");
- }
-
- if(model.getValue("/root/main/rcptamtlst/item/calcamt") == ""){
- model.makeValue("/root/main/rcptamtlst/item/calcamt", "0");
- }
-
- total = parseFloat(model.getValue("/root/main/rcptamtlst/item/hospaddamt")) + parseFloat(model.getValue("/root/main/rcptamtlst/item/calcamt"));
- // alert( total + " = " + model.getValue("/root/main/rcptamtlst/item/ownbamt") + " + " + model.getValue("/root/main/rcptamtlst/item/oscldiscamt") );
- model.setValue("/root/main/acptinfo/item/rcptamt", total );
- model.removenode("/root/main/rcptamtlst");
-
- }
- //}
-
- // 치식사항 조회
- model.setValue("/root/send/srch/prcpno", model.getValue("/root/send/ordlist1/mainordlist/prcpno" ) );
- model.setValue("/root/send/srch/prcpdd", model.getValue("/root/send/ordlist1/mainordlist/prcpdd" ) );
- submit("TRAED00107");
- /////////////////// 치석사항 나누기 //////////////////
- var tootfact11 = "";
- var tootfact12 = "";
- var tootfact21 = "";
- var tootfact22 = "";
-
- var tootfact = model.getValue("/root/main/tootcode/item/tootfact");
- if( tootfact != "" ) {
- var tootarry = new Array();
- tootarry = tootfact.split("#");
- for ( i = 1 ; i < tootarry.length ; i++ ) {
- if("1" == tootarry[i].substring(0,1) || "5" == tootarry[i].substring(0,1) ) {
- tootfact11 = tootfact11 + " " + tootarry[i].substring(1,2);
- } else if ("2" == tootarry[i].substring(0,1) || "6" == tootarry[i].substring(0,1) ) {
- tootfact12 = tootfact12 + " " + tootarry[i].substring(1,2);
- } else if ("3" == tootarry[i].substring(0,1) || "7" == tootarry[i].substring(0,1) ) {
- tootfact21 = tootfact21 + " " + tootarry[i].substring(1,2);
- } else if ("4" == tootarry[i].substring(0,1) || "8" == tootarry[i].substring(0,1) ) {
- tootfact22 = tootfact22 + " " + tootarry[i].substring(1,2);
- } else {
- tootfact11 = tootfact11 + " " + tootarry[i].substring(1,2);
- }
- }
- /////////////////// #11, #21 치식 정렬 바꾸기 //////////////////
- var temp11 = "";
- var tootarry_11 = new Array();
- var last_11 = "";
- tootarry_11 = tootfact11.split(" ");
- for ( var i = 0 ; i < tootfact11.length ; i++ ) {
- for( var j = 1 ; j < tootfact11.length ; j++ ) {
- if( tootarry_11[i] > tootarry_11[j] ){
- temp11 = tootarry_11[i];
- tootarry_11[i] = tootarry_11[j];
- tootarry_11[j] = temp11;
- }
- }
- }
-
- var temp21 = "";
- var tootarry_21 = new Array();
- var last_21 = "";
- tootarry_21 = tootfact21.split(" ");
- for ( var i = 0 ; i < tootfact21.length ; i++ ) {
- for( var j = 1 ; j < tootfact21.length ; j++ ) {
- if( tootarry_21[i] > tootarry_21[j] ){
- temp21 = tootarry_21[i];
- tootarry_21[i] = tootarry_21[j];
- tootarry_21[j] = temp21;
- }
- }
- }
- }
-
- for ( var i = 0 ; i < tootarry_11.length ; i++ ) {
- last_11 = last_11 + " " + tootarry_11[i];
- }
- for ( var i = 0 ; i < tootarry_21.length ; i++ ) {
- last_21 = last_21 + " " + tootarry_21[i];
- }
-
- model.setValue("/root/main/acptinfo/item/tootfact11", last_11 );
- model.setValue("/root/main/acptinfo/item/tootfact12", tootfact12);
- model.setValue("/root/main/acptinfo/item/tootfact21", last_21 );
- model.setValue("/root/main/acptinfo/item/tootfact22", tootfact22 );
-
- // 입.외구분 셋팅
- if(model.getValue("/root/main/acptinfo/item/prcpgenrflag") == "O" ) {
- combo11.value = "O";
- }
- if(model.getValue("/root/main/acptinfo/item/prcpgenrflag") == "I" ) {
- combo11.value = "I";
- }
- if(model.getValue("/root/main/acptinfo/item/prcpgenrflag") == "H" ) {
- combo11.value = "H";
- }
- model.setValue("/root/send/srch/calcscorcd", model.getValue("/root/send/ordlist1/mainordlist/calcscorcd" ) );
- submit("TRAED00108");
- model.setValue("/root/main/acptinfo/item/metalcd" , model.getValue("/root/main/rsltclst/item/rsltclscd1") );
- combo1.dispatch("xforms-value-changed");
- model.setValue("/root/main/acptinfo/item/prodcd" , model.getValue("/root/main/rsltclst/item/rsltclscd2") );
- // 임시 Node 삭제
- model.removenode("/root/temp/okflag");
- model.refresh();
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="cell_1" style="left:0px; top:69px; width:80px; height:20px; text-align:center; vertical-align:middle; ">성 명</caption>
- <output id="opt_hngnm" ref="/root/main/acptinfo/item/hngnm" class="output_search" style="left:84px; top:69px; width:120px; height:19px; "/>
- <caption id="lbl_rrgstno" class="cell_1" style="left:0px; top:91px; width:80px; height:20px; text-align:center; vertical-align:middle; ">주민번호</caption>
- <input id="ipt_rrgstno1" ref="/root/main/acptinfo/item/rrgstno1" class="output_search" maxlength="6" format="999999" style="left:84px; top:91px; width:50px; height:19px; "/>
- <caption id="caption48" class="search_n_b" style="left:136px; top:93px; width:12px; height:17px; font-weight:bolder; ">-</caption>
- <input id="ipt_rrgstno2" ref="/root/main/acptinfo/item/rrgstno2" class="output_search" maxlength="7" format="9999999" style="left:149px; top:91px; width:55px; height:19px; "/>
- <caption id="lbl_sexage" class="cell_1" style="left:0px; top:113px; width:80px; height:20px; text-align:center; vertical-align:middle; ">성 별</caption>
- <output id="opt_sex" ref="/root/main/acptinfo/item/sex" class="output_search" style="left:84px; top:113px; width:50px; height:19px; "/>
- <caption id="caption3" class="cell_1" style="left:0px; top:135px; width:80px; height:20px; text-align:center; vertical-align:middle; ">나 이</caption>
- <output id="opt_age" ref="/root/main/acptinfo/item/age" class="output_search" style="left:84px; top:135px; width:50px; height:19px; "/>
- <caption id="lbl_telno" class="cell_1" style="left:0px; top:157px; width:80px; height:20px; text-align:center; vertical-align:middle; ">전화번호</caption>
- <input id="ipt_telno" ref="/root/main/acptinfo/item/telno" class="input_default" imemode="hangul" maxlength="100" style="left:84px; top:157px; width:120px; height:19px; "/>
- </group>
- <group id="grp_prcpinfo" disabled="true" style="left:207px; top:560px; width:781px; height:180px; ">
- <caption id="caption31" class="tit_2" style="left:5px; top:5px; width:110px; height:13px; ">처방정보</caption>
- <line id="line5" class="line_1" style="x1:0px; y1:20px; x2:781px; y2:20px; "/>
- <caption id="lbl_rsrvdd" class="cell_1" style="left:0px; top:25px; width:80px; height:20px; text-align:center; vertical-align:middle; ">예약일자</caption>
- <input id="ipt_rsrvdd" ref="/root/main/acptinfo/item/rsrvdd" class="input_essential" inputtype="date" style="left:84px; top:25px; width:100px; height:19px; "/>
- <caption id="lbl_prcpdd" class="cell_1" style="left:188px; top:25px; width:80px; height:20px; text-align:center; vertical-align:middle; ">처방일자</caption>
- <input id="ipt_prcpdd" ref="/root/main/acptinfo/item/prcpdd" class="input_essential" disabled="true" inputtype="date" style="left:272px; top:25px; width:100px; height:19px; "/>
- <caption id="lbl_execdd" class="cell_1" style="left:376px; top:25px; width:80px; height:20px; text-align:center; vertical-align:middle; ">처치일자</caption>
- <input id="ipt_execdd" ref="/root/main/acptinfo/item/execdd" class="input_essential" inputtype="date" style="left:460px; top:25px; width:100px; height:19px; "/>
- <caption id="lbl_prcp" class="cell_1" style="left:0px; top:47px; width:80px; height:20px; text-align:center; vertical-align:middle; ">처방명</caption>
- <input id="ipt_calcscorcd" ref="/root/main/acptinfo/item/calcscorcd" class="input_default" style="left:84px; top:47px; width:100px; height:19px; "/>
- <input id="opt_prcpnm" ref="/root/main/acptinfo/item/prcpnm" class="input_default" style="left:188px; top:47px; width:591px; height:19px; "/>
- <caption id="lbl_orddr" class="cell_1" style="left:0px; top:69px; width:80px; height:20px; text-align:center; vertical-align:middle; ">처방의</caption>
- <input id="ipt_orddrid" ref="/root/main/acptinfo/item/orddrid" class="input_default" style="left:84px; top:69px; width:100px; height:19px; "/>
- <input id="opt_orddrnm" ref="/root/main/acptinfo/item/orddrnm" class="input_default" style="left:188px; top:69px; width:184px; height:19px; "/>
- <caption id="lbl_orddept" class="cell_1" style="left:376px; top:69px; width:80px; height:20px; text-align:center; vertical-align:middle; ">처방과</caption>
- <input id="ipt_orddeptcd" ref="/root/main/acptinfo/item/orddeptcd" class="input_default" style="left:460px; top:69px; width:100px; height:19px; "/>
- <input id="opt_orddepthngnm" ref="/root/main/acptinfo/item/orddepthngnm" class="input_default" style="left:564px; top:69px; width:215px; height:19px; "/>
- <caption id="lbl_state" class="cell_1" style="left:0px; top:91px; width:80px; height:20px; text-align:center; vertical-align:middle; ">상태</caption>
- <select1 id="cmb_state" ref="/root/main/acptinfo/item/state" class="combo_search" appearance="minimal" style="left:84px; top:91px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/codelist/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption38" class="cell_1" style="left:188px; top:91px; width:80px; height:20px; text-align:center; vertical-align:middle; ">수납여부</caption>
- <select1 id="combo10" ref="/root/main/acptinfo/item/rcptyn" class="combo_search" appearance="minimal" style="left:272px; top:91px; width:100px; height:19px; color:#c0c0c0; ">
- <choices>
- <itemset nodeset="/root/main/codelist2/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // model.setValue("/root/main/partinfo/item/dntgbm", "B001");
- ]]>
- </script>
- </select1>
- <caption id="caption40" class="cell_1" style="left:376px; top:91px; width:80px; height:20px; text-align:center; vertical-align:middle; ">입/외구분</caption>
- <select1 id="combo11" ref="/root/main/acptinfo/item/prcpgenrflag" class="combo_search" appearance="minimal" style="left:460px; top:91px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/codelist1/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="lbl_tootfact" class="cell_1" style="left:0px; top:113px; width:80px; height:42px; text-align:center; vertical-align:middle; ">치식</caption>
- <caption id="lbl_up" class="cell_1" style="left:84px; top:113px; width:25px; height:20px; text-align:left; vertical-align:middle; ">상</caption>
- <input id="ipt_tootfact11" ref="/root/main/acptinfo/item/tootfact11" class="input_default" style="left:113px; top:113px; width:127px; height:19px; text-align:right; padding-right:5; "/>
- <input id="ipt_tootfact12" ref="/root/main/acptinfo/item/tootfact12" class="input_default" style="left:245px; top:113px; width:127px; height:19px; text-align:left; "/>
- <caption id="lbl_down" class="cell_1" style="left:84px; top:135px; width:25px; height:20px; text-align:left; vertical-align:middle; ">하</caption>
- <input id="ipt_tootfact21" ref="/root/main/acptinfo/item/tootfact21" clas="input_default" style="left:113px; top:135px; width:127px; height:19px; text-align:right; padding-right:5; "/>
- <input id="ipt_tootfact22" ref="/root/main/acptinfo/item/tootfact22" class="input_default" style="left:245px; top:135px; width:127px; height:19px; text-align:left; "/>
- <caption id="lbl_insuflag" class="cell_1" style="left:376px; top:113px; width:80px; height:20px; text-align:center; vertical-align:middle; ">보험종류</caption>
- <select1 id="cmb_insuflag" ref="/root/main/acptinfo/item/insuflag" class="combo_search" appearance="minimal" style="left:460px; top:113px; width:288px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/initinsukind/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption46" class="cell_1" style="left:376px; top:135px; width:80px; height:20px; text-align:center; vertical-align:middle; ">수납금액</caption>
- <input id="input29" ref="/root/main/acptinfo/item/rcptamt" class="input_default" format="#,###" style="left:460px; top:135px; width:100px; height:19px; text-align:right; "/>
- <caption id="caption5" style="left:562px; top:137px; width:25px; height:15px; ">원</caption>
- <caption id="caption8" class="cell_1" style="left:565px; top:90px; width:55px; height:20px; text-align:center; vertical-align:middle; ">수량</caption>
- <input id="input1" ref="/root/main/acptinfo/item/prcpqty" class="input_default" style="left:624px; top:91px; width:60px; height:19px; "/>
- </group>
- <group id="grp_prodinfo" style="left:991px; top:560px; width:204px; height:180px; ">
- <caption id="caption12" class="tit_2" style="left:5px; top:5px; width:110px; height:13px; ">제작정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:204px; y2:20px; "/>
- <caption id="lbl_prodcd" class="cell_1" style="left:0px; top:47px; width:80px; height:20px; text-align:center; vertical-align:middle; ">제작물</caption>
- <select1 id="cmb_prodcd" ref="/root/main/acptinfo/item/prodcd" class="combo_search" appearance="minimal" style="left:84px; top:48px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/eqmtcnlist/item">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="lbl_enddd" class="cell_1" style="left:0px; top:69px; width:80px; height:20px; text-align:center; vertical-align:middle; ">완성일자</caption>
- <input id="ipt_enddd" ref="/root/main/acptinfo/item/enddd" class="input_essential" inputtype="date" style="left:84px; top:70px; width:120px; height:19px; "/>
- <caption id="lbl_metalcd" class="cell_1" style="left:0px; top:25px; width:80px; height:20px; text-align:center; vertical-align:middle; ">금속종류</caption>
- <select1 id="combo1" ref="/root/main/acptinfo/item/metalcd" class="combo_search" appearance="minimal" style="left:84px; top:25px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/eqmtlist/item">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/srch/basecdcnts", model.getValue("/root/main/acptinfo/item/metalcd" ));
- model.setValue("/root/send/basecdflag", "I");
- submit("TRAED00104");
- ]]>
- </script>
- </select1>
- <caption id="lbl_useqty" class="cell_1" style="left:0px; top:91px; width:80px; height:20px; text-align:center; vertical-align:middle; ">사용량</caption>
- <input id="ipt_useqty" ref="/root/main/acptinfo/item/useqty" class="input_default" format="###.#" mask="include" roundmode="round" roundposition="-3" showmask="true" style="left:84px; top:91px; width:120px; height:19px; text-align:right; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var useqty = ipt_useqty.label;
- if( useqty >= 1000 ) {
- messageBox ( "사용량은 999 이하의 양을" , "C001" );
- ipt_useqty.value = "";
- }
- ]]>
- </script>
- </input>
- <caption id="lbl_prodid" class="cell_1" style="left:0px; top:113px; width:80px; height:20px; text-align:center; vertical-align:middle; ">제작자명</caption>
- <select1 id="cmb_prodid" ref="/root/main/acptinfo/item/prodid" class="combo_search" appearance="minimal" style="left:84px; top:113px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/execrcodelist/execrcode">
- <label ref="basecdflagdesc"/>
- <value ref="basecd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/acptinfo/item/prodnm", cmb_prodid.label);
- ]]>
- </script>
- </select1>
- <caption id="lbl_outordyn" class="cell_1" style="left:0px; top:135px; width:80px; height:20px; text-align:center; vertical-align:middle; ">외주여부</caption>
- <select1 id="cmb_outordyn" ref="/root/main/acptinfo/item/outordyn" class="combo_search" appearance="minimal" style="left:84px; top:135px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/comboYn/item">
- <label ref="label"/>
- <value ref="value"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/main/acptinfo/item/outordyn", cmb_outordyn.label);
- ]]>
- </script>
- </select1>
- </group>
- <caption id="lbl_bigo" class="cell_1" style="left:207px; top:717px; width:80px; height:20px; text-align:center; vertical-align:middle; ">비고</caption>
- <input id="ipt_bigo" ref="/root/main/acptinfo/item/bigo" class="input_default" imemode="hangul" maxlength="100" style="left:291px; top:717px; width:697px; height:19px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|