12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388 |
- <?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="">
- <init>
- <P0117list>
- <P0117>
- <cdnm/>
- <cdid/>
- <cdval/>
- <dispseq/>
- </P0117>
- </P0117list>
- </init>
- <main>
- <grd1>
- <unexeclist/>
- </grd1>
- <grd2>
- <unexecordlist/>
- </grd2>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <item1>
- <clcj>
- <edicd/>
- <spclcd/>
- <remfact/>
- <spclspec/>
- <spclmemoflag/>
- <row/>
- <basespclcd/>
- <edicdflag/>
- </clcj>
- </item1>
- </main>
- <send>
- <pid/>
- <patnm/>
- <rdo/>
- <chk/>
- <chk2/>
- <orddeptcd/>
- <prcphopedd/>
- <orddd/>
- <orddrid/>
- <insukind/>
- <cretno/>
- <diag>
- <pid/>
- <orddd/>
- <ioflag/>
- <deptcd/>
- <row/>
- <instcd/>
- <insukind/>
- </diag>
- <datalist/>
- <delclcj>
- <clcj>
- <delprcpdd/>
- <delprcpno/>
- <delprcphistno/>
- <delexecprcpseqno/>
- <delpid/>
- </clcj>
- </delclcj>
- <insclcj>
- <clcj>
- <prcpdd/>
- <prcpno/>
- <prcphistno/>
- <execprcpseqno/>
- <inspid/>
- <unitflag/>
- <spclmemoflag/>
- <edicd/>
- <spclcd/>
- <spclspec/>
- <remfact/>
- </clcj>
- </insclcj>
- <payflag>
- <list>
- <payprcpdd/>
- <payprcpno/>
- <payprcphistno/>
- <paypayflagcd/>
- </list>
- </payflag>
- </send>
- <hidden>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <autoflag/>
- </cond>
- </sppmc02500>
- <rcv>
- <patInfo>
- <pid/>
- <patnm/>
- </patInfo>
- </rcv>
- <popupmenu>
- <!-- 2008.05.13 주석처리(외래미시행처방화면에서 급비변경 불가
- <oprc>
- <item>
- <name>급여</name>
- <func>fOrdChangePay</func>
- </item>
- <item>
- <name>전액본인</name>
- <func>fOrdChangeNoPay</func>
- </item>
- <item>
- <name>비급여</name>
- <func>fOrdChangeGnrl</func>
- </item>
- </oprc>
- -->
- </popupmenu>
- <oprc/>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/init"/>
- <submission id="TRPID21401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grd1"/>
- <submission id="TRPID21402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grd2"/>
- <submission id="TRPID21403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TXPID21401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXPID21402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grd2"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- grd_outunexecprcpord.colDisabled(grd_outunexecprcpord.colRef("diagyn")) = true;
-
- model.removeNodeset("/root/main/grd1/unexeclist");
- model.removeNodeset("/root/main/grd2/unexecordlist");
- fInitialize(); // 기본데이터 초기화
-
- /*
- model.setValue("/root/send/pid","00036823");
- model.setValue("/root/send/orddeptcd","");
- model.setValue("/root/send/chk","Y");
- */
-
- var ipt_pid = model.getValue("/root/send/pid");
-
- if (ipt_pid) {
-
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- model.setValue("/root/hidden/sppmc02500/cond/autoflag","Y");
-
- model.makeNode("root/main/popupendflag");
-
- // 환자 조회
- if (submit("TRPID21403")) {
- var patInfocnt = getNodesetCount("/root/hidden/rcv/patInfo");
-
- if (patInfocnt == 1) {
- model.setValue("/root/send/patnm", model.getValue("/root/hidden/rcv/patInfo/patnm"));
- model.refresh();
-
- var controlObj = document.controls("btn_srch");
- controlObj.dispatch("DOMActivate");
-
- } else if (patInfocnt > 1) {
- fOJBaseInfoRef();
- }
- }
-
- } else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
-
- ]]>
- </script>
- <submission id="TXPID21403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden"/>
- </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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fInitialize()
- {
- zbcfGetCodeList(
- new Array("P0117"),
- new Array("/root/init/P0117list") // 특정내역
- );
- //model.setValue("/root/send/pid","00036823");
- model.makeNode("/root/send/patnm");
- model.makeNode("/root/send/rdo");
- model.makeNode("/root/send/prcphopedd");
- model.makeNode("/root/send/orddd");
- model.makeNode("/root/send/orddrid");
- model.makeNode("/root/send/insukind");
- model.makeNode("/root/send/datalist");
- model.makeNode("/root/send/cretno");
- model.makeNode("/root/send/chk2");
- model.setValue("/root/send/chk2", "");
- model.removeNodeset("/root/send/delclcj/clcj");
- model.removeNodeset("/root/send/insclcj/clcj");
- }
-
- function fOJBaseInfoRef()
- {
- //modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
- open("../../../pam/patinfomngtweb/xrw/SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
- if ( model.getValue("/root/main/popupendflag") == "ok" ) {
- model.setValue("/root/send/pid",model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/send/patnm",model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- }
- model.setValue("/root/hidden/sppmc02500/cond/autoflag","");
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.refresh();
- }
-
- // 입력된 특정내역의 길이를 체크한다.
- function fCheckSpclSpecLength() {
- var spclspec = model.getValue("/root/main/item1/clcj/spclspec");
- return spclspec.isByteSize(1050); // (stringHelper.js) 문자열의 Byte 크기가 제한값을 벗어나는지 체크 (벗어나면 false 리턴)
- }
-
- // 조회
- function fSrchUnexecOrdList() {
- grp_spcl.visible = false;
- model.removeNodeset("/root/main/grd1/unexeclist");
- model.removeNodeset("/root/main/grd2/unexecordlist");
- model.removeNodeset("/root/send/delclcj/clcj");
- model.removeNodeset("/root/send/insclcj/clcj");
- // 일자별 목록을 선택했을 때 미시행오더를 조회해오는 조건이 전체 조회에 영향을 미치므로 초기화한다.
- //model.resetInstanceNode("/root/send/orddeptcd");
-
- // 외래미시행처방일자 목록조회
- if (submit("TRPID21401")) {
- var unexeclistcnt = getNodesetCount("/root/main/grd1/unexeclist");
-
- if (unexeclistcnt >= 1) {
- grd_outunexecprcp.isselected(1) = true;
-
- grp_spcl.visible = false; // 특정내역 상세용 Group
- var row = "1";
-
- model.setValue("/root/send/pid",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("pid")));
- model.setValue("/root/send/orddd",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("orddd")));
- model.setValue("/root/send/prcphopedd",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("prcphopedd")));
- model.setValue("/root/send/orddeptcd",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("orddeptcd")));
- model.setValue("/root/send/orddrid",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("orddrid")));
- model.setValue("/root/send/insukind",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("insukind")));
- model.setValue("/root/send/cretno",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("cretno")));
- // model.setValue("/root/send/acptseqno",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("acptseqno")));
-
- // 외래미시행처방 미시행 오더 조회
- submit("TRPID21402");
-
- var judgend = model.getValue("/root/main/grd2/unexecordlist[1]/judgendflag");
-
- if (judgend == "Y") {
- btn_judgend.visible = false;
- btn_judgcancel.visible = true;
- } else {
- btn_judgend.visible = true;
- btn_judgcancel.visible = false;
- }
-
-
- grd_outunexecprcpord.clearStatus();
- grd_outunexecprcpord.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- model.resetInstanceNode("/root/main/item1/clcj");
- model.removeNodeset("/root/send/delclcj/clcj");
- model.removeNodeset("/root/send/insclcj/clcj");
- model.resetInstanceNode("/root/send/datalist");
- }
- }
- }
-
- // 타과포함조회, 시행처방포함조회 체크 선택시 해당 일자의 미시행오더를 조회하도록 한다.
- function fSrchUnexecOrdList2() {
- grp_spcl.visible = false;
- //model.removeNodeset("/root/main/grd1/unexeclist");
- model.removeNodeset("/root/main/grd2/unexecordlist");
- model.removeNodeset("/root/send/delclcj/clcj");
- model.removeNodeset("/root/send/insclcj/clcj");
- // 일자별 목록을 선택했을 때 미시행오더를 조회해오는 조건이 전체 조회에 영향을 미치므로 초기화한다.
- model.resetInstanceNode("/root/send/orddeptcd");
- model.refresh();
- // 외래미시행처방일자 목록조회
- var row = grd_outunexecprcp.row;
- if (row < 1) row = 1; // 선택되지 않은 상태면 default로 첫 row 를 준다.
- model.setValue("/root/send/pid",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("pid")));
- model.setValue("/root/send/orddd",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("orddd")));
- model.setValue("/root/send/prcphopedd",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("prcphopedd")));
- model.setValue("/root/send/orddeptcd",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("orddeptcd")));
- model.setValue("/root/send/orddrid",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("orddrid")));
- model.setValue("/root/send/insukind",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("insukind")));
- model.setValue("/root/send/cretno",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("cretno")));
-
- // 외래미시행처방 미시행 오더 조회
- submit("TRPID21402");
-
- var judgend = model.getValue("/root/main/grd2/unexecordlist[1]/judgendflag");
-
- if (judgend == "Y") {
- btn_judgend.visible = false;
- btn_judgcancel.visible = true;
- } else {
- btn_judgend.visible = true;
- btn_judgcancel.visible = false;
- }
-
- grd_outunexecprcpord.clearStatus();
- grd_outunexecprcpord.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- model.resetInstanceNode("/root/main/item1/clcj");
- model.removeNodeset("/root/send/delclcj/clcj");
- model.removeNodeset("/root/send/insclcj/clcj");
- model.resetInstanceNode("/root/send/datalist");
- }
-
- // 마우스 오른쪽 메뉴 - 급여 선택
- function fOrdChangePay()
- {
- if (messageBox("해당 처방의 급비여부를 급여로 변경", "Q004") == 6) {
- fSetOprcPayFlag("0");
- }
- }
-
- // 마우스 오른쪽 메뉴 - 전액본인 선택
- function fOrdChangeNoPay()
- {
- if (messageBox("해당 처방의 급비여부를 전액본인으로 변경", "Q004") == 6) {
- fSetOprcPayFlag("1");
- }
- }
-
- // 마우스 오른쪽 메뉴 - 일반 선택
- function fOrdChangeGnrl()
- {
- if (messageBox("해당 처방의 급비여부를 일반으로 변경", "Q004") == 6) {
- fSetOprcPayFlag("2");
- }
- }
-
- // 급비 변경 처리
- function fSetOprcPayFlag(payflagcd) {
-
- // 1. 화면 수정
- var rows = grd_outunexecprcpord.selectedRows;
- for (var i = 0; i < rows; i++) {
- var sel = grd_outunexecprcpord.selectedRow(i);
- // grd_outunexecprcpord.rowstatus(sel) = 2; 특정내역이 rowstatus 를 사용하며, 처방급비 수정은 payflagyn 으로 구분한다.
- grd_outunexecprcpord.cellStyle("background-image", sel, 1) = "../../../com/commonweb/images/icon_u.gif";
- model.setValue("/root/main/grd2/unexecordlist["+ sel +"]/payflagcd", payflagcd);
- model.setValue("/root/main/grd2/unexecordlist["+ sel +"]/payflagyn", "Y");
- // grd_outunexecprcpord.valueMatrix(sel, grd_outunexecprcpord.colRef("payflagcd")) = payflagcd;
- // grd_outunexecprcpord.valueMatrix(sel, grd_outunexecprcpord.colRef("payflagyn")) = "Y";
- }
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1202" pageheight="715" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1186px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:132px; height:13px; ">외래미시행오더조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1186px; height:675px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1186px; height:35px; ">
- <shape id="roundrect1" appearance="roundrect" style="left:0px; top:0px; width:1185px; height:35px; "/>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">환자번호 :</caption>
- <input id="inp_pid" ref="/root/send/pid" class="input_search" navindex="1" style="left:104px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode=='13') {
- model.setValue("/root/hidden/sppmc02500/cond/autoflag","Y");
- inputEnterKey("btn_srchpid", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <output id="opt_patnm" ref="/root/send/patnm" class="output_fix" style="left:216px; top:8px; width:80px; height:19px; "/>
- <select id="chk_otherdept" ref="/root/send/chk" navindex="4" overflow="visible" appearance="full" style="left:316px; top:10px; width:95px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>타과포함 조회</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 조회
- fSrchUnexecOrdList();
- //fSrchUnexecOrdList2();
- ]]>
- </script>
- </select>
- <button id="btn_srch" class="btn1_letter2" navindex="5" style="left:1115px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 조회
- fSrchUnexecOrdList();
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1100px; y1:7px; x2:1100px; y2:29px; "/>
- <button id="btn_srchpid" class="icon_search" navindex="2" style="left:197px; top:10px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var autoflag = model.getValue("/root/hidden/sppmc02500/cond/autoflag");
- if (autoflag == "") {
- model.setValue("/root/hidden/sppmc02500/cond/autoflag","N");
- }
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", model.getValue("/root/send/pid"));
-
- fOJBaseInfoRef();
- ]]>
- </script>
- </button>
- <select id="chk_execdd" ref="/root/send/chk2" navindex="4" overflow="visible" appearance="full" style="left:421px; top:10px; width:95px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>시행처방 포함</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // 조회
- fSrchUnexecOrdList();
- //fSrchUnexecOrdList2();
- ]]>
- </script>
- </select>
- </group>
- <line id="line8" class="line_1" style="x1:0px; y1:70px; x2:265px; y2:70px; "/>
- <caption id="caption15" class="tit_2" style="left:5px; top:55px; width:43px; height:13px; ">일자</caption>
- <caption id="caption3" class="tit_2" style="left:270px; top:55px; width:87px; height:13px; ">미시행 오더</caption>
- <line id="line2" class="line_1" style="x1:270px; y1:70px; x2:1185px; y2:70px; "/>
- <button id="button3" class="btn2_letter2" navindex="6" style="left:1009px; top:49px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var fileName = window.fileDialog("save", ",", false, "미시행오더", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_outunexecprcpord.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <button id="btn_judgcancel" class="btn2_letter6" navindex="7" visibility="hidden" style="left:1054px; top:49px; width:86px; height:19px; ">
- <caption>통합심사취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rows = grd_outunexecprcpord.rows;
-
- if (rows >1 ) {
- for (i=1; i<rows; i++) {
- model.setValue("/root/main/grd2/unexecordlist[" + i + "]/judgendflag","N");
- grd_outunexecprcpord.rowstatus(i) = 2; // 2 : update
- }
-
- var updateData = getGridUpdateData(grd_outunexecprcpord);
- model.setValue("/root/send/datalist", updateData);
- if (updateData) {
-
- submit("TXPID21402");
-
- // 미시행 오더 조회
- fSrchUnexecOrdList2();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_judgend" class="btn2_letter6" navindex="7" style="left:1054px; top:49px; width:86px; height:19px; ">
- <caption>통합심사완료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rows = grd_outunexecprcpord.rows;
- if (rows >1 ) {
-
- // 2. 특정내역 저장 시작
- if (grp_spcl.visible == true) {
- var ans = messageBox("특정내역 수정 사항을 적용하여 저장", "S001"); ///특정내역 수정 사항을 적용하여 저장하시려면 예(Yes)\n아니면 아니오(No)
- if (ans == 6) { // 6: yes
- btn_confirm.dispatch("DOMActivate");
- } else {
- grp_spcl.visible = false;
- if (ans == 2) { // 2: 취소
- return;
- }
- }
- }
- model.removeNodeset("/root/send/delclcj/clcj");
- model.removeNodeset("/root/send/insclcj/clcj");
- model.removeNodeset("/root/send/payflag/list");
- model.resetInstanceNode("/root/send/datalist");
-
- var updateData = getGridUpdateData(grd_outunexecprcpord);
- model.setValue("/root/send/datalist", updateData);
- if (updateData) {
- //
- // 기존 특정내역을 삭제한다.
- var delCnt = 0;
- var insCnt = 0;
- for (var i = grd_outunexecprcpord.fixedRows; i < grd_outunexecprcpord.rows; i++) {
- var pid = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/pid");
- var orddd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/orddd");
- var cretno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/cretno");
- var seqno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/seqno");
- var spclchange = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclchange");
- var prcpdd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/prcpdd");
- var prcpno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/prcpno");
- var prcphistno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/prcphistno");
- var execprcpseqno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/execprcpseqno");
- var grupsnglyn = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/grupsnglyn");
- var calcscorcd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/calcscorcd");
- var edicd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd");
- var spclcd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclcd");
-
- if (spclchange == "2" || spclchange == "4") {
- delCnt++;
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delpid", pid);
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delorddd", orddd);
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delcretno", cretno);
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/deledicd", edicd);
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delspclcd", spclcd);
- }
- if (spclchange != "" && spclchange != "0" && spclchange != "4") {
- var spclcd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclcd");
- var spclspec = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclspec");
- if (spclcd == "JX999" || spclcd == "MX999") {
- var iSpclCdTotLength = getStringLength(spclspec); // (stringHelper.js) 문자열의 길이를 구한다.
- var insCharTotCnt = 0; // 특정내역으로 잘라진 총 글자 수
- if (iSpclCdTotLength > 350) { // 새로 입력된 특정코드가 700byte를 넘는다.
- // 영문(700자), 한글(350자) 길이로 잘라서 n개의 특정코드를 만든다.
- var iLen = 0; // 특정내역 길이가 700 byte가 되었는지 계산
- var iStartInx = 0; // 특정내역 시작 index
- var iCharCnt = 0; // 몇글자로 구성되는지 계산
- for (var j=0; j < spclspec.length; j++) {
- var sBit = spclspec.charAt(j);
- iCharCnt++;
- if (escape(sBit).length > 4) {
- iLen = iLen + 2;
- } else {
- iLen = iLen + 1;
- }
- if (iLen == 350 || iLen > 350) { // 영문(700자), 한글(350자)
- insCnt++;
- if (iLen == 350) { // 700byte로 길이가 끝난 경우
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpdd", prcpdd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpno", prcpno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcphistno", prcphistno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/execprcpseqno", execprcpseqno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/grupsnglyn", grupsnglyn);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/calcscorcd", calcscorcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inspid", pid);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/insorddd", orddd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inscretno", cretno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/unitflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/unitflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclmemoflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclmemoflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicd", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclcd", spclcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclspec", spclspec.substr(iStartInx, iCharCnt));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/remfact", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/remfact"));
- iStartInx += iCharCnt;
- insCharTotCnt += 350;
- }
- else if (iLen > 350) { // 영문(700자), 한글(350자)를 넘는 경우
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpdd", prcpdd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpno", prcpno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcphistno", prcphistno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/execprcpseqno", execprcpseqno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/grupsnglyn", grupsnglyn);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/calcscorcd", calcscorcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inspid", pid);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/insorddd", orddd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inscretno", cretno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/unitflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/unitflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclmemoflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclmemoflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicd", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclcd", spclcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclspec", spclspec.substr(iStartInx, iCharCnt - 1));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/remfact", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/remfact"));
- iStartInx += (iCharCnt - 1);
- j--;
- insCharTotCnt += 349;
- }
- iCharCnt = 0;
- iLen = 0;
- }
- }
- if (iSpclCdTotLength != insCharTotCnt) {
- insCnt++;
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpdd", prcpdd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpno", prcpno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcphistno", prcphistno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/execprcpseqno", execprcpseqno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/grupsnglyn", grupsnglyn);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/calcscorcd", calcscorcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inspid", pid);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/insorddd", orddd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inscretno", cretno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/unitflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/unitflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclmemoflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclmemoflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicd", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclcd", spclcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclspec", spclspec.substring(iStartInx, spclspec.length));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/remfact", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/remfact"));
- }
- } else { // 새로 입력된 특정코드는 700byte를 넘지 않는다.
- insCnt++;
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpdd", prcpdd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpno", prcpno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcphistno", prcphistno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/execprcpseqno", execprcpseqno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/grupsnglyn", grupsnglyn);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/calcscorcd", calcscorcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inspid", pid);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/insorddd", orddd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inscretno", cretno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/unitflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/unitflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclmemoflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclmemoflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicd", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclcd", spclcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclspec", spclspec);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/remfact", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/remfact"));
- }
- } else { // 기타 특정내역이 아닌 경우 입력을 받으면서 길이를 체크하고, 저장시에는 글자 길이로 자르지 않는다.
- insCnt++;
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpdd", prcpdd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpno", prcpno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcphistno", prcphistno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/execprcpseqno", execprcpseqno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/grupsnglyn", grupsnglyn);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/calcscorcd", calcscorcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inspid", pid);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/insorddd", orddd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inscretno", cretno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/unitflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/unitflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclmemoflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclmemoflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicd", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclcd", spclcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclspec", spclspec);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/remfact", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/remfact"));
- }
- }
- }
-
- submit("TXPID21401");
- grd_outunexecprcpord.clearStatus();
- grd_outunexecprcpord.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- model.resetInstanceNode("/root/main/item1/clcj");
- model.removeNodeset("/root/send/delclcj/clcj");
- model.removeNodeset("/root/send/insclcj/clcj");
- model.removeNodeset("/root/send/payflag/list");
- model.resetInstanceNode("/root/send/datalist");
- }
- // 2. 특정내역 저장 끝
-
- // 1. 통합심사 완료 시작
- for (i=1; i<rows; i++) {
- model.setValue("/root/main/grd2/unexecordlist[" + i + "]/judgendflag","Y");
- grd_outunexecprcpord.rowstatus(i) = 2; // 2 : update
- }
-
- var updateData = getGridUpdateData(grd_outunexecprcpord);
- model.setValue("/root/send/datalist", updateData);
- if (updateData) {
-
- submit("TXPID21402");
-
- }
- // 1. 통합심사 완료 끝
-
- // 미시행 오더 조회
- fSrchUnexecOrdList2();
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn2_letter2" navindex="8" style="left:1143px; top:49px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grp_spcl.visible == true) {
- var ans = messageBox("특정내역 수정 사항을 적용하여 저장", "S001"); ///특정내역 수정 사항을 적용하여 저장하시려면 예(Yes)\n아니면 아니오(No)
- if (ans == 6) { // 6: yes
- btn_confirm.dispatch("DOMActivate");
- } else {
- grp_spcl.visible = false;
- if (ans == 2) { // 2: 취소
- return;
- }
- }
- }
- model.removeNodeset("/root/send/delclcj/clcj");
- model.removeNodeset("/root/send/insclcj/clcj");
- model.removeNodeset("/root/send/payflag/list");
- model.resetInstanceNode("/root/send/datalist");
-
- // 처방급비 변경을 위해 노드에 담는다. (payflagyn이 Y인 ROW가 처방급비가 변경된 row이다)
- var updateyn = "N"; // 처방급비만 변경되어도 저장할 수 있어야 한다.
- var payCnt = 0;
- for (var i = grd_outunexecprcpord.fixedRows; i < grd_outunexecprcpord.rows; i++) {
- var payflagyn = model.getValue("/root/main/grd2/unexecordlist[" + i + "]/payflagyn");
- if (payflagyn == "Y") {
- var prcpdd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/prcpdd");
- var prcpno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/prcpno");
- var prcphistno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/prcphistno");
- var payflagcd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/payflagcd");
- payCnt++;
- model.makeValue("/root/send/payflag/list[" + payCnt + "]/payprcpdd", prcpdd);
- model.makeValue("/root/send/payflag/list[" + payCnt + "]/payprcpno", prcpno);
- model.makeValue("/root/send/payflag/list[" + payCnt + "]/payprcphistno", prcphistno);
- model.makeValue("/root/send/payflag/list[" + payCnt + "]/paypayflagcd", payflagcd);
- updateyn = "Y";
- }
- }
-
- var updateData = getGridUpdateData(grd_outunexecprcpord);
- model.setValue("/root/send/datalist", updateData);
- if (updateData || updateyn == "Y") {
- //
- // 기존 특정내역을 삭제한다.
- var delCnt = 0;
- var insCnt = 0;
- for (var i = grd_outunexecprcpord.fixedRows; i < grd_outunexecprcpord.rows; i++) {
- // var rowstatus = grd_outunexecprcpord.rowstatus(i);
- var pid = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/pid");
- var orddd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/orddd");
- var cretno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/cretno");
- var seqno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/seqno");
- var spclchange = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclchange");
- var prcpdd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/prcpdd");
- var prcpno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/prcpno");
- var prcphistno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/prcphistno");
- var execprcpseqno = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/execprcpseqno");
- var grupsnglyn = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/grupsnglyn");
- var calcscorcd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/calcscorcd");
- var edicd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd");
- var spclcd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclcd");
- var edicdflag = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicdflag");
-
- if (spclchange == "2" || spclchange == "4") {
- delCnt++;
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delpid", pid);
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delorddd", orddd);
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delcretno", cretno);
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/deledicd", edicd);
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delspclcd", spclcd);
-
- /*
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delprcpdd", prcpdd);
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delprcpno", prcpno);
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delprcphistno", prcphistno);
- model.makeValue("/root/send/delclcj/clcj[" + delCnt + "]/delexecprcpseqno", execprcpseqno);
- */
-
- }
- if (spclchange != "" && spclchange != "0" && spclchange != "4") {
- var spclcd = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclcd");
- var spclspec = model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclspec");
- if (spclcd == "JX999" || spclcd == "MX999") {
- var iSpclCdTotLength = getStringLength(spclspec); // (stringHelper.js) 문자열의 길이를 구한다.
- var insCharTotCnt = 0; // 특정내역으로 잘라진 총 글자 수
- if (iSpclCdTotLength > 350) { // 새로 입력된 특정코드가 700byte를 넘는다.
- // 영문(700자), 한글(350자) 길이로 잘라서 n개의 특정코드를 만든다.
- var iLen = 0; // 특정내역 길이가 700 byte가 되었는지 계산
- var iStartInx = 0; // 특정내역 시작 index
- var iCharCnt = 0; // 몇글자로 구성되는지 계산
- for (var j=0; j < spclspec.length; j++) {
- var sBit = spclspec.charAt(j);
- iCharCnt++;
- if (escape(sBit).length > 4) {
- iLen = iLen + 2;
- } else {
- iLen = iLen + 1;
- }
- if (iLen == 350 || iLen > 350) { // 영문(700자), 한글(350자)
- insCnt++;
- if (iLen == 350) { // 700byte로 길이가 끝난 경우
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpdd", prcpdd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpno", prcpno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcphistno", prcphistno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/execprcpseqno", execprcpseqno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/grupsnglyn", grupsnglyn);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/calcscorcd", calcscorcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inspid", pid);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/insorddd", orddd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inscretno", cretno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/unitflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/unitflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclmemoflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclmemoflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicd", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicdflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicdflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclcd", spclcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclspec", spclspec.substr(iStartInx, iCharCnt));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/remfact", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/remfact"));
- // model.makeValue(item3Path + insCnt + "]/" + item3Node + "spclspec", spclspec.substr(iStartInx, iCharCnt));
- iStartInx += iCharCnt;
- insCharTotCnt += 350;
- }
- else if (iLen > 350) { // 영문(700자), 한글(350자)를 넘는 경우
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpdd", prcpdd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpno", prcpno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcphistno", prcphistno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/execprcpseqno", execprcpseqno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/grupsnglyn", grupsnglyn);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/calcscorcd", calcscorcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inspid", pid);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/insorddd", orddd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inscretno", cretno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/unitflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/unitflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclmemoflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclmemoflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicd", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicdflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicdflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclcd", spclcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclspec", spclspec.substr(iStartInx, iCharCnt - 1));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/remfact", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/remfact"));
- // model.makeValue(item3Path + insCnt + "]/" + item3Node + "spclspec", spclspec.substr(iStartInx, iCharCnt - 1));
- iStartInx += (iCharCnt - 1);
- j--;
- insCharTotCnt += 349;
- }
- iCharCnt = 0;
- iLen = 0;
- }
- }
- if (iSpclCdTotLength != insCharTotCnt) {
- insCnt++;
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpdd", prcpdd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpno", prcpno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcphistno", prcphistno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/execprcpseqno", execprcpseqno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/grupsnglyn", grupsnglyn);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/calcscorcd", calcscorcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inspid", pid);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/insorddd", orddd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inscretno", cretno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/unitflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/unitflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclmemoflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclmemoflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicd", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicdflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicdflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclcd", spclcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclspec", spclspec.substring(iStartInx, spclspec.length));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/remfact", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/remfact"));
- // model.makeValue(item3Path + insCnt + "]/" + item3Node + "spclspec", spclspec.substring(iStartInx, spclspec.length));
- }
- } else { // 새로 입력된 특정코드는 700byte를 넘지 않는다.
- insCnt++;
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpdd", prcpdd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpno", prcpno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcphistno", prcphistno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/execprcpseqno", execprcpseqno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/grupsnglyn", grupsnglyn);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/calcscorcd", calcscorcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inspid", pid);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/insorddd", orddd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inscretno", cretno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/unitflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/unitflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclmemoflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclmemoflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicd", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicdflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicdflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclcd", spclcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclspec", spclspec);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/remfact", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/remfact"));
- }
- } else { // 기타 특정내역이 아닌 경우 입력을 받으면서 길이를 체크하고, 저장시에는 글자 길이로 자르지 않는다.
- insCnt++;
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpdd", prcpdd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcpno", prcpno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/prcphistno", prcphistno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/execprcpseqno", execprcpseqno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/grupsnglyn", grupsnglyn);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/calcscorcd", calcscorcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inspid", pid);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/insorddd", orddd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/inscretno", cretno);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/unitflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/unitflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclmemoflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/spclmemoflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicd", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicd"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/edicdflag", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/edicdflag"));
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclcd", spclcd);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/spclspec", spclspec);
- model.makeValue("/root/send/insclcj/clcj[" + insCnt + "]/remfact", model.getValue("/root/main/grd2/unexecordlist["+ i +"]/remfact"));
- }
- }
- }
-
- submit("TXPID21401");
- grd_outunexecprcpord.clearStatus();
- grd_outunexecprcpord.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- model.resetInstanceNode("/root/main/item1/clcj");
- model.removeNodeset("/root/send/delclcj/clcj");
- model.removeNodeset("/root/send/insclcj/clcj");
- model.removeNodeset("/root/send/payflag/list");
- model.resetInstanceNode("/root/send/datalist");
- // 다시 조회
- fSrchUnexecOrdList2();
- } else {
- messageBox("변경된 데이터가","I004"); ///변경된 데이터가 없습니다.
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_outunexecprcp" nodeset="/root/main/grd1/unexeclist" caption="환자번호^진료일자^실시희망일^진료과코드^진료과^진료의코드^진료의^cretno^continueyn^fstacptdt^" colsep="^" colwidth="0, 110, 19, 0, 49, 0, 56, 100, 100, 100, 0" dataheight="23" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:75px; width:265px; height:600px; ">
- <col ref="pid"/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcphopedd" visibility="hidden" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptcd"/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="orddrid"/>
- <col ref="orddrnm" style="text-align:center; "/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="continueyn" visibility="hidden"/>
- <col ref="fstacptdt" visibility="hidden"/>
- <col ref="insukind"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(grd_outunexecprcp.isCell(event.target) && grd_outunexecprcp.row >= grd_outunexecprcp.fixedRows) {
-
- grp_spcl.visible = false; // 특정내역 상세용 Group
- var row = grd_outunexecprcp.row ;
- model.setValue("/root/send/pid",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("pid")));
- model.setValue("/root/send/orddd",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("orddd")));
- model.setValue("/root/send/prcphopedd",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("prcphopedd")));
- model.setValue("/root/send/orddeptcd",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("orddeptcd")));
- model.setValue("/root/send/orddrid",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("orddrid")));
- model.setValue("/root/send/insukind",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("insukind")));
- model.setValue("/root/send/cretno",grd_outunexecprcp.valueMatrix(row, grd_outunexecprcp.colRef("cretno")));
-
- // 외래미시행처방 미시행 오더 조회
- submit("TRPID21402");
-
- var judgend = model.getValue("/root/main/grd2/unexecordlist[1]/judgendflag");
-
- if (judgend == "Y") {
- btn_judgend.visible = false;
- btn_judgcancel.visible = true;
- } else {
- btn_judgend.visible = true;
- btn_judgcancel.visible = false;
- }
-
- grd_outunexecprcpord.clearStatus();
- grd_outunexecprcpord.colStyle(1, "data","background-image") = "../../../com/commonweb/images/icon_n.gif";
- model.resetInstanceNode("/root/main/item1/clcj");
- model.removeNodeset("/root/send/delclcj/clcj");
- model.removeNodeset("/root/send/insclcj/clcj");
- model.resetInstanceNode("/root/send/datalist");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_outunexecprcp.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_outunexecprcpord" nodeset="/root/main/grd2/unexecordlist" visibility="visible" caption="^^G^구분^처방코드^EDI코드^한글명^급^투여량^회^일^처방시간^실시처방일^실시희망일^실시일시^예약일시^실시상태^진료과^진료의^상병^특정코드^특정내역^통합심사^unitflag^환자번호^외래등록일자^외래생성번호^일련번호^처방번호^처방이력번호^실시처방일련번호^기관코드^특정메모구분^참고사항^저장여부^보험유형^처방일자^EDI코드구분" colsep="^" colwidth="20, 0, 20, 45, 70, 65, 145, 25, 42, 19, 19, 120, 70, 70, 120, 120, 55, 100, 100, 30, 55, 60, 55, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:270px; top:75px; width:915px; height:600px; ">
- <col class="update_n" ref="update"/>
- <col ref="spclchange"/>
- <col ref="grupsnglyn" style="text-align:center; "/>
- <col ref="hosinhosoutflag" type="combo" visibility="hidden">
- <choices>
- <item>
- <label>원내</label>
- <value>I</value>
- </item>
- <item>
- <label>원외</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="calcscorcd"/>
- <col ref="edicd"/>
- <col ref="ordnm"/>
- <col disabled="true" ref="payflagcd" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>급</label>
- <value>0</value>
- </item>
- <item>
- <label>100</label>
- <value>1</value>
- </item>
- <item>
- <label>비</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="execprcpqty" format="#,###.00" style="text-align:right; "/>
- <col ref="execprcptims" format="#,###" style="text-align:right; "/>
- <col ref="execprcpdayno" format="#,###" style="text-align:right; "/>
- <col ref="prcptm" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="actorddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcphopedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="exectm" format="yyyy-mm-dd hh:nn:ss"/>
- <col ref="rsrvtm" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <col ref="execprcpstatcd" style="text-align:center; "/>
- <col ref="orddeptcd" visibility="hidden"/>
- <col ref="orddrid" visibility="hidden"/>
- <col ref="diagyn" style="text-align:center; "/>
- <col ref="spclcd">
- <![CDATA[-]]>
- </col>
- <col ref="spclspec"/>
- <col ref="judgendflag" style="text-align:center; "/>
- <col ref="unitflag" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="orddd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- <col ref="execprcpseqno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="spclmemoflag" visibility="hidden"/>
- <col ref="remfact" visibility="hidden"/>
- <col ref="spclyn" visibility="hidden"/>
- <col ref="insukind" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="edicdflag" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- grp_spcl.visible = false;
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- /*
- - 0 : new
- - 1 : insert
- - 2 : update
- - 3 : insert & new
- - 4 : delete
- */
- var row = grd_outunexecprcpord.row;
- // var col = grd_outunexecprcpord.col;
- // if (col = grd_outunexecprcpord.colRef("")) {
- var curRowStatus = grd_outunexecprcpord.rowStatus(row);
- if(curRowStatus != 4) {
- grd_outunexecprcpord.cellStyle("background-image", grd_outunexecprcpord.row, 1) = "../../../com/commonweb/images/icon_u.gif";
- }
- // }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(grd_outunexecprcpord.isCell(event.target) && grd_outunexecprcpord.row >= grd_outunexecprcpord.fixedRows) {
- if (grd_outunexecprcpord.col == grd_outunexecprcpord.colRef("diagyn")) {
- // 상병 컬럼 선택시
- var row = grd_outunexecprcpord.row;
- var rows = grd_outunexecprcpord.rows;
-
- model.makeValue("/root/send/diag/pid", model.getValue("/root/main/grd2/unexecordlist["+row+"]/pid"));
- model.makeValue("/root/send/diag/orddd", model.getValue("/root/main/grd2/unexecordlist["+row+"]/orddd"));
- model.makeValue("/root/send/diag/cretno", model.getValue("/root/main/grd2/unexecordlist["+row+"]/cretno"));
- model.makeValue("/root/send/diag/ioflag", model.getValue("/root/main/grd2/unexecordlist["+row+"]/ioflag"));
- model.makeValue("/root/send/diag/deptcd", model.getValue("/root/main/grd2/unexecordlist["+row+"]/orddeptcd"));
- model.makeValue("/root/send/diag/instcd", model.getValue("/root/main/grd2/unexecordlist["+row+"]/instcd"));
- model.makeValue("/root/send/diag/insukind", model.getValue("/root/main/grd2/unexecordlist["+row+"]/insukind"));
-
- // 연속처방의 경우에는 원처방일자에 해당되는 상병을 가져와야 하므로 그 정보를 넘겨준다.
- model.makeValue("/root/send/diag/continueyn", model.getValue("/root/main/grd1/unexeclist["+grd_outunexecprcp.row+"]/continueyn"));
- model.makeValue("/root/send/diag/fstacptdt", model.getValue("/root/main/grd1/unexeclist["+grd_outunexecprcp.row+"]/fstacptdt"));
-
- model.makeValue("/root/send/diag/row", rows);
- modal("../../../pam/aftjudgweb/xrw/SPPID21500", 1,150, 150, "SPPID21500", "/root/send/diag", "/root/send", "", "");
- }
- else if (grd_outunexecprcpord.col == grd_outunexecprcpord.colRef("spclcd") || grd_outunexecprcpord.col == grd_outunexecprcpord.colRef("spclspec"))
- {
- // 특정내역 Grid 에서 선택한 줄단위 특정내역을 조회하고, 명세서단위 특정내역을 수정/입력한다.
- model.resetInstanceNode("/root/main/item1/clcj");
- var row = grd_outunexecprcpord.row;
-
- // 2008.05.29 박지욱 수정 - 원외처방의 경우 특정내역 입력 불가
- var hosinhosoutflag = model.getValue("/root/main/grd2/unexecordlist[" + row + "]/hosinhosoutflag");
- if (hosinhosoutflag == "O") return;
- // 특정내역 상세 활성화
- var spclcd = model.getValue("/root/main/grd2/unexecordlist[" + row + "]/spclcd");
- model.setValue("/root/main/item1/clcj/row",row);
- model.setValue("/root/main/item1/clcj/edicd", grd_outunexecprcpord.valueMatrix(row, grd_outunexecprcpord.colRef("edicd")));
- model.setValue("/root/main/item1/clcj/edicdflag", grd_outunexecprcpord.valueMatrix(row, grd_outunexecprcpord.colRef("edicdflag")));
-
- if (spclcd == "") {
-
- model.setValue("/root/main/item1/clcj/spclcd", "JX999");
-
- var index = 41;
-
- if (model.getValue("/root/main/item1/clcj/edilnno")) { // 줄단위 인 경우 index 와 실제 init data 순서가 다르므로
- index = index + 24;
- } else {
- index = index + 1; // combo 의 index 는 0 부터 시작하지만, init data 순서는 1부터 시작하므로
- }
- var format = model.getValue("/root/init/P0117list/P0117[" + index + "]/cdval");
- model.setValue("/root/main/item1/clcj/remfact", format);
- model.setValue("/root/main/item1/clcj/spclmemoflag", "E"); // EDI메모 상태를 기본값으로 한다.
-
- var spclcd = model.getValue("/root/main/item1/clcj/spclcd");
-
- } else {
- model.setValue("/root/main/item1/clcj/spclcd", spclcd);
- model.setValue("/root/main/item1/clcj/remfact", model.getValue("/root/main/grd2/unexecordlist[" + row + "]/remfact")); // 기재형식
- model.setValue("/root/main/item1/clcj/spclspec", model.getValue("/root/main/grd2/unexecordlist[" + row + "]/spclspec"));
- model.setValue("/root/main/item1/clcj/spclmemoflag", model.getValue("/root/main/grd2/unexecordlist[" + row + "]/spclmemoflag")); // 사용자메모, EDI메모 구분
- }
- model.setValue("/root/main/item1/clcj/basespclcd", "JX999"); // 단위주석 구분 : 명일련단위주석(MX999), 줄단위주석(JX999)
-
- model.refresh();
-
- grp_spcl.visible = true;
-
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- // 소트 후 인스턴스 정리
- grd_outunexecprcpord.gridToInstance(); // Sort 된 Grid 상의 Data 순서와 Instance Node 상의 Data 순서를 동일하게 맞춰준다.
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- // 급비 변경
- if (event.button == 3) { // 3 : 오른쪽 버튼
- if (grd_outunexecprcpord.isCell(event.target) && grd_outunexecprcpord.mouseRow >= grd_outunexecprcpord.fixedrows) {
- var rowstatus = grd_outunexecprcpord.rowstatus(grd_outunexecprcpord.mouseRow);
- window.setPopupMenu(true, "/root/hidden/popupmenu/oprc/item", "name", "func", false);
- } else {
- window.setPopupMenu(false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <group id="grp_spcl" visibility="hidden" style="left:589px; top:328px; width:596px; height:253px; border-color:#c7a3cf; border-style:solid; ">
- <group id="group1" scroll="auto" style="left:0px; top:0px; width:594px; height:224px; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:100px; height:13px; ">특정내역 상세</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:593px; y2:25px; "/>
- <caption id="caption4" class="cell_1" style="left:0px; top:30px; width:59px; height:23px; ">EDI코드</caption>
- <output id="opt_snglcalcscorcd" ref="/root/main/item1/clcj/edicd" class="output_fix" style="left:62px; top:31px; width:100px; height:19px; "/>
- <caption id="caption5" class="cell_1" style="left:165px; top:30px; width:59px; height:23px; ">특정코드</caption>
- <select1 id="cmb_spclcd" ref="/root/main/item1/clcj/spclcd" class="combo_default" disabled="true" appearance="minimal" style="left:227px; top:31px; width:366px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0117list/P0117">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- //var index = cmb_spclcd.focusIndex + 1; // 시작 인덱스 = 0 대신에 empty 상태의 초기 빈 node를 추가하였음
- var index = cmb_spclcd.focusIndex; // 시작 인덱스 = 0 (빈 node 추가하면서 +1 하지 않음)
- if (index == 0) {
- model.resetInstanceNode("/root/main/item1/clcj/spclcd");
- model.resetInstanceNode("/root/main/item1/clcj/spclspec");
- model.resetInstanceNode("/root/main/item1/clcj/remfact");
- model.resetInstanceNode("/root/main/item1/clcj/spclmemoflag");
- rdo_spclmemoflag.visible = false;
- } else {
- if (model.getValue("/root/main/item1/clcj/edilnno")) { // 줄단위 인 경우 index 와 실제 init data 순서가 다르므로
- index = index + 24;
- } else {
- index = index + 1; // combo 의 index 는 0 부터 시작하지만, init data 순서는 1부터 시작하므로
- }
- var format = model.getValue("/root/init/P0117list/P0117[" + index + "]/cdval");
- model.setValue("/root/main/item1/clcj/remfact", format);
- model.setValue("/root/main/item1/clcj/spclmemoflag", "E"); // EDI메모 상태를 기본값으로 한다.
-
- var spclcd = model.getValue("/root/main/item1/clcj/spclcd");
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <line id="line4" class="line_2" style="x1:0px; y1:52px; x2:593px; y2:52px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:54px; width:59px; height:146px; ">특정내역</caption>
- <textarea id="tar_spclspec" ref="/root/main/item1/clcj/spclspec" style="left:62px; top:55px; width:531px; height:142px; "/>
- <line id="line5" class="line_2" style="x1:0px; y1:199px; x2:593px; y2:199px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:201px; width:59px; height:23px; ">기재형식</caption>
- <output id="opt_spclformat" ref="/root/main/item1/clcj/remfact" class="output_fix" style="left:62px; top:202px; width:531px; height:19px; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:223px; x2:593px; y2:223px; "/>
- <button id="btn_delete" class="btn2_letter2" style="left:552px; top:4px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/item1/clcj/spclcd");
- model.resetInstanceNode("/root/main/item1/clcj/spclspec");
- model.resetInstanceNode("/root/main/item1/clcj/remfact");
- model.resetInstanceNode("/root/main/item1/clcj/spclmemoflag");
- btn_confirm.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/main/item1/clcj/basespclcd" disabled="true" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:425px; top:6px; width:120px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>JX999</label>
- <value>JX999</value>
- </item>
- <item>
- <label>MX999</label>
- <value>MX999</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var index = 0;
-
- var spclcd = model.getValue("/root/main/item1/clcj/basespclcd");
-
- if (spclcd == "JX999") {
- index = 42;
- } else {
- index = 24;
- }
-
- model.setValue("/root/main/item1/clcj/spclcd",spclcd);
- var format = model.getValue("/root/init/P0117list/P0117[" + index + "]/cdval");
- model.setValue("/root/main/item1/clcj/remfact", format);
- model.setValue("/root/main/item1/clcj/spclmemoflag", "E"); // EDI메모 상태를 기본값으로 한다.
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:224px; width:594px; height:27px; ">
- <line id="line7" class="line_6" style="x1:0px; y1:0px; x2:593px; y2:0px; "/>
- <button id="btn_cancel" class="btn4_letter2" style="left:537px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_spcl.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_confirm" class="btn4_letter2" style="left:478px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var spclcd = model.getValue("/root/main/item1/clcj/spclcd");
- // if (spclcd == "MX999" || spclcd == "JX999") {
- // messageBox("기타 특정내역(MX999, JX999)은 저장하실 수", "I004"); ///기타 특정내역(MX999, JX999)은 저장하실 수 없습니다.
- // return;
- // }
- var row = model.getValue("/root/main/item1/clcj/row");
- var flag = model.getValue("/root/main/grd2/unexecordlist["+row+"]/spclyn");
- if (spclcd == "") {
- if (flag == "N") {
- model.resetInstanceNode("/root/main/grd2/unexecordlist["+row+"]/spclcd");
- model.resetInstanceNode("/root/main/grd2/unexecordlist["+row+"]/spclspec");
- model.resetInstanceNode("/root/main/grd2/unexecordlist["+row+"]/remfact");
- model.resetInstanceNode("/root/main/grd2/unexecordlist["+row+"]/spclmemoflag");
- grd_outunexecprcpord.cellStyle("background-image", row, 1) = "../../../com/commonweb/images/icon_n.gif";
- model.setValue("/root/main/grd2/unexecordlist["+row+"]/spclchange", "0");
- grd_outunexecprcpord.rowStatus(row) = 0;
- } else {
- grd_outunexecprcpord.cellStyle("background-image", row, 1) = "../../../com/commonweb/images/icon_d.gif";
- model.setValue("/root/main/grd2/unexecordlist["+row+"]/spclchange", "4");
- grd_outunexecprcpord.rowStatus(row) = 4;
- }
- model.refresh();
- }
- else {
- // else if (fCheckSpclSpecLength()) { // 특정내역 필드 길이 = 1050 Byte 임 asdfasdfasd
- if (spclcd != "MX999" && spclcd != "JX999") {
- var spclspec = model.getValue("/root/main/item1/clcj/spclspec");
- if (spclspec.isByteSize(1050) == false) { // (stringHelper.js) 문자열의 Byte 크기가 제한값을 벗어나는지 체크 (벗어나면 false 리턴)
- messageBox("특정내역 입력 제한길이(1050 Byte)를", "E003"); ///특정내역 입력 제한길이(1050 Byte)를 초과하였습니다
- return;
- }
- }
- //사용자가 특정내역을 입력한 경우에 전달해 준다.
- model.setValue("/root/main/grd2/unexecordlist["+row+"]/spclcd", spclcd);
- model.setValue("/root/main/grd2/unexecordlist["+row+"]/unitflag", spclcd.substr(0, 1));
- model.setValue("/root/main/grd2/unexecordlist["+row+"]/spclspec",model.getValue("/root/main/item1/clcj/spclspec"));
- model.setValue("/root/main/grd2/unexecordlist["+row+"]/remfact",model.getValue("/root/main/item1/clcj/remfact"));
- model.setValue("/root/main/grd2/unexecordlist["+row+"]/spclmemoflag",model.getValue("/root/main/item1/clcj/spclmemoflag"));
-
- if (flag == "N") {
- grd_outunexecprcpord.cellStyle("background-image", row, 1) = "../../../com/commonweb/images/icon_i.gif";
- model.setValue("/root/main/grd2/unexecordlist["+row+"]/spclchange", "1");
- grd_outunexecprcpord.rowStatus(row) = 1;
- } else {
- grd_outunexecprcpord.cellStyle("background-image", row, 1) = "../../../com/commonweb/images/icon_u.gif";
- model.setValue("/root/main/grd2/unexecordlist["+row+"]/spclchange", "2");
- grd_outunexecprcpord.rowStatus(row) = 2;
- }
- model.refresh();
- // } else {
- // messageBox("특정내역 입력 제한길이(1050 Byte)를", "E003"); ///특정내역 입력 제한길이(1050 Byte)를 초과하였습니다
- // return;
- }
-
- grp_spcl.visible = false;
- ]]>
- </script>
- </button>
- </group>
- </group>
- <button id="btn_payflag" class="btn2_letter6" navindex="8" visibility="hidden" style="left:920px; top:49px; width:86px; height:19px; ">
- <caption>처방급비저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 처방급비 변경
- var updtdata = getGridUpdateData(grd_outunexecprcpord);
-
- if (updtdata) {
- model.setValue("/root/hidden/oprc",updtdata);
- submit("TXPID21403");
- } else {
- messageBox("변경된 데이터가","I004"); ///변경된 데이터가 없습니다.
- }
-
- // 3. 수정 후 작업
- model.resetInstanceNode("/root/hidden/oprc");
-
- // 4. 다시 조회
- fSrchUnexecOrdList2();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:688px; width:1186px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" navindex="9" style="left:1058px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_spcl.visible = false;
- model.resetInstanceNode("/root/send/pid");
- model.resetInstanceNode("/root/send/patnm");
- model.resetInstanceNode("/root/send/chk");
- model.removeNodeset("/root/main/grd1/unexeclist");
- model.removeNodeset("/root/main/grd2/unexecordlist");
- model.removeNodeset("/root/send/delclcj/clcj");
- model.removeNodeset("/root/send/insclcj/clcj");
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line9" class="line_6" style="x1:0px; y1:0px; x2:1185px; y2:0px; "/>
- <button id="btn_close" class="btn4_letter2" navindex="10" style="left:1129px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|