123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963 |
- <?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>
- <speccd>
- <speccdlist>
- <cdflag/>
- <orddeptcd/>
- <orddrid/>
- <cd1/>
- <cd2/>
- <cd3/>
- <cd4/>
- <cd5/>
- <cd6/>
- <cd7/>
- <cd8/>
- <cd9/>
- <cd10/>
- <cdflagold/>
- <orddeptcdold/>
- <orddridold/>
- </speccdlist>
- </speccd>
- <specamtreport>
- <specamtreportlist>
- <orddeptnm/>
- <orddrnm/>
- <jobposnm/>
- <ownspamt/>
- <newownspamt/>
- <baseamt/>
- <deptpamt/>
- <psumamt/>
- <inctax/>
- <restax/>
- <realamt/>
- <deptrealamt/>
- </specamtreportlist>
- </specamtreport>
- <specamtdeptreport>
- <specamtdeptreportlist>
- <seq/>
- <orddeptnm/>
- <realamt/>
- <sign/>
- </specamtdeptreportlist>
- </specamtdeptreport>
- <specamtpcntreport>
- <specamtpcntreportlist>
- <orddeptnm/>
- <orddrnm/>
- <opatcnt/>
- <ospcamt/>
- <ipatcnt/>
- <ispcamt/>
- <tpatcnt/>
- <tspcamt/>
- </specamtpcntreportlist>
- </specamtpcntreport>
- </main>
- <send>
- <statisticflag/>
- <fromdd/>
- <todd/>
- <month/>
- <year/>
- <cdflag/>
- <endyn/>
- <passwd/>
- </send>
- <hidden>
- <rcv/>
- <fromtodd/>
- </hidden>
- <init>
- <orddeptcd>
- <orddeptcdlist/>
- </orddeptcd>
- <orddrid>
- <orddridlist/>
- </orddrid>
- </init>
- <init_code>
- <P0488list>
- <P0488>
- <cdid/>
- <cdnm/>
- </P0488>
- </P0488list>
- </init_code>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
-
- zbcfGetCodeList(new Array("P0488"),
- new Array("/root/init_code/P0488list"));
- //
- // //진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList();
- //초기화 및 날자 입력 항목에 오늘 날자 세팅
- fInitialize();
-
-
-
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <submission id="TXSTP00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TXSTP00802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TRSTP00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- <submission id="TXSTP00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updtdata" resultref="/root/hidden/rcv"/>
- <submission id="TXSTP00805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/rcv"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../pam/opatmngtweb/js/PMOCOM.js"/>
- <script type="javascript">
- <![CDATA[
- var Authority = 'N'; //권한설정 'S' 모든권한, 'N' 조회권한
- var psswd = '';
-
- function fCheckSearchValues(){
-
- if( model.getValue("/root/send/pid") != '' || model.getValue("/root/send/hngnm") != '' || model.getValue("/root/send/rrgstno1") != '' ||
- model.getValue("/root/send/rrgstno2") != '' || model.getValue("/root/send/fromdd") != '' || model.getValue("/root/send/todd") != '' ||
- model.getValue("/root/send/orddept") != '' || model.getValue("/root/send/orddr") != '' || model.getValue("/root/send/statisticgooboon") != '' ||
- model.getValue("/root/send/department") != '' ){
-
- return true;
-
- }else{
-
- return false;
- }
- }
-
- function fInitialize() {
-
-
- Authority = getScreenMenuParameter();
-
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main");
-
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = getCurrentDate();
-
- // model.setValue("/root/send/fromdd", curDate-1);
- // model.setValue("/root/send/todd", curDate-1);
-
- model.setValue("/root/send/year", curDate.substr(0, 4));
- model.setValue("/root/send/month", curDate.substr(4, 2));
- cmb_month.dispatch("xforms-select");
-
-
- model.setValue("/root/send/statisticflag", 'D');
- if( Authority != 'S' ){
- btn_totaling.visible = false;
- btn_distributing.visible = false;
-
- button6.visible = false;
- button7.visible = false;
-
- btn_add.visible = false;
- btn_save.visible = false;
- btn_delete.visible = false;
-
- secret1.visible = false;
-
- caption9.visible = false;
- }else{
- btn_totaling.visible = false;
- btn_distributing.visible = true;
- }
- model.refresh();
- }
- function fSearch(){
-
- if( model.getValue("/root/main/popupendflag") == "ok" ){
- //인적사항에 변경이 있는지를 비교하기 위해서 tmp에 인적사항을 미리 저장해 놓는다.
- model.makeNode("/root/hidden/tmpnode");
- model.copyNode("/root/hidden/tmpnode", "/root/main/patinfo");
-
- //보험/감면/진료기록/신생하*산모내역 조회
- model.setValue("/root/send/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- submit("TRPMC01401");
- //model.makeNode("/root/main/popupendflag");
- }
- }
- function searchdepart(){
-
-
- for(var i=1; i<grd_reservationstatistic.rows ; i++){
- var tmpdepart = grd_reservationstatistic.valueMatrix(i , 1) ;
- var index =0;
- while(tmpdepart != (model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/cd") ) ){
- index++;
- if(index > 300) break;
- }
- if(model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") ==""){
- messageBox("부서명과 " +model.getValue("/root/main/reservationstatistic/reservationstatisticlist["+i+"]/orddeptcd") +"이", "E004")
- }else if(model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") !="") {
- model.setValue("/root/main/reservationstatistic/reservationstatisticlist[" +i+"]/orddeptcd",
- model.getValue("/root/init/orddeptcd/orddeptcdlist[" +index+ "]/nm") );
- }
- }
- }
-
- function GetGetRsrvDeptCD(){
- submit("TRPMO01504");
-
- }
-
- function fRsrvInfolistPrint(){
-
- model.removeNodeset("/root/temp/rsrvlist");
-
- model.makeNode("/root/temp/rsrvlist/otpt_histstat");
- model.makeNode("/root/temp/rsrvlist/otpt_pid");
- model.makeNode("/root/temp/rsrvlist/otpt_orddd");
- model.makeNode("/root/temp/rsrvlist/otpt_rsrvflag");
- model.makeNode("/root/temp/rsrvlist/otpt_remfact");
- model.makeNode("/root/temp/rsrvlist/otpt_telnum");
- model.makeNode("/root/temp/rsrvlist/otpt_telrsrvrem");
- model.makeNode("/root/temp/rsrvlist/ptbs_hngnm");
- model.makeNode("/root/temp/rsrvlist/otpt_updtcnclresn");
- model.makeNode("/root/temp/rsrvlist/otpt_ordtm");
- model.makeNode("/root/temp/rsrvlist/otpt_orddeptcd");
- model.makeNode("/root/temp/rsrvlist/otpt_orddrid");
-
- //var orddd = model.getValue("");
- model.makeValue("/root/temp/rsrvlist/otpt_orddeptcd", cmb_orddeptcd.label);
- model.makeValue("/root/temp/rsrvlist/otpt_orddrid", cmb_orddrid.label);
-
- model.setValue("/root/temp/rsrvlist/otpt_orddd", orddd);
-
- // model.copyNode("/root/temp/rsrvlist", "/root/main/h_otpt3/otpt[" + datagrid6.row + "]");
-
-
-
-
- for (i = 1; i <= getNodesetCount("/root/main/h_otpt3/otpt"); i++) {
- var aa = model.getValue("/root/main/h_otpt3/otpt/otpt_ordtm");
-
- model.makeValue("/root/temp/rsrvlist[" + i + "]/otpt_ordtm",datagrid6.labelmatrix(i, 1));
- model.makeValue("/root/temp/rsrvlist[" + i + "]/otpt_pid",datagrid6.labelmatrix(i, 2));
- model.makeValue("/root/temp/rsrvlist[" + i + "]/ptbs_hngnm",datagrid6.labelmatrix(i, 3));
- model.makeValue("/root/temp/rsrvlist[" + i + "]/otpt_histstat",datagrid6.labelmatrix(i, 7));
- model.makeValue("/root/temp/rsrvlist[" + i + "]/otpt_rsrvflag",datagrid6.labelmatrix(i, 8));
- model.makeValue("/root/temp/rsrvlist[" + i + "]/otpt_telnum",model.getValue("/root/main/h_otpt3/otpt["+ i + "]/otpt_telnum"));
- model.makeValue("/root/temp/rsrvlist[" + i + "]/otpt_remfact",model.getValue("/root/main/h_otpt3/otpt["+ i + "]/otpt_remfact"));
- model.makeValue("/root/temp/rsrvlist[" + i + "]/otpt_telrsrvrem",model.getValue("/root/main/h_otpt3/otpt["+ i + "]/otpt_telrsrvrem"));
- model.makeValue("/root/temp/rsrvlist[" + i + "]/otpt_updtcnclresn",model.getValue("/root/main/h_otpt3/otpt["+ i + "]/otpt_updtcnclresn"));
-
- }
-
-
-
- exeReportPreview("RPPMO00301", "XMLSTR", "","", "false","","","","","false");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group2" style="left:0px; top:15px; width:1180px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1180px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:16px; top:9px; width:86px; height:17px; ">기준년월 :</caption>
- <button id="button1" class="btn1_letter2" style="left:1111px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.resetInstanceNode("/root/main");
- // if( model.getValue("") == 'D' ){
- submit("TRSTP00803");
- model.copyNode("/root/main", "/root/hidden/rcv");
- model.removeNodeset("/root/hidden/rcv");
- model.makeNode("/root/hidden/rcv");
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <line id="line13" class="line_4" style="x1:1096px; y1:7px; x2:1096px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_pid" ref="/root/send/fromdd" class="input_s_essential" disabled="true" inputtype="date" maxlength="8" style="left:245px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- setInputNodeCurText();
- fOutHistRef();
- }
- ]]>
- </script>
- </input>
- <caption id="caption1" class="search_name" style="left:464px; top:9px; width:61px; height:17px; ">구분 :</caption>
- <select1 id="radio1" ref="/root/send/statisticflag" overflow="visible" appearance="full" cellspacing="5" cols="2" style="left:523px; top:8px; width:222px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>선택진료료 집계</label>
- <value>G</value>
- </item>
- <item>
- <label>선택진료료 배분</label>
- <value>D</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- //model.resetInstanceNode("/root/send");
- model.removeNodeset("/root/main");
- model.makeNode("/root/main");
-
- //날자 입력 항목에 오늘 날자 세팅
- // var curDate = getCurrentDate();
- // model.setValue("/root/send/year", curDate.substr(0, 4));
- // model.setValue("/root/send/month", curDate.substr(4, 2));
-
-
- //fInitialize();
-
-
- var rsrvgubn = model.getValue("/root/send/statisticflag");
-
- if (rsrvgubn == "G"){
-
- if( Authority == 'S' ){
- btn_totaling.visible = true;
- btn_distributing.visible = false;
- }
- model.toggle("case_g");
-
- }else if (rsrvgubn == "D"){
-
- if( Authority == 'S' ){
- btn_totaling.visible = false;
- btn_distributing.visible = true;
- }
- model.toggle("case_d");
-
- }
-
-
- cmb_month.dispatch("xforms-select");
- model.refresh();
- ]]>
- </script>
- </select1>
- <input id="input1" ref="/root/send/todd" class="input_s_essential" disabled="true" inputtype="date" maxlength="8" style="left:351px; top:8px; width:90px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13")
- {
- setInputNodeCurText();
- fOutHistRef();
- }
- ]]>
- </script>
- </input>
- <caption id="caption3" style="left:337px; top:9px; width:25px; height:15px; ">~</caption>
- <button id="btn_totaling" class="btn4_letter2" style="left:755px; top:7px; width:56px; height:22px; ">
- <caption>집계</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if(messageBox("선택진료배분자료 집계하시겠습니까? 이전 집계된 자료는 삭제됩니다. 계속하시겠습니까?", "Q999", "") != 6) return;
-
- var orgfromdd = model.getValue("/root/send/fromdd");
- var orgtodd = model.getValue("/root/send/todd");
- var addedfromdd = orgfromdd;
- //var addedfromdd = orgfromdd.toDate("YYYYMMDD").getAddDate('1', 'D').getDateFormat("YYYYMMDD");
- //var notaddedfromdd = orgfromdd;
-
- while( addedfromdd <= orgtodd ){
-
- model.setValue("/root/send/fromdd", addedfromdd);
- model.setValue("/root/send/todd", addedfromdd);
- if(submit("TXSTP00801")){
- //notaddedfromdd = addedfromdd.toDate("YYYYMMDD").getAddDate('1', 'D').getDateFormat("YYYYMMDD");
-
- // if( addedfromdd > orgtodd ){
- // addedfromdd = orgtodd;
- // model.setValue("/root/send/fromdd", notaddedfromdd);
- // model.setValue("/root/send/todd", addedfromdd);
- // if(submit("TXSTP00801")){
- // return true;
- // }else{
- // messageBox("자료집계 실패했습니다. 확인 후 다시 시도하세요", "E999", "");
- // }
- // }
-
- }else{
- messageBox(addedfromdd + "일자 자료집계를 실패했습니다. 확인 후 해당 일자부터 다시 집계하세요", "E999", "");
- return false;
- }
-
- addedfromdd = addedfromdd.toDate("YYYYMMDD").getAddDate(1, 'D').getDateFormat("YYYYMMDD");
- //alert(addedfromdd);
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_distributing" class="btn4_letter2" style="left:755px; top:7px; width:56px; height:22px; ">
- <caption>배분</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- submit("TXSTP00802");
-
-
- ]]>
- </script>
- </button>
- <select1 id="cmb_month" ref="/root/send/month" class="combo_s_essential" appearance="minimal" style="left:168px; top:8px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>1월</label>
- <value>01</value>
- </item>
- <item>
- <label>2월</label>
- <value>02</value>
- </item>
- <item>
- <label>3월</label>
- <value>03</value>
- </item>
- <item>
- <label>4월</label>
- <value>04</value>
- </item>
- <item>
- <label>5월</label>
- <value>05</value>
- </item>
- <item>
- <label>6월</label>
- <value>06</value>
- </item>
- <item>
- <label>7월</label>
- <value>07</value>
- </item>
- <item>
- <label>8월</label>
- <value>08</value>
- </item>
- <item>
- <label>9월</label>
- <value>09</value>
- </item>
- <item>
- <label>10월</label>
- <value>10</value>
- </item>
- <item>
- <label>11월</label>
- <value>11</value>
- </item>
- <item>
- <label>12월</label>
- <value>12</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- var selectedMonth = model.getValue("/root/send/month");
- // model.setValue("/root/send/month", selectedMonth);
- var selectedYear = model.getValue("/root/send/year");
- // model.setValue("/root/send/year", selectedYear);
-
- var fromdd = selectedYear + selectedMonth + '01';
- var todd = selectedYear + selectedMonth + getDayCountForMonth(selectedYear, selectedMonth);
- model.setValue("/root/send/fromdd", fromdd);
- model.setValue("/root/send/todd", todd);
-
- //배분확정여부 체크
- var flag = model.getValue("/root/send/statisticflag");
- model.setValue("/root/send/statisticflag", "G");
- model.setValue("/root/send/cdflag", '00');
- submit("TRSTP00803");
- model.setValue("/root/send/cdflag", '');
- model.setValue("/root/send/statisticflag", flag);
- model.setValue("/root/send/passwd", '');
- psswd = '-';
-
-
- if( Authority == 'S' ){
- //해당월의 선택진료배분마감
- if( model.getValue("/root/hidden/rcv/speccd/speccdlist/cd3") == 'Y' ){
-
- psswd = model.getValue("/root/hidden/rcv/speccd/speccdlist/cd10");
-
- btn_totaling.disabled = true;
- btn_distributing.disabled = true;
- button6.visible = false;
- button7.visible = true;
-
- button6.disabled = true;
- button7.disabled = true;
- }else{
- btn_totaling.disabled = false;
- btn_distributing.disabled = false;
- button6.visible = true;
- button7.visible = false;
-
- button6.disabled = true;
- button7.disabled = true;
- }
- }
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <input id="ipt_year" ref="/root/send/year" class="input_s_essential" autonext="false" maxlength="4" style="left:105px; top:8px; width:60px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var selectedMonth = model.getValue("/root/send/month");
- // model.setValue("/root/send/month", selectedMonth);
- var selectedYear = model.getValue("/root/send/year");
- // model.setValue("/root/send/year", selectedYear);
-
- var fromdd = selectedYear + selectedMonth + '01';
- var todd = selectedYear + selectedMonth + getDayCountForMonth(selectedYear, selectedMonth);
- model.setValue("/root/send/fromdd", fromdd);
- model.setValue("/root/send/todd", todd);
-
- //배분확정여부 체크
- var flag = model.getValue("/root/send/statisticflag");
- model.setValue("/root/send/statisticflag", "G");
- model.setValue("/root/send/cdflag", '00');
- submit("TRSTP00803");
- model.setValue("/root/send/cdflag", '');
- model.setValue("/root/send/statisticflag", flag);
- model.setValue("/root/send/passwd", '');
- psswd = '-';
-
- if( Authority == 'S' ){
- //해당월의 선택진료배분마감
- if( model.getValue("/root/hidden/rcv/speccd/speccdlist/cd3") == 'Y' ){
-
- psswd = model.getValue("/root/hidden/rcv/speccd/speccdlist/cd10");
-
- btn_totaling.disabled = true;
- btn_distributing.disabled = true;
- button6.visible = false;
- button7.visible = true;
-
- button6.disabled = true;
- button7.disabled = true;
- }else{
- btn_totaling.disabled = false;
- btn_distributing.disabled = false;
- button6.visible = true;
- button7.visible = false;
-
- button6.disabled = true;
- button7.disabled = true;
- }
- }
- model.refresh();
- ]]>
- </script>
- </input>
- <caption id="caption9" class="search_name" style="left:825px; top:9px; width:61px; height:17px; ">마감 :</caption>
- <button id="button6" class="btn4_letter4" style="left:995px; top:7px; width:80px; height:22px; ">
- <caption>마감적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var secretValue = model.getValue("/root/send/passwd");
- if( secretValue == '' || secretValue.length < 4 ){
- messageBox("마감 비밀번호는 4자리 이상입력하세요.", "E999", "");
- return false;
- }
-
- if(messageBox("선택진료배분을 마감 하시겠습니까? 마감된 기간에는 집계/배분이 되지 않습니다. 계속하시겠습니까?", "Q999", "") != 6) return;
-
- model.setValue("/root/send/endyn", "I");
- if(submit("TXSTP00805")){
- cmb_month.dispatch("xforms-select");
- }else{
- messageBox("마감적용 실패했습니다. 잠시 후 다시 하시거나 정보지원팀에 문의하세요.", "E999", "");
- return false;
- }
-
-
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter4" style="left:995px; top:7px; width:80px; height:22px; ">
- <caption>마감취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- if(psswd != model.getValue("/root/send/passwd") ){
-
- messageBox("마감 비밀번호랑 다릅니다. 정확히 입력하세요,", "E999", "");
- return false;
- }
-
- if(messageBox("마감을 취소 하시겠습니까? 마감취소 후에는 집계/배분이 가능합니다. 계속하시겠습니까?", "Q999", "") != 6) return;
-
- model.setValue("/root/send/endyn", "D");
- if(submit("TXSTP00805")){
- cmb_month.dispatch("xforms-select");
- }else{
- messageBox("마감적용 실패했습니다. 잠시 후 다시 하시거나 정보지원팀에 문의하세요.", "E999", "");
- return false;
- }
-
- ]]>
- </script>
- </button>
- <secret id="secret1" ref="/root/send/passwd" imemode="disabled" maxlength="10" appearance="secret" style="left:888px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if (event.keyCode == "13"){
-
- model.setFocus("button6");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- //마감취소
- if( button7.visible == true ){
- //패스워드 체크후 같으면 사용가능
- if(psswd == secret1.value ){
-
- button7.disabled = false;
- }else{
- messageBox("마감 비밀번호랑 다릅니다. 정확히 입력하세요,", "E999", "");
- return false;
- }
- }else{
-
- if( secret1.value == '' || secret1.value.length < 4 ){
- messageBox("마감 비밀번호는 4자리 이상입력하세요.", "E999", "");
- return false;
- }else{
- button6.disabled = false;
- }
- }
-
- ]]>
- </script>
- </secret>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:1180px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:311px; height:14px; ">선택진료료배분관리</caption>
- </group>
- <group id="group1" style="left:0px; top:50px; width:1180px; height:740px; ">
- <switch id="switch1" style="left:0px; top:0px; width:1180px; height:730px; border-color:#ffffff; ">
- <case id="case_g" style="border-style:none; ">
- <line id="line1" class="line_1" style="x1:5px; y1:28px; x2:1172px; y2:28px; "/>
- <datagrid id="grd_d" nodeset="/root/main/speccd/speccdlist" caption="분류^진료과^진료과명^진료의^진료의명^cd1^cd2^cd3^cd4^cd5^cd6^cd7^cd8^cd9^cd10^cdflagold^orddeptcdold^orddridold^최종수정일시" colsep="^" colwidth="160, 100, 120, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:5px; top:33px; width:1167px; height:692px; text-align:center; ">
- <col ref="cdflag" type="combo">
- <choices>
- <itemset nodeset="/root/init_code/P0488list/P0488">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddeptcd" type="input" maxlength="10"/>
- <col ref="orddeptnm"/>
- <col ref="orddrid" type="input" maxlength="10"/>
- <col ref="orddrnm"/>
- <col ref="cd1" type="input" maxlength="50"/>
- <col ref="cd2" type="input" maxlength="50"/>
- <col ref="cd3" type="input" maxlength="50"/>
- <col ref="cd4" type="input" maxlength="50"/>
- <col ref="cd5" type="input" maxlength="50"/>
- <col ref="cd6" type="input" maxlength="50"/>
- <col ref="cd7" type="input" maxlength="50"/>
- <col ref="cd8" type="input" maxlength="50"/>
- <col ref="cd9" type="input" maxlength="50"/>
- <col ref="cd10" type="input" maxlength="50"/>
- <col ref="cdflagold" visibility="hidden"/>
- <col ref="orddeptcdold" visibility="hidden"/>
- <col ref="orddridold" visibility="hidden"/>
- </datagrid>
- <caption id="caption7" class="tit_2" style="left:10px; top:13px; width:170px; height:13px; ">선택진료료 배분 공통코드</caption>
- <button id="btn_delete" class="btn5_letter2" style="left:1128px; top:6px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- if(messageBox("선택된 행을", "Q001") != 6) return;
-
- var cur_row = grd_d.row;
-
- if( cur_row > 0 ){
- //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
- if (grd_d.rowStatus(cur_row) == "1" || grd_d.rowStatus(cur_row) == "3"){
-
- grd_d.deleteItem(cur_row);
- return;
- }
-
- grd_d.addStatus(cur_row, "delete");
- //삭제할 행의 정보를 send에 넣는다.
- model.makeNode("/root/send/updtdata/datalist");
- model.setValue("/root/send/updtdata/datalist", grd_d.getUpdateData("delete"));
-
- if ( submit("TXSTP00804") ) {
-
- grd_d.removeStatus(cur_row, "delete");
- grd_d.deleteItem( cur_row);
- model.removeNodeset("/root/send/updtdata");
- }
-
-
- }
-
-
- ]]>
- </script>
- </button>
- <button id="btn_add" class="btn2_letter2" style="left:1038px; top:6px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_d.addRow(false);
- grd_d.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn5_letter2" style="left:1083px; top:6px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- var cur_row = grd_d.rows - grd_d.fixedRows;
-
- if( cur_row > 0 ){
-
- if(messageBox("공통코드자료를 저장 하시겠습니까?", "Q999") != 6) return;
- model.makeNode("/root/send/updtdata/datalist");
- model.setValue("/root/send/updtdata/datalist",grd_d.getUpdateData());
-
- if ( submit("TXSTP00804") ) {
-
- grd_d.rebuild();
- //진료일정기준자료를 재 조회한다.
- model.removeNodeset("/root/send/updtdata");
- button1.dispatch("DOMActivate");
- }
-
- model.refresh();
- }
-
-
- ]]>
- </script>
- </button>
- <select1 id="combo1" ref="/root/send/cdflag" appearance="minimal" style="left:200px; top:7px; width:155px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init_code/P0488list/P0488">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- button1.dispatch("DOMActivate");
- ]]>
- </script>
- </select1>
- <button id="button8" class="btn2_letter4" style="left:972px; top:6px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- grd_d.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- </case>
- <case id="case_d" selected="true" style="left:0px; top:0px; width:1178px; height:738px; ">
- <line id="line2" class="line_1" style="x1:5px; y1:28px; x2:845px; y2:28px; "/>
- <caption id="caption4" class="tit_2" style="left:10px; top:12px; width:175px; height:14px; ">선택진료 배분 결과 리스트</caption>
- <datagrid id="datagrid1" nodeset="/root/main/specamtreport/specamtreportlist" caption="진료과^진료의사^직위^개인실적^신개인실적^전스텝^과개인^개인계^소득세^주민세^실지급액^의국비^최종수정일시" colsep="^" colwidth="110, 65, 60, 65, 65, 65, 65, 65, 65, 65, 65, 65" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:5px; top:33px; width:840px; height:347px; text-align:center; ">
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="jobposnm"/>
- <col ref="ownspamt"/>
- <col ref="newownspamt"/>
- <col ref="baseamt"/>
- <col ref="deptpamt"/>
- <col ref="psumamt"/>
- <col ref="inctax"/>
- <col ref="restax"/>
- <col ref="realamt"/>
- <col ref="deptrealamt"/>
- </datagrid>
- <line id="line3" class="line_1" style="x1:850px; y1:28px; x2:1177px; y2:28px; "/>
- <datagrid id="datagrid2" nodeset="/root/main/specamtdeptreport/specamtdeptreportlist" caption="순번^진료과^지급액^sign^최종수정일시" colsep="^" colwidth="34, 140, 90, 50" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:850px; top:33px; width:327px; height:692px; text-align:center; ">
- <col ref="seq"/>
- <col ref="orddeptnm"/>
- <col ref="realamt"/>
- <col ref="sign"/>
- </datagrid>
- <caption id="caption5" class="tit_2" style="left:855px; top:12px; width:162px; height:14px; ">의국비 배분 결과 리스트</caption>
- <datagrid id="datagrid3" nodeset="/root/main/specamtpcntreport/specamtpcntreportlist" caption="진료과^진료의사^외래^외래^입원^입원^합계^합계^최종수정일시|진료과^진료의사^환자수^수입^환자수^수입^과개인^개인계^최종수정일시" colsep="^" colwidth="126, 65, 105, 105, 105, 105, 105, 105" dataheight="23" defaultrows="2" mergecellsfixedrows="bycolrec" rowheight="25" rowsep="|" style="left:5px; top:408px; width:840px; height:317px; text-align:center; ">
- <col ref="orddeptnm"/>
- <col ref="orddrnm"/>
- <col ref="opatcnt"/>
- <col ref="ospcamt"/>
- <col ref="ipatcnt"/>
- <col ref="ispcamt"/>
- <col ref="tpatcnt"/>
- <col ref="tspcamt"/>
- </datagrid>
- <caption id="caption8" class="tit_2" style="left:10px; top:389px; width:245px; height:14px; ">선택진료 임상과별 환자수 및 수입현황</caption>
- <line id="line4" class="line_1" style="x1:5px; y1:403px; x2:845px; y2:403px; "/>
- <button id="button3" class="btn2_letter4" style="left:783px; top:383px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- datagrid3.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter4" style="left:783px; top:7px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <button id="btn_updtexcel" class="btn2_letter4" style="left:1113px; top:7px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "")
- {
- datagrid2.saveExcel(fileName, "SheetName", true, true, "", "");
- }
-
- window.exec(fileName);
- ]]>
- </script>
- </button>
- <button id="btn_print" class="btn6_letter2" style="left:726px; top:6px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeNode("/root/hidden/fromtodd");
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
- if( fromdd == '' || fromdd.length < 8 || todd == '' || todd.length < 8 ){
- messageBox("기준년월이 정확이 입력되지 않았습니다. 다시 입력 후 출력해주세요", "E999", "");
- return false;
- }
- fromdd = fromdd.substr(0, 4) + '년' + ' ' + fromdd.substr(4, 2) + '월' + ' ' + fromdd.substr(6, 2) + '일';
- todd = todd.substr(0, 4) + '년' + ' ' + todd.substr(4, 2) + '월' + ' ' + todd.substr(6, 2) + '일';
- model.setValue("/root/hidden/fromtodd", fromdd + ' ~ ' + todd );
-
- exeReportPreview("RPSTP00802", "XMLSTR", "","", "false","","","","","false");
- ]]>
- </script>
- </button>
- <button id="button4" class="btn6_letter2" style="left:1056px; top:6px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.makeNode("/root/hidden/fromtodd");
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
- if( fromdd == '' || fromdd.length < 8 || todd == '' || todd.length < 8 ){
- messageBox("기준년월이 정확이 입력되지 않았습니다. 다시 입력 후 출력해주세요", "E999", "");
- return false;
- }
- fromdd = fromdd.substr(0, 4) + '년' + ' ' + fromdd.substr(4, 2) + '월' + ' ' + fromdd.substr(6, 2) + '일';
- todd = todd.substr(0, 4) + '년' + ' ' + todd.substr(4, 2) + '월' + ' ' + todd.substr(6, 2) + '일';
- model.setValue("/root/hidden/fromtodd", fromdd + ' ~ ' + todd );
-
- exeReportPreview("RPSTP00803", "XMLSTR", "","", "false","","","","","false");
- ]]>
- </script>
- </button>
- <button id="button5" class="btn6_letter2" style="left:726px; top:381px; width:56px; height:22px; ">
- <caption>출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.makeNode("/root/hidden/fromtodd");
- var fromdd = model.getValue("/root/send/fromdd");
- var todd = model.getValue("/root/send/todd");
- if( fromdd == '' || fromdd.length < 8 || todd == '' || todd.length < 8 ){
- messageBox("기준년월이 정확이 입력되지 않았습니다. 다시 입력 후 출력해주세요", "E999", "");
- return false;
- }
- fromdd = fromdd.substr(0, 4) + '년' + ' ' + fromdd.substr(4, 2) + '월' + ' ' + fromdd.substr(6, 2) + '일';
- todd = todd.substr(0, 4) + '년' + ' ' + todd.substr(4, 2) + '월' + ' ' + todd.substr(6, 2) + '일';
- model.setValue("/root/hidden/fromtodd", fromdd + ' ~ ' + todd );
-
- exeReportPreview("RPSTP00801", "XMLSTR", "","", "false","","","","","false");
- ]]>
- </script>
- </button>
- </case>
- </switch>
- </group>
- </xhtml:body>
- </xhtml:html>
|