123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>제증명리스트</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <paminfo/>
- <srchprofhist>
- <fromdd/>
- <todd/>
- <issflag>-</issflag>
- <pid/>
- <srchflag>rec</srchflag>
- <srchdata/>
- <patsrchflag>1</patsrchflag>
- <holograpflag>-</holograpflag>
- <formcd/>
- <ordtype/>
- <prntuserid/>
- <prntusernm/>
- </srchprofhist>
- <profhist>
- <list>
- </list>
- </profhist>
- <issusge>
- </issusge>
- <paminfo>
- <list/>
- </paminfo>
- <newprof>
- <formnm/>
- </newprof>
- <prcpinfo>
- <list/>
- </prcpinfo>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <send>
- <reqdata/>
- <savedata/>
- <userinfo/>
- </send>
- <hidden>
- <issusge/>
- </hidden>
- <temp>
- <popup/>
- <userinfo/>
- <profhist/>
- </temp>
- <tmp>
- <srchcond/>
- <pid/>
- <autoflag/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </tmp>
- <init>
- <popupmenu>
- <menu>
- <item>
- <label>무료발급사유</label>
- <func>fInsFreeResn</func>
- </item>
- <item>
- <label/>
- <func/>
- </item>
- <item>
- <label>수령인</label>
- <func>fInsRecvNM</func>
- </item>
- <item>
- <label/>
- <func/>
- </item>
- <item>
- <label>반환</label>
- <func>fDCProf</func>
- </item>
- <item>
- <label/>
- <func/>
- </item>
- <item>
- <label>발행서식보기</label>
- <func>fOCRView</func>
- </item>
- </menu>
- </popupmenu>
- <iemr>
- <pid/>
- <docucd/>
- <ocmnum/>
- <cmc_spcid/>
- <cmc_orddate/>
- <cmc_orderseqno/>
- </iemr>
- </init>
- <result/>
- <memo>
- <hardcd/>
- </memo>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize();
-
- fReqGetProfFormList();
-
- // 보험팀인 경우, 조회일자 기본은 발행일로 설정, 발행구분은 전체
- // 저장, 반환, 위임장뷰어 버튼 숨기기
- // 2008. 01. 02 오지훈
- //보험팀인 경우, 제증명리스트의 combo박스에
- if(getUserInfo("dutplcecd")=="4070300000"){
- model.setValue("/root/main/srchprofhist/srchflag", "pub");
- model.setValue("/root/main/srchprofhist/issflag" , "-");
- button3.visible = false;
- btn_dc.visible = false;
- button2.visible = false;
- button1.attribute("top") = 39;
- model.refresh();
- }
- ]]>
- </script>
- <submission id="TRMRF00708" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/main/formlist"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRMMR02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/profhist"/>
- <submission id="TRMMR02302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/prcpinfo"/>
- <submission id="TXMMR02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/result"/>
- <submission id="TRMMO02303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/forminfo"/>
- <submission id="TRMMR02303" mediatype="application/x-www-form-urlencoded" ref="/root/send/reqdata" resultref="/root/main/forminfo"/>
- <submission id="TXMMR02907" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
- <submission id="TXMMR02909" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/medirecweb/js/SMMMR02300.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../emr/commonweb/js/EMRCommon.js"/>
- <script type="javascript">
- <![CDATA[
- var sORDERBY = "asc";
-
- /**
- * @desc 제증명서식리스트 조회(자필포함)
- */
- function fReqGetProfFormList(){
- model.removeNodeset("/root/send/reqdata");
- model.makeValue("/root/send/reqdata/formprogflag", "all");
-
- //보험팀인 경우, 보험팀 용 서식만 조회하도록 처리
- if(getUserInfo("dutplcecd")=="4070300000"){
- model.makeValue("/root/send/reqdata/insuflag", "Y");
- }
-
- if(submit("TRMMR02303")){
- addComboItem("cmb_profformlist", "전체", "-", "above"); //combo에 '전체' item추가
- }
- model.refresh();
- }
-
- /**
- * @desc 무료제증명 반납
- */
- function fDCFreeProf(){
- var currow = grd_proflist.row;
- var prcpno = model.getValue(grd_proflist.nodeset + "[" + currow + "]/prcpno");
- var issflag = model.getValue(grd_proflist.nodeset + "[" + currow + "]/issflag");
- var profcertseq = model.getValue(grd_proflist.nodeset + "[" + currow + "]/profcertseq");
- var lastupdtrid = model.getValue(grd_proflist.nodeset + "[" + currow + "]/lastupdtrid");
-
- if(prcpno == 0){ //처방no가 0인 경우, 무료인 경우
- model.removeNodeset("/root/send/savedata");
- model.makeValue("/root/send/savedata/profcertseq", profcertseq);
- model.makeValue("/root/send/savedata/lastupdtrid", lastupdtrid);
- if(submit("TXMMR02301")){
- btn_profhist.dispatch("DOMActivate");
- }
-
- }else{
- messageBox("무료로 발급된 제증명을", "C002");
- return;
- }
- }
-
- /**
- * @desc : 숫자여부 판단
- */
- function isNumber(str) {
- str += ''; // 문자열로 변환
- str = str.replace(/^\s*|\s*$/g, ''); // 좌우 공백 제거
- if (str == '' || isNaN(str)) return false;
- return true;
- }
-
- /**
- * @desc : NodeList sorting
- * : node 구조를 변경하며 정렬을 수행
- */
- function nodeListSort( nodeset, trgRef, mode ){
- var nodesetCnt = model.getXPathValue("count(" + nodeset + ")");
- if(nodesetCnt == 0) return;
-
- var tmpVal1, tmpVal2;
- var tmpIndx;
-
- for(var i = 1; i <= nodesetCnt; i++){
- for(var j = i + 1 ; j <= nodesetCnt; j++){
- tmpVal1 = model.getValue(nodeset + "[" + i + "]/" + trgRef);
- tmpVal2 = model.getValue(nodeset + "[" + j + "]/" + trgRef);
- if(isNumber(tmpVal1)==true){tmpVal1 = Number(tmpVal1);}
- if(isNumber(tmpVal2)==true){tmpVal2 = Number(tmpVal2);}
- if(mode == "desc"){
- if(tmpVal1 < tmpVal2){
- model.duplicate(instance1.selectSingleNode(nodeset).parentNode, nodeset + "[" + j + "]", "*[" + i + "]");
- model.removenode(nodeset + "[" + (j + 1) + "]");
- model.duplicate(instance1.selectSingleNode(nodeset).parentNode, nodeset + "[" + (i + 1) + "]", "*[" + j + "]");
- model.removenode(nodeset + "[" + (i + 1) + "]");
- }
- }else if(mode == "asc"){
- if(tmpVal1 > tmpVal2){
- model.duplicate(instance1.selectSingleNode(nodeset).parentNode, nodeset + "[" + j + "]", "*[" + i + "]");
- model.removenode(nodeset + "[" + (j + 1) + "]");
- model.duplicate(instance1.selectSingleNode(nodeset).parentNode, nodeset + "[" + (i + 1) + "]", "*[" + j + "]");
- model.removenode(nodeset + "[" + (i + 1) + "]");
- }
- }
- }
- }
- }
-
- /**
- * @desc 반환
- */
- function fDCProf(){
- btn_dc.dispatch("DOMActivate");
- }
- /**
- * @desc 무료발급사유 입력
- */
- function fInsFreeResn(){
- if(grd_proflist.row > 0){
- var prcpno = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/prcpno");
- var issflag = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/issflag");
-
- if(issflag == 10){
- messageBox("미발행된 제증명 서식", "I009");
- return;
- }
-
- if(issflag == 50){
- messageBox("반납처리된 제증명 서식", "I009");
- return;
- }
-
- if(prcpno == 0){
- grd_proflist.col = grd_proflist.colRef("freeissresn");
- grd_proflist.colDisabled(grd_proflist.colRef("freeissresn")) = false;
- grd_proflist.editCell();
- }else{
- messageBox("무료로 발급된 서식만 입력", "I006");
- return;
- }
- }
- }
-
- /**
- * @desc 수령인 입력
- */
- function fInsRecvNM(){
- grd_proflist.col = grd_proflist.colRef("recvnm");
- grd_proflist.colDisabled(grd_proflist.colRef("recvnm")) = false;
- grd_proflist.editCell();
- }
-
- /**
- * @desc node value 비교
- */
- function compareNodeVal(desnode, srcnode, exceptcol){
- var node = instance1.selectSingleNode(desnode);
- var node2 = instance1.selectSingleNode(srcnode);
- var nodeList = node.childNodes;
- var nodeList2 = node2.childNodes;
- while(childNode = nodeList.nextNode()){
- childNode2 = nodeList2.nextNode();
- //node 비교 예외 컬럼인 경우 skip
- //값이 다른 경우 true
- if(childNode.NodeValue != childNode2.NodeValue){
- if(childNode2.nodeName == exceptcol){
- continue;
- }
- return true;
- }
- }
- //값이 같은 경우 false
- return false;
- }
-
- // 2013.12.20 CYW
- function fOCRView() {
- var row = grd_proflist.row;
- model.resetInstanceNode("/root/send/iemr");
- model.makeValue("/root/send/iemr/pid" , grd_proflist.textmatrix(row, grd_proflist.colRef("pid")));
- model.makeValue("/root/send/iemr/docucd" , grd_proflist.textmatrix(row, grd_proflist.colRef("formcd")));
- model.makeValue("/root/send/iemr/ocrcode" , grd_proflist.textmatrix(row, grd_proflist.colRef("ocrtag")));
-
- if( model.getValue("/root/send/iemr/ocrcode") != "" ){
- window.load("../../../emr/imgemrweb/xrw/SSMRC03130.xrw", "modeless", "imgemrviewer", "", "/root/send/iemr", "/root/hidden/temp");
- }else{
- messageBox("저장된 발행 이미지가 없습니다.", "I999");
- return;
- }
-
- model.refresh();
- }
-
- function fSetUserinfo(){
- setParameter("search_condition","usernm");
- setParameter("resultref","/root/send/userinfo");
- modal("SPZSU10100");
-
- var userinfo = model.getValue("/root/send/userinfo");
- userinfo = userinfo.split("|");
- var rshid = userinfo[2];
- var rshnm = userinfo[3];
-
- model.setValue("/root/main/srchprofhist/prntuserid" , rshid);
- model.setValue("/root/main/srchprofhist/prntusernm" , rshnm);
- model.resetInstanceNode("/root/send/userinfo");
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;1,1183;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:15px; width:1184px; height:85px; background-color:#fffbf2; border-color:#ffd799; "/>
- <datagrid id="grd_proflist" nodeset="/root/main/profhist/list" class="datagrid2" caption="구분^제증명^스캔^위임장^스캔^연번호^formcd^자필^제증명^기록^일련번호^등록번호^환자명^발행용도^생성번호^내원구분^일련번호^서식코드^출력종류^출력
매수^반납
매수^수납
여부^퇴원
수납^비고(무료발급사유)^수령인^작성일시^prcpno^발행부서코드^작성부서^작성자^작성자id^발행자id^발행자^발행일시^발급상태^삭제여부^삭제사용자ID^삭제사용자^최초등록자ID^최초등록자^최초등록일시^최종수정자ID^최종수정자^최종수정일시" colsep="^" colwidth="40, 46, 39, 46, 35, 95, 0, 40, 204, 40, 0, 62, 61, 88, 0, 0, 40, 0, 68, 38, 38, 36, 38, 112, 83, 100, 0, 100, 100, 62, 80, 80, 62, 100, 63, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100" dataheight="25" frozencols="13" mergecells="never" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:129px; width:1184px; height:653px; ">
- <col ref="ordtype" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="certtranflag" type="checkbox" visibility="hidden" style="text-align:center; "/>
- <col checkvalue="Y,N" ref="certscanflag" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="authtranflag" type="checkbox" visibility="hidden" style="text-align:center; "/>
- <col checkvalue="Y,N" disabled="true" ref="authscanflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="yearseqno" style="text-align:center; "/>
- <col disabled="true" ref="formcd" type="output"/>
- <col disabled="true" ref="holograpflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>자필</label>
- <value>A</value>
- </item>
- <item>
- <label>OCS</label>
- <value>O</value>
- </item>
- <item>
- <label/>
- <value>-</value>
- </item>
- </choices>
- </col>
- <col ref="formnm"/>
- <col ref="recyn" visibility="hidden"/>
- <col ref="profcertseq"/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col disabled="true" ref="prstusge" type="combo">
- <choices>
- <itemset nodeset="/root/hidden/issusge/M0332">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cretno"/>
- <col ref="ioflag"/>
- <col disabled="true" ref="formrecseq" visibility="hidden"/>
- <col ref="formcd"/>
- <col disabled="true" ref="issflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>미발행</label>
- <value>10</value>
- </item>
- <item>
- <label>발행</label>
- <value>20</value>
- </item>
- <item>
- <label>재발행</label>
- <value>30</value>
- </item>
- <item>
- <label>재출력</label>
- <value>40</value>
- </item>
- <item>
- <label>반납</label>
- <value>50</value>
- </item>
- <item>
- <label>부분반납</label>
- <value>60</value>
- </item>
- </choices>
- </col>
- <col ref="prntcnt" style="text-align:center; "/>
- <col ref="dcprntcnt" style="text-align:center; "/>
- <col ref="calcyn" style="text-align:center; "/>
- <col ref="dschcalcyn" style="text-align:center; "/>
- <col disabled="true" ref="freeissresn" type="input" maxbyte="50"/>
- <col editmode="inputsearch" ref="recvnm" type="input"/>
- <col ref="issdt" format="yyyy-mm-dd hh:nn"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="issdeptcd" visibility="hidden"/>
- <col ref="issdeptnm"/>
- <col ref="issnm" style="text-align:center; "/>
- <col ref="issid" visibility="hidden"/>
- <col ref="prntuserid" visibility="hidden"/>
- <col ref="prntusernm" style="text-align:center; "/>
- <col ref="prntdt" format="yyyy-mm-dd hh:nn"/>
- <col disabled="true" ref="issstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>임시저장</label>
- <value>R</value>
- </item>
- <item>
- <label>인증저장</label>
- <value>I</value>
- </item>
- </choices>
- </col>
- <col ref="delyn" visibility="hidden"/>
- <col ref="deluserid" visibility="hidden"/>
- <col ref="delusernm" visibility="hidden"/>
- <col ref="fstrgstrid" visibility="hidden"/>
- <col ref="fstrgstrnm" visibility="hidden"/>
- <col ref="fstrgstdt" visibility="hidden"/>
- <col ref="lastupdtrid" visibility="hidden"/>
- <col ref="lastrgstrnm" visibility="hidden"/>
- <col ref="lastupdtdt" visibility="hidden"/>
- <col ref="ocrtag" visibility="hidden"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if(isDataCell()){
- var curcol = grd_proflist.col;
- if(curcol != grd_proflist.colRef("authscanflag") &&
- curcol != grd_proflist.colRef("authtranflag") &&
- curcol != grd_proflist.colRef("certscanflag") &&
- curcol != grd_proflist.colRef("certtranflag")){
- fOpenProfMngt(); //제증명 관리화면 open
- }
- }
-
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- setPopupMenu("grd_proflist", false, "/root/init/popupmenu/menu/item", "label", "func");
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- initPopupMenu();
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var currow = grd_proflist.row;
- var curcol = grd_proflist.col;
- if(grd_proflist.isCell(event.target) == 1){ //grid의 cell이외를 클릭한 경우, 동작하지 않도록 처리
- if(currow == 0){
- nodeListSort(grd_proflist.nodeset, grd_proflist.colAttribute(curcol, "ref"), sORDERBY);
- nodeListSort("/root/temp2/profhist/list", grd_proflist.colAttribute(curcol, "ref"), sORDERBY);
- model.refresh();
- if(sORDERBY == "desc"){
- sORDERBY = "asc";
- }else{
- sORDERBY = "desc";
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var curcol = grd_proflist.col;
- if(curcol == grd_proflist.colRef("freeissresn")){
- var freeissresn = grd_proflist.valueMatrix(grd_proflist.row, grd_proflist.colRef("freeissresn"));
- if(freeissresn != ""){
- var rtnval = messageBox("무료발급사유를", "Q002");
- if(rtnval == 6){
- var pid = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/pid");
- var orddd = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/orddd");
- var cretno = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/cretno");
- var profcertseq = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/profcertseq");
- var freeissresn = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/freeissresn");
-
- model.removeNodeset("/root/send/savedata");
- model.makeValue("/root/send/savedata/pid" , pid);
- model.makeValue("/root/send/savedata/orddd" , orddd);
- model.makeValue("/root/send/savedata/cretno", cretno);
- model.makeValue("/root/send/savedata/procflag", "F");
- model.makeValue("/root/send/savedata/profcertseq", profcertseq);
- model.makeValue("/root/send/savedata/freeissresn", freeissresn);
- if(submit("TXMMR02907")){
- fGetProfPrntHist();
- }
-
- }else{
- fGetProfPrntHist();
- }
- }
- }else if(curcol = grd_proflist.colRef("recvnm")){
- var recvnm = grd_proflist.valueMatrix(grd_proflist.row, grd_proflist.colRef("recvnm"));
- if(freeissresn != ""){
- var rtnval = messageBox("수령인을", "Q002");
- if(rtnval == 6){
- var pid = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/pid");
- var orddd = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/orddd");
- var cretno = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/cretno");
- var profcertseq = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/profcertseq");
- var recvnm = model.getValue(grd_proflist.nodeset + "[" + grd_proflist.row + "]/recvnm");
-
- model.removeNodeset("/root/send/savedata");
- model.makeValue("/root/send/savedata/pid" , pid);
- model.makeValue("/root/send/savedata/orddd" , orddd);
- model.makeValue("/root/send/savedata/cretno", cretno);
- model.makeValue("/root/send/savedata/procflag", "R");
- model.makeValue("/root/send/savedata/profcertseq", profcertseq);
- model.makeValue("/root/send/savedata/recvnm", recvnm);
- if(submit("TXMMR02907")){
- fGetProfPrntHist();
- }
-
- }else{
- fGetProfPrntHist();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var currow = grd_proflist.row;
- var curcol = grd_proflist.col;
- if(grd_proflist.col == grd_proflist.colRef("authscanflag") ||
- grd_proflist.col == grd_proflist.colRef("authtranflag") ||
- grd_proflist.col == grd_proflist.colRef("certscanflag") ||
- grd_proflist.col == grd_proflist.colRef("certtranflag")){
- if(compareNodeVal("/root/main/profhist/list[" + currow + "]", "/root/temp2/profhist/list[" + currow + "]", "status")){
- model.setValue(grd_proflist.nodeset + "[" + currow + "]/status", "u");
- }else{
- model.setValue(grd_proflist.nodeset + "[" + currow + "]/status", "");
- }
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_tle" style="left:0px; top:0px; width:1187px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">제증명리스트</caption>
- </group>
- <group id="grp_calcHist" visibility="hidden" style="left:619px; top:437px; width:555px; height:320px; ">
- <datagrid id="datagrid1" nodeset="/root/main/prcpinfo/list" caption="선택^영수일자^영수증번호^수가코드^수가명칭^처방일자^처방번호^기관코드^처방이력번호" colsep="^" colwidth="30, 100, 120, 100, 200, 100, 100, 100, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="25" rowsep="|" style="left:1px; top:30px; width:552px; height:288px; ">
- <col ref="check" type="checkbox"/>
- <col ref="rcptdd"/>
- <col ref="rcptno"/>
- <col ref="calcscorcd"/>
- <col ref="hngnm"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="prcpno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="prcphistno" visibility="hidden"/>
- </datagrid>
- <caption id="caption20" class="tit_2" style="left:5px; top:9px; width:73px; height:13px; ">수가내역</caption>
- <button id="button41" class="btn4_letter2" style="left:437px; top:2px; width:56px; height:22px; ">
- <caption>반환</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fDelCalcScor();
- ]]>
- </script>
- </button>
- <button id="button45" class="btn4_letter2" style="left:497px; top:2px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_calcHist.attribute("visibility")= "hidden";
- ]]>
- </script>
- </button>
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:553px; y2:25px; "/>
- </group>
- <secret id="input4" ref="/root/tmp/rrgstno2" navindex="4" secretstartposition="1" appearance="secret" style="left:743px; top:49px; width:69px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- model.setFocus("radio1");
- model.refresh();
-
- model.setValue("/root/tmp/srchcond", 3);
- model.setValue("/root/tmp/rrgstno1", input3.currentText);
- model.setValue("/root/tmp/rrgstno2", input4.value);
- btn_usrsrch.dispatch("DOMActivate");
- model.refresh();
- }
- ]]>
- </script>
- </secret>
- <button id="button10" class="btn2_letter2" style="left:1139px; top:105px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var selectValue1 = true;
- var selectValue2 = 1;
- var fileName = window.fileDialog("save", ",", false, "제증명이력", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != ""){
- //grd_proflist.saveExcel(fileName, "sheetname:sheet1;col_08:label;col_13:label;col_17:label;col_23:label;");
- //grd_proflist.saveExcel(fileName, "sheetname:sheet1;col_08:label;col_13:label;col_17:label;col_23:label;col_15:label;");
- grd_proflist.saveExcel(fileName, "SheetName", false, false, "", "", false);
- }
- ]]>
- </script>
- </button>
- <button id="btn_dc" class="btn2_letter2" style="left:1095px; top:105px; width:42px; height:19px; ">
- <caption>반환</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var currow = grd_proflist.row;
- if(currow > 0){
- var prcpno = model.getValue(grd_proflist.nodeset + "[" + currow + "]/prcpno");
- var issflag = model.getValue(grd_proflist.nodeset + "[" + currow + "]/issflag");
-
- if(issflag == 10){
- messageBox("미발행 제증명은 반환", "C001");
- return;
- }
-
- if(issflag == 50){
- messageBox("이미 반환된 처방", "E008");
- return;
- }
- if(prcpno == 0){
- var rtnval = messageBox("무료로 발급된 제증명입니다. 반납을", "Q004");
- if(rtnval == 6){
- fDCFreeProf();
- }
- }else{
- fSrchCalcScor();
- }
-
- }else{
- messageBox("반납처리할 제증명을", "C001");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="btn_profhist" class="btn1_letter3" style="left:1060px; top:22px; width:56px; height:22px; ">
- <caption>조 회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ddInterval = getDateInterval(ipt_fromdd.value, ipt_todd.value);
- var pid = input1.value;
- var hngnm = input2.value;
- var formcd = cmb_profformlist.value;
-
- if(ddInterval > 31){
- if(pid == "" && hngnm =="" && formcd == "") {
- messageBox("시스템 부하 원인으로 등록번호,이름,서식명없이 31일까지만 조회", "I006");
- return;
- }
- }
- fGetProfPrntHist();
- ]]>
- </script>
- </button>
- <caption id="caption1" style="left:338px; top:24px; width:15px; height:20px; ">~</caption>
- <caption id="caption2" class="search_name" style="left:17px; top:23px; width:86px; height:17px; vertical-align:middle; ">조회일자 :</caption>
- <caption id="caption3" class="search_name" style="left:17px; top:49px; width:92px; height:17px; vertical-align:middle; ">등록번호 :</caption>
- <select1 id="radio1" ref="/root/main/srchprofhist/issflag" class="radio_search" appearance="full" cellspacing="5" cols="4" rows="1" overflow="visible" style="left:383px; top:75px; width:213px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>미발행</label>
- <value>U</value>
- </item>
- <item>
- <label>발행</label>
- <value>I</value>
- </item>
- <item>
- <label>반납</label>
- <value>R</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_profhist.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_todd" ref="/root/main/srchprofhist/todd" inputtype="date" style="left:352px; top:24px; width:100px; height:19px; text-align:center; "/>
- <input id="input1" ref="/root/tmp/pid" class="input_search" navindex="1" style="left:107px; top:49px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- model.setValue("/root/tmp/srchcond", 1);
- model.setValue("/root/tmp/pid", input1.currentText);
- btn_usrsrch.dispatch("DOMActivate");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <line id="line2" class="line_1" style="x1:0px; y1:126px; x2:1183px; y2:126px; "/>
- <caption id="caption7" class="search_name" style="left:545px; top:24px; width:88px; height:17px; vertical-align:middle; ">제 증 명 :</caption>
- <button id="btn_usrsrch" class="icon_search" style="left:213px; top:51px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/tmp/autoflag", "Y");
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/tmp", "/root/send");
- model.setValue("/root/main/srchprofhist/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/tmp/pid" , model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/tmp/hngnm" , model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/tmp/rrgstno1", model.getValue("/root/main/patinfo/patinfolist/rrgstno1"));
- model.setValue("/root/tmp/rrgstno2", model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- btn_profhist.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <select1 id="cmb_profformlist" ref="/root/main/srchprofhist/formcd" class="combo_search" appearance="minimal" editmode="inputsearch" itemcount="30" style="left:635px; top:24px; width:365px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/forminfo/formlist">
- <label ref="formnm"/>
- <value ref="formcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == 13){
- cmb_profformlist.select(cmb_profformlist.focusIndex);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_profhist.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <input id="ipt_fromdd" ref="/root/main/srchprofhist/fromdd" inputtype="date" style="left:234px; top:24px; width:100px; height:19px; text-align:center; "/>
- <select1 id="radio2" ref="/root/main/srchprofhist/srchflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:105px; top:24px; width:125px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>작성일</label>
- <value>rec</value>
- </item>
- <item>
- <label>발행일</label>
- <value>pub</value>
- </item>
- </choices>
- </select1>
- <input id="input2" ref="/root/tmp/hngnm" class="input_search" navindex="2" style="left:383px; top:49px; width:117px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == 13){
- model.setValue("/root/tmp/srchcond", 2);
- model.setValue("/root/tmp/hngnm", input2.currentText);
- btn_usrsrch.dispatch("DOMActivate");
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="input3" ref="/root/tmp/rrgstno1" class="input_search" navindex="3" maxlength="6" style="left:662px; top:49px; width:73px; height:19px; ">
- <script type="javascript" ev:event="onmaxlength">
- <![CDATA[
- model.setFocus("secret1");
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:294px; top:49px; width:92px; height:17px; vertical-align:middle; ">환 자 명 :</caption>
- <caption id="caption8" class="search_name" style="left:545px; top:49px; width:112px; height:17px; vertical-align:middle; ">주민등록번호 :</caption>
- <button id="button1" class="btn4_letter5" style="left:1060px; top:46px; width:92px; height:22px; ">
- <caption>이미지뷰어</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var currow = grd_proflist.row;
- if(currow > 0){
- var formcd = model.getValue(grd_proflist.nodeset + "[" + currow + "]/formcd");
- var yearseqno = model.getValue(grd_proflist.nodeset + "[" + currow + "]/yearseqno");
- var pid = model.getValue(grd_proflist.nodeset + "[" + currow + "]/pid");
- model.setValue("/root/init/iemr/pid" , pid); //등록번호
- model.setValue("/root/init/iemr/docucd" , formcd); //서식코드
- model.setValue("/root/init/iemr/ocmnum" , ""); //연번호
- if(yearseqno != ""){
- model.setValue("/root/init/iemr/ocmnum" , yearseqno);
- }
- model.setValue("/root/init/iemr/cmc_spcid" , ""); //blocking null exception
- model.setValue("/root/init/iemr/cmc_orddate", ""); //blocking null exception
- model.setValue("/root/init/iemr/cmc_orderseqno", ""); //blocking null exception
-
- open("SPMMR06400", "", "", "", "", "/root/init/iemr", "/root/send/iemr");
-
- }else{
- messageBox("이미지뷰어에서 보여질 제증명을", "C001");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter5" style="left:1060px; top:70px; width:92px; height:22px; ">
- <caption>위임장뷰어</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var currow = grd_proflist.row;
- if(currow > 0){
-
- var yearseqno = model.getValue(grd_proflist.nodeset + "[" + currow + "]/yearseqno");
- var pid = model.getValue(grd_proflist.nodeset + "[" + currow + "]/pid");
-
- if(yearseqno == "" || yearseqno == null){
- messageBox("발행된 연번호가", "I004");
- return;
- }
- model.setValue("/root/init/iemr/pid" , pid); //등록번호
- model.setValue("/root/init/iemr/docucd" , "0800004076"); //서식코드
- model.setValue("/root/init/iemr/ocmnum" , yearseqno); //연번호
-
- //if(yearseqno != ""){
- // model.setValue("/root/init/iemr/ocmnum" , yearseqno);
- //}
- model.makeValue("/root/init/iemr/cmc_spcid" , ""); //blocking null exception
- model.makeValue("/root/init/iemr/cmc_orddate", ""); //blocking null exception
- model.makeValue("/root/init/iemr/cmc_orderseqno", ""); //blocking null exception
-
- open("SPMMR06400", "", "", "", "", "/root/init/iemr", "/root/send/iemr");
-
- }else{
- messageBox("위임장뷰어에서 보여질 제증명을", "C001");
- return;
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter2" style="left:1051px; top:104px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nodelist = model.instances(0).selectNodes("/root/main/profhist/list[status='u']");
- if(nodelist.length > 0){
- var savedata = getNodeListCSV(nodelist);
- model.removeNodeset("/root/send/savedata");
- model.makeNode("/root/send/savedata");
- model.makeValue("/root/send/savedata/procflag/procflag", "S");
- model.makeValue("/root/send/savedata/profcertinfo", savedata);
- if(submit("TXMMR02909")){
- fGetProfPrntHist();
- }
-
- }else{
- messageBox("저장할 데이터가", "I004");
- return;
- }
- ]]>
- </script>
- </button>
- <caption id="caption4" class="search_name" style="left:294px; top:75px; width:88px; height:17px; vertical-align:middle; ">발행구분 :</caption>
- <select1 id="radio3" ref="/root/main/srchprofhist/holograpflag" class="radio_search" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:106px; top:75px; width:155px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>OCS</label>
- <value>O</value>
- </item>
- <item>
- <label>자필</label>
- <value>A</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //btn_profhist.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:17px; top:74px; width:88px; height:17px; vertical-align:middle; ">자필구분 :</caption>
- <caption id="caption10" class="search_name" style="left:855px; top:49px; width:83px; height:17px; vertical-align:middle; ">구 분 :</caption>
- <select1 id="combo1" ref="/root/main/srchprofhist/ordtype" class="combo_search" appearance="minimal" editmode="inputsearch" itemcount="30" style="left:925px; top:49px; width:75px; height:19px; text-align:center; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>DSC</label>
- <value>D</value>
- </item>
- <item>
- <label>응급</label>
- <value>E</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>건진</label>
- <value>S</value>
- </item>
- </choices>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == 13){
- cmb_profformlist.select(cmb_profformlist.focusIndex);
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- btn_profhist.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <caption id="caption11" class="search_name" style="left:645px; top:74px; width:92px; height:17px; vertical-align:middle; ">발 행 자 :</caption>
- <input id="ipt_prntuserid" ref="/root/main/srchprofhist/prntuserid" class="input_search" disabled="false" navindex="1" style="left:732px; top:74px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( model.getValue("/root/main/srchprofhist/prntuserid") == "" ){
- model.setValue("/root/main/srchprofhist/prntusernm", "");
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_prntusernm" ref="/root/main/srchprofhist/prntusernm" class="input_search" disabled="true" navindex="2" style="left:840px; top:74px; width:102px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <button id="btn_useid" class="icon_search" navindex="5" style="left:820px; top:74px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetUserinfo();
- ]]>
- </script>
- </button>
- <line id="line30" class="line_4" style="x1:1025px; y1:25px; x2:1025px; y2:91px; "/>
- </xhtml:body>
- </xhtml:html>
|