123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPID22300_명세서합철.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>O</ioflag>
- <clamym/>
- <clamdg/>
- <ordfildcd/>
- <clamflagcd/>
- <judgendyn/>
- <insukind/>
- <suppkind/>
- <clamdeptcd/>
- <acptno/>
- <docuseqno1/>
- <docuseqno2/>
- <pid/>
- <pidsn/>
- <makeflag>1</makeflag>
- <orddrid/>
- <orddeptcd/>
- <copyflag/>
- <t_clamym/>
- <t_clamdg/>
- <t_clamflagcd/>
- <judgrid/>
- </item1>
- <list1>
- <clbs>
- </clbs>
- </list1>
- </send>
- <init>
- <item1>
- <makeflag/>
- <copyflag/>
- <ioflag/>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- <t_clamym/>
- <t_clamdg/>
- <t_clamflagcd/>
- </item1>
- <!-- 보험유형 -->
- <P0008list>
- <P0008>
- <cdnm/>
- <cdid/>
- </P0008>
- </P0008list>
- <!-- 보조유형 -->
- <P0010list>
- <P0010>
- <cdnm/>
- <cdid/>
- </P0010>
- </P0010list>
- <!-- 심사상태 / 심사완료여부 -->
- <P0151list>
- <P0151>
- <cdnm/>
- <cdid/>
- </P0151>
- </P0151list>
- <!-- 청구분야(진료분야) -->
- <P0291list>
- <P0291>
- <cdnm/>
- <cdid/>
- </P0291>
- </P0291list>
- <!-- 청구구분 -->
- <P0155list>
- <P0155>
- <cdnm/>
- <cdid/>
- </P0155>
- </P0155list>
- </init>
- <hidden>
- <sppmc02500>
- <cond>
- <!-- SPPMC02500_환자조회 화면으로 검색조건을 보내는 경로임 -->
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </cond>
- </sppmc02500>
- <item1>
- <maxclamdg/>
- </item1>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1/ioflag" resultref="root/hidden/tmp"/>
- <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/tmp"/>
- <submission id="TRPID20601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/main"/>
- <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/init/clamdg"/>
- <submission id="TXPID20601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/list1/clbs" resultref="/root/hidden/rslt"/>
- <submission id="TRPID20602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/item1" resultref="/root/hidden"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 팝업으로 호출되었으면... 타이틀 변경해준다.
- if (model.getValue("/root/init/item1/makeflag") != "") {
-
- model.setValue("/root/send/item1/makeflag", model.getValue("/root/init/item1/makeflag"));
- model.setValue("/root/send/item1/copyflag", model.getValue("/root/init/item1/copyflag"));
- 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/t_clamym", model.getValue("/root/init/item1/t_clamym"));
- model.setValue("/root/send/item1/t_clamdg", model.getValue("/root/init/item1/t_clamdg"));
- model.setValue("/root/send/item1/t_clamflagcd", model.getValue("/root/init/item1/t_clamflagcd"));
- }
- // 화면을 초기화한다.
- fInitialize();
-
- // 파업으로 호출되었으면... 등록번호가 있는경우 조회를 바로한다.
- if (model.getValue("/root/init/item1/pid") != "") {
- model.makeValue("/root/init/clamdg/clamdglist[1]/clamdgnm", '');
- model.makeValue("/root/init/clamdg/clamdglist[1]/clamdgcd", '');
- model.makeValue("/root/init/clamdg/clamdglist[2]/clamdgnm", model.getValue("/root/init/item1/clamdg"));
- model.makeValue("/root/init/clamdg/clamdglist[2]/clamdgcd", model.getValue("/root/init/item1/clamdg"));
- fGetDocuList();
- }
- ]]>
- </script>
- </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 g_from_cnt = 0;
- var g_to_cnt = 0;
-
- 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" // 보조유형
- ,"P0291" // 진료분야
- ,"P0155" // 청구구분
- ),
- new Array("/root/init/P0008list"
- ,"/root/init/P0010list"
- ,"/root/init/P0291list"
- ,"/root/init/P0155list"
- ) );
-
- // ---------------------------------------------------------------
- // 진료과 주치의 초기화
- // ---------------------------------------------------------------
- submit("TRPID20309", false);
- model.makeNode("root/hidden/tmp/orddeptcd");
- model.makeNode("root/hidden/tmp/orddeptcd2");
- model.makeNode("root/hidden/tmp/orddrid");
- model.makeNode("root/hidden/tmp/orddrid2");
-
- model.removeNodeset("root/init/orddeptcd");
- model.removeNodeset("root/init/orddeptcd2");
- model.removeNodeset("root/init/orddrid");
- model.removeNodeset("root/init/orddrid2");
- model.makeNode("root/init/orddeptcd");
- model.makeNode("root/init/orddeptcd2");
- model.makeNode("root/init/orddrid");
- model.makeNode("root/init/orddrid2");
- model.copyNode("root/init/orddeptcd", "root/hidden/tmp/orddeptcd");
- model.copyNode("root/init/orddeptcd2", "root/hidden/tmp/orddeptcd2");
- model.copyNode("root/init/orddrid", "root/hidden/tmp/orddrid");
- model.copyNode("root/init/orddrid2", "root/hidden/tmp/orddrid2");
-
- model.removeNodeset("root/hidden/tmp/orddeptcd");
- model.removeNodeset("root/hidden/tmp/orddeptcd2");
- model.removeNodeset("root/hidden/tmp/orddrid");
- model.removeNodeset("root/hidden/tmp/orddrid2");
-
- model.refreshpart("/root/send/item1/orddeptcd");
- model.refreshpart("/root/send/item1/orddeptcd2");
- model.refreshpart("/root/send/item1/orddrid");
- model.refreshpart("/root/send/item1/orddrid2");
-
- // 청구월 셋팅
- 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);
- }
- model.refresh();
- }
-
- // ----------------------------------------------------------------------
- // ▶ 명세서관리 대상조회
- // ----------------------------------------------------------------------
- function fGetDocuList() {
-
- // -----------------------------------
- // 작업구분에 따른 초기정보 ValidCheck
- // -----------------------------------
- var makeflag = model.getValue("/root/send/item1/makeflag");
- if (model.getValue("/root/send/item1/pid") == "") {
- messageBox("등록번호는", "I003"); ///I003=등록번호는 필수입력입니다.
- model.dispatch("ipt_patunitsrch");
- return;
- }
-
- //대상자 조회
- if (submit("TRPID20601")) {
- var nodeList = instance1.selectNodes("/root/main/list1/clbs");
-
- if (nodeList.length == 1) {
- model.setValue("/root/main/list1/clbs[1]/fromchk", "Y");
- grd_clbsmast.refresh();
- grd_clbsmast.row = 1;
- g_from_cnt = 1;
- }
- }
- }
-
-
-
- // ----------------------------------------------------------------------
- // ▶ 명세서관리 자료생성
- // ----------------------------------------------------------------------
- function fSetDocuMake() {
-
- // 자료생성전 체크
- var rslt = fValidcheck();
- if (rslt != false) {
- model.resetInstanceNode("root/send/list1/clbs");
- var makeflag = model.getValue("root/send/item1/makeflag");
- var fromchk="";
- var iCnt=0;
-
- // 1. 합철
- for (var i = 1; i < grd_clbsmast.rows; i++) {
- fromchk = model.getValue("/root/main/list1/clbs[" + i + "]/fromchk");
- tochk = model.getValue("/root/main/list1/clbs[" + i + "]/tochk");
- if (fromchk == "Y" || tochk == "Y") {
- iCnt++;
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/makeflag", model.getValue("/root/send/item1/makeflag"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/ioflag", model.getValue("/root/send/item1/ioflag"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/fromchk", model.getValue("/root/main/list1/clbs[" + i + "]/fromchk"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/tochk", model.getValue("/root/main/list1/clbs[" + i + "]/tochk"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/clamym", model.getValue("/root/main/list1/clbs[" + i + "]/clamym"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/clamdg", model.getValue("/root/main/list1/clbs[" + i + "]/clamdg"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/pid", model.getValue("/root/main/list1/clbs[" + i + "]/pid"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/pidsn", model.getValue("/root/main/list1/clbs[" + i + "]/pidsn"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/workflag", model.getValue("/root/main/list1/clbs[" + i + "]/workflag"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/clamkey", model.getValue("/root/main/list1/clbs[" + i + "]/clamkey"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/insucmno", model.getValue("/root/main/list1/clbs[" + i + "]/insucmno"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/rareobstflag", model.getValue("/root/main/list1/clbs[" + i + "]/rareobstflag"));
- model.makeValue("/root/send/list1/clbs[" + iCnt + "]/offcharm", model.getValue("/root/main/list1/clbs[" + i + "]/offcharm"));
- }
- }
- // 자료생성...
- if (submit("TXPID20601")) {
- btn_select.dispatch("DOMActivate"); // 자료생성 후 바로 조회...
- }
- }
- }
-
-
- // ----------------------------------------------------------------------
- // ▶ 자료생성전 체크
- // ----------------------------------------------------------------------
- function fValidcheck() {
-
- var from_chkcnt=0;
- var to_chkcnt=0;
- var makeflag = model.getValue("root/send/item1/makeflag");
-
- // 1. 합철
- var from_insukind = "", to_insukind = "";
- var from_suppkind = "", to_suppkind = "";
- var from_ownbflag = "", to_ownbflag = "";
- var from_rsvordgubn = "", to_rsvordgubn = "";
- var from_rareobstflag = "", to_rareobstflag = "";
- var from_offcharm = "", to_offcharm = "";
-
- for (var i = 1; i < grd_clbsmast.rows; i++) {
- fromchk = model.getValue("/root/main/list1/clbs[" + i + "]/fromchk");
- tochk = model.getValue("/root/main/list1/clbs[" + i + "]/tochk");
- if (fromchk == "Y") {
- from_insukind = model.getValue("/root/main/list1/clbs[" + i + "]/insukind");
- from_suppkind = model.getValue("/root/main/list1/clbs[" + i + "]/suppkind");
- from_ownbflag = model.getValue("/root/main/list1/clbs[" + i + "]/ownbflag");
- from_rsvordgubn = model.getValue("/root/main/list1/clbs[" + i + "]/rsvordgubn");
- from_rareobstflag = model.getValue("/root/main/list1/clbs[" + i + "]/rareobstflag");
- from_offcharm = model.getValue("/root/main/list1/clbs[" + i + "]/offcharm");
- from_chkcnt++;
- } else if (tochk == "Y") {
- to_insukind = model.getValue("/root/main/list1/clbs[" + i + "]/insukind");
- to_suppkind = model.getValue("/root/main/list1/clbs[" + i + "]/suppkind");
- to_ownbflag = model.getValue("/root/main/list1/clbs[" + i + "]/ownbflag");
- to_rsvordgubn = model.getValue("/root/main/list1/clbs[" + i + "]/rsvordgubn");
- to_rareobstflag = model.getValue("/root/main/list1/clbs[" + i + "]/rareobstflag");
- to_offcharm = model.getValue("/root/main/list1/clbs[" + i + "]/offcharm");
- to_chkcnt++;
- }
- }
- // 생성할 명세서 선택되었는지 체크
- if (from_chkcnt == 0) {
- messageBox("송신(FROM) 명세서가", "I004"); //송신(FROM) 명세서가 없습니다.
- return false;
- }
- if (to_chkcnt == 0) {
- messageBox("수신(FROM) 명세서가", "I004"); //수신(FROM) 명세서가 없습니다.
- return false;
- }
- // 1. 보험유형 체크
- if ( from_insukind != to_insukind) {
- var ans = messageBox("보험유형이 서로 틀립니다. 무시하고 합철", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
- if (ans != 6) { // 6: yes
- return false;
- }
- }
- // 2. 보조유형 체크
- else if ( from_suppkind != to_suppkind) {
- var ans = messageBox("보조유형이 서로 틀립니다. 무시하고 합철", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
- if (ans != 6) { // 6: yes
- return false;
- }
- }
- // 3. 본인부담코드 체크
- else if ( from_ownbflag != to_ownbflag) {
- var ans = messageBox("본인부담코드가 서로 틀립니다. 무시하고 합철", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
- if (ans != 6) { // 6: yes
- return false;
- }
- }
- // 4. 예약검사구분 체크
- else if ( from_rsvordgubn != to_rsvordgubn) {
- var ans = messageBox("예약검사구분이 서로 틀립니다. 무시하고 합철", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
- if (ans != 6) { // 6: yes
- return false;
- }
- }
- // 5. 공상구분 체크
- else if ( from_rareobstflag != to_rareobstflag) {
- var ans = messageBox("공상구분 이 서로 틀립니다. 무시하고 합철", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
- if (ans != 6) { // 6: yes
- return false;
- }
- }
- else if ( from_offcharm != to_offcharm) {
- var ans = messageBox("공상구분 이 서로 틀립니다. 무시하고 합철", "S001"); /// (Yes)\n (No)
- if (ans != 6) { // 6: yes
- return false;
- }
- }
- }
-
-
-
- // ----------------------------------------------------------------------
- // ▶ 환자조회
- // ----------------------------------------------------------------------
- function fGetSrchPid() {
-
- var ipt_pid = model.getValue("/root/send/item1/pid");
-
- if (ipt_pid.charCodeAt(0) > 255) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "2"); // 검색조건 : 환자명으로 설정
- model.setValue("/root/hidden/sppmc02500/cond/hngnm", ipt_pid);
- } else {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- }
-
-
- // pam/commonweb/xrw/SPPMC02500_환자조회.xrw
- modal("SPPMC02500", "1", "150", "150", "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send", "", ""); // SPPMC02500_환자조회.xrw
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
- model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
- model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
- model.setValue("/root/send/item1/pid", srch_pid);
- }
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1162" pageheight="670" guideline="1,1144;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:1146px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:163px; height:14px; ">명세서합철</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1146px; height:637px; ">
- <datagrid id="grd_clbsmast" nodeset="/root/main/list1/clbs" class="datagrid2" caption="FR
OM^TO^명일련^청구년월^차수^청구구분^등록번호^등록번호^환자명^보험
유형^보조
유형^진료개시일^진료분야^진료과^진료의^사업장기호^증번호^피보험자^사고일자^접수번호^보험회사^청구번호^접수번호^접수일자^사유
코드^clamkey^workflag^clbtworkflag^추가청구여부^본인부담
코드^예약검사
구분^공상
구분^offcharm" colsep="^" colwidth="35, 35, 61, 61, 41, 56, 67, 22, 53, 30, 30, 71, 60, 70, 60, 85, 80, 58, 73, 67, 67, 78, 60, 72, 38, 37, 28, 30, 58, 66, 63, 33, 21" dataheight="23" ellipsis="true" extendlastcol="scroll" frozencols="8" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:96px; width:1145px; height:539px; ">
- <col checkvalue="Y,N" ref="fromchk" type="checkbox"/>
- <col checkvalue="Y,N" ref="tochk" type="checkbox"/>
- <col ref="docuseqno" style="text-align:center; "/>
- <col disabled="true" ref="clamym" format="yyyy-mm" style="text-align:center; "/>
- <col disabled="true" ref="clamdg" style="text-align:center; "/>
- <col disabled="true" ref="clamflagcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/P0155list/P0155">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <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 ref="insukind" type="output" style="text-align:center; "/>
- <col ref="suppkind" type="output" style="text-align:center; "/>
- <col ref="ordfromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="ordfildcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/P0291list/P0291">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="orddeptcd" type="combo" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd2/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/orddrid2/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="insuno" visibility="hidden" style="text-align:center; "/>
- <col ref="certno" visibility="hidden" style="text-align:center; "/>
- <col ref="insdnm" visibility="hidden" style="left:805px; top:32px; width:42px; height:21px; text-align:center; "/>
- <col ref="acddd" visibility="hidden" style="text-align:center; "/>
- <col ref="acdacptno" visibility="hidden" format="#,###" style="text-align:left; "/>
- <col ref="insucmpycd" visibility="hidden" format="yyyy/mm/dd" style="text-align:left; "/>
- <col ref="clamno" style="text-align:center; "/>
- <col ref="acptno" style="text-align:center; "/>
- <col ref="acptdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="adjtresncd" style="text-align:center; "/>
- <col ref="clamkey" visibility="hidden"/>
- <col ref="workflag" visibility="hidden"/>
- <col ref="clbtworkflag" visibility="hidden"/>
- <col ref="rclamyn" visibility="hidden"/>
- <col ref="ownbflag" style="text-align:center; "/>
- <col ref="rsvordgubn" style="text-align:center; "/>
- <col ref="rareobstflag" style="text-align:center; "/>
- <col ref="offcharm" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var icol = grd_clbsmast.col;
- var irow = grd_clbsmast.row;
- var ifromcnt=0;
- var itocnt=0;
- var fromchkyn;
- var tochkyn;
- 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 (ifromcnt > 1) {
- messageBox("송신(FROM) 명세서를 하나만", "C002"); ///C002=선택하십시오 !
- model.setValue("/root/main/list1/clbs[ " + i + "]/fromchk", "N");
- ifromcnt--;
- }
- }
-
- tochkyn = model.getValue("/root/main/list1/clbs[ " + i + "]/tochk");
- if(fromchkyn == "Y" && tochkyn == "Y") {
- messageBox("송수신명세서를 동시에 선택", "E001"); ///E001=할 수 없습니다.
- model.setValue("/root/main/list1/clbs[ " + i + "]/fromchk", "N");
- ifromcnt--;
- }
- }
- }
- else if (icol == grd_clbsmast.colRef("tochk")) {
-
- for ( i = 1; i <= grd_clbsmast.rows; i++) {
- tochkyn = model.getValue("/root/main/list1/clbs[ " + i + "]/tochk");
- if (tochkyn == "Y") {
- itocnt++;
- if (itocnt > 1) {
- messageBox("수신(TO) 명세서를 하나만", "C002"); ///C002=선택하십시오 !
- model.setValue("/root/main/list1/clbs[ " + i + "]/tochk", "N");
- break;
- }
- }
-
- fromchkyn = model.getValue("/root/main/list1/clbs[ " + i + "]/fromchk");
- if (fromchkyn == "Y") {
- ifromcnt++;
- }
-
- if(fromchkyn == "Y" && tochkyn == "Y") {
- messageBox("송수신명세서를 동시에 선택", "E001"); ///E001=할 수 없습니다.
- model.setValue("/root/main/list1/clbs[ " + i + "]/tochk", "N");
- break;
- }
- }
- if (itocnt > 0 && ifromcnt == 0) {
- messageBox("송신(FROM) 명세서를 먼저", "C002"); ///C002=선택하십시오 !
- for ( i = 1; i <= grd_clbsmast.rows; i++) {
- if (model.getValue("/root/main/list1/clbs[ " + i + "]/tochk") == "Y") {
- model.setValue("/root/main/list1/clbs[ " + i + "]/tochk", "N");
- }
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- <caption id="cap_judgtrgtman" class="tit_2" style="left:5px; top:77px; width:126px; height:14px; ">대상자조회</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:92px; x2:1145px; y2:92px; "/>
- <group id="group1" style="left:0px; top:4px; width:1145px; height:58px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:1145px; height:58px; "/>
- <caption id="caption30" class="search_name" style="left:30px; top:7px; width:85px; height:17px; ">청구년월</caption>
- <input id="ipt_clamym" ref="/root/send/item1/clamym" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:111px; top:6px; width:69px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fGetClamdg();
- ]]>
- </script>
- </input>
- <!-- 기존 ID : 1214 => P0235 => P0291 -->
- <caption id="caption32" class="search_name" style="left:30px; top:33px; width:86px; height:17px; ">청구구분</caption>
- <select1 id="cmb_docuflagcd" ref="/root/send/item1/clamflagcd" class="combo_search" navindex="9" appearance="minimal" showvalue="true" style="left:110px; top:32px; width:125px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0155list/P0155">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <!-- 기존 : /root/InitData2/comccodem => P0287 확인해볼 것 -->
- <caption id="caption36" class="search_name" style="left:723px; top:8px; width:82px; height:17px; ">접수번호</caption>
- <input id="ipt_acptno" ref="/root/send/item1/acptno" class="input_search" navindex="18" maxlength="8" style="left:803px; top:7px; width:97px; height:19px; "/>
- <caption id="caption37" class="search_name" style="left:723px; top:32px; width:73px; height:17px; ">명번호</caption>
- <input id="ipt_docuseqno1" ref="/root/send/item1/docuseqno1" class="input_search" navindex="19" maxlength="5" style="left:803px; top:31px; width:39px; height:19px; ">
- <hint>
- <![CDATA[시작번호]]>
- </hint>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var docuseqno1 = model.getValue("/root/send/item1/docuseqno1");
- docuseqno1 = fPaddingData(docuseqno1,"L","0", 5 );
- model.setValue("/root/send/item1/docuseqno1", docuseqno1);
- model.setValue("/root/send/item1/docuseqno2", docuseqno1);
- model.refreshpart("/root/send/item1/docuseqno1");
- model.refreshpart("/root/send/item1/docuseqno2");
- ]]>
- </script>
- </input>
- <input id="ipt_docuseqno2" ref="/root/send/item1/docuseqno2" class="input_search" navindex="20" maxlength="5" style="left:861px; top:31px; width:39px; height:19px; ">
- <hint>
- <![CDATA[끝번호]]>
- </hint>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var docuseqno2 = model.getValue("/root/send/item1/docuseqno2");
- docuseqno2 = fPaddingData(docuseqno2,"L","0", 5 );
- model.setValue("/root/send/item1/docuseqno2", docuseqno2 );
- model.refreshpart("/root/send/item1/docuseqno2");
- ]]>
- </script>
- </input>
- <caption id="caption38" class="search_name" style="left:289px; top:32px; width:84px; height:17px; ">등록번호</caption>
- <input id="ipt_patunitsrch" ref="/root/send/item1/pid" class="input_search" navindex="2" inputtype="button" maxlength="10" style="left:369px; top:32px; 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 {
- fGetDocuList();
- }
- }
- }
- ]]>
- </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:1050px; top:19px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetDocuList();
- ]]>
- </script>
- </button>
- <caption id="caption45" style="left:846px; top:31px; width:11px; height:16px; ">~</caption>
- <select1 id="cmb_clamdg" ref="/root/send/item1/clamdg" appearance="minimal" style="left:185px; top:6px; width:51px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/clamdg/clamdglist">
- <label ref="clamdgnm"/>
- <value ref="clamdgcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:289px; top:8px; width:80px; height:17px; ">내원형태</caption>
- <select1 id="cmb_ioflag" ref="/root/send/item1/ioflag" class="combo_search" navindex="3" appearance="minimal" style="left:369px; top:8px; width:97px; 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[
- // 청구년월에 대한 청구차수 조회
- fGetClamdg();
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:507px; top:8px; width:82px; height:17px; ">청구번호</caption>
- <input id="input1" ref="/root/send/item1/acptno" class="input_search" navindex="18" maxlength="8" style="left:588px; top:8px; width:97px; height:19px; "/>
- <caption id="caption3" class="search_name" style="left:507px; top:32px; width:76px; height:17px; ">작업구분</caption>
- <line id="line3" class="line_4" style="x1:1010px; y1:5px; x2:1010px; y2:51px; "/>
- <select1 id="cmb_workflag" ref="/root/send/item1/makeflag" class="combo_search" disabled="true" navindex="8" appearance="minimal" style="left:588px; top:32px; width:97px; height:19px; ">
- <choices>
- <item>
- <label>합철</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="btn_cancel" class="btn4_letter2" style="left:1088px; top:70px; width:56px; height:22px; ">
- <caption>종료</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1016px; top:70px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/send/item1");
- model.resetInstanceNode("/root/main/list1/clbs");
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:955px; top:70px; width:56px; height:22px; ">
- <caption>합철</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetDocuMake();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|