123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SMPAS04100" position="absolute 0 0 1211 784" titletext="전문의별특진환자수및수입현황" onload="SMPAS04100_onload">
- <Layouts>
- <Layout>
- <Div id="group3" position="absolute 0 0 1211 13" style="">
- <Layouts>
- <Layout>
- <Static id="caption60" class="tit_1" position="absolute 0 0 212 14" style="font:돋움,,돋움;align: middle;" text="전문의별 특진환자수 및 수입현황" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="group2" position="absolute 4 22 1207 60" style="">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 0 1202 35" style="border: solid #ffd799 #ffd799;background:#fffbf2 ;" />
- <Static id="caption2" class="search_name" position="absolute 15 9 213 26" style="" text="기간 ~" />
- <Button id="btn_search" class="btn1_letter2" position="absolute 1139 7 1195 29" style="" text="조회" onclick="group2_btn_search_onclick" />
- <Calendar id="input7" class="input_default" taborder="7" position="absolute 70 9 190 28" style="" anchor="default" onkeydown="group2_input7_onkeydown" />
- <Calendar id="input1" class="input_default" taborder="7" position="absolute 215 9 335 28" style="" anchor="default" onkeydown="group2_input1_onkeydown" />
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio1" position="absolute 430 9 620 28" style="">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" />
- <Column id="datacolumn" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">F</Col>
- <Col id="datacolumn">초진</Col>
- </Row>
- <Row>
- <Col id="codecolumn">N</Col>
- <Col id="datacolumn">전체-초진</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption5" position="absolute 355 11 422 25" style="font:,,bold;" text="초재진구분" />
- <Button id="button95" class="btn6_letter4" visible="true" position="absolute 1046 7 1126 29" style="" text="액셀저장" onclick="group2_button95_onclick" />
- <Shape id="line1" class="line_4" linetype="vertical" position="absolute 1133 7 1136 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
- <CheckBox id="bool1" truevalue="Y" falsevalue="N" position="absolute 640 10 665 25" style="" text="" anchor="left bottom" />
- <Static id="caption4" position="absolute 665 6 745 31" style="" text="감면포함여부" />
- <Button id="btn_download" class="btn4_letter4" taborder="3" visible="true" position="absolute 860 7 940 29" style="" text="파일생성" onclick="group2_btn_download_onclick" />
- <Button id="btn_log" class="btn4_letter4" taborder="3" visible="true" position="absolute 950 7 1030 29" style="" text="생성로그" onclick="group2_btn_log_onclick" />
- <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1038 7 1041 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
- </Layout>
- </Layouts>
- </Div>
- <Grid id="datagrid1" binddataset="ds_main_medicalexamamtlist_medicalexamamtstats" position="absolute 5 85 1205 766" style="">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="85" />
- <Column size="97" />
- <Column size="85" />
- <Column size="78" />
- <Column size="46" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="46" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="46" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- <Column size="80" />
- </Columns>
- <Rows>
- <Row size="24" band="head" />
- <Row size="24" />
- </Rows>
- <Band id="head">
- <Cell text="구 분" />
- <Cell col="1" text="구 분" />
- <Cell col="2" text="구 분" />
- <Cell col="3" text="구 분" />
- <Cell col="4" text="외 래" />
- <Cell col="5" text="외 래" />
- <Cell col="6" text="외 래" />
- <Cell col="7" text="외 래" />
- <Cell col="8" text="외 래" />
- <Cell col="9" text="외 래" />
- <Cell col="10" text="외 래" />
- <Cell col="11" text="외 래" />
- <Cell col="12" text="외 래" />
- <Cell col="13" text="외 래" />
- <Cell col="14" text="외 래" />
- <Cell col="15" text="입 원" />
- <Cell col="16" text="입 원" />
- <Cell col="17" text="입 원" />
- <Cell col="18" text="입 원" />
- <Cell col="19" text="입 원" />
- <Cell col="20" text="입 원" />
- <Cell col="21" text="입 원" />
- <Cell col="22" text="입 원" />
- <Cell col="23" text="입 원" />
- <Cell col="24" text="입 원" />
- <Cell col="25" text="입 원" />
- <Cell col="26" text="합 계" />
- <Cell col="27" text="합 계" />
- <Cell col="28" text="합 계" />
- <Cell col="29" text="합 계" />
- <Cell col="30" text="합 계" />
- <Cell col="31" text="합 계" />
- <Cell col="32" text="합 계" />
- <Cell col="33" text="합 계" />
- <Cell col="34" text="합 계" />
- <Cell col="35" text="합 계" />
- <Cell col="36" text="합 계|임상과" />
- <Cell col="37" text="분과" />
- <Cell col="38" text="의사ID" />
- <Cell col="39" text="의사명" />
- <Cell col="40" text="환자수" />
- <Cell col="41" text="순수익" />
- <Cell col="42" text="마취" />
- <Cell col="43" text="방사선" />
- <Cell col="44" text="CT" />
- <Cell col="45" text="진단의학검사" />
- <Cell col="46" text="병리검사" />
- <Cell col="47" text="내시경" />
- <Cell col="48" text="초음파" />
- <Cell col="49" text="U_code" />
- <Cell col="50" text="소계" />
- <Cell col="51" text="환자수" />
- <Cell col="52" text="순수익" />
- <Cell col="53" text="마취" />
- <Cell col="54" text="방사선" />
- <Cell col="55" text="CT" />
- <Cell col="56" text="진단의학검사" />
- <Cell col="57" text="병리검사" />
- <Cell col="58" text="내시경" />
- <Cell col="59" text="초음파" />
- <Cell col="60" text="U_code" />
- <Cell col="61" text="소계" />
- <Cell col="62" text="환자수" />
- <Cell col="63" text="순수익" />
- <Cell col="64" text="마취" />
- <Cell col="65" text="방사선" />
- <Cell col="66" text="CT" />
- <Cell col="67" text="진단의학검사" />
- <Cell col="68" text="병리검사" />
- <Cell col="69" text="내시경" />
- <Cell col="70" text="초음파" />
- <Cell col="71" text="U_code" />
- <Cell col="72" text="소계" />
- </Band>
- <Band id="body">
- <Cell text="bind:dept2depthngnm" />
- <Cell col="1" text="bind:dept1depthngnm" />
- <Cell col="2" text="bind:medispcl" />
- <Cell col="3" text="bind:usernm" />
- <Cell col="4" text="bind:opdpatcnt" />
- <Cell col="5" text="bind:opdremamt" />
- <Cell col="6" text="bind:opdaneamt" />
- <Cell col="7" text="bind:opdxrayamt" />
- <Cell col="8" text="bind:opdctamt" />
- <Cell col="9" text="bind:opddiagamt" />
- <Cell col="10" text="bind:opdlabamt" />
- <Cell col="11" text="bind:opdendoamt" />
- <Cell col="12" text="bind:opdsonoamt" />
- <Cell col="13" text="bind:opducodeamt" />
- <Cell col="14" text="bind:opdsumamt" />
- <Cell col="15" text="bind:ipdpatcnt" />
- <Cell col="16" text="bind:ipdremamt" />
- <Cell col="17" text="bind:ipdaneamt" />
- <Cell col="18" text="bind:ipdxrayamt" />
- <Cell col="19" text="bind:ipdctamt" />
- <Cell col="20" text="bind:ipddiagamt" />
- <Cell col="21" text="bind:ipdlabamt" />
- <Cell col="22" text="bind:ipdendoamt" />
- <Cell col="23" text="bind:ipdsonoamt" />
- <Cell col="24" text="bind:ipducodeamt" />
- <Cell col="25" text="bind:ipdsumamt" />
- <Cell col="26" text="bind:sumpatcnt" />
- <Cell col="27" text="bind:sumremamt" />
- <Cell col="28" text="bind:sumaneamt" />
- <Cell col="29" text="bind:sumxrayamt" />
- <Cell col="30" text="bind:sumctamt" />
- <Cell col="31" text="bind:sumdiagamt" />
- <Cell col="32" text="bind:sumlabamt" />
- <Cell col="33" text="bind:sumendoamt" />
- <Cell col="34" text="bind:sumsonoamt" />
- <Cell col="35" text="bind:sumucodeamt" />
- <Cell col="36" text="bind:sumsumamt" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption6" position="absolute 7 70 102 90" style="" text="가톨릭대학교 :" />
- <Edit id="output1" position="absolute 100 70 200 89" style="font:,,bold;" anchor="default" readonly="true" />
- <Static id="caption3" position="absolute 760 65 1200 79" style="color:#ff0000;" text="시스템에 부하를 줄 수 있으므로 한달 초과기간으로는 조회하지 마시기 바랍니다." />
- <Static id="caption1" position="absolute 5 65 445 79" style="color:#ff0000;" text="한달 기간 조회시 5분에서 10분 정도 걸릴 수 있습니다." />
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_userinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_medicalexamamtlist_medicalexamamtstats" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="dept2depthngnm" type="STRING" size="256" />
- <Column id="dept1depthngnm" type="STRING" size="256" />
- <Column id="medispcl" type="STRING" size="256" />
- <Column id="usernm" type="STRING" size="256" />
- <Column id="opdpatcnt" type="STRING" size="256" />
- <Column id="opdremamt" type="STRING" size="256" />
- <Column id="opdaneamt" type="STRING" size="256" />
- <Column id="opdxrayamt" type="STRING" size="256" />
- <Column id="opdctamt" type="STRING" size="256" />
- <Column id="opddiagamt" type="STRING" size="256" />
- <Column id="opdlabamt" type="STRING" size="256" />
- <Column id="opdendoamt" type="STRING" size="256" />
- <Column id="opdsonoamt" type="STRING" size="256" />
- <Column id="opducodeamt" type="STRING" size="256" />
- <Column id="opdsumamt" type="STRING" size="256" />
- <Column id="ipdpatcnt" type="STRING" size="256" />
- <Column id="ipdremamt" type="STRING" size="256" />
- <Column id="ipdaneamt" type="STRING" size="256" />
- <Column id="ipdxrayamt" type="STRING" size="256" />
- <Column id="ipdctamt" type="STRING" size="256" />
- <Column id="ipddiagamt" type="STRING" size="256" />
- <Column id="ipdlabamt" type="STRING" size="256" />
- <Column id="ipdendoamt" type="STRING" size="256" />
- <Column id="ipdsonoamt" type="STRING" size="256" />
- <Column id="ipducodeamt" type="STRING" size="256" />
- <Column id="ipdsumamt" type="STRING" size="256" />
- <Column id="sumpatcnt" type="STRING" size="256" />
- <Column id="sumremamt" type="STRING" size="256" />
- <Column id="sumaneamt" type="STRING" size="256" />
- <Column id="sumxrayamt" type="STRING" size="256" />
- <Column id="sumctamt" type="STRING" size="256" />
- <Column id="sumdiagamt" type="STRING" size="256" />
- <Column id="sumlabamt" type="STRING" size="256" />
- <Column id="sumendoamt" type="STRING" size="256" />
- <Column id="sumsonoamt" type="STRING" size="256" />
- <Column id="sumucodeamt" type="STRING" size="256" />
- <Column id="sumsumamt" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="dept2depthngnm"></Col>
- <Col id="dept1depthngnm"></Col>
- <Col id="medispcl"></Col>
- <Col id="usernm"></Col>
- <Col id="opdpatcnt"></Col>
- <Col id="opdremamt"></Col>
- <Col id="opdaneamt"></Col>
- <Col id="opdxrayamt"></Col>
- <Col id="opdctamt"></Col>
- <Col id="opddiagamt"></Col>
- <Col id="opdlabamt"></Col>
- <Col id="opdendoamt"></Col>
- <Col id="opdsonoamt"></Col>
- <Col id="opducodeamt"></Col>
- <Col id="opdsumamt"></Col>
- <Col id="ipdpatcnt"></Col>
- <Col id="ipdremamt"></Col>
- <Col id="ipdaneamt"></Col>
- <Col id="ipdxrayamt"></Col>
- <Col id="ipdctamt"></Col>
- <Col id="ipddiagamt"></Col>
- <Col id="ipdlabamt"></Col>
- <Col id="ipdendoamt"></Col>
- <Col id="ipdsonoamt"></Col>
- <Col id="ipducodeamt"></Col>
- <Col id="ipdsumamt"></Col>
- <Col id="sumpatcnt"></Col>
- <Col id="sumremamt"></Col>
- <Col id="sumaneamt"></Col>
- <Col id="sumxrayamt"></Col>
- <Col id="sumctamt"></Col>
- <Col id="sumdiagamt"></Col>
- <Col id="sumlabamt"></Col>
- <Col id="sumendoamt"></Col>
- <Col id="sumsonoamt"></Col>
- <Col id="sumucodeamt"></Col>
- <Col id="sumsumamt"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_medicalexamamtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="fromdata" type="STRING" size="256" />
- <Column id="todata" type="STRING" size="256" />
- <Column id="dcgubun" type="STRING" size="256" />
- <Column id="reduyn" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdata"></Col>
- <Col id="todata"></Col>
- <Col id="dcgubun">A</Col>
- <Col id="reduyn"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="fromdata" type="STRING" size="256" />
- <Column id="todata" type="STRING" size="256" />
- <Column id="datagubun" type="STRING" size="256" />
- <Column id="erdata" type="STRING" size="256" />
- <Column id="dcgubun" type="STRING" size="256" />
- <Column id="reduyn" type="STRING" size="256" />
- <Column id="filenm" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_medicalsumlist_medicalsumstats" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="dept1depthngnm" type="STRING" size="256" />
- <Column id="medispcl" type="STRING" size="256" />
- <Column id="usernm" type="STRING" size="256" />
- <Column id="opdpatcnt" type="STRING" size="256" />
- <Column id="opdremamt" type="STRING" size="256" />
- <Column id="opdaneamt" type="STRING" size="256" />
- <Column id="opdxrayamt" type="STRING" size="256" />
- <Column id="opdctamt" type="STRING" size="256" />
- <Column id="opddiagamt" type="STRING" size="256" />
- <Column id="opdlabamt" type="STRING" size="256" />
- <Column id="opdendoamt" type="STRING" size="256" />
- <Column id="opdsonoamt" type="STRING" size="256" />
- <Column id="opducodeamt" type="STRING" size="256" />
- <Column id="opdsumamt" type="STRING" size="256" />
- <Column id="ipdpatcnt" type="STRING" size="256" />
- <Column id="ipdremamt" type="STRING" size="256" />
- <Column id="ipdaneamt" type="STRING" size="256" />
- <Column id="ipdxrayamt" type="STRING" size="256" />
- <Column id="ipdctamt" type="STRING" size="256" />
- <Column id="ipddiagamt" type="STRING" size="256" />
- <Column id="ipdlabamt" type="STRING" size="256" />
- <Column id="ipdendoamt" type="STRING" size="256" />
- <Column id="ipdsonoamt" type="STRING" size="256" />
- <Column id="ipducodeamt" type="STRING" size="256" />
- <Column id="ipdsumamt" type="STRING" size="256" />
- <Column id="sumpatcnt" type="STRING" size="256" />
- <Column id="sumremamt" type="STRING" size="256" />
- <Column id="sumaneamt" type="STRING" size="256" />
- <Column id="sumxrayamt" type="STRING" size="256" />
- <Column id="sumctamt" type="STRING" size="256" />
- <Column id="sumdiagamt" type="STRING" size="256" />
- <Column id="sumlabamt" type="STRING" size="256" />
- <Column id="sumendoamt" type="STRING" size="256" />
- <Column id="sumsonoamt" type="STRING" size="256" />
- <Column id="sumucodeamt" type="STRING" size="256" />
- <Column id="sumsumamt" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_medicalsumlist_medicalsumstats_dept2depthngnm" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="총계" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="총계"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_userinfo_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="user" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="user"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_medicalsumlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.input7" propid="value" datasetid="ds_main_search" columnid="fromdata" />
- <BindItem id="item1" compid="group2.input1" propid="value" datasetid="ds_main_search" columnid="todata" />
- <BindItem id="item2" compid="group2.radio1" propid="value" datasetid="ds_main_search" columnid="dcgubun" />
- <BindItem id="item3" compid="group2.bool1" propid="value" datasetid="ds_main_search" columnid="reduyn" />
- <BindItem id="item4" compid="output1" propid="value" datasetid="ds_main_hospitalname_codename" columnid="cenm" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_utilHelper.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._com_commonweb_js_dateHelper.js'
- include '../../.._com_commonweb_js_numericHelper.js'
- include '../../.._com_commonweb_js_stringHelper.js'
- include '../../.._com_basiccodeweb_js_ZBC001.js'
- include '../../.._com_zipcodeweb_js_ZBP001.js'
- include '../../.._com_batchinfoweb_js_ZSB001.js'
- function SMPAS04100_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- var vToday = new Date();
- var tmpYear = vToday.getYear();
- var tmpMonth = vToday.getMonth()+1;
- var tmpDate = vToday.getDate();
- if (tmpMonth < 10) { tmpMonth = "0"+tmpMonth; }
- if (tmpDate < 10) { tmpDate = "0"+tmpDate; }
- ds_main_search.setColumn( 0, "fromdata", tmpYear+""+tmpMonth+""+tmpDate);
- ds_main_search.setColumn( 0, "todata", tmpYear+""+tmpMonth+""+tmpDate);
- ds_main_search.setColumn( 0, "reduyn", "N");
- //Rexport에 출력날자를 보여주기위한 데이터 저장
- dsf_makeValue( ds_main_tmp_print, "date", "string", "" );
- ds_main_tmp_print_date.copyData(ds_main_search_fromdata);
- ds_main_tmp_print.setColumn( 0, "date", ds_main_search.getColumn(0, "fromdata"));
- //group2.input7.refresh();
- //group2.input1.refresh();
- // submit("TRPAS01332");
- var oParam = {};
- oParam.id = "TRPAS01332";
- oParam.service = "planteamstatsapp.planTeamOrdStats";
- oParam.method = "reqGetInterRecDusList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=codename";
- oParam.async = false;
- oParam.callback = "cf_TRPAS01332";
- tranf_submit(oParam);
- /*
- function cf_TRPAS01332(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPAS01332(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPAS01332") > -1
- arErrorCode.pop("TRPAS01332") < 0
- */
- ds_main_hospitalname_codename.setColumn( 0, "cenm",ds_main_hospitalname_codename.getColumn(0, "cenm"));
- //model.refresh();
- }
- function group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- var fromdata = ds_main_search.getColumn(0, "fromdata");
- var todata = ds_main_search.getColumn(0, "todata");
- if(fromdata==""||fromdata==null){
- sysf_messageBox("시작일을 입력","E007");
- group2.input7.setFocus();
- return false;
- }
- if(todata==""|| todata==null){
- sysf_messageBox("끝일을 입력","E007");
- group2.input1.setFocus();
- return false;
- }
- if(fromdata > todata){
- sysf_messageBox("시작일이 끝일자보다 클수 없습니다", "")
- return false;
- }
- if( utlf_getDateInterval(fromdata, todata) >= 35 ) {
- sysf_messageBox("조회기간이 한달을 초과할 수 없습니다", "")
- return false;
- }else{
- ds_send.setColumn( 0, "fromdata" ,ds_main_search.getColumn(0, "fromdata"));
- ds_send.setColumn( 0, "todata" ,ds_main_search.getColumn(0, "todata"));
- ds_send.setColumn( 0, "dcgubun" ,ds_main_search.getColumn(0, "dcgubun"));
- ds_send.setColumn( 0, "reduyn" ,ds_main_search.getColumn(0, "reduyn"));
- //로드값이 있을때 엑셀저장여부 버튼 생성여부
- var nodelist = bind1.nodeset;
- if(nodelist.length>0){
- group2.line1.visible =true;
- group2.button95.visible = true;
- }else{
- group2.line1.visible =false;
- group2.button95.visible = false;
- }
- datagrid1.rebuildStyle(0,0,datagrid1.rows-datagrid1.frozenRows-1,datagrid1.cols-1);
- ds_main_medicalexamamtlist.clearData(); ds_main_medicalexamamtlist.addRow();
- ds_main_medicalexamamtlist.clearData();
- dsf_makeValue( ds_main, "medicalexamamtlist", "string", "" );
- // submit("TRPAS04101");
- var oParam = {};
- oParam.id = "TRPAS04101";
- oParam.service = "planteamstatsapp.planTeamOrdStats";
- oParam.method = "reqGetDocSpecAmtList";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=medicalexamamtstats";
- oParam.async = false;
- oParam.callback = "cf_TRPAS04101";
- tranf_submit(oParam);
- /*
- function cf_TRPAS04101(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPAS04101(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPAS04101") > -1
- arErrorCode.pop("TRPAS04101") < 0
- */
- //서브토탈 소계값 출력그리드 위치 (“above:상단에 삽입 “below: 하단에 삽입)
- datagrid1.subtotalposition="below";
- //데이터그리드 컬럼개수구하기
- var cols = datagrid1.cols-datagrid1.fixedCols;
- //서브토탈 초기화 subtotal("clear":초기화)
- //datagrid1.subtotal("clear", 0, i, "format:#,###; roundmode:round; roundpostion:2", "background-color:#ffff00; color:#0000ff; font-weight:bold; ", 0, "임상과소계", true);
- //총계합
- ds_main_medicalexamamtlist_medicalexamamtstats.copyData(ds_main_medicalsumlist_medicalsumstats);
- //서브미션2회이상 할때 데이터 그리그 초기화 * 단 rebuild 했을경우 서브토탈이 Node에 없기때문에 나오지 않음
- datagrid1.rebuild();
- //서브토탈 subtotal("sum":합계 0:기준열 i:합계위치) **기타 인자값은 help참조
- var datagubn = ds_main_search.getColumn(0, "datagubun");
- for( var i = 4; i < cols; i++ ) {
- datagrid1.subtotal("sum", 0, i, "format:#,###; roundmode:round; roundpostion:0", "background-color:#99CCFF; color:#333333; font-weight:soild; ", 0, "임상과소계", true);
- }
- for( var i = 4; i < cols; i++ ) {
- datagrid1.subtotal("sum", 1, i, "format:#,###; roundmode:round; roundpostion:0", "background-color:#daecfd; color:#333333; font-weight:soild; ", 1, "분과소계", true);
- }
- //소계 및 통계 datagrid의 cell에서 merge
- var rows = datagrid1.rows-datagrid1.fixedRows;
- for(var i=0;i<=rows;i++){
- var value = datagrid1.valueMatrix(i+1,1);
- if(value =="분과소계"){
- datagrid1.mergeByFree(i+1,1,i+1,3);
- }
- var valuesum = datagrid1.valueMatrix(i+1,0);
- if (valuesum=="임상과소계"){
- datagrid1.mergeByFree(i+1,0,i+1,3);
- }
- }
- //subtotal()함수를 쓰면 맨 밑에 총계의 소계가 또 나오는데 그걸 삭제 해주는 함수
- datagrid1.removeRow(false);
- datagrid1.cellStyle("background-color", datagrid1.rows-datagrid1.frozenRows-1, 0, datagrid1.rows-datagrid1.frozenRows-1, datagrid1.cols-1) = "#99CCFF";
- datagrid1.valueMatrix(datagrid1.rows-datagrid1.frozenRows-1,0) = "총 계";
- datagrid1.mergeByFree(datagrid1.rows-datagrid1.frozenRows-1,0,datagrid1.rows-datagrid1.frozenRows-1,3);
- if (datagrid1.rows-datagrid1.frozenRows-1 > 0)
- {
- datagrid1.row = 0;
- }
- //datagrid 재 생성
- //datagrid1.refresh();
- }
- }
- function group2_input7_onkeydown(obj:Calendar, e:KeyEventInfo) {
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }
- else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- }
- function group2_input1_onkeydown(obj:Calendar, e:KeyEventInfo) {
- if( event.keyCode == 13 ) {
- var pCurTargetObj = event.ptarget.parent;
- if( pCurTargetObj.elementName == "xforms:select1" || pCurTargetObj.elementName == "xforms:select") {
- event.keyCode = 9;
- pCurTargetObj.dispatch("onkeydown");
- }
- else {
- event.keyCode = 9;
- }
- }
- event.stopPropagation();
- }
- function group2_button95_onclick(obj:Button, e:ClickEventInfo) {
- var vToday = new Date();
- var tmpYear = vToday.getYear();
- var tmpMonth = vToday.getMonth()+1;
- var tmpDate = vToday.getDate();
- var tmpdcgubun = ds_main_search.getColumn(0, "dcgubun");
- var strdcgubun;
- if (tmpdcgubun == "A")
- {
- strdcgubun = "전체";
- }
- else if (tmpdcgubun == "F")
- {
- strdcgubun = "초진";
- }
- else if (tmpdcgubun == "N")
- {
- strdcgubun = "전체-초진";
- }
- // ds_documenttitle.setColumn( 0, "title",document.title);
- //
- //model.refresh();
- // var subjectTitle = ds_documenttitle.getColumn(0, "title");
- //엑셀저장 여부(타이틀별)
- //강제 이름을 지정해야 서버에서 제대로 보입니다.
- var fileName = window.fileDialog("save", "", false, "전문의별특진환자수및수입현황("+strdcgubun+")"+tmpYear+tmpMonth+tmpDate, "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName, "전문의별특진환자수및수입현황("+strdcgubun+")"+tmpYear+tmpMonth+tmpDate, true, true, "", "", true);
- }
- }
- function group2_btn_download_onclick(obj:Button, e:ClickEventInfo) {
- //저장파일명
- //var filenm = cb_rpt.item(cb_rpt.focusIndex).label+"("+ ipt_procdd.label+").csv" ;
- var filenm=ds_main_search.getColumn(0, "fromdata")+"_"+ds_main_search.getColumn(0, "todata")+"전문의별 특진환자수및수입";
- var fromdata = ds_main_search.getColumn(0, "fromdata");
- var todata = ds_main_search.getColumn(0, "todata");
- if(fromdata==""||fromdata==null){
- sysf_messageBox("시작일을 입력","E007");
- group2.input7.setFocus();
- return false;
- }
- if(todata==""|| todata==null){
- sysf_messageBox("끝일을 입력","E007");
- group2.input1.setFocus();
- return false;
- }
- if(fromdata > todata){
- sysf_messageBox("시작일이 끝일자보다 클수 없습니다", "")
- return false;
- }
- if( utlf_getDateInterval(fromdata, todata) >= 35 ) {
- sysf_messageBox("조회기간이 한달을 초과할 수 없습니다", "")
- return false;
- }else{
- ds_send.setColumn( 0, "filenm", filenm);
- ds_send.setColumn( 0, "fromdata",ds_main_search.getColumn(0, "fromdata"));
- ds_send.setColumn( 0, "todata",ds_main_search.getColumn(0, "todata"));
- ds_send.setColumn( 0, "dcgubun",ds_main_search.getColumn(0, "dcgubun"));
- ds_send.setColumn( 0, "reduyn",ds_main_search.getColumn(0, "reduyn"));
- // submit("TXPAS04100");
- var oParam = {};
- oParam.id = "TXPAS04100";
- oParam.service = "planteamstatsapp.DocSpecAmtList";
- oParam.method = "reqExeMakeDocSpecAmtList";
- oParam.inds = "cretlist=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXPAS04100";
- tranf_submit(oParam);
- /*
- function cf_TXPAS04100(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXPAS04100(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXPAS04100") > -1
- arErrorCode.pop("TXPAS04100") < 0
- */
- }
- group2.btn_log.dispatch("DOMActivate");
- }
- function group2_btn_log_onclick(obj:Button, e:ClickEventInfo) {
- // 샘생성 배치 로그 확인
- var todd = utlf_getCurrentDate();
- todd = todd.toDate().getAddDate(+1, 'D');
- zsbfOpenBatchLogPopup("planteamstatsmgr.DocSpecAmtListBatch",utlf_getCurrentDate(),todd.getDateFormat());
- }
- ]]></Script>
- </Form>
- </FDL>
|