123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SPPID28000_유형변경대상자관리.xrw
- * 수정이력
- * - 2013.01.19 / 최초작성 / 이경민
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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>
- <drgclist>
- <drgc/>
- </drgclist>
- </main>
- <send>
- <cnstcdlist/>
- <pid/>
- <orddeptcd/>
- <instcd>031</instcd>
- <orddd/>
- </send>
- <init>
- <PAM>
- <PK110list/>
- </PAM>
- <COM>
- <P0008list/>
- <P0010list/>
- </COM>
- </init>
- <hidden>
- <popupmenu>
- <clcj>
- <item>
- <name>행 추가</name>
- <func>fSpclGridInsertRow</func>
- </item>
- <item>
- <name>-</name>
- <func/>
- </item>
- <item>
- <name>행 삭제</name>
- <func>fSpclGridDeleteRow</func>
- </item>
- </clcj>
- </popupmenu>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- // 화면을 초기화한다.
- fInitialize();
-
- ]]>
- </script>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPID30000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TXPID30000" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main"/>
- <submission id="TRPIJ00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/tmp"/>
- </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/pamcomnweb/js/PAM001.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() {
-
- // 2013.02.19 - 부가코드 원무공통코드조회
- pamfGetCodeList(new Array(
- "PK110"
- ),
- new Array("/root/init/PAM/PK110list"
- ));
- zbcfGetCodeList(new Array("P0008","P0010") , new Array("/root/init/COM/P0008list" , "/root/init/COM/P0010list" ));
- //addComboItem("combo1", "-전체-", "", "above");
- //addComboItem("combo2", "-전체-", "", "above");
-
- submit("TRPIJ00203", false);
-
- fSetInit();
-
- }
-
- function fSetInit(){
-
- button1.disabled = !checkAuth("X") ;
- button3.disabled = !checkAuth("X") ;
- if (checkOpener()) {
- var vpid = opener.javascript.getParameter("sppid30000_pid");
- var vorddeptcd = opener.javascript.getParameter("sppid30000_orddeptcd");
- var vorddd = opener.javascript.getParameter("sppid30000_orddd");
- if(vpid != null) {
- model.setValue("/root/send/pid", vpid);
- model.setValue("/root/send/orddeptcd", vorddeptcd);
- model.setValue("/root/send/orddd", vorddd);
- }
- }
-
- fGetDocuList();
- }
-
- // ----------------------------------------------------------------------
- // ▶ 동일진료일 명세서조회
- // ----------------------------------------------------------------------
- function fGetDocuList() {
-
- var chk = true;
- // if (model.getValue("/root/send/orddd") == "") {
- // chk = false;
- // messageBox("기준년월은", "I003"); //I003=필수입력입니다.
- // model.setFocus("ipt_orddd");
- // }
-
-
-
- if (chk == true) {
- submit("TRPID30000");
-
-
- for (var i=grd_drgclist.fixedRows; i < grd_drgclist.rows; i++) {
- if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("einsukind")) == "") {
- grd_drgclist.rowStatus(i) = 1;
- }
-
- }
- }
- }
-
- // 화면을 초기화한다.
- function fSpclGridInsertRow(){
- grd_drgclist.AddRow();
- grd_drgclist.bottomRow = grd_drgclist.rows;
- }
-
- function fSpclGridDeleteRow(){
- for (var i = 0; i < grd_drgclist.selectedRows; i++) {
- var sel = grd_drgclist.selectedRow(i);
- grd_drgclist.rowstatus(sel) = "4";
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1200" pageheight="660" guideline="1,1043;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:1180px; height:13px; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:216px; height:15px; ">유형변경대상자관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:28px; width:1181px; height:592px; ">
- <datagrid id="grd_drgclist" nodeset="/root/main/cnstcdlist/cnstcd" class="datagrid3" caption="환자번호^환자명^진료과^진료일자^실시일자^현재유형^현재유형^정산요청유형^정산요청유형^수납유형^수납유형^중증기간^산정특례기간^비고^등록자^등록일자^수정자^수정일자|환자번호^환자명^진료과^진료일자^실시일자^보험유형^보조유형^보험유형^보조유형^보험유형^보조유형^중증기간^산정특례기간^비고^등록자^등록일자^수정자^수정일자" colsep="^" colwidth="59, 73, 85, 85, 85, 70, 64, 71, 65, 70, 64, 167, 156, 219, 60, 100, 60, 100" dataheight="23" ellipsis="true" extendlastcol="scroll" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:77px; width:1180px; height:514px; ">
- <col autonext="true" disabled="true" ref="pid" type="input" maxlength="12" style="text-align:center; "/>
- <col autonext="true" disabled="true" ref="patnm" type="output" maxlength="2" style="text-align:center; "/>
- <col autonext="true" disabled="true" ref="orddeptcd" type="combo" maxlength="2" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/hidden/list1/deptlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </col>
- <col autonext="true" disabled="true" ref="orddd" type="inputdate" format="yyyy-mm-dd" maxlength="8" style="text-align:center; "/>
- <col autonext="true" disabled="true" ref="execdd" type="inputdate" format="yyyy-mm-dd" maxlength="8" style="text-align:center; "/>
- <col disabled="true" ref="sinsukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/COM/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="ssuppkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/COM/P0010list/P0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="einsukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/COM/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="esuppkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/COM/P0010list/P0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cinsukind" type="combo">
- <choices>
- <itemset nodeset="/root/init/COM/P0008list/P0008">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="csuppkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/COM/P0010list/P0010">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="serdiagno"/>
- <col ref="rareobstno"/>
- <col ref="rem" type="input"/>
- <col ref="fstrgstrid" type="output" visibility="hidden" style="text-align:center; "/>
- <col ref="fstrgstdt" type="output" visibility="hidden" format="yyyy-mm-dd hh:nn"/>
- <col ref="lastupdtrid" visibility="hidden" style="text-align:center; "/>
- <col ref="lastupdtdt" visibility="hidden" format="yyyy-mm-dd hh:nn"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (event.button == 3) { // 3 : 오른쪽 버튼
- if (grd_drgclist.isCell(event.target) && grd_drgclist.mouseRow >= grd_drgclist.fixedrows) {
- window.setPopupMenu(true, "/root/hidden/popupmenu/clcj/item", "name", "func", false);
- } else {
- window.showPopupMenu(true);
- window.setPopupMenu(true, "/root/hidden/popupmenu/clcj/item", "name", "func", false);
- }
- }
- ]]>
- </script>
- <script type="javascript" ev:event="DOMFocusOut">
- <![CDATA[
- window.setPopupMenu(false);
- ]]>
- </script>
- </datagrid>
- <caption id="cap_judgtrgtman" class="tit_2" style="left:4px; top:56px; width:234px; height:15px; ">요양기관별가산율 리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:72px; x2:1180px; y2:72px; "/>
- <group id="group1" style="left:0px; top:5px; width:1180px; height:40px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:1180px; height:40px; "/>
- <button id="btn_select" class="btn1_letter2" navindex="32" style="left:1095px; top:10px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetDocuList();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_4" style="x1:1080px; y1:5px; x2:1080px; y2:38px; "/>
- <caption id="caption30" class="search_name" style="left:8px; top:11px; width:95px; height:17px; ">환자번호 :</caption>
- <caption id="caption1" class="search_name" style="left:213px; top:11px; width:95px; height:17px; ">진료일자 :</caption>
- <caption id="caption2" class="search_name" style="left:445px; top:13px; width:95px; height:17px; ">진료과:</caption>
- <input id="input1" ref="/root/send/pid" style="left:95px; top:13px; width:100px; height:19px; "/>
- <input id="input2" ref="/root/send/orddd" inputtype="date" format="yyyy-mm-dd" style="left:300px; top:12px; width:100px; height:19px; "/>
- <select1 id="combo1" ref="/root/send/orddeptcd" appearance="minimal" style="left:519px; top:14px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/list1/deptlist">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- </group>
- <button id="btn_excelsave" class="btn2_letter4" _auth="P" style="left:775px; top:52px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_drgclist.gridToInstance();
- if (grd_drgclist.rows > 1) {
- var fileName = window.fileDialog("save", "", false, cap_title.value, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_drgclist.saveExcel(fileName, "sheetname:;colhiddenextend:true;rowhiddenextend:false;col_3:label;col_4:label;col_5:label;col_6:label;", true, true, "", "", true);
- }
- } else {
- messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
- }
- ]]>
- </script>
- </button>
- <button id="button1" class="btn5_letter2" _auth="X" style="left:1137px; top:52px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var updtdata = getGridUpdateData(grd_drgclist);
- if (updtdata == "") {
- messageBox("변경된 데이터가","I004");
- return;
- }
-
- for (var i=1; i < grd_drgclist.rows; i++){
- if ((grd_drgclist.rowStatus(i) == 1 || grd_drgclist.rowStatus(i) == 2 || grd_drgclist.rowStatus(i) == 3) &&
- (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("pid")).length == 0
- || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("orddeptcd")).length ==0
- || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("orddd")).length ==0
- || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("execdd")).length ==0
- || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("sinsukind")).length ==0
- || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("ssuppkind")).length ==0
- || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("einsukind")).length ==0
- || grd_drgclist.valueMatrix(i,grd_drgclist.colRef("esuppkind")).length ==0))
- {
- var errmsg = "";
-
- if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("esuppkind")).length ==0)
- {
- errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("esuppkind"));
- }
- if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("einsukind")).length ==0)
- {
- errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("einsukind"));
- }
- if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("ssuppkind")).length ==0)
- {
- errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("ssuppkind"));
- }
- if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("sinsukind")).length == 0 )
- {
- errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("sinsukind"));
- }
- if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("execdd")).length ==0)
- {
- errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("execdd"));
- }
- if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("orddd")).length ==0)
- {
- errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("orddd"));
- }
- if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("orddeptcd")).length ==0)
- {
- errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("orddeptcd"));
- }
- if (grd_drgclist.valueMatrix(i,grd_drgclist.colRef("pid")).length ==0)
- {
- errmsg = grd_drgclist.labelMatrix(0,grd_drgclist.colRef("pid"));
- }
- messageBox(errmsg.split("\n").join("") +"는","I003");
- return false;
- }
- }
-
- if (messageBox("저장", "S001") == 6) {
- model.setValue("/root/send/cnstcdlist",grd_drgclist.getUpdateData());
- if ( submit("TXPID30000") ) {
- messageBox("저장이","I002");
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" visibility="hidden" _auth="X" style="left:1029px; top:52px; width:53px; height:19px; ">
- <caption>행종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSpclGridDeleteRow();
-
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter3" _auth="X" style="left:1083px; top:52px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSpclGridInsertRow();
- ]]>
- </script>
- </button>
- </group>
- <button id="btn_cancel" class="btn4_letter2" style="left:1125px; top:621px; width:56px; height:22px; ">
- <caption>종료</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </xhtml:body>
- </xhtml:html>
|