1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMMB08400" position="absolute 0 0 1000 700" titletext="진료공통코드관리" oninit="SMMMB08400_oninit" onload="SMMMB08400_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 63" id="roundrect2" type="roundrectangle" anchor="default" class="div_SA2"/>
- <Static text="코드 :" position="absolute 6 37 53 54" id="caption2" class="search_name" anchor="default"/>
- <Edit position="absolute 55 35 115 54" id="ipt_search_hardcdno" class="input_search" onkeydown="grp_left_ipt_search_hardcdno_onkeydown" enableevent="false" anchor="default"/>
- <Static text="코드명 :" position="absolute 127 37 185 54" id="caption9" class="search_name" anchor="default"/>
- <Edit position="absolute 189 35 249 54" id="ipt_search_hardcdnm" class="input_search" onkeydown="grp_left_ipt_search_hardcdnm_onkeydown" anchor="default"/>
- <Shape position="absolute 411 32 417 60" linetype="vertical" id="line1" anchor="default"/>
- <Button position="absolute 426 35 482 55" id="btn_search_mhrcd" class="btn1" text="조회" onclick="grp_left_btn_search_mhrcd_onclick" anchor="default"/>
- <Grid position="absolute 0 65 490 680" id="grd_mhrcdlist" binddataset="ds_main_mhrcdlist" oncellclick="grp_left_grd_mhrcdlist_oncellclick" selecttype="treecell" useinputpanel="false" treeusecheckbox="false" anchor="left top bottom" autofittype="col">
- <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" text="bind:displaynm" treestartlevel="1" treelevel="bind:levl" autosizecol="limitmax"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption00" text="상세코드 :" class="search_name" position="absolute 258 37 329 54"/>
- <Edit id="ipt_search_trgtcd" taborder="1" class="input_search" position="absolute 333 35 393 54" onkeydown="grp_left_ipt_search_trgtcd_onkeydown"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 500 20 1000 160" 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"/>
- <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_SaveMhrcd" class="btn4" text="저장" onclick="grp_right_top_btn_SaveMhrcd_onclick" anchor="top right"/>
- <Static text="코드" position="absolute 0 28 55 51" align="align:center middle;" id="caption4" class="cell_1"/>
- <Edit position="absolute 57 30 260 49" id="ipt_hardcdno" class="input"/>
- <Static text="상위코드" position="absolute 273 28 334 51" align="align:center middle;" id="caption10" class="cell_1"/>
- <Edit position="absolute 341 30 500 49" id="ipt_suphardcdno" class="input" anchor="left top right"/>
- <Static text="코드명" position="absolute 0 53 55 76" align="align:center middle;" id="caption5" class="cell_1"/>
- <Edit position="absolute 57 55 500 74" id="ipt_hardcdnm" class="input" anchor="left top right"/>
- <Static text="비고" position="absolute 0 78 55 135" align="align:center middle;" id="caption8" class="cell_1"/>
- <TextArea position="absolute 57 80 500 135" id="txt_rmk" enable="false" anchor="left top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 500 160 1000 320" 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_SaveAhrcd" class="btn4" text="저장" onclick="grp_right_middle_btn_SaveAhrcd_onclick" anchor="top right"/>
- <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 160" id="grd_ahrcdlist" binddataset="ds_main_ahrcdlist" autofittype="col" anchor="left top right">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="58"/>
- <Column size="139"/>
- <Column size="229"/>
- </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:authclscd" combodataset="ds_authclscd" combocodecol="value" combodatacol="label"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="align:center;" text="bind:authtypecd" combodataset="ds_authtypecd" combocodecol="value" combodatacol="label"/>
- <Cell col="4" displaytype="text" edittype="text" style="align:center;" text="bind:authtrgtcd" 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 320 1000 699" 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_SaveDhrcd" class="btn4" text="저장" onclick="grp_right_bottom_btn_SaveDhrcd_onclick" anchor="top right"/>
- <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 379" id="grd_dhrcdlist" binddataset="ds_main_dhrcdlist" style="align:center middle;" autosizingtype="row" extendsizetype="row" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="46"/>
- <Column size="80"/>
- <Column size="213"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="84"/>
- <Column size="93"/>
- <Column size="272"/>
- <Column size="127"/>
- </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" displaytype="normal" text="적용시작일시"/>
- <Cell col="8" displaytype="normal" text="적용종료일시"/>
- <Cell col="9" displaytype="normal" text="코드설명"/>
- <Cell col="10" displaytype="normal" text="코드별칭"/>
- </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:cdseqno"/>
- <Cell col="3" displaytype="normal" edittype="text" style="align:center;" text="bind:trgtcd" editautoselect="true"/>
- <Cell col="4" displaytype="normal" edittype="text" style="align:left middle;" text="bind:trgtcdnm" editautoselect="true" autosizerow="limitmin"/>
- <Cell col="5" displaytype="date" edittype="date" text="bind:valifromdd"/>
- <Cell col="6" displaytype="date" edittype="date" text="bind:valitodd"/>
- <Cell col="7" displaytype="date" edittype="date" text="bind:valifromdt"/>
- <Cell col="8" displaytype="date" edittype="date" text="bind:valitodt"/>
- <Cell col="9" displaytype="normal" edittype="text" style="align:left;" text="bind:hardspec"/>
- <Cell col="10" displaytype="normal" edittype="text" style="align:left;" text="bind:trgtcdsnm"/>
- </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_grd_mhrcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="levl" type="STRING"/>
- <Column id="displaynm" type="STRING"/>
- <Column id="hardcdno" type="STRING"/>
- <Column id="hardcdnm" type="STRING"/>
- <Column id="suphardcdno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_ahrcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="truefds_main_mhrcdinfo" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcdno" type="STRING"/>
- <Column id="authclscd" type="STRING"/>
- <Column id="authtypecd" type="STRING"/>
- <Column id="authtrgtcd" type="STRING"/>
- <Column id="authtrgtnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_dhrcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcdno" type="STRING"/>
- <Column id="cdseqno" type="STRING"/>
- <Column id="trgtcd" type="STRING"/>
- <Column id="trgtcdnm" type="STRING"/>
- <Column id="valifromdd" type="STRING"/>
- <Column id="valitodd" type="STRING"/>
- <Column id="valifromdt" type="STRING"/>
- <Column id="valitodt" type="STRING"/>
- <Column id="hardspec" type="STRING"/>
- <Column id="trgtcdsnm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_mhrcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcdno" type="STRING" size="256"/>
- <Column id="hardcdnm" type="STRING" size="256"/>
- <Column id="suphardcdno" 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_dhrcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="hardcdno" type="STRING" size="256"/>
- <Column id="cdseqno" type="STRING" size="256"/>
- <Column id="trgtcd" type="STRING" size="256"/>
- <Column id="trgtcdnm" type="STRING" size="256"/>
- <Column id="valifromdd" type="STRING" size="256"/>
- <Column id="valitodd" type="STRING" size="256"/>
- <Column id="valifromdt" type="STRING" size="256"/>
- <Column id="valitodt" type="STRING" size="256"/>
- <Column id="hardspec" type="STRING" size="256"/>
- <Column id="trgtcdsnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_ahrcdlist" 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="hardcdno" type="STRING" size="256"/>
- <Column id="authclscd" type="STRING" size="256"/>
- <Column id="authtypecd" type="STRING" size="256"/>
- <Column id="authtrgtcd" type="STRING" size="256"/>
- <Column id="authtrgtnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_mhrcdlist" 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="hardcdno" type="STRING" size="256"/>
- <Column id="hardcdnm" type="STRING" size="256"/>
- <Column id="suphardcdno" 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="hardcdno" type="STRING" size="256"/>
- <Column id="hardcdnm" type="STRING" size="256"/>
- <Column id="trgtcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="deptcd"/>
- <Col id="userid"/>
- <Col id="hardcdno"/>
- <Col id="hardcdnm"/>
- <Col id="trgtcd"/>
- </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_mhrcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_dhrcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_send_ahrcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_authclscd" 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_authtypecd" 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_hardcdno" propid="value" datasetid="ds_main_cond" columnid="hardcdno"/>
- <BindItem id="item1" compid="grp_left.ipt_search_hardcdnm" propid="value" datasetid="ds_main_cond" columnid="hardcdnm"/>
- <BindItem id="item2" compid="grp_right_top.ipt_hardcdno" propid="value" datasetid="ds_main_mhrcdinfo" columnid="hardcdno"/>
- <BindItem id="item3" compid="grp_right_top.ipt_suphardcdno" propid="value" datasetid="ds_main_mhrcdinfo" columnid="suphardcdno"/>
- <BindItem id="item4" compid="grp_right_top.ipt_hardcdnm" propid="value" datasetid="ds_main_mhrcdinfo" columnid="hardcdnm"/>
- <BindItem id="item5" compid="grp_right_top.txt_rmk" propid="value" datasetid="ds_main_mhrcdinfo" columnid="rmk"/>
- <BindItem id="item6" compid="grp_left.ipt_search_trgtcd" propid="value" datasetid="ds_main_cond" columnid="trgtcd"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2014-12-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2014-12-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- function SMMMB08400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grp_right_middle.grd_ahrcdlist);
- grdf_initGrid(grp_right_bottom.grd_dhrcdlist);
- }
- function SMMMB08400_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize_SMMMB08400();
-
- grdf_setRowTypeIcon(grp_right_middle.grd_ahrcdlist, 0);
- grdf_setRowTypeIcon(grp_right_bottom.grd_dhrcdlist, 0);
-
- grdf_setToolTipBind(grp_right_middle.grd_ahrcdlist);
- grdf_setToolTipBind(grp_right_bottom.grd_dhrcdlist);
- grdf_setToolTipBind(grp_left.grd_mhrcdlist);
- }
- function grp_left_ipt_search_hardcdno_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("grp_left.btn_search_mhrcd", "onclick", ev );
- }
- }
- function grp_left_ipt_search_hardcdnm_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("grp_left.btn_search_mhrcd", "onclick", ev );
- //inputEnterKey("btn_search_mhrcd", "DOMActivate");
- }
- }
- function grp_left_ipt_search_trgtcd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- var ev = new ClickEventInfo;
- frmf_inputEnterKey("grp_left.btn_search_mhrcd", "onclick", ev );
- }
- }
- function grp_left_btn_search_mhrcd_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetMhrcdList();
- }
- function grp_left_grd_mhrcdlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fSetHrcdInfo();
- }
- function grp_right_top_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var sHardCdNo = ds_main_mhrcdinfo.getColumn(0, "hardcdno");
- if(utlf_isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- var sStatus = ds_main_mhrcdinfo.getColumn(0, "status");
- if(sStatus == "u" || sStatus == "i" ) {
- alert("신규 또는 수정중인 코드는 삭제 할수 없습니다.");
- return;
- }
-
- var sAuthType = ds_main_mhrcdinfo.getColumn(0, "authtype");
- if(sAuthType == "A") {
- ds_main_mhrcdinfo.setColumn(0, "status", "d"); // 입력 설정
-
- fSaveMHrcdInfo();
- } else {
- alert("삭제 권한이 없습니다.");
- return;
- }
- }
- function grp_right_top_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- var sStatus = ds_main_mhrcdinfo.getColumn(0, "status");
- if(sStatus == "u" || sStatus == "d" ) {
- alert("수정 또는 삭제 중인 코드는 신규입력 할수 없습니다.");
- return;
- }
-
- if(sysf_getUserInfo("userid") == "EMR") { // 일단 EMR 아이디로만 신규 등록 권한 부여
- ds_main_mhrcdinfo.clearData(); // model.resetInstanceNode("/root/main/hardcdinfo/mhrcdinfo");
- ds_main_dhrcdlist.clearData(); // model.resetInstanceNode("/root/main/dhrcd/dhrcdlist");
- ds_main_ahrcdlist.clearData(); // model.resetInstanceNode("/root/main/ahrcd/ahrcdlist");
- // model.refresh();
- ds_main_mhrcdinfo.addRow();
- ds_main_mhrcdinfo.setColumn(0, "status", "i"); // 입력 설정
- ds_main_mhrcdinfo.setColumn(0, "authtype", "A"); // 저장 버튼을 사용할수 있도록 설정
- grp_right_top.btn_SaveMhrcd.enable = true; // 저장버튼 활성화
- grp_right_top.ipt_hardcdno.enable = true;
- grp_right_top.ipt_hardcdnm.enable = true;
- grp_right_top.ipt_suphardcdno.enable = true;
- grp_right_top.txt_rmk.enable = true;
- } else {
- alert("입력 권한이 없습니다.");
- return;
- }
- }
- function grp_right_top_button7_onclick(obj:Button, e:ClickEventInfo)
- {
- var sHardCdNo = ds_main_mhrcdinfo.getColumn(0, "hardcdno");
- if(utlf_isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- var sStatus = ds_main_mhrcdinfo.getColumn(0, "status");
- if(sStatus == "i" || sStatus == "d" ) {
- alert("신규 또는 삭제 중인 코드는 수정 할수 없습니다.");
- return;
- }
-
- var sAuthType = ds_main_mhrcdinfo.getColumn(0, "authtype");
-
- if(sAuthType == "A") {
- ds_main_mhrcdinfo.setColumn(0, "status", "u"); // 수정 설정
-
- grp_right_top.ipt_hardcdno.enable = false;
- grp_right_top.ipt_hardcdnm.enable = true;
- grp_right_top.ipt_suphardcdno.enable = true;
- grp_right_top.txt_rmk.enable = true;
- } else {
- alert("수정 권한이 없습니다.");
- return;
- }
- }
- function grp_right_top_btn_SaveMhrcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var sAuthType = ds_main_mhrcdinfo.getColumn(0, "authtype");
- if(sAuthType == "A") {
- fSaveMHrcdInfo();
- } else {
- alert("저장 권한이 없습니다.");
- return;
- }
- }
- function grp_right_middle_btn_SaveAhrcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var sAuthType = ds_main_mhrcdinfo.getColumn(0, "authtype");
- if(sAuthType == "A" || sysf_getUserInfo("userid") == "EMR") {
- fSaveAHrcdList();
- } else {
- alert("저장 권한이 없습니다.");
- return;
- }
- }
- function grp_right_middle_button5_onclick(obj:Button, e:ClickEventInfo)
- {
- var sHardCdNo = ds_main_mhrcdinfo.getColumn(0, "hardcdno"); //model.getValue("/root/main/hardcdinfo/mhrcdinfo/hardcdno");
- if(utlf_isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- var cur_row = ds_main_ahrcdlist.rowposition; //grd_ahrcdlist.row; // 행 번호 가져오기
- var iStatus = ds_main_ahrcdlist.getRowType(cur_row); //grd_ahrcdlist.rowstatus(cur_row);
- if(cur_row < 0) {
- alert("삭제할 조건행을 선택해주세요.");
- return;
- }
- if ( iStatus == 2 ) { // 새로 삽입된 행이면 iStatus == 1 || iStatus == 3
- ds_main_ahrcdlist.deleteRow(cur_row); //grd_ahrcdlist.deleteitem(cur_row);
- } else {
- grdf_setStatus(grp_right_middle.grd_ahrcdlist, "D", [cur_row])
- }
- }
- function grp_right_middle_button11_onclick(obj:Button, e:ClickEventInfo)
- {
- fAhrcdListGridAdd("D");
- }
- function grp_right_middle_button00_onclick(obj:Button, e:ClickEventInfo)
- {
- fAhrcdListGridAdd("U");
- }
- /*
- * 권한코드리스트에 항목 추가
- * sFlag = D:부서, U:사용자
- */
- function fAhrcdListGridAdd(sFlag){
- var sAuthClsCd = "";
- var sAuthTrgtCd = "";
- var sAuthTrgtNm = "";
- var sHardCdNo = ds_main_mhrcdinfo.getColumn(0, "hardcdno");
- if(utlf_isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- if(sFlag == "D") { // 부서
- //var sReturn = fAhrcdListGridAdd("deptnm");
- //20190422 이돈희 : 통합부서정보에서 사용자기관별부서정보검색으로 수정
- var sReturn = appf_openDeptCodeList("dutplceinstcd", sysf_getUserInfo("dutplceinstcd"), "deptnm", "", "", "", "", "deptcd depthngnm cntctel");
-
- sAuthClsCd = "D";
- sAuthTrgtCd = sReturn.deptcd;
- sAuthTrgtNm = sReturn.depthngnm;
-
- if(utlf_isNull(sAuthTrgtCd)) {
- return;
- }
-
- } else if(sFlag == "U") { // 사용자
- var sReturn = appf_openUserInfo('usernm', '', '', '', '');
- sReturn = utlf_transNullToEmpty(sReturn.userInfo).split('|');
-
- sAuthClsCd = "P";
- sAuthTrgtCd = sReturn[0];
- sAuthTrgtNm = sReturn[1];
-
- if(utlf_isNull(sAuthTrgtCd)) {
- return;
- }
-
- } else {
- sAuthClsCd = "P";
- sAuthTrgtCd = "";
- sAuthTrgtNm = "";
- }
-
- ds_main_ahrcdlist.addRow();
- grp_right_middle.grd_ahrcdlist.showEditor(true);
-
- var nRow = ds_main_ahrcdlist.rowposition;
- ds_main_ahrcdlist.setColumn(nRow, "hardcdno", sHardCdNo);
- ds_main_ahrcdlist.setColumn(nRow, "authclscd", sAuthClsCd);
- ds_main_ahrcdlist.setColumn(nRow, "authtrgtcd", sAuthTrgtCd);
- ds_main_ahrcdlist.setColumn(nRow, "authtrgtnm", sAuthTrgtNm);
- ds_main_ahrcdlist.setColumn(nRow, "authtypecd", "R");
- }
- function grp_right_bottom_btn_SaveDhrcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var sAuthType = ds_main_mhrcdinfo.getColumn(0, "authtype"); //model.getValue("/root/main/hardcdinfo/mhrcdinfo/authtype");
- if(sAuthType == "A" || sAuthType == "E") {
- fSaveDHrcdList();
- } else {
- alert("저장 권한이 없습니다.");
- return;
- }
- }
- function grp_right_bottom_button8_onclick(obj:Button, e:ClickEventInfo)
- {
- fDhrcdListGridAdd(); // 상세항목 추가
- }
- function grp_right_bottom_button9_onclick(obj:Button, e:ClickEventInfo)
- {
- var sHardCdNo = ds_main_mhrcdinfo.getColumn(0, "hardcdno"); //model.getValue("/root/main/hardcdinfo/mhrcdinfo/hardcdno");
- if(utlf_isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- var cur_row = ds_main_dhrcdlist.rowposition;
- var iStatus = ds_main_dhrcdlist.getRowType(cur_row); //grd_dhrcdlist.rowstatus(cur_row);
- if(cur_row < 0) {
- alert("삭제할 조건행을 선택해주세요.");
- return;
- }
- if (iStatus == 2) { // 새로 삽입된 행이면
- ds_main_dhrcdlist.deleteRow(cur_row); //grd_dhrcdlist.deleteitem(cur_row);
- } else {
- grdf_setStatus(grp_right_bottom.grd_dhrcdlist, "D", [cur_row])
- }
- }
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fInitialize_SMMMB08400(){
- fGetMhrcdList();
- }
- /**
- * @desc : 진료공통코드 리스트 조회
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fGetMhrcdList(){
- //model.removeNodeset("/root/main/info/mhrcd/mhrcdlist"); // 진료공통코드 리스트
- // model.resetInstanceNode("/root/main/hardcdinfo/mhrcdinfo");
- // model.resetInstanceNode("/root/main/dhrcd/dhrcdlist");
- // model.resetInstanceNode("/root/main/ahrcd/ahrcdlist");
-
- ds_main_mhrcdinfo.clearData();
- ds_main_mhrcdinfo.addRow();
-
- ds_main_mhrcdlist.clearData();
- // ds_main_mhrcdinfo.clearData();
- ds_main_dhrcdlist.clearData();
- ds_main_ahrcdlist.clearData();
-
- ds_main_cond.setColumn(0, "userid", sysf_getUserInfo("userid")); //model.setValue("/root/main/cond/userid", getUserInfo("userid"));
- ds_main_cond.setColumn(0, "deptcd", sysf_getUserInfo("dutplcecd")); //model.setValue("/root/main/cond/deptcd", getUserInfo("dutplcecd"));
- ds_main_cond.setColumn(0, "hardcdno", grp_left.ipt_search_hardcdno.value);
- ds_main_cond.setColumn(0, "hardcdnm", grp_left.ipt_search_hardcdnm.value);
-
- var oParam = {};
- oParam.id = "TRMMB08401";
- oParam.service = "prcpbaseapp.PrcpClsMngt";
- oParam.method = "reqGetHardCodeList";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_mhrcdlist=mhrcdlist";
- oParam.async = false;
- oParam.callback = "cf_TRMMB08401";
- tranf_submit(oParam);
-
-
- grdf_expandDepth(grp_left.grd_mhrcdlist, 3);
- //setTree(grd_mhrcdlist, grd_mhrcdlist.colRef("levl"), grd_mhrcdlist.colRef("displaynm"), false);
-
- //input박스 비활성화
- grp_right_top.ipt_hardcdno.enable = false;
- grp_right_top.ipt_hardcdnm.enable = false;
- grp_right_top.ipt_suphardcdno.enable = false;
- grp_right_top.txt_rmk.enable = false;
-
- // 저장버튼 비활성화
- grp_right_top.btn_SaveMhrcd.enable = false;
- grp_right_middle.btn_SaveAhrcd.enable = false;
- grp_right_bottom.btn_SaveDhrcd.enable = false;
- // grd_dhrcdlist.clearStatus();
- // grd_ahrcdlist.clearStatus();
- // model.refresh();
- }
- function cf_TRMMB08401(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- }
- /**
- * @desc : 진료공통코드 리스트 클릭시 기본정보 설정
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSetHrcdInfo(){
- var nRow = ds_main_mhrcdlist.rowposition;
- var sHardCdNo = ds_main_mhrcdlist.getColumn(nRow, "hardcdno");
-
- if(!utlf_isNull(sHardCdNo)) {
- dsf_makeValue(ds_send_reqdata, "userid","string", sysf_getUserInfo("userid")); // model.makeValue("/root/send/reqdata/userid", getUserInfo("userid"));
- dsf_makeValue(ds_send_reqdata, "deptcd","string", sysf_getUserInfo("dutplcecd"));
- dsf_makeValue(ds_send_reqdata, "hardcdno","string", sHardCdNo);
-
- var oParam = {};
- oParam.id = "TRMMB08402";
- oParam.service = "prcpbaseapp.PrcpClsMngt";
- oParam.method = "reqGetHardCodeInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_mhrcdinfo=mhrcdinfo ds_main_ahrcdlist=ahrcdlist ds_main_dhrcdlist=dhrcdlist";
- oParam.async = false;
- oParam.callback = "cf_TRMMB08402";
- tranf_submit(oParam);
-
- }
- }
- function cf_TRMMB08402(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) {
- return;
- } else {
- // model.resetInstanceNode("/root/main/hardcdinfo/mhrcdinfo");
- // model.resetInstanceNode("/root/main/dhrcd/dhrcdlist");
- // model.resetInstanceNode("/root/main/ahrcd/ahrcdlist");
- //
- // copyNodesetType("/root/main/hardcdinfo/mhrcdinfo", "/root/main/recv/mhrcdinfo", "replace", model, model);
- // copyNodesetType("/root/main/dhrcd/dhrcdlist", "/root/main/recv/dhrcdlist", "replace", model, model);
- // copyNodesetType("/root/main/ahrcd/ahrcdlist", "/root/main/recv/ahrcdlist", "replace", model, model);
- ds_main_mhrcdinfo.addColumn("status", "string");
-
- //input박스 비활성화
- grp_right_top.ipt_hardcdno.enable = false;
- grp_right_top.ipt_hardcdnm.enable = false;
- grp_right_top.ipt_suphardcdno.enable = false;
- grp_right_top.txt_rmk.enable = false;
-
- // grd_dhrcdlist.clearStatus();
- // grd_ahrcdlist.clearStatus();
- var sAuthType = ds_main_mhrcdinfo.getColumn(0, "authtype"); //model.getValue("/root/main/hardcdinfo/mhrcdinfo/authtype");
- if(sAuthType == "A" || sysf_getUserInfo("userid") == "EMR") {
- grp_right_top.btn_SaveMhrcd.enable = true;
- grp_right_middle.btn_SaveAhrcd.enable = true;
- grp_right_bottom.btn_SaveDhrcd.enable = true;
- } else if(sAuthType == "E"){
- grp_right_top.btn_SaveMhrcd.enable = false;
- grp_right_middle.btn_SaveAhrcd.enable = false;
- grp_right_bottom.btn_SaveDhrcd.enable = true;
- } else {
- grp_right_top.btn_SaveMhrcd.enable = false;
- grp_right_middle.btn_SaveAhrcd.enable = false;
- grp_right_bottom.btn_SaveDhrcd.enable = false;
- }
- }
- }
- /**
- * @desc : 진료공통코드 상세 리스트 저장
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSaveMHrcdInfo(){
- if( sysf_messageBox("기본정보를","Q002") == 6 ){
- dsf_copyDs(ds_send_mhrcdinfo, ds_main_mhrcdinfo, "replace"); //copyNodesetType("/root/send/savedata/mhrcdinfo", "/root/main/hardcdinfo/mhrcdinfo", "replace", model, model);
-
- var oParam = {};
- oParam.id = "TXMMB08401";
- oParam.service = "prcpbaseapp.PrcpClsMngt";
- oParam.method = "reqExeSaveMHardCodeInfo";
- oParam.inds = "req=ds_send_mhrcdinfo";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMMB08401";
- tranf_submit(oParam);
- }
- }
- function cf_TXMMB08401(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) {
- return;
- } else {
- fGetMhrcdList();
- }
- }
- /**
- * @desc : 진료공통코드 상세 리스트 저장
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSaveDHrcdList(){
- if( sysf_messageBox("상세코드 정보를","Q002") == 6 ){
-
- // var oDsUpdate = grdf_getGridUpdateData(grp_biz.grd_allergylist);
- // grdf_setStatusColumn(oDsUpdate,"m");
- // ds_send_data1.copyData(oDsUpdate, true);
-
- //dsf_copyDs(ds_send_dhrcdlist, grdf_getGridUpdateData(grp_right_bottom.grd_dhrcdlist), "replace"); //model.setValue("/root/send/savedata/dhrcdlist", grd_dhrcdlist.getUpdateData());
-
- var oParam = {};
- oParam.id = "TXMMB08402";
- oParam.service = "prcpbaseapp.PrcpClsMngt";
- oParam.method = "reqExeSaveDHardCodeList";
- oParam.inds = "req=ds_main_dhrcdlist:U";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMMB08402";
- tranf_submit(oParam);
- }
- }
- function cf_TXMMB08402(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) {
- return;
- } else {
- fSetHrcdInfo();
- }
- }
- /**
- * @desc : 진료공통코드 권한 리스트 저장
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSaveAHrcdList(){
- if( sysf_messageBox("권한정보를","Q002") == 6 ){
- //dsf_copyDs(ds_send_ahrcdlist, grdf_getGridUpdateData(grp_right_middle.grd_ahrcdlist), "replace"); //model.setValue("/root/send/savedata/ahrcdlist", grd_ahrcdlist.getUpdateData());
-
- var oParam = {};
- oParam.id = "TXMMB08403";
- oParam.service = "prcpbaseapp.PrcpClsMngt";
- oParam.method = "reqExeSaveAHardCodeList";
- oParam.inds = "req=ds_main_ahrcdlist:U";
- oParam.outds = "";
- oParam.async = false;
- oParam.callback = "cf_TXMMB08403";
- tranf_submit(oParam);
- }
- }
- function cf_TXMMB08403(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) {
- return;
- } else {
- fSetHrcdInfo();
- }
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- var sHardCdNo = ds_main_mhrcdinfo.getColumn(0, "hardcdno");
- if(utlf_isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- grdf_exportExcel(grp_right_bottom.grd_dhrcdlist, "진료공통코드" + sHardCdNo, sHardCdNo, false, null, "user", true);
- }
- function grp_right_bottom_button00_onclick(obj:Button, e:ClickEventInfo)
- {
- fDhrcdListGridAdd("C"); // 처방
- }
- function grp_right_bottom_button01_onclick(obj:Button, e:ClickEventInfo)
- {
- fDhrcdListGridAdd("P"); // 환자
- }
- function grp_right_bottom_button02_onclick(obj:Button, e:ClickEventInfo)
- {
- fDhrcdListGridAdd("U"); // 사용자
- }
- function grp_right_bottom_button03_onclick(obj:Button, e:ClickEventInfo)
- {
- fDhrcdListGridAdd("D"); // 부서
- }
- function grp_right_bottom_button04_onclick(obj:Button, e:ClickEventInfo)
- {
- fDhrcdListGridAdd("I"); // 진단
- }
- /*
- * 상세코드리스트에 항목 추가
- * sFlag = D:부서, U:사용자, P:환자, C:처방코드, I:진단
- */
- function fDhrcdListGridAdd(sFlag){
- var sTrgtCd = "";
- var sTrgtCdNm = "";
- var sHardCdNo = ds_main_mhrcdinfo.getColumn(0, "hardcdno");
- if(utlf_isNull(sHardCdNo)) {
- alert("선택 된 공통코드가 없습니다.");
- return;
- }
-
- if(sFlag == "C") { // 처방코드
- frmf_setParameter("SPMMB21700_recive_srchflag", "prcpcd");
-
- frmf_modal("SPMMB21700","SPMMB21700","","","","","","","","","","","M");
-
- sTrgtCd = frmf_getParameter("SPMMB21700_prcpcd");
- sTrgtCdNm = frmf_getParameter("SPMMB21700_prcpnm");
-
- if(utlf_isNull(sTrgtCd)) {
- return;
- }
-
- } else if(sFlag == "D") { // 부서
- //var sReturn = appf_openMasterDeptCodeList("deptnm");
- //20190422 이돈희 : 통합부서정보에서 사용자기관별부서정보검색으로 수정
- var sReturn = appf_openDeptCodeList("dutplceinstcd", sysf_getUserInfo("dutplceinstcd"), "deptnm", "", "", "", "", "deptcd depthngnm cntctel");
-
- sTrgtCd = sReturn.deptcd;
- sTrgtCdNm = sReturn.depthngnm;
-
- if(utlf_isNull(sTrgtCd)) {
- return;
- }
-
- } else if(sFlag == "P") { // 환자
- frmf_modal("SPPMC02500","SPPMC02500","","","","","","","","","","","M");
-
- sTrgtCd = ds_patinfolist.getColumn(0,"pid");
- sTrgtCdNm = ds_patinfolist.getColumn(0,"hngnm");
-
- if(utlf_isNull(sTrgtCd)) {
- 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++) {
- sTrgtCd = ds_temp_selectdiaglist.getColumn(i,"icd10cd");
- sTrgtCdNm = ds_temp_selectdiaglist.getColumn(i,"diagengnm");
-
- ds_main_dhrcdlist.addRow();
- grp_right_bottom.grd_dhrcdlist.showEditor(true);
-
- var nRow = ds_main_dhrcdlist.rowposition;
- ds_main_dhrcdlist.setColumn(nRow, "hardcdno", sHardCdNo);
- ds_main_dhrcdlist.setColumn(nRow, "trgtcd", sTrgtCd);
- ds_main_dhrcdlist.setColumn(nRow, "trgtcdnm", sTrgtCdNm);
- ds_main_dhrcdlist.setColumn(nRow, "valifromdd", utlf_getCurrentDate());
- ds_main_dhrcdlist.setColumn(nRow, "valitodd", "99991231");
- }
- }
- return; // 멀티row 선택 처리를 위해
-
- } else if(sFlag == "U") { // 사용자
- var sReturn = appf_openUserInfo('usernm', '', '', '', '');
- sReturn = utlf_transNullToEmpty(sReturn.userInfo).split('|');
-
- sTrgtCd = sReturn[0];
- sTrgtCdNm = sReturn[1];
-
- if(utlf_isNull(sTrgtCd)) {
- return;
- }
-
- } else {
- sTrgtCd = "";
- sTrgtCdNm = "";
- }
-
- ds_main_dhrcdlist.addRow();
- grp_right_bottom.grd_dhrcdlist.showEditor(true);
-
- var nRow = ds_main_dhrcdlist.rowposition;
- ds_main_dhrcdlist.setColumn(nRow, "hardcdno", sHardCdNo);
- ds_main_dhrcdlist.setColumn(nRow, "trgtcd", sTrgtCd);
- ds_main_dhrcdlist.setColumn(nRow, "trgtcdnm", sTrgtCdNm);
- ds_main_dhrcdlist.setColumn(nRow, "valifromdd", utlf_getCurrentDate());
- ds_main_dhrcdlist.setColumn(nRow, "valitodd", "99991231");
- }
- ]]></Script>
- </Form>
- </FDL>
|