123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SMPID33000_진료과별처방약제조회.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>
- <init>
- <PAM>
- <PK024list/>
- </PAM>
- <tmp/>
- <clamdg/>
- </init>
- <hidden>
- </hidden>
- <send>
- <clamflag/>
- <clamym/>
- <clamymfrom/>
- <clamdgfrom/>
- <clamymto/>
- <clamdgto/>
- <insukind/>
- <ioflag>I</ioflag>
- <clamdeptid/>
- <orddeptcd/>
- <orddrid/>
- <code/>
- <patunitsrch/>
- <cutonly/>
- <codecond/>
- <cancer/>
- <large/>
- <middle/>
- <small/>
- <judgrid/>
- <edicd/>
- <trustinstcd/>
- <temp/>
- <spclcd>JX999</spclcd>
- <mpsflag>A</mpsflag>
- <judgrid/>
- <send_afjudg>
- <workflag/>
- <clamym/>
- <clamdg/>
- <pid/>
- <pidsn/>
- <ioflag/>
- </send_afjudg>
- <ordflag>J</ordflag>
- <drgclist>
- </drgclist>
- <cd_name/>
- <calccd/>
- <instcd>031</instcd>
- </send>
- </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="TRPID20309" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
- <submission id="TRPID20407" mediatype="application/x-www-form-urlencoded" method="post" ref="root/send" resultref="/root/init/clamdg"/>
- <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
- <submission id="TRPIS01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/drgclist"/>
- </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() {
- var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var gBasemonth = gToday.getDateFormat("MM");
- var gCurrentym = gBaseyear + gBasemonth;
-
- var lv_date = gCurrentym.toDate("YYYYMM" + "01");
- lv_date = lv_date.getAddDate(-1, "M")
- gCurrentym = lv_date.getDateFormat("YYYYMM")
-
- model.setValue("/root/send/clamymfrom",gCurrentym);
-
- //btn_select.dispatch("DOMActivate");
- ipt_clamymfrom.dispatch("xforms-value-changed");
- // IOFLAG를 파라메터로 받아야 하므로 IOFLAG가 정해진 후 호출 한다
- fGetOrdDept(); // 진료과,진료의 콤보 리스트
- fGetClamDept(); // 청구과 콤보 리스트
- }
-
- // ----------------------------------------------------------------------
- // ▶ 동일진료일 명세서조회
- // ----------------------------------------------------------------------
- function fGetDocuList() {
-
- var chk = true;
- if (model.getValue("/root/send/clamymfrom") == "") {
- chk = false;
- messageBox("기준년월은", "I003"); //I003=필수입력입니다.
- model.setFocus("ipt_clamymfrom");
- }
-
-
- if (chk == true) {
- submit("TRPIS01701");
- }
- model.refresh();
- }
-
- // 진료과 리스트 가져오기
- function fGetOrdDept()
- {
-
- submit("TRPID20309");
- }
-
- // 청구과 함수
- function fGetClamDept()
- {
- submit("TRPID20201");
- }
-
- // 청구년월 함수
- function pidfGetClamdg() {
-
- if ( model.getValue("/root/send/clamymfrom") > model.getValue("/root/send/clamymto") ) {
- messageBox("종료일은 시작일보다 클 수 ", "I004");
- model.setValue("/root/send/clamymto","")
- } else {
- model.removeNodeset("/root/init/clamdg");
- model.makeNode("/root/init/clamdg");
- model.setValue("/root/send/clamym",model.getValue("/root/send/clamymfrom"));
- submit("TRPID20407");
- model.copyNode("/root/init/clamdgfrom","/root/init/clamdg");
- /*
- cmb_clamdgfrom.refresh();
- cmb_clamdgfrom.select(0);
- */
- model.setValue("/root/send/clamym",model.getValue("/root/send/clamymto"));
- submit("TRPID20407");
- model.copyNode("/root/init/clamdgto","/root/init/clamdg");
- addComboItem("cmb_clamdgfrom","전체","","above");
- addComboItem("cmb_clamdgto","전체","","above");
- cmb_clamdgfrom.refresh();
- cmb_clamdgfrom.select(0);
- cmb_clamdgto.refresh();
- cmb_clamdgto.select(0);
- }
-
- }
-
- function fChkClamym()
- {
- var fromym = model.getValue("/root/send/clamymfrom");
- var toym = model.getValue("/root/send/clamymto");
-
- if ( fromym != toym )
- {
- cmb_clamdgfrom.value = "";
- cmb_clamdgto.value = "";
- cmb_clamdgfrom.disabled = true;
- cmb_clamdgto.disabled = true;
- }
- else
- {
- cmb_clamdgfrom.disabled = false;
- cmb_clamdgto.disabled = false;
- cmb_clamdgfrom.select(0);
- cmb_clamdgto.select(0);
- }
-
- cmb_clamdgto.refresh();
- cmb_clamdgfrom.refresh();
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="690" pageheight="660" guideline="1,1163;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:665px; 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:665px; height:592px; ">
- <datagrid id="grd_drgclist" nodeset="/root/main/drgclist/drgc" class="datagrid3" caption="진료과^수가코드^처방명^처방수^원외
처방
구분^청구년월" colsep="^" colwidth="111, 100, 264, 47, 40, 55" dataheight="23" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" tooltip="true" style="left:0px; top:77px; width:659px; height:514px; ">
- <col disabled="true" ref="orddeptcd" type="combo" visibility="visible" maxlength="5" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/tmp/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="snglcalcscorcd" type="output" maxlength="15" style="text-align:center; "/>
- <col ref="hngnm" type="output" maxlength="12" style="text-align:left; "/>
- <col ref="cnt" type="output" maxlength="12"/>
- <col disabled="true" ref="inout" type="output" format="yyyy-mm-dd" maxlength="8" style="text-align:center; "/>
- <col disabled="true" ref="clamym" type="output" format="yyyy-mm" maxlength="8" style="text-align:center; "/>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- // 그리드 내용 복사
- if (grd_drgclist.selectedRows == 1) { // 한줄
- var row = grd_drgclist.row;
- var col = grd_drgclist.col;
- if (col == grd_drgclist.colRef("snglcalcscorcd") || col == grd_drgclist.colRef("hngnm")) {
- // 상병코드/상병명
- var clip = grd_drgclist.labelMatrix(row, col);
- window.clipBoardData = clip;
- }
- }
- ]]>
- </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:660px; y2:72px; "/>
- <group id="group1" style="left:0px; top:5px; width:660px; height:40px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" style="left:0px; top:0px; width:660px; height:40px; "/>
- <button id="btn_select" class="btn1_letter2" navindex="32" style="left:590px; 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:580px; y1:5px; x2:580px; y2:38px; "/>
- <select1 id="combo2" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:470px; top:10px; width:85px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/tmp/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- // var orddeptcd = model.getValue("/root/send/orddeptcd");
-
- // if (orddeptcd) {
- // cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/tmp/orddrid/orddridlist[dp='" + orddeptcd + "']";
- // cmb_orddrid.disabled = false;
- // } else {
- // cmb_orddrid.disabled = true;
- // }
- // model.setValue("/root/send/orddrid", ""); // 주치의 선택을 초기화한다.
- // model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption6" class="search_name" style="left:393px; top:10px; width:65px; height:17px; ">진료과</caption>
- <select1 id="rdo_ioflag" ref="/root/send/ioflag" class="combo_search" appearance="minimal" style="left:305px; top:10px; width:75px; 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[
- fGetOrdDept(); // 진료과,진료의 콤보 리스트
- // fGetOrdDrid(); // 진료의 콤보 리스트
- fGetClamDept(); // 청구과 콤보 리스트
- ]]>
- </script>
- </select1>
- <caption id="caption9" class="search_name" style="left:225px; top:10px; width:76px; height:17px; ">내원유형</caption>
- <input id="ipt_clamymfrom" ref="/root/send/clamymfrom" class="input_search" navindex="1" inputtype="date" format="yyyy-mm" style="left:88px; top:10px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/clamymto",model.getValue("/root/send/clamymfrom"));
- pidfGetClamdg();
- fChkClamym();
- ]]>
- </script>
- </input>
- <caption id="caption5" class="search_name" style="left:8px; top:10px; width:76px; height:17px; ">청구년월</caption>
- <select1 id="cmb_clamdgfrom" ref="/root/send/clamdgfrom" class="combo_search" appearance="minimal" style="left:165px; top:10px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/clamdgfrom/clamdglist">
- <label ref="clamdgnm"/>
- <value ref="clamdgcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/clamdgto", model.getValue("/root/send/clamdgfrom"));
- model.refresh();
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_excelsave" class="btn2_letter4" _auth="P" style="left:597px; top:50px; 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>
- <caption id="caption2" visibility="hidden" style="left:10px; top:175px; width:15px; height:20px; ">~</caption>
- <select1 id="cmb_clamdgto" ref="/root/send/clamdgto" class="combo_search" visibility="hidden" appearance="minimal" style="left:25px; top:195px; width:50px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/clamdgto/clamdglist">
- <label ref="clamdgnm"/>
- <value ref="clamdgcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue("/root/send/clamdgfrom", model.getValue("/root/send/clamdgto"));
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_clamymto" ref="/root/send/clamymto" class="input_search" navindex="1" visibility="hidden" inputtype="date" format="yyyy-mm" style="left:25px; top:175px; width:75px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- pidfGetClamdg();
- fChkClamym();
- ]]>
- </script>
- </input>
- </group>
- <button id="btn_cancel" class="btn4_letter2" style="left:605px; top:625px; width:56px; height:22px; ">
- <caption>종료</caption>
- <close ev:event="DOMActivate"/>
- </button>
- </xhtml:body>
- </xhtml:html>
|