1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAHB00310" position="absolute 0 0 1195 791" titletext="수가관리" onload="SMAHB00310_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="건진수가관리" class="tit_1" position="absolute 0 0 120 25"/>
- <Div id="group6" taborder="1" class="div_SA" position="absolute 0 25 1194 65" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption8" text="건진구분:" class="search_name" position="absolute 10 12 109 29"/>
- <Combo id="cmb_healexamflag" taborder="1" innerdataset="@ds_init_A0068" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 87 11 192 30" onitemchanged="group6_cmb_healexamflag_onitemchanged"/>
- <Static id="caption9" text="건진상세분류 :" class="search_name" position="absolute 208 12 317 29"/>
- <Combo id="cmb_srchhealexamdetlflag" taborder="2" innerdataset="@ds_init_A0069" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 315 11 405 30" onitemchanged="group6_cmb_srchhealexamdetlflag_onitemchanged"/>
- <Static id="caption21" text="패키지코드 :" class="search_name" position="absolute 419 12 510 29"/>
- <Edit id="ipt_srchpkgcd" taborder="3" class="input_essential" position="absolute 515 11 615 30" onkeyup="group6_ipt_srchpkgcd_onkeyup"/>
- <Static id="caption22" text="명칭 :" class="search_name" position="absolute 630 12 695 29"/>
- <Edit id="ipt_srchpkgnm" taborder="4" class="input_search" position="absolute 687 11 787 30" onkeyup="group6_ipt_srchpkgnm_onkeyup"/>
- <CheckBox id="chk_useyn" taborder="5" position="absolute 794 11 869 31" text="사용여부" truevalue="Y" onclick="group6_chk_useyn_onclick"/>
- <Shape id="line18" linetype="vertical" class="line_4" position="absolute 1101 10 1107 32" anchor="top right"/>
- <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 1122 10 1178 32" onclick="group6_btn_search_onclick" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption11" text="패키지코드 - 조회기준일" class="tit_2" position="absolute 0 73 172 89"/>
- <Button id="btn_grdsize" taborder="2" text="펼치기" class="btn2" position="absolute 341 67 394 89" onclick="btn_grdsize_onclick"/>
- <Button id="btn_excsave1" taborder="3" text="엑셀" class="btn7" position="absolute 287 67 339 89" onclick="btn_excsave1_onclick"/>
- <Shape id="line7" linetype="horizontal" class="line_10" position="absolute 0 89 395 95"/>
- <Static id="caption2" text="수가정보 - 조회기준일" class="tit_2" position="absolute 400 73 558 89"/>
- <Button id="button5" taborder="4" text="엑셀" class="btn7" position="absolute 783 67 835 89" onclick="button5_onclick"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 400 89 835 95"/>
- <Grid id="grd_calcscorelst" taborder="5" binddataset="ds_main_calcscorelst_calcscore" useinputpanel="false" position="absolute 400 94 835 762" oncelldblclick="grd_calcscorelst_oncelldblclick" selecttype="multirow" anchor="left top bottom" cellsizingtype="col" autoenter="select">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- <Row size="24" band="summ"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <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"/>
- <Cell col="13"/>
- <Cell col="14"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:healexamflag"/>
- <Cell col="2" text="bind:pkgcd"/>
- <Cell col="3" text="bind:gpkgcd"/>
- <Cell col="4" displaytype="text" style="background:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');background2:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');" text="bind:testcd"/>
- <Cell col="5" displaytype="text" style="background:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');background2:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');" text="bind:testnm"/>
- <Cell col="6" style="background:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');background2:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');" text="bind:mtestcd"/>
- <Cell col="7" displaytype="number" edittype="masknumber" style="background:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');background2:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');" text="bind:testamt"/>
- <Cell col="8" displaytype="date" edittype="date" style="background:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');background2:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="9" displaytype="date" edittype="date" style="background:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');background2:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="10" displaytype="date" edittype="date" style="background:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');background2:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');" text="bind:oldfromdd" mask="yyyy-mm-dd hh:nn"/>
- <Cell col="11" displaytype="date" edittype="date" style="background:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');background2:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');" text="bind:oldtodd" mask="yyyy-mm-dd hh:nn"/>
- <Cell col="12" displaytype="date" edittype="date" style="background:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');background2:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');" text="bind:changeoldtodd" mask="yyyy-mm-dd hh:nn"/>
- <Cell col="13" style="background:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');background2:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');" text="bind:lastupdtrid"/>
- <Cell col="14" displaytype="date" style="background:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');background2:EXPR(getRowType(currow)==2 ? '#F6B7B9' : '');" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm"/>
- </Band>
- <Band id="summary" style="background:#99ff99ff;">
- <Cell/>
- <Cell col="1"/>
- <Cell col="2"/>
- <Cell col="3"/>
- <Cell col="4" style="font:Dotum,9,bold;" text="총계"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7" displaytype="number" style="font:Dotum,9,bold;" text="expr:getSum('testamt')"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" text="이력정보" class="tit_2" position="absolute 840 73 948 89"/>
- <Button id="btn_grdadd" taborder="6" text="행추가" class="btn2" position="absolute 1086 67 1139 89" onclick="btn_grdadd_onclick" anchor="top right"/>
- <Button id="btn_grddel" taborder="7" text="행삭제" class="btn2" position="absolute 1141 67 1194 89" onclick="btn_grddel_onclick" anchor="top right"/>
- <Shape id="line2" class="line_10" position="absolute 840 89 1194 95" anchor="left top right"/>
- <Grid id="grd_calcscoredetlst" taborder="8" binddataset="ds_main_calcscoredetlst_calcscore" useinputpanel="false" position="absolute 840 94 1194 762" selecttype="multirow" anchor="all" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <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"/>
- <Cell col="11"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:healexamflag"/>
- <Cell col="2" text="bind:pkgcd"/>
- <Cell col="3" displaytype="text" text="bind:testcd"/>
- <Cell col="4" text="bind:testnm"/>
- <Cell col="5" displaytype="number" edittype="masknumber" text="bind:testamt"/>
- <Cell col="6" displaytype="date" edittype="date" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="7" displaytype="date" edittype="date" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="8" displaytype="date" edittype="date" text="bind:oldfromdd" mask="yyyy-mm-dd hh:nn"/>
- <Cell col="9" displaytype="date" edittype="date" text="bind:oldtodd" mask="yyyy-mm-dd hh:nn"/>
- <Cell col="10" text="bind:lastupdtrid"/>
- <Cell col="11" displaytype="date" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_pkglst" taborder="9" binddataset="ds_main_pkgcdlst_item1" useinputpanel="false" position="absolute 0 94 395 762" oncelldblclick="grd_pkglst_oncelldblclick" selecttype="multirow" anchor="left top bottom" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="20" band="left"/>
- <Column size="30" band="left"/>
- <Column size="78" band="left"/>
- <Column size="0" band="left"/>
- <Column size="0" band="left"/>
- <Column size="80" band="left"/>
- <Column size="0" band="left"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="70"/>
- <Column size="85"/>
- <Column size="90"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="125"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="90"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="순번"/>
- <Cell col="2" text="건진상세구분"/>
- <Cell col="3" text="코드구분"/>
- <Cell col="4" text="pkgcd"/>
- <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="earnclscd"/>
- <Cell col="28" text="dietconstyn"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" text="bind:seq"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:healexamdetlflag" combodataset="ds_init_A0070" combocodecol="cdid" combodatacol="cdnm" id="colflag" enable="false"/>
- <Cell col="3" displaytype="combo" edittype="combo" text="bind:pkgflag" enable="false"/>
- <Cell col="4" text="bind:pkgcdkey"/>
- <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:pkgcd"/>
- <Cell col="6" text="bind:oldordcd"/>
- <Cell col="7" style="align:left middle;padding:0 0 0 3;" text="bind:pkgnm"/>
- <Cell col="8" text="bind:pkgengnm"/>
- <Cell col="9" displaytype="number" text="bind:pkgamt"/>
- <Cell col="10" style="align:left middle;padding:0 0 0 3;" text="bind:calcscorcd"/>
- <Cell col="11" style="align:left middle;padding:0 0 0 3;" text="bind:calcscornm"/>
- <Cell col="12" displaytype="combo" edittype="combo" text="bind:brthareacnts" combodataset="ds_init_A0465" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="13" displaytype="combo" edittype="combo" text="bind:gndrflag" combodataset="ds_cmb_gndrflag" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="14" displaytype="checkbox" edittype="checkbox" text="bind:useyn" expr="expr:(useyn=="Y"||useyn==1)?1:0" enable="false"/>
- <Cell col="15" displaytype="combo" edittype="combo" text="bind:uncoflag" combodataset="ds_init_A0067" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="16" displaytype="combo" edittype="combo" text="bind:earnclslst" combodataset="ds_init_A0435" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
- <Cell col="17" displaytype="combo" edittype="combo" text="bind:pkgsumearncls" combodataset="ds_cmb_pkgsumearncls" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="18" text="bind:remcnts"/>
- <Cell col="19" text="bind:lastupdtrid"/>
- <Cell col="20" style="align:left middle;padding:0 0 0 3;" text="bind:lastupdtdt"/>
- <Cell col="21" style="align:left middle;padding:0 0 0 3;" text="bind:pkgdesc"/>
- <Cell col="22" displaytype="checkbox" edittype="checkbox" text="bind:discyn" expr="expr:(discyn=="Y"||discyn==1)?1:0" enable="false"/>
- <Cell col="23" displaytype="checkbox" edittype="checkbox" text="bind:inetyn" expr="expr:(inetyn=="Y"||inetyn==1)?1:0" enable="false"/>
- <Cell col="24" text="bind:hrmfctr"/>
- <Cell col="25" text="bind:cycle"/>
- <Cell col="26" text="bind:prntseq"/>
- <Cell col="27" text="bind:earnclscd"/>
- <Cell col="28" text="bind:dietconstyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group4" taborder="10" position="absolute -5 760 1194 788" anchor="left right bottom">
- <Layouts>
- <Layout>
- <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 784 5 840 27" anchor="left" onclick="group4_btn_save_onclick"/>
- <Button id="btn_detlsave" taborder="2" text="저장" class="btn4" position="absolute 1143 5 1199 27" anchor="right" onclick="group4_btn_detlsave_onclick"/>
- <Static id="Static00" text="~" position="absolute 510 9 527 27" style="font:arial,11,bold;"/>
- </Layout>
- </Layouts>
- </Div>
- <Calendar id="ipt_mechdd" taborder="11" position="absolute 558 69 656 88" dateformat="yyyy-MM-dd" value="null" class="input_essential" onchanged="ipt_mechdd_onchanged"/>
- <Button id="btn_update" taborder="12" text="수가일괄적용" position="absolute 624 765 713 787" class="btn2" onclick="btn_update_onclick"/>
- <Calendar id="ipt_upfromdd" taborder="13" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 400 767 498 786"/>
- <Calendar id="ipt_uptodd" taborder="14" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 520 767 618 786"/>
- <Calendar id="ipt_mechddpkg" taborder="15" dateformat="yyyy-MM-dd" class="input_essential" position="absolute 170 69 268 88" onchanged="ipt_mechddpkg_onchanged"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_calcscoredetlst_calcscore" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_calcscoredetlst_calcscore_oncolumnchanged">
- <ColumnInfo>
- <Column id="healexamflag" type="STRING" size="256"/>
- <Column id="pkgcd" type="STRING" size="256"/>
- <Column id="testcd" type="STRING" size="256"/>
- <Column id="testnm" type="STRING" size="256"/>
- <Column id="testamt" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="oldtodd" type="STRING" size="256"/>
- <Column id="oldfromdd" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="healexamflag"/>
- <Col id="pkgcd"/>
- <Col id="testcd"/>
- <Col id="testnm"/>
- <Col id="testamt"/>
- <Col id="todd"/>
- <Col id="fromdd"/>
- <Col id="oldtodd"/>
- <Col id="oldfromdd"/>
- <Col id="lastupdtrid"/>
- <Col id="lastupdtdt"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="hidden" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_A0435" 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>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_A0465" 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>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_baseinfo_pkgflag_item" 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>
- <Rows>
- <Row>
- <Col id="cdid">P</Col>
- <Col id="cdnm">패키지</Col>
- </Row>
- <Row>
- <Col id="cdid">G</Col>
- <Col id="cdnm">묶음처방</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_savecalcscore_calcscore" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_init_A0067" 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>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_A0069" 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>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_calcscorelst_calcscore" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_calcscorelst_calcscore_oncolumnchanged">
- <ColumnInfo>
- <Column id="healexamflag" type="STRING" size="256"/>
- <Column id="pkgcd" type="STRING" size="256"/>
- <Column id="gpkgcd" type="STRING" size="256"/>
- <Column id="testcd" type="STRING" size="256"/>
- <Column id="testnm" type="STRING" size="256"/>
- <Column id="mtestcd" type="STRING" size="256"/>
- <Column id="testamt" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="oldtodd" type="STRING" size="256"/>
- <Column id="oldfromdd" type="STRING" size="256"/>
- <Column id="changeoldtodd" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="healexamflag"/>
- <Col id="pkgcd"/>
- <Col id="gpkgcd"/>
- <Col id="testcd"/>
- <Col id="testnm"/>
- <Col id="mtestcd"/>
- <Col id="testamt"/>
- <Col id="todd"/>
- <Col id="fromdd"/>
- <Col id="oldtodd"/>
- <Col id="oldfromdd"/>
- <Col id="changeoldtodd"/>
- <Col id="lastupdtrid"/>
- <Col id="lastupdtdt"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_pkgcdlst_item1" 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="healexamdetlflag" type="STRING" size="256"/>
- <Column id="pkgflag" type="STRING" size="256"/>
- <Column id="pkgcdkey" type="STRING" size="256"/>
- <Column id="pkgcd" type="STRING" size="256"/>
- <Column id="oldordcd" type="STRING" size="256"/>
- <Column id="pkgnm" type="STRING" size="256"/>
- <Column id="pkgengnm" type="STRING" size="256"/>
- <Column id="pkgamt" type="STRING" size="256"/>
- <Column id="calcscorcd" type="STRING" size="256"/>
- <Column id="calcscornm" type="STRING" size="256"/>
- <Column id="brthareacnts" type="STRING" size="256"/>
- <Column id="gndrflag" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="uncoflag" type="STRING" size="256"/>
- <Column id="earnclslst" type="STRING" size="256"/>
- <Column id="pkgsumearncls" type="STRING" size="256"/>
- <Column id="remcnts" type="STRING" size="256"/>
- <Column id="lastupdtrid" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="pkgdesc" type="STRING" size="256"/>
- <Column id="discyn" type="STRING" size="256"/>
- <Column id="inetyn" type="STRING" size="256"/>
- <Column id="hrmfctr" type="STRING" size="256"/>
- <Column id="cycle" type="STRING" size="256"/>
- <Column id="prntseq" type="STRING" size="256"/>
- <Column id="earnclscd" type="STRING" size="256"/>
- <Column id="dietconstyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="seq"/>
- <Col id="healexamdetlflag"/>
- <Col id="pkgflag"/>
- <Col id="pkgcdkey"/>
- <Col id="pkgcd"/>
- <Col id="oldordcd"/>
- <Col id="pkgnm"/>
- <Col id="pkgengnm"/>
- <Col id="pkgamt"/>
- <Col id="calcscorcd"/>
- <Col id="calcscornm"/>
- <Col id="brthareacnts"/>
- <Col id="gndrflag"/>
- <Col id="useyn"/>
- <Col id="uncoflag"/>
- <Col id="earnclslst"/>
- <Col id="pkgsumearncls"/>
- <Col id="remcnts"/>
- <Col id="lastupdtrid"/>
- <Col id="lastupdtdt"/>
- <Col id="pkgdesc"/>
- <Col id="discyn"/>
- <Col id="inetyn"/>
- <Col id="hrmfctr"/>
- <Col id="cycle"/>
- <Col id="prntseq"/>
- <Col id="earnclscd"/>
- <Col id="dietconstyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_savecalcscoredet_calcscore" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
- <Dataset id="ds_init_A0068" 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>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_A0070" 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>
- <Rows>
- <Row>
- <Col id="cdid"/>
- <Col id="cdnm"/>
- </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="srchhealexamflag" type="STRING" size="256"/>
- <Column id="srchhealexamdetlflag" type="STRING" size="256"/>
- <Column id="srchpkgflag" type="STRING" size="256"/>
- <Column id="srchpkgcd" type="STRING" size="256"/>
- <Column id="srchcdflag" type="STRING" size="256"/>
- <Column id="srchpkgnm" type="STRING" size="256"/>
- <Column id="srchuseyn" type="STRING" size="256"/>
- <Column id="pkgcd" type="STRING" size="256"/>
- <Column id="testcd" type="STRING" size="256"/>
- <Column id="mechdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchhealexamflag"/>
- <Col id="srchhealexamdetlflag"/>
- <Col id="srchpkgflag">P</Col>
- <Col id="srchpkgcd"/>
- <Col id="srchcdflag"/>
- <Col id="srchpkgnm"/>
- <Col id="srchuseyn"/>
- <Col id="pkgcd"/>
- <Col id="testcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_gndrflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">공통</Col>
- <Col id="value">C</Col>
- </Row>
- <Row>
- <Col id="label">남</Col>
- <Col id="value">M</Col>
- </Row>
- <Row>
- <Col id="label">여</Col>
- <Col id="value">F</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_pkgsumearncls" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="value" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">가정의학과</Col>
- <Col id="value">01</Col>
- </Row>
- <Row>
- <Col id="label">소화기내과</Col>
- <Col id="value">02</Col>
- </Row>
- <Row>
- <Col id="label">청소년 소아과</Col>
- <Col id="value">03</Col>
- </Row>
- <Row>
- <Col id="label">소아치과</Col>
- <Col id="value">04</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group6.cmb_healexamflag" propid="value" datasetid="ds_send" columnid="srchhealexamflag"/>
- <BindItem id="item1" compid="group6.cmb_srchhealexamdetlflag" propid="value" datasetid="ds_send" columnid="srchhealexamdetlflag"/>
- <BindItem id="item2" compid="group6.ipt_srchpkgcd" propid="value" datasetid="ds_send" columnid="srchpkgcd"/>
- <BindItem id="item3" compid="group6.ipt_srchpkgnm" propid="value" datasetid="ds_send" columnid="srchpkgnm"/>
- <BindItem id="item4" compid="group6.chk_useyn" propid="value" datasetid="ds_send" columnid="srchuseyn"/>
- <BindItem id="item5" compid="ipt_mechddpkg" propid="value" datasetid="ds_send" columnid="mechdd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-12-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_commonxp::AST.xjs";
- include "ast_healexamxp::AHA001.xjs";
- include "mis_miscommonxp::MIS.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 패키지 조회
- ****************************************************************************************/
- function call_TRAHB00301() {
- var oParam = {};
- oParam.id = "TRAHB00301";
- oParam.service = "healexambaseapp.PkgCode";
- oParam.method = "reqGetPkgList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_pkgcdlst_item1=item";
- oParam.async = false;
- oParam.callback = "cf_TRAHB00301";
- tranf_submit(oParam);
- }
- function cf_TRAHB00301(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 컨트롤 초기화
- ****************************************************************************************/
- function fInitCtrl(bAll){
- if(bAll == true){
- ds_main_pkgcdlst_item1.clearData();
- }
- ds_main_calcscorelst_calcscore.clearData();
- ds_main_calcscoredetlst_calcscore.clearData();
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 선택된 건진 구분을 가져온다.
- ****************************************************************************************/
- function fGetHealExamFg(){
- return ds_send.getColumn(0, "srchhealexamflag");
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 선택된 건진 상세구분을 가져온다.
- ****************************************************************************************/
- function fGetHealExamDetlFg(){
- return ds_send.getColumn(0, "srchhealexamdetlflag");
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 건진상세구분바꾸기
- ****************************************************************************************/
- function fSetHealExamDetlFlag(){
- ds_init_A0069.clearData();
- ds_init_A0070.clearData();
- var vItem = "";
- var vHealexamflag = fGetHealExamFg();
- if(vHealexamflag == "C"){
- vItem = "A0069";
- }else{
- vItem = "A0070"; //일반건진
- }
- var arrParam = [{dsNm: "ds_init_"+vItem, cdGrpId: vItem}]
- appf_getCodeList(arrParam);
-
- grd_pkglst.setCellProperty("body", grd_pkglst.getBindCellIndex("body","healexamdetlflag"), "combodataset", "ds_init_"+vItem);
- group6.cmb_srchhealexamdetlflag.innerdataset = "ds_init_"+vItem;
- group6.cmb_srchhealexamdetlflag.index = 0;
- frmf_inputEnterKey("group6.cmb_srchhealexamdetlflag", "onitemchanged", new ItemChangeEventInfo );
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 패키지 내역 조회
- ****************************************************************************************/
- function fGetPkgList(){
- fInitCtrl(true);
-
- var vHealexamflag = fGetHealExamFg();
- if(utlf_isNull(vHealexamflag)) return false;
- ds_send.setColumn( 0, "srchhealexamflag" , vHealexamflag);
- ds_send.setColumn( 0, "srchhealexamdetlflag" , group6.cmb_srchhealexamdetlflag.value);
-
- call_TRAHB00301();
-
- if(arErrorCode.pop("TRAHB00301") > -1) return true;
- else return false;
- }
-
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 패키지 수가조회
- ****************************************************************************************/
- function fGetCalcScore(){
- fInitCtrl(false);
- var idx = ds_main_pkgcdlst_item1.rowposition;
- if(idx < 0) return;
- var vHealexamflag = fGetHealExamFg();
- var vPkgcd = ds_main_pkgcdlst_item1.getColumn(idx, "pkgcdkey");
- if(utlf_isNull(vHealexamflag) || utlf_isNull(vPkgcd)) return;
- ds_send.setColumn( 0, "srchhealexamflag" , vHealexamflag);
- ds_send.setColumn( 0, "pkgcd" , vPkgcd);
- var ret = false;
- dsf_createDsRow("ds_req", [
- {col:"srchhealexamflag", type:"STRING", size:256, val:ds_send.getColumn(0,"srchhealexamflag")}
- , {col:"srchpkgflag", type:"STRING", size:256, val:ds_send.getColumn(0,"srchpkgflag")}
- , {col:"srchpkgcd", type:"STRING", size:256, val:ds_send.getColumn(0,"pkgcd")}
- , {col:"mechdd", type:"STRING", size:256, val:ipt_mechdd.value}
- ]);
- var oParam = {};
- oParam.id = "TRAHB00310";
- oParam.service = "healexambaseapp.CalcScore";
- oParam.method = "reqGetPkgCalcScoreList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_calcscorelst_calcscore=calcscore";
- oParam.async = false;
- oParam.callback = "cf_TRAHB00310";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRAHB00310") > -1) ret = true;
- else ret = false;
-
- return ret;
- }
- function cf_TRAHB00310(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- ds_main_calcscorelst_calcscore.updatecontrol = false;
- ds_main_calcscorelst_calcscore.enableevent = false;
- ds_main_calcscorelst_calcscore.addColumn("oldfromdd","string");
- ds_main_calcscorelst_calcscore.addColumn("oldtodd","string");
- ds_main_calcscorelst_calcscore.addColumn("changeoldtodd","string");
- for(var i = 0 ; i < ds_main_calcscorelst_calcscore.rowcount ; i++) {
- ds_main_calcscorelst_calcscore.setColumn(i, "oldfromdd", ds_main_calcscorelst_calcscore.getColumn(i, "fromdd"));
- ds_main_calcscorelst_calcscore.setColumn(i, "oldtodd", ds_main_calcscorelst_calcscore.getColumn(i, "todd"));
- }
- ds_main_calcscorelst_calcscore.enableevent = true;
- ds_main_calcscorelst_calcscore.updatecontrol = true;
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 패키지 상세내역 상태변경
- ****************************************************************************************/
- function fSetStatCalcScore(){
- var idx = ds_main_calcscorelst_calcscore.rowcount;
- if(idx < 1) return;
- for(var i = 0; i < ds_main_calcscorelst_calcscore.rowcount; i++) {
- var testcd = ds_main_calcscorelst_calcscore.getColumn( i , "testcd");
- var mtestcd = ds_main_calcscorelst_calcscore.getColumn( i , "mtestcd");
- if(testcd != mtestcd){
- grdf_setStatus(grd_calcscorelst, "I", [i]);
- //misfSetGridColor(grd_calcscorelst, "all", "#F6B7B9", "B", i);
- }
- }
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 패키지검사 가격 총계_2011.09.02 By 김금련
- ****************************************************************************************/
- function fSetRcptSum() {
- // grd_calcscorelst.subtotalPosition = "below";
- // grd_calcscorelst.subtotal("clear", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:center", 4, "총계" );
- //
- // for(var i=0; i < grd_calcscorelst.cols; i++){
- // if(i == grd_calcscorelst.colRef("testamt")){
- // grd_calcscorelst.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold; text-align:right", 4, "총계" );
- // }
- // }
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 수가이력 조회
- ****************************************************************************************/
- function fGetCalcScoreDet(){
- ds_main_calcscoredetlst_calcscore.clearData();
- var idx = ds_main_calcscorelst_calcscore.rowposition;
- if(idx < 0) return;
- var vHealexamflag = fGetHealExamFg();
- var vPkgcd = ds_main_calcscorelst_calcscore.getColumn(idx, "pkgcd");
- var vTestcd = ds_main_calcscorelst_calcscore.getColumn(idx, "testcd");
- if(utlf_isNull(vHealexamflag) || utlf_isNull(vPkgcd)) return;
- ds_send.setColumn( 0, "srchhealexamflag" , vHealexamflag);
- ds_send.setColumn( 0, "pkgcd" , vPkgcd);
- ds_send.setColumn( 0, "testcd" , vTestcd);
- var ret = false;
- dsf_createDsRow("ds_req", [
- {col:"srchhealexamflag", type:"STRING", size:256, val:ds_send.getColumn(0, "srchhealexamflag")}
- , {col:"srchpkgflag", type:"STRING", size:256, val:ds_send.getColumn(0, "srchpkgflag")}
- , {col:"srchpkgcd", type:"STRING", size:256, val:ds_send.getColumn(0, "pkgcd")}
- , {col:"srchtestcd", type:"STRING", size:256, val:ds_send.getColumn(0, "testcd")}
- ]);
- var oParam = {};
- oParam.id = "TRAHB00311";
- oParam.service = "healexambaseapp.CalcScore";
- oParam.method = "reqGetCalcScoreList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_calcscoredetlst_calcscore=calcscore";
- oParam.async = false;
- oParam.callback = "cf_TRAHB00311";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRAHB00311") > -1) ret = true;
- else ret = false;
- return ret;
- }
- function cf_TRAHB00311(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
-
- ds_main_calcscoredetlst_calcscore.updatecontrol = false;
- ds_main_calcscoredetlst_calcscore.addColumn("oldfromdd","string");
- ds_main_calcscorelst_calcscore.addColumn("oldtodd","string");
- ds_main_calcscoredetlst_calcscore.addColumn("oldtodd","string");
- for(var i = 0 ; i < ds_main_calcscoredetlst_calcscore.rowcount ; i++) {
- ds_main_calcscoredetlst_calcscore.setColumn(i, "oldfromdd", ds_main_calcscoredetlst_calcscore.getColumn(i, "fromdd"));
- ds_main_calcscoredetlst_calcscore.setColumn(i, "oldtodd", ds_main_calcscoredetlst_calcscore.getColumn(i, "todd"));
- }
- ds_main_calcscoredetlst_calcscore.updatecontrol = true;
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAHB00310_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- //grdf_initGrid(grd_XXX);
- //grdf_setGridSort(grd_XXX);
- grdf_setRowTypeIcon(grd_pkglst, 0);
- grdf_setRowTypeIcon(grd_calcscorelst, 0);
- grdf_setRowTypeIcon(grd_calcscoredetlst, 0);
- grdf_setToolTipBind(grd_pkglst);
- grdf_setToolTipBind(grd_calcscorelst);
- grdf_setToolTipBind(grd_calcscoredetlst);
-
- ds_init_A0067.clearData();
- ds_init_A0068.clearData();
- ds_init_A0069.clearData();
- ds_init_A0070.clearData();
- var vHeFgLen = fGetHealExamFlag().length;
- var vHeFg = fGetHealExamFlag();
- var vHeFgCd = "";
- if( vHeFg.substr(0, 1) == "C" ){
- vHeFgCd = "A0069";
- }else{
- vHeFgCd = "A0070";
- }
- //공통코드 콤보 호출
- var arrParam = [{dsNm: "ds_init_A0067", cdGrpId: "A0067"}
- ,{dsNm: "ds_init_A0068", cdGrpId: "A0068"}
- ,{dsNm: "ds_init_A0069", cdGrpId: "A0069"}
- ,{dsNm: "ds_init_A0070", cdGrpId: "A0070"}
- ,{dsNm: "ds_init_A0435", cdGrpId: "A0435"}
- ,{dsNm: "ds_init_A0465", cdGrpId: "A0465"}
- ];
- appf_getCodeList(arrParam);
- grd_pkglst.setCellProperty("body", grd_pkglst.getBindCellIndex("body","healexamdetlflag"), "combodataset", "ds_init_"+vHeFgCd);
- group6.cmb_srchhealexamdetlflag.innerdataset = "ds_init_"+vHeFgCd;
-
- fInitCtrl(true); //초기화
- group6.cmb_healexamflag.value = vHeFg.substr(0,1);
- //종건, 일건 구분
- if(vHeFgLen == 1){
- group6.cmb_srchhealexamdetlflag.value = vHeFg + "01";
- }else{
- group6.cmb_srchhealexamdetlflag.value = vHeFg;
- }
-
- ipt_mechddpkg.value = utlf_getCurrentDate(); //패키지코드 조회기준일
- ipt_mechdd.value = utlf_getCurrentDate(); //수가정보 조회기준일
- fGetPkgList(); //조회
- }
- /****************************************************************************************
- * Components : Combo
- * Description : 건진구분 변경
- ****************************************************************************************/
- function group6_cmb_healexamflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- fSetHealExamDetlFlag();
- }
- /****************************************************************************************
- * Components : Combo
- * Description : 건진상세분류 변경
- ****************************************************************************************/
- function group6_cmb_srchhealexamdetlflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
- fGetPkgList();
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 패키지코드 입력 후 조회
- ****************************************************************************************/
- function group6_ipt_srchpkgcd_onkeyup(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group6.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 명칭입력 후 조회
- ****************************************************************************************/
- function group6_ipt_srchpkgnm_onkeyup(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- group6.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function group6_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fGetPkgList();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 패키지 펼치기 / 접기
- ****************************************************************************************/
- function btn_grdsize_onclick(obj:Button, e:ClickEventInfo) {
- if(obj.text == "펼치기"){
- obj.text = "줄이기";
- grd_pkglst.position.width = parseInt(grd_pkglst.position.width) + parseInt(grd_calcscorelst.position.width) + parseInt(grd_calcscoredetlst.position.width);
- }else{
- obj.text = "펼치기";
- grd_pkglst.position.width = parseInt(grd_pkglst.position.width) - parseInt(grd_calcscorelst.position.width) - parseInt(grd_calcscoredetlst.position.width);
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 패키지 엑셀저장
- ****************************************************************************************/
- function btn_excsave1_onclick(obj:Button, e:ClickEventInfo) {
- if( ds_main_pkgcdlst_item1.rowcount > 0 ){
- grdf_exportExcel(grd_pkglst, "SheetName", "SheetName", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 수가정보 엑셀저장
- ****************************************************************************************/
- function button5_onclick(obj:Button, e:ClickEventInfo) {
- if( ds_main_calcscorelst_calcscore.rowcount > 0 ){
- grdf_exportExcel(grd_calcscorelst, "SheetName", "SheetName", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 수가정보 선택
- ****************************************************************************************/
- function grd_calcscorelst_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if(e.row > -1){
- fGetCalcScoreDet(); //수가이력 조회
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 이력정보 행추가
- ****************************************************************************************/
- function btn_grdadd_onclick(obj:Button, e:ClickEventInfo) {
- var nRow = ds_main_calcscoredetlst_calcscore.addRow();
- var vHealexamflag = fGetHealExamFg();
- var vHealExamDetlFlag = fGetHealExamDetlFg();
- var vPkgcd = ds_main_calcscorelst_calcscore.getColumn(ds_main_calcscorelst_calcscore.rowposition, "pkgcd");
- var vTestcd = ds_main_calcscorelst_calcscore.getColumn(ds_main_calcscorelst_calcscore.rowposition, "testcd");
- ds_main_calcscoredetlst_calcscore.setColumn( nRow, "healexamflag" , vHealexamflag);
- ds_main_calcscoredetlst_calcscore.setColumn( nRow, "pkgcd" , vPkgcd);
- ds_main_calcscoredetlst_calcscore.setColumn( nRow, "testcd" , vTestcd);
- grd_calcscoredetlst.setFocus();
- grd_calcscoredetlst.setCellPos(4);
- grd_calcscoredetlst.showEditor(true);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 이력정보 행삭제
- ****************************************************************************************/
- function btn_grddel_onclick(obj:Button, e:ClickEventInfo) {
- var objGrd = grd_calcscoredetlst;
- var selectedRows = grdf_getSelectedRows(objGrd);
- for (var i = selectedRows.length-1; i >= 0; i--){
- if( objects[objGrd.binddataset].getRowType(selectedRows[i]) == 2 ) {
- objects[objGrd.binddataset].deleteRow(selectedRows[i]);
- }else{
- grdf_setStatus(objGrd, "D", [selectedRows[i]]);
- }
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 패키지 선택
- ****************************************************************************************/
- function grd_pkglst_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if(e.row > -1){
- fGetCalcScore(); //상세 수가 조회
- fSetStatCalcScore(); //상세 수가 상태변경
- fSetRcptSum(); //상세 패키지 단가 합계
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 수가정보 저장
- ****************************************************************************************/
- function group4_btn_save_onclick(obj:Button, e:ClickEventInfo) {
- if(sysf_messageBox("수가 정보를","Q002") == 6){
- var new_fromdd = ""; //신규_적용일자
- var new_todd = ""; //신규_종료일자
- var old_fromdd = ""; //과거_적용일자
- var change_oldtodd = ""; //기존자료_종료일자
- for(var i = 0; i < ds_main_calcscorelst_calcscore.rowcount; i++){
- //상태 - 입력, 수정, 삭제
- if(ds_main_calcscorelst_calcscore.getRowType(i) == 2 || ds_main_calcscorelst_calcscore.getRowType(i) == 4 || ds_main_calcscorelst_calcscore.getRowType(i) == 8){
- new_fromdd = utlf_transNullToEmpty(ds_main_calcscorelst_calcscore.getColumn( i , "fromdd"));
- new_todd = utlf_transNullToEmpty(ds_main_calcscorelst_calcscore.getColumn( i , "todd"));
- old_fromdd = utlf_transNullToEmpty(ds_main_calcscorelst_calcscore.getColumn( i , "oldfromdd"));
- //상태 - 수정
- if(ds_main_calcscorelst_calcscore.getRowType(i) == 4){
- //20190805 이력정리 후 다시 넣는걸로 결정
- /*if(new_fromdd <= old_fromdd){
- sysf_messageBox("새로 적용할 일자는 원래적용일자보다 커야합니다. 적용일자를 확인해주십시요!", "E999");
- return;
- }*/
- if(new_fromdd >= new_todd ){
- sysf_messageBox("종료일자가 시작일자 보다 이전이거나 같습니다.", "E999");
- return;
- }
- //20190805 이력정리 후 다시 넣는걸로 결정
- /*if(new_todd < utlf_getCurrentDate()){
- sysf_messageBox("종료일자가 오늘일자 보다 이전이거나 같습니다.", "E999");
- return;
- }*/
- }
- //위에서 기존자료 종료일 받아서 새로운 수가에 시작일로 박아줌
- var thisYear = new_fromdd.substring(0, 4); //현재 입력된 연
- var thisMonth = new_fromdd.substring(4, 6); //현재 입력된 월
- var thisDay = new_fromdd.substring(6, 8); //현재 입력된 일
- var preDate = new Date(thisYear, (thisMonth - 1), thisDay);
- preDate.setHours(-24); //24시간 뒤인 다음날 날짜를 구한다.
- change_oldtodd = "";
- change_oldtodd += preDate.getYear();
- if((preDate.getMonth() + 1) < 10){
- change_oldtodd += "0" + (preDate.getMonth() + 1);
- }else {
- change_oldtodd += (preDate.getMonth() + 1);
- }
- if(preDate.getDate() < 10){
- change_oldtodd += "0" + preDate.getDate();
- }else{
- change_oldtodd += preDate.getDate();
- }
- ds_main_calcscorelst_calcscore.setColumn(i, "changeoldtodd", change_oldtodd);
- }
- }
- //기존자료 종료처리, 새로운 자료 등록
-
- var dsUpdate = grdf_getGridUpdateData(grd_calcscorelst, "all");
- grdf_setStatusColumn(dsUpdate, "m");
- ds_savecalcscore_calcscore.copyData(dsUpdate, true);
- var oParam = {};
- oParam.id = "TXAHB00311";
- oParam.service = "healexambaseapp.CalcScore";
- oParam.method = "reqExeCalcScore";
- oParam.inds = "req=ds_savecalcscore_calcscore";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- //oParam.typeStr = "m"
- oParam.callback = "cf_TXAHB00311";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXAHB00311") > -1){
- fGetCalcScore(); //상세 수가 조회
- fSetStatCalcScore(); //상세 수가 상태변경
- fSetRcptSum(); //상세 패키지 단가 합계
- }
- }
- }
- function cf_TXAHB00311(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- /****************************************************************************************
- * Components : Button
- * Description : 이력정보 저장
- ****************************************************************************************/
- function group4_btn_detlsave_onclick(obj:Button, e:ClickEventInfo) {
- if(sysf_messageBox("이력 정보를","Q002") == 6){
- var grd_pkglstRow = ds_main_pkgcdlst_item1.rowposition;
- var grd_calcscorelstRow = ds_main_calcscorelst_calcscore.rowposition;
-
-
- var oParam = {};
- oParam.id = "TXAHB00312";
- oParam.service = "healexambaseapp.CalcScore";
- oParam.method = "reqExeCalcScoreDet";
- oParam.inds = "req=ds_main_calcscoredetlst_calcscore:U";
- oParam.outds = "ds_hidden=item";
- oParam.async = false;
- oParam.typeStr = "m"
- oParam.callback = "cf_TXAHB00312";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXAHB00312") > -1){
- ds_main_pkgcdlst_item1.rowposition = grd_pkglstRow;
- fGetCalcScore(); //상세 수가 조회
- fSetStatCalcScore(); //상세 수가 상태변경
- fSetRcptSum(); //상세 패키지 단가 합계
- ds_main_calcscorelst_calcscore.rowposition = grd_calcscorelstRow;
- fGetCalcScoreDet(); //수가이력 조회
- }
- }
- }
- function cf_TXAHB00312(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function group6_chk_useyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- if(obj.value == false) ds_send.setColumn(0, "srchuseyn", "");
- }
- function ds_main_calcscorelst_calcscore_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- fSetRcptSum();
- }
- function ds_main_calcscoredetlst_calcscore_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- fSetRcptSum();
- }
- function btn_update_onclick(obj:Button, e:ClickEventInfo)
- {
- for(var i = 0; i < ds_main_calcscorelst_calcscore.rowcount; i++){
- ds_main_calcscorelst_calcscore.setColumn(i, "fromdd", ipt_upfromdd.value);
- ds_main_calcscorelst_calcscore.setColumn(i, "todd", ipt_uptodd.value);
- }
- }
- function ipt_mechddpkg_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- group6.btn_search.onclick.fireEvent(group6.btn_search, new ClickEventInfo());
- }
- function ipt_mechdd_onchanged(obj:Calendar, e:ChangeEventInfo)
- {
- fGetCalcScore(); //상세 수가 조회
- fSetStatCalcScore(); //상세 수가 상태변경
- fSetRcptSum(); //상세 패키지 단가 합계
- }
- ]]></Script>
- </Form>
- </FDL>
|