123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPID22200_공여자명세서생성.xrw
- * 수정이력
- * - 2008.08.29 / 최초작성 / 김상진
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>공여자명세서생성</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list1>
- <clbs/>
- </list1>
- </main>
- <send>
- <item1>
- <ioflag>I</ioflag>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- <ordfromdd/>
- <orddeptcd/>
- <orddrid/>
- <spclcd>V073</spclcd>
- <diagcd/>
- <calcscorcd/>
- <hngnm/>
- <inclnm/>
- <mx999/>
- <drugqty/>
- <tims/>
- <dayno/>
- <totamt/>
- <ownbamt/>
- <clamflag>0</clamflag>
- </item1>
- </send>
- <init>
- <item1>
- <ioflag/>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- </item1>
- <!-- 보험유형 -->
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <!-- 보조유형 -->
- <P0010list>
- <P0010>
- <cdnm/>
- <cdid/>
- </P0010>
- </P0010list>
- </init>
- <hidden>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </cond>
- </sppmc02500>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- var pid = model.getValue("/root/init/item1/pid");
- if (pid) {
- model.setValue("/root/send/item1/ioflag", model.getValue("/root/init/item1/ioflag"));
- model.setValue("/root/send/item1/clamym", model.getValue("/root/init/item1/clamym"));
- model.setValue("/root/send/item1/clamdg", model.getValue("/root/init/item1/clamdg"));
- model.setValue("/root/send/item1/pid", model.getValue("/root/init/item1/pid"));
- model.setValue("/root/send/item1/pidsn", model.getValue("/root/init/item1/pidsn"));
- }
- // 기본정보셋팅
- model.setValue("/root/send/item1/calcscorcd", "JJJJJJ"); //처방코드
- model.setValue("/root/send/item1/hngnm", "타인간 이식 공여자 진료비"); //처방명
- model.setValue("/root/send/item1/inclnm", "타인간 이식 공여자 진료비"); //준용명
- model.setValue("/root/send/item1/drugqty", "1"); //1회량
- model.setValue("/root/send/item1/tims", "1"); //횟수
- model.setValue("/root/send/item1/dayno", "1"); //일수
-
- // 화면을 초기화한다.
- fInitialize();
-
- var pid = model.getValue("/root/send/item1/pid");
- if (pid) {
- btn_select.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
- <submission id="TRPID22201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/main"/>
- <submission id="TXPID22201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/aftjudgweb/js/SMPID20000.js"/>
- <script type="javascript">
- <![CDATA[
- var gToday = new Date();
- var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var gBasemonth = gToday.getDateFormat("MM");
- var gBaseday = gToday.getDateFormat("DD");
- var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
- var gCurrentym = gBaseyear + gBasemonth;
-
- function fInitialize() {
-
- // ---------------------------------------------------------------
- // 공통코드를 조회한다.
- // (ZBC001.js) com.ZBCMCODE 에서 기초코드 값 Get
- // ---------------------------------------------------------------
- zbcfGetCodeList(
- new Array("P0008" // 보험유형
- ,"P0010" // 보조유형
- ),
- new Array("/root/init/P0008list"
- ,"/root/init/P0010list"
- ) );
-
- // ---------------------------------------------------------------
- // 진료과 주치의 초기화
- // ---------------------------------------------------------------
- submit("TRPID20309", false);
- model.makeNode("root/hidden/tmp/orddeptcd");
- model.makeNode("root/hidden/tmp/orddrid");
-
- model.removeNodeset("root/init/orddeptcd");
- model.removeNodeset("root/init/orddrid");
- model.makeNode("root/init/orddeptcd");
- model.makeNode("root/init/orddrid");
- model.copyNode("root/init/orddeptcd", "root/hidden/tmp/orddeptcd");
- model.copyNode("root/init/orddrid", "root/hidden/tmp/orddrid");
-
- model.removeNodeset("root/hidden/tmp/orddeptcd");
- model.removeNodeset("root/hidden/tmp/orddrid");
-
- model.refreshpart("/root/send/item1/orddeptcd");
- model.refreshpart("/root/send/item1/orddrid");
-
- //청구월 셋팅
- if (model.getValue("/root/send/item1/clamym") == "") {
- var lv_date = gCurrentym.toDate("YYYYMM" + "01");
- lv_date = lv_date.getAddDate(-1, "M")
- gCurrentym = lv_date.getDateFormat("YYYYMM")
- model.setValue("/root/send/item1/clamym", gCurrentym);
- }
-
-
- if (model.getValue("/root/send/item1/ioflag") == "O") {
- grd_clbsmast.colHidden(grd_clbsmast.colRef("iphsfromdd")) = true;
- grd_clbsmast.colHidden(grd_clbsmast.colRef("iphstodd")) = true;
- }
-
- cmb_spclcd.select(0);
- cmb_diagcd.select(0);
-
- model.refresh();
- }
-
- function fGetDonorList() {
- if (model.getValue("/root/send/item1/pid") == "") {
- messageBox("등록번호를", "C001"); ///입력하십시오 !
- } else {
- submit("TRPID22201");
-
- var nodeList = instance1.selectNodes("/root/main/list1/clbs");
-
- // 건수가 한건이고 접수번호가 있으면 바로 체크해준다.
- if (nodeList.length == 1 && model.getValue("/root/main/list1/clbs[1]/acptno") != "-") {
- model.setValue("/root/main/list1/clbs[1]/fromchk", "Y");
- model.setValue("/root/send/item1/clamdg", model.getValue("/root/main/list1/clbs[1]/clamdg"));
- model.refreshpart("/root/send/item1/clamdg");
- grd_clbsmast.refresh();
- grd_clbsmast.row = 1;
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="810" pageheight="460" guideline="1,1145;2,727;2,739;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:790px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:196px; height:14px; ">명세서관리(공여자명세서생성)</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:790px; height:437px; ">
- <datagrid id="grd_clbsmast" nodeset="/root/main/list1/clbs" class="datagrid2" caption="C^청구년월^차수^등록번호^등록번호^환자명^보험
유형^보조
유형^진료개시일^진료종료일^유형시작일^유형종료일^진료과^진료의^workflag^clbtworkflag^접수번호^접수일자^명일련" colsep="^" colwidth="23, 61, 41, 67, 22, 53, 30, 30, 72, 72, 72, 72, 70, 60, 28, 30, 65, 65, 64" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="8" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:77px; width:780px; height:155px; ">
- <col checkvalue="Y,N" ref="fromchk" type="checkbox"/>
- <col disabled="true" ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col disabled="true" ref="clamdg" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="pidsn" style="text-align:center; "/>
- <col ref="patnm" style="left:332px; top:32px; width:53px; height:23px; text-align:center; "/>
- <col disabled="true" ref="insukind" type="output" style="text-align:center; "/>
- <col disabled="true" ref="suppkind" type="output" style="text-align:center; "/>
- <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="ordtodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="iphsfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="iphstodd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddrid" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="workflag" visibility="hidden"/>
- <col ref="clbtworkflag" visibility="hidden"/>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="acptdd" style="text-align:center; "/>
- <col ref="docuseqno" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var icol = grd_clbsmast.col;
- var ifromcnt=0;
- var fromchkyn;
- var nodeList = instance1.selectNodes("/root/main/list1/clbs");
-
- if (icol == grd_clbsmast.colRef("fromchk")) {
- for ( i = 1; i <= nodeList.length; i++) {
- fromchkyn = model.getValue("/root/main/list1/clbs[ " + i + "]/fromchk");
- if (fromchkyn == "Y") {
- ifromcnt++;
- // 추가청구 생성일 경우 체크
- if (model.getValue("/root/main/send/item/clamflag") == "2") {
- if (model.getValue("/root/main/list1/clbs[ " + i + "]/acptdd") == "-") {
- messageBox("접수증 수신파일을 업로드하세요! 접수번호가", "I004"); ///I004=없습니다.
- model.setValue("/root/main/list1/clbs[ " + i + "]/fromchk", "N");
- ifromcnt--;
- break;
- }
- }
-
- model.setValue("/root/send/item1/clamdg", model.getValue("/root/main/list1/clbs[ " + i + "]/clamdg"));
- model.refreshpart("/root/send/item1/clamdg");
- if (ifromcnt > 1) {
- messageBox("명세서를 하나만", "C002"); ///C002=선택하십시오 !
- model.setValue("/root/main/list1/clbs[ " + i + "]/fromchk", "N");
- ifromcnt--;
- }
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="cap_judgtrgtman" class="tit_2" style="left:5px; top:55px; width:126px; height:13px; ">기본정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:780px; y2:72px; "/>
- <group id="group1" style="left:0px; top:7px; width:780px; height:41px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:1px; width:780px; height:35px; "/>
- <caption id="caption30" class="search_name" style="left:18px; top:9px; width:85px; height:17px; ">청구년월</caption>
- <input id="ipt_clamym" ref="/root/send/item1/clamym" class="input_search" navindex="10" inputtype="date" format="yyyy-mm" style="left:99px; top:8px; width:69px; height:19px; text-align:center; "/>
- <!-- 기존 ID : 1214 => P0235 => P0291 -->
- <!-- 기존 : /root/InitData2/comccodem => P0287 확인해볼 것 -->
- <caption id="caption38" class="search_name" style="left:460px; top:10px; width:84px; height:17px; ">등록번호</caption>
- <input id="ipt_patunitsrch" ref="/root/send/item1/pid" class="input_search" navindex="1" inputtype="button" maxlength="10" style="left:540px; top:10px; width:97px; height:19px; ">
- <hint>
- <![CDATA[환자성명으로 검색시 2자 이상 입력하세요.]]>
- </hint>
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13") { // Enter 입력 시에
- if (ipt_patunitsrch.currentText.length > 1) { // 2글자 이상이면
- setInputNodeCurText(); // (tfHelper.js) 현재 인풋값 노드 반영
- var srchtext = model.getValue("/root/send/item1/pid");
- if (srchtext.charCodeAt(0) > 255) {
- fGetSrchPid();
- } else {
- fGetDonorList();
- }
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- fGetSrchPid();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- ]]>
- </script>
- </input>
- <button id="btn_select" class="btn1_letter2" navindex="32" style="left:704px; top:8px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetDonorList();
- ]]>
- </script>
- </button>
- <!-- 2007.09.06 수정 박재형 보조유형 combo data 공통안쓰고 가져옴.-->
- <!-- 2007.09.19 수정 박재형 :: 보험유형을 선택시 해당하는 보조유형을 선택하기 위해 필요 (재원심사 참고하여 동일하게 구성) 추가:opt_insukind, opt_suppkind
- ==표시기능만있으므로 추후논의후 표시시 위치배열다시하고 제거시 그냥제거.
- <output id="opt_insukind" style="left:875px; top:8px; width:17px; height:19px; font-size:8pt; background-color:#ececec; border-color:transparent; "/>
- <output id="opt_suppkind" style="left:875px; top:32px; width:17px; height:19px; font-size:8pt; background-color:#ececec; border-color:transparent; "/> -->
- <caption id="caption1" class="search_name" style="left:245px; top:10px; width:80px; height:17px; ">내원형태</caption>
- <select1 id="cmb_ioflag" ref="/root/send/item1/ioflag" class="combo_search" navindex="3" appearance="minimal" style="left:325px; top:10px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/send/item1/ioflag") == "O") {
- grd_clbsmast.colHidden(grd_clbsmast.colRef("iphsfromdd")) = true;
- grd_clbsmast.colHidden(grd_clbsmast.colRef("iphstodd")) = true;
- } else {
- grd_clbsmast.colHidden(grd_clbsmast.colRef("iphsfromdd")) = false;
- grd_clbsmast.colHidden(grd_clbsmast.colRef("iphstodd")) = false;
- }
- ]]>
- </script>
- </select1>
- <line id="line3" class="line_4" style="x1:680px; y1:5px; x2:680px; y2:30px; "/>
- <input id="ipt_clamdg" ref="/root/send/item1/clamdg" class="input_search" disabled="true" autonext="1" style="left:173px; top:9px; width:40px; height:19px; text-align:center; "/>
- </group>
- <group id="grp_main" scroll="auto" style="left:0px; top:235px; width:780px; height:161px; ">
- <caption id="caption2" class="tit_2" style="left:5px; top:5px; width:126px; height:13px; ">등록정보</caption>
- <line id="line2" class="line_1" style="x1:0px; y1:22px; x2:780px; y2:22px; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:157px; x2:780px; y2:157px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:27px; width:80px; height:23px; text-align:left; vertical-align:middle; ">구분</caption>
- <caption id="caption3" class="cell_1" style="left:0px; top:53px; width:80px; height:23px; text-align:left; vertical-align:middle; ">처방명</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:79px; width:80px; height:23px; text-align:left; vertical-align:middle; ">준용명</caption>
- <caption id="caption5" class="cell_1" style="left:278px; top:27px; width:80px; height:23px; text-align:center; vertical-align:middle; ">처방코드</caption>
- <input id="ipt_calcscorcd" ref="/root/send/item1/calcscorcd" class="input_essential" disabled="true" style="left:361px; top:30px; width:73px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:0px; top:131px; width:80px; height:23px; text-align:left; vertical-align:middle; ">1회량</caption>
- <select1 id="cmb_spclcd" ref="/root/send/item1/spclcd" class="combo_essential" navindex="1" appearance="minimal" style="left:84px; top:30px; width:189px; height:19px; ">
- <choices>
- <item>
- <label>조혈모세포 공여자</label>
- <value>V073</value>
- </item>
- <item>
- <label>신장 공여자</label>
- <value>V074</value>
- </item>
- <item>
- <label>간 공여자</label>
- <value>V075</value>
- </item>
- <item>
- <label>췌장 공여자</label>
- <value>V076</value>
- </item>
- <item>
- <label>심장 공여자</label>
- <value>V077</value>
- </item>
- <item>
- <label>폐 공여자</label>
- <value>V078</value>
- </item>
- <item>
- <label>기타</label>
- <value>-</value>
- </item>
- <item>
- <label>타병원 진료 명세서</label>
- <value>OH</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var spclcd = model.getValue("/root/send/item1/spclcd");
-
- if (spclcd) {
- var iIndex = cmb_spclcd.focusIndex;
- cmb_diagcd.select(iIndex);
-
- // 구분을 '기타'로 선택한경우 EDI메모를 직접입력한다.
- if (spclcd == '-') {
- model.setFocus("ipt_mx999");
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var spclcd = model.getValue("/root/send/item1/spclcd");
-
- if (spclcd) {
- if (spclcd == 'OH') {
- model.setValue("/root/send/item1/hngnm", "타병원 진료 명세서"); //처방명
- model.setValue("/root/send/item1/inclnm", "타병원 진료 명세서"); //준용명
- }
- else {
- model.setValue("/root/send/item1/hngnm", "타인간 이식 공여자 진료비"); //처방명
- model.setValue("/root/send/item1/inclnm", "타인간 이식 공여자 진료비"); //준용명
- }
- }
- ]]>
- </script>
- </select1>
- <caption id="caption8" class="cell_1" style="left:114px; top:131px; width:41px; height:23px; text-align:center; vertical-align:middle; ">횟수</caption>
- <caption id="caption9" class="cell_1" style="left:263px; top:130px; width:80px; height:23px; text-align:center; vertical-align:middle; ">총진료비</caption>
- <input id="ipt_hngnm" ref="/root/send/item1/hngnm" class="input_essential" disabled="true" style="left:84px; top:56px; width:528px; height:19px; "/>
- <input id="ipt_inclnm" ref="/root/send/item1/inclnm" class="input_essential" disabled="true" style="left:84px; top:82px; width:528px; height:19px; "/>
- <input id="ipt_qty" ref="/root/send/item1/drugqty" class="input_essential" disabled="true" autonext="1" style="left:84px; top:133px; width:26px; height:19px; text-align:center; "/>
- <input id="ipt_tims" ref="/root/send/item1/tims" class="input_essential" disabled="true" autonext="1" style="left:157px; top:133px; width:26px; height:19px; text-align:center; "/>
- <input id="ipt_totamt" ref="/root/send/item1/totamt" class="input_essential" navindex="2" visibility="visible" maxlength="8" format="#,###" style="left:346px; top:132px; width:90px; height:19px; text-align:right; "/>
- <caption id="caption10" class="cell_1" style="left:438px; top:27px; width:80px; height:23px; text-align:center; vertical-align:middle; ">상병코드</caption>
- <select1 id="cmb_diagcd" ref="/root/send/item1/diagcd" class="combo_essential" appearance="minimal" style="left:522px; top:30px; width:90px; height:19px; ">
- <choices>
- <item>
- <label>Z523</label>
- <value>Z523</value>
- </item>
- <item>
- <label>Z524</label>
- <value>Z524</value>
- </item>
- <item>
- <label>Z526</label>
- <value>Z526</value>
- </item>
- <item>
- <label>Z528</label>
- <value>Z528</value>
- </item>
- <item>
- <label>Z527</label>
- <value>Z527</value>
- </item>
- <item>
- <label>Z528</label>
- <value>Z528</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_dayno" ref="/root/send/item1/dayno" class="input_essential" disabled="true" autonext="1" style="left:231px; top:133px; width:26px; height:19px; text-align:center; "/>
- <caption id="caption11" class="cell_1" style="left:188px; top:131px; width:41px; height:23px; text-align:center; vertical-align:middle; ">일수</caption>
- <caption id="caption12" class="cell_1" style="left:0px; top:105px; width:80px; height:23px; text-align:left; vertical-align:middle; ">EDI메모</caption>
- <input id="ipt_mx999" ref="/root/send/item1/mx999" class="input_essential" imemode="hangul" style="left:84px; top:108px; width:528px; height:19px; "/>
- <input id="input1" ref="/root/send/item1/ownbamt" class="input_essential" navindex="2" visibility="visible" maxlength="8" format="#,###" style="left:522px; top:132px; width:90px; height:19px; text-align:right; "/>
- <caption id="caption14" class="cell_1" style="left:439px; top:130px; width:80px; height:23px; text-align:center; vertical-align:middle; ">본인부담</caption>
- <select1 id="radio2" ref="/root/send/item1/clamflag" class="radio_search" navindex="11" appearance="full" cols="2" overflow="visible" style="left:620px; top:130px; width:135px; height:18px; ">
- <choices>
- <item>
- <label>원청구</label>
- <value>0</value>
- </item>
- <item>
- <label>추가청구</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- // model.resetInstanceNode("/root/send/item1/choicdsrch2");
- // model.setValue("/root/send/item1/choicdsrch2", "");
- // ipt_choicdsrch.refresh();
-
- // if (model.getValue("/root/send/item1/choicdsrch1") == "1") {
- // fGetSnglcalcscorcd();
- // }
- ]]>
- </script>
- </select1>
- </group>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:411px; width:780px; height:31px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:723px; top:5px; width:56px; height:22px; ">
- <caption>종료</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:649px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/init");
- model.resetInstanceNode("/root/hidden");
- model.resetInstanceNode("/root/send/item1");
- model.resetInstanceNode("/root/send/list1");
- model.resetInstanceNode("/root/main/list1/clbs");
- fInitialize();
- model.setValue("/root/send/item1/ioflag", "I");
- model.refreshpart("/root/send/item1/ioflag");
- ]]>
- </script>
- </button>
- <button id="btn_confirm" class="btn4_letter2" style="left:587px; top:5px; width:56px; height:22px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var pid = model.getValue("/root/send/item1/pid");
- var totamt = model.getValue("/root/send/item1/totamt");
- var spclcd = model.getValue("/root/send/item1/spclcd");
- var clamflag = model.getValue("/root/send/item1/clamflag");
- var saveyn = "Y";
- if (pid == "") {
- messageBox("등록번호는", "I003"); //I003=필수입력입니다.
- model.setFocus("ipt_patunitsrch");
- saveyn = "N";
- }
- if (totamt == "") {
- messageBox("총진료비는", "I003"); //I003=필수입력입니다.
- model.setFocus("ipt_totamt");
- saveyn = "N";
- }
-
- if (saveyn == "Y") {
- var nodeList = instance1.selectNodes("/root/main/list1/clbs");
- var icnt=1;
- var ichkcnt=0;
- for ( icnt = 1; icnt <= nodeList.length; icnt++) {
- if(model.getValue("/root/main/list1/clbs[" + icnt + "]/fromchk") == "Y") {
- ichkcnt++;
- model.setValue("/root/send/item1/clamdg", model.getValue("/root/main/list1/clbs[" + icnt + "]/clamdg"));
- model.setValue("/root/send/item1/pidsn", model.getValue("/root/main/list1/clbs[" + icnt + "]/pidsn"));
- model.setValue("/root/send/item1/ordfromdd", model.getValue("/root/main/list1/clbs[" + icnt + "]/ordfromdd"));
- model.setValue("/root/send/item1/orddeptcd", model.getValue("/root/main/list1/clbs[" + icnt + "]/orddeptcd"));
- model.setValue("/root/send/item1/orddrid", model.getValue("/root/main/list1/clbs[" + icnt + "]/orddrid"));
- var preacptno = model.getValue("/root/main/list1/clbs[" + icnt + "]/acptno")
- break;
- }
- }
- if (ichkcnt > 0) {
- if (clamflag == "2" && preacptno == '-') {
- messageBox("선택된 명세서는 청구 전 자료로 추가청구 자료를 생성할 수 없는 명세서", "E008"); //E008=입니다.
- return;
- }
- if (submit("TXPID22201")) {
- messageBox("공여자명세서생성이", "I002"); //I002=완료되었습니다.
- }
- } else {
- messageBox("생성할 명세서를", "C002"); //선택하십시오 !
- }
- }
- ]]>
- </script>
- </button>
- <caption id="caption16" style="left:5px; top:8px; width:565px; height:20px; color:#ff0000; ">총진료비만 입력하세요! 단, CT가 있어서 수기로 계산할때만 본인부담금을 계산해서 입력하세요!</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|