123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 화면 : SMPMC02402_응급대불환자리스트.xrw
- * 설명 : 응급대불환자리스트
- * 작성자 : 조영상
- * 작성일 : 2010/04/12
- -->
- <?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>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </patinfolist>
- </patinfo>
- <h_espm>
- <espm>
- <espm_ckbox/>
- <espm_pid/>
- <espm_hngnm/>
- <espm_fromdd/>
- <espm_todd/>
- <espm_orddeptcd/>
- <espm_orddeptcdnm/>
- <espm_medispclid/>
- <espm_medispclidnm/>
- <espm_insukind/>
- <espm_suppkind/>
- <espm_uncoamt/>
- <espm_appfromdd/>
- <espm_appenddd/>
- <espm_clamamt/>
- <espm_clamdd/>
- <espm_uncorestamt/>
- <espm_uncocd/>
- <espm_remfact/>
- </espm>
- </h_espm>
- </main>
- <send>
- <data1>
- <ddflag/>
- <pid/>
- <appfromdd/>
- <apptodd/>
- </data1>
- <data2>
- </data2>
- <data3>
- <pid/>
- <indd/>
- <cretno/>
- </data3>
- </send>
- <hidden/>
- <init>
- <P0083list>
- <P0083>
- <cdnm/>
- <cdid/>
- </P0083>
- </P0083list>
- </init>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.makenode("/root/node_bk/main");
- model.makenode("/root/node_bk/send");
- model.copynode("/root/node_bk/main" ,"/root/main");
- model.copynode("/root/node_bk/send" ,"/root/send");
-
- fInitialize();
-
- //원무사용 기초코드 조회 cache기능 추가
- if ( copyFromCache("TRPAMCOM01_depttree","/root/init") ) {
- //
- } else {
- if ( submit("TRPAMCOM01") ) {
- storeIntoCache("TRPAMCOM01_depttree","/root/init","540");
- }
- }
-
-
- ]]>
- </script>
- <submission id="TRPAMCOM01" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden" resultref="/root/init"/>
- <submission id="TRPAM00105" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRPMC02407" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" resultref="/root/hidden/rcv"/>
- <submission id="TXPMC02405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM001.js"/>
- <script type="javascript">
- <![CDATA[
-
- function fInitialize() {
- model.copynode("/root/main" , "/root/node_bk/main");
- model.copynode("/root/send" , "/root/node_bk/send");
-
- model.setValue("/root/send/data1/ddflag" , "clamdd");
-
- model.setValue("/root/send/data1/appfromdd" , getCurrentDate().substr(0,6) + "01" );
- model.setValue("/root/send/data1/apptodd" , getCurrentDate());
-
- model.refresh();
- }
-
- //보조유형세팅
- function fEactlistClick0() {
- for(var a =0; a < grd_espm.rows ; a++) {
-
- var espm_insukind = model.getValue("/root/main/h_espm/espm["+ a +"]/espm_insukind");
- grd_espm.cellComboNodeset(a,8) = "/root/init/suppkind[up = '"+espm_insukind+"' and (io = 'A' or io = 'I')]";
- }
- }
-
-
- //입금액 저장
- function fSave() {
-
- if(getNodesetCount("/root/main/h_espm/espm[espm_ckbox = 'true']") == 0 ) {
-
- messageBox("체크된 내역이 있어야 저장 가능합니다.","E999");
- return;
- }
-
- model.copynode("/root/send/data2", "/root/node_bk/send/data2");
- var iSelRow = 0;
-
- for (var a = 1; a<= grd_espm.rows ; a++) {
-
- if(model.getValue("/root/main/h_espm/espm["+a+"]/espm_ckbox") == "true"){
-
- copyNodeListType("/root/send/data2","/root/main/h_espm/espm["+a+"]","after");
- }
- }
-
- if(submit("TXPMC02405")) fSearch();
-
- }
-
- //조회
- function fSearch() {
-
- model.setValue("/root/send/data1/pid" , model.getValue("/root/main/patinfo/patinfolist/pid"));
-
- submit("TRPMC02407");
-
- model.copyNode("/root/main/h_espm","/root/hidden/rcv/h_espm");
-
- fEactlistClick0();
-
- model.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:800px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">응급대불환자리스트</caption>
- </group>
- <group id="group3" style="left:0px; top:13px; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:56px; x2:1194px; y2:56px; "/>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:10px; width:1194px; height:33px; "/>
- <button id="button1" class="btn1_letter2" style="left:1130px; top:17px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="caption7" style="left:357px; top:16px; width:20px; height:20px; text-align:center; ">~</caption>
- <caption id="caption4" class="search_name" style="left:19px; top:17px; width:86px; height:17px; ">기준일자 :</caption>
- <line id="line4" class="line_4" style="x1:477px; y1:16px; x2:477px; y2:36px; "/>
- <input id="ipt_fromdd" ref="/root/send/data1/appfromdd" class="input_search" inputtype="date" style="left:269px; top:17px; width:85px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/data1/apptodd" class="input_search" inputtype="date" style="left:377px; top:17px; width:85px; height:19px; "/>
- <datagrid id="grd_espm" nodeset="/root/main/h_espm/espm" caption="√^등록번호^환자명^-^진료기간^진료기간^진료과^진료의^유형^보조^총진료비^미수금^대불적용기간^대불적용기간^대불청구액^청구일자^대불제외미수금^대불입금일자^대불입금액^미수잔액^메모" colsep="^" colwidth="26, 70, 55, 19, 70, 70, 90, 69, 33, 100, 85, 85, 70, 70, 85, 70, 90, 100, 85, 85, 500" frozencols="4" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:61px; width:1194px; height:674px; ">
- <col ref="espm_ckbox" type="checkbox"/>
- <col ref="espm_pid"/>
- <col ref="espm_hngnm"/>
- <col type="inputbutton"/>
- <col ref="espm_fromdd" format="yyyy-mm-dd"/>
- <col ref="espm_todd" format="yyyy-mm-dd"/>
- <col ref="espm_orddeptcdnm"/>
- <col ref="espm_medispclidnm"/>
- <col ref="espm_insukind" style="text-align:center; "/>
- <col disabled="true" ref="espm_suppkind" type="combo">
- <choices>
- <itemset nodeset="/root/init/suppkind">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="espm_erordamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="espm_uncoamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="espm_appfromdd" format="yyyy-mm-dd"/>
- <col ref="espm_appenddd" format="yyyy-mm-dd"/>
- <col ref="espm_clamamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="espm_clamdd" format="yyyy-mm-dd"/>
- <col ref="espm_clamrestamt" format="(-)#,###" style="text-align:right; "/>
- <col ref="espm_rcptdd" type="inputdate" format="yyyy-mm-dd" style="font-weight:bold; color:#ff0066; text-align:center; "/>
- <col ref="espm_rcptamt" type="input" format="(-)#,###" style="font-weight:bold; color:#ff0066; text-align:right; "/>
- <col ref="espm_uncorestamt" type="output" format="(-)#,###" style="text-align:right; "/>
- <col ref="espm_remfact" type="input"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(grd_espm.col == 3) {
-
- model.setValue("/root/send/data3/pid" , model.getValue("/root/main/h_espm/espm["+ grd_espm.row +"]/espm_pid"));
- model.setValue("/root/send/data3/indd" , model.getValue("/root/main/h_espm/espm["+ grd_espm.row +"]/espm_inoutdd"));
- model.setValue("/root/send/data3/cretno" , model.getValue("/root/main/h_espm/espm["+ grd_espm.row +"]/espm_cretno"));
-
- modal("SMPMC02403");
- }
- ]]>
- </script>
- </datagrid>
- <select1 id="radio1" ref="/root/send/data1/ddflag" appearance="full" cols="2" overflow="visible" style="left:120px; top:19px; width:145px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>생성일자</label>
- <value>genrdd</value>
- </item>
- <item>
- <label>청구일자</label>
- <value>clamdd</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" autonext="false" maxlength="10" style="left:584px; top:17px; width:80px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
-
- setInputNodeCurText();
-
- fGetPid();
- }
- ]]>
- </script>
- </input>
- <button id="btn_pid" class="icon_search" style="left:899px; top:20px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
-
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:494px; top:17px; width:86px; height:17px; text-align:center; vertical-align:middle; ">등록번호 :</caption>
- <output id="output1" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" style="left:666px; top:17px; width:70px; height:19px; "/>
- <output id="output2" ref="/root/main/patinfo/patinfolist/rrgstno1" class="output_fix" style="left:738px; top:17px; width:75px; height:19px; "/>
- <output id="output3" ref="/root/main/patinfo/patinfolist/rrgstno2" class="output_fix" style="left:815px; top:17px; width:75px; height:19px; "/>
- <button id="btn_excel" class="btn1_letter2" style="left:1073px; top:17px; width:56px; height:22px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "처방미수납자조회"+model.getValue("/root/send/data1/appfromdd"), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_espm.saveExcel(fileName, "sheet1");
- //grd_oscllist.saveExcel(fileName, "SheetName", true, true, "", "", selectValue1);
- }
- ]]>
- </script>
- </button>
- <button id="btn_unco" class="btn1_letter4" style="left:992px; top:17px; width:80px; height:22px; ">
- <caption>미수수납</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- setParameter("SMPAM00100_PID_PARM", model.getValue("/root/main/h_espm/espm["+ grd_espm.row +"]/espm_pid"));
- open("SMPAM00100");
- ]]>
- </script>
- </button>
- </group>
- <group id="group5" style="left:0px; top:752px; width:1195px; height:28px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:1068px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption16" style="left:5px; top:760px; width:485px; height:15px; ">※ 색표시된 컬럼은 수정 가능합니다.</caption>
- </xhtml:body>
- </xhtml:html>
|