123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191 |
- <?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/>
- </clcj>
- </item1>
- <popupendflag/>
- </main>
- <send>
- <pid/>
- <patnm/>
- <rdo/>
- <chk>Y</chk>
- <chk2>Y</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>
- <fromdd/>
- <todd/>
- </send>
- <hidden>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- <autoflag/>
- </cond>
- </sppmc02500>
- <rcv>
- <patInfo>
- <pid/>
- <patnm/>
- </patInfo>
- </rcv>
- <popupmenu>
- <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="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="TXPID21402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grd2"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 그리드 빈줄 제거
- model.removeNodeset("/root/main/grd1/unexeclist");
- model.removeNodeset("/root/main/grd2/unexecordlist");
-
- // grd_outunexecprcpord.colDisabled(grd_outunexecprcpord.colRef("diagyn")) = true;
- //
- model.removeNodeset("/root/main/grd1/unexeclist");
- model.removeNodeset("/root/main/grd2/unexecordlist");
- fInitialize(); // 기본데이터 초기화
- //
- //
- // 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");
- // }
- model.refresh();
- ]]>
- </script>
- <submission id="TXPID21403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden"/>
- <submission id="TRPID21901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/grd1"/>
- <submission id="TXPID21901" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </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/chk2");
- // model.setValue("/root/send/chk2", "");
- // model.removeNodeset("/root/send/delclcj/clcj");
- // model.removeNodeset("/root/send/insclcj/clcj");
- // 외래접수 일자 fromdd - todd 세팅 (한달전 ~ 현재일)
- model.setValue("/root/send/fromdd", getCurrentDate().toDate().getAddDate(-1,"M").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/todd", getCurrentDate());
- }
-
- // 환자번호 조회 후 처리작업
- function fSearch(){
-
- // 1.조회를 위해 넘어가야 할 데이터 세팅
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- // 2.조회
- fSrchUnexecOrdList();
- }
-
- 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() {
-
- var pid = model.getValue("/root/send/pid");
- if (pid != "") {
- 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("TRPID21901")) {
- 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");
- }
- }
- } else {
- messageBox("환자정보 조회가 이루어지지 ", "E007");
- }
- }
-
- // 타과포함조회, 시행처방포함조회 체크 선택시 해당 일자의 미시행오더를 조회하도록 한다.
- 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;
- 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="1230" pageheight="780" 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:132px; height:13px; ">외래급비변경</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:210px; width:1195px; height:515px; ">
- <select id="chk_otherdept" ref="/root/send/chk" navindex="4" visibility="hidden" overflow="visible" appearance="full" style="left:465px; top:45px; 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:205px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // 조회
- fSrchUnexecOrdList();
- ]]>
- </script>
- </button>
- <select id="chk_execdd" ref="/root/send/chk2" navindex="4" visibility="hidden" overflow="visible" appearance="full" style="left:565px; top:45px; 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>
- <line id="line8" class="line_1" style="x1:0px; y1:55px; x2:275px; y2:55px; "/>
- <caption id="caption15" class="tit_2" style="left:5px; top:40px; width:125px; height:13px; ">외래접수내역</caption>
- <caption id="caption3" class="tit_2" style="left:279px; top:15px; width:87px; height:13px; ">처방내역</caption>
- <line id="line2" class="line_1" style="x1:279px; y1:30px; x2:1194px; y2:30px; "/>
- <button id="button3" class="btn2_letter2" navindex="6" visibility="hidden" 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_judgend" 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","Y");
- grd_outunexecprcpord.rowstatus(i) = 2; // 2 : update
- }
-
- var updateData = getGridUpdateData(grd_outunexecprcpord);
- model.setValue("/root/send/datalist", updateData);
- if (updateData) {
-
- submit("TXPID21402");
-
- 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;
- }
-
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_judgcancel" class="btn2_letter6" navindex="7" visibility="hidden" style="left:1015px; top:50px; 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");
-
- 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;
- }
-
- model.refresh();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn2_letter2" navindex="8" visibility="hidden" 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");
-
- 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 + "]/delseqno", seqno);
-
- /*
- 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 + "]/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"));
- // 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 + "]/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"));
- // 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 + "]/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"));
- // 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 + "]/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 + "]/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");
- // 다시 조회
- fSrchUnexecOrdList2();
- } else {
- messageBox("변경된 데이터가","I004"); ///변경된 데이터가 없습니다.
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_outunexecprcp" nodeset="/root/main/grd1/unexeclist" caption="환자번호^처방일^실시희망일^진료과코드^진료과^진료의코드^진료의^cretno^" colsep="^" colwidth="0, 67, 71, 0, 47, 0, 42, 100, 0" dataheight="23" ellipsis="true" explorerbar="sort" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="true" style="left:0px; top:60px; width:275px; height:450px; ">
- <col ref="pid"/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="prcphopedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddeptcd"/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="orddrid"/>
- <col ref="orddrnm"/>
- <col ref="cretno" 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^환자번호^외래등록일자^외래생성번호^일련번호^처방번호^처방이력번호^실시처방일련번호^기관코드^특정메모구분^참고사항^저장여부^보험유형^처방일자" colsep="^" colwidth="20, 0, 20, 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" dataheight="25" ellipsis="true" explorerbar="sortshowmove" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:279px; top:35px; width:915px; height:475px; ">
- <col class="update_n" ref="update"/>
- <col ref="spclchange"/>
- <col ref="grupsnglyn" style="text-align:center; "/>
- <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" visibility="hidden" style="text-align:center; "/>
- <col ref="spclcd" visibility="hidden">
- <![CDATA[-]]>
- </col>
- <col ref="spclspec" visibility="hidden"/>
- <col ref="judgendflag" visibility="hidden" 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"/>
- <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/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/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;
-
- // 특정내역 상세 활성화
- 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")));
-
- 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:100px; border-color:#c7a3cf; border-style:solid; ">
- <group id="group1" visibility="hidden" scroll="auto" style="left:-1px; top:-1px; width:594px; height:100px; ">
- <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" 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" 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" visibility="hidden" 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="visible" style="left:1108px; top:9px; width:86px; height:19px; ">
- <caption>처방급비저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.removeNodeset("/root/send/payflag/list");
-
- // 처방급비 변경을 위해 노드에 담는다. (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";
- }
- }
-
- if (updateyn == "Y") {
- submit("TXPID21901");
- 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>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_default" inputtype="date" style="left:6px; top:11px; width:85px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/todd" class="input_default" inputtype="date" style="left:111px; top:11px; width:85px; height:19px; "/>
- <caption id="caption1" style="left:95px; top:12px; width:15px; height:20px; ">~</caption>
- </group>
- <group id="group2" style="left:0px; top:723px; width:1195px; height:27px; ">
- <button id="btn_init" class="btn4_letter3" navindex="9" visibility="hidden" style="left:1117px; 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>
- <button id="btn_close" class="btn4_letter2" navindex="10" visibility="hidden" style="left:1129px; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </group>
- <import id="import1" src="../../../pam/patinfomngtweb/xrw/SSPMC00100_인적사항.xrw" style="left:0px; top:12px; width:1195px; height:197px; "/>
- </xhtml:body>
- </xhtml:html>
|