123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMAER00001" position="absolute 0 0 1194 787" titletext="데이타 검증" oninit="SMAER00001_oninit" onload="SMAER00001_onload">
- <Layouts>
- <Layout>
- <Button position="absolute 1113 759 1193 781" id="btn_excel" class="btn7" text="엑셀저장" onclick="btn_excel_onclick"/>
- <Static id="caption6" text="데이타 검증" class="tit_1" position="absolute 0 0 120 25"/>
- <Div id="grp_sea" taborder="1" position="absolute 0 25 1193 85" class="div_SA">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1099 13 1105 51" anchor="default"/>
- <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 1118 21 1174 43" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
- <Static id="caption1" text="지원부서 :" class="search_name" position="absolute 248 23 334 40" anchor="default"/>
- <Combo id="combo1" taborder="2" innerdataset="@ds_init_cmb_info_suppdeptlist_suppdept" codecolumn="suppdeptcd" datacolumn="depthngnm" class="combo_search" position="absolute 334 22 437 41" anchor="default" onitemchanged="grp_sea_combo1_onitemchanged"/>
- <Static id="caption5" text="검사/치료실 :" class="search_name" position="absolute 480 23 586 40" anchor="default"/>
- <Combo id="cmb_excuroom" taborder="3" innerdataset="@ds_init_cmb_info_excuroomcdlist_excuroom" codecolumn="basecd" datacolumn="basecdflagdesc" class="combo_search" position="absolute 585 22 722 41" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="4" class="input_default" position="absolute 130 9 220 28" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
- <Combo id="cmb_ddflag" taborder="5" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 20 22 120 41" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">prcpdd</Col>
- <Col id="datacolumn">처방일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">acptdd</Col>
- <Col id="datacolumn">접수일자</Col>
- </Row>
- <Row>
- <Col id="codecolumn">execdd</Col>
- <Col id="datacolumn">실시일자</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Calendar id="input1" taborder="6" class="input_default" position="absolute 130 34 220 53" anchor="default" dateformat="yyyy-MM-dd"/>
- <Edit id="ipt_pid" taborder="7" class="input_search" position="absolute 852 22 952 41" anchor="default" onkeydown="grp_sea_ipt_pid_onkeydown"/>
- <Static id="caption8" text="등록번호 :" class="search_name" position="absolute 765 23 853 40" anchor="default"/>
- <CheckBox id="chk_prcp" taborder="8" position="absolute 965 8 1100 28" anchor="default" text="ASIS처방Sync조회"/>
- <CheckBox id="chk_tobe" taborder="9" position="absolute 965 33 1100 53" anchor="default" text="TOBE처방Sync조회"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_mdvlist" class="datagrid2" taborder="2" binddataset="ds_main_mdv_mdvlist" useinputpanel="false" position="absolute 0 90 1193 755" cellsizingtype="both" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="58"/>
- <Column size="63"/>
- <Column size="59"/>
- <Column size="82"/>
- <Column size="59"/>
- <Column size="73"/>
- <Column size="69"/>
- <Column size="172"/>
- <Column size="71"/>
- <Column size="63"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="58"/>
- <Column size="66"/>
- <Column size="50"/>
- <Column size="69"/>
- <Column size="79"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="45"/>
- <Column size="45"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="73"/>
- <Column size="86"/>
- <Column size="38"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="30" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="처방체크"/>
- <Cell col="2" text="등록번호"/>
- <Cell col="3" text="환자명"/>
- <Cell col="4" text="지원부서명"/>
- <Cell col="5" text=" 검사실명"/>
- <Cell col="6" text="처방일자"/>
- <Cell col="7" text="유일번호"/>
- <Cell col="8" text="처방명"/>
- <Cell col="9" text="처방코드"/>
- <Cell col="10" text="처방상태"/>
- <Cell col="11" text="접수일시"/>
- <Cell col="12" text="실시일시"/>
- <Cell col="13" text="판독일시"/>
- <Cell col="14" text="구분"/>
- <Cell col="15" text="처방과"/>
- <Cell col="16" text="처방의"/>
- <Cell col="17" text="처방과코드"/>
- <Cell col="18" text="처방의사번"/>
- <Cell col="19" text="소견"/>
- <Cell col="20" text="결론"/>
- <Cell col="21" text="권고"/>
- <Cell col="22" text="판독의1"/>
- <Cell col="23" text="판독의2"/>
- <Cell col="24" text="판독의3"/>
- <Cell col="25" text="판독의4"/>
- <Cell col="26" text="판독의1"/>
- <Cell col="27" text="판독의2"/>
- <Cell col="28" text="판독의3"/>
- <Cell col="29" text="판독의4"/>
- <Cell col="30" text="접수자"/>
- <Cell col="31" text="실시자"/>
- <Cell col="32" text="처방전달사항"/>
- <Cell col="33" text="실시코멘트"/>
- <Cell col="34" text="지원부서"/>
- <Cell col="35" text="검사실코드"/>
- <Cell col="36" text="시행부서"/>
- <Cell col="37" text="시행부서명"/>
- <Cell col="38" text="S/A"/>
- <Cell col="39" text="병동"/>
- <Cell col="40" text="병실"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow+1"/>
- <Cell col="1" text="bind:dumpyn"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:pid"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:hngnm"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:suppdeptnm"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:excuroomnm"/>
- <Cell col="6" displaytype="text" edittype="text" text="bind:prcpdd" mask="expr:utlf_isNull(prcpdd) || prcpdd == '-' ? '####-##-##' : ''"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:execprcpuniqno"/>
- <Cell col="8" displaytype="text" edittype="text" text="bind:prcpnm"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:calcscorcd"/>
- <Cell col="10" text="bind:execprcpstatcd"/>
- <Cell col="11" text="bind:acptdt" mask="expr:utlf_isNull(acptdt) || acptdt == '-' ? '####-##-## ##:##:##' : ''"/>
- <Cell col="12" text="bind:execdt" mask="expr:utlf_isNull(execdt) || execdt == '-' ? '####-##-## ##:##:##' : ''"/>
- <Cell col="13" text="bind:cnfmdt" mask="expr:utlf_isNull(cnfmdt) || cnfmdt == '-' ? '####-##-## ##:##:##' : ''"/>
- <Cell col="14" text="bind:ioflag"/>
- <Cell col="15" displaytype="text" edittype="text" text="bind:orddeptnm"/>
- <Cell col="16" displaytype="text" edittype="text" text="bind:rgstrnm"/>
- <Cell col="17" displaytype="text" edittype="text" text="bind:orddeptcd"/>
- <Cell col="18" displaytype="text" edittype="text" text="bind:rgstrid"/>
- <Cell col="19" displaytype="text" edittype="text" text="bind:rsltcomment"/>
- <Cell col="20" displaytype="text" edittype="text" text="bind:rsltrept"/>
- <Cell col="21" displaytype="text" edittype="text" text="bind:rsltrecm"/>
- <Cell col="22" text="bind:cnfmmanid"/>
- <Cell col="23" text="bind:readdrid1"/>
- <Cell col="24" text="bind:readdrid2"/>
- <Cell col="25" text="bind:readdrid3"/>
- <Cell col="26" displaytype="text" edittype="text" text="bind:cnfmmanidnm"/>
- <Cell col="27" displaytype="text" edittype="text" text="bind:readdrid1nm"/>
- <Cell col="28" displaytype="text" edittype="text" text="bind:readdrid2nm"/>
- <Cell col="29" displaytype="text" edittype="text" text="bind:readdrid3nm"/>
- <Cell col="30" text="bind:acptidnm"/>
- <Cell col="31" text="bind:execridnm"/>
- <Cell col="32" text="bind:prcpdelivefact"/>
- <Cell col="33" text="bind:execrem"/>
- <Cell col="34" text="bind:suppdeptcd"/>
- <Cell col="35" text="bind:excuroomcd"/>
- <Cell col="36" text="bind:prcpexecdeptcd"/>
- <Cell col="37" text="bind:prcpexecdeptnm"/>
- <Cell col="38" text="bind:sna"/>
- <Cell col="39" text="bind:wardcd"/>
- <Cell col="40" text="bind:roomcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line1" class="line_1" position="absolute 0 86 1194 90" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_mdv_mdvlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="dumpyn" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="suppdeptnm" type="STRING" size="256"/>
- <Column id="excuroomnm" type="STRING" size="256"/>
- <Column id="prcpdd" type="STRING" size="256"/>
- <Column id="execprcpuniqno" type="STRING" size="256"/>
- <Column id="prcpnm" type="STRING" size="256"/>
- <Column id="calcscorcd" type="STRING" size="256"/>
- <Column id="execprcpstatcd" type="STRING" size="256"/>
- <Column id="acptdt" type="STRING" size="256"/>
- <Column id="execdt" type="STRING" size="256"/>
- <Column id="cnfmdt" type="STRING" size="256"/>
- <Column id="ioflag" type="STRING" size="256"/>
- <Column id="orddeptnm" type="STRING" size="256"/>
- <Column id="rgstrnm" type="STRING" size="256"/>
- <Column id="orddeptcd" type="STRING" size="256"/>
- <Column id="rgstrid" type="STRING" size="256"/>
- <Column id="rsltcomment" type="STRING" size="256"/>
- <Column id="rsltrept" type="STRING" size="256"/>
- <Column id="rsltrecm" type="STRING" size="256"/>
- <Column id="cnfmmanid" type="STRING" size="256"/>
- <Column id="readdrid1" type="STRING" size="256"/>
- <Column id="readdrid2" type="STRING" size="256"/>
- <Column id="readdrid3" type="STRING" size="256"/>
- <Column id="cnfmmanidnm" type="STRING" size="256"/>
- <Column id="readdrid1nm" type="STRING" size="256"/>
- <Column id="readdrid2nm" type="STRING" size="256"/>
- <Column id="readdrid3nm" type="STRING" size="256"/>
- <Column id="acptidnm" type="STRING" size="256"/>
- <Column id="execridnm" type="STRING" size="256"/>
- <Column id="prcpdelivefact" type="STRING" size="256"/>
- <Column id="execrem" type="STRING" size="256"/>
- <Column id="suppdeptcd" type="STRING" size="256"/>
- <Column id="excuroomcd" type="STRING" size="256"/>
- <Column id="prcpexecdeptcd" type="STRING" size="256"/>
- <Column id="prcpexecdeptnm" type="STRING" size="256"/>
- <Column id="sna" type="STRING" size="256"/>
- <Column id="wardcd" type="STRING" size="256"/>
- <Column id="roomcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="dumpyn"/>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="suppdeptnm"/>
- <Col id="excuroomnm"/>
- <Col id="prcpdd"/>
- <Col id="execprcpuniqno"/>
- <Col id="prcpnm"/>
- <Col id="calcscorcd"/>
- <Col id="execprcpstatcd"/>
- <Col id="acptdt"/>
- <Col id="execdt"/>
- <Col id="cnfmdt"/>
- <Col id="ioflag"/>
- <Col id="orddeptnm"/>
- <Col id="rgstrnm"/>
- <Col id="orddeptcd"/>
- <Col id="rgstrid"/>
- <Col id="rsltcomment"/>
- <Col id="rsltrept"/>
- <Col id="rsltrecm"/>
- <Col id="cnfmmanid"/>
- <Col id="readdrid1"/>
- <Col id="readdrid2"/>
- <Col id="readdrid3"/>
- <Col id="cnfmmanidnm"/>
- <Col id="readdrid1nm"/>
- <Col id="readdrid2nm"/>
- <Col id="readdrid3nm"/>
- <Col id="acptidnm"/>
- <Col id="execridnm"/>
- <Col id="prcpdelivefact"/>
- <Col id="execrem"/>
- <Col id="suppdeptcd"/>
- <Col id="excuroomcd"/>
- <Col id="prcpexecdeptcd"/>
- <Col id="prcpexecdeptnm"/>
- <Col id="sna"/>
- <Col id="wardcd"/>
- <Col id="roomcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" 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="excuroomcd" type="STRING" size="256"/>
- <Column id="ddflag" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="chkprcp" type="STRING" size="256"/>
- <Column id="chktobe" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="suppdeptcd"/>
- <Col id="excuroomcd"/>
- <Col id="ddflag"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="pid"/>
- <Col id="chkprcp"/>
- <Col id="chktobe"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_info_suppdeptlist_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>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_cmb_info_excuroomcdlist_excuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basecd" type="STRING" size="256"/>
- <Column id="basecdflagdesc" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init1_cmb_info_initexecroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="excuroomcdid" type="STRING" size="256"/>
- <Column id="excuroomcdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.cmb_ddflag" propid="value" datasetid="ds_send" columnid="ddflag"/>
- <BindItem id="item1" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item2" compid="grp_sea.input1" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item3" compid="grp_sea.combo1" propid="value" datasetid="ds_send" columnid="suppdeptcd"/>
- <BindItem id="item4" compid="grp_sea.cmb_excuroom" propid="value" datasetid="ds_send" columnid="excuroomcd"/>
- <BindItem id="item5" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item6" compid="grp_sea.chk_prcp" propid="value" datasetid="ds_send" columnid="chkprcp"/>
- <BindItem id="item7" compid="grp_sea.chk_tobe" propid="value" datasetid="ds_send" columnid="chktobe"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-10-14
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-10-14 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include "com_commonxp::comm_main.xjs";
- include "ast_examcurexp::AEZ0001.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- var gSuppdeptcd = "";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument : N/A
- * Description : 검사실 조회
- ****************************************************************************************/
- function call_TRAEA00902() {
- dsf_createDsRow("ds_req", [
- {col:"basecd", type:"STRING", size:256, val:""}
- , {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
- , {col:"instcd", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRAEA00902";
- oParam.service = "examcurebaseapp.ExamCureRoom";
- oParam.method = "reqGetExamCureRoomGrpList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_cmb_info_excuroomcdlist_excuroom=item";
- oParam.async = true;
- //oParam.callback = "cf_TRAEA00902";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 지원부서 조회
- ****************************************************************************************/
- function call_TRAEA00904() {
- dsf_createDsRow("ds_req", [
- {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- , {col:"deptflag", type:"STRING", size:256, val:""}
- ]);
- var oParam = {};
- oParam.id = "TRAEA00904";
- oParam.service = "examcurersrvapp.RsrvRef";
- oParam.method = "reqGetSuppDeptCdList";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_init_cmb_info_suppdeptlist_suppdept=item";
- oParam.async = true;
- //oParam.callback = "cf_TRAEA00904";
- tranf_submit(oParam);
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 검사실 조회
- ****************************************************************************************/
- function call_TRAEA01301() {
- dsf_createDsRow("ds_reqparam", [
- {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
- , {col:"rbasecdflag", type:"STRING", size:256, val:"R"}
- , {col:"ebasecdflag", type:"STRING", size:256, val:"E"}
- , {col:"instcd", type:"STRING", size:256, val:""}
- , {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_init1_cmb_info_initexecroom=initexcuroom";
- oParam.async = false;
- oParam.callback = "cf_TRAEA01301";
- tranf_submit(oParam);
- }
- function cf_TRAEA01301(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- ds_init1_cmb_info_initexecroom.updateColID("basecd","excuroomcdid");
- ds_init1_cmb_info_initexecroom.updateColID("basecdflagdesc","excuroomcdnm");
- }
- /****************************************************************************************
- * Argument : N/A
- * Description : 데이타검증 리스트 조회
- ****************************************************************************************/
- function call_TRAER00001() {
- var oParam = {};
- oParam.id = "TRAER00001";
- oParam.service = "examcureacptexecapp.ExamCurePrcs";
- oParam.method = "reqGetExamCureMDVList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_mdv_mdvlist=item";
- oParam.async = false;
- oParam.callback = "cf_TRAER00001";
- tranf_submit(oParam);
- }
- function cf_TRAER00001(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- dsf_setTypeFormat(ds_main_mdv_mdvlist, "execprcpuniqno:INT");
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAER00001
- * Event : oninit
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAER00001_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj); // 폼 초기화
- }
- /****************************************************************************************
- * Components : Form
- * Components ID : SMAER00001
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SMAER00001_onload(obj:Form, e:LoadEventInfo)
- {
- lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
- gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
-
- grdf_setGridSort(grd_mdvlist); // 그리드 소트만
-
- ds_main_mdv_mdvlist.clearData();
- var arrParam = [{dsNm: "ds_init_M0011", cdGrpId: "M0011"} //root/init2/cmb_info/initexecprcpstatcd
- ,{dsNm: "ds_init_M0010", cdGrpId: "M0010"} //root/init2/cmb_info/prcpgenrflag
- ];
- appf_getCodeList(arrParam);
- call_TRAEA00902(); //검사실
- call_TRAEA00904(); //지원부서
- call_TRAEA01301(); //검사실
- grp_sea.ipt_pid.setFocus();
-
- grp_sea.cmb_ddflag.index = 0;
- ds_send.setColumn(0,"fromdd",utlf_getCurrentDate());
- ds_send.setColumn(0,"todd",utlf_getCurrentDate());
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : grp_sea.btn_sea
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 조회실행
- ****************************************************************************************/
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_mdv_mdvlist.clearData();
- if ( utlf_isNull(ds_send.getColumn(0, "ddflag")) && utlf_isNull(ds_send.getColumn(0, "pid")) ) {
- sysf_messageBox("조회기간이 미입력되었으면 등록번호는 필수사항입니다","");
- return;
- }
-
- call_TRAER00001();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID : grp_sea.combo1
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 부서변경시 치료실 재조회
- ****************************************************************************************/
- function grp_sea_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- gSuppdeptcd = ds_send.getColumn(0, "suppdeptcd");
- ds_send.setColumn( 0, "excuroomcd", "");
- call_TRAEA00902();
- }
- /****************************************************************************************
- * Components : Edit
- * Components ID : grp_sea.ipt_pid
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 등록번호 입력 후 조회실행
- ****************************************************************************************/
- function grp_sea_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- grp_sea_btn_sea_onclick();
- }
- }
- /****************************************************************************************
- * Components : Button
- * Components ID : btn_excel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 엑셀저장
- ****************************************************************************************/
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- if( ds_main_mdv_mdvlist.rowcount > 0 ){
- grdf_exportExcel(grd_mdvlist, "SheetName", "SheetName", false, "", "user", false);
- } else {
- sysf_messageBox("조회된 데이터가 ", "I004");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|