123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAEB00401" position="absolute 0 0 900 600" titletext="검사치료코드조회" onload="SMAEB00401_onload">
- <Layouts>
- <Layout>
- <Div id="grp_sea" taborder="0" class="div_SA2" position="absolute 0 0 894 60">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" position="absolute 802 12 808 50" anchor="default"/>
- <Button id="btn_sea" taborder="2" text="조회" class="btn1" position="absolute 821 20 877 42" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
- <Static id="caption2" text="검사코드 :" class="search_name" position="absolute 10 10 96 27" anchor="default"/>
- <Edit id="ipt_srchexamcurecd" taborder="3" autoselect="true" class="input_search" position="absolute 92 8 212 27" anchor="default"/>
- <Static id="caption3" text="검사코드명 :" class="search_name" position="absolute 227 10 327 27" anchor="default"/>
- <Edit id="ipt_srchexamcurenm" taborder="4" autoselect="true" class="input_search" position="absolute 323 8 472 27" anchor="default"/>
- <Static id="caption5" text="지원부서 :" class="search_name" position="absolute 485 10 571 27" anchor="default"/>
- <Combo id="cmb_deptcd" taborder="5" innerdataset="ds_init_cmb_suppdept" codecolumn="suppdeptcd" datacolumn="depthngnm" position="absolute 570 8 695 27" enable="false" anchor="default"/>
- <Static id="caption7" text="검사실 :" class="search_name" position="absolute 10 35 75 52" anchor="default"/>
- <Combo id="cmb_excuroom" taborder="6" innerdataset="ds_init_cmb_excuroom" codecolumn="basecd" datacolumn="basecdflagdesc" class="combo_default" position="absolute 92 33 212 52" anchor="default"/>
- <Static id="caption4" text="구/신코드 :" class="search_name" position="absolute 227 35 327 52" anchor="default"/>
- <Combo id="combo1" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 323 33 413 52" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">신코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">구코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn"/>
- <Col id="datacolumn">전체</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption1" text="코드조회" class="tit_2" position="absolute 0 66 380 83"/>
- <Shape id="line1" class="line_10" position="absolute 0 82 896 88"/>
- <Div id="group1" taborder="3" position="absolute 96 572 895 599">
- <Layouts>
- <Layout>
- <Button id="btn_cfm" taborder="1" text="확인" class="btn4" position="absolute 684 1 740 23" anchor="default" onclick="group1_btn_cfm_onclick"/>
- <Button id="btn_cls" taborder="2" text="닫기" class="btn4" position="absolute 743 1 799 23" anchor="default" onclick="group1_btn_cls_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_examcurecdlist" taborder="4" binddataset="ds_main_examcurecdlist" scrollpixel="all" autoenter="key" useinputpanel="false" extendsizetype="row" cellsizingtype="both" cellsizebandtype="allband" position="absolute 0 87 894 567" cellclickbound="cell" oncelldblclick="grd_examcurecdlist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="25" band="left"/>
- <Column size="85" band="left"/>
- <Column size="230" band="left"/>
- <Column size="100" band="left"/>
- <Column size="100" band="left"/>
- <Column size="71"/>
- <Column size="58"/>
- <Column size="57"/>
- <Column size="47"/>
- <Column size="44"/>
- <Column size="55"/>
- <Column size="61"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="90"/>
- <Column size="280"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell rowspan="2" taborder="undefined"/>
- <Cell col="1" rowspan="2" displaytype="image" taborder="undefined"/>
- <Cell col="2" rowspan="2" text="코드" taborder="undefined"/>
- <Cell col="3" rowspan="2" text="검사명" taborder="undefined"/>
- <Cell col="4" colspan="2" text="기본설정" taborder="undefined"/>
- <Cell col="6" colspan="7" text="분류" taborder="undefined"/>
- <Cell col="13" text="판독/대출"/>
- <Cell col="14" rowspan="2" colspan="2" text="시행부서" taborder="undefined"/>
- <Cell col="16" rowspan="2" text="비고" taborder="undefined"/>
- <Cell col="17" text="caption1"/>
- <Cell col="18" text="caption2"/>
- <Cell col="19" rowspan="2" text="주의사항" taborder="undefined"/>
- <Cell col="20" text="saveflag"/>
- <Cell col="21" text="grupsnglflag"/>
- <Cell row="1" col="4" text="검사/치료실"/>
- <Cell row="1" col="5" text="검사부위/품목"/>
- <Cell row="1" col="6" text="SECTION"/>
- <Cell row="1" col="7" text="Modality"/>
- <Cell row="1" col="8" text="분류코드"/>
- <Cell row="1" col="9" text="대"/>
- <Cell row="1" col="10" text="중"/>
- <Cell row="1" col="11" text="구분"/>
- <Cell row="1" col="12" text="상세내역"/>
- <Cell row="1" col="13" text="배정검사실"/>
- <Cell row="1" col="17" text="부서코드"/>
- <Cell row="1" col="18" text="종료일자"/>
- <Cell row="1" col="20" text="saveflag"/>
- <Cell row="1" col="21" text="grupsnglflag"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:(check=="Y"||check==1)?1:0" combodisplay="display"/>
- <Cell col="2" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:excucd" wordwrap="char" editautoselect="true"/>
- <Cell col="3" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:excucdnm" wordwrap="char" editautoselect="true"/>
- <Cell col="4" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:excuroomcd" wordwrap="char" editautoselect="true" combodataset="ds_init_cmb_excuroom" combocodecol="basecd" combodatacol="basecdflagdesc" combodisplayrowcount="100" combotype="search"/>
- <Cell col="5" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:excupartcd" wordwrap="char" editautoselect="true" combodataset="ds_init_bodypart" combocodecol="basecd" combodatacol="basecdflagdesc" combodisplayrowcount="100" combotype="search"/>
- <Cell col="6" text="bind:section"/>
- <Cell col="7" text="bind:modality"/>
- <Cell col="8" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:excuclscd" wordwrap="char" editautoselect="true" editautoskip="false" combodataset="ds_init_A0463" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="100" combodisplaynulltext="-" combodisplaynulltype="nulltext" combotype="search"/>
- <Cell col="9" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:lrgcd" wordwrap="char" editautoselect="true" combodataset="ds_init_cmb_excuroomgrp" combocodecol="excuroomgrpcdid" combodatacol="excuroomgrpcdnm" combodisplayrowcount="100" combotype="search"/>
- <Cell col="10" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:mdlcd" wordwrap="char" editautoselect="true" combodataset="ds_init_bodypart" combocodecol="basecd" combodatacol="basecdflagdesc" combodisplayrowcount="100" combotype="search"/>
- <Cell col="11" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:ioexamflag" wordwrap="char" editautoselect="true" combodataset="ds_init_A0072" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="100" combodisplaynulltext="없음" combodisplaynulltype="nulltext" combotype="search"/>
- <Cell col="12" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:excucdrem" wordwrap="char" editautoselect="true"/>
- <Cell col="13" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:autroomassgcd" wordwrap="char" editautoselect="true"/>
- <Cell col="14" displaytype="combo" style="align:left top;padding:5 3 1 3;" text="bind:prcpexecdeptcd" wordwrap="char" editautoselect="true" combodataset="ds_init_dept_info" combocodecol="prcpexecdeptcdid" combodatacol="prcpexecdeptcdnm" combotype="search" enable="false"/>
- <Cell col="15" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:prcpexecdeptcd1" wordwrap="char" editautoselect="true"/>
- <Cell col="16" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:excurem" wordwrap="char" editautoselect="true"/>
- <Cell col="17" style="align:left top;padding:5 3 1 3;" text="bind:basesuppdeptcd" wordwrap="char" editautoselect="true"/>
- <Cell col="18" style="align:left top;padding:5 3 1 3;" text="bind:excutodd" wordwrap="char" editautoselect="true"/>
- <Cell col="19" displaytype="text" style="align:left top;padding:5 3 1 3;" text="bind:excupatrem" wordwrap="char" editautoselect="true"/>
- <Cell col="20" text="bind:saveflag"/>
- <Cell col="21" text="bind:grupsnglflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_examcurecdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_examcurecdlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="update" type="STRING"/>
- <Column id="excucd" type="STRING"/>
- <Column id="excucdnm" type="STRING"/>
- <Column id="excuroomcd" type="STRING"/>
- <Column id="excupartcd" type="STRING"/>
- <Column id="execbaseflag" type="STRING"/>
- <Column id="rcptacptyn" type="STRING"/>
- <Column id="rcptrsrvyn" type="STRING"/>
- <Column id="prcptdayaftrcptyn" type="STRING"/>
- <Column id="prcptdayrcptyn" type="STRING"/>
- <Column id="rsrvplceflag" type="STRING"/>
- <Column id="excuclscd" type="STRING"/>
- <Column id="lrgcd" type="STRING"/>
- <Column id="mdlcd" type="STRING"/>
- <Column id="ioexamflag" type="STRING"/>
- <Column id="excucdrem" type="STRING"/>
- <Column id="angioaltprcpcd" type="STRING"/>
- <Column id="angiouseyn" type="STRING"/>
- <Column id="autroomassgyn" type="STRING"/>
- <Column id="autroomassgcd" type="STRING"/>
- <Column id="section" type="STRING"/>
- <Column id="specdrcd" type="STRING"/>
- <Column id="rslttmplcd" type="STRING"/>
- <Column id="rslttmplcdnm" type="STRING"/>
- <Column id="rslttmplcd2nd" type="STRING"/>
- <Column id="ocrtmplcd" type="STRING"/>
- <Column id="eqmtifyn" type="STRING"/>
- <Column id="readdrid3" type="STRING"/>
- <Column id="readdrid3nm" type="STRING"/>
- <Column id="rsltdispyn" type="STRING"/>
- <Column id="rsltdispgbn" type="STRING"/>
- <Column id="rsltclscd1" type="STRING"/>
- <Column id="rsltclscd2" type="STRING"/>
- <Column id="partcntstats" type="STRING"/>
- <Column id="phocntstats" type="STRING"/>
- <Column id="curetims" type="STRING"/>
- <Column id="rsrvexcupossyn" type="STRING"/>
- <Column id="rsrvexcuroomposscd" type="STRING"/>
- <Column id="rsrvexcuroomposscd2" type="STRING"/>
- <Column id="rsrvsono" type="STRING"/>
- <Column id="excutm" type="STRING"/>
- <Column id="rsrvexmptmplcd" type="STRING"/>
- <Column id="rsrvmultitmplcd" type="STRING"/>
- <Column id="rsrvexmptmplexecrnm" type="STRING"/>
- <Column id="rsrvexmpcnt" type="STRING"/>
- <Column id="fastyn" type="STRING"/>
- <Column id="enemayn" type="STRING"/>
- <Column id="rsrvaprvtmplcd" type="STRING"/>
- <Column id="slepyn" type="STRING"/>
- <Column id="dcusrsrvyn" type="STRING"/>
- <Column id="rsrvupdtcncllimdayno" type="STRING"/>
- <Column id="modality" type="STRING"/>
- <Column id="pacsnocretyn" type="STRING"/>
- <Column id="etceqmtifyn" type="STRING"/>
- <Column id="prestddappyn" type="STRING"/>
- <Column id="anotestyn" type="STRING"/>
- <Column id="sytserdispyn" type="STRING"/>
- <Column id="sytshealdispyn" type="STRING"/>
- <Column id="glycostestyn" type="STRING"/>
- <Column id="bonedentestyn" type="STRING"/>
- <Column id="emryn" type="STRING"/>
- <Column id="prcpexecdeptcd" type="STRING"/>
- <Column id="prcpexecdeptcd1" type="STRING"/>
- <Column id="nextexcuroomcd" type="STRING"/>
- <Column id="excurem" type="STRING"/>
- <Column id="basesuppdeptcd" type="STRING"/>
- <Column id="excutodd" type="STRING"/>
- <Column id="excupatrem" type="STRING"/>
- <Column id="saveflag" type="STRING"/>
- <Column id="grupsnglflag" type="STRING"/>
- <Column id="selectdryn" type="STRING" size="0"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_suppdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="depthngnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_excuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING"/>
- <Column id="basecdflagdesc" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_A0463" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_A0072" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_excuroomgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecdcnts" type="STRING" size="256"/>
- <Column id="basecdcnts2" type="STRING" size="256"/>
- <Column id="seq" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_bodypart" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sortno" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="basecd" type="STRING" size="256" sumtext="기본코드구분"/>
- <Column id="basecdflagdesc" type="STRING" size="256" sumtext="기본코드구분"/>
- <Column id="basecdcnts" type="STRING" size="256" sumtext="부서코드"/>
- <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
- <Column id="basecdflag" type="STRING" size="256" sumtext="부서코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_dept_info" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpexecdeptcdid" type="STRING" size="256" sumtext="시행부서코드"/>
- <Column id="prcpexecdeptcdnm" type="STRING" size="256" sumtext="시행부서명"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="srchexamcurecd" type="STRING" size="256"/>
- <Column id="srchexamcurenm" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="excuroomcd" type="STRING" size="256"/>
- <Column id="newoldyb" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="srchexamcurecd"/>
- <Col id="srchexamcurenm"/>
- <Col id="deptcd"/>
- <Col id="excuroomcd"/>
- <Col id="newoldyb"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_prcplist" 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>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item4" compid="grp_sea.ipt_srchexamcurecd" propid="value" datasetid="ds_send" columnid="srchexamcurecd"/>
- <BindItem id="item5" compid="grp_sea.ipt_srchexamcurenm" propid="value" datasetid="ds_send" columnid="srchexamcurenm"/>
- <BindItem id="item1" compid="grp_sea.cmb_deptcd" propid="value" datasetid="ds_send" columnid="deptcd"/>
- <BindItem id="item2" compid="grp_sea.cmb_excuroom" propid="value" datasetid="ds_send" columnid="excuroomcd"/>
- <BindItem id="item6" compid="grp_sea.combo1" propid="value" datasetid="ds_send" columnid="newoldyb"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2017-12-04
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2017-06-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 기초코드 조회
- ****************************************************************************************/
- function fn_TRAEA01301(){
- dsf_createDsRow("ds_reqparam", [
- {col:"basesuppdeptcd", type:"STRING", size:256, val:utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))}
- , {col:"instcd", type:"STRING", size:256, val:sysf_getUserInfo("dutplceinstcd")}
- , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
- , {col:"ebasecdflag", type:"STRING", size:256, val:"E"}
- , {col:"initflag", type:"STRING", size:256, val:"1"}
- , {col:"alladdyn", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRAEA01301";
- oParam.service = "examcureacptexecapp.ExamCureAcpt";
- oParam.method = "reqGetInitExamCureRoomGrpCodeList";
- oParam.inds = "reqparam=ds_reqparam";
- oParam.outds = "ds_init_cmb_excuroomgrp=initexcuroomgrp ds_init_cmb_excuroom=initexcuroom ds_init_cmb_suppdept=suppdept";
- oParam.async = false;
- oParam.callback = "cf_TRAEA01301";
-
- tranf_submit(oParam);
- }
- function cf_TRAEA01301(strSvcID, nErrorCode, strErrorMsg){
- if(nErrorCode < 0) return;
- ds_init_cmb_excuroomgrp.updateColID("basecdcnts","excuroomgrpcdid");
- ds_init_cmb_excuroomgrp.updateColID("basecdcnts2","excuroomgrpcdnm");
- dsf_setDefaultVal(ds_init_cmb_excuroomgrp,"all");
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 기초코드 조회
- ****************************************************************************************/
- function fn_TRAEB00601() {
- dsf_createDsRow("ds_req", [
- {col:"basecd", type:"STRING", size:256, val:""}
- , {col:"basesuppdeptcd", type:"STRING", size:256, val:utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))}
- , {col:"bbasecdflag", type:"STRING", size:256, val:"B"}
- ]);
- var oParam = {};
- oParam.id = "TRAEB00601";
- oParam.service = "examcurebaseapp.BodyPart";
- oParam.method = "reqGetBodyPartList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_bodypart=bodypart";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB00601";
- tranf_submit(oParam);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 기초코드 조회
- ****************************************************************************************/
- function fn_TRAEB00205() {
- dsf_createDsRow("ds_req", [
- {col:"instance1", type:"STRING", size:256, val:utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))}
- ]);
- var oParam = {};
- oParam.id = "TRAEB00205";
- oParam.service = "examcurebaseapp.ComCode";
- oParam.method = "reqGetPrcpExecDeptCdList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_dept_info=item";
- oParam.async = false;
- //oParam.callback = "cf_TRAEB00205";
- tranf_submit(oParam);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 검사치료코드 조회
- ****************************************************************************************/
- function fn_TRAEB00201() {
- var examcurecd = utlf_transNullToEmpty(grp_sea.ipt_srchexamcurecd.value);
-
- if ( examcurecd == "" ) {
- examcurecd = "%";
- }else {
- examcurecd = "%" + examcurecd.toUpperCase()+"%";
- }
-
- dsf_createDsRow("ds_req", [
- {col:"srchexamcurecd", type:"STRING", size:256, val:examcurecd}
- , {col:"srchexamcurenm", type:"STRING", size:256, val:ds_send.getColumn(0,"srchexamcurenm")}
- , {col:"basesuppdeptcd", type:"STRING", size:256, val:ds_send.getColumn(0,"deptcd")}
- , {col:"newoldyb", type:"STRING", size:256, val:ds_send.getColumn(0,"newoldyb")}
- , {col:"excuroomcd", type:"STRING", size:256, val:ds_send.getColumn(0,"excuroomcd")}
- //, {col:"saveflag", type:"STRING", size:256, val:ds_send.getColumn(0,"saveflag")}
- ]);
- var oParam = {};
- oParam.id = "TRAEB00201";
- oParam.service = "examcurebaseapp.ExamCureCode";
- oParam.method = "reqGetExamCureCodeList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_main_examcurecdlist=item";
- oParam.async = false;
- oParam.callback = "cf_TRAEB00201";
- tranf_submit(oParam);
- }
- function cf_TRAEB00201(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- fMakeCopyColumn(ds_main_examcurecdlist,"rcptrsrvyn","bfrcptrsrvyn");
- fMakeCopyColumn(ds_main_examcurecdlist,"prcptdayrcptyn","bfprcptdayrcptyn");
- ds_main_examcurecdlist.updateColID("suppdeptcd","basesuppdeptcd");
- ds_main_examcurecdlist.addColumn("check","string");
- }
- /****************************************************************************************
- * Argument : objDs - Dataset ID
- * : sColSrc - 원본 컬럼
- * : sColTgt - 생성할 컬럼
- * Description : 데이터셋 특정컬럼 카피하여 새컬럼 생성
- ****************************************************************************************/
- function fMakeCopyColumn(objDs,sColSrc,sColTgt) {
- if(utlf_isNull(objDs.getColumnInfo(sColTgt))) objDs.addColumn(sColTgt,"string");
- for(var i = 0 ; i < objDs.rowcount ; i++) {
- objDs.setColumn(i,sColTgt,objDs.getColumn(i,sColSrc));
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAEB00401_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- try{
- dsf_makeValue(ds_send, "multiyn", "string", arg_multiyn);
- dsf_makeValue(ds_send, "srchexamcurecd", "string", arg_calcscorcd);
- dsf_makeValue(ds_send, "deptcd", "string", arg_suppdeptcd);
- }catch(e){}
-
- if(ds_send.getColumn(0, "multiyn") == "N") {
- grd_examcurecdlist.setFormatColProperty(1, "size", 0);
- }
-
- grdf_setGridSort(grd_examcurecdlist); // 그리드 소트만
-
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- // ds_send.setColumn(0,"deptcd",frmf_getParameter("AST_DEPTCD"));
-
- appf_getCodeList([{dsNm: "ds_init_A0072", cdGrpId: "A0072"}
- , {dsNm: "ds_init_A0463", cdGrpId: "A0463"} ], true);
-
- fn_TRAEA01301();
- fn_TRAEB00601();
- fn_TRAEB00205();
-
- grp_sea.btn_sea.click();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_examcurecdlist.clearData();
-
- fn_TRAEB00201();
- }
- /****************************************************************************************
- * Components : Dataset
- * Description :
- ****************************************************************************************/
- function ds_main_examcurecdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="check") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 확인(데이터전송)
- ****************************************************************************************/
- function group1_btn_cfm_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_send_prcplist.clearData();
- ds_main_examcurecdlist.filter("check=='Y'");
-
- if(ds_main_examcurecdlist.rowcount == 0) {
- sysf_messageBox("선택된 데이터가 없습니다.","E");
- ds_main_examcurecdlist.filter("");
- return;
- }
-
- for(var i = 0; i < ds_main_examcurecdlist.rowcount; i++) {
- var nRow = ds_send_prcplist.addRow();
- ds_send_prcplist.setColumn(nRow, "cd", ds_main_examcurecdlist.getColumn(i, "excucd"));
- ds_send_prcplist.setColumn(nRow, "nm", ds_main_examcurecdlist.getColumn(i, "excucdnm"));
- }
- ds_main_examcurecdlist.filter("");
-
- opener.dsf_createDs("ds_temp_prcplist");
- opener.ds_temp_prcplist.copyData(ds_send_prcplist);
-
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 닫기
- ****************************************************************************************/
- function group1_btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 선택행 데이터 전송
- ****************************************************************************************/
- function grd_examcurecdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row < 0) return;
- ds_send_prcplist.clearData();
- var nRow = ds_send_prcplist.addRow();
-
- ds_send_prcplist.setColumn(nRow, "cd", ds_main_examcurecdlist.getColumn(e.row, "excucd"));
- ds_send_prcplist.setColumn(nRow, "nm", ds_main_examcurecdlist.getColumn(e.row, "excucdnm"));
-
- opener.dsf_createDs("ds_temp_prcplist");
- opener.ds_temp_prcplist.copyData(ds_send_prcplist);
-
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|