123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMNR04200" position="absolute 0 0 1201 742" titletext="간호기록항목Group관리" oninit="SMMNR04200_oninit" onload="SMMNR04200_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 614 26 1192 86" align="align:center top;" id="grp_sea" class="div_SA2" anchor="left top right">
- <Layouts>
- <Layout>
- <Button position="absolute 506 20 562 42" id="btn_search" class="btn1" taborder="4" text="조회" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
- <Static text="조회조건 :" position="absolute 7 9 99 26" id="caption2" class="search_name" anchor="default"/>
- <Radio position="absolute 101 8 516 28" id="rdo_cathflag" class="radio_search" columncount="-1" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" rowcount="-1" onitemchanged="grp_sea_rdo_cathflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">%</Col>
- <Col id="datacolumn">전체</Col>
- </Row>
- <Row>
- <Col id="codecolumn">A</Col>
- <Col id="datacolumn">임상관찰</Col>
- </Row>
- <Row>
- <Col id="codecolumn">B</Col>
- <Col id="datacolumn">Intake</Col>
- </Row>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">Output</Col>
- </Row>
- <Row>
- <Col id="codecolumn">D</Col>
- <Col id="datacolumn">삽관</Col>
- </Row>
- <Row>
- <Col id="codecolumn">G</Col>
- <Col id="datacolumn">기구</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">간호수행</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Combo position="absolute 101 32 213 51" id="cmb_itemflag" class="combo_default" innerdataset="@ds_main_clsinfo_clslist" datacolumn="itemnm" codecolumn="itemcd" anchor="default"/>
- <Static text="분 류 :" position="absolute 7 33 93 50" id="caption5" class="search_name" anchor="default"/>
- <Static text="직접검색 :" position="absolute 251 33 337 50" id="caption1" class="search_name" anchor="default"/>
- <Edit position="absolute 346 32 464 51" id="ipt_itemnm" class="input_default" anchor="default" style="border:1 solid #3366ffff ;" autoselect="true" autoskip="true" onkeyup="grp_sea_ipt_itemnm_onkeyup"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid position="absolute 300 60 605 729" id="grd_srchdtlitem" binddataset="ds_main_itemdtlinfo_itemdtllist" autoenter="select" anchor="left top bottom" autosizingtype="row" cellsizingtype="both" cellsizebandtype="allband" selecttype="multirow" extendsizetype="both">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="85"/>
- <Column size="44"/>
- <Column size="137"/>
- <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="70"/>
- </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="Item명"/>
- <Cell col="4" text="trgtflag"/>
- <Cell col="5" text="instcd"/>
- <Cell col="6" text="setno"/>
- <Cell col="7" text="instcd"/>
- <Cell col="8" text="setno"/>
- <Cell col="9" text="itemcd"/>
- <Cell col="10" text="supcd"/>
- <Cell col="11" text="삭제"/>
- <Cell col="12" text="Item코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" style="align:left middle;" text="bind:supnm" suppress="1" suppressalign="middle,over"/>
- <Cell col="2" displaytype="combo" style="align:center middle;" text="bind:status" combodataset="ds_cmb_status" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="3" edittype="none" style="align:left middle;padding:3 3 3 3;" text="bind:itemnm" wordwrap="word" autosizerow="limitmin"/>
- <Cell col="4" text="bind:trgtflag"/>
- <Cell col="5" text="bind:instcd"/>
- <Cell col="6" text="bind:setno"/>
- <Cell col="7" text="bind:itemcd"/>
- <Cell col="8" text="bind:supcd"/>
- <Cell col="9" text="bind:recflag"/>
- <Cell col="10" displaytype="checkbox" edittype="checkbox" text="bind:check"/>
- <Cell col="11" text="bind:supsetno"/>
- <Cell col="12" text="bind:itemcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="Group별 Item 등록" position="absolute 301 39 440 60" id="caption10" class="tit_2"/>
- <Static text="Item Group" position="absolute 0 35 98 56" id="caption3" class="tit_2"/>
- <Grid position="absolute 613 110 1191 729" id="grd_srchitem" binddataset="ds_main_itemsrch_itemlist" autoenter="select" cellsizingtype="col" anchor="all" cantreestatuschange="grd_srchitem_cantreestatuschange" treeusecheckbox="false" treeuseimage="false" oncellclick="grd_srchitem_oncellclick" oncloseup="grd_srchitem_oncloseup" tooltiptype="hover">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="21"/>
- <Column size="32"/>
- <Column size="0"/>
- <Column size="240"/>
- <Column size="0"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="37"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="35"/>
- <Column size="0"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="선택"/>
- <Cell col="2" text="Item코드"/>
- <Cell col="3" text="Item명"/>
- <Cell col="4" text="상위항목코드"/>
- <Cell col="5" text="임상관찰" wordwrap="word"/>
- <Cell col="6" text="처방"/>
- <Cell col="7" text="Intake" wordwrap="word"/>
- <Cell col="8" text="Output" wordwrap="word"/>
- <Cell col="9" text="삽입"/>
- <Cell col="10" text="처방"/>
- <Cell col="11" text="기구"/>
- <Cell col="12" text="처방"/>
- <Cell col="13" text="간호수행" wordwrap="word"/>
- <Cell col="14" text="처방"/>
- <Cell col="15" text="depth"/>
- <Cell col="16" text="Item코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:check == 'true' ? 1 : 0"/>
- <Cell col="2" text="bind:itemcd"/>
- <Cell col="3" displaytype="tree" edittype="tree" text="bind:itemnm" treestartlevel="1" treelevel="bind:depth" tooltiptext="bind:itemnm"/>
- <Cell col="4" text="bind:supcd"/>
- <Cell col="5" displaytype="combo" style="align:center middle;" text="bind:clincobs" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="6" text="bind:clincobsprcpyn"/>
- <Cell col="7" displaytype="combo" style="align:center middle;" text="bind:intake" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="8" displaytype="combo" style="align:center middle;" text="bind:output" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="9" displaytype="combo" edittype="none" style="align:center middle;" text="bind:catheter" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="10" text="bind:catheterprcpyn"/>
- <Cell col="11" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:instru" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm"/>
- <Cell col="12" text="bind:instruprcpyn"/>
- <Cell col="13" displaytype="combo" edittype="none" style="align:center;" text="bind:careexec" combodataset="ds_init_reccharflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="14" text="bind:careexecprcpyn"/>
- <Cell col="15" text="bind:depth"/>
- <Cell col="16" text="bind:itemcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 474 36 538 55" id="button1" class="btn2" text="list 저장" onclick="button1_onclick"/>
- <Button position="absolute 541 36 605 55" id="btn_deleteitemset" class="btn2" text="Item삭제" onclick="btn_deleteitemset_onclick"/>
- <Button position="absolute 615 89 679 108" id="btn_moveitemset" class="btn2" text="선택이동" onclick="btn_moveitemset_onclick"/>
- <Button position="absolute 1062 89 1126 108" id="btn_selectall" class="btn2" text="전체선택" anchor="top right" onclick="btn_selectall_onclick"/>
- <Button position="absolute 1127 89 1191 108" id="btn_selectcancle" class="btn2" text="선택취소" anchor="top right" onclick="btn_selectcancle_onclick"/>
- <Shape position="absolute 0 109 293 115" linetype="horizontal" id="line2" class="line_10"/>
- <Shape position="absolute 0 102 293 108" linetype="horizontal" id="line3" class="line_3"/>
- <Shape position="absolute 301 55 605 61" linetype="horizontal" id="line1" class="line_10"/>
- <Grid position="absolute 0 114 293 733" id="grd_itemgruplist" binddataset="ds_main_itemgrupinfo_itemgruplist" autoenter="select" autofittype="none" cellsizingtype="both" anchor="left top bottom" oncellclick="grd_itemgruplist_oncellclick" autosizingtype="row" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="40"/>
- <Column size="223"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="70"/>
- </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="setno"/>
- <Cell col="4" text="setrefseq"/>
- <Cell col="5" text="orddeptcd"/>
- <Cell col="6" text="Item명"/>
- <Cell col="7" text="Item코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="combo" style="align:center middle;" text="bind:trgtflag" suppress="1" suppressalign="middle,over" combodataset="ds_init_trgtflaglist_item" combocodecol="cd" combodatacol="nm" enable="false"/>
- <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:setnm" wordwrap="word" autosizerow="limitmin"/>
- <Cell col="3" text="bind:setno"/>
- <Cell col="4" text="bind:setrefseq"/>
- <Cell col="5" text="bind:orddeptcd"/>
- <Cell col="6" style="align:left middle;" text="bind:itemnm"/>
- <Cell col="7" style="align:left middle;" text="bind:itemnmcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 118 35 160 54" id="btn_modifyitem" class="btn2" visible="false" text="수정" onclick="btn_modifyitem_onclick"/>
- <Edit position="absolute 79 83 291 102" id="ipt_setnm" class="input_default" enable="false" autoskip="true" autoselect="true" onkeyup="ipt_setnm_onkeyup"/>
- <Static text="Group명" position="absolute 0 83 78 103" id="caption4" class="cell_1"/>
- <Button position="absolute 162 35 204 54" id="btn_additem" class="btn2" text="추가" onclick="btn_additem_onclick"/>
- <Button position="absolute 206 35 248 54" id="btn_deleteitem" class="btn2" text="삭제" onclick="btn_deleteitem_onclick"/>
- <Button position="absolute 250 35 292 54" id="btn_saveitem" class="btn2" enable="false" text="저장" onclick="btn_saveitem_onclick"/>
- <Static text="Group 구분" position="absolute 0 60 78 80" id="caption7" class="cell_1"/>
- <Radio position="absolute 80 60 230 80" id="rdo_trgtflag" enable="false" columncount="2" innerdataset="@ds_init_trgtflaglist_item" datacolumn="nm" codecolumn="cd"/>
- <Shape position="absolute 0 79 293 85" linetype="horizontal" id="line4" class="line_3"/>
- <Shape position="absolute 0 56 293 62" linetype="horizontal" id="line5" class="line_3"/>
- <Static id="caption6" text="Item Group 관리" class="tit_1" position="absolute 0 0 188 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_iptbox" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="setnm" type="STRING" size="256"/>
- <Column id="setcd" type="STRING" size="256"/>
- <Column id="trgtflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="setnm"/>
- <Col id="setcd"/>
- <Col id="trgtflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_itemgrupinfo_itemgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="setnm" type="STRING" size="256" sumtext="SET명"/>
- <Column id="setno" type="STRING" size="256" sumtext="SET번호"/>
- <Column id="setrefseq" type="STRING" size="256" sumtext="조회순서"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="trgtflag" type="STRING" size="256" sumtext="대상구분"/>
- <Column id="itemnm" type="STRING" size="256"/>
- <Column id="itemnmcd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_itemdtlinfo_itemdtllist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256" sumtext="선택"/>
- <Column id="status" type="STRING" size="256" sumtext="상태값"/>
- <Column id="supnm" type="STRING" size="256" sumtext="상위아이템명"/>
- <Column id="itemnm" type="STRING" size="256" sumtext="아이템명"/>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="setno" type="INT" size="256" sumtext="SET번호 "/>
- <Column id="itemcd" type="STRING" size="256" sumtext="아이템코드"/>
- <Column id="supcd" type="STRING" size="256" sumtext="상위아이템코드"/>
- <Column id="trgtflag" type="STRING" size="256" sumtext="trgtflag"/>
- <Column id="mainrecflag" type="STRING" size="256" sumtext="recflag"/>
- <Column id="supsetno" type="STRING" size="256" sumtext="상위아이템set 번호"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_trgtflaglist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">G</Col>
- <Col id="nm">합계</Col>
- </Row>
- <Row>
- <Col id="cd">H</Col>
- <Col id="nm">SET</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_cmb_status" 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">D</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_cond_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="recflag" type="STRING" size="256"/>
- <Column id="itemnm" type="STRING" size="256"/>
- <Column id="clscd" type="STRING" size="256"/>
- <Column id="srchflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="recflag">%</Col>
- <Col id="itemnm"/>
- <Col id="clscd"/>
- <Col id="srchflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_clsinfo_clslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="itemcd" type="STRING" size="256" sumtext="Item코드"/>
- <Column id="itemnm" type="STRING" size="256" sumtext="Item명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_itemsrch_itemlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_itemsrch_itemlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256" sumtext="선택"/>
- <Column id="itemcd" type="STRING" size="256" sumtext="Item코드"/>
- <Column id="itemnm" type="STRING" size="256" sumtext="Item명"/>
- <Column id="supcd" type="STRING" size="256" sumtext="상위항목코드"/>
- <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
- <Column id="elmtdefineyn" type="STRING" size="256" sumtext="사용여부"/>
- <Column id="depth" type="STRING" size="256" sumtext="레벨"/>
- <Column id="clincobs" type="STRING" size="256" sumtext="임상관찰"/>
- <Column id="clincobsprcpyn" type="STRING" size="256" sumtext="임상관찰 처방"/>
- <Column id="intake" type="STRING" size="256" sumtext="intake"/>
- <Column id="output" type="STRING" size="256" sumtext="output"/>
- <Column id="catheter" type="STRING" size="256" sumtext="catheter"/>
- <Column id="catheterprcpyn" type="STRING" size="256" sumtext="기타처방"/>
- <Column id="instru" type="STRING" size="256" sumtext="기구 "/>
- <Column id="instruprcpyn" type="STRING" size="256" sumtext="기구 처방"/>
- <Column id="careexec" type="STRING" size="256" sumtext="간호수행"/>
- <Column id="careexecprcpyn" type="STRING" size="256" sumtext="간호수행처방"/>
- <Column id="supsetno" type="STRING" size="256" sumtext="상위그룹set"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_reccharflaglist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256"/>
- <Column id="nm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cd">A</Col>
- <Col id="nm">주체</Col>
- </Row>
- <Row>
- <Col id="cd">B</Col>
- <Col id="nm">값입력</Col>
- </Row>
- <Row>
- <Col id="cd">C</Col>
- <Col id="nm">값조회</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" 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_main_group" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="setno" type="STRING" size="256"/>
- <Column id="setnm" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="setno"/>
- <Col id="setnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_griddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_hidden_itemgrupinfo_itemgruplist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="status" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="setnm" type="STRING" size="256"/>
- <Column id="setno" type="STRING" size="256"/>
- <Column id="setrefseq" type="STRING" size="256"/>
- <Column id="trgtflag" type="STRING" size="256"/>
- <Column id="setcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="status"/>
- <Col id="orddeptcd"/>
- <Col id="setnm"/>
- <Col id="setno"/>
- <Col id="setrefseq"/>
- <Col id="trgtflag"/>
- <Col id="setcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="rdo_trgtflag" propid="value" datasetid="ds_main_iptbox" columnid="trgtflag"/>
- <BindItem id="item1" compid="ipt_setnm" propid="value" datasetid="ds_main_iptbox" columnid="setnm"/>
- <BindItem id="item2" compid="grp_sea.rdo_cathflag" propid="value" datasetid="ds_main_cond_item" columnid="recflag"/>
- <BindItem id="item3" compid="grp_sea.cmb_itemflag" propid="value" datasetid="ds_main_cond_item" columnid="clscd"/>
- <BindItem id="item4" compid="grp_sea.ipt_itemnm" propid="value" datasetid="ds_main_cond_item" columnid="itemnm"/>
- </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";
- var arErrorCode = new HashArray();
- var treedepthcol = 15;
- var treetargetcol = 3;
- var xCONDITEMTLIST = ds_main_cond_item;
- var xItemGrupList = ds_main_itemgrupinfo_itemgruplist;
- var xItemDtlInfo = ds_main_itemdtlinfo_itemdtllist;
- var xItemDtlList = ds_main_itemdtlinfo_itemdtllist;
- var xItemGrupList_HIDDEN = ds_hidden_itemgrupinfo_itemgruplist;
- var xIPTBOX = ds_main_iptbox;
- var xGroup = ds_main_group;
- var xItemSrchPath = ds_main_itemsrch_itemlist;
- function SMMNR04200_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMNR04200_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_itemgruplist);
- grdf_initGrid(grd_srchdtlitem);
- grdf_initGrid(grd_srchitem);
-
- fInitialize();
- }
- function fInitialize()
- {
- dsf_makeValue(ds_send_reqdata, "flag", "string","combo");
-
- var oParam = {};
- oParam.id = "TRMNR04204";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqGetClsItemList";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_clsinfo_clslist=clslist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNR04204";
- tranf_submit(oParam);
- ds_main_cond_item.setColumn(0, "clscd","%");
-
- fGetItemList();
- fGetItemGroupList();
-
- xItemDtlInfo.clearData();
- }
- function fGetItemList()
- {
- dsf_makeValue(ds_send, "recflag","string", xCONDITEMTLIST.getColumn(0, "recflag"));
- dsf_makeValue(ds_send, "itemnm", "string", xCONDITEMTLIST.getColumn(0, "itemnm"));
- dsf_makeValue(ds_send, "clscd", "string", xCONDITEMTLIST.getColumn(0, "clscd"));
- dsf_makeValue(ds_send, "srchflag", "string", xCONDITEMTLIST.getColumn(0, "srchflag"));
-
- var oParam = {};
- oParam.id = "TRMNR04203";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqGetItemSrcList";
- oParam.inds = "iteminfo=ds_send";
- oParam.outds = "ds_main_itemsrch_itemlist=itemlist";
- oParam.async = false;
- oParam.callback = "cf_TRMNR04203";
- tranf_submit(oParam);
-
- if(arErrorCode.pop("TRMNR04203") > -1)
- {
- grd_srchitem.treeinitstatus = "expand,null";
- }
- }
- function cf_TRMNR04203(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- function grd_srchitem_cantreestatuschange(obj:Grid, e:GridTreeStatusEventInfo)
- {
- obj.userdata = 1;
- }
- function fGetItemGroupList()
- {
- var oParam = {};
- oParam.id = "TRMNR04201";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqGetTotalGroupList";
- oParam.inds = "iteminfo=ds_send_reqdata";
- oParam.outds = "ds_main_itemgrupinfo_itemgruplist=itemgruplist";
- oParam.async = false;
- //oParam.callback = "cf_TRMNR04201";
- tranf_submit(oParam);
- }
- function ipt_setnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- btn_saveitem.click();
- }
- }
- function grd_itemgruplist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetItemDtlList();
- }
- function fGetItemDtlList()
- {
- var iRow = ds_main_itemgrupinfo_itemgruplist.rowposition;
-
- if(iRow < 0) return;
-
- var setno = xItemGrupList.getColumn(iRow, "setno");
- var setnm = xItemGrupList.getColumn(iRow, "setnm");
- var trgtflag = xItemGrupList.getColumn(iRow, "trgtflag");
- ipt_setnm.enable = false;
- rdo_trgtflag.enable = false;
- btn_saveitem.enable = false;
-
- xIPTBOX.setColumn(0, "setnm", setnm);
- xIPTBOX.setColumn(0, "trgtflag", trgtflag);
- xGroup.setColumn(0, "setno", setno);
- xGroup.setColumn(0, "setnm", setnm);
-
- dsf_makeValue(ds_send_reqdata, "setno", "int", setno);
- dsf_makeValue(ds_send_reqdata, "trgtflag", "string", trgtflag);
-
- var oParam = {};
- oParam.id = "TRMNR04202";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqGetItemDtlInfo";
- oParam.inds = "itemdtlinfo=ds_send_reqdata";
- oParam.outds = "ds_main_itemdtlinfo_itemdtllist=itemdtllist";
- oParam.async = false;
- oParam.callback = "cf_TRMNR04202";
- tranf_submit(oParam);
- if(arErrorCode.pop("TRMNR04202") > -1)
- {
- ds_main_itemdtlinfo_itemdtllist.updatecontrol = false;
- dsf_setFixVal(ds_main_itemdtlinfo_itemdtllist, "check:false,status:-");
- ds_main_itemdtlinfo_itemdtllist.updatecontrol = true;
- }
- }
- function cf_TRMNR04202(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- function grp_sea_rdo_cathflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fGetItemList();
- }
- function grp_sea_ipt_itemnm_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- obj.updateToDataset();
- grp_sea.btn_search.setFocus();
- fGetItemList();
- }
- }
- function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetItemList();
- }
- function ds_main_itemsrch_itemlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "check")
- {
- obj.setColumn(e.row, "check", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
- }
- }
- function btn_moveitemset_onclick(obj:Button, e:ClickEventInfo)
- {
- fSelectItemMove();
- }
- function fSelectItemMove()
- {
- if(ipt_setnm.enable == true)
- {
- var sChekCnt = 0;
- var sItemLevl = 0;
- var sItemcd = "";
- var sRow = "";
- var sItemnm = "";
- var sMainCnt = 0;
- var sExistsSetNo="";
- var sTrgtFlag = xIPTBOX.getColumn(0, "trgtflag");
-
- for(var itemrow = 0; itemrow < ds_main_itemsrch_itemlist.rowcount; itemrow++)
- {
- if(xItemSrchPath.getColumn(itemrow, "check") == "true")
- {
- sChekCnt ++;
- sItemLevl = eval(xItemSrchPath.getColumn(itemrow, "depth"));
- sItemcd = xItemSrchPath.getColumn(itemrow, "itemcd");
- sRow = itemrow;
- sItemnm = xItemSrchPath.getColumn(itemrow, "itemnm");
- sExistsSetNo = xItemGrupList.lookupExpr("setnm == '"+sItemnm+"' && trgtflag == '"+ sTrgtFlag +"'", "setno");
- }
- }
-
- if(sChekCnt > 1)
- {
- sysf_messageBox("그룹 매핑 항목을 하나만","C002");
- return;
- }
-
- if(sItemLevl == 1)
- {
- sysf_messageBox("분류는 그룹 매핑을","E001");
- return;
- }
-
- if( utlf_isNull(sTrgtFlag) )
- {
- sysf_messageBox("그룹의 구분을 선택","C001");
- rdo_trgtflag.setFocus();
- return;
- }
-
- if ( !utlf_isNull(sExistsSetNo))
- {
- sysf_messageBox("이미 존재하는 셋입니다.","I007");//확인하십시오
- return;
- }
- if(ds_main_itemsrch_itemlist.getColumn(sRow, "clincobsprcpyn") == "Y" || ds_main_itemsrch_itemlist.getColumn(sRow, "catheterprcpyn") == "Y" ||
- ds_main_itemsrch_itemlist.getColumn(sRow, "careexecprcpyn") == "Y")
- {
- sysf_messageBox("처방이 존재하는 항목은 매핑을","E001");
- return;
- }
-
- if(ds_main_itemsrch_itemlist.getColumn(sRow, "clincobs") == "B" )
- {
- sMainCnt++;
- }
-
- if(ds_main_itemsrch_itemlist.getColumn(sRow, "intake") == "B" )
- {
- sMainCnt++;
- }
-
- if(ds_main_itemsrch_itemlist.getColumn(sRow, "output") == "B" )
- {
- sMainCnt++;
- }
-
- if(ds_main_itemsrch_itemlist.getColumn(sRow, "catheter") == "B" )
- {
- sMainCnt++;
- }
-
- if(ds_main_itemsrch_itemlist.getColumn(sRow, "careexec") == "B" )
- {
- sMainCnt++;
- }
-
- if(ds_main_itemsrch_itemlist.getColumn(sRow, "instru") == "B" )
- {
- sMainCnt++;
- }
-
- if( rdo_trgtflag.value == "G" && sMainCnt > 0)
- {
- sysf_messageBox("하나의 기록지에 주체 연계 설정만 되어야 합니다.","E");
- return;
- }
- ds_main_iptbox.setColumn(0, "setnm", sItemnm );
- ds_main_iptbox.setColumn(0, "setcd", sItemcd );
-
- xItemSrchPath.setColumn(sRow, "check", "false");
- }
- else
- {
- var setno = xGroup.getColumn(0, "setno");
- var setnm = xGroup.getColumn(0, "setnm");
- var sItemLevl = 0;
- var itemdtlrow = 0;
- var sItemcd = "";
- var supcd = "";
- var sChkYN = false; // 항목 체크 여부
- var sInsYN = false; // 실제 신규항목 존재여부
- if(utlf_isNull(setnm))
- {
- sysf_messageBox("SET종류를 먼저","C002");
- return;
- }
-
- for(var itemrow = 0; itemrow < ds_main_itemsrch_itemlist.rowcount; itemrow++)
- {
- if(xItemSrchPath.getColumn(itemrow, "check") == "true")
- {
- sChkYN = true;
- sItemLevl = eval(xItemSrchPath.getColumn(itemrow, "depth"));
- sItemcd = xItemSrchPath.getColumn(itemrow, "itemcd");
- supcd = xItemSrchPath.getColumn(itemrow, "supcd");
- xItemSrchPath.setColumn(itemrow, "check", "false");
-
- if(sItemLevl == 1) continue;
-
- if(ds_main_itemdtlinfo_itemdtllist.rowcount > 0 && !utlf_isNull(xItemDtlList.lookup("itemcd", sItemcd, "itemcd"))) continue;
-
- itemdtlrow = ds_main_itemdtlinfo_itemdtllist.addRow();
-
- xItemDtlList.setColumn(itemdtlrow , "status", "I");
- xItemDtlList.setColumn(itemdtlrow , "setno", setno);
- xItemDtlList.setColumn(itemdtlrow , "instcd", xGroup.getColumn(0, "instcd"));
- xItemDtlList.setColumn(itemdtlrow , "itemcd", sItemcd);
- xItemDtlList.setColumn(itemdtlrow , "itemnm", xItemSrchPath.getColumn(itemrow, "itemnm"));
- xItemDtlList.setColumn(itemdtlrow , "supcd", supcd);
-
- xItemDtlList.setColumn(itemdtlrow , "supnm", xItemSrchPath.lookup("itemcd", supcd, "itemnm"));
- xItemDtlList.setColumn(itemdtlrow , "trgtflag", xIPTBOX.getColumn(0, "trgtflag"));
-
- sInsYN = true;
- }
- }
-
- if(!sChkYN)
- {
- sysf_messageBox("등록할 항목을 먼저","C002");
- return;
- }
-
- if(sChkYN == true && sInsYN == false)
- {
- sysf_messageBox("이미 항목 등록이","I002");
- return;
- }
- }
- }
- function btn_selectall_onclick(obj:Button, e:ClickEventInfo)
- {
- for(var itemrow = 0; itemrow < ds_main_itemsrch_itemlist.rowcount; itemrow++)
- {
- xItemSrchPath.setColumn(itemrow, "check","true");
- }
- //setTree(grd_srchitem,13,3,false);
- }
- function btn_selectcancle_onclick(obj:Button, e:ClickEventInfo)
- {
- for(var itemrow = 0; itemrow < ds_main_itemsrch_itemlist.rowcount; itemrow++)
- {
- xItemSrchPath.setColumn(itemrow, "check","");
- }
- //setTree(grd_srchitem,13,3,false);
- }
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- fSendItemInfo();
- }
- function fSendItemInfo()
- {
- var sChkYN = false;
- for(var itemrow = 0; itemrow < ds_main_itemdtlinfo_itemdtllist.rowcount; itemrow++)
- {
- if(ds_main_itemdtlinfo_itemdtllist.getColumn(itemrow, "status") != "-")
- {
- sChkYN = true;
- }
- }
- if(!sChkYN)
- {
- sysf_messageBox("저장할 내역이","I004");
- return;
- }
-
- var update = grdf_getGridUpdateData(grd_srchdtlitem)
- ds_send_griddata.copyData(update, true);
- var oParam = {};
- oParam.id = "TXMNR04202";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqExeItemDtlInfo";
- oParam.inds = "griddata=ds_send_griddata";
- oParam.outds = "ds_main_itemdtlinfo_itemdtllist=itemdtllist";
- oParam.async = false;
- oParam.callback = "cf_TRMNR04202";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMNR04202") > -1)
- {
- ds_main_itemdtlinfo_itemdtllist.updatecontrol = false;
- dsf_setFixVal(ds_main_itemdtlinfo_itemdtllist, "check:false,status:-");
- ds_main_itemdtlinfo_itemdtllist.updatecontrol = true;
- }
- }
- function btn_deleteitemset_onclick(obj:Button, e:ClickEventInfo)
- {
- fDelDetGridRow();
- }
- function fDelDetGridRow()
- {
- var sFrstRow = "";
- var sLastRow = "";
- var selectRows = grdf_getSelectedRows(grd_srchdtlitem);
-
- if(selectRows[0] == ds_main_itemdtlinfo_itemdtllist.rowposition)
- {
- sFrstRow = ds_main_itemdtlinfo_itemdtllist.rowposition;
- sLastRow = parseInt(sFrstRow + selectRows.length);
- }
- else
- {
- sFrstRow = selectRows[0]
- sLastRow = parseInt(selectRows[0] + selectRows.length);
- }
-
- var sChkYN = false;
- for(var i = sFrstRow; i < sLastRow; i++)
- {
- if(ds_main_itemdtlinfo_itemdtllist.getColumn(i, "status") == "-" || ds_main_itemdtlinfo_itemdtllist.getColumn(i, "status") == "I")
- {
- ds_main_itemdtlinfo_itemdtllist.setColumn(i, "status", "D");
- ds_main_itemdtlinfo_itemdtllist.updatecontrol = false;
- ds_main_itemdtlinfo_itemdtllist.setRowType(i, "d");
- ds_main_itemdtlinfo_itemdtllist.updatecontrol = true;
- sChkYN = true;
- }
- else
- {
- ds_main_itemdtlinfo_itemdtllist.setColumn(i, "status", "-");
- ds_main_itemdtlinfo_itemdtllist.updatecontrol = false;
- ds_main_itemdtlinfo_itemdtllist.setRowType(i, "");
- ds_main_itemdtlinfo_itemdtllist.updatecontrol = true;
- sChkYN = true;
- }
- }
-
- if(!sChkYN)
- {
- sysf_messageBox("선택된 항목이","I004");
- return;
- }
- }
- function btn_modifyitem_onclick(obj:Button, e:ClickEventInfo)
- {
- fUpdtItemGroup();
- }
- function fUpdtItemGroup()
- {
- var rowPos = ds_main_itemgrupinfo_itemgruplist.rowposition;
- var setno = xItemGrupList.getColumn(rowPos , "setno");
- var trgtflag = xItemGrupList.getColumn(rowPos , "trgtflag");
- ipt_setnm.enable = true;
- rdo_trgtflag.enable = true;
- btn_saveitem.enable = true;
-
- if(rowPos > -1)
- {
- xItemGrupList_HIDDEN.setColumn(0, "status", "U");
- xItemGrupList_HIDDEN.setColumn(0, "setno", setno);
- xItemGrupList_HIDDEN.setColumn(0, "trgtflag", trgtflag);
-
- ipt_setnm.setFocus();
- }
- else
- {
- sysf_messageBox("SET을 선택한 후 수정해 주십시오.\n수정","E001");
- }
- }
- function btn_additem_onclick(obj:Button, e:ClickEventInfo)
- {
- fAddItemGroup();
- }
- function fAddItemGroup()
- {
- xIPTBOX.setColumn(0, "setnm", "");
- ipt_setnm.enable = true;
- rdo_trgtflag.enable = true;
- btn_saveitem.enable = true;
-
- ds_main_iptbox.setColumn(0, "setnm", "");
- xItemGrupList_HIDDEN.setColumn(0, "status", "I");
- xItemGrupList_HIDDEN.setColumn(0, "setrefseq", 0);
- xItemGrupList_HIDDEN.setColumn(0, "trgtflag", "");
-
- xGroup.setColumn(0, "setno","");
- xGroup.setColumn(0, "setnm","");
-
- ipt_setnm.setFocus();
- xItemDtlInfo.clearData();
- }
- function btn_deleteitem_onclick(obj:Button, e:ClickEventInfo)
- {
- fDelItemGroup();
- }
- function fDelItemGroup()
- {
- var rowPos = ds_main_itemgrupinfo_itemgruplist.rowposition;
- var setno = xItemGrupList.getColumn(rowPos , "setno");
- var trgtflag = xItemGrupList.getColumn(rowPos , "trgtflag");
-
- xItemGrupList_HIDDEN.setColumn(0, "status", "D");
- xItemGrupList_HIDDEN.setColumn(0, "setno", setno);
- xItemGrupList_HIDDEN.setColumn(0, "trgtflag", trgtflag);
-
- ds_main_iptbox.setColumn(0, "setnm", "");
-
- ds_send_savedata.copyData(xItemGrupList_HIDDEN);
-
- var oParam = {};
- oParam.id = "TXMNR04201";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqExeNewItemSetInfo";
- oParam.inds = "itemset=ds_send_savedata";
- oParam.outds = "ds_main_itemgrupinfo_itemgruplist=itemgruplist";
- oParam.async = false;
- oParam.callback = "cf_TXMNR04201";
- tranf_submit(oParam);
- if(arErrorCode.pop("TXMNR04201") > -1)
- {
- xGroup.setColumn(0, "setno","");
- xGroup.setColumn(0, "setnm","");
- }
- xItemDtlInfo.clearData();
- }
- function cf_TXMNR04201(sSvcId, nErrorCode, sErrorMsg)
- {
- arErrorCode.push(sSvcId, nErrorCode);
- if(nErrorCode < 0) return;
- }
- function btn_saveitem_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveItemGroup();
- }
- function fSaveItemGroup()
- {
- var setnm = ds_main_iptbox.getColumn(0, "setnm");
- var setcd = ds_main_iptbox.getColumn(0, "setcd");
- var trgtflag = ds_main_iptbox.getColumn(0, "trgtflag");
-
- if(utlf_isNull(setnm))
- {
- sysf_messageBox("등록할 그룹을 선택 또는 입력","C001");
- return;
- }
-
- if(utlf_isNull(setcd))
- {
- for(var itemrow = 0; itemrow < ds_main_itemsrch_itemlist.rowcount; itemrow++)
- {
- if(setnm == ds_main_itemsrch_itemlist.getColumn(itemrow, "itemnm"))
- {
- if(!utlf_isNull(setnm))
- {
- setcd = ds_main_itemsrch_itemlist.getColumn(itemrow, "itemcd");
- depth = ds_main_itemsrch_itemlist.getColumn(itemrow, "depth");
-
- if(depth != "1")
- {
- itemrow = ds_main_itemsrch_itemlist.rowcount;
- }
- }
- }
- }
- }
-
- if(utlf_isNull(setcd))
- {
- sysf_messageBox("그룹에 매핑할 항목을 찾을 수","I004");
- return;
- }
-
- var status = xItemGrupList_HIDDEN.getColumn(0, "status");
- var setno = xItemGrupList_HIDDEN.getColumn(0, "setno");
- var currow = 0;
-
- xItemGrupList_HIDDEN.setColumn(0, "setnm", setnm);
- xItemGrupList_HIDDEN.setColumn(0, "setcd", setcd);
- xItemGrupList_HIDDEN.setColumn(0, "trgtflag", trgtflag);
-
- if( utlf_isNull(xItemGrupList_HIDDEN.getColumn(0, "trgtflag")))
- {
- sysf_messageBox("그룹의 구분을 선택","C001");
- rdo_trgtflag.setFocus();
- return;
- }
-
- ds_send_savedata.copyData(xItemGrupList_HIDDEN);
-
- var oParam = {};
- oParam.id = "TXMNR04201";
- oParam.service = "carerecapp.RecItemMngt";
- oParam.method = "reqExeNewItemSetInfo";
- oParam.inds = "itemset=ds_send_savedata";
- oParam.outds = "ds_main_itemgrupinfo_itemgruplist=itemgruplist";
- oParam.async = false;
- //oParam.callback = "cf_TXMNR04201";
- tranf_submit(oParam);
-
- ipt_setnm.enable = false;
- rdo_trgtflag.enable = false;
- btn_saveitem.enable = false;
- for(var i = 0; i < ds_main_itemgrupinfo_itemgruplist.rowcount; i++)
- {
- if(status == "U")
- {
- if(setno == xItemGrupList.getColumn(i, "setno"))
- {
- currow = i;
- }
- }
- }
-
- if(currow > -1) ds_main_itemgrupinfo_itemgruplist.rowposition = currow;
- }
- function grd_srchitem_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fClickedGridRow("Item");
- }
- function fClickedGridRow(pFlag)
- {
- var iCol = 0;
- var iRow = 0;
- var sCheck = "";
- switch(pFlag)
- {
- case "Item" :
- iRow = ds_main_itemsrch_itemlist.rowposition;
- iCol = grd_srchitem.currentcol;
- if(iRow < 0) return;
- var sDepth = eval(xItemSrchPath.getColumn(iRow, "depth"));
- var iDepth = 0;
- sCheck = xItemSrchPath.getColumn(iRow, "check");
- var sItemCD = "";
- var sStatus = "";
-
- if(sDepth == 1)
- {
- sItemCD = xItemSrchPath.getColumn(iRow, "itemcd");
- if(iCol == 3)
- {
- for(var i = iRow; i < ds_main_itemsrch_itemlist.rowcount; i++)
- {
- iDepth = eval(xItemSrchPath.getColumn(i, "depth"));
- if(iRow!= i && iDepth==1) break;
-
- if(grd_srchitem.userdata == 1)
- {
- grd_srchitem.userdata = 0;
- return;
- }
-
- var row = grd_srchitem.getTreeRow(iRow);
- if(grd_srchitem.getTreeStatus(row) == 0)
- {
- grd_srchitem.setTreeStatus(row, true);
- }
- else if(grd_srchitem.getTreeStatus(row) == 1)
- {
- grd_srchitem.setTreeStatus(row, false);
- }
- }
- }
- else
- {
- //if() return;
- if(iCol == 1)
- {
- sStatus = sCheck;
- }
- else
- {
- if( sCheck == "true")
- {
- sStatus = "false";
- }
- else
- {
- sStatus = "true";
- }
- xItemSrchPath.setColumn(iRow, "check",sStatus);
- }
-
- for(var i = iRow; i < ds_main_itemsrch_itemlist.rowcount; i++)
- {
- if(xItemSrchPath.getColumn(i, "supcd") == sItemCD)
- {
- xItemSrchPath.setColumn(i, "check",sStatus);
- }
- }
- }
- }
- else
- {
- if(iCol == 1) return;
- if( sCheck == "true")
- {
- xItemSrchPath.setColumn(iRow, "check","false");
- }
- else
- {
- xItemSrchPath.setColumn(iRow, "check","true");
- }
- }
- break;
- }
- }
- function grd_srchitem_oncloseup(obj:Grid, e:GridEditEventInfo)
- {
- obj.showEditor(false);
- }
- ]]></Script>
- </Form>
- </FDL>
|