123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml" />
- <Form id="SMSTP00800" position="absolute 0 0 1280 1024" titletext="선택진료료배분관리" onload="SMSTP00800_onload">
- <Layouts>
- <Layout>
- <Div id="group2" position="absolute 0 15 1180 50" style="align: top;">
- <Layouts>
- <Layout>
- <Shape id="roundrect1" anchor="default" class="roundrect_search" type="roundrectangle" position="absolute 0 0 1180 35" style="border: solid #ffd799 #ffd799;background:#fffbf2 ;" />
- <Static id="caption2" class="search_name" position="absolute 16 9 102 26" style="" text="기준년월 :" />
- <Button id="button1" class="btn1_letter2" position="absolute 1111 7 1167 29" style="" text="조회" onclick="group2_button1_onclick" />
- <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1096 7 1099 29" style="border: solid #ffe4bb #ffe4bb;" anchor="default" />
- <Calendar id="ipt_pid" class="input_s_essential" enable="False" position="absolute 245 8 335 27" style="" anchor="default" onkeypress="group2_ipt_pid_onkeypress" />
- <Static id="caption1" class="search_name" position="absolute 464 9 525 26" style="" text="구분 :" />
- <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio1" position="absolute 523 8 745 28" style="" onitemchanged="group2_radio1_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" />
- <Column id="datacolumn" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">G</Col>
- <Col id="datacolumn">선택진료료 집계</Col>
- </Row>
- <Row>
- <Col id="codecolumn">D</Col>
- <Col id="datacolumn">선택진료료 배분</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Calendar id="input1" class="input_s_essential" enable="False" position="absolute 351 8 441 27" style="" anchor="default" onkeypress="group2_input1_onkeypress" />
- <Static id="caption3" position="absolute 337 9 362 24" style="" text="~" />
- <Button id="btn_totaling" class="btn4_letter2" position="absolute 755 7 811 29" style="" text="집계" onclick="group2_btn_totaling_onclick" />
- <Button id="btn_distributing" class="btn4_letter2" position="absolute 755 7 811 29" style="" text="배분" onclick="group2_btn_distributing_onclick" />
- <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_month" class="combo_s_essential" position="absolute 168 8 238 27" style="" onitemclick="group2_cmb_month_onitemclick">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" />
- <Column id="datacolumn" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">01</Col>
- <Col id="datacolumn">1월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">02</Col>
- <Col id="datacolumn">2월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">03</Col>
- <Col id="datacolumn">3월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">04</Col>
- <Col id="datacolumn">4월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">05</Col>
- <Col id="datacolumn">5월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">06</Col>
- <Col id="datacolumn">6월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">07</Col>
- <Col id="datacolumn">7월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">08</Col>
- <Col id="datacolumn">8월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">09</Col>
- <Col id="datacolumn">9월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">10</Col>
- <Col id="datacolumn">10월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">11</Col>
- <Col id="datacolumn">11월</Col>
- </Row>
- <Row>
- <Col id="codecolumn">12</Col>
- <Col id="datacolumn">12월</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="ipt_year" class="input_s_essential" position="absolute 105 8 165 27" style="" anchor="default" onkillfocus="group2_ipt_year_onkillfocus" />
- <Static id="caption9" class="search_name" position="absolute 825 9 886 26" style="" text="마감 :" />
- <Button id="button6" class="btn4_letter4" position="absolute 995 7 1075 29" style="" text="마감적용" onclick="group2_button6_onclick" />
- <Button id="button7" class="btn4_letter4" position="absolute 995 7 1075 29" style="" text="마감취소" onclick="group2_button7_onclick" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_tle" position="absolute 0 0 1180 13" style="">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 311 14" style="" text="선택진료료배분관리" />
- </Layout>
- </Layouts>
- </Div>
- <Div id="group1" position="absolute 0 50 1180 790" style="">
- <Layouts>
- <Layout>
- <Tab id="switch1" position="absolute 0 0 1180 730" style="border: solid #ffffff #ffffff;" anchor="default">
- <Tabpages>
- <Tabpage id="case_g" position="absolute 0 0 200 200" style="" anchor="default">
- <Layouts>
- <Layout>
- <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 5 28 1172 31" style="" anchor="default" />
- <Grid id="grd_d" binddataset="ds_main_speccd_speccdlist" position="absolute 5 33 1172 725" style="align:center ;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="160" />
- <Column size="100" />
- <Column size="120" />
- <Column size="80" />
- <Column size="80" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- <Column size="100" />
- </Columns>
- <Rows>
- <Row size="23" band="head" />
- <Row size="23" />
- </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="cd1" />
- <Cell col="6" text="cd2" />
- <Cell col="7" text="cd3" />
- <Cell col="8" text="cd4" />
- <Cell col="9" text="cd5" />
- <Cell col="10" text="cd6" />
- <Cell col="11" text="cd7" />
- <Cell col="12" text="cd8" />
- <Cell col="13" text="cd9" />
- <Cell col="14" text="cd10" />
- <Cell col="15" text="cdflagold" />
- <Cell col="16" text="orddeptcdold" />
- <Cell col="17" text="orddridold" />
- <Cell col="18" text="최종수정일시" />
- </Band>
- <Band id="body">
- <Cell text="bind:cdflag" />
- <Cell col="1" text="bind:orddeptcd" />
- <Cell col="2" text="bind:orddeptnm" />
- <Cell col="3" text="bind:orddrid" />
- <Cell col="4" text="bind:orddrnm" />
- <Cell col="5" text="bind:cd1" />
- <Cell col="6" text="bind:cd2" />
- <Cell col="7" text="bind:cd3" />
- <Cell col="8" text="bind:cd4" />
- <Cell col="9" text="bind:cd5" />
- <Cell col="10" text="bind:cd6" />
- <Cell col="11" text="bind:cd7" />
- <Cell col="12" text="bind:cd8" />
- <Cell col="13" text="bind:cd9" />
- <Cell col="14" text="bind:cd10" />
- <Cell col="15" text="bind:cdflagold" />
- <Cell col="16" text="bind:orddeptcdold" />
- <Cell col="17" text="bind:orddridold" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption7" class="tit_2" position="absolute 10 13 180 26" style="" text="선택진료료 배분 공통코드" />
- <Button id="btn_delete" class="btn5_letter2" position="absolute 1128 6 1170 25" style="" text="삭제" onclick="group1_switch1_case_g_btn_delete_onclick" />
- <Button id="btn_add" class="btn2_letter2" position="absolute 1038 6 1080 25" style="" text="추가" onclick="group1_switch1_case_g_btn_add_onclick" />
- <Button id="btn_save" class="btn5_letter2" position="absolute 1083 6 1125 25" style="" text="저장" onclick="group1_switch1_case_g_btn_save_onclick" />
- <Combo innerdataset="ds_init_code_P0488list_P0488" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="combo1" position="absolute 200 7 355 26" style="" onitemchanged="group1_switch1_case_g_combo1_onitemchanged" />
- <Button id="button8" class="btn2_letter4" position="absolute 972 6 1036 25" style="" text="엑셀저장" onclick="group1_switch1_case_g_button8_onclick" />
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_d" selected="true" position="absolute 0 0 1178 738" style="" anchor="default">
- <Layouts>
- <Layout>
- <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 5 28 845 31" style="" anchor="default" />
- <Static id="caption4" class="tit_2" position="absolute 10 12 185 26" style="" text="선택진료 배분 결과 리스트" />
- <Grid id="datagrid1" binddataset="ds_main_specamtreport_specamtreportlist" position="absolute 5 33 845 380" style="align:center ;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="110" />
- <Column size="65" />
- <Column size="60" />
- <Column size="65" />
- <Column size="65" />
- <Column size="65" />
- <Column size="65" />
- <Column size="65" />
- <Column size="65" />
- <Column size="65" />
- <Column size="65" />
- <Column size="65" />
- </Columns>
- <Rows>
- <Row size="23" band="head" />
- <Row size="23" />
- </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="최종수정일시" />
- </Band>
- <Band id="body">
- <Cell text="bind:orddeptnm" />
- <Cell col="1" text="bind:orddrnm" />
- <Cell col="2" text="bind:jobposnm" />
- <Cell col="3" text="bind:ownspamt" />
- <Cell col="4" text="bind:newownspamt" />
- <Cell col="5" text="bind:baseamt" />
- <Cell col="6" text="bind:deptpamt" />
- <Cell col="7" text="bind:psumamt" />
- <Cell col="8" text="bind:inctax" />
- <Cell col="9" text="bind:restax" />
- <Cell col="10" text="bind:realamt" />
- <Cell col="11" text="bind:deptrealamt" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line3" class="line_1" linetype="horizontal" position="absolute 850 28 1177 31" style="" anchor="default" />
- <Grid id="datagrid2" binddataset="ds_main_specamtdeptreport_specamtdeptreportlist" position="absolute 850 33 1177 725" style="align:center ;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="34" />
- <Column size="140" />
- <Column size="90" />
- <Column size="50" />
- </Columns>
- <Rows>
- <Row size="23" band="head" />
- <Row size="23" />
- </Rows>
- <Band id="head">
- <Cell text="순번" />
- <Cell col="1" text="진료과" />
- <Cell col="2" text="지급액" />
- <Cell col="3" text="sign" />
- <Cell col="4" text="최종수정일시" />
- </Band>
- <Band id="body">
- <Cell text="bind:seq" />
- <Cell col="1" text="bind:orddeptnm" />
- <Cell col="2" text="bind:realamt" />
- <Cell col="3" text="bind:sign" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption5" class="tit_2" position="absolute 855 12 1017 26" style="" text="의국비 배분 결과 리스트" />
- <Grid id="datagrid3" binddataset="ds_main_specamtpcntreport_specamtpcntreportlist" position="absolute 5 408 845 725" style="align:center ;">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="126" />
- <Column size="65" />
- <Column size="105" />
- <Column size="105" />
- <Column size="105" />
- <Column size="105" />
- <Column size="105" />
- <Column size="105" />
- </Columns>
- <Rows>
- <Row size="23" band="head" />
- <Row size="23" />
- </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="최종수정일시" />
- </Band>
- <Band id="body">
- <Cell text="bind:orddeptnm" />
- <Cell col="1" text="bind:orddrnm" />
- <Cell col="2" text="bind:opatcnt" />
- <Cell col="3" text="bind:ospcamt" />
- <Cell col="4" text="bind:ipatcnt" />
- <Cell col="5" text="bind:ispcamt" />
- <Cell col="6" text="bind:tpatcnt" />
- <Cell col="7" text="bind:tspcamt" />
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption8" class="tit_2" position="absolute 10 389 255 403" style="" text="선택진료 임상과별 환자수 및 수입현황" />
- <Shape id="line4" class="line_1" linetype="horizontal" position="absolute 5 403 845 406" style="" anchor="default" />
- <Button id="button3" class="btn2_letter4" position="absolute 783 383 847 402" style="" text="엑셀저장" onclick="group1_switch1_case_d_button3_onclick" />
- <Button id="button2" class="btn2_letter4" position="absolute 783 7 847 26" style="" text="엑셀저장" onclick="group1_switch1_case_d_button2_onclick" />
- <Button id="btn_updtexcel" class="btn2_letter4" position="absolute 1113 7 1177 26" style="" text="엑셀저장" onclick="group1_switch1_case_d_btn_updtexcel_onclick" />
- <Button id="btn_print" class="btn6_letter2" position="absolute 726 6 782 28" style="" text="출력" onclick="group1_switch1_case_d_btn_print_onclick" />
- <Button id="button4" class="btn6_letter2" position="absolute 1056 6 1112 28" style="" text="출력" onclick="group1_switch1_case_d_button4_onclick" />
- <Button id="button5" class="btn6_letter2" position="absolute 726 381 782 403" style="" text="출력" onclick="group1_switch1_case_d_button5_onclick" />
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_code_P0488list_P0488" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256" />
- <Column id="cdnm" type="STRING" size="256" />
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_specamtreport" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_specamtpcntreport" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_specamtpcntreport_specamtpcntreportlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="orddeptnm" type="STRING" size="256" />
- <Column id="orddrnm" type="STRING" size="256" />
- <Column id="opatcnt" type="STRING" size="256" />
- <Column id="ospcamt" type="STRING" size="256" />
- <Column id="ipatcnt" type="STRING" size="256" />
- <Column id="ispcamt" type="STRING" size="256" />
- <Column id="tpatcnt" type="STRING" size="256" />
- <Column id="tspcamt" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="orddeptnm"></Col>
- <Col id="orddrnm"></Col>
- <Col id="opatcnt"></Col>
- <Col id="ospcamt"></Col>
- <Col id="ipatcnt"></Col>
- <Col id="ispcamt"></Col>
- <Col id="tpatcnt"></Col>
- <Col id="tspcamt"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_specamtdeptreport_specamtdeptreportlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="seq" type="STRING" size="256" />
- <Column id="orddeptnm" type="STRING" size="256" />
- <Column id="realamt" type="STRING" size="256" />
- <Column id="sign" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="seq"></Col>
- <Col id="orddeptnm"></Col>
- <Col id="realamt"></Col>
- <Col id="sign"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_code" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_main_speccd_speccdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdflag" type="STRING" size="256" />
- <Column id="orddeptcd" type="STRING" size="256" />
- <Column id="orddrid" type="STRING" size="256" />
- <Column id="cd1" type="STRING" size="256" />
- <Column id="cd2" type="STRING" size="256" />
- <Column id="cd3" type="STRING" size="256" />
- <Column id="cd4" type="STRING" size="256" />
- <Column id="cd5" type="STRING" size="256" />
- <Column id="cd6" type="STRING" size="256" />
- <Column id="cd7" type="STRING" size="256" />
- <Column id="cd8" type="STRING" size="256" />
- <Column id="cd9" type="STRING" size="256" />
- <Column id="cd10" type="STRING" size="256" />
- <Column id="cdflagold" type="STRING" size="256" />
- <Column id="orddeptcdold" type="STRING" size="256" />
- <Column id="orddridold" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdflag"></Col>
- <Col id="orddeptcd"></Col>
- <Col id="orddrid"></Col>
- <Col id="cd1"></Col>
- <Col id="cd2"></Col>
- <Col id="cd3"></Col>
- <Col id="cd4"></Col>
- <Col id="cd5"></Col>
- <Col id="cd6"></Col>
- <Col id="cd7"></Col>
- <Col id="cd8"></Col>
- <Col id="cd9"></Col>
- <Col id="cd10"></Col>
- <Col id="cdflagold"></Col>
- <Col id="orddeptcdold"></Col>
- <Col id="orddridold"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_speccd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <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_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init_code_P0488list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="orddridlist" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="orddridlist"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_specamtreport_specamtreportlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="orddeptnm" type="STRING" size="256" />
- <Column id="orddrnm" type="STRING" size="256" />
- <Column id="jobposnm" type="STRING" size="256" />
- <Column id="ownspamt" type="STRING" size="256" />
- <Column id="newownspamt" type="STRING" size="256" />
- <Column id="baseamt" type="STRING" size="256" />
- <Column id="deptpamt" type="STRING" size="256" />
- <Column id="psumamt" type="STRING" size="256" />
- <Column id="inctax" type="STRING" size="256" />
- <Column id="restax" type="STRING" size="256" />
- <Column id="realamt" type="STRING" size="256" />
- <Column id="deptrealamt" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="orddeptnm"></Col>
- <Col id="orddrnm"></Col>
- <Col id="jobposnm"></Col>
- <Col id="ownspamt"></Col>
- <Col id="newownspamt"></Col>
- <Col id="baseamt"></Col>
- <Col id="deptpamt"></Col>
- <Col id="psumamt"></Col>
- <Col id="inctax"></Col>
- <Col id="restax"></Col>
- <Col id="realamt"></Col>
- <Col id="deptrealamt"></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="statisticflag" type="STRING" size="256" />
- <Column id="fromdd" type="STRING" size="256" />
- <Column id="todd" type="STRING" size="256" />
- <Column id="month" type="STRING" size="256" />
- <Column id="year" type="STRING" size="256" />
- <Column id="cdflag" type="STRING" size="256" />
- <Column id="endyn" type="STRING" size="256" />
- <Column id="passwd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="statisticflag"></Col>
- <Col id="fromdd"></Col>
- <Col id="todd"></Col>
- <Col id="month"></Col>
- <Col id="year"></Col>
- <Col id="cdflag"></Col>
- <Col id="endyn"></Col>
- <Col id="passwd"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="orddeptcdlist" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="orddeptcdlist"></Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_specamtdeptreport" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo />
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="rcv" type="STRING" size="256" />
- <Column id="fromtodd" type="STRING" size="256" />
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rcv"></Col>
- <Col id="fromtodd"></Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_pid" propid="value" datasetid="ds_send" columnid="fromdd" />
- <BindItem id="item1" compid="group2.radio1" propid="value" datasetid="ds_send" columnid="statisticflag" />
- <BindItem id="item2" compid="group2.input1" propid="value" datasetid="ds_send" columnid="todd" />
- <BindItem id="item3" compid="group2.cmb_month" propid="value" datasetid="ds_send" columnid="month" />
- <BindItem id="item4" compid="group2.ipt_year" propid="value" datasetid="ds_send" columnid="year" />
- <BindItem id="item5" compid="group1.switch1.case_g.combo1" propid="value" datasetid="ds_send" columnid="cdflag" />
- </Bind>
- <Script type="xscript4.0"><![CDATA[function SMSTP00800_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- var arrParam = [ {dsNm: "ds_init_code_P0488list",
- cdGrpId: "P0488" } ];
- appf_getCodeList(arrParam, );
- //
- // //진료과코드 진료의사ID 조회
- pamGetDeptCDDrIDList();
- //초기화 및 날자 입력 항목에 오늘 날자 세팅
- fInitialize();
- }
- include '../../.._com_commonweb_js_common.js'
- include '../../.._com_commonweb_js_tfHelper.js'
- include '../../.._com_commonweb_js_utilHelper.js'
- include '../../.._com_commonweb_js_dateHelper.js'
- include '../../.._com_basiccodeweb_js_ZBC001.js'
- include '../../.._pam_pamcomnweb_js_PAM.js'
- include '../../.._pam_opatmngtweb_js_PMOCOM.js'
- var Authority = 'N'; //권한설정 'S' 모든권한, 'N' 조회권한
- var psswd = '';
- function fCheckSearchValues(){
- if( ds_send.getColumn(0, "pid") != '' || ds_send.getColumn(0, "hngnm") != '' || ds_send.getColumn(0, "rrgstno1") != '' ||
- ds_send.getColumn(0, "rrgstno2") != '' || ds_send.getColumn(0, "fromdd") != '' || ds_send.getColumn(0, "todd") != '' ||
- ds_send.getColumn(0, "orddept") != '' || ds_send.getColumn(0, "orddr") != '' || ds_send.getColumn(0, "statisticgooboon") != '' ||
- ds_send.getColumn(0, "department") != '' ){
- return true;
- }else{
- return false;
- }
- }
- function fInitialize() {
- Authority = String(frmf_getMenuParam()).;
- ds_send.clearData(); ds_send.addRow();
- ds_main.clearData(); ds_main.addRow();
- //날자 입력 항목에 오늘 날자 세팅
- var curDate = utlf_getCurrentDate();
- // ds_send.setColumn( 0, "fromdd", curDate-1);
- // ds_send.setColumn( 0, "todd", curDate-1);
- ds_send.setColumn( 0, "year", curDate.substr(0, 4));
- ds_send.setColumn( 0, "month", curDate.substr(4, 2));
- group2.cmb_month.dispatch("xforms-select");
- ds_send.setColumn( 0, "statisticflag", 'D');
- if( Authority != 'S' ){
- group2.btn_totaling.visible = false;
- group2.btn_distributing.visible = false;
- group2.button6.visible = false;
- group2.button7.visible = false;
- group1.switch1.case_g.btn_add.visible = false;
- group1.switch1.case_g.btn_save.visible = false;
- group1.switch1.case_g.btn_delete.visible = false;
- group2.secret1.visible = false;
- group2.caption9.visible = false;
- }else{
- group2.btn_totaling.visible = false;
- group2.btn_distributing.visible = true;
- }
- //model.refresh();
- }
- function fSearch(){
- if( ds_main.getColumn(0, "popupendflag") == "ok" ){
- //인적사항에 변경이 있는지를 비교하기 위해서 tmp에 인적사항을 미리 저장해 놓는다.
- dsf_makeValue( ds_hidden, "tmpnode", "string", "" );
- ds_hidden_tmpnode.copyData(ds_main_patinfo);
- //보험_감면_진료기록_신생하*산모내역 조회
- ds_send.setColumn( 0, "pid", ds_main_patinfo_patinfolist.getColumn(0, "pid"));
- // submit("TRPMC01401");
- var oParam = {};
- oParam.id = "TRPMC01401";
- oParam.service = "patinfomngtapp.PatBaseInfo";
- oParam.method = "reqGetPatBaseInfo";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=patinsuinfolist ds_=patdiscinfolist ds_=patordrecinfolist ds_=nbabyinfolist";
- oParam.async = false;
- oParam.callback = "cf_TRPMC01401";
- tranf_submit(oParam);
- /*
- function cf_TRPMC01401(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPMC01401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPMC01401") > -1
- arErrorCode.pop("TRPMC01401") < 0
- */
- //dsf_makeValue( ds_main, "popupendflag", "string", "" );
- }
- }
- function searchdepart(){
- for(var i=1; i<grd_reservationstatistic.rows ; i++){
- var tmpdepart = grd_reservationstatistic.valueMatrix(i , 1) ;
- var index =0;
- while(tmpdepart != (ds_init_orddeptcd_orddeptcdlist.getColumn(index, "cd")) ) ){
- index++;
- if(index > 300) break;
- }
- if(ds_init_orddeptcd_orddeptcdlist.getColumn(index, "nm")) ==""){
- sysf_messageBox("부서명과 " +ds_main_reservationstatistic_reservationstatisticlist.getColumn(i, "orddeptcd") +"이", "E004")
- }else if(ds_init_orddeptcd_orddeptcdlist.getColumn(index, "nm")) !="") {
- ds_main_reservationstatistic.setColumn( i , "orddeptcd",
- ds_init_orddeptcd_orddeptcdlist.getColumn(index, "nm")) );
- }
- }
- }
- function GetGetRsrvDeptCD(){
- // submit("TRPMO01504");
- var oParam = {};
- oParam.id = "TRPMO00209";
- oParam.service = "opatmngtapp.TelStatistic";
- oParam.method = "reqGetRsrvDeptcd";
- oParam.inds = "";
- oParam.outds = "ds_=rsrvdeptcdlist";
- oParam.async = false;
- oParam.callback = "cf_TRPMO00209";
- tranf_submit(oParam);
- /*
- function cf_TRPMO00209(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRPMO00209(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRPMO00209") > -1
- arErrorCode.pop("TRPMO00209") < 0
- */
- }
- function fRsrvInfolistPrint(){
- ds_temp_rsrvlist.clearData();
- dsf_makeValue( ds_temp_rsrvlist, "otpt_histstat", "string", "" );
- dsf_makeValue( ds_temp_rsrvlist, "otpt_pid", "string", "" );
- dsf_makeValue( ds_temp_rsrvlist, "otpt_orddd", "string", "" );
- dsf_makeValue( ds_temp_rsrvlist, "otpt_rsrvflag", "string", "" );
- dsf_makeValue( ds_temp_rsrvlist, "otpt_remfact", "string", "" );
- dsf_makeValue( ds_temp_rsrvlist, "otpt_telnum", "string", "" );
- dsf_makeValue( ds_temp_rsrvlist, "otpt_telrsrvrem", "string", "" );
- dsf_makeValue( ds_temp_rsrvlist, "ptbs_hngnm", "string", "" );
- dsf_makeValue( ds_temp_rsrvlist, "otpt_updtcnclresn", "string", "" );
- dsf_makeValue( ds_temp_rsrvlist, "otpt_ordtm", "string", "" );
- dsf_makeValue( ds_temp_rsrvlist, "otpt_orddeptcd", "string", "" );
- dsf_makeValue( ds_temp_rsrvlist, "otpt_orddrid", "string", "" );
- //var orddd = model.getValue("");
- dsf_makeValue( ds_temp_rsrvlist, "otpt_orddeptcd", "string", cmb_orddeptcd.label);
- dsf_makeValue( ds_temp_rsrvlist, "otpt_orddrid", "string", cmb_orddrid.label);
- ds_temp_rsrvlist.setColumn( 0, "otpt_orddd", orddd);
- // model.copyNode("ds_temp_rsrvlist", "ds_main_h_otpt3_otpt[" + datagrid6.row + "]");
- for (i = 1; i <= ds_main_h_otpt3_otpt.rowcount; i++) {
- var aa = ds_main_h_otpt3_otpt.getColumn(0, "otpt_ordtm");
- ds_temp_rsrvlist.setColumn( i, "otpt_ordtm", datagrid6.labelmatrix(i, 1));
- ds_temp_rsrvlist.setColumn( i, "otpt_pid", datagrid6.labelmatrix(i, 2));
- ds_temp_rsrvlist.setColumn( i, "ptbs_hngnm", datagrid6.labelmatrix(i, 3));
- ds_temp_rsrvlist.setColumn( i, "otpt_histstat", datagrid6.labelmatrix(i, 7));
- ds_temp_rsrvlist.setColumn( i, "otpt_rsrvflag", datagrid6.labelmatrix(i, 8));
- ds_temp_rsrvlist.setColumn( i, "otpt_telnum", ds_main_h_otpt3_otpt.getColumn(i, "otpt_telnum"));
- ds_temp_rsrvlist.setColumn( i, "otpt_remfact", ds_main_h_otpt3_otpt.getColumn(i, "otpt_remfact"));
- ds_temp_rsrvlist.setColumn( i, "otpt_telrsrvrem", ds_main_h_otpt3_otpt.getColumn(i, "otpt_telrsrvrem"));
- ds_temp_rsrvlist.setColumn( i, "otpt_updtcnclresn", ds_main_h_otpt3_otpt.getColumn(i, "otpt_updtcnclresn"));
- }
- var objDOM = rptf_createDOM();
- var objParam = new Object();
- rptf_setNodeListToDOM(objDOM, "/root/XXX" , ds_XXX);
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
- rptf_exeReportPreview30(["RPPMO00301"],[objParam], option);
- }
- function group2_button1_onclick(obj:Button, e:ClickEventInfo) {
- ds_main.clearData(); ds_main.addRow();
- // if( model.getValue("") == 'D' ){
- // submit("TRSTP00803");
- var oParam = {};
- oParam.id = "TRSTP00803";
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqGetSpecAmtReport";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=speccd ds_=specamtreport ds_=specamtdeptreport ds_=specamtpcntreport";
- oParam.async = false;
- oParam.callback = "cf_TRSTP00803";
- tranf_submit(oParam);
- /*
- function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRSTP00803") > -1
- arErrorCode.pop("TRSTP00803") < 0
- */
- ds_main.copyData(ds_hidden_rcv);
- ds_hidden_rcv.clearData();
- dsf_makeValue( ds_hidden, "rcv", "string", "" );
- //model.refresh();
- }
- function group2_ipt_pid_onkeydown(obj:Calendar, e:KeyEventInfo) {
- if (event.keyCode == "13")
- {
- obj.updateToDataset();
- fOutHistRef();
- }
- }
- function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo) {
- //ds_send.clearData(); ds_send.addRow();
- ds_main.clearData();
- dsf_makeValue( ds, "main", "string", "" );
- //날자 입력 항목에 오늘 날자 세팅
- // var curDate = utlf_getCurrentDate();
- // ds_send.setColumn( 0, "year", curDate.substr(0, 4));
- // ds_send.setColumn( 0, "month", curDate.substr(4, 2));
- //fInitialize();
- var rsrvgubn = ds_send.getColumn(0, "statisticflag");
- if (rsrvgubn == "G"){
- if( Authority == 'S' ){
- group2.btn_totaling.visible = true;
- group2.btn_distributing.visible = false;
- }
- model.toggle("group1.switch1.case_g");
- }else if (rsrvgubn == "D"){
- if( Authority == 'S' ){
- group2.btn_totaling.visible = false;
- group2.btn_distributing.visible = true;
- }
- model.toggle("group1.switch1.case_d");
- }
- group2.cmb_month.dispatch("xforms-select");
- //model.refresh();
- }
- function group2_input1_onkeydown(obj:Calendar, e:KeyEventInfo) {
- if (event.keyCode == "13")
- {
- obj.updateToDataset();
- fOutHistRef();
- }
- }
- function group2_btn_totaling_onclick(obj:Button, e:ClickEventInfo) {
- if(sysf_messageBox("선택진료배분자료 집계하시겠습니까? 이전 집계된 자료는 삭제됩니다. 계속하시겠습니까?", "Q999", "") != 6) return;
- var orgfromdd = ds_send.getColumn(0, "fromdd");
- var orgtodd = ds_send.getColumn(0, "todd");
- var addedfromdd = orgfromdd;
- //var addedfromdd = orgfromdd.toDate("YYYYMMDD").getAddDate('1', 'D').getDateFormat("YYYYMMDD");
- //var notaddedfromdd = orgfromdd;
- while( addedfromdd <= orgtodd ){
- ds_send.setColumn( 0, "fromdd", addedfromdd);
- ds_send.setColumn( 0, "todd", addedfromdd);
- // if(submit("TXSTP00801")){
- var oParam = {};
- oParam.id = "TXSTP00801";
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqSetSpecAmtTotaling";
- oParam.inds = "req=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXSTP00801";
- tranf_submit(oParam);
- /*
- function cf_TXSTP00801(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXSTP00801(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXSTP00801") > -1
- arErrorCode.pop("TXSTP00801") < 0
- */
- //notaddedfromdd = addedfromdd.toDate("YYYYMMDD").getAddDate('1', 'D').getDateFormat("YYYYMMDD");
- // if( addedfromdd > orgtodd ){
- // addedfromdd = orgtodd;
- // ds_send.setColumn( 0, "fromdd", notaddedfromdd);
- // ds_send.setColumn( 0, "todd", addedfromdd);
- // if(submit("TXSTP00801")){
- // return true;
- // }else{
- // sysf_messageBox("자료집계 실패했습니다. 확인 후 다시 시도하세요", "E999", "");
- // }
- // }
- }else{
- sysf_messageBox(addedfromdd + "일자 자료집계를 실패했습니다. 확인 후 해당 일자부터 다시 집계하세요", "E999", "");
- return false;
- }
- addedfromdd = addedfromdd.toDate("YYYYMMDD").getAddDate(1, 'D').getDateFormat("YYYYMMDD");
- //alert(addedfromdd);
- }
- }
- function group2_btn_distributing_onclick(obj:Button, e:ClickEventInfo) {
- // submit("TXSTP00802");
- var oParam = {};
- oParam.id = "TXSTP00802";
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqSetSpecAmtDistribute";
- oParam.inds = "req=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXSTP00802";
- tranf_submit(oParam);
- /*
- function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXSTP00802") > -1
- arErrorCode.pop("TXSTP00802") < 0
- */
- }
- function group2_cmb_month_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
- var selectedMonth = ds_send.getColumn(0, "month");
- // ds_send.setColumn( 0, "month", selectedMonth);
- var selectedYear = ds_send.getColumn(0, "year");
- // ds_send.setColumn( 0, "year", selectedYear);
- var fromdd = selectedYear + selectedMonth + '01';
- var todd = selectedYear + selectedMonth + getDayCountForMonth(selectedYear, selectedMonth);
- ds_send.setColumn( 0, "fromdd", fromdd);
- ds_send.setColumn( 0, "todd", todd);
- //배분확정여부 체크
- var flag = ds_send.getColumn(0, "statisticflag");
- ds_send.setColumn( 0, "statisticflag", "G");
- ds_send.setColumn( 0, "cdflag", '00');
- // submit("TRSTP00803");
- var oParam = {};
- oParam.id = "TRSTP00803";
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqGetSpecAmtReport";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=speccd ds_=specamtreport ds_=specamtdeptreport ds_=specamtpcntreport";
- oParam.async = false;
- oParam.callback = "cf_TRSTP00803";
- tranf_submit(oParam);
- /*
- function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRSTP00803") > -1
- arErrorCode.pop("TRSTP00803") < 0
- */
- ds_send.setColumn( 0, "cdflag", '');
- ds_send.setColumn( 0, "statisticflag", flag);
- ds_send.setColumn( 0, "passwd", '');
- psswd = '-';
- if( Authority == 'S' ){
- //해당월의 선택진료배분마감
- if( ds_hidden_rcv_speccd_speccdlist.getColumn(0, "cd3") == 'Y' ){
- psswd = ds_hidden_rcv_speccd_speccdlist.getColumn(0, "cd10");
- group2.btn_totaling.enable = false;
- group2.btn_distributing.enable = false;
- group2.button6.visible = false;
- group2.button7.visible = true;
- group2.button6.enable = false;
- group2.button7.enable = false;
- }else{
- group2.btn_totaling.enable = true;
- group2.btn_distributing.enable = true;
- group2.button6.visible = true;
- group2.button7.visible = false;
- group2.button6.enable = false;
- group2.button7.enable = false;
- }
- }
- //model.refresh();
- }
- function group2_ipt_year_onkillfocus(obj:Edit, e:KillFocusEventInfo) {
- var selectedMonth = ds_send.getColumn(0, "month");
- // ds_send.setColumn( 0, "month", selectedMonth);
- var selectedYear = ds_send.getColumn(0, "year");
- // ds_send.setColumn( 0, "year", selectedYear);
- var fromdd = selectedYear + selectedMonth + '01';
- var todd = selectedYear + selectedMonth + getDayCountForMonth(selectedYear, selectedMonth);
- ds_send.setColumn( 0, "fromdd", fromdd);
- ds_send.setColumn( 0, "todd", todd);
- //배분확정여부 체크
- var flag = ds_send.getColumn(0, "statisticflag");
- ds_send.setColumn( 0, "statisticflag", "G");
- ds_send.setColumn( 0, "cdflag", '00');
- // submit("TRSTP00803");
- var oParam = {};
- oParam.id = "TRSTP00803";
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqGetSpecAmtReport";
- oParam.inds = "req=ds_";
- oParam.outds = "ds_=speccd ds_=specamtreport ds_=specamtdeptreport ds_=specamtpcntreport";
- oParam.async = false;
- oParam.callback = "cf_TRSTP00803";
- tranf_submit(oParam);
- /*
- function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TRSTP00803(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TRSTP00803") > -1
- arErrorCode.pop("TRSTP00803") < 0
- */
- ds_send.setColumn( 0, "cdflag", '');
- ds_send.setColumn( 0, "statisticflag", flag);
- ds_send.setColumn( 0, "passwd", '');
- psswd = '-';
- if( Authority == 'S' ){
- //해당월의 선택진료배분마감
- if( ds_hidden_rcv_speccd_speccdlist.getColumn(0, "cd3") == 'Y' ){
- psswd = ds_hidden_rcv_speccd_speccdlist.getColumn(0, "cd10");
- group2.btn_totaling.enable = false;
- group2.btn_distributing.enable = false;
- group2.button6.visible = false;
- group2.button7.visible = true;
- group2.button6.enable = false;
- group2.button7.enable = false;
- }else{
- group2.btn_totaling.enable = true;
- group2.btn_distributing.enable = true;
- group2.button6.visible = true;
- group2.button7.visible = false;
- group2.button6.enable = false;
- group2.button7.enable = false;
- }
- }
- //model.refresh();
- }
- function group2_button6_onclick(obj:Button, e:ClickEventInfo) {
- var secretValue = ds_send.getColumn(0, "passwd");
- if( secretValue == '' || secretValue.length < 4 ){
- sysf_messageBox("마감 비밀번호는 4자리 이상입력하세요.", "E999", "");
- return false;
- }
- if(sysf_messageBox("선택진료배분을 마감 하시겠습니까? 마감된 기간에는 집계_배분이 되지 않습니다. 계속하시겠습니까?", "Q999", "") != 6) return;
- ds_send.setColumn( 0, "endyn", "I");
- // if(submit("TXSTP00805")){
- var oParam = {};
- oParam.id = "TXSTP00805";
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqSetSpecAmtEnd";
- oParam.inds = "req=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXSTP00805";
- tranf_submit(oParam);
- /*
- function cf_TXSTP00805(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXSTP00805(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXSTP00805") > -1
- arErrorCode.pop("TXSTP00805") < 0
- */
- group2.cmb_month.dispatch("xforms-select");
- }else{
- sysf_messageBox("마감적용 실패했습니다. 잠시 후 다시 하시거나 정보지원팀에 문의하세요.", "E999", "");
- return false;
- }
- }
- function group2_button7_onclick(obj:Button, e:ClickEventInfo) {
- if(psswd != ds_send.getColumn(0, "passwd") ){
- sysf_messageBox("마감 비밀번호랑 다릅니다. 정확히 입력하세요,", "E999", "");
- return false;
- }
- if(sysf_messageBox("마감을 취소 하시겠습니까? 마감취소 후에는 집계_배분이 가능합니다. 계속하시겠습니까?", "Q999", "") != 6) return;
- ds_send.setColumn( 0, "endyn", "D");
- // if(submit("TXSTP00805")){
- var oParam = {};
- oParam.id = "TXSTP00805";
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqSetSpecAmtEnd";
- oParam.inds = "req=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXSTP00805";
- tranf_submit(oParam);
- /*
- function cf_TXSTP00805(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXSTP00805(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXSTP00805") > -1
- arErrorCode.pop("TXSTP00805") < 0
- */
- group2.cmb_month.dispatch("xforms-select");
- }else{
- sysf_messageBox("마감적용 실패했습니다. 잠시 후 다시 하시거나 정보지원팀에 문의하세요.", "E999", "");
- return false;
- }
- }
- function group2_secret1_onkeydown(obj:, e:KeyEventInfo) {
- if (event.keyCode == "13"){
- group2.button6.setFocus();
- }
- }
- function group2_secret1_onkillfocus(obj:, e:KillFocusEventInfo) {
- //마감취소
- if( group2.button7.visible == true ){
- //패스워드 체크후 같으면 사용가능
- if(psswd == group2.secret1.value ){
- group2.button7.enable = true;
- }else{
- sysf_messageBox("마감 비밀번호랑 다릅니다. 정확히 입력하세요,", "E999", "");
- return false;
- }
- }else{
- if( group2.secret1.value == '' || group2.secret1.value.length < 4 ){
- sysf_messageBox("마감 비밀번호는 4자리 이상입력하세요.", "E999", "");
- return false;
- }else{
- group2.button6.enable = true;
- }
- }
- }
- function group1_switch1_case_g_btn_delete_onclick(obj:Button, e:ClickEventInfo) {
- if(sysf_messageBox("선택된 행을", "Q001") != 6) return;
- var cur_row = group1.switch1.case_g.grd_d.row;
- if( cur_row > 0 ){
- //디비에 입력되지 않은 데이터는 그리드에서만 삭제한다.
- if (group1.switch1.case_g.grd_d.rowStatus(cur_row) == "1" || group1.switch1.case_g.grd_d.rowStatus(cur_row) == "3"){
- group1.switch1.case_g.grd_d.deleteItem(cur_row);
- return;
- }
- group1.switch1.case_g.grd_d.addStatus(cur_row, "delete");
- //삭제할 행의 정보를 send에 넣는다.
- dsf_makeValue( ds_send_updtdata, "datalist", "string", "" );
- ds_send_updtdata.setColumn( 0, "datalist", group1.switch1.case_g.grd_d.getUpdateData("delete"));
- // if ( submit("TXSTP00804") ) {
- var oParam = {};
- oParam.id = "TXSTP00802";
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqSetSpecAmtCodeData";
- oParam.inds = "req=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXSTP00802";
- tranf_submit(oParam);
- /*
- function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXSTP00802") > -1
- arErrorCode.pop("TXSTP00802") < 0
- */
- group1.switch1.case_g.grd_d.removeStatus(cur_row, "delete");
- group1.switch1.case_g.grd_d.deleteItem( cur_row);
- ds_send_updtdata.clearData();
- }
- }
- }
- function group1_switch1_case_g_btn_add_onclick(obj:Button, e:ClickEventInfo) {
- group1.switch1.case_g.grd_d.addRow(false);
- //group1.switch1.case_g.grd_d.refresh();
- }
- function group1_switch1_case_g_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- var cur_row = group1.switch1.case_g.grd_d.rows - group1.switch1.case_g.grd_d.fixedRows;
- if( cur_row > 0 ){
- if(sysf_messageBox("공통코드자료를 저장 하시겠습니까?", "Q999") != 6) return;
- dsf_makeValue( ds_send_updtdata, "datalist", "string", "" );
- ds_send_updtdata.setColumn( 0, "datalist",group1.switch1.case_g.grd_d.getUpdateData());
- // if ( submit("TXSTP00804") ) {
- var oParam = {};
- oParam.id = "TXSTP00802";
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqSetSpecAmtCodeData";
- oParam.inds = "req=ds_";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXSTP00802";
- tranf_submit(oParam);
- /*
- function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- function cf_TXSTP00802(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- arErrorCode.pop("TXSTP00802") > -1
- arErrorCode.pop("TXSTP00802") < 0
- */
- group1.switch1.case_g.grd_d.rebuild();
- //진료일정기준자료를 재 조회한다.
- ds_send_updtdata.clearData();
- group2.button1.dispatch("DOMActivate");
- }
- //model.refresh();
- }
- }
- function group1_switch1_case_g_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- group2.button1.dispatch("DOMActivate");
- }
- function group1_switch1_case_g_button8_onclick(obj:Button, e:ClickEventInfo) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- group1.switch1.case_g.grd_d.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- window.exec(fileName);
- }
- function group1_switch1_case_d_button3_onclick(obj:Button, e:ClickEventInfo) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- group1.switch1.case_d.datagrid3.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- window.exec(fileName);
- }
- function group1_switch1_case_d_button2_onclick(obj:Button, e:ClickEventInfo) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- group1.switch1.case_d.datagrid1.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- window.exec(fileName);
- }
- function group1_switch1_case_d_btn_updtexcel_onclick(obj:Button, e:ClickEventInfo) {
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "")
- {
- group1.switch1.case_d.datagrid2.saveExcel(fileName, "SheetName", true, true, "", "");
- }
- window.exec(fileName);
- }
- function group1_switch1_case_d_btn_print_onclick(obj:Button, e:ClickEventInfo) {
- dsf_makeValue( ds_hidden, "fromtodd", "string", "" );
- var fromdd = ds_send.getColumn(0, "fromdd");
- var todd = ds_send.getColumn(0, "todd");
- if( fromdd == '' || fromdd.length < 8 || todd == '' || todd.length < 8 ){
- sysf_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) + '일';
- ds_hidden.setColumn( 0, "fromtodd", fromdd + ' ~ ' + todd );
- var objDOM = rptf_createDOM();
- var objParam = new Object();
- rptf_setNodeListToDOM(objDOM, "/root/XXX" , ds_XXX);
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
- rptf_exeReportPreview30(["RPSTP00802"],[objParam], option);
- }
- function group1_switch1_case_d_button4_onclick(obj:Button, e:ClickEventInfo) {
- dsf_makeValue( ds_hidden, "fromtodd", "string", "" );
- var fromdd = ds_send.getColumn(0, "fromdd");
- var todd = ds_send.getColumn(0, "todd");
- if( fromdd == '' || fromdd.length < 8 || todd == '' || todd.length < 8 ){
- sysf_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) + '일';
- ds_hidden.setColumn( 0, "fromtodd", fromdd + ' ~ ' + todd );
- var objDOM = rptf_createDOM();
- var objParam = new Object();
- rptf_setNodeListToDOM(objDOM, "/root/XXX" , ds_XXX);
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
- rptf_exeReportPreview30(["RPSTP00803"],[objParam], option);
- }
- function group1_switch1_case_d_button5_onclick(obj:Button, e:ClickEventInfo) {
- dsf_makeValue( ds_hidden, "fromtodd", "string", "" );
- var fromdd = ds_send.getColumn(0, "fromdd");
- var todd = ds_send.getColumn(0, "todd");
- if( fromdd == '' || fromdd.length < 8 || todd == '' || todd.length < 8 ){
- sysf_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) + '일';
- ds_hidden.setColumn( 0, "fromtodd", fromdd + ' ~ ' + todd );
- var objDOM = rptf_createDOM();
- var objParam = new Object();
- rptf_setNodeListToDOM(objDOM, "/root/XXX" , ds_XXX);
- objParam.xml_data_XML1 = objDOM.documentElement.source;
- var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
- rptf_exeReportPreview30(["RPSTP00801"],[objParam], option);
- }
- ]]></Script>
- </Form>
- </FDL>
|