1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMND01800" position="absolute 0 0 1180 729" titletext="투석자리생성" onload="SMMND01800_onload">
- <Layouts>
- <Layout>
- <Div id="grp_tle" position="absolute 0 0 1179 25" style="" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption43" class="tit_1" position="absolute 0 0 125 23" style="" text="투석자리생성" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_biz" scrollbars="autoboth" position="absolute 0 18 1180 729" style="" anchor="all">
- <Layouts>
- <Layout>
- <Grid id="grd_choiposinfo" binddataset="ds_main_choiposlist_choiposinfo" position="absolute 399 92 695 256" style="" anchor="default" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="137"/>
- <Column size="156"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="구역"/>
- <Cell col="1" text="자리수"/>
- </Band>
- <Band id="body">
- <Cell text="bind:section"/>
- <Cell col="1" displaytype="combo" edittype="combo" text="bind:poscont" combodataset="ds_init_poscont" combocodecol="value" combodatacol="label"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="roundrect5" anchor="right bottom" type="roundrectangle" position="absolute 704 662 1180 711" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
- <Grid id="grd_mngtposinfo" binddataset="ds_main_mngtposlist_mngtposinfo" position="absolute 704 92 1180 656" style="align:center ;" oncellclick="grp_biz_grd_mngtposinfo_oncellclick" anchor="all" selecttype="cell" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="96"/>
- <Column size="0"/>
- <Column size="94"/>
- <Column size="0"/>
- <Column size="95"/>
- <Column size="0"/>
- <Column size="95"/>
- <Column size="0"/>
- <Column size="94"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="status"/>
- <Cell col="1" text="A"/>
- <Cell col="2" text="dialkindcd1"/>
- <Cell col="3" text="B"/>
- <Cell col="4" text="dialkindcd2"/>
- <Cell col="5" text="C"/>
- <Cell col="6" text="dialkindcd3"/>
- <Cell col="7" text="D"/>
- <Cell col="8" text="dialkindcd4"/>
- <Cell col="9" text="E"/>
- <Cell col="10" text="dialkindcd5"/>
- <Cell col="11" text="적용일자"/>
- <Cell col="12" text="dialtodt"/>
- <Cell col="13" text="instcd"/>
- </Band>
- <Band id="body">
- <Cell text="bind:status"/>
- <Cell col="1" style="background:EXPR(getColumn(currow, 'dialkindcd_1') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_1') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_1') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_1') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_1') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_1') == '6' ? '#ccecff' : 'white'))))));background2:EXPR(getColumn(currow, 'dialkindcd_1') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_1') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_1') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_1') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_1') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_1') == '6' ? '#ccecff' : 'white'))))));" text="bind:dialseatflag_1"/>
- <Cell col="2" text="bind:dialkindcd_1"/>
- <Cell col="3" style="background:EXPR(getColumn(currow, 'dialkindcd_2') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_2') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_2') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_2') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_2') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_2') == '6' ? '#ccecff' : 'white'))))));background2:EXPR(getColumn(currow, 'dialkindcd_2') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_2') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_2') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_2') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_2') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_2') == '6' ? '#ccecff' : 'white'))))));" text="bind:dialseatflag_2"/>
- <Cell col="4" text="bind:dialkindcd_2"/>
- <Cell col="5" style="background:EXPR(getColumn(currow, 'dialkindcd_3') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_3') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_3') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_3') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_3') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_3') == '6' ? '#ccecff' : 'white'))))));background2:EXPR(getColumn(currow, 'dialkindcd_3') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_3') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_3') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_3') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_3') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_3') == '6' ? '#ccecff' : 'white'))))));" text="bind:dialseatflag_3"/>
- <Cell col="6" text="bind:dialkindcd_3"/>
- <Cell col="7" style="background:EXPR(getColumn(currow, 'dialkindcd_4') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_4') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_4') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_4') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_4') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_4') == '6' ? '#ccecff' : 'white'))))));background2:EXPR(getColumn(currow, 'dialkindcd_4') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_4') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_4') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_4') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_4') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_4') == '6' ? '#ccecff' : 'white'))))));" text="bind:dialseatflag_4"/>
- <Cell col="8" text="bind:dialkindcd_4"/>
- <Cell col="9" style="background:EXPR(getColumn(currow, 'dialkindcd_5') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_5') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_5') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_5') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_5') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_5') == '6' ? '#ccecff' : 'white'))))));background2:EXPR(getColumn(currow, 'dialkindcd_5') == '1' ? '#fcd2c1' : (getColumn(currow, 'dialkindcd_5') == '2' ? '#00ccff' : ( getColumn(currow, 'dialkindcd_5') == '3' ? '#fec34d' : ( getColumn(currow, 'dialkindcd_5') == '4' ? '#ff0000' : ( getColumn(currow, 'dialkindcd_5') == '5' ? '#fef392' : ( getColumn(currow, 'dialkindcd_5') == '6' ? '#ccecff' : 'white'))))));" text="bind:dialseatflag_5"/>
- <Cell col="10" text="bind:dialkindcd_5"/>
- <Cell col="11" text="bind:appdd"/>
- <Cell col="12" text="bind:dialtodt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button18" class="btn2" position="absolute 597 67 639 87" style="" text="생성" onclick="grp_biz_button18_onclick" anchor="default"/>
- <Shape id="roundrect6" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 720 671 798 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
- <Shape id="line22" class="line_1" linetype="horizontal" position="absolute 399 88 695 92" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <Shape id="roundrect10" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 1027 671 1095 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
- <Shape id="roundrect7" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 802 671 880 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
- <Static id="caption42" class="color_2" position="absolute 1071 678 1086 693" style="align: middle;" anchor="right bottom"/>
- <Shape id="line23" class="line_1" linetype="horizontal" position="absolute 704 88 1180 92" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Static id="caption31" class="tit_2" position="absolute 400 70 536 86" style="align: middle;" text="구역별 자리수 선택" anchor="default"/>
- <Shape id="roundrect11" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 1097 671 1165 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
- <Shape id="roundrect8" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 884 671 962 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
- <Static id="caption54" position="absolute 1106 678 1134 694" style="font:,,bold;align: middle;" text="기타" onclick="grp_biz_caption54_onclick" anchor="right bottom"/>
- <Static id="caption32" position="absolute 1032 679 1070 692" style="font:,,bold;align: middle;" text="VDRL" onclick="grp_biz_caption32_onclick" anchor="right bottom"/>
- <Shape id="line24" class="line_1" linetype="horizontal" position="absolute 0 26 393 30" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
- <Shape id="roundrect9" anchor="right bottom" visible="false" type="roundrectangle" position="absolute 965 671 1023 701" style="border: solid #7cbbdd #7cbbdd;background:transparent ;"/>
- <Static id="caption33" position="absolute 724 677 773 695" style="font:,,bold;align: middle;" text="HBsAg" onclick="grp_biz_caption33_onclick" anchor="right bottom"/>
- <Static id="caption56" class="color_5" position="absolute 1141 679 1156 694" style="align: middle;" anchor="right bottom"/>
- <Static id="caption34" position="absolute 807 679 852 693" style="font:,,bold;align: middle;" text="HBeAg" onclick="grp_biz_caption34_onclick" anchor="right bottom"/>
- <Grid id="grd_historyinfo" binddataset="ds_main_historylist_historyinfo" position="absolute 0 30 393 711" style="" oncellclick="grp_biz_grd_historyinfo_oncellclick" anchor="left top bottom" selecttype="multirow" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="123"/>
- <Column size="127"/>
- <Column size="91"/>
- </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="저장자"/>
- </Band>
- <Band id="body">
- <Cell style="background:#b2e6e1ff;background2:#b2e6e1ff;" expr="currow + 1"/>
- <Cell col="1" displaytype="date" text="bind:appdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="2" displaytype="date" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm" calendardisplaynulltype="nulltext"/>
- <Cell col="3" text="bind:usernm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="group4" position="absolute 398 26 1180 61" style="align: top;" anchor="left top right" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption29" class="search_name" position="absolute 16 9 102 26" style="" text="생성일자 :" anchor="default"/>
- <Button id="button17" class="btn1" position="absolute 598 8 654 28" style="" text="조회" onclick="grp_biz_group4_button17_onclick" anchor="default"/>
- <Shape id="line21" class="line_4" linetype="vertical" position="absolute 583 8 586 28" style="" anchor="default"/>
- <Calendar id="ipt_cretdd" class="input_search" position="absolute 105 8 195 27" style="" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Calendar id="ipt_appdd" class="input_s_essential" position="absolute 345 8 440 27" style="" anchor="default" onkillfocus="grp_biz_group4_ipt_appdd_onkillfocus" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
- <Static id="caption30" class="search_name" position="absolute 256 9 342 26" style="" text="적용일자 :" anchor="default"/>
- <Button id="button19" class="btn5" position="absolute 716 8 772 28" style="" text="저장" onclick="grp_biz_group4_button19_onclick" anchor="default"/>
- <Button id="button1" class="btn4" position="absolute 657 8 713 28" style="" text="삭제" onclick="grp_biz_group4_button1_onclick" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption35" position="absolute 891 678 940 694" style="font:,,bold;align: middle;" text="HCVAb" onclick="grp_biz_caption35_onclick" anchor="right bottom"/>
- <Button id="button20" class="btn2" position="absolute 642 67 695 87" style="" text="초기화" onclick="grp_biz_button20_onclick" anchor="default"/>
- <Static id="caption37" class="color_10" position="absolute 855 678 870 693" style="align: middle;" anchor="right bottom"/>
- <Static id="caption48" class="color_7" position="absolute 943 678 958 693" style="align: middle;" anchor="right bottom"/>
- <Static id="caption38" class="tit_2" position="absolute 704 70 814 86" style="align: middle;" text="투석자리 관리" anchor="default"/>
- <Static id="caption49" class="color_1" position="absolute 775 678 790 693" style="align: middle;" anchor="right bottom"/>
- <Static id="caption39" class="tit_2" position="absolute 0 8 71 24" style="align: middle;" text="History" anchor="default"/>
- <Edit id="opt_histappdd" class="output_fix" position="absolute 555 270 623 289" style="align:center ;" anchor="default" readonly="true" visible="false"/>
- <Edit id="opt_rsrvdd" class="output_fix" position="absolute 555 295 623 314" style="align:center ;" anchor="default" readonly="true" visible="false"/>
- <Static id="caption36" position="absolute 970 678 999 692" style="font:,,bold;align: middle;" text="HIV" onclick="grp_biz_caption36_onclick" anchor="right bottom"/>
- <Static id="caption52" position="absolute 999 678 1014 693" style="align: middle;background:#ff0000 ;" anchor="right bottom"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_mngtposlist_mngtposinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="dialseatflag_1" type="STRING" size="256"/>
- <Column id="dialkindcd_1" type="STRING" size="256"/>
- <Column id="dialseatflag_2" type="STRING" size="256"/>
- <Column id="dialkindcd_2" type="STRING" size="256"/>
- <Column id="dialseatflag_3" type="STRING" size="256"/>
- <Column id="dialkindcd_3" type="STRING" size="256"/>
- <Column id="dialseatflag_4" type="STRING" size="256"/>
- <Column id="dialkindcd_4" type="STRING" size="256"/>
- <Column id="dialseatflag_5" type="STRING" size="256"/>
- <Column id="dialkindcd_5" type="STRING" size="256"/>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="dialtodt" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="status"/>
- <Col id="dialseatflag_1"/>
- <Col id="dialkindcd_1"/>
- <Col id="dialseatflag_2"/>
- <Col id="dialkindcd_2"/>
- <Col id="dialseatflag_3"/>
- <Col id="dialkindcd_3"/>
- <Col id="dialseatflag_4"/>
- <Col id="dialkindcd_4"/>
- <Col id="dialseatflag_5"/>
- <Col id="dialkindcd_5"/>
- <Col id="appdd"/>
- <Col id="dialtodt"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_chklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_choiposlist_choiposinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="section" type="STRING" size="256"/>
- <Column id="poscont" type="STRING" size="256"/>
- <Column id="section" type="STRING" size="256"/>
- <Column id="poscont" type="STRING" size="256"/>
- <Column id="section" type="STRING" size="256"/>
- <Column id="poscont" type="STRING" size="256"/>
- <Column id="section" type="STRING" size="256"/>
- <Column id="poscont" type="STRING" size="256"/>
- <Column id="section" type="STRING" size="256"/>
- <Column id="poscont" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="section">A</Col>
- <Col id="poscont"/>
- </Row>
- <Row>
- <Col id="section">B</Col>
- <Col id="poscont"/>
- </Row>
- <Row>
- <Col id="section">C</Col>
- <Col id="poscont"/>
- </Row>
- <Row>
- <Col id="section">D</Col>
- <Col id="poscont"/>
- </Row>
- <Row>
- <Col id="section">E</Col>
- <Col id="poscont"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_mngtposlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_choiposlist" 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>
- <Column id="cretdd" type="STRING" size="256"/>
- <Column id="histappdd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="init"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_historylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_historylist_historyinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- <Column id="usernm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="appdd"/>
- <Col id="lastupdtdt"/>
- <Col id="usernm"/>
- </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="reqdata" type="STRING" size="256"/>
- <Column id="savedata" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="reqdata"/>
- <Col id="savedata"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_chklist_chkinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="rsrvdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="rsrvdd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="appdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="appdd"/>
- </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>
- <Rows>
- <Row>
- <Col id="hidden"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="temp" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_poscont" 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">0</Col>
- </Row>
- <Row>
- <Col id="label">1</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">2</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">3</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">4</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">5</Col>
- <Col id="value">5</Col>
- </Row>
- <Row>
- <Col id="label">6</Col>
- <Col id="value">6</Col>
- </Row>
- <Row>
- <Col id="label">7</Col>
- <Col id="value">7</Col>
- </Row>
- <Row>
- <Col id="label">8</Col>
- <Col id="value">8</Col>
- </Row>
- <Row>
- <Col id="label">9</Col>
- <Col id="value">9</Col>
- </Row>
- <Row>
- <Col id="label">10</Col>
- <Col id="value">10</Col>
- </Row>
- <Row>
- <Col id="label">11</Col>
- <Col id="value">11</Col>
- </Row>
- <Row>
- <Col id="label">12</Col>
- <Col id="value">12</Col>
- </Row>
- <Row>
- <Col id="label">13</Col>
- <Col id="value">13</Col>
- </Row>
- <Row>
- <Col id="label">14</Col>
- <Col id="value">14</Col>
- </Row>
- <Row>
- <Col id="label">15</Col>
- <Col id="value">15</Col>
- </Row>
- <Row>
- <Col id="label">16</Col>
- <Col id="value">16</Col>
- </Row>
- <Row>
- <Col id="label">17</Col>
- <Col id="value">17</Col>
- </Row>
- <Row>
- <Col id="label">18</Col>
- <Col id="value">18</Col>
- </Row>
- <Row>
- <Col id="label">19</Col>
- <Col id="value">19</Col>
- </Row>
- <Row>
- <Col id="label">20</Col>
- <Col id="value">20</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.group4.ipt_cretdd" propid="value" datasetid="ds_main" columnid="cretdd"/>
- <BindItem id="item1" compid="grp_biz.group4.ipt_appdd" propid="value" datasetid="ds_main_condition" columnid="appdd"/>
- <BindItem id="item2" compid="grp_biz.opt_histappdd" propid="value" datasetid="ds_main" columnid="histappdd"/>
- <BindItem id="item3" compid="grp_biz.opt_rsrvdd" propid="value" datasetid="ds_main_chklist_chkinfo" columnid="rsrvdd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
- //include 'emr_dialroomxp::SMMND01800.xjs';
- include 'emr_carecomxp::CareCom.xjs';
- function SMMND01800_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(grp_biz.grd_choiposinfo);
- grdf_initGrid(grp_biz.grd_historyinfo);
- grdf_initGrid(grp_biz.grd_mngtposinfo);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- //그리드 초기화
- ds_main_historylist_historyinfo.clearData();
- ds_main_mngtposlist_mngtposinfo.clearData();
-
- ds_main.clearData();
- ds_main.addRow();
-
- //setHelp(); // 온라인 도움말 화면이 있는 경우 ready 에서 실행.
- fDone();
- fSelectHistory();
-
- fEtc();
- }
- // header파일 중 SMMND01800.js 파일 시작
- /*
- 투석자리생성 (SMMND01800.xrw - JScript )
- - Version :
- 1) : Ver.1.00.01
- */
- var selColor = "white";
- var selColor_Num = 0;
- var s1 = "";
- var crtChk = 'N';
- /**
- * _group :
- * _ver : 2007.04.04
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 전체 화면 초기화
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fDone(){
- // 생성일자, 적용일자 초기화
- var sDate = utlf_getCurrentDate();
- var currentdate = new Date();
- ds_main.setColumn( 0, "cretdd" , sDate );
- dsf_makeValue( ds_main_condition, "appdd", "string", (currentdate.getAddDate(1, "D")).getDateFormat());
- //grd_choiposinfo 초기화
- for(i = 0; i < ds_main_choiposlist_choiposinfo.rowcount;i++){
- ds_main_choiposlist_choiposinfo.setColumn(i, "poscont", 0); // grp_biz.grd_choiposinfo.textMatrix(i,1) = 0;
- }
- //model.refresh();
- }
- /**
- * _group :
- * _ver : 2007.06.27
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 적용일자 체크 (오늘 이전 적용일자 설정 금지)
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fChkAppdd(){
- var sSelDate = ds_main_condition.getColumn(0, "appdd");
- var currentdate = new Date();
- if(sSelDate <= utlf_getCurrentDate()) {
- sysf_messageBox("적용일자를 오늘 이전으로 설정", "E001", "적용일자를 다시 입력하세요.");
- ds_main_condition.setColumn( 0, "appdd", (currentdate.getAddDate(1, "D")).getDateFormat());
- return;
- }
- fChkRsrvPat(); // 적용일자에 예약환자 존재 여부 확인
- var rsrvdd = utlf_transNullToEmpty(ds_main_chklist_chkinfo.getColumn(0, "rsrvdd"));
- trace("rsrvdd : " + rsrvdd);
- if(rsrvdd != "") { // 해당 적용일자에 예약환자 있음.
- //sysf_messageBox("적용일자에 예약환자가 존재합니다.", "E");
- var sMsg = sysf_messageBox("적용일자에 예약환자가 존재합니다.", "S", "HD Scheduling화면으로 이동하시겠습니까?");
- if( sMsg == 6) { //return : yes=6, no=7, 취소=2
- frmf_modal("SMMND01100", "SMMND01100", "", "", "", "1", "1", "", "", "", "", "", "M");
- }
- else {
- fPosinfoinit();
- return;
- }
- }
- }
- /**
- * _group :
- * _ver : 2007.07.07
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 적용일자에 예확환자 존재 여부 확인
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fChkRsrvPat(){
- ds_send_reqdata.clearData();
- dsf_makeValue( ds_send_reqdata, "appdd", "string", ds_main_condition.getColumn(0, "appdd"));
- ds_main_chklist_chkinfo.clearData();
-
- //submit("TRMND01803");
- var oParam = {};
- oParam.id = "TRMND01803";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "getAppdd";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_chklist_chkinfo=chkinfo";
- oParam.async = false;
- tranf_submit(oParam);
-
- }
- /**
- * _group :
- * _ver : 2007.04.11
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : grd_historyinfo 조회
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fSelectHistory(){
- // submit("TRMND01802");
- var instcd = sysf_getUserInfo("dutplceinstcd");
- dsf_makeValue(ds_send, "instcd", "string", instcd );
-
- var oParam = {};
- oParam.id = "TRMND01802";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqGetHistInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_historylist_historyinfo=historyinfo";
- oParam.async = false;
- tranf_submit(oParam);
- }
- /**
- * _group :
- * _ver : 2007.04.04
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : grd_mngtposinfo 생성
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fCreatePos(){
- var sPosValue_1 = ds_main_choiposlist_choiposinfo.getColumn(1, "poscont");
- var sPosValue_2 = ds_main_choiposlist_choiposinfo.getColumn(2, "poscont");
- var sPosValue_3 = ds_main_choiposlist_choiposinfo.getColumn(3, "poscont");
- var sPosValue_4 = ds_main_choiposlist_choiposinfo.getColumn(4, "poscont");
- var sPosValue_5 = ds_main_choiposlist_choiposinfo.getColumn(5, "poscont");
- if(sPosValue_1 == "0" && sPosValue_2 == "0" && sPosValue_3 =="0" && sPosValue_4 =="0" && sPosValue_5 =="0") {
- sysf_messageBox("구역별 자리수는", "I003", "하나이상의 자리수를 선택하십시오.");
- return;
- }
- if(ds_main_condition.getColumn(0, "appdd") == ""){
- var msg = sysf_messageBox("적용일자를", "C001", ""); //return : yes=6, no=7
- }
- else{
- //grd_mngtposinfo 초기화
- ds_main_mngtposlist_mngtposinfo.clearData();
- //grp_biz.grd_mngtposinfo.rebuild();
- // 가장 많은 자리수(max) 구하기
- var i, j, section, max=0;
- for(i = 0; i < ds_main_choiposlist_choiposinfo.rowcount; i++){
- if(max < parseInt(ds_main_choiposlist_choiposinfo.getColumn(i, "poscont"))){ //'1'
- max = parseInt(ds_main_choiposlist_choiposinfo.getColumn(i, "poscont"));
- }
- }
- // grd_mngtposinfo 그리기
- ds_main_mngtposlist_mngtposinfo.updatecontrol = false;
- ds_main_mngtposlist_mngtposinfo.enableevent = false;
- for(i=0; i < max; i++){
- ds_main_mngtposlist_mngtposinfo.addRow(); //grp_biz.grd_mngtposinfo.addRow(false);
- }
- ds_main_mngtposlist_mngtposinfo.updatecontrol = true;
- ds_main_mngtposlist_mngtposinfo.enableevent = true;
- //grp_biz.grd_mngtposinfo.refresh();
- //grd_mngtposinfo data넣기
- for(i = 0; i < parseInt( ds_main_choiposlist_choiposinfo.getColumn(0, "poscont") ); i++){ //grp_biz.grd_choiposinfo.textmatrix(1,1)
- if(i < 10){
- i = "0" + i;
- }
- //grp_biz.grd_mngtposinfo.textmatrix(i,1) = "A"+i;
- ds_main_mngtposlist_mngtposinfo.setColumn(i, "seq", i);
- ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_1", "A"+i);
- ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_2", "B"+i);
- ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_3", "C"+i);
- ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_4", "D"+i);
- ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_5", "E"+i);
- ds_main_mngtposlist_mngtposinfo.setColumn(i, "appdd", ds_main_condition.getColumn(0, "appdd"));
- ds_main_mngtposlist_mngtposinfo.setColumn(i, "status", "i");
- }
- // for(i = 0; i < parseInt(ds_main_choiposlist_choiposinfo.getColumn(1, "poscont")); i++){ //grp_biz.grd_choiposinfo.textmatrix(2,1)
- // if(i<10){
- // i = "0" + i;
- // }
- // //grp_biz.grd_mngtposinfo.textmatrix(i,3) = "B"+i;
- // ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_2", "B"+i);
- // }
- // for(i = 0; i < parseInt(ds_main_choiposlist_choiposinfo.getColumn(2, "poscont")); i++){ //grp_biz.grd_choiposinfo.textmatrix(3,1)
- // if(i<10){
- // i = "0" + i;
- // }
- // //grp_biz.grd_mngtposinfo.textmatrix(i,5) = "C"+i;
- // ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_3", "C"+i);
- // }
- // for(i = 0; i < parseInt(ds_main_choiposlist_choiposinfo.getColumn(3, "poscont")); i++){ //grp_biz.grd_choiposinfo.textmatrix(4,1)/
- // if(i<10){
- // i = "0" + i;
- // }
- // //grp_biz.grd_mngtposinfo.textmatrix(i,7) = "D"+i;
- // ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_4", "D"+i);
- // }
- // for(i = 0; i < parseInt(ds_main_choiposlist_choiposinfo.getColumn(4, "poscont")); i++){ //grp_biz.grd_choiposinfo.textmatrix(5,1)
- // if(i<10){
- // i = "0" + i;
- // }
- // //grp_biz.grd_mngtposinfo.textmatrix(i,9) = "E"+i;
- // ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialseatflag_5", "E"+i);
- // }
- // for(i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount ; i++){ //적용일자 지정 //grp_biz.grd_mngtposinfo.rows
- // ds_main_mngtposlist_mngtposinfo.setColumn(i, "appdd", ds_main_condition.getColumn(0, "appdd")); ////grp_biz.grd_mngtposinfo.textmatrix(i,11) = ds_main_condition.getColumn(0, "appdd");
- // }
- // for(i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount ; i++){ //state(insert) 지정
- // ds_main_mngtposlist_mngtposinfo.setColumn(i, "status", "i"); //grp_biz.grd_mngtposinfo.textmatrix(i,0) = "i";
- // }
- var chkFlag = "";
- for(var i = 0; i < ds_main_choiposlist_choiposinfo.rowcount; i++) {
- var sHistAppdd = ds_main_historylist_historyinfo.getColumn(i, "appdd");
- if(sHistAppdd == ds_main_condition.getColumn(0, "appdd")) {
- chkFlag = "Y";
- break;
- }
- }
- if(chkFlag == "") {
- for(i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount; i++){ //종료일자 지정 //grp_biz.grd_mngtposinfo.rows
- ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialtodt", "99991231") ; // grp_biz.grd_mngtposinfo.textmatrix(i,12) =
- }
- } else if(chkFlag == "Y") {
- for(i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount;i++){ //종료일자 지정 //grp_biz.grd_mngtposinfo.rows
- ds_main_mngtposlist_mngtposinfo.setColumn(i, "dialtodt", ds_main.getColumn(0, "histappdd") );
- }
- }
- // for(i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount;i++){ //구역지정 //grp_biz.grd_mngtposinfo.rows
- // ds_main_mngtposlist_mngtposinfo.setColumn(i, 13, "A"); //grp_biz.grd_mngtposinfo.textmatrix(i,13) = "A";
- // ds_main_mngtposlist_mngtposinfo.setColumn(i, 14, "B"); //grp_biz.grd_mngtposinfo.textmatrix(i,14) = "B";
- // ds_main_mngtposlist_mngtposinfo.setColumn(i, 15, "C"); //grp_biz.grd_mngtposinfo.textmatrix(i,15) = "C";
- // ds_main_mngtposlist_mngtposinfo.setColumn(i, 16, "D"); //grp_biz.grd_mngtposinfo.textmatrix(i,16) = "D";
- // ds_main_mngtposlist_mngtposinfo.setColumn(i, 17, "E"); //grp_biz.grd_mngtposinfo.textmatrix(i,17) = "E";
- // }
-
- crtChk = 'Y';
- }
- }
- /**
- * _group :
- * _ver : 2007.04.04
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : mngtposinfo 입력후 저장
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fInsertPos(){
- var sAppdd = ds_main_condition.getColumn(0, "appdd");
- var chkFlag = "";
- for(var i = 0; i < ds_main_choiposlist_choiposinfo.rowcount; i++) {
- var sHistAppdd = ds_main_historylist_historyinfo.getColumn(i, "appdd");
- if(sHistAppdd == sAppdd) {
- chkFlag = "Y";
- /*
- var sMsg = sysf_messageBox("동일 적용일자에 투석자리가 존재합니다.", "S", "수정하시겠습니까?");
- if( sMsg == 7 || sMsg == 2) { //return : yes=6, no=7, 취소=2
- fPosinfoinit(); // 초기화
- return;
- }
- */
- sysf_messageBox("동일 적용일자에 투석자리가 존재합니다.", "E");
- fPosinfoinit();
- return;
- }
- }
- if(chkFlag == "") {
- for(var i = 0; i < ds_main_choiposlist_choiposinfo.rowcount; i++) {
- var sHistAppdd = ds_main_historylist_historyinfo.getColumn(i, "appdd");
- if(sHistAppdd > sAppdd) {
- sysf_messageBox("적용일자 이후에 투석자리가 존재합니다.", "E", sAppdd+"일자의 투석자리를 생성 할 수 없습니다.");
- fPosinfoinit(); // 초기화
- return;
- }
- }
- }
- if(crtChk == 'N'){
- var msg = sysf_messageBox("구역별 자리수를", "C001", ""); //return : yes=6, no=7
- }else{
- fChkRsrvPat(); // 적용일자에 예약환자 존재 여부 확인
- var rsrvdd = utlf_transNullToEmpty(ds_main_chklist_chkinfo.getColumn(0, "rsrvdd"));
- trace("rsrvdd 2 : " + rsrvdd);
-
- if(rsrvdd != "") { // 해당 적용일자에 예약환자 있음.
- var sMsg = sysf_messageBox("예약환자가 존재합니다.", "S", "HD Scheduling화면으로 이동하시겠습니까?");
- if( sMsg == 6) { //return : yes=6, no=7, 취소=2
- frmf_modal("SMMND01100", "SMMND01100", "", "", "", "1", "1", "", "", "", "", "", "M");
- } else {
- ds_main_chklist_chkinfo.setColumn( 0, "rsrvdd", "");
- fPosinfoinit(); // 초기화
- return;
- }
- } else {
- for(i = 0; i< ds_main_mngtposlist_mngtposinfo.rowcount;i++){ //적용일자 지정
- ds_main_mngtposlist_mngtposinfo.setColumn( i, "appdd", ds_main_condition.getColumn(0, "appdd") );
- }
- ds_send_savedata.clearData();
- //dsf_makeValue( ds_send_savedata, "savedata", "string", grp_biz.grd_mngtposinfo.getupdatedataAll("i"));
- dsf_copyDs(ds_send_savedata, grdf_getGridUpdateData(grp_biz.grd_mngtposinfo),"replace");
-
- //submit("TXMND01801");
- var oParam = {};
- oParam.id = "TXMND01801";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqExeChoiposInfo";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "ds_main_mngtposlist_mngtposinfo=savedata";
- oParam.async = false;
- tranf_submit(oParam);
-
- dsf_makeValue(ds_main_mngtposlist_mngtposinfo, "status", "string", "");
- dsf_setDefaultVal(ds_main_mngtposlist_mngtposinfo, "all");
- var appdd = ds_main_condition.getColumn(0, "appdd");
- fSelectPos(appdd);
- fSelectHistory();
- crtChk = "N";
- var chk = "N"; //투석자리 저장 여부 확인
- for( i = 0; i < ds_main_mngtposlist_mngtposinfo.rowcount ;i++){
- if(ds_main_historylist_historyinfo.getColumn( i, "appdd") == ds_main_condition.getColumn(0, "appdd")){
- chk = "Y"; //투석자리 저장 성공
- break;
- }
- }
- if(chk == "Y"){
- sysf_messageBox("", "I001", ""); //성공 메세지
- }else{
- //sysf_messageBox("해당 적용일자에 예약환자가 존재", "E008", ""); //에약환자 존재 메세지
- }
- }
- }
- }
- /**
- * _group :
- * _ver : 2007.04.04
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : mngtposinfo 셀 색상지정
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fInsColor(){
- var flag=0;
- var co = selColor;
- var co_Num = selColor_Num ;
- var iRow = grp_biz.grd_mngtposinfo.currentrow; //.row;
- var iCol = grp_biz.grd_mngtposinfo.currentcol; //.col;
-
- trace("iRow : " + iRow + ", iCol : " + iCol );
-
- ds_main_mngtposlist_mngtposinfo.rowposition = iRow;
- var retbool = grp_biz.grd_mngtposinfo.setCellPos("body", iCol);
- var retValue = grp_biz.grd_mngtposinfo.getCellValue(iRow, iCol);
- trace("retText: " + retValue);
- var retCheckValue= grp_biz.grd_mngtposinfo.getCellValue(iRow, iCol + 1);
- trace("retText1: " + retCheckValue);
-
- var msg = grp_biz.grd_mngtposinfo.getCellProperty("body", iCol, "backgroundColor"); //.cellstyle("background-color", iRow,iCol, iRow, iCol);
-
- trace("select BackgroundColor : " + msg);
- if(retValue != ""){
- var prefix = String(retValue).substr(0, 1);
- var findCol = "";
- switch(prefix) {
- case "A" : findCol = "dialkindcd_1"; break;
- case "B" : findCol = "dialkindcd_2"; break;
- case "C" : findCol = "dialkindcd_3"; break;
- case "D" : findCol = "dialkindcd_4"; break;
- case "E" : findCol = "dialkindcd_5"; break;
- }
- if(ds_main_mngtposlist_mngtposinfo.getColumn(iRow , findCol) == "0" || ds_main_mngtposlist_mngtposinfo.getColumn(iRow , findCol) == "" ) {
- //grp_biz.grd_mngtposinfo.cellstyle("background-color", iRow, iCol, iRow, iCol) = co;
- //grp_biz.grd_mngtposinfo.setCellProperty("body", iCol, "backgroundColor", co)
-
- //if(iRow != 0 && iCol%2 != 0){
- //ds_main_mngtposlist_mngtposinfo.setColumn(iRow, iCol+1, co_Num);
- ds_main_mngtposlist_mngtposinfo.setColumn(iRow , findCol, co_Num);
- //}
- //model.refresh();
- } else {
- //grp_biz.grd_mngtposinfo.cellstyle("background-color", iRow, iCol, iRow, iCol) = "white";
- //grp_biz.grd_mngtposinfo.setCellProperty("body", iCol, "backgroundColor", co)
- //if(iRow != 0 & iCol%2 != 0){
- //grp_biz.grd_mngtposinfo.textmatrix(iRow, iCol+1) = 0;
-
- //ds_main_mngtposlist_mngtposinfo.setColumn(iRow, iCol+1, 0);
- ds_main_mngtposlist_mngtposinfo.setColumn(iRow , findCol, co_Num);
- //}
- }
- }
- grp_biz.grd_mngtposinfo.updateToDataset();
- }
- function fHbsag(){
- selColor = '#fcd2c1';
- selColor_Num = 1;
- grp_biz.roundrect6.visible = true ; //투석코드 선택 표시
- grp_biz.roundrect7.visible = false;
- grp_biz.roundrect8.visible = false;
- grp_biz.roundrect9.visible = false;
- grp_biz.roundrect10.visible = false;
- grp_biz.roundrect11.visible = false;
- }
- function fHbeag(){
- selColor = '#00ccff';
- selColor_Num = 2;
- grp_biz.roundrect6.visible = false;
- grp_biz.roundrect7.visible = true ;
- grp_biz.roundrect8.visible = false;
- grp_biz.roundrect9.visible = false;
- grp_biz.roundrect10.visible = false;
- grp_biz.roundrect11.visible = false;
- }
- function fHcvab(){
- selColor = '#fec34d';
- selColor_Num = 3;
- grp_biz.roundrect6.visible = false;
- grp_biz.roundrect7.visible = false;
- grp_biz.roundrect8.visible = true ;
- grp_biz.roundrect9.visible = false;
- grp_biz.roundrect10.visible = false;
- grp_biz.roundrect11.visible = false;
- }
- function fHiv(){
- selColor = '#ff0000';
- selColor_Num = 4;
- grp_biz.roundrect6.visible = false;
- grp_biz.roundrect7.visible = false;
- grp_biz.roundrect8.visible = false;
- grp_biz.roundrect9.visible = true ;
- grp_biz.roundrect10.visible = false;
- grp_biz.roundrect11.visible = false;
- }
- function fVdrl(){
- selColor = '#fef392';
- selColor_Num =5;
- grp_biz.roundrect6.visible = false;
- grp_biz.roundrect7.visible = false;
- grp_biz.roundrect8.visible = false;
- grp_biz.roundrect9.visible = false;
- grp_biz.roundrect10.visible = true ;
- grp_biz.roundrect11.visible = false;
- }
- function fEtc(){
- selColor = '#ccecff';
- selColor_Num =6;
- grp_biz.roundrect6.visible = false;
- grp_biz.roundrect7.visible = false;
- grp_biz.roundrect8.visible = false;
- grp_biz.roundrect9.visible = false;
- grp_biz.roundrect10.visible = false;
- grp_biz.roundrect11.visible = true ;
- }
- /**
- * _group :
- * _ver : 2007.04.04
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : grd_mngtposinfo,grd_choiposinfo 초기화
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fPosinfoinit(){
- //grd_mngtposinfo 초기화
- ds_main_mngtposlist_mngtposinfo.clearData();
- //grp_biz.grd_mngtposinfo.rebuild();
- //grd_choiposinfo 초기화
- for(i = 0; i < ds_main_choiposlist_choiposinfo.rowcount ;i++){
- //grp_biz.grd_choiposinfo.textMatrix(i,1) = 0;
- ds_main_choiposlist_choiposinfo.setColumn(i, "poscont", 0);
- }
- // 생성일자, 적용일자 초기화
- var sDate = utlf_getCurrentDate();
- var currentdate = new Date();
- ds_main.setColumn( 0, "cretdd", sDate);
- dsf_makeValue( ds_main_condition, "appdd", "string", (currentdate.getAddDate(1, "D")).getDateFormat());
- //model.refresh();
- }
- /**
- * _group :
- * _ver : 2007.04.06
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : mngtposinfo 조회
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fSelectPos(appdd){
- //grd_mngtposinfo 초기화
- ds_main_mngtposlist_mngtposinfo.clearData();
- //grp_biz.grd_mngtposinfo.rebuild();
- //grd_choiposinfo 초기화
- for( i = 0; i < ds_main_choiposlist_choiposinfo.rowcount ;i++){
- //grp_biz.grd_choiposinfo.textMatrix(i,1) = 0;
- ds_main_choiposlist_choiposinfo.setColumn(i, "poscont", 0);
- }
- ds_send_reqdata.clearData();
- dsf_makeValue( ds_send_reqdata, "appdd", "string", appdd);
- //submit("TRMND01801");
- var oParam = {};
- oParam.id = "TRMND01801";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqGetMngtposInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_mngtposlist_mngtposinfo=mngtposinfo";
- oParam.async = false;
- tranf_submit(oParam);
-
-
- dsf_makeValue(ds_main_mngtposlist_mngtposinfo, "status", "string", "");
- dsf_setDefaultVal(ds_main_mngtposlist_mngtposinfo, "all");
- //조회시 저장된 셀색상 지정해주기
- // expr로 대체함.
- // for(i = 0;i < ds_main_mngtposlist_mngtposinfo.rowcount ;i++){
- // for(j = 0; j < ds_main_mngtposlist_mngtposinfo.colcount;j++){
- // if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1) != null){
- // if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='1'){
- // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#fcd2c1';
- // }
- // else if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='2'){
- // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#00ccff';
- // }
- // else if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='3'){
- // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#fec34d';
- // }
- // else if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='4'){
- // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#ff0000';
- // }
- // else if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='5'){
- // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#fef392';
- // }
- // else if(grp_biz.grd_mngtposinfo.valueMatrix(i,j+1)=='6'){
- // grp_biz.grd_mngtposinfo.cellstyle("background-color", i, j, i, j) = '#ccecff';
- // }
- // }//end of if
- // }//end of for(j)
- // }// end of for(i)
- //
- ds_main.setColumn( 0, "histappdd", ds_main_mngtposlist_mngtposinfo.getColumn(0, "dialtodt")); // 종료일자 설정 // (1, "dialtodt)
- //model.refresh();
- }
- /**
- * _group :
- * _ver : 2007.04.11
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : 투석자리 삭제 버튼 클릭 시
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fDeletePos(){
- var msg = sysf_messageBox("투석자리를", "Q001", ""); //return : yes=6, no=7
- //투석자리 삭제
- if(msg == 6){
- for(i=1;i<=grp_biz.grd_mngtposinfo.rows;i++){ //state(delete) 지정
- grp_biz.grd_mngtposinfo.textmatrix(i,0) = "d";
- }
- crtChk = 'Y';
- ds_send_savedata.clearData();
-
- //dsf_makeValue( ds_send, "savedata", "string", grp_biz.grd_mngtposinfo.getupdatedataAll("i"));
- dsf_copyDs(ds_send_savedata, grdf_getGridUpdateData(grp_biz.grd_mngtposinfo),"replace");
- //submit("TXMND01801");
- var oParam = {};
- oParam.id = "TXMND01801";
- oParam.service = "dialapp.DialPatMngt";
- oParam.method = "reqExeChoiposInfo";
- oParam.inds = "req=ds_send_savedata";
- oParam.outds = "ds_main_mngtposlist_mngtposinfo=savedata";
- oParam.async = false;
- tranf_submit(oParam);
-
-
- dsf_makeValue(ds_main_mngtposlist_mngtposinfo, "status", "string", "");
- dsf_setDefaultVal(ds_main_mngtposlist_mngtposinfo, "all");
- //fInsertPos();
- var appdd = ds_main_condition.getColumn(0, "appdd");
- fSelectPos(appdd);
- fSelectHistory();
- }
- }
- /**
- * _group :
- * _ver : 2007.04.11
- * _by : 김진아
- * _---------------------------------------------------
- * _type : function
- * _access : public
- * _desc : History선택시 해당 데이타 조회
- * _param :
- * _return :
- * _---------------------------------------------------
- */
- function fChioHis(){
- var iRow = ds_main_historylist_historyinfo.rowposition; //grp_biz.grd_historyinfo.row;
- var appdd = ds_main_historylist_historyinfo.getColumn(iRow, "appdd"); //1
- ds_main_condition.setColumn( 0, "appdd", appdd);
- crtChk = 'Y';
- //model.refresh();
- var appdd = ds_main_condition.getColumn(0, "appdd");
- fSelectPos(appdd);
- }
- // header파일 중 SMMND01800.js 파일 끝
- function grp_biz_grd_mngtposinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
- fInsColor();
- }
- function grp_biz_button18_onclick(obj:Button, e:ClickEventInfo) {
- fCreatePos();
- }
- function grp_biz_caption54_onclick(obj:Static, e:ClickEventInfo) {
- fEtc();
- }
- function grp_biz_caption32_onclick(obj:Static, e:ClickEventInfo) {
- fVdrl();
- }
- function grp_biz_caption33_onclick(obj:Static, e:ClickEventInfo) {
- fHbsag();
- }
- function grp_biz_caption34_onclick(obj:Static, e:ClickEventInfo) {
- fHbeag();
- }
- function grp_biz_grd_historyinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
- if(e.row >= 0) {
- fChioHis();
- }
- }
- function grp_biz_group4_button17_onclick(obj:Button, e:ClickEventInfo) {
- var appdd = ds_main_condition.getColumn(0, "appdd");
- fSelectPos(appdd);
- }
- function grp_biz_group4_ipt_appdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
- fChkAppdd(); // 적용일자 체크 (오늘 이전 적용일자 설정 금지)
- }
- function grp_biz_group4_button19_onclick(obj:Button, e:ClickEventInfo) {
- fInsertPos();
- }
- function grp_biz_group4_button1_onclick(obj:Button, e:ClickEventInfo) {
- fDeletePos();
- }
- function grp_biz_caption35_onclick(obj:Static, e:ClickEventInfo) {
- fHcvab();
- }
- function grp_biz_button20_onclick(obj:Button, e:ClickEventInfo) {
- fPosinfoinit();
- }
- function grp_biz_caption36_onclick(obj:Static, e:ClickEventInfo) {
- fHiv();
- }
- ]]></Script>
- </Form>
- </FDL>
|