1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNR01700" position="absolute 0 0 1202 782" titletext="Untitle" oninit="SMMNR01700_oninit" onload="SMMNR01700_onload">
- <Layouts>
- <Layout>
- <Static id="cap_titl" text="진술문 속성관리" class="tit_1" position="absolute 0 0 160 25"/>
- <Div id="grp_sea" anchor="left top right" taborder="2" class="div_SA" position="absolute 0 25 1195 65">
- <Layouts>
- <Layout>
- <Shape id="line17" linetype="vertical" class="line_4" position="absolute 1107 9 1113 32" anchor="top right"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1120 10 1176 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Radio id="rdo_attrflag" taborder="2" columncount="4" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 135 10 455 30" onitemchanged="grp_sea_rdo_attrflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">코드속성</Col>
- </Row>
- <Row>
- <Col id="codecolumn">V</Col>
- <Col id="datacolumn">수치속성</Col>
- </Row>
- <Row>
- <Col id="codecolumn">F</Col>
- <Col id="datacolumn">특수속성</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">사정도구</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="cap_attrflag" text="속성구분정보 :" class="search_name" position="absolute 16 12 128 29"/>
- </Layout>
- </Layouts>
- </Div>
- <Tab id="switch1" taborder="3" tabindex="0" class="tab_Normal" position="absolute 0 72 1195 779" anchor="all">
- <Tabpages>
- <Tabpage id="attrinfo1">
- <Layouts>
- <Layout>
- <Shape id="line18" linetype="horizontal" class="line_10" position="absolute 0 25 704 31"/>
- <Shape id="line19" linetype="horizontal" class="line_10" position="absolute 710 25 1195 31"/>
- <Shape id="line20" linetype="horizontal" class="line_10" position="absolute 710 515 1195 521"/>
- <Button id="btn_searchattr" taborder="33" class="icon_search" position="absolute 219 5 239 25" onclick="switch1_attrinfo1_btn_searchattr_onclick"/>
- <Button id="btn_saveprcp" taborder="34" text="저장" class="btn5" position="absolute 1150 496 1194 515" onclick="switch1_attrinfo1_btn_saveprcp_onclick"/>
- <Button id="btn_saveattr1" taborder="35" text="저장" class="btn5" position="absolute 661 6 703 25" onclick="switch1_attrinfo1_btn_saveattr1_onclick"/>
- <Button id="btn_grdaddattr1" taborder="36" text="행추가" class="btn2" position="absolute 551 6 604 25" onclick="switch1_attrinfo1_btn_grdaddattr1_onclick"/>
- <Button id="btn_grddelattr1" taborder="37" text="행삭제" class="btn2" position="absolute 606 6 659 25" onclick="switch1_attrinfo1_btn_grddelattr1_onclick"/>
- <Button id="btn_grdadddetlattr" taborder="38" text="행추가" class="btn2" position="absolute 1043 6 1096 25" onclick="switch1_attrinfo1_btn_grdadddetlattr_onclick"/>
- <Button id="btn_grddeldetlattr" taborder="39" text="행삭제" class="btn2" position="absolute 1098 6 1151 25" onclick="switch1_attrinfo1_btn_grddeldetlattr_onclick"/>
- <Button id="btn_savedetlattr" taborder="40" text="저장" class="btn5" position="absolute 1153 6 1195 25" onclick="switch1_attrinfo1_btn_savedetlattr_onclick"/>
- <Static id="cap_detlattr" text="상세속성내역" class="tit_2" position="absolute 710 9 836 30"/>
- <Static id="cap_prcp" text="처방매핑 내역" class="tit_2" position="absolute 710 499 836 520"/>
- <Static id="cap_attr1" text="속성정보" class="tit_2" position="absolute 0 9 105 31"/>
- <Edit id="ipt_attrcd" taborder="41" class="input_search" position="absolute 115 5 215 24" autoselect="true" autoskip="true" onkeyup="switch1_attrinfo1_ipt_attrcd_onkeyup"/>
- <Grid id="grd_attrlist1" class="datagrid2" taborder="42" binddataset="ds_main_attrinfo_attrlist" useinputpanel="false" position="absolute 0 30 705 665" autoenter="select" autofittype="col" cellsizingtype="col" oncellclick="switch1_attrinfo1_grd_attrlist1_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="31"/>
- <Column size="0"/>
- <Column size="150"/>
- <Column size="0"/>
- <Column size="215"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="35"/>
- <Column size="33"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="52"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="29" 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" text="항목"/>
- <Cell col="11" text="항목코드"/>
- <Cell col="12" text="처방매핑" wordwrap="word"/>
- <Cell col="13" text="정렬순서" wordwrap="word"/>
- <Cell col="14" text="ICNP매핑"/>
- <Cell col="15" text="등록일자"/>
- <Cell col="16" text="등록자"/>
- <Cell col="17" text="icnpinfo"/>
- <Cell col="18" text="등록자ID"/>
- <Cell col="19" text="기관코드"/>
- <Cell col="20" text="속성구분"/>
- <Cell col="21" text="상위코드"/>
- <Cell col="22" text="종료일자"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:stat" combodataset="ds_hidden_comcd_stat" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="2" text="bind:attrcd"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:attrnm"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:unitnm"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:desccnts"/>
- <Cell col="6" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:plnumchoiyn" combodataset="ds_cmb_plnumchoiyn" combocodecol="value" combodatacol="label"/>
- <Cell col="7" displaytype="combo" edittype="combo" text="bind:difrecrefyn"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:reftrgtnm"/>
- <Cell col="9" text="bind:reftrgtcd"/>
- <Cell col="10" displaytype="text" edittype="text" text="bind:itemnm"/>
- <Cell col="11" text="bind:itemcd"/>
- <Cell col="12" style="align:center middle;" text="bind:prcpmappyn"/>
- <Cell col="13" displaytype="text" edittype="text" style="align:center middle;" text="bind:refseq"/>
- <Cell col="14" text="bind:icnpyn"/>
- <Cell col="15" displaytype="date" text="bind:lastupdtdt" calendardisplaynulltype="nulltext"/>
- <Cell col="16" text="bind:lastupdtrnm"/>
- <Cell col="17" text="bind:lastupdtrid"/>
- <Cell col="18" text="bind:instcd"/>
- <Cell col="19" text="bind:attrflag"/>
- <Cell col="20" text="bind:supcd"/>
- <Cell col="21" text="bind:todd"/>
- <Cell col="22" text="bind:icnpinfo"/>
- <Cell col="23" text="bind:stmtupdyn"/>
- <Cell col="24" text="bind:beforeattrnm"/>
- <Cell col="25" text="bind:beforeunitnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_detlattrlist" class="datagrid2" taborder="43" binddataset="ds_main_detlattrspec_detlattrlist" useinputpanel="false" position="absolute 710 30 1195 330" autoenter="select" cellsizingtype="col" oncellclick="switch1_attrinfo1_grd_detlattrlist_oncellclick" onexpanddown="switch1_attrinfo1_grd_detlattrlist_onexpanddown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="22"/>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="30"/>
- <Column size="31"/>
- <Column size="120"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="29"/>
- <Column size="34"/>
- <Column size="66"/>
- <Column size="54"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="31" 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="정렬순서" wordwrap="word"/>
- <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="처방매핑" wordwrap="word"/>
- <Cell col="15" text="ICNP매핑" wordwrap="word"/>
- <Cell col="16" text="등록일자"/>
- <Cell col="17" text="등록자"/>
- <Cell col="18" text="등록자ID"/>
- <Cell col="19" text="기관코드"/>
- <Cell col="20" text="속성구분"/>
- <Cell col="21" text="상위코드"/>
- <Cell col="22" text="종료일자"/>
- <Cell col="23" text="icnpinfo"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:stat" combodataset="ds_hidden_comcd_stat" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="2" text="bind:attrcd"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:attrnm"/>
- <Cell col="4" text="bind:unitnm"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:attrgrde"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:refseq"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:desccnts"/>
- <Cell col="8" text="bind:plnumchoiyn"/>
- <Cell col="9" text="bind:difrecrefyn"/>
- <Cell col="10" text="bind:reftrgtnm"/>
- <Cell col="11" text="bind:reftrgtcd"/>
- <Cell col="12" text="bind:itemnm"/>
- <Cell col="13" text="bind:itemcd"/>
- <Cell col="14" style="align:center middle;" text="bind:prcpmappyn"/>
- <Cell col="15" displaytype="text" edittype="text" text="bind:icnpyn" expandshow="show"/>
- <Cell col="16" displaytype="date" text="bind:lastupdtdt" calendardisplaynulltype="nulltext"/>
- <Cell col="17" text="bind:lastupdtrnm"/>
- <Cell col="18" text="bind:lastupdtrid"/>
- <Cell col="19" text="bind:instcd"/>
- <Cell col="20" text="bind:attrflag"/>
- <Cell col="21" text="bind:supcd"/>
- <Cell col="22" text="bind:todd"/>
- <Cell col="23" text="bind:icnpinfo"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_prcplist1" taborder="44" binddataset="ds_main_prcpmappspec_prcplist" useinputpanel="false" position="absolute 710 520 1195 665" autoenter="select" autofittype="col" cellsizingtype="col" oncelldblclick="switch1_attrinfo1_grd_prcplist1_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="40"/>
- <Column size="100"/>
- <Column size="186"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="규격"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="combo" text="bind:status" combodataset="ds_hidden_comcd_stat" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="2" text="bind:prcpcd"/>
- <Cell col="3" text="bind:prcpnm"/>
- <Cell col="4" text="bind:drugmthdspccd"/>
- <Cell col="5" text="bind:prcppkspec"/>
- <Cell col="6" text="bind:attrcd"/>
- <Cell col="7" text="bind:reccd"/>
- <Cell col="8" text="bind:mappseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line3" linetype="horizontal" class="line_10" position="absolute 710 352 1195 358"/>
- <Static id="caption2" text="ICNP 매핑 내역" class="tit_2" position="absolute 710 336 836 358"/>
- <Grid id="grd_icnpinfo1" class="datagrid2" taborder="45" binddataset="ds_main_icnplist_icnpinfo_icnp" useinputpanel="false" position="absolute 710 357 1195 492" autoenter="select" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="125"/>
- <Column size="151"/>
- <Column size="163"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="구분"/>
- <Cell col="1" text="용어"/>
- <Cell col="2" text="용어코드"/>
- </Band>
- <Band id="body">
- <Cell text="bind:flag"/>
- <Cell col="1" text="bind:termnm"/>
- <Cell col="2" text="bind:termcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_selattr1" taborder="46" text="선택" class="btn2" position="absolute 506 6 548 25" onclick="switch1_attrinfo1_btn_selattr1_onclick"/>
- <Button id="btn_srchprcp" taborder="47" text="처방찾기" class="btn2" position="absolute 861 496 925 515" onclick="switch1_attrinfo1_btn_srchprcp_onclick"/>
- <Edit id="ipt_prcpnm" taborder="48" class="input_default" position="absolute 928 496 1132 515" autoselect="true" autoskip="true" onkeyup="switch1_attrinfo1_ipt_prcpnm_onkeyup"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="attrinfo2">
- <Layouts>
- <Layout>
- <Button id="btn_grdaddattr3" taborder="21" text="행추가" class="btn2" position="absolute 1042 6 1095 25" anchor="top right" onclick="switch1_attrinfo2_btn_grdaddattr3_onclick"/>
- <Button id="btn_grddelattr3" taborder="22" text="행삭제" class="btn2" position="absolute 1097 6 1150 25" anchor="top right" onclick="switch1_attrinfo2_btn_grddelattr3_onclick"/>
- <Button id="btn_saveattr3" taborder="23" text="저장" class="btn5" position="absolute 1152 6 1194 25" anchor="top right" onclick="switch1_attrinfo2_btn_saveattr3_onclick"/>
- <Static id="cap_attr2" text="속성정보" class="tit_2" position="absolute 0 9 100 31"/>
- <Shape id="line1" linetype="horizontal" class="line_10" position="absolute 0 25 1194 31"/>
- <Static id="caption1" text="처방매핑 내역" class="tit_2" position="absolute 0 464 126 485"/>
- <Button id="button1" taborder="24" text="저장" class="btn5" enable="false" position="absolute 619 461 661 480" onclick="switch1_attrinfo2_button1_onclick"/>
- <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 479 660 488"/>
- <Grid id="grd_attrlist2" class="datagrid2" taborder="25" binddataset="ds_main_attrinfo_attrlist" useinputpanel="false" position="absolute 0 30 1195 449" autoenter="select" cellsizingtype="col" oncellclick="switch1_attrinfo2_grd_attrlist2_oncellclick" onexpanddown="switch1_attrinfo2_grd_attrlist2_onexpanddown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="29"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="453"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="35"/>
- <Column size="29"/>
- <Column size="40"/>
- <Column size="100"/>
- <Column size="83"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="31" 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" text="항목"/>
- <Cell col="11" text="항목코드"/>
- <Cell col="12" text="처방매핑" wordwrap="word"/>
- <Cell col="13" text="정렬순서" wordwrap="word"/>
- <Cell col="14" text="ICNP매핑" wordwrap="word"/>
- <Cell col="15" text="등록일자"/>
- <Cell col="16" text="등록자"/>
- <Cell col="17" text="등록자ID"/>
- <Cell col="18" text="기관코드"/>
- <Cell col="19" text="속성구분"/>
- <Cell col="20" text="상위코드"/>
- <Cell col="21" text="종료일자"/>
- <Cell col="22" text="icnpinfo"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:stat" combodataset="ds_hidden_comcd_stat" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="2" text="bind:attrcd"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:attrnm"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:center middle;" text="bind:unitnm"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:desccnts" editautoselect="true"/>
- <Cell col="6" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:plnumchoiyn" combodataset="ds_cmb_plnumchoiyn" combocodecol="value" combodatacol="label"/>
- <Cell col="7" displaytype="combo" edittype="combo" text="bind:difrecrefyn"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:reftrgtnm"/>
- <Cell col="9" text="bind:reftrgtcd"/>
- <Cell col="10" displaytype="text" edittype="text" text="bind:itemnm"/>
- <Cell col="11" text="bind:itemcd"/>
- <Cell col="12" text="bind:prcpmappyn"/>
- <Cell col="13" displaytype="text" edittype="text" text="bind:refseq"/>
- <Cell col="14" displaytype="text" edittype="text" text="bind:icnpyn" expandshow="show"/>
- <Cell col="15" displaytype="date" text="bind:lastupdtdt" calendardisplaynulltype="nulltext"/>
- <Cell col="16" text="bind:lastupdtrnm"/>
- <Cell col="17" text="bind:lastupdtrid"/>
- <Cell col="18" text="bind:instcd"/>
- <Cell col="19" text="bind:attrflag"/>
- <Cell col="20" text="bind:supcd"/>
- <Cell col="21" text="bind:todd"/>
- <Cell col="22" text="bind:icnpinfo"/>
- <Cell col="23" text="bind:stmtupdyn"/>
- <Cell col="24" text="bind:beforeattrnm"/>
- <Cell col="25" text="bind:beforeunitnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_prcplist2" taborder="26" binddataset="ds_main_prcpmappspec_prcplist" useinputpanel="false" position="absolute 0 485 660 670" autoenter="select" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="23"/>
- <Column size="47"/>
- <Column size="100"/>
- <Column size="368"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="규격"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="combo" edittype="combo" text="bind:status" combodataset="ds_hidden_comcd_stat" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="2" text="bind:prcpcd"/>
- <Cell col="3" text="bind:prcpnm"/>
- <Cell col="4" text="bind:drugmthdspccd"/>
- <Cell col="5" text="bind:prcppkspec"/>
- <Cell col="6" text="bind:attrcd"/>
- <Cell col="7" text="bind:reccd"/>
- <Cell col="8" text="bind:mappseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption3" text="ICNP 매핑 내역" class="tit_2" position="absolute 668 464 794 485"/>
- <Shape id="line4" linetype="horizontal" class="line_10" position="absolute 668 479 1195 488">
- <Layouts>
- <Layout width="506" height="1"/>
- </Layouts>
- </Shape>
- <Grid id="grd_icnpinfo2" class="datagrid2" taborder="27" binddataset="ds_main_icnplist_icnpinfo_icnp" useinputpanel="false" position="absolute 668 485 1195 670" autoenter="select" autofittype="col" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="125"/>
- <Column size="179"/>
- <Column size="176"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="구분"/>
- <Cell col="1" text="용어"/>
- <Cell col="2" text="용어코드"/>
- </Band>
- <Band id="body">
- <Cell text="bind:flag"/>
- <Cell col="1" text="bind:termnm"/>
- <Cell col="2" text="bind:termcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_selattr2" taborder="28" text="선택" class="btn2" position="absolute 998 6 1040 25" anchor="top right" onclick="switch1_attrinfo2_btn_selattr2_onclick"/>
- <Button id="btn_srchprcp2" taborder="29" text="처방찾기" class="btn2" enable="false" position="absolute 344 461 408 480" onclick="switch1_attrinfo2_btn_srchprcp2_onclick"/>
- <Edit id="input1" taborder="30" class="input_default" enable="false" position="absolute 411 461 615 480" autoselect="true" autoskip="true" onkeyup="switch1_attrinfo2_input1_onkeyup"/>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="attrflag" type="STRING" size="256"/>
- <Column id="attrnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="attrflag"/>
- <Col id="attrnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_comcd_stat" 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">-</Col>
- </Row>
- <Row>
- <Col id="label">신규</Col>
- <Col id="value">I</Col>
- </Row>
- <Row>
- <Col id="label">수정</Col>
- <Col id="value">U</Col>
- </Row>
- <Row>
- <Col id="label">삭제</Col>
- <Col id="value">D</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_plnumchoiyn" 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">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_attrinfo_attrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_attrinfo_attrlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="stat" type="STRING" size="256" sumtext="상태"/>
- <Column id="attrcd" type="STRING" size="256" sumtext="속성코드"/>
- <Column id="attrnm" type="STRING" size="256" sumtext="속성명"/>
- <Column id="unitnm" type="STRING" size="256" sumtext="단위명"/>
- <Column id="desccnts" type="STRING" size="256" sumtext="설명"/>
- <Column id="plnumchoiyn" type="STRING" size="256" sumtext="복수선택여부"/>
- <Column id="difrecrefyn" type="STRING" size="256" sumtext="다른기록참조여부"/>
- <Column id="reftrgtnm" type="STRING" size="256" sumtext="참조대상명"/>
- <Column id="reftrgtcd" type="STRING" size="256" sumtext="참조대상코드"/>
- <Column id="itemnm" type="STRING" size="256" sumtext="항목명"/>
- <Column id="itemcd" type="STRING" size="256" sumtext="항목코드"/>
- <Column id="prcpmappyn" type="STRING" size="256" sumtext="처방매핑여부"/>
- <Column id="refseq" type="INT" size="256" sumtext="정렬순서"/>
- <Column id="icnpyn" type="STRING" size="256" sumtext="icnp 매핑여부"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종수정자명"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자ID"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="attrflag" type="STRING" size="256" sumtext="속성구분"/>
- <Column id="supcd" type="STRING" size="256" sumtext="상위코드"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="icnpinfo" type="STRING" size="256" sumtext="icnp 정보"/>
- <Column id="icnpyn" type="STRING" size="256" sumtext="icnp 매핑여부"/>
- <Column id="stmtupdyn" type="STRING" size="256" sumtext="진술문수정여부"/>
- <Column id="beforeattrnm" type="STRING" size="256" sumtext="변경전속성명"/>
- <Column id="beforeunitnm" type="STRING" size="256" sumtext="변경전단위명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_detlattrspec_detlattrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_detlattrspec_detlattrlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="stat" type="STRING" size="256" sumtext="상태"/>
- <Column id="attrcd" type="STRING" size="256" sumtext="속성코드"/>
- <Column id="attrnm" type="STRING" size="256" sumtext="속성명"/>
- <Column id="unitnm" type="STRING" size="256" sumtext="단위명"/>
- <Column id="refseq" type="INT" size="256" sumtext="정렬순서"/>
- <Column id="desccnts" type="STRING" size="256" sumtext="설명"/>
- <Column id="plnumchoiyn" type="STRING" size="256" sumtext="복수선택여부"/>
- <Column id="difrecrefyn" type="STRING" size="256" sumtext="다른기록참조여부"/>
- <Column id="reftrgtnm" type="STRING" size="256" sumtext="참조대상명"/>
- <Column id="reftrgtcd" type="STRING" size="256" sumtext="참조대상코드"/>
- <Column id="itemnm" type="STRING" size="256" sumtext="항목명"/>
- <Column id="itemcd" type="STRING" size="256" sumtext="항목코드"/>
- <Column id="prcpmappyn" type="STRING" size="256" sumtext="처방매핑여부"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일시"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종수정자명"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자ID"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="attrflag" type="STRING" size="256" sumtext="속성구분"/>
- <Column id="supcd" type="STRING" size="256" sumtext="상위코드"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="icnpinfo" type="STRING" size="256" sumtext="icnp 정보"/>
- <Column id="icnpyn" type="STRING" size="256" sumtext="icnp 매핑여부"/>
- <Column id="stmtupdyn" type="STRING" size="256" sumtext="진술문수정여부"/>
- <Column id="attrgrde" type="STRING" size="256" sumtext="속성등급"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_icnplist_icnpinfo_icnp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="termnm" type="STRING" size="256"/>
- <Column id="termcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_prcpmappspec_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_prcpmappspec_prcplist_oncolumnchanged">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256" sumtext="상태"/>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
- <Column id="drugmthdspccd" type="STRING" size="256" sumtext="drugmthdspccd"/>
- <Column id="qty" type="STRING" size="256" sumtext="수량"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종수정일자"/>
- <Column id="lastupdtrnm" type="STRING" size="256" sumtext="최종수정자명"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종수정자ID"/>
- <Column id="attrcd" type="STRING" size="256" sumtext="속성코드"/>
- <Column id="reccd" type="STRING" size="256" sumtext="기록코드"/>
- <Column id="mappseqno" type="STRING" size="256" sumtext="매핑일련번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_refinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_recinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_attrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_main_attrinfo_attrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_main_detlattrspec_detlattrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_main_prcpmappspec_prcplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_recinfo_icnpinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="termnm" type="STRING" size="256"/>
- <Column id="termcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_cmb_difrecrefyn" 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">Y</Col>
- <Col id="value">Y</Col>
- </Row>
- <Row>
- <Col id="label">N</Col>
- <Col id="value">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_recinfo_icnpinfo_icnp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="flag" type="STRING" size="256"/>
- <Column id="termnm" type="STRING" size="256"/>
- <Column id="termcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.rdo_attrflag" propid="value" datasetid="ds_hidden_cond" columnid="attrflag"/>
- <BindItem id="item1" compid="switch1.attrinfo1.ipt_attrcd" propid="value" datasetid="ds_hidden_cond" columnid="attrnm"/>
- <BindItem id="item2" compid="switch1.attrinfo1.ipt_prcpnm" propid="value" datasetid="ds_main_cond" columnid="prcpnm"/>
- <BindItem id="item3" compid="switch1.attrinfo2.input1" propid="value" datasetid="ds_main_cond" columnid=""/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "com_commodulexp::SSZFM01001.xjs";
- var arErrorCode = new HashArray();
- var xCondPath = ds_hidden_cond;
- var xRefPath = ds_hidden_refinfo;
- var xRecPath = ds_hidden_recinfo;
- var xAttrListPath = ds_main_attrinfo_attrlist;
- var xDetlAttrPath = ds_main_detlattrspec_detlattrlist;
- var xICNPInfoPath = ds_main_icnplist_icnpinfo_icnp;
- var xMainCondPath = ds_main_cond;
- var xPrcpSrchPath = ds_main_prcpmappspec_prcplist;
- var xPrcpPath = "ds_main_prcpmappspec_prcplist";
- function SMMNR01700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNR01700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(switch1.attrinfo2.grd_attrlist2);
- grdf_initGrid(switch1.attrinfo2.grd_prcplist2);
- grdf_initGrid(switch1.attrinfo2.grd_icnpinfo2);
- grdf_initGrid(switch1.attrinfo1.grd_attrlist1);
- grdf_initGrid(switch1.attrinfo1.grd_detlattrlist);
- grdf_initGrid(switch1.attrinfo1.grd_icnpinfo1);
- grdf_initGrid(switch1.attrinfo1.grd_prcplist1);
-
- try
- {
- ds_hidden_recinfo.copyData(arg_ds_hidden_recinfo);
- }
- catch(e)
- {
- }
- try
- {
- ds_hidden_refinfo.copyData(arg_ds_hidden_refinfo);
- }
- catch(e)
- {
- }
-
- fInit();
- }
- function fInit()
- {
- ds_hidden_cond.setColumn(0, "attrflag","C");
- ds_hidden_cond.setColumn(0, "attrnm","");
-
- if(ds_hidden_recinfo.getColumn(0, "flag") == "p")
- {
- switch1.attrinfo1.btn_selattr1.visible = true;
- switch1.attrinfo2.btn_selattr2.visible = true;
- }
- else
- {
- switch1.attrinfo1.btn_selattr1.visible = false;
- switch1.attrinfo2.btn_selattr2.visible = false;
- }
- fSearch();
- }
- function fSearch(pFlag)
- {
- var sAttrFlag = xCondPath.getColumn(0, "attrflag");
- ds_send.clearData();
-
- switch(sAttrFlag)
- {
- case 'C' :
- case 'A' :
- if(utlf_isNull(pFlag))
- {
- xCondPath.setColumn(0, "attrnm","");
- }
- xAttrListPath.clearData();
- xDetlAttrPath.clearData();
- xICNPInfoPath.clearData();
- xPrcpSrchPath.clearData();
- switch1.tabindex = 0;
- break;
- case 'V' :
- switch1.attrinfo2.grd_attrlist2.setFormatColProperty(3, "size", 0);
- switch1.attrinfo2.grd_attrlist2.setFormatColProperty(4, "size", 100);
-
- xAttrListPath.clearData();
- xDetlAttrPath.clearData();
- xPrcpSrchPath.clearData();
- xICNPInfoPath.clearData();
-
- switch1.tabindex = 1;
- break;
- case 'F' :
- switch1.attrinfo2.grd_attrlist2.setFormatColProperty(3, "size", 100);
- switch1.attrinfo2.grd_attrlist2.setFormatColProperty(4, "size", 0);
- xDetlAttrPath.clearData();
- xPrcpSrchPath.clearData();;
-
- switch1.tabindex = 1;
- break;
- }
- dsf_makeValue(ds_send, "attrflag", "string", xCondPath.getColumn(0, "attrflag"));
- dsf_makeValue(ds_send, "supcd", "string", "********");
-
- if(!utlf_isNull(ds_hidden_cond.getColumn(0, "attrnm")))
- {
- dsf_makeValue(ds_send, "attrnm", "string", xCondPath.getColumn(0, "attrnm"));
- }
- var oParam = {};
- oParam.id = "TRMNR01701";
- oParam.service = "carerecapp.StmtMngt";
- oParam.method = "reqGetAttrList";
- oParam.inds = "refCond=ds_send";
- oParam.outds = "ds_main_attrinfo_attrlist=attrlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNR01701";
- tranf_submit(oParam);
-
- ds_hidden_main_attrinfo_attrlist.copyData(ds_main_attrinfo_attrlist);
- }
- function switch1_attrinfo1_ipt_attrcd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- switch1.attrinfo1.btn_searchattr.click();
- }
- }
- function switch1_attrinfo1_btn_searchattr_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch("subsearch");
- }
- function switch1_attrinfo1_grd_attrlist1_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fOnClickedGrid("detlattr");
- }
- function fOnClickedGrid(pFlag)
- {
- var sAttrFlag = xCondPath.getColumn(0, "attrflag");
- var xPath = "";
- var sRow = 0;
- var sCol = 0;
- if(pFlag == "attr")
- {
- switch(sAttrFlag)
- {
- case 'C' :
- case 'A' :
- sRow = ds_main_detlattrspec_detlattrlist.rowposition;
- if(sRow < 0) return;
- dsf_makeValue(ds_send, "attrcd", "string", xDetlAttrPath.getColumn(sRow, "attrcd"));
-
- xICNPInfoPath.clearData();
- xICNPInfoPath.copyRow(xICNPInfoPath.addRow(), xDetlAttrPath, sRow);
- break;
- case 'V' :
- case 'F' :
- sRow = ds_main_attrinfo_attrlist.rowposition;
- if(sRow < 0) return;
- xICNPInfoPath.clearData();
- break;
- }
- }
- else if(pFlag == "detlattr")
- {
- sRow = ds_main_attrinfo_attrlist.rowposition;
- if(sRow < 0) return;
- if(utlf_isNull(xAttrListPath.getColumn(sRow, "attrcd"))) return;
-
- xICNPInfoPath.clearData();
- xDetlAttrPath.clearData();
- ds_send.clearData();
- dsf_makeValue(ds_send, "attrflag", "string", xCondPath.getColumn(0, "attrflag"));
- dsf_makeValue(ds_send, "supcd", "string", xAttrListPath.getColumn(sRow, "attrcd"));
-
- var oParam = {};
- oParam.id = "TRMNR01702";
- oParam.service = "carerecapp.StmtMngt";
- oParam.method = "reqGetAttrList";
- oParam.inds = "refCond=ds_send";
- oParam.outds = "ds_main_detlattrspec_detlattrlist=detlattrlist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNR01702";
- tranf_submit(oParam);
- ds_hidden_main_detlattrspec_detlattrlist.copyData(ds_main_detlattrspec_detlattrlist);
- }
- else if(pFlag == "prcp")
- {
- sRow = ds_main_detlattrspec_detlattrlist.rowposition;
- sCol = switch1.attrinfo1.grd_detlattrlist.currentcell;
- if(sRow < 0) return;
- if(switch1.attrinfo1.grd_detlattrlist.getBindCellIndex("Body", "prcpmappyn") != sCol) return;
-
- xICNPInfoPath.clearData();
- xICNPInfoPath.copyRow(xICNPInfoPath.addRow, xDetlAttrPath, sRow);
-
- var sAttrcd = ds_main_detlattrspec_detlattrlist.getColumn(ds_main_detlattrspec_detlattrlist.rowposition, "attrcd");
- if( !utlf_isNull(sAttrcd))
- {
- fInitPrcpObject();
- dsf_makeValue(ds_send, "lnkflag", "string", "A");
- dsf_makeValue(ds_send, "lnkcd", "string",sAttrcd);
- var oParam = {};
- oParam.id = "TRMNR01703";
- oParam.service = "carerecapp.StmtMngt";
- oParam.method = "reqGetPrcpList";
- oParam.inds = "refCond=ds_send";
- oParam.outds = "ds_main_prcpmappspec_prcplist=prcplist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNR01703";
- tranf_submit(oParam);
- }
- }
- }
- function fInitPrcpObject()
- {
- switch1.attrinfo1.btn_srchprcp.enable = true;
- switch1.attrinfo1.ipt_prcpnm.enable = true;
- switch1.attrinfo1.btn_saveprcp.enable = true;
- }
- function switch1_attrinfo1_btn_selattr1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSendAttrInfo();
- }
- function fSendAttrInfo()
- {
- var sAttrFlag = xCondPath.getColumn(0, "attrflag");
- var iRow = 0;
- var sArrtInfoHeader = "attrcd▦attrnm▦attrflag▦plnumchoiyn▦refseq▩";
- var sAttrInfo = "";
- switch(sAttrFlag)
- {
- case 'C' :
- case 'A' :
- iRow = ds_main_attrinfo_attrlist.rowposition;
- break;
- case 'V' :
- case 'F' :
- iRow = ds_main_attrinfo_attrlist.rowposition;
- break;
- }
- if(iRow < 0) return;
-
- sAttrInfo += xAttrListPath.getColumn(iRow, "attrcd")+"▦"
- + xAttrListPath.getColumn(iRow, "attrnm")+"▦"
- + sAttrFlag+"▦"
- + xAttrListPath.getColumn(iRow, "plnumchoiyn")+"▦"
- + xAttrListPath.getColumn(iRow, "refseq")+"▩";
- opener.frmf_setParameter("SMMNR01700_Retrun",sArrtInfoHeader+sAttrInfo);
- this.close();
- }
- function switch1_attrinfo1_btn_grdaddattr1_onclick(obj:Button, e:ClickEventInfo)
- {
- fAddGridRow("attr");
- }
- function fAddGridRow(pFlag)
- {
- var sAttrFlag = ds_hidden_cond.getColumn(0, "attrflag");
- var xPath = "";
- var sRow = 0;
- if(pFlag == "attr")
- {
- xPath = ds_main_attrinfo_attrlist;
- switch(sAttrFlag)
- {
- case 'C' : // 코드속성
- case 'A' : // 사정도구
- sRow = ds_main_attrinfo_attrlist.addRow();
- break;
- case 'V' : // 수치속성
- case 'F' : // 특수속성
- sRow = ds_main_attrinfo_attrlist.addRow();
- break;
- }
-
- xPath.enableevent = false;
- xPath.setColumn(sRow, "stat","I");
- xPath.setColumn(sRow, "plnumchoiyn","N");
- xPath.setColumn(sRow, "difrecrefyn","N");
- xPath.setColumn(sRow, "refseq", 0);
- xPath.setColumn(sRow, "attrflag", sAttrFlag);
- xPath.setColumn(sRow, "lastupdtrid", sysf_getUserId());
- xPath.setColumn(sRow, "lastupdtrnm", sysf_getUserName());
- xPath.setColumn(sRow, "supcd", "********");
- xPath.enableevent = true;
- if(sAttrFlag == "V")
- {
- xPath.setColumn(sRow, "attrnm","(수치)");
- }
- }
- else if(pFlag == "detlattr")
- {
- var sSupAttrRow = ds_main_attrinfo_attrlist.rowposition;
- var xSupAttrPath = ds_main_attrinfo_attrlist
- if(sSupAttrRow < 0)
- {
- sysf_messageBox("상위코드가","I004");
- return;
- }
- if(xSupAttrPath.getColumn(sSupAttrRow, "stat") == "I")
- {
- sysf_messageBox("상위코드가 저장되지","E007");
- return;
- }
- sRow = ds_main_detlattrspec_detlattrlist.addRow();
- xPath = ds_main_detlattrspec_detlattrlist;
- xPath.enableevent = false;
- xPath.setColumn(sRow, "stat", "I");
- xPath.setColumn(sRow, "refseq", 0);
- xPath.setColumn(sRow, "supcd", xSupAttrPath.getColumn(sSupAttrRow, "attrcd"));
- xPath.setColumn(sRow, "attrflag", sAttrFlag);
- xPath.setColumn(sRow, "lastupdtrid", sysf_getUserId());
- xPath.setColumn(sRow, "lastupdtrnm", sysf_getUserName());
- xPath.enableevent = true;
- }
- else if(pFlag == "prcp")
- {
- xPath = ds_main_prcpmappspec_prcplist;
- var sAttrRow = "";
- var xAttrPath = "";
- switch(sAttrFlag)
- {
- case 'C' : // 코드속성
- case 'A' : // 사정도구
- sAttrRow = ds_main_detlattrspec_detlattrlist.rowposition;
- xAttrPath = ds_main_detlattrspec_detlattrlist
- if(sAttrRow < 0)
- {
- sysf_messageBox("속성코드가","I004");
- return;
- }
- if(xAttrPath.getColumn(sAttrRow, "stat") == "I")
- {
- sysf_messageBox("상세속성코드가 저장되지","E007");
- return;
- }
- sRow = ds_main_prcpmappspec_prcplist.addRow();
- break;
- case 'V' : // 수치속성
- case 'F' : // 특수속성
- sAttrRow = ds_main_attrinfo_attrlist.rowposition;
- xAttrPath = ds_main_attrinfo_attrlist;
- if(sAttrRow < 0)
- {
- sysf_messageBox("속성코드가","I004");
- return;
- }
- if(xAttrPath.getColumn(sAttrRow, "stat") == "I")
- {
- sysf_messageBox("속성코드가 저장되지","E007");
- return;
- }
- sRow = ds_main_prcpmappspec_prcplist.addRow();
- break;
- }
- xPath.enableevent = false;
- xPath.setColumn(sRow, "stat","I");
- xPath.setColumn(sRow, "attrcd", xAttrPath.getColumn(sAttrRow, "attrcd"));
- xPath.setColumn(sRow, "lastupdtrid", sysf_getUserId());
- xPath.setColumn(sRow, "lastupdtrnm", sysf_getUserName());
- xPath.enableevent = true;
- }
- }
- function switch1_attrinfo1_btn_grddelattr1_onclick(obj:Button, e:ClickEventInfo)
- {
- fDelGridRow("attr");
- }
- function fDelGridRow(pFlag)
- {
- var sAttrFlag = ds_hidden_cond.getColumn(0, "attrflag");
- var xPath = "";
- var sRow = 0;
- var sStat = "";
- if(pFlag == "attr")
- {
- xPath = ds_main_attrinfo_attrlist;
- if(sAttrFlag == "C" || sAttrFlag =="A")
- {
- sRow = ds_main_attrinfo_attrlist.rowposition;
- }
- else
- {
- sRow = ds_main_attrinfo_attrlist.rowposition;
- }
-
- if(sRow < 0)
- {
- sysf_messageBox("삭제할 수","I004");
- return;
- }
- sStat = xPath.getColumn(sRow, "stat");
- if(sStat == "I")
- {
- if(sAttrFlag == "C" || sAttrFlag =="A")
- {
- ds_main_attrinfo_attrlist.deleteRow(sRow);
- }
- else
- {
- ds_main_attrinfo_attrlist.deleteRow(sRow);
- }
- }
- else if(sStat == "D")
- {
- xPath.setColumn(sRow, "stat","-");
- }
- else
- {
- xPath.setColumn(sRow, "stat","D");
- ds_main_attrinfo_attrlist.updatecontrol = false;
- ds_main_attrinfo_attrlist.setRowType(sRow, "d");
- ds_main_attrinfo_attrlist.updatecontrol = true;
- }
- }
- else if(pFlag == "detlattr")
- {
- xPath = ds_main_detlattrspec_detlattrlist
- sRow = ds_main_detlattrspec_detlattrlist.rowposition;
- if(sRow < 0)
- {
- sysf_messageBox("삭제할 수","I004");
- return;
- }
- sStat = xPath.getColumn(sRow, "stat");
- if(sStat == "I")
- {
- ds_main_detlattrspec_detlattrlist.deleteRow(sRow);
- }
- else if(sStat == "D")
- {
- xPath.setColumn(sRow, "stat","-");
- }
- else
- {
- ds_main_detlattrspec_detlattrlist.setColumn(sRow, "stat","D");
- }
- }
- else if(pFlag == "prcp")
- {
- xPath = ds_main_prcpmappspec_prcplist
- if(sAttrFlag == "C" || sAttrFlag =="A")
- {
- sRow = ds_main_prcpmappspec_prcplist.rowposition;
- }
- else
- {
- sRow = ds_main_prcpmappspec_prcplist.rowposition;
- }
-
- if(sRow < 0)
- {
- sysf_messageBox("삭제할 수","I004");
- return;
- }
- if(xPath.getColumn(sRow, "stat") == "I")
- {
- if(sAttrFlag == "C" || sAttrFlag =="A")
- {
- ds_main_prcpmappspec_prcplist.deleteRow(sRow);
- }
- else
- {
- ds_main_prcpmappspec_prcplist.deleteRow(sRow);
- }
- }
- else
- {
- xPath.setColumn(sRow, "stat","D");
- }
- }
- }
- function switch1_attrinfo1_btn_saveattr1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave("attr");
- }
- function fSave(pFlag)
- {
- var xPath = "";
- var sAttrFlag = ds_hidden_cond.getColumn(0, "attrflag");
- var sRow = 0;
- var sRowCnt = 0;
- var sStat = "";
- //ds_send.clearData();
- ds_send_attrlist.clear();
-
- var pParamObj = new Object();
- pParamObj.pathYN = "N";
- pParamObj.nullColumnYN = "Y";
-
- if(pFlag == "attr")
- {
- xPath = ds_main_attrinfo_attrlist;
- switch(sAttrFlag)
- {
- case 'C' : // 코드속성
- case 'A' :
- ds_send_attrlist.copyData(grdf_getGridUpdateData(switch1.attrinfo1.grd_attrlist1), "i");
- sRowCnt = ds_main_attrinfo_attrlist.rowcount;
- for(var i = 0; i < sRowCnt; i++)
- {
- sStat = xAttrListPath.getColumn(i, "stat");
- if( sStat == "-" || sStat == "D") continue;
-
- if(utlf_isNull(xAttrListPath.getColumn(i, "icnpinfo")))
- {
- dsf_makeValue(ds_send_attrlist, "icnpinfo", "string", "<icnpinfo/>");
- }
- else
- {
- var pParam = new Object();
- pParam.nullNodeYN = 'Y'
- pParam.cDataYN = 'N'
- sParamObjArr = [{ds: "ds_hidden_recinfo_icnpinfo", path:"icnpinfo/icnp", filter: ""}];
-
- DataSet_XMLChangeName = lf_convertDsToXml(sParamObjArr, "<icnpinfo><flag/><termnm/><termcd/></icnpinfo>")
- dsf_makeValue(ds_send_attrlist, "icnpinfo", "string", DataSet_XMLChangeName);
- }
- }
- break;
- case 'V' :
- case 'F' :
- ds_send_attrlist.copyData(grdf_getGridUpdateData(switch1.attrinfo1.grd_attrlist1), "i");
- sRowCnt = ds_main_attrinfo_attrlist.rowcount;
- for(var i = 0; i < sRowCnt; i++)
- {
- sStat = xAttrListPath.getColumn(i, "stat");
- if( sStat == "-" || sStat == "D") continue;
-
- if(utlf_isNull(xAttrListPath.getColumn(i, "icnpinfo")))
- {
- dsf_makeValue(ds_send_attrlist, "icnpinfo", "string", "<icnpinfo/>");
- }
- else
- {
- var pParam = new Object();
- pParam.nullNodeYN = 'Y'
- pParam.cDataYN = 'N'
- sParamObjArr = [{ds: "ds_hidden_recinfo_icnpinfo", path:"icnpinfo/icnp", filter: ""}];
-
- DataSet_XMLChangeName = lf_convertDsToXml(sParamObjArr, "<icnpinfo><icnp><flag/><termnm/><termcd/></icnp></icnpinfo>")
- dsf_makeValue(ds_send_attrlist, "icnpinfo", "string", DataSet_XMLChangeName);
- }
- }
- break;
- }
- if(sRowCnt < 0)
- {
- sysf_messageBox("처리할 데이터가 ","I004");
- return;
- }
- if(sysf_messageBox("","Q002") != 6) return;
- dsf_makeValue(ds_send, "attrflag", "string", xCondPath.getColumn(0, "attrflag"));
- dsf_makeValue(ds_send, "supcd", "String","********");
- dsf_makeValue(ds_send, "attrnm", "String","");
- dsf_setTypeFormat(ds_send_attrlist, "refseq:INT");
-
- var oParam = {};
- oParam.id = "TXMNR01701";
- oParam.service = "carerecapp.StmtMngt";
- oParam.method = "reqExeAttrInfo";
- oParam.inds = "attrlist=ds_send_attrlist refCond=ds_send";
- oParam.outds = "ds_main_attrinfo_attrlist=attrlist";
- oParam.async = false;
- //oParam.callback = "cf_TXMNR01701";
- tranf_submit(oParam);
-
- ds_hidden_main_attrinfo_attrlist.copyData(ds_main_attrinfo_attrlist);
- }
- else if(pFlag == "detlattr")
- {
- xPath = ds_main_attrinfo_attrlist;
- switch(sAttrFlag)
- {
- case 'C' : // 코드속성
- case 'A' : // 사정도구
- sRow = ds_main_attrinfo_attrlist.rowposition;
- break;
- case 'V' : // 수치속성
- case 'F' : // 특수속성
- sRow = ds_main_attrinfo_attrlist.rowposition;
- break;
- }
- sRowCnt = ds_main_detlattrspec_detlattrlist.rowcount;
- if(sRowCnt == 0)
- {
- sysf_messageBox("처리할 데이터가 ","I004");
- return;
- }
- if(sysf_messageBox("","Q002") != 6) return;
-
- for(var i = 0; i < sRowCnt; i++)
- {
- sStat = xDetlAttrPath.getColumn(i, "stat");
- if( sStat == "-" || sStat == "D") continue;
-
- if(utlf_isNull(xDetlAttrPath.getColumn(i, "icnpinfo")))
- {
- dsf_makeValue(ds_send_attrlist, "icnpinfo", "string", "<icnpinfo/>");
- }
- else
- {
- var pParam = new Object();
- pParam.nullNodeYN = 'Y'
- pParam.cDataYN = 'N'
- sParamObjArr = [{ds: "ds_hidden_recinfo_icnpinfo", path:"icnpinfo/icnp", filter: ""}];
-
- DataSet_XMLChangeName = lf_convertDsToXml(sParamObjArr, "<icnpinfo><icnp><flag/><termnm/><termcd/></icnp></icnpinfo>")
- dsf_makeValue(ds_send_attrlist, "icnpinfo", "string", DataSet_XMLChangeName);
- }
- }
- //ds_send_attrlist.copyData(grdf_getGridUpdateData(switch1.attrinfo1.grd_detlattrlist, "i"));
-
- ds_send_attrlist.copyData(ds_main_detlattrspec_detlattrlist);
-
- dsf_setTypeFormat(ds_send_attrlist, "refseq:INT");
- dsf_makeValue(ds_send, "attrflag", "string", xCondPath.getColumn(0, "attrflag"))
- dsf_makeValue(ds_send, "supcd", "string", xPath.getColumn(sRow, "attrcd"));
- var oParam = {};
- oParam.id = "TXMNR01702";
- oParam.service = "carerecapp.StmtMngt";
- oParam.method = "reqExeAttrInfo";
- oParam.inds = "attrlist=ds_send_attrlist refCond=ds_send";
- oParam.outds = "ds_main_detlattrspec_detlattrlist=detlattrlist";
- oParam.async = false;
- //oParam.callback = "cf_TXMNR01702";
- tranf_submit(oParam);
-
- ds_hidden_main_detlattrspec_detlattrlist.copyData(ds_main_detlattrspec_detlattrlist);
- }
- else if(pFlag == "prcp")
- {
- xPath = ds_main_prcpmappspec_prcplist;
- switch(sAttrFlag)
- {
- case 'C' : // 코드속성
- case 'A' : // 사정도구
- ds_send_prcplist.copyData(grdf_getGridUpdateData(switch1.attrinfo1.grd_prcplist1, "i"));
- sRow = ds_main_detlattrspec_detlattrlist.rowposition;
- sRowCnt = ds_main_prcpmappspec_prcplist.rowcount;
- dsf_makeValue(ds_send, "attrcd", "string", ds_main_detlattrspec_detlattrlist.getColumn(sRow, "attrcd"));
- break;
- case 'V' : // 수치속성
- case 'F' : // 특수속성
- ds_send_prcplist.copyData(grdf_getGridUpdateData(switch1.attrinfo2.grd_prcplist2, "i"));
- sRow = ds_main_attrinfo_attrlist.rowposition;
- sRowCnt = ds_main_prcpmappspec_prcplist.rowcount;
- dsf_makeValue(ds_send, "attrcd", "string", ds_main_attrinfo_attrlist.getColumn(sRow, "attrcd"));
- break;
- }
- if(sRowCnt == 0)
- {
- sysf_messageBox("처리할 데이터가 ","I004");
- return;
- }
-
- if(utlf_isNull(ds_main_detlattrspec_detlattrlist.getColumn(ds_main_detlattrspec_detlattrlist.rowposition, "attrcd")))
- {
- sysf_messageBox("매핑할 속성을","C002");
- return;
- }
-
- if(sysf_messageBox("","Q002") != 6) return;
- dsf_makeValue(ds_send, "lnkflag", "string", "A");
- dsf_makeValue(ds_send, "lnkcd", "string", ds_main_detlattrspec_detlattrlist.getColumn(ds_main_detlattrspec_detlattrlist.rowposition, "attrcd"));
- dsf_makeValue(ds_send, "attrflag", "string", ds_hidden_cond.getColumn(0, "attrflag"));
-
- var oParam = {};
- oParam.id = "TXMNR01703";
- oParam.service = "carerecapp.StmtMngt";
- oParam.method = "reqExePrcpList";
- oParam.inds = "refCond=ds_send prcplist=ds_send_prcplist";
- oParam.outds = "ds_main_prcpmappspec_prcplist=prcplist";
- oParam.async = false;
- oParam.callback = "cf_TXMNR01703";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TXMNR01703") > -1)
- {
- ds_main_detlattrspec_detlattrlist.setColumn(ds_main_detlattrspec_detlattrlist.rowposition, "prcpmappyn", "Y");
- ds_hidden_main_detlattrspec_detlattrlist.copyData(ds_main_detlattrspec_detlattrlist);
- }
- }
- }
- function cf_TXMNR01703(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- function ds_main_attrinfo_attrlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- /*
- if(e.columnid == "plnumchoiyn")
- {
- fChangedGridCol("attr");
- }
- */
- //2019.04.11_수정
- fChangedGridCol("attr");
- }
- function fChangedGridCol(pFlag)
- {
- var sAttrFlag = xCondPath.getColumn(0, "attrflag");
- var sRow = 0;
- var sCol = 0;
- var xPath = "";
- var xCPath = "";
- if(pFlag == "attr")
- {
- xPath = ds_main_attrinfo_attrlist;
- xCPath = ds_hidden_main_attrinfo_attrlist;
- if(sAttrFlag == "C" || sAttrFlag == "A")
- {
- sCol = switch1.attrinfo1.grd_attrlist1.currentcol;
- sRow = switch1.attrinfo1.grd_attrlist1.currentrow;
- }
- else if(sAttrFlag == "V" || sAttrFlag == "F")
- {
- sCol = switch1.attrinfo2.grd_attrlist2.currentcol;
- sRow = switch1.attrinfo2.grd_attrlist2.currentrow;
- }
- var sAttrNm = xPath.getColumn(sRow, "attrnm");
- var sLen = String(sAttrNm).length;
- if(!utlf_isNull(sAttrNm))
- {
- if(String(sAttrNm).substr(0,1) != "(")
- {
- sAttrNm = "("+sAttrNm;
- }
- if(String(sAttrNm).substr(sLen-1,1) != ")")
- {
- sAttrNm += ")";
- }
- xPath.setColumn(sRow, "attrnm",sAttrNm);
- }
- if(xPath.getColumn(sRow, "stat")=="I")
- {
- if(sAttrFlag=="V" && sCol == 4)
- {
- var sUnitNm = utlf_transNullToEmpty(xPath.getColumn(sRow, "unitnm"));
- xPath.setColumn(sRow , "desccnts", "수치정보 기록중 단위가 " + sUnitNm + "인 속성을 기록한다");
- }
- return; // 신규
- }
-
- sAttrCd = xPath.getColumn(sRow, "attrcd");
-
- if( xPath.getColumn(sRow, "attrnm") == xCPath.lookup("attrcd", sAttrCd, "attrnm") &&
- xPath.getColumn(sRow, "desccnts") == xCPath.lookup("attrcd", sAttrCd, "desccnts") &&
- xPath.getColumn(sRow, "plnumchoiyn") == xCPath.lookup("attrcd", sAttrCd, "plnumchoiyn") &&
- xPath.getColumn(sRow, "difrecrefyn") == xCPath.lookup("attrcd", sAttrCd, "difrecrefyn") &&
- xPath.getColumn(sRow, "reftrgtnm") == xCPath.lookup("attrcd", sAttrCd, "reftrgtnm") &&
- xPath.getColumn(sRow, "reftrgtcd") == xCPath.lookup("attrcd", sAttrCd, "reftrgtcd") &&
- xPath.getColumn(sRow, "itemcd") == xCPath.lookup("attrcd", sAttrCd, "itemcd") &&
- xPath.getColumn(sRow, "refseq") == xCPath.lookup("attrcd", sAttrCd, "refseq") &&
- xPath.getColumn(sRow, "unitnm") == xCPath.lookup("attrcd", sAttrCd, "unitnm"))
- {
- xPath.setColumn(Row, "stat","-");
- }
- else
- {
- xPath.setColumn(sRow, "stat","U");
-
- if( xPath.getColumn(sRow, "attrnm") != xCPath.lookup("attrcd", sAttrCd, "attrnm") ||
- xPath.getColumn(sRow, "unitnm") != xCPath.lookup("attrcd", sAttrCd, "unitnm"))
- {
- dsf_makeValue(xPath, "stmtupdyn", "string", "Y", sRow);
- dsf_makeValue(xPath, "beforeattrnm", "string", xCPath.lookup("attrcd", sAttrCd, "attrnm"), sRow);
- dsf_makeValue(xPath, "beforeunitnm", "string", xCPath.lookup("attrcd", sAttrCd, "unitnm"), sRow);
- }
- else
- {
- dsf_makeValue(xPath, "stmtupdyn", "string", "N", sRow);
- }
- if(sAttrFlag=="V" && sCol == 4)
- {
- var sUnitNm = xPath.getColumn(sRow, "unitnm");
- xPath.setColumn(sRow , "desccnts", "수치정보 기록중 단위가 " + sUnitNm + "인 속성을 기록한다");
- }
- }
- }
- else if(pFlag == "detlattr")
- {
- xPath = ds_main_detlattrspec_detlattrlist;;
- xCPath = ds_hidden_main_detlattrspec_detlattrlist;
- sRow = ds_main_detlattrspec_detlattrlist.rowposition;
- sCol = switch1.attrinfo1.grd_detlattrlist.currentcol;
-
- if(xPath.getColumn(sRow, "stat") == "I") return;
-
- sAttrCd = xPath.getColumn(sRow, "attrcd");
-
- if( xPath.getColumn(sRow, "attrnm") == xCPath.lookup("attrcd", sAttrCd, "attrnm") &&
- xPath.getColumn(sRow, "desccnts") == xCPath.lookup("attrcd", sAttrCd, "desccnts") &&
- xPath.getColumn(sRow, "refseq") == xCPath.lookup("attrcd", sAttrCd, "refseq") &&
- xPath.getColumn(sRow, "attrgrde") == xCPath.lookup("attrcd", sAttrCd, "attrgrde"))
- {
- xPath.setColumn(sRow, "stat","-");
- }
- else
- {
- xPath.setColumn(sRow, "stat","U");
- }
- }
- else if(pFlag == "prcp")
- {
- xPath = ds_main_prcpmappspec_prcplist;
- //xCPath = ds_hidden_main_prcpmappspec_prcplist;
- switch(sAttrFlag)
- {
- case 'C' : // 코드속성
- case 'A' : // 사정도구
- sRow = ds_main_prcpmappspec_prcplist.rowposition;
- break;
- case 'V' : // 수치속성
- case 'F' : // 특수속성
- sRow = ds_main_prcpmappspec_prcplist.rowposition;
- break;
- }
- if(xPath.getColumn(sRow, "stat")=="I") return;
-
- var sPrcpCd = xPath.getColumn(sRow, "prcpcd");
- if( xPath.getColumn(sRow, "prcpcd") == xCPath.lookup("prcpcd", sAttrCd, "prcpcd") &&
- xPath.getColumn(sRow, "size") == xCPath.lookup("prcpcd", sAttrCd, "size") &&
- xPath.getColumn(sRow, "qty") == xCPath.lookup("prcpcd", sAttrCd, "qty"))
- {
- xPath.setColumn(sRow, "stat","-");
- }
- else
- {
- xPath.setColumn(sRow, "stat","U");
- }
- }
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function ds_main_detlattrspec_detlattrlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- fChangedGridCol("detlattr");
- }
- function switch1_attrinfo1_grd_detlattrlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fOnClickedGrid("prcp");
- }
- function switch1_attrinfo1_grd_detlattrlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- fCallPopUp("detlattr");
- }
- function switch1_attrinfo1_btn_grdadddetlattr_onclick(obj:Button, e:ClickEventInfo)
- {
- fAddGridRow("detlattr");
- }
- function switch1_attrinfo1_btn_grddeldetlattr_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_detlattrspec_detlattrlist.enableevent = false;
- ds_main_detlattrspec_detlattrlist.updatecontrol = false;
- fDelGridRow("detlattr");
- ds_main_detlattrspec_detlattrlist.enableevent = true;
- ds_main_detlattrspec_detlattrlist.updatecontrol = true;
- }
- function switch1_attrinfo1_btn_savedetlattr_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave("detlattr");
- }
- function ds_main_prcpmappspec_prcplist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- fChangedGridCol("prcp");
- }
- function switch1_attrinfo1_grd_prcplist1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fChngStatus("prcp1");
- }
- function fChngStatus(pFlag)
- {
- switch(pFlag)
- {
- case "prcp1" :
- if(ds_main_prcpmappspec_prcplist.rowposition < 0 ) return;
- var sStatus = ds_main_prcpmappspec_prcplist.getColumn(ds_main_prcpmappspec_prcplist.rowposition, "status");
- var sRow = ds_main_prcpmappspec_prcplist.rowposition;
- if(sStatus == "I")
- {
- ds_main_prcpmappspec_prcplist.deleteRow(sRow);
- }
- else if(sStatus == "-")
- {
- ds_main_prcpmappspec_prcplist.setColumn(ds_main_prcpmappspec_prcplist.rowposition, "status", "D");
- }
- else if(sStatus == "D")
- {
- ds_main_prcpmappspec_prcplist.setColumn(ds_main_prcpmappspec_prcplist.rowposition, "status", "-");
- }
- break;
- case "prcp2" :
-
- break;
- }
- }
- function switch1_attrinfo1_btn_srchprcp_onclick(obj:Button, e:ClickEventInfo)
- {
- fCallPopUp("prcp");
- }
- function switch1_attrinfo1_btn_saveprcp_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave("prcp");
- }
- function switch1_attrinfo1_ipt_prcpnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- switch1.attrinfo1.btn_srchprcp.click();
- }
- }
- function switch1_attrinfo2_grd_attrlist2_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fOnClickedGrid("attr");
- }
- function switch1_attrinfo2_grd_attrlist2_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- fCallPopUp("attr");
- }
- function switch1_attrinfo2_btn_selattr2_onclick(obj:Button, e:ClickEventInfo)
- {
- fSendAttrInfo();
- }
- function switch1_attrinfo2_btn_grdaddattr3_onclick(obj:Button, e:ClickEventInfo)
- {
- fAddGridRow("attr");
- }
- function switch1_attrinfo2_btn_grddelattr3_onclick(obj:Button, e:ClickEventInfo)
- {
- fDelGridRow("attr");
- }
- function switch1_attrinfo2_btn_saveattr3_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave("attr");
- }
- function switch1_attrinfo2_btn_srchprcp2_onclick(obj:Button, e:ClickEventInfo)
- {
- fCallPopUp("prcp");
- }
- function switch1_attrinfo2_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave("prcp");
- }
- function switch1_attrinfo2_input1_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- switch1.attrinfo2.btn_srchprcp2.click();
- }
- }
- function fTermAnaly(pTerm)
- {
- if(utlf_isNull(pTerm)) return false;
-
- var sTermInfo = "";
- var sTemp1 = String(pTerm).split("(");
- var sTemp2 = "";
-
- for(var i = 0;i < sTemp1.length; i++)
- {
- if(utlf_isNull(sTemp1[i])) continue;
- sTermInfo += sTemp1[i]+" ";
- }
- sTemp2 = String(sTermInfo).split(" ");
- sTermInfo = "";
- for(var i = 0; i < sTemp2.length; i++)
- {
- sTemp1 = String(sTemp2[i]).split(")");
-
- for(var j = 0; j < sTemp1.length; j++)
- {
- if(utlf_isNull(sTemp1[j])) continue;
- sTermInfo += sTemp1[j]+" ";
- }
- }
- return sTermInfo;
- }
- function fCallPopUp(pFlag)
- {
- var sAttrFlag = xCondPath.getColumn(0, "attrflag");
- var sCol = -1;
- if(pFlag == "attr")
- {
- switch(sAttrFlag)
- {
- case 'C' : // 코드속성
- case 'A' : // 사정도구
- sCol = switch1.attrinfo1.grd_attrlist1.currentcol;
- sRow = switch1.attrinfo1.grd_attrlist1.currentrow;
- if(sCol == 14)
- {
- sTermInfo = fTermAnaly(xAttrListPath.getColumn(sRow, "attrnm"));
- xRefPath.clearData();
- ds_hidden_recinfo_icnpinfo.clearData();
-
- dsf_makeValue(xRefPath, "terminfo", "string",sTermInfo);
- dsf_makeValue(xRefPath, "receiveref", "ds_hidden_recinfo_icnpinfo");
- var objArg = new Object();
- objArg.arg_xRefPath = xRefPath;
- frmf_modal("SPMNR01500", "SPMNR01500", objArg, "", "", "", "", "", "", "", "", "", "M");
-
- if(!utlf_isNull(ds_hidden_recinfo_icnpinfo.getColumn(0, "flag")))
- {
- ds_main_icnplist_icnpinfo_icnp.copyData(ds_hidden_recinfo_icnpinfo);
-
- var pParam = new Object();
- pParam.nullNodeYN = 'Y'
- pParam.cDataYN = 'N'
- sParamObjArr = [{ds: "ds_hidden_recinfo_icnpinfo", path:"icnpinfo", filter: ""}];
-
- DataSet_XMLChangeName = lf_convertDsToXml(sParamObjArr, "<icnpinfo><flag/><termnm/><termcd/></icnpinfo>")
- dsf_makeValue(ds_main_attrinfo_attrlist, "icnpinfo", "string", DataSet_XMLChangeName, sRow);
-
- xAttrListPath.setColumn(sRow, "icnpyn", "Y");
- if(xAttrListPath.getColumn(sRow, "stat") == "-")
- {
- xAttrListPath.setColumn(sRow, "stat","U");
- }
- }
- }
- break;
- case 'V' : // 수치속성
- case 'F' : // 특수속성
- sCol = switch1.attrinfo2.grd_attrlist2.currentcol;
- sRow = switch1.attrinfo2.grd_attrlist2.currentrow;
-
- if(sCol == 14)
- {
- if(sAttrFlag =="V")
- {
- sTermInfo = fTermAnaly(xAttrListPath.getColumn(sRow, "unitnm"));
- }
- else
- {
- sTermInfo = fTermAnaly(xAttrListPath.getColumn(sRow, "attrnm"));
- }
-
- if(sTermInfo == false)
- {
- sysf_messageBox("입력된 속성이","I004");
- return;
- }
-
- ds_hidden_recinfo_icnpinfo.clearData();
-
- dsf_makeValue(ds_hidden_refinfo, "terminfo", "string", sTermInfo);
- dsf_makeValue(ds_hidden_refinfo, "receiveref", "string","ds_hidden_recinfo_icnpinfo");
-
- var objArg = new Object();
- objArg.arg_ds_hidden_refinfo = ds_hidden_refinfo;
- frmf_modal("SPMNR01500", "SPMNR01500", objArg, "", "", "", "", "", "", "", "", "", "M");
-
- if(!utlf_isNull(ds_hidden_recinfo_icnpinfo.getColumn(0, "flag")))
- {
- ds_main_icnplist_icnpinfo_icnp.copyData(ds_hidden_recinfo_icnpinfo);
-
- var pParam = new Object();
- pParam.nullNodeYN = 'Y'
- pParam.cDataYN = 'N'
- sParamObjArr = [{ds: "ds_hidden_recinfo_icnpinfo", path:"icnpinfo", filter: ""}];
-
- DataSet_XMLChangeName = lf_convertDsToXml(sParamObjArr, "<icnpinfo><flag/><termnm/><termcd/></icnpinfo>")
- dsf_makeValue(ds_main_attrinfo_attrlist, "icnpinfo", "string", DataSet_XMLChangeName, sRow);
-
- xAttrListPath.setColumn(sRow, "icnpyn", "Y");
-
- if(xAttrListPath.getColumn(sRow, "stat") == "-")
- {
- xAttrListPath.setColumn(sRow, "stat","U");
- }
- }
- }
- break;
- }
- }
- else if(pFlag == "detlattr")
- {
- sCol = switch1.attrinfo1.grd_detlattrlist.currentcol;
- sRow = switch1.attrinfo1.grd_detlattrlist.currentrow;
-
- if(sCol == 14)
- {
- sTermInfo = fTermAnaly(xDetlAttrPath.getColumn(sRow, "attrnm"));
-
- if(sTermInfo == false)
- {
- sysf_messageBox("입력된 속성이","I004");
- return;
- }
-
- xRefPath.clearData();
- ds_main_icnplist_icnpinfo_icnp.clearData();
-
- dsf_makeValue(xRefPath, "terminfo", "string",sTermInfo);
- dsf_makeValue(xRefPath, "receiveref", "ds_hidden_recinfo_icnpinfo");
-
- var objArg = new Object();
- objArg.arg_xRefPath = xRefPath;
- frmf_modal("SPMNR01500", "SPMNR01500", objArg, "", "", "", "", "", "", "", "", "", "M");
-
- if(!utlf_isNull(ds_hidden_recinfo_icnpinfo.getColumn(0, "flag")))
- {
- ds_main_icnplist_icnpinfo_icnp.copyData(ds_hidden_recinfo_icnpinfo);
-
- xDetlAttrPath.setColumn(sRow, "icnpyn", "Y");
- if(xDetlAttrPath.getColumn(sRow, "stat") == "-")
- {
- xDetlAttrPath.setColumn(sRow, "stat","U");
- }
- }
- }
- }
- else if(pFlag == "prcp")
- {
- if(utlf_isNull(xMainCondPath.getColumn(0, "prcpnm")))
- {
- sysf_messageBox("검색어를","C001");
- return;
- }
-
- if(ds_main_detlattrspec_detlattrlist.rowposition < 0 )
- {
- sysf_messageBox("상세 속성을","C002");
- return;
- }
-
- var iRow = 0;
-
- frmf_setParameter("prcpsrchflag","nm");
- frmf_setParameter("srchtextval",xMainCondPath.getColumn(0, "prcpnm"));
- frmf_setParameter("scrnflag","rec");
- frmf_setParameter("srchParam","srchSET");
- frmf_setParameter("rtnpath",xPrcpPath);
- frmf_modal("SPMNW11100", "SPMNW11100", "", "", "", "", "", "", "", "", "", "", "M");
-
- iRow = ds_main_prcpmappspec_prcplist.rowcount-1;
-
- if(xPrcpSrchPath.getColumn(iRow, "status") == "-" && iRow > -1)
- {
- xPrcpSrchPath.setColumn(iRow, "status", "I");
- xMainCondPath.setColumn(iRow, "prcpnm", "");
- }
- else
- {
- xMainCondPath.setColumn(iRow, "prcpnm", "");
- return;
- }
- }
- }
- function grp_sea_rdo_attrflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fSearch();
- }
- ]]></Script>
- </Form>
- </FDL>
|