123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <weekflag/>
- <clamym/>
- <clamdg/>
- <clamfromdd/>
- <clamtodd/>
- <insutype/>
- <ordfildcd/>
- <orddeptcd/>
- <pid/>
- <name/>
- <ownb100/>
- <predata/>
- <docudivi/>
- <recreate/>
- <acntfromdd/>
- <acnttodd/>
- <acntall/>
- <execall/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- </main>
- <hidden>
- <list1>
- <dept>
- <depthngnm/>
- <deptcd/>
- <deptengabbr/>
- <reqfild/>
- <reqdeptno/>
- </dept>
- </list1>
- <sppmc02500>
- <cond>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </cond>
- </sppmc02500>
- <send2>
- <instcd/>
- <basedd/>
- </send2>
- <send3>
- <clamym/>
- <recreate/>
- </send3>
- <maxclamdg>
- <clamdg/>
- </maxclamdg>
- <clbsupdcnt>
- <clbsupdcnt/>
- </clbsupdcnt>
- <edistat>
- <edistatyn/>
- </edistat>
- </hidden>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- <submission id="TRPID10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/send2" replace="instance" resultref="/root/hidden/list1"/>
- <submission id="TXPID10201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" replace="instance" resultref="/root/hidden/item1/result"/>
- <submission id="TRPID10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/send3" replace="instance" resultref="/root/hidden/maxclamdg"/>
- <submission id="TXPID10202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" resultref="/root/temp/tmp"/>
- <submission id="TRPID10203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" replace="instance" resultref="/root/hidden/clbsupdcnt"/>
- <submission id="TXPID10203" mediatype="application/x-www-form-urlencoded" method="form-data-post" ref="/root/main" resultref="/root/tmp"/>
- <submission id="TRPID10204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main" replace="instance" resultref="/root/hidden/edistat"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.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="../../../com/batchinfoweb/js/ZSB001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelperAsync.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript">
- <![CDATA[
- // 청구년월 증감 함수
- function CalMonth(idc, av_date)
- {
- var lv_date = av_date.toDate("YYYYMM" + "01");
- lv_date = lv_date.getAddDate(idc, "M")
-
- return lv_date.getDateFormat("YYYYMM");
- }
-
-
- // 화면 open시(와 초기화 버튼 클릭시) 화면 초기화 기능을 수행한다.
- function fInitialize() {
- //cmb_weekflag.select(1); // 청구단위 : S.집계 월단위 청구
- cmb_weekflag.select(1); // 청구단위 : M.일자 월단위 청구
- ipt_clamdg.value = "1"; // 청구차수 : 1
- //cmb_insutype.select(0); // 보험유형 : 0.전체
- cmb_insutype.select(1); // 보험유형 : 1.건강보험+의료급여
- cmb_ordfildcd.select(0); // 진료분야 : -.전체
- cmb_ownb100.select(0); // 전액본인 : N.생성안함
- //cmb_predata.select(0); // 이전자료 : 1.생성(삭제후)
- cmb_predata.select(1); // 이전자료 : 2.생성(중복Skip)
- cmb_docudivi.select(1); // 명세서분리 : 2.진료과별 명세서
- cmb_recreate.select(0); // 대상테이블 : 0.적용 안함
- // 실시종료일
- var to_date = (((new Date().getDateFormat("YYYYMM")) + "01").toDate("YYYYMMDD")).getAddDate(-1, "D");
- ipt_clamtodd.value = to_date.getDateFormat("YYYYMMDD");
- // 실시시작일
- ipt_clamfromdd.value = to_date.getDateFormat("YYYYMM" + "01");
- // 청구년월
- ipt_clamym.value = to_date.getDateFormat("YYYYMM");
-
- // 기준일자
- model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
- submit("TRPID10201"); // 진료과목
-
- model.refresh();
- /*
- // 날짜 계산을 위하여 yyyymmdd형태로 오늘 날짜를 구한다.
- var tmp_date = new Date();
- var tmp_year = tmp_date.getYear();
- var tmp_month = tmp_date.getMonth() + 1; // 월의 경우 0부터 시작이므로 +1을 해준다.
- var tmp_day = tmp_date.getDate();
- // 10보다 작은경우는 앞에 '0'을 붙여서 자릿수를 맞춘다.
- if (tmp_month<10) tmp_month = "0" + tmp_month;
- if (tmp_day<10) tmp_day = "0" + tmp_day;
- // +"" 을 안해주면 숫자로 인식해서 더해버리므로 꼭 넣어준다.
- ipt_clamym.value = tmp_year + "" + tmp_month + "" + tmp_day;
- ipt_clamfromdd.value = ipt_clamym.value;
- ipt_clamtodd.value = ipt_clamym.value;
- */
- }
-
- function responseHandlerTXPID10202() {
- var node = instance1.selectSingleNode("/root/temp/result/resultKM");
- var attrMap = node.attributes;
- var atterror = node.getAttributeNode("error");
- var attrdescription = node.getAttributeNode("description");
-
- if (atterror.text == "yes") {
- messageBox(attrdescription.text, "I");
- removeLoadingWindow();
- } else if (atterror.text == "no") {
- removeLoadingWindow();
- messageBox(attrdescription.text, "I");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">외래 청구 생성</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <button id="btn_cretstart" class="btn2_letter7" style="left:91px; top:326px; width:97px; height:19px; text-align:center; ">
- <caption>생성 요청</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var clamym = model.getValue("/root/main/clamym");
- var clamdg = model.getValue("/root/main/clamdg");
-
- var clamfromdd = model.getValue("/root/main/clamfromdd");
- var clamtodd = model.getValue("/root/main/clamtodd");
-
- // 이전자료가 재생성 별도일경우 보험유형과 진료분야를 전체로 하지 못하게 블러킹 - 20090507 박창원
- var predata = model.getValue("/root/main/predata");
- var insutype = model.getValue("/root/main/insutype");
- var ordfildcd = model.getValue("/root/main/ordfildcd");
- var recreate = model.getValue("/root/main/recreate");
- //청구단위와 보험유형 조건 비교 변수
- //청구단위 (S:집계 월단위 M:일자별 월단위 W:일자별 주단위)
- //보험유형 (0.전체,1.건강보험 +의료급여,2.건강보험,3.의료급여1종+의료급여2종,4.의료급여1종,5.의료급여2종,6.산재,7.자보)
- var weekflag = model.getValue("/root/main/weekflag");
- var insutype = model.getValue("/root/main/insutype");
-
- if (weekflag =="M" || weekflag =="W" ) {
- if (insutype == "0" || insutype == "6" ) { // || insutype == "7" : 2013.07.01 진료분부터 자보 외래 일자별 생성해야 함
- messageBox("일자별 생성인 경우 건강보험 과 의료급여 외에는 선택 할", "E001");
- return;
- }
- }
-
- if (predata == "5") {
- if ( insutype == "0" || ordfildcd == "-") {
- messageBox("이전자료가 재생성 별도일 경우에는 보험유형 또는 진료분야에서 전체를 선택 할", "E001");
- return;
- }
- }
- if (clamym != clamfromdd.substr(0,6)) {
- messageBox("실시시작일이 청구년월이 같지 않으므로 작업", "E001");
- return;
- }
- if (clamfromdd > clamtodd) {
- messageBox("실시시작일이 실시종료일 보다 크므로 작업 ", "E001");
- return;
- }
- if (clamfromdd.substr(0,6) != clamtodd.substr(0,6)) {
- messageBox("실시시작년월과 실시종료년월이 같지 않으므로 작업", "E001");
- return;
- }
- // 이전자료가 "삭제"가 아니고 대상테이블 "적용 안 함" 인 경우만 송신완료 체크함. (2015.02.06 L.E.J)
- if (predata != "4" && recreate == "0") {
- submit("TRPID10204");
- if ( model.getValue("/root/hidden/edistat/edistatyn") == "Y" ) {
- messageBox("이미 송신 완료된 청구월/차수 이므로 청구 자료 생성 ", "E001");
- return;
- }
- }
- if (model.getValue("/root/main/pid") == "") {
- if (model.getValue("/root/main/predata") == "4") {
- var ans = messageBox("★ 작업확인 ★ : ☞☞☞ 전체삭제입니다. 생성요청하시겠습니까?", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
- } else {
- var ans = messageBox("★ 작업확인 ★ : ☞☞☞ 전체생성입니다. 생성요청하시겠습니까?", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
- }
- if (ans != 6) { // 6: yes, 7:no, 2:cancel
- return;
- }
-
- /*
- // 경북대병원은 오픈시 월집계청구하기 때문에 메시지 삭제
- // 의료보험, 의료급여 일자별 청구가 아니면 한번더 물어보자 20091120 김용민
- if ( (weekflag =="S" || weekflag =="W")
- && (insutype == "1" || insutype == "2" || insutype == "3" || insutype == "4" || insutype == "5" )
- )
- {
- var ans = messageBox("일자별 생성이 아닙니다. 생성요청하시겠습니까?", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
- if (ans != 6) { // 6: yes, 7:no, 2:cancel
- return;
- }
- }
- */
- } else {
- var ans = messageBox("환자번호별 선택조건으로 생성요청하시겠습니까?", "S001"); ///하시려면 예(Yes)\n아니면 아니오(No)
- if (ans != 6) { // 6: yes, 7:no, 2:cancel
- return;
- }
- }
-
- submit("TXPID10201");
- ]]>
- </script>
- </button>
- <button id="btn_cretrslt" class="btn2_letter7" style="left:201px; top:326px; width:97px; height:19px; text-align:center; ">
- <caption>생성로그확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var todd = getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("clamcretmngtmgr.ClamDataCretMain", getCurrentDate(),todd.getDateFormat());
- ]]>
- </script>
- </button>
- <line id="line8" class="line_2" style="x1:0px; y1:107px; x2:298px; y2:107px; "/>
- <line id="line9" class="line_2" style="x1:0px; y1:131px; x2:298px; y2:131px; "/>
- <caption id="caption10" class="cell_1" style="left:0px; top:156px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">환자번호</caption>
- <caption id="caption5" class="cell_1" style="left:0px; top:36px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">실시기간</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:10px; x2:298px; y2:10px; "/>
- <caption id="caption8" class="cell_1" style="left:0px; top:84px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">보험유형</caption>
- <line id="line2" class="line_2" style="x1:0px; y1:35px; x2:298px; y2:35px; "/>
- <caption id="caption9" class="cell_1" style="left:0px; top:60px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">청구차수</caption>
- <caption id="caption11" class="cell_1" style="left:0px; top:132px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">진 료 과</caption>
- <line id="line4" class="line_2" style="x1:0px; y1:59px; x2:298px; y2:59px; "/>
- <caption id="caption12" class="cell_1" style="left:0px; top:108px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">진료분야</caption>
- <line id="line6" class="line_2" style="x1:0px; y1:83px; x2:298px; y2:83px; "/>
- <line id="line10" class="line_2" style="x1:0px; y1:155px; x2:298px; y2:155px; "/>
- <select1 id="cmb_insutype" ref="/root/main/insutype" class="combo_default" appearance="minimal" style="left:91px; top:86px; width:207px; height:19px; ">
- <choices>
- <item>
- <label>0.전체</label>
- <value>0</value>
- </item>
- <item>
- <label>1.건강보험+의료급여</label>
- <value>1</value>
- </item>
- <item>
- <label>2.건강보험</label>
- <value>2</value>
- </item>
- <item>
- <label>3.의료급여1종+의료급여2종</label>
- <value>3</value>
- </item>
- <item>
- <label>4.의료급여1종</label>
- <value>4</value>
- </item>
- <item>
- <label>5.의료급여2종</label>
- <value>5</value>
- </item>
- <item>
- <label>6.산재</label>
- <value>6</value>
- </item>
- <item>
- <label>7.자보</label>
- <value>7</value>
- </item>
- </choices>
- </select1>
- <select1 id="cmb_orddeptcd" ref="/root/main/orddeptcd" class="combo_default" appearance="minimal" style="left:91px; top:134px; width:207px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/list1/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_ordfildcd" ref="/root/main/ordfildcd" class="combo_default" appearance="minimal" style="left:91px; top:110px; width:207px; height:19px; ">
- <choices>
- <item>
- <label>-.전체</label>
- <value>-</value>
- </item>
- <item>
- <label>0.의과</label>
- <value>0</value>
- </item>
- <item>
- <label>1.내과</label>
- <value>1</value>
- </item>
- <item>
- <label>2.외과</label>
- <value>2</value>
- </item>
- <item>
- <label>3.산,소아과</label>
- <value>3</value>
- </item>
- <item>
- <label>4.안,이비인후과</label>
- <value>4</value>
- </item>
- <item>
- <label>5.피부,비뇨기과</label>
- <value>5</value>
- </item>
- <item>
- <label>6.치과</label>
- <value>6</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_orddeptcd.value = "";
-
- var ordfildcd = model.getValue("/root/main/ordfildcd");
-
- if (ordfildcd == "-") {
- cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept";
- }
- else if (ordfildcd == "0") {
- cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept[reqfild !='6']";
- }
- else {
- cmb_orddeptcd.choices.itemset.attribute("nodeset") = "/root/hidden/list1/dept[reqfild = '" + ordfildcd + "' or reqfild = '']";
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="ipt_clamym" ref="/root/main/clamym" class="input_default" disabled="false" visibility="visible" inputtype="date" format="yyyy-mm" style="left:91px; top:62px; width:89px; height:19px; text-align:center; "/>
- <line id="line11" class="line_2" style="x1:0px; y1:179px; x2:298px; y2:179px; "/>
- <caption id="caption1" class="cell_1" style="left:0px; top:180px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">전액본인</caption>
- <select1 id="cmb_ownb100" ref="/root/main/ownb100" class="combo_default" appearance="minimal" style="left:91px; top:182px; width:207px; height:19px; ">
- <choices>
- <item>
- <label>N.생성안함</label>
- <value>N</value>
- </item>
- <item>
- <label>Y.생성</label>
- <value>Y</value>
- </item>
- </choices>
- </select1>
- <line id="line12" class="line_2" style="x1:0px; y1:203px; x2:298px; y2:203px; "/>
- <caption id="caption13" class="cell_1" style="left:0px; top:204px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">이전자료</caption>
- <select1 id="cmb_predata" ref="/root/main/predata" class="combo_default" appearance="minimal" style="left:91px; top:206px; width:207px; height:19px; ">
- <choices>
- <item>
- <label>1.생성(삭제후)</label>
- <value>1</value>
- </item>
- <item>
- <label>2.생성(중복Skip)</label>
- <value>2</value>
- </item>
- <item>
- <label>3.생성(별도)</label>
- <value>3</value>
- </item>
- <item>
- <label>4.삭제</label>
- <value>4</value>
- </item>
- <item>
- <label>5.재생성(별도)</label>
- <value>5</value>
- </item>
- </choices>
- </select1>
- <caption id="caption14" class="cell_1" style="left:0px; top:324px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">작업요청</caption>
- <input id="ipt_clamfromdd" ref="/root/main/clamfromdd" class="input_default" disabled="false" inputtype="date" style="left:91px; top:38px; width:101px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)){
- var clamtodd = ((CalMonth(1, ipt_clamfromdd.value.substr(0,6)) + "01").toDate("YYYYMMDD")).getAddDate(-1, "D");
- ipt_clamtodd.value = clamtodd.getDateFormat("YYYYMMDD");
- }
-
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamym.value) {
- ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
- }
-
- model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
- ]]>
- </script>
- </input>
- <input id="ipt_clamtodd" ref="/root/main/clamtodd" class="input_default" disabled="false" inputtype="date" style="left:196px; top:38px; width:101px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)) {
- ipt_clamtodd.value = ipt_clamtodd.oldValue;
- messageBox("실시종료일이 실시시작일의 년월과 같지 않으므로 수정", "E001");
- return;
- }
- ]]>
- </script>
- </input>
- <input id="ipt_pid" ref="/root/main/pid" class="input_default" style="left:91px; top:158px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == '13') { // Enter 입력 시에
- setInputNodeCurText();
- var ipt_pid = model.getValue("/root/main/pid");
- if (ipt_pid) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- }
- else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var srch_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
- model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
- model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
- model.setValue("/root/main/pid", srch_pid);
- model.setValue("/root/main/name", srch_hngnm);
- }
- model.refresh();
- }
- ]]>
- </script>
- </input>
- <input id="ipt_name" ref="/root/main/name" class="input_default" style="left:182px; top:158px; width:85px; height:19px; "/>
- <button id="button27" class="icon_search" style="left:277px; top:160px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var ipt_pid = model.getValue("/root/main/pid");
- if (ipt_pid) {
- model.setValue("/root/hidden/sppmc02500/cond/srchcond", "1"); // 검색조건 : 등록번호로 설정
- model.setValue("/root/hidden/sppmc02500/cond/pid", ipt_pid);
- }
- else {
- model.resetInstanceNode("/root/hidden/sppmc02500/cond");
- }
- modal("SPPMC02500", 1,150, 150, "SPPMC02500", "/root/hidden/sppmc02500/cond", "/root/send");
- var srch_pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- var srch_hngnm = model.getValue("/root/main/patinfo/patinfolist/hngnm");
- if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
- model.removeNodeset("/root/main/patinfo/patinfolist"); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
- model.makeNode("/root/main/patinfo/patinfolist"); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
- model.setValue("/root/main/pid", srch_pid);
- model.setValue("/root/main/name", srch_hngnm);
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <line id="line3" class="line_3" style="x1:0px; y1:323px; x2:298px; y2:323px; "/>
- <caption id="caption2" class="cell_1" visibility="visible" style="left:0px; top:14px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">청구단위</caption>
- <select1 id="cmb_weekflag" ref="/root/main/weekflag" class="combo_default" disabled="false" visibility="visible" appearance="minimal" style="left:91px; top:14px; width:207px; height:19px; ">
- <choices>
- <item>
- <label>S.집계 월단위 청구</label>
- <value>S</value>
- </item>
- <item>
- <label>M.일자 월단위 청구</label>
- <value>M</value>
- </item>
- <item>
- <label>W.일자 주단위 청구</label>
- <value>W</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_clamdg" ref="/root/main/clamdg" class="input_default" disabled="false" visibility="visible" inputtype="spin" min="0" step="1" max="9" style="left:196px; top:62px; width:101px; height:19px; text-align:center; "/>
- <line id="line5" class="line_3" style="x1:0px; y1:347px; x2:298px; y2:347px; "/>
- <select1 id="cmb_docudivi" ref="/root/main/docudivi" class="combo_default" disabled="false" appearance="minimal" style="left:91px; top:230px; width:207px; height:19px; ">
- <choices>
- <item>
- <label>1.청구분과별 명세서</label>
- <value>1</value>
- </item>
- <item>
- <label>2.진료과별 명세서</label>
- <value>2</value>
- </item>
- <item>
- <label>3.진료의사별 명세서</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:0px; top:228px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">명세서분리</caption>
- <line id="line7" class="line_2" style="x1:0px; y1:227px; x2:298px; y2:227px; "/>
- <caption id="caption4" class="cell_1" style="left:0px; top:252px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">대상테이블</caption>
- <select1 id="cmb_recreate" ref="/root/main/recreate" class="combo_default" disabled="false" appearance="minimal" style="left:91px; top:254px; width:207px; height:19px; ">
- <choices>
- <item>
- <label>0.적용 안함</label>
- <value>0</value>
- </item>
- <item>
- <label>1.적용 (환자번호)</label>
- <value>1</value>
- </item>
- <item>
- <label>2.적용 (환자번호+유형)</label>
- <value>2</value>
- </item>
- <item>
- <label>3.적용 (환자번호+과)</label>
- <value>3</value>
- </item>
- <item>
- <label>4.적용 (환자번호+유형+과)</label>
- <value>4</value>
- </item>
- <item>
- <label>5.누락청구</label>
- <value>5</value>
- </item>
- <item>
- <label>6.추가청구</label>
- <value>6</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var recreate = cmb_recreate.value;
-
-
- if (recreate == "5" || recreate == "6") {
- model.setValue("/root/hidden/send3/clamym", model.getValue("/root/main/clamym"));
- model.setValue("/root/hidden/send3/recreate",cmb_recreate.value);
-
- // model.alert(model.getValue("/root/hidden/send3/clamym"));
- // model.alert(model.getValue("/root/hidden/send3/recreate"));
- submit("TRPID10202");
- // model.setValue("/root/hidden/clamdg","1111");
- var MaxClamDG = model.getValue("/root/hidden/maxclamdg/clamdg");
- // model.alert(MaxClamDG);
-
- ipt_clamdg.value = MaxClamDG;
-
- }
- ]]>
- </script>
- </select1>
- <line id="line13" class="line_2" style="x1:0px; y1:251px; x2:298px; y2:251px; "/>
- <button id="button_up" class="icon_up" disabled="false" style="left:182px; top:62px; width:10px; height:9px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var clamym = ipt_clamym.value;
-
- ipt_clamym.value = CalMonth(1, clamym);
- ]]>
- </script>
- </button>
- <button id="button_down" class="icon_down" disabled="false" style="left:182px; top:72px; width:10px; height:9px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var clamym = ipt_clamym.value;
-
- ipt_clamym.value = CalMonth(-1, clamym);
- ]]>
- </script>
- </button>
- <select id="chk_acnt" ref="/root/main/acntall" overflow="visible" appearance="full" style="left:90px; top:302px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>정산일자 전체</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <select id="chk_exec" ref="/root/main/execall" overflow="visible" appearance="full" style="left:195px; top:302px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>실시일자 전체</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption7" class="cell_1" style="left:0px; top:276px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">정산기간</caption>
- <input id="ipt_acntfromdd" ref="/root/main/acntfromdd" class="input_default" disabled="false" inputtype="date" style="left:91px; top:278px; width:101px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)){
- var clamtodd = ((CalMonth(1, ipt_clamfromdd.value.substr(0,6)) + "01").toDate("YYYYMMDD")).getAddDate(-1, "D");
- ipt_clamtodd.value = clamtodd.getDateFormat("YYYYMMDD");
- }
-
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamym.value) {
- ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
- }
-
- model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
- ]]>
- </script>
- </input>
- <input id="ipt_acnttodd" ref="/root/main/acnttodd" class="input_default" disabled="false" inputtype="date" style="left:196px; top:278px; width:101px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)) {
- ipt_clamtodd.value = ipt_clamtodd.oldValue;
- messageBox("실시종료일이 실시시작일의 년월과 같지 않으므로 수정", "E001");
- return;
- }
- ]]>
- </script>
- </input>
- <caption id="caption15" class="cell_1" style="left:0px; top:300px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">조회 구분</caption>
- <line id="line14" class="line_2" style="x1:0px; y1:275px; x2:298px; y2:275px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:299px; x2:298px; y2:299px; "/>
- <group id="group2" style="left:305px; top:15px; width:310px; height:330px; ">
- <button id="button1" class="btn3_letter9" style="left:162px; top:50px; width:140px; height:22px; text-align:center; ">
- <caption>추가 청구 수집 실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var ans = messageBox("★ 작업확인 ★ : ☞☞☞ 추가 청구 수집 요청하시겠습니까?", "S001");
- if (ans == 6){
- //submit("TXPID10202");
- asyncSend("TXPID10202", "/root/main", "/root/temp/tmp", "responseHandlerTXPID10202");
- callLoadingWindow("추가 청구 수집중");
- }
-
- ]]>
- </script>
- </button>
- <caption id="cap_diag" class="tit_2" style="left:5px; top:5px; width:270px; height:13px; ">
- <![CDATA[Setp1 추가수집 실행]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_cldihist.attribute("height") == "142") { // 기존 크기를 세로로 확대시킨다.
- grp_cldihist.attribute("height") = "555";
- grd_cldihist.attribute("height") = "530";
- cap_message.attribute("left") = "485";
- opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
- opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; // "469";
- } else {
- grp_cldihist.attribute("height") = "170";
- grd_cldihist.attribute("height") = "142";
- cap_message.attribute("left") = "5";
- opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
- opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; //"1099";
- }
- ]]>
- </script>
- </caption>
- <caption id="caption16" class="tit_2" style="left:5px; top:82px; width:275px; height:13px; ">
- <![CDATA[Setp2 ← 외래 청구 생성 실행]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_cldihist.attribute("height") == "142") { // 기존 크기를 세로로 확대시킨다.
- grp_cldihist.attribute("height") = "555";
- grd_cldihist.attribute("height") = "530";
- cap_message.attribute("left") = "485";
- opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
- opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; // "469";
- } else {
- grp_cldihist.attribute("height") = "170";
- grd_cldihist.attribute("height") = "142";
- cap_message.attribute("left") = "5";
- opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
- opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; //"1099";
- }
- ]]>
- </script>
- </caption>
- <caption id="caption20" style="left:5px; top:132px; width:255px; height:20px; ">1.대상테이블 :6.추가청구</caption>
- <caption id="caption21" style="left:6px; top:152px; width:255px; height:20px; ">2.정산일자 :체크설정</caption>
- <caption id="caption22" style="left:5px; top:95px; width:304px; height:45px; ">
- <![CDATA[※기본값 변경하지 말고 아래만 변경
- ※변경시 초기화 버튼 실행 후 변경]]>
- </caption>
- <input id="input1" ref="/root/main/clamfromdd" class="input_default" disabled="true" inputtype="date" style="left:95px; top:27px; width:101px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)){
- var clamtodd = ((CalMonth(1, ipt_clamfromdd.value.substr(0,6)) + "01").toDate("YYYYMMDD")).getAddDate(-1, "D");
- ipt_clamtodd.value = clamtodd.getDateFormat("YYYYMMDD");
- }
-
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamym.value) {
- ipt_clamym.value = ipt_clamfromdd.value.substr(0,6);
- }
-
- model.setValue("/root/hidden/send2/basedd", ipt_clamfromdd.value);
- ]]>
- </script>
- </input>
- <input id="input2" ref="/root/main/clamtodd" class="input_default" disabled="true" inputtype="date" style="left:200px; top:27px; width:101px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (ipt_clamfromdd.value.substr(0,6) != ipt_clamtodd.value.substr(0,6)) {
- ipt_clamtodd.value = ipt_clamtodd.oldValue;
- messageBox("실시종료일이 실시시작일의 년월과 같지 않으므로 수정", "E001");
- return;
- }
- ]]>
- </script>
- </input>
- <caption id="caption17" class="cell_1" style="left:4px; top:25px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">실시기간</caption>
- <caption id="caption18" class="tit_2" style="left:5px; top:185px; width:275px; height:13px; ">
- <![CDATA[Setp3 2501 업데이트 실행]]>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (grd_cldihist.attribute("height") == "142") { // 기존 크기를 세로로 확대시킨다.
- grp_cldihist.attribute("height") = "555";
- grd_cldihist.attribute("height") = "530";
- cap_message.attribute("left") = "485";
- opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
- opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; // "469";
- } else {
- grp_cldihist.attribute("height") = "170";
- grd_cldihist.attribute("height") = "142";
- cap_message.attribute("left") = "5";
- opt_msgspclformat.attribute("left") = parseInt(cap_message.attribute("left")) + 90;
- opt_msgspclformat.attribute("width") = 1099 - parseInt(cap_message.attribute("left")) + 5; //"1099";
- }
- ]]>
- </script>
- </caption>
- <button id="button2" class="btn3_letter2" style="left:245px; top:228px; width:56px; height:22px; text-align:center; ">
- <caption>실행</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue(input3.attribute("ref")) != "2501" ) {
- messageBox("2501차수가 아니면 실행 할 수 없습니다.","I");
- } else {
- submit("TRPID10203");
-
- var clbsupdcnt = parseInt(model.getValue("/root/hidden/clbsupdcnt/clbsupdcnt/clbsupdcnt"));
-
- if (clbsupdcnt > 0) {
- var ans = messageBox("★ 작업확인 ★ : ☞☞☞ 2501차수가 ["+clbsupdcnt+"]건 있습니다. 업데이트 하시겠습니까?", "S001");
- if (ans == 6) {
- submit("TXPID10203");
- }
- } else {
- messageBox("업데이트 할 건수가 없습니다.","I");
- }
-
-
- }
- ]]>
- </script>
- </button>
- <input id="input3" ref="/root/main/clamdg" class="input_default" disabled="true" visibility="visible" inputtype="spin" step="1" min="0" max="9" style="left:200px; top:205px; width:101px; height:19px; text-align:center; "/>
- <caption id="caption19" class="cell_1" style="left:5px; top:203px; width:88px; height:23px; font-family:돋움; text-align:center; vertical-align:middle; ">청구차수</caption>
- <input id="input4" ref="/root/main/clamym" class="input_default" disabled="true" visibility="visible" inputtype="date" format="yyyy-mm" style="left:95px; top:205px; width:89px; height:19px; text-align:center; "/>
- </group>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
- <button id="button10" class="btn4_letter3" style="left:1126px; top:5; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|