1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPZBC00500" position="absolute 0 0 1000 700" titletext="사용자 코드관리" oninit="SPZBC00500_oninit" onload="SPZBC00500_onload">
- <Layouts>
- <Layout>
- <Static text="사용자코드 관리" position="absolute 0 0 173 20" id="caption1" class="tit_1"/>
- <Div position="absolute 0 20 490 700" id="grp_left" anchor="left top bottom">
- <Layouts>
- <Layout>
- <Static text="사용자코드 항목" position="absolute 0 7 220 23" align="align:left middle;" id="caption6" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 23 490 29" linetype="horizontal" id="line2" class="line_10" anchor="default"/>
- <Div position="absolute 0 28 490 86" id="roundrect2" type="roundrectangle" anchor="default" class="div_SA2">
- <Layouts>
- <Layout/>
- </Layouts>
- </Div>
- <Static text="코드 :" position="absolute 6 37 53 54" id="caption2" class="search_name" anchor="default"/>
- <Edit position="absolute 87 35 187 54" id="ipt_search_usercd" class="input_search" enableevent="true" anchor="default" onkeydown="grp_left_ipt_search_usercd_onkeydown"/>
- <Static text="코드명 :" position="absolute 215 37 273 54" id="caption9" class="search_name" anchor="default"/>
- <Edit position="absolute 277 35 377 54" id="ipt_search_codenm" class="input_search" anchor="default" onkeydown="grp_left_ipt_search_codenm_onkeydown"/>
- <Shape position="absolute 408 32 417 82" linetype="vertical" id="line1" anchor="default"/>
- <Button position="absolute 426 47 482 67" id="btn_search_muscd" class="btn1" text="조회" anchor="default" onclick="grp_left_btn_search_muscd_onclick"/>
- <Grid position="absolute 0 108 490 680" id="grd_muscdlist" binddataset="ds_main_muscdlist" selecttype="treecell" useinputpanel="false" treeusecheckbox="false" anchor="left top bottom" autofittype="col" oncellclick="grp_left_grd_muscdlist_oncellclick" ondrag="grp_left_grd_muscdlist_ondrag" ondragleave="grp_left_grd_muscdlist_ondragleave" ondragmove="grp_left_grd_muscdlist_ondragmove" ondrop="grp_left_grd_muscdlist_ondrop" cantreestatuschange="grp_left_grd_muscdlist_cantreestatuschange">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="489"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell displaytype="normal" text="코드-코드명"/>
- </Band>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" style="background:EXPR(fDragOverColorChng(currow));background2:EXPR(fDragOverColorChng(currow));" text="bind:displaynm" treestartlevel="1" treelevel="bind:levl" autosizecol="limitmax"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption00" text="상세코드 :" class="search_name" position="absolute 6 60 77 77"/>
- <Edit id="ipt_search_cdid" taborder="1" class="input_search" position="absolute 87 58 187 77" onkeydown="grp_left_ipt_search_cdid_onkeydown"/>
- <CheckBox id="chk_propcp" taborder="2" text="종료된 상세코드 포함" value="N" truevalue="Y" falsevalue="N" position="absolute 215 58 376 78" onclick="grp_left_chk_propcp_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 500 20 1000 153" id="grp_right_top" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="기본정보" position="absolute 0 7 220 23" align="align:left middle;" id="caption3" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 23 500 29" linetype="horizontal" id="line5" class="line_10" anchor="left top right"/>
- <Button position="absolute 304 3 346 23" id="button1" class="btn2" text="삭제" onclick="grp_right_top_button1_onclick" anchor="top right"/>
- <Button position="absolute 349 3 391 23" id="button2" class="btn2" text="신규" onclick="grp_right_top_button2_onclick" anchor="top right"/>
- <Button position="absolute 394 3 436 23" id="button7" class="btn2" text="수정" onclick="grp_right_top_button7_onclick" anchor="top right"/>
- <Button position="absolute 441 3 497 23" id="btn_SaveMuscd" class="btn4" text="저장" anchor="top right" onclick="grp_right_top_btn_SaveMuscd_onclick"/>
- <Static text="코드" position="absolute 0 28 60 51" align="align:center middle;" id="caption4" class="cell_1" anchor="default"/>
- <Edit position="absolute 62 30 162 49" id="ipt_usercd" class="input" anchor="default" maxlength="5" style="font:arial,9,bold;"/>
- <Static text="상위코드" position="absolute 169 28 229 51" align="align:center middle;" id="caption10" class="cell_1" anchor="default"/>
- <Edit position="absolute 231 30 331 49" id="ipt_supcd" class="input" anchor="left top right" maxlength="5"/>
- <Static text="코드명" position="absolute 0 53 60 76" align="align:center middle;" id="caption5" class="cell_1" anchor="default"/>
- <Edit position="absolute 62 55 500 74" id="ipt_codenm" class="input" anchor="left top right"/>
- <Static text="비고" position="absolute 0 78 60 133" align="align:center middle;" id="caption8" class="cell_1" anchor="default"/>
- <TextArea position="absolute 62 80 500 133" id="txt_rmk" enable="false" anchor="left top right"/>
- <Static id="caption00" text="정렬순서" class="cell_1" position="absolute 339 28 399 51" anchor="default"/>
- <Edit id="ipt_seqno" taborder="1" class="input" position="absolute 400 30 500 49" inputtype="number" maxlength="5" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 500 154 1000 290" id="grp_right_middle" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="권한정보" position="absolute 0 7 220 27" align="align:left middle;" id="caption7" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 23 500 29" linetype="horizontal" id="line3" class="line_10" anchor="left top right"/>
- <Button position="absolute 441 3 497 23" id="btn_SaveAuscd" class="btn4" text="저장" anchor="top right" onclick="grp_right_middle_btn_SaveAuscd_onclick"/>
- <Button position="absolute 394 3 436 23" id="button5" class="btn2" text="삭제" onclick="grp_right_middle_button5_onclick" anchor="top right"/>
- <Button position="absolute 329 3 392 23" id="button11" class="btn2" text="부서추가" onclick="grp_right_middle_button11_onclick" anchor="top right"/>
- <Grid position="absolute 0 28 500 135" id="grd_auscdlist" binddataset="ds_main_auscdlist" autofittype="col" anchor="left top right" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="120"/>
- <Column size="200"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="normal" text="hardcdno"/>
- <Cell col="2" displaytype="normal" text="구분"/>
- <Cell col="3" displaytype="normal" text="권한"/>
- <Cell col="4" displaytype="normal" text="부서코드/사번"/>
- <Cell col="5" displaytype="normal" text="부서명/사용자명"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="normal" text="bind:hardcdno"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:center;" text="bind:authcls" combodataset="ds_authcls" combocodecol="value" combodatacol="label"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="align:center;" text="bind:authtype" combodataset="ds_authtype" combocodecol="value" combodatacol="label"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:center;" text="bind:authtrgt" editautoselect="true"/>
- <Cell col="5" displaytype="normal" style="align:left middle;" text="bind:authtrgtnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="button00" taborder="1" text="사용자추가" class="btn2" position="absolute 251 3 327 23" anchor="top right" onclick="grp_right_middle_button00_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 500 289 1000 700" id="grp_right_bottom" anchor="all">
- <Layouts>
- <Layout>
- <Static text="상세코드 리스트" position="absolute 0 7 220 27" align="align:left middle;" id="caption11" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 47 500 53" linetype="horizontal" id="line6" class="line_10" anchor="left top right"/>
- <Button position="absolute 441 3 497 23" id="btn_SaveDuscd" class="btn4" text="저장" anchor="top right" onclick="grp_right_bottom_btn_SaveDuscd_onclick"/>
- <Button position="absolute 349 3 391 23" id="button8" class="btn2" text="추가" onclick="grp_right_bottom_button8_onclick" anchor="top right"/>
- <Button position="absolute 393 3 435 23" id="button9" class="btn2" text="삭제" onclick="grp_right_bottom_button9_onclick" anchor="top right"/>
- <Grid position="absolute 0 52 500 411" id="grd_duscdlist" binddataset="ds_main_duscdlist" style="align:center middle;" autosizingtype="row" extendsizetype="row" anchor="all" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="35"/>
- <Column size="80"/>
- <Column size="200"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="150"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="normal" text="hardcdno"/>
- <Cell col="2" displaytype="normal" text="순번"/>
- <Cell col="3" displaytype="normal" text="코드"/>
- <Cell col="4" displaytype="normal" text="코드명"/>
- <Cell col="5" displaytype="normal" text="시작일자"/>
- <Cell col="6" displaytype="normal" text="종료일자"/>
- <Cell col="7" text="비고"/>
- <Cell col="8" displaytype="normal" text="OPTION1"/>
- <Cell col="9" displaytype="normal" text="OPTION2"/>
- <Cell col="10" displaytype="normal" text="OPTION3"/>
- <Cell col="11" displaytype="normal" edittype="text" style="align:center;" text="OPTION4"/>
- <Cell col="12" text="OPTION5"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="normal" text="bind:hardcdno"/>
- <Cell col="2" displaytype="normal" edittype="text" style="align:center;" text="bind:seqno"/>
- <Cell col="3" displaytype="normal" edittype="text" style="align:center;" text="bind:cdid" editautoselect="true"/>
- <Cell col="4" displaytype="normal" edittype="text" style="align:left middle;" text="bind:cdnm" editautoselect="true" autosizerow="limitmin"/>
- <Cell col="5" displaytype="date" edittype="date" text="bind:fromdd"/>
- <Cell col="6" displaytype="date" edittype="date" text="bind:todd"/>
- <Cell col="7" edittype="text" text="bind:rmk"/>
- <Cell col="8" displaytype="normal" edittype="text" style="align:left middle;" text="bind:option1"/>
- <Cell col="9" displaytype="normal" edittype="text" style="align:left middle;" text="bind:option2"/>
- <Cell col="10" displaytype="normal" edittype="text" style="align:left middle;" text="bind:option3"/>
- <Cell col="11" displaytype="normal" edittype="text" style="align:left middle;" text="bind:option4"/>
- <Cell col="12" edittype="text" style="align:left middle;" text="bind:option5"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_excel" taborder="1" text="Excel" onclick="btn_excel_onclick" class="btn7" position="absolute 274 3 337 23" anchor="top right"/>
- <Button id="button00" taborder="2" text="처방추가" class="btn2" position="absolute 161 26 224 46" anchor="top right" onclick="grp_right_bottom_button00_onclick"/>
- <Button id="button01" taborder="3" text="환자추가" class="btn2" position="absolute 434 26 497 46" anchor="top right" onclick="grp_right_bottom_button01_onclick"/>
- <Button id="button02" taborder="4" text="사용자추가" class="btn2" position="absolute 356 26 432 46" anchor="top right" onclick="grp_right_bottom_button02_onclick"/>
- <Button id="button03" taborder="5" text="부서추가" class="btn2" position="absolute 291 26 354 46" anchor="top right" onclick="grp_right_bottom_button03_onclick"/>
- <Button id="button04" taborder="6" text="진단추가" class="btn2" position="absolute 226 26 289 46" anchor="top right" onclick="grp_right_bottom_button04_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_muscdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usercd" type="STRING" size="256"/>
- <Column id="codenm" type="STRING" size="256"/>
- <Column id="supcd" type="STRING" size="256"/>
- <Column id="seqno" type="STRING" size="256"/>
- <Column id="rmk" type="STRING" size="256"/>
- <Column id="authtype" type="STRING" size="256"/>
- <Column id="status" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_duscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usercd" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="oldcdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="seqno" type="STRING" size="256"/>
- <Column id="oldseqno" type="STRING" size="256"/>
- <Column id="rmk" type="STRING" size="256"/>
- <Column id="option1" type="STRING" size="256"/>
- <Column id="option2" type="STRING" size="256"/>
- <Column id="option3" type="STRING" size="256"/>
- <Column id="option4" type="STRING" size="256"/>
- <Column id="option5" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_auscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ahrcdlist>
- <hardcdno/>
- <authclscd/>
- <authtypecd/>
- <authtrgtcd/>
- <authtrgtnm/>
- </ahrcdlist>
- <ColumnInfo>
- <Column id="usercd" type="STRING" size="256"/>
- <Column id="authcls" type="STRING" size="256"/>
- <Column id="authtype" type="STRING" size="256"/>
- <Column id="authtrgt" type="STRING" size="256"/>
- <Column id="authtrgtnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- <ahrcdlist>
- <hardcdno/>
- <authclscd/>
- <authtypecd/>
- <authtrgtcd/>
- <authtrgtnm/>
- </ahrcdlist>
- </Dataset>
- <Dataset id="ds_main_muscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="levl" type="STRING" size="256"/>
- <Column id="displaynm" type="STRING" size="256"/>
- <Column id="usercd" type="STRING" size="256"/>
- <Column id="codenm" type="STRING" size="256"/>
- <Column id="supcd" type="STRING" size="256"/>
- <Column id="rmk" type="STRING" size="256"/>
- </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="deptcd" type="STRING" size="256"/>
- <Column id="userid" type="STRING" size="256"/>
- <Column id="usercd" type="STRING" size="256"/>
- <Column id="codenm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="endyn" type="STRING" size="256"/>
- <Column id="adminyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptcd"/>
- <Col id="userid"/>
- <Col id="usercd"/>
- <Col id="codenm"/>
- <Col id="cdid"/>
- <Col id="endyn"/>
- <Col id="adminyn"/>
- </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_authcls" 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">P</Col>
- </Row>
- <Row>
- <Col id="label">부서</Col>
- <Col id="value">D</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_authtype" 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">A</Col>
- </Row>
- <Row>
- <Col id="value">E</Col>
- <Col id="label">저장</Col>
- </Row>
- <Row>
- <Col id="label">조회</Col>
- <Col id="value">R</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_left.ipt_search_usercd" propid="value" datasetid="ds_main_cond" columnid="usercd"/>
- <BindItem id="item1" compid="grp_left.ipt_search_codenm" propid="value" datasetid="ds_main_cond" columnid="codenm"/>
- <BindItem id="item2" compid="grp_right_top.ipt_usercd" propid="value" datasetid="ds_main_muscdinfo" columnid="usercd"/>
- <BindItem id="item3" compid="grp_right_top.ipt_supcd" propid="value" datasetid="ds_main_muscdinfo" columnid="supcd"/>
- <BindItem id="item4" compid="grp_right_top.ipt_codenm" propid="value" datasetid="ds_main_muscdinfo" columnid="codenm"/>
- <BindItem id="item5" compid="grp_right_top.txt_rmk" propid="value" datasetid="ds_main_muscdinfo" columnid="rmk"/>
- <BindItem id="item6" compid="grp_left.ipt_search_cdid" propid="value" datasetid="ds_main_cond" columnid="cdid"/>
- <BindItem id="item7" compid="grp_left.chk_propcp" propid="value" datasetid="ds_main_cond" columnid="endyn"/>
- <BindItem id="item8" compid="grp_right_top.ipt_seqno" propid="value" datasetid="ds_main_muscdinfo" columnid="seqno"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2019-04-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2019-04-19 엄영만 Create
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- var g_prevmouserow = -1;
- function SPZBC00500_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grp_right_middle.grd_auscdlist);
- grdf_initGrid(grp_right_bottom.grd_duscdlist);
- }
- function SPZBC00500_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize_SPZBC00500();
-
- grdf_setRowTypeIcon(grp_right_middle.grd_auscdlist, 0);
- grdf_setRowTypeIcon(grp_right_bottom.grd_duscdlist, 0);
-
- grdf_setToolTipBind(grp_right_middle.grd_auscdlist);
- grdf_setToolTipBind(grp_right_bottom.grd_duscdlist);
- grdf_setToolTipBind(grp_left.grd_muscdlist);
- }
- function grp_left_ipt_search_usercd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- fGetMuscdList();
- }
- }
- function grp_left_ipt_search_codenm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- fGetMuscdList();
- }
- }
- function grp_left_ipt_search_cdid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- fGetMuscdList();
- }
- }
- function grp_left_chk_propcp_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- fGetMuscdList();
- }
- function grp_left_btn_search_muscd_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetMuscdList();
- }
- function grp_left_grd_muscdlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fSetUscdInfo();
- }
- function grp_right_top_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var sUserCd = ds_main_muscdinfo.getColumn(0, "usercd");
- if(utlf_isNull(sUserCd)) {
- alert("선택 된 사용자코드가 없습니다.");
- return;
- }
-
- var sStatus = ds_main_muscdinfo.getColumn(0, "status");
- if(sStatus == "u" || sStatus == "i" ) {
- alert("신규 또는 수정중인 코드는 삭제 할수 없습니다.");
- return;
- }
-
- var sAdminYn = ds_main_cond.getColumn(0, "adminyn");
- var sAuthType = ds_main_muscdinfo.getColumn(0, "authtype");
- if(sAdminYn == "Y" || sAuthType == "A") {
- ds_main_muscdinfo.setColumn(0, "status", "d"); // 입력 설정
-
- fSaveMUscdInfo();
- } else {
- alert("삭제 권한이 없습니다.");
- return;
- }
- }
- function grp_right_top_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- var sAdminYn = ds_main_cond.getColumn(0, "adminyn");
- if(sAdminYn == "Y") {
- var nRow = ds_main_muscdlist.rowposition;
- var sUserCd = ds_main_muscdlist.getColumn(nRow, "usercd");
-
- ds_main_muscdinfo.clearData();
- ds_main_duscdlist.clearData();
- ds_main_auscdlist.clearData();
-
- ds_main_muscdinfo.addRow();
- ds_main_muscdinfo.setColumn(0, "status", "i"); // 입력 설정
- ds_main_muscdinfo.setColumn(0, "authtype", "A"); // 저장 버튼을 사용할수 있도록 설정
- ds_main_muscdinfo.setColumn(0, "supcd", sUserCd);
-
- grp_right_top.btn_SaveMuscd.enable = true; // 저장버튼 활성화
- grp_right_top.ipt_usercd.enable = true;
- grp_right_top.ipt_codenm.enable = true;
- grp_right_top.ipt_supcd.enable = true;
- grp_right_top.ipt_seqno.enable = true;
- grp_right_top.txt_rmk.enable = true;
- } else {
- alert("입력 권한이 없습니다.");
- return;
- }
- }
- function grp_right_top_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- var sUserCd = ds_main_muscdinfo.getColumn(0, "usercd");
- if(utlf_isNull(sUserCd)) {
- alert("선택 된 사용자코드가 없습니다.");
- return;
- }
-
- var sStatus = ds_main_muscdinfo.getColumn(0, "status");
- if(sStatus == "i" || sStatus == "d" ) {
- alert("신규 또는 삭제 중인 코드는 수정 할수 없습니다.");
- return;
- }
-
- var sAdminYn = ds_main_cond.getColumn(0, "adminyn");
- var sAuthType = ds_main_muscdinfo.getColumn(0, "authtype");
- if(sAdminYn == "Y" || sAuthType == "A") {
- ds_main_muscdinfo.setColumn(0, "status", "u"); // 수정 설정
-
- grp_right_top.ipt_usercd.enable = false;
- grp_right_top.ipt_codenm.enable = true;
- grp_right_top.ipt_supcd.enable = true;
- grp_right_top.ipt_seqno.enable = true;
- grp_right_top.txt_rmk.enable = true;
- } else {
- alert("수정 권한이 없습니다.");
- return;
- }
- }
- function grp_right_top_btn_SaveMuscd_onclick(obj:Button, e:ClickEventInfo)
- {
- var sAdminYn = ds_main_cond.getColumn(0, "adminyn");
- var sAuthType = ds_main_muscdinfo.getColumn(0, "authtype");
- if(sAdminYn == "Y" || sAuthType == "A") {
- fSaveMUscdInfo();
- } else {
- alert("저장 권한이 없습니다.");
- return;
- }
- }
- function grp_right_middle_btn_SaveAuscd_onclick(obj:Button, e:ClickEventInfo)
- {
- var sAdminYn = ds_main_cond.getColumn(0, "adminyn");
- var sAuthType = ds_main_muscdinfo.getColumn(0, "authtype");
- if(sAdminYn == "Y" || sAuthType == "A") {
- fSaveAUscdList();
- } else {
- alert("저장 권한이 없습니다.");
- return;
- }
- }
- function grp_right_middle_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- var cur_row = "";
- var iStatus = "";
- var sUserCd = ds_main_muscdinfo.getColumn(0, "usercd");
- if(utlf_isNull(sUserCd)) {
- alert("선택 된 사용자 코드가 없습니다.");
- return;
- }
-
- var selectedRows = grdf_getSelectedRows(grp_right_middle.grd_auscdlist);
- for( var i = selectedRows.length-1; i >= 0 ; i--) {
- cur_row = selectedRows[i];
- iStatus = ds_main_auscdlist.getRowType(cur_row);
-
- if (iStatus == 2) { // 새로 삽입된 행이면
- ds_main_auscdlist.deleteRow(cur_row);
- } else if (iStatus == 8) { // 삭제 상태이면
- grdf_setStatus(grp_right_middle.grd_auscdlist, "", [cur_row])
- } else {
- grdf_setStatus(grp_right_middle.grd_auscdlist, "D", [cur_row])
- }
- }
- }
- function grp_right_middle_button11_onclick(obj:Button, e:ClickEventInfo)
- {
- fAuscdListGridAdd("D");
- }
- function grp_right_middle_button00_onclick(obj:Button, e:ClickEventInfo)
- {
- fAuscdListGridAdd("U");
- }
- /*
- * 권한코드리스트에 항목 추가
- * sFlag = D:부서, U:사용자
- */
- function fAuscdListGridAdd(sFlag){
- var sAuthCls = "";
- var sAuthTrgt = "";
- var sAuthTrgtNm = "";
- var sUserCd = ds_main_muscdinfo.getColumn(0, "usercd");
- if(utlf_isNull(sUserCd)) {
- alert("선택 된 사용자코드가 없습니다.");
- return;
- }
-
- if(sFlag == "D") { // 부서
- var sReturn = appf_openDeptCodeList("dutplceinstcd", sysf_getUserInfo("dutplceinstcd"), "deptnm", "", "", "", "", "deptcd depthngnm cntctel");
-
- sAuthCls = "D";
- sAuthTrgt = sReturn.deptcd;
- sAuthTrgtNm = sReturn.depthngnm;
-
- if(utlf_isNull(sAuthTrgt)) {
- return;
- }
-
- } else if(sFlag == "U") { // 사용자
- var sReturn = appf_openUserInfo('usernm', '', '', '', '');
- sReturn = utlf_transNullToEmpty(sReturn.userInfo).split('|');
-
- sAuthCls = "P";
- sAuthTrgt = sReturn[0];
- sAuthTrgtNm = sReturn[1];
-
- if(utlf_isNull(sAuthTrgt)) {
- return;
- }
-
- } else {
- sAuthCls = "P";
- sAuthTrgt = "";
- sAuthTrgtNm = "";
- }
-
- ds_main_auscdlist.addRow();
- grp_right_middle.grd_auscdlist.showEditor(true);
-
- var nRow = ds_main_auscdlist.rowposition;
- ds_main_auscdlist.setColumn(nRow, "usercd", sUserCd);
- ds_main_auscdlist.setColumn(nRow, "authcls", sAuthCls);
- ds_main_auscdlist.setColumn(nRow, "authtrgt", sAuthTrgt);
- ds_main_auscdlist.setColumn(nRow, "authtrgtnm", sAuthTrgtNm);
- ds_main_auscdlist.setColumn(nRow, "authtype", "R");
- }
- function grp_right_bottom_btn_SaveDuscd_onclick(obj:Button, e:ClickEventInfo)
- {
- var sAdminYn = ds_main_cond.getColumn(0, "adminyn");
- var sAuthType = ds_main_muscdinfo.getColumn(0, "authtype");
- if(sAdminYn == "Y" || sAuthType == "A" || sAuthType == "E") {
- fSaveDUscdList();
- } else {
- alert("저장 권한이 없습니다.");
- return;
- }
- }
- function grp_right_bottom_button8_onclick(obj:Button, e:ClickEventInfo)
- {
- fDuscdListGridAdd(); // 상세항목 추가
- }
- function grp_right_bottom_button9_onclick(obj:Button, e:ClickEventInfo)
- {
- var cur_row = "";
- var iStatus = "";
- var sUserCd = ds_main_muscdinfo.getColumn(0, "usercd");
- if(utlf_isNull(sUserCd)) {
- alert("선택 된 사용자코드가 없습니다.");
- return;
- }
-
- var selectedRows = grdf_getSelectedRows(grp_right_bottom.grd_duscdlist);
- for( var i = selectedRows.length-1; i >= 0 ; i--) {
- cur_row = selectedRows[i];
- iStatus = ds_main_duscdlist.getRowType(cur_row);
-
- if (iStatus == 2) { // 새로 삽입된 행이면
- ds_main_duscdlist.deleteRow(cur_row);
- } else if (iStatus == 8) { // 삭제 상태이면
- grdf_setStatus(grp_right_bottom.grd_duscdlist, "", [cur_row])
- } else {
- grdf_setStatus(grp_right_bottom.grd_duscdlist, "D", [cur_row])
- }
- }
- }
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fInitialize_SPZBC00500(){
- var sAdminYn = "N";
- if(appf_ContainsUserCD("00001", sysf_getUserInfo("userid"))) {
- sAdminYn = "Y";
- }
-
- ds_main_cond.setColumn(0, "userid", sysf_getUserInfo("userid"));
- ds_main_cond.setColumn(0, "deptcd", sysf_getUserInfo("dutplcecd"));
- ds_main_cond.setColumn(0, "adminyn", sAdminYn);
-
- fGetMuscdList();
- }
- /**
- * @desc : 사용자코드 리스트 조회
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fGetMuscdList(){
- ds_main_muscdinfo.clearData();
- ds_main_muscdinfo.addRow();
-
- ds_main_muscdlist.clearData();
- // ds_main_muscdinfo.clearData();
- ds_main_duscdlist.clearData();
- ds_main_auscdlist.clearData();
-
- ds_main_cond.setColumn(0, "usercd", grp_left.ipt_search_usercd.value);
- ds_main_cond.setColumn(0, "codenm", grp_left.ipt_search_codenm.value);
-
- var oParam = {};
- oParam.id = "TRZBC00501";
- oParam.service = "basiccodeapp.UserCode";
- oParam.method = "reqGetUserCodeTreeList";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_muscdlist=muscdlist";
- oParam.async = false;
- tranf_submit(oParam);
-
- grdf_expandDepth(grp_left.grd_muscdlist, 3);
-
- //input박스 비활성화
- grp_right_top.ipt_usercd.enable = false;
- grp_right_top.ipt_codenm.enable = false;
- grp_right_top.ipt_supcd.enable = false;
- grp_right_top.ipt_seqno.enable = false;
- grp_right_top.txt_rmk.enable = false;
-
- // 저장버튼 비활성화
- grp_right_top.btn_SaveMuscd.enable = false;
- grp_right_middle.btn_SaveAuscd.enable = false;
- grp_right_bottom.btn_SaveDuscd.enable = false;
- }
- /**
- * @desc : 사용자코드 리스트 클릭시 기본정보 설정
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSetUscdInfo(){
- var nRow = ds_main_muscdlist.rowposition;
- var sUserCd = ds_main_muscdlist.getColumn(nRow, "usercd");
- var sEndYn = ds_main_cond.getColumn(0, "endyn");
-
- if(!utlf_isNull(sUserCd)) {
- dsf_makeValue(ds_send_reqdata, "userid","string", sysf_getUserInfo("userid"));
- dsf_makeValue(ds_send_reqdata, "deptcd","string", sysf_getUserInfo("dutplcecd"));
- dsf_makeValue(ds_send_reqdata, "usercd","string", sUserCd);
- dsf_makeValue(ds_send_reqdata, "endyn", "string", sEndYn);
-
- var oParam = {};
- oParam.id = "TRZBC00502";
- oParam.service = "basiccodeapp.UserCode";
- oParam.method = "reqGetUserCodeInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_muscdinfo=muscdinfo ds_main_auscdlist=auscdlist ds_main_duscdlist=duscdlist";
- oParam.async = false;
- if(tranf_submit(oParam)) {
- ds_main_muscdinfo.addColumn("status", "string");
-
- //input박스 비활성화
- grp_right_top.ipt_usercd.enable = false;
- grp_right_top.ipt_codenm.enable = false;
- grp_right_top.ipt_supcd.enable = false;
- grp_right_top.ipt_seqno.enable = false;
- grp_right_top.txt_rmk.enable = false;
-
- var sAdminYn = ds_main_cond.getColumn(0, "adminyn");
- var sAuthType = ds_main_muscdinfo.getColumn(0, "authtype");
- if(sAdminYn == "Y" || sAuthType == "A") {
- grp_right_top.btn_SaveMuscd.enable = true;
- grp_right_middle.btn_SaveAuscd.enable = true;
- grp_right_bottom.btn_SaveDuscd.enable = true;
- } else if(sAuthType == "E"){
- grp_right_top.btn_SaveMuscd.enable = false;
- grp_right_middle.btn_SaveAuscd.enable = false;
- grp_right_bottom.btn_SaveDuscd.enable = true;
- } else {
- grp_right_top.btn_SaveMuscd.enable = false;
- grp_right_middle.btn_SaveAuscd.enable = false;
- grp_right_bottom.btn_SaveDuscd.enable = false;
- }
- } else {
- grp_right_top.btn_SaveMuscd.enable = false;
- grp_right_middle.btn_SaveAuscd.enable = false;
- grp_right_bottom.btn_SaveDuscd.enable = false;
- }
- }
- }
- /**
- * @desc : 사용자코드 기본정보 저장
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSaveMUscdInfo(){
-
- var sMsg = "";
- var sUserCd = ds_main_muscdinfo.getColumn(0, "usercd");
- var sStatus = ds_main_muscdinfo.getColumn(0, "status");
- if(sStatus == "i") {
- sMsg = "사용자코드[ " + sUserCd + " ]의 기본정보를 입력 하시겠습니까?";
- } else if(sStatus == "u") {
- sMsg = "사용자코드[ " + sUserCd + " ]의 기본정보를 수정 하시겠습니까?";
- } else {
- sMsg = "사용자코드[ " + sUserCd + " ]의 기본정보를 삭제 하시겠습니까?";
- }
-
- if( sysf_messageBox(sMsg, "Q999") == 6 ){
- var oParam = {};
- oParam.id = "TXZBC00501";
- oParam.service = "basiccodeapp.UserCode";
- oParam.method = "reqExeSaveMUserCodeInfo";
- oParam.inds = "req=ds_main_muscdinfo";
- oParam.outds = "";
- oParam.async = false;
- if(tranf_submit(oParam)) {
- fGetMuscdList();
- }
- }
- }
- /**
- * @desc : 사용자코드 상세 리스트 저장
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSaveDUscdList(){
- var sUserCd = ds_main_muscdinfo.getColumn(0, "usercd");
-
- if( sysf_messageBox("사용자코드[ " + sUserCd + " ]의 상세코드","Q002") == 6 ){
- dsf_createDs("ds_send_duscddata");
- var updateData = grdf_getGridUpdateData(grp_right_bottom.grd_duscdlist);
-
- grdf_setStatusColumn(updateData, "status");
- ds_send_duscddata.copyData(updateData, true);
- var oParam = {};
- oParam.id = "TXZBC00502";
- oParam.service = "basiccodeapp.UserCode";
- oParam.method = "reqExeSaveDUserCodeList";
- oParam.inds = "req=ds_send_duscddata";
- oParam.outds = "";
- oParam.async = false;
- if(tranf_submit(oParam)) {
- fSetUscdInfo();
- }
- }
- }
- /**
- * @desc : 사용자코드 권한 리스트 저장
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSaveAUscdList(){
- var sUserCd = ds_main_muscdinfo.getColumn(0, "usercd");
-
- if( sysf_messageBox("사용자코드[ " + sUserCd + " ]의 권한정보를","Q002") == 6 ){
- dsf_createDs("ds_send_auscddata");
- var updateData = grdf_getGridUpdateData(grp_right_middle.grd_auscdlist);
-
- grdf_setStatusColumn(updateData, "status");
- ds_send_auscddata.copyData(updateData, true);
- var oParam = {};
- oParam.id = "TXZBC00503";
- oParam.service = "basiccodeapp.UserCode";
- oParam.method = "reqExeSaveAUserCodeList";
- oParam.inds = "req=ds_send_auscddata";
- oParam.outds = "";
- oParam.async = false;
- if(tranf_submit(oParam)) {
- fSetUscdInfo();
- }
- }
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- var sUserCd = ds_main_muscdinfo.getColumn(0, "usercd");
- if(utlf_isNull(sUserCd)) {
- alert("선택 된 사용자코드가 없습니다.");
- return;
- }
-
- grdf_exportExcel(grp_right_bottom.grd_duscdlist, "사용자코드" + sUserCd, sUserCd, false, null, "user", true);
- }
- function grp_right_bottom_button00_onclick(obj:Button, e:ClickEventInfo)
- {
- fDuscdListGridAdd("C"); // 처방
- }
- function grp_right_bottom_button01_onclick(obj:Button, e:ClickEventInfo)
- {
- fDuscdListGridAdd("P"); // 환자
- }
- function grp_right_bottom_button02_onclick(obj:Button, e:ClickEventInfo)
- {
- fDuscdListGridAdd("U"); // 사용자
- }
- function grp_right_bottom_button03_onclick(obj:Button, e:ClickEventInfo)
- {
- fDuscdListGridAdd("D"); // 부서
- }
- function grp_right_bottom_button04_onclick(obj:Button, e:ClickEventInfo)
- {
- fDuscdListGridAdd("I"); // 진단
- }
- /*
- * 상세코드리스트에 항목 추가
- * sFlag = D:부서, U:사용자, P:환자, C:처방코드, I:진단
- */
- function fDuscdListGridAdd(sFlag){
- var sCdId = "";
- var sCdNm = "";
- var sUserCd = ds_main_muscdinfo.getColumn(0, "usercd");
- if(utlf_isNull(sUserCd)) {
- alert("선택 된 사용자코드가 없습니다.");
- return;
- }
-
- if(sFlag == "C") { // 처방코드
- frmf_setParameter("SPMMB21700_recive_srchflag", "prcpcd");
-
- frmf_modal("SPMMB21700","SPMMB21700","","","","","","","","","","","M");
-
- sCdId = frmf_getParameter("SPMMB21700_prcpcd");
- sCdNm = frmf_getParameter("SPMMB21700_prcpnm");
-
- if(utlf_isNull(sCdId)) {
- return;
- }
-
- } else if(sFlag == "D") { // 부서
- var sReturn = appf_openDeptCodeList("dutplceinstcd", sysf_getUserInfo("dutplceinstcd"), "deptnm", "", "", "", "", "deptcd depthngnm cntctel");
-
- sCdId = sReturn.deptcd;
- sCdNm = sReturn.depthngnm;
-
- if(utlf_isNull(sCdId)) {
- return;
- }
-
- } else if(sFlag == "P") { // 환자
- frmf_modal("SPPMC02500","SPPMC02500","","","","","","","","","","","M");
-
- sCdId = ds_patinfolist.getColumn(0,"pid");
- sCdNm = ds_patinfolist.getColumn(0,"hngnm");
-
- if(utlf_isNull(sCdId)) {
- return;
- }
-
- } else if(sFlag == "I") { // 진단
- frmf_modal("SPMMO03200","SPMMO03200",null,null,null,null,null,null,null,null,null,null,"M");
- var useyn = frmf_getParameter("SPMMO03200_rtn_useyn");
- if(useyn == "Y"){
- frmf_setParameter("SPMMO03200_rtn_useyn", "");
- var totcnt = ds_temp_selectdiaglist.rowcount;
- for(var i = 0 ; i < totcnt ; i++) {
- sCdId = ds_temp_selectdiaglist.getColumn(i,"icd10cd");
- sCdNm = ds_temp_selectdiaglist.getColumn(i,"diagengnm");
-
- ds_main_duscdlist.addRow();
- grp_right_bottom.grd_duscdlist.showEditor(true);
-
- var nRow = ds_main_duscdlist.rowposition;
- ds_main_duscdlist.setColumn(nRow, "usercd", sUserCd);
- ds_main_duscdlist.setColumn(nRow, "cdid", sCdId);
- ds_main_duscdlist.setColumn(nRow, "cdnm", sCdNm);
- ds_main_duscdlist.setColumn(nRow, "fromdd", utlf_getCurrentDate());
- ds_main_duscdlist.setColumn(nRow, "todd", "99991231");
- }
- }
- return; // 멀티row 선택 처리를 위해
-
- } else if(sFlag == "U") { // 사용자
- var sReturn = appf_openUserInfo('usernm', '', '', '', '');
- sReturn = utlf_transNullToEmpty(sReturn.userInfo).split('|');
-
- sCdId = sReturn[0];
- sCdNm = sReturn[1];
-
- if(utlf_isNull(sCdId)) {
- return;
- }
-
- } else {
- sCdId = "";
- sCdNm = "";
- }
-
- ds_main_duscdlist.addRow();
- grp_right_bottom.grd_duscdlist.showEditor(true);
-
- var nRow = ds_main_duscdlist.rowposition;
- ds_main_duscdlist.setColumn(nRow, "usercd", sUserCd);
- ds_main_duscdlist.setColumn(nRow, "cdid", sCdId);
- ds_main_duscdlist.setColumn(nRow, "cdnm", sCdNm);
- ds_main_duscdlist.setColumn(nRow, "fromdd", utlf_getCurrentDate());
- ds_main_duscdlist.setColumn(nRow, "todd", "99991231");
- }
- function grp_left_grd_muscdlist_ondrag(obj:Grid, e:GridDragEventInfo)
- {
- if(e.row < 0 || e.col < 0) return false;
- return true;
- }
- function grp_left_grd_muscdlist_ondragleave(obj:Grid, e:DragEventInfo)
- {
- g_prevmouserow = -1;
- }
- function grp_left_grd_muscdlist_ondragmove(obj:Grid, e:GridDragEventInfo)
- {
- var sAdminYn = ds_main_cond.getColumn(0, "adminyn");
- if (sAdminYn == "Y" && e.row != g_prevmouserow) {
- g_prevmouserow = e.row;
- }
- }
- function grp_left_grd_muscdlist_ondrop(obj:Grid, e:GridDragEventInfo)
- {
- if(g_prevmouserow == -1) return false;
-
- fDropTrvItem(obj, e.row);
- g_prevmouserow = -1;
- }
- /**
- * @desc : Mouse Drop시 item의 상위 코드 변경
- * @param :
- * @return :
- * @author : 엄영만 2019. 04. 25
- * @---------------------------------------------------
- */
- function fDropTrvItem(obj:Grid, nSel){
- var sSupCd = "";
- var sMsg = "";
- var nRow = ds_main_muscdlist.rowposition;
- var sUserCd = ds_main_muscdlist.getColumn(nRow, "usercd"); //선택된 사용자코드
- var sCodeNm = ds_main_muscdlist.getColumn(nRow, "codenm"); //선택된 사용자코드명
- if(nSel < 0) {
- sSupCd = "ROOT"; // 최상위 항목으로
- sMsg = "최상위 항목으로 이동하시겠습니까?";
- } else {
- sSupCd = ds_main_muscdlist.getColumn(nSel, "usercd"); //드롭 위치의 아이템
- sMsg = "[" + sSupCd + "] 코드 하위 항목으로 이동하시겠습니까?";
- }
-
- if( sysf_messageBox(sMsg, "Q999") == 6 ){
- var sInputDs = dsf_createDsRow("ds_TXZBC00501", [{col:"status", type:"string", size:256, val:"u"}
- , {col:"usercd", type:"string", size:256, val:sUserCd}
- , {col:"codenm", type:"string", size:256, val:sCodeNm}
- , {col:"supcd", type:"string", size:256, val:sSupCd}]);
- var oParam = {};
- oParam.id = "TXZBC00501";
- oParam.service = "basiccodeapp.UserCode";
- oParam.method = "reqExeSaveMUserCodeInfo";
- oParam.inds = "req=" + sInputDs;
- oParam.outds = "";
- oParam.async = false;
- if(tranf_submit(oParam)) {
- fGetMuscdList();
- }
- }
- }
- /**
- * @desc : Mouse Drag Over중 선택한 treeview item의 색깔 변경
- * @
- * @param :
- * @return :
- * @author : 오지훈 2007. 10. 30
- * @---------------------------------------------------
- */
- function fDragOverColorChng(currow){
- return (currow == g_prevmouserow) ? "#ccffff" : "#ffffff";
- }
- ]]></Script>
- </Form>
- </FDL>
|