123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMRT01000" position="absolute 0 0 968 641" titletext="전체마스터" onload="SPMRT01000_onload">
- <Layouts>
- <Layout>
- <Div id="grp_srch" taborder="0" position="absolute 280 8 967 48" class="div_SA2">
- <Layouts>
- <Layout>
- <Shape id="line13" class="line_4" position="absolute 607 9 613 31" anchor="default" linetype="vertical"/>
- <Calendar id="input1" taborder="7" class="input_search" position="absolute 80 10 165 29" anchor="default"/>
- <Static id="caption1" text="기준일 :" class="search_name" position="absolute 10 12 86 29" anchor="default"/>
- <Button id="btn_search" taborder="8" text="조회" class="btn1" position="absolute 620 9 676 31" anchor="default" onclick="grp_srch_btn_search_onclick"/>
- <Radio id="radio2" taborder="9" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 234 10 395 30" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">C</Col>
- <Col id="datacolumn">코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">E</Col>
- <Col id="datacolumn">영문명</Col>
- </Row>
- <Row>
- <Col id="codecolumn">H</Col>
- <Col id="datacolumn">한글명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption8" text="검색어 :" class="search_name" position="absolute 409 12 474 29" anchor="default"/>
- <Static id="caption9" text="구분 :" class="search_name" position="absolute 182 12 234 29" anchor="default"/>
- <Edit id="input5" taborder="10" class="input_search" position="absolute 475 10 600 29" anchor="default" onkeyup="grp_srch_input5_onkeyup"/>
- </Layout>
- </Layouts>
- </Div>
- <Tab id="swt_indxinfo" taborder="1" tabindex="0" class="tab_Normal" position="absolute 0 0 274 640">
- <Tabpages>
- <Tabpage id="case_opindx">
- <Layouts>
- <Layout>
- <Shape id="line1" class="line_10" position="absolute 0 16 274 22"/>
- <Static id="caption2" text="수술 확장 색인 정보" class="tit_2" position="absolute 0 0 187 17"/>
- <Grid id="trv_diagindxinfo" taborder="1" useinputpanel="false" treeusecheckbox="false" position="absolute 0 21 274 627" autofit="col" binddataset="ds_main_indxlist_item" oncellclick="swt_indxinfo_case_opindx_trv_diagindxinfo_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="273"/>
- </Columns>
- <Rows>
- <Row size="20"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" text="bind:indxhngnm" treestartlevel="1" treelevel="bind:depth"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_diagindx">
- <Layouts>
- <Layout>
- <Shape id="line3" class="line_10" position="absolute 0 16 274 22"/>
- <Static id="caption4" text="진단 확장 색인 정보" class="tit_2" position="absolute 0 0 179 17"/>
- <Grid id="trv_opindxinfo" taborder="1" useinputpanel="false" treeusecheckbox="false" position="absolute 0 21 274 627" autofit="col" binddataset="ds_main_indxlist_item" oncellclick="swt_indxinfo_case_diagindx_trv_opindxinfo_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="273"/>
- </Columns>
- <Rows>
- <Row size="20"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" text="bind:indxhngnm" treestartlevel="1" treelevel="bind:depth"/>
- </Band>
- </Format>
- <Format id="format_copy"/>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_ccindx">
- <Layouts>
- <Layout>
- <Static id="caption6" text="주호소 확장 색인 정보" class="tit_2" position="absolute 0 0 179 17"/>
- <Shape id="line5" class="line_10" position="absolute 0 16 274 22"/>
- <Grid id="trv_ccindxinfo" taborder="1" useinputpanel="false" treeusecheckbox="false" position="absolute 0 21 274 627" autofit="col" binddataset="ds_main_indxlist_item" oncellclick="swt_indxinfo_case_ccindx_trv_ccindxinfo_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="273"/>
- </Columns>
- <Rows>
- <Row size="20"/>
- </Rows>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" treestartlevel="1" treelevel="bind:depth"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- <Tab id="swt_terminfo" taborder="2" tabindex="0" class="tab_Normal" position="absolute 280 36 967 640">
- <Tabpages>
- <Tabpage id="case_opterminfo">
- <Layouts>
- <Layout>
- <Static id="caption3" text="수술 정보" class="tit_2" position="absolute 0 7 179 24"/>
- <Shape id="line2" class="line_10" position="absolute 0 23 687 29"/>
- <Grid id="grd_opinfo" taborder="8" binddataset="ds_main_termlist_terminfo" useinputpanel="false" position="absolute 0 28 687 591" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="40"/>
- <Column size="82"/>
- <Column size="293"/>
- <Column size="283"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="ICD-9"/>
- <Cell col="3" text="수술영문명"/>
- <Cell col="4" text="수술한글명"/>
- </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"/>
- <Cell col="2" displaytype="text" text="bind:termcd"/>
- <Cell col="3" displaytype="text" text="bind:termengnm"/>
- <Cell col="4" displaytype="text" text="bind:termhngnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_sendop" taborder="9" text="선택" class="btn2" position="absolute 601 1 643 23" onclick="swt_terminfo_case_opterminfo_btn_sendop_onclick"/>
- <Button id="btn_closeop" taborder="10" text="닫기" class="btn2" position="absolute 645 1 687 23" onclick="swt_terminfo_case_opterminfo_btn_closeop_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_diagterminfo">
- <Layouts>
- <Layout>
- <Static id="caption5" text="진단 정보" class="tit_2" position="absolute 0 7 179 24"/>
- <Shape id="line4" class="line_10" position="absolute 0 23 687 29"/>
- <Grid id="grd_diaginfo" taborder="8" binddataset="ds_main_termlist_terminfo" useinputpanel="false" position="absolute 0 28 687 591" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="40"/>
- <Column size="82"/>
- <Column size="293"/>
- <Column size="283"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="ICD-10"/>
- <Cell col="3" text="진단영문명"/>
- <Cell col="4" text="진단한글명"/>
- </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"/>
- <Cell col="2" displaytype="text" text="bind:termcd"/>
- <Cell col="3" displaytype="text" text="bind:termengnm"/>
- <Cell col="4" displaytype="text" text="bind:termhngnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_senddiag" taborder="9" text="선택" class="btn2" position="absolute 601 1 643 23" onclick="swt_terminfo_case_diagterminfo_btn_senddiag_onclick"/>
- <Button id="btn_closediag" taborder="10" text="닫기" class="btn2" position="absolute 645 1 687 23" onclick="swt_terminfo_case_diagterminfo_btn_closediag_onclick"/>
- </Layout>
- </Layouts>
- </Tabpage>
- <Tabpage id="case_ccterminfo">
- <Layouts>
- <Layout>
- <Button id="button2" taborder="8" text="선택" class="btn2" position="absolute 601 1 643 23" onclick="swt_terminfo_case_ccterminfo_button2_onclick"/>
- <Button id="button4" taborder="9" text="닫기" class="btn2" position="absolute 645 1 687 23" onclick="swt_terminfo_case_ccterminfo_button4_onclick"/>
- <Static id="caption7" text="주호소 정보" class="tit_2" position="absolute 0 7 179 24"/>
- <Shape id="line6" class="line_10" position="absolute 0 23 687 29"/>
- <Grid id="grd_ccinfo" taborder="10" binddataset="ds_main_termlist_terminfo" useinputpanel="false" position="absolute 0 28 687 591" cellclickbound="cell">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="40"/>
- <Column size="82"/>
- <Column size="293"/>
- <Column size="283"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="주호소코드"/>
- <Cell col="3" text="주호소 영문명"/>
- <Cell col="4" text="주호소 한글명"/>
- </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"/>
- <Cell col="2" displaytype="text" text="bind:termcd"/>
- <Cell col="3" displaytype="text" text="bind:termengnm"/>
- <Cell col="4" displaytype="text" text="bind:termhngnm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Tabpage>
- </Tabpages>
- </Tab>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main_termlist_terminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_termlist_terminfo_oncolumnchanged">
- <ColumnInfo>
- <Column id="check" type="STRING" size="256"/>
- <Column id="termcd" type="STRING" size="256"/>
- <Column id="termengnm" type="STRING" size="256"/>
- <Column id="termhngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="check"/>
- <Col id="termcd"/>
- <Col id="termengnm"/>
- <Col id="termhngnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="send" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="send"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="basedd" type="STRING" size="256"/>
- <Column id="indxcd" type="STRING" size="256"/>
- <Column id="indxflag" type="STRING" size="256"/>
- <Column id="deptcd" type="STRING" size="256"/>
- <Column id="deptindxcd" type="STRING" size="256"/>
- <Column id="deptnm" type="STRING" size="256"/>
- <Column id="srchflag" type="STRING" size="256"/>
- <Column id="srchnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basedd"/>
- <Col id="indxcd"/>
- <Col id="indxflag"/>
- <Col id="deptcd"/>
- <Col id="deptindxcd"/>
- <Col id="deptnm"/>
- <Col id="srchflag"/>
- <Col id="srchnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_indxlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="depth" type="STRING" size="256"/>
- <Column id="indxcd" type="STRING" size="256"/>
- <Column id="upindxcd" type="STRING" size="256"/>
- <Column id="indxhngnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="depth"/>
- <Col id="indxcd"/>
- <Col id="upindxcd"/>
- <Col id="indxhngnm"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="init" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_srch.input1" propid="value" datasetid="ds_hidden_condition" columnid="basedd"/>
- <BindItem id="item1" compid="grp_srch.radio2" propid="value" datasetid="ds_hidden_condition" columnid="srchflag"/>
- <BindItem id="item2" compid="grp_srch.input5" propid="value" datasetid="ds_hidden_condition" columnid="srchnm"/>
- </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 "emr_termmngtxp::SPMRT01000.xjs";
- //=======================================================================================
- // Global Form Variable
- //---------------------------------------------------------------------------------------
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- ////////////////////////////////////////////////SMMRT00200.xjs////////////////////////////////////////////////
- var xCondPath = "ds_hidden_condition";
- var xIndxListPath = "ds_main_indxlist_item";
- var xTermListPath = "ds_main_termlist_terminfo";
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 화면을 초기화 한다
- ****************************************************************************************/
- function fInitalize() {
- var indxflag = opener.frmf_getParameter("indxflag");
- // Edited by NJ 2007-07-21 getDate() -> utlf_getCurrentDate()
- this.objects[xCondPath].setColumn(0, "basedd", utlf_getCurrentDate());
- this.objects[xCondPath].setColumn(0, "indxflag", indxflag); // 0 : 진단, 9 : 수술, 2 : 주호소
- switch(indxflag){
- case "0" : // 진단
- swt_indxinfo.tabindex = 1;
- swt_terminfo.tabindex = 1;
- break;
- case "9" : // 수술
- swt_indxinfo.tabindex = 0;
- swt_terminfo.tabindex = 0;
- break;
- case "2" : // 조호소
- swt_indxinfo.tabindex = 2;
- swt_terminfo.tabindex = 2;
- break;
- }
-
- this.objects[xIndxListPath].clearData();
- this.objects[xTermListPath].clearData();
- dsf_makeValue( ds_send, "indxflag", "string", indxflag);
- var oParam = {};
- oParam.id = "TRMRT01001";
- oParam.service = "termmngtapp.DeptSetMngt";
- oParam.method = "reqGetIndxList";
- oParam.inds = "reqCond=ds_send";
- oParam.outds = "ds_main_indxlist_item=item";
- oParam.async = false;
- //oParam.callback = "cf_TRMRT01001";
- tranf_submit(oParam);
- }
- /*-**************************************************************************************
- * Argument : flag - index / Null
- * Description : 용어 조회
- ****************************************************************************************/
- function fSearchTermInfo(flag){
- ds_send.clearData();
- if(flag == "index"){
- dsf_makeValue( ds_send, "srchflag", "string", "");
- dsf_makeValue( ds_send, "srchnm", "string", "");
- } else {
- dsf_makeValue( ds_send, "srchflag", "string", this.objects[xCondPath].getColumn(0,"srchflag"));
- dsf_makeValue( ds_send, "srchnm", "string", this.objects[xCondPath].getColumn(0,"srchnm"));
- }
- dsf_makeValue( ds_send, "indxflag", "string", this.objects[xCondPath].getColumn(0,"indxflag"));
- dsf_makeValue( ds_send, "indxcd", "string", this.objects[xCondPath].getColumn(0,"indxcd"));
- dsf_makeValue( ds_send, "basedd", "string", this.objects[xCondPath].getColumn(0,"basedd"));
- var oParam = {};
- oParam.id = "TRMRT01002";
- oParam.service = "termmngtapp.DeptSetMngt";
- oParam.method = "reqGetTermList";
- oParam.inds = "reqCond=ds_send";
- oParam.outds = "ds_main_termlist_terminfo=terminfo";
- oParam.async = false;
- //oParam.callback = "cf_TRMRT01002";
- tranf_submit(oParam);
- }
- /*-**************************************************************************************
- * Argument : N/A
- * Description : 선택된 용어 등록
- ****************************************************************************************/
- function fSendTermInfo(){
- var indxflag = this.objects[xCondPath].getColumn(0,"indxflag"); // 0 : 진단, 9 : 수술
- var sRowCnt = 0;
- var iSrchDiagRow = 0;
- var sTermCd = "";
- switch(indxflag){
- case "0" : // 진단
- sRowCnt = ds_main_termlist_terminfo.rowcount;
- // var sSrchDiagObj = frmf_getComponents("grd_srcheddiaginfo", opener);
- // var dsSrchDiagObj = opener.objects[sSrchDiagObj.binddataset];
- var sSrchDiagListPath = "ds_main_srcheddiagcdlist_srcheddiagcdinfo";
- for(var iRow = 0; iRow < sRowCnt; iRow++){
- if(this.objects[xTermListPath].getColumn(iRow, "check") == "Y"){
- sTermCd = this.objects[xTermListPath].getColumn(iRow, "termcd");
- if(utlf_isNull(opener.objects[sSrchDiagListPath].lookup("termcd", sTermCd, "termcd"))) {
- var iSrchDiagRow = opener.objects[sSrchDiagListPath].addRow();
- opener.objects[sSrchDiagListPath].setColumn( iSrchDiagRow, "termcd", sTermCd);
- opener.objects[sSrchDiagListPath].setColumn( iSrchDiagRow, "termengnm", this.objects[xTermListPath].getColumn(iRow, "termengnm"));
- opener.objects[sSrchDiagListPath].setColumn( iSrchDiagRow, "termhngnm", this.objects[xTermListPath].getColumn(iRow, "termhngnm"));
- }
- }
- }
- break;
- case "9" : // 수술
- sRowCnt = ds_main_termlist_terminfo.rowcount;
- // var sSrchOpObj = frmf_getComponents("grd_srchedopinfo", opener);
- // var dsSrchOpObj = opener.objects[sSrchOpObj.binddataset];
- var sSrchOpListPath = "ds_main_srchedopcdlist_srchedopcdinfo";
- for(var iRow = 0; iRow < sRowCnt; iRow++){
- if(this.objects[xTermListPath].getColumn(iRow, "check") == "Y"){
- sTermCd = this.objects[xTermListPath].getColumn(iRow, "termcd");
- if(utlf_isNull(opener.objects[sSrchOpListPath].lookup("termcd", sTermCd, "termcd"))) {
- var iSrchOpRow = opener.objects[sSrchOpListPath].addRow();
- opener.objects[sSrchOpListPath].setColumn( iSrchOpRow, "termcd", sTermCd);
- opener.objects[sSrchOpListPath].setColumn( iSrchOpRow, "termengnm", this.objects[xTermListPath].getColumn(iRow, "termengnm"));
- opener.objects[sSrchOpListPath].setColumn( iSrchOpRow, "termhngnm", this.objects[xTermListPath].getColumn(iRow, "termhngnm"));
- }
- }
- }
- break;
- case "2" : // 주호소
- sRowCnt = ds_main_termlist_terminfo.rowcount;
- // var sSrchCCObj = frmf_getComponents("grd_srchedccinfo", opener);
- // var dsSrchCCObj = opener.objects[sSrchCCObj.binddataset];
- var sSrchCCListPath = "ds_main_srchedcccdlist_srchedcccdinfo";
- for(var iRow = 0; iRow < sRowCnt; iRow++){
- if(this.objects[xTermListPath].getColumn(iRow, "check") == "Y"){
- sTermCd = this.objects[xTermListPath].getColumn(iRow, "termcd");
- if(utlf_isNull(opener.objects[sSrchCCListPath].lookup("termcd", sTermCd, "termcd"))) {
- var iSrchCCRow = opener.objects[sSrchCCListPath].addRow();
- opener.objects[sSrchCCListPath].setColumn( iSrchCCRow, "termcd", sTermCd);
- opener.objects[sSrchCCListPath].setColumn( iSrchCCRow, "termengnm", this.objects[xTermListPath].getColumn(iRow, "termengnm"));
- opener.objects[sSrchCCListPath].setColumn( iSrchCCRow, "termhngnm", this.objects[xTermListPath].getColumn(iRow, "termhngnm"));
- }
- }
- }
- break;
- }
- }
- ////////////////////////////////////////////////SMMRT00200.xjs////////////////////////////////////////////////
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components : Form
- * Description : 화면 처음 초기화시 폼초기화
- ****************************************************************************************/
- function SPMRT01000_onload(obj:Form, e:LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(swt_terminfo.case_opterminfo.grd_opinfo);
- grdf_initGrid(swt_terminfo.case_diagterminfo.grd_diaginfo);
- grdf_initGrid(swt_terminfo.case_ccterminfo.grd_ccinfo);
- //grdf_setGridSort(grd_XXX);
- //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
- fInitalize();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 조회
- ****************************************************************************************/
- function grp_srch_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fSearchTermInfo();
- }
- /****************************************************************************************
- * Components : Edit
- * Description : 검색어 입력 후 조회
- ****************************************************************************************/
- function grp_srch_input5_onkeyup(obj:Edit, e:KeyEventInfo) {
- if(e.keycode == 13) {
- obj.updateToDataset();
- grp_srch.btn_search.click();
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 수술확장색인정보 선택
- ****************************************************************************************/
- function swt_indxinfo_case_opindx_trv_diagindxinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
- fSearchTermInfo("index");
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 진단확장색인정보 선택
- ****************************************************************************************/
- function swt_indxinfo_case_diagindx_trv_opindxinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
- fSearchTermInfo("index");
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 주호소확장색인정보 선택
- ****************************************************************************************/
- function swt_indxinfo_case_ccindx_trv_ccindxinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
- fSearchTermInfo("index");
- }
- function swt_terminfo_case_opterminfo_grd_opinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
- // if(swt_terminfo.case_opterminfo.grd_opinfo.row == 0){
- // var sFlag = "";
- // if(ds_main_termlist_terminfo.getColumn(1, "check") == "true"){
- // sFlag = "false";
- // }else{
- // sFlag = "true";
- // }
- // var sRowCnt = swt_terminfo.case_opterminfo.grd_opinfo.rows- swt_terminfo.case_opterminfo.grd_opinfo.fixedRows;
- // for(var iRow = 1; iRow <= sRowCnt; iRow++){
- // eval(xTermListPath).setColumn( iRow, "check", sFlag);
- // }
- // swt_terminfo.case_opterminfo.grd_opinfo.rebuild();
- // }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 진단정보 선택
- ****************************************************************************************/
- function swt_terminfo_case_opterminfo_btn_sendop_onclick(obj:Button, e:ClickEventInfo) {
- fSendTermInfo();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 진단정보 닫기
- ****************************************************************************************/
- function swt_terminfo_case_opterminfo_btn_closeop_onclick(obj:Button, e:ClickEventInfo) {
- this.close();
- }
- /****************************************************************************************
- * Components : Grid
- * Description : 진단정보 선택
- ****************************************************************************************/
- function swt_terminfo_case_diagterminfo_grd_diaginfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
- // if(ds_main_termlist_terminfo.rowposition == 0){
- // var sFlag = "";
- // if(ds_main_termlist_terminfo.getColumn(0, "check") == "Y"){
- // sFlag = "N";
- // }else{
- // sFlag = "Y";
- // }
- //
- // var sRowCnt = ds_main_termlist_terminfo.rowcount;
- // for(var iRow = 0; iRow <= sRowCnt; iRow++){
- // eval(xTermListPath).setColumn( iRow, "check", sFlag);
- // }
- // swt_terminfo.case_diagterminfo.grd_diaginfo.rebuild();
- // }
- }
- /****************************************************************************************
- * Components : Button
- * Description : 진단정보 선택
- ****************************************************************************************/
- function swt_terminfo_case_diagterminfo_btn_senddiag_onclick(obj:Button, e:ClickEventInfo) {
- fSendTermInfo();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 진단정보 닫기
- ****************************************************************************************/
- function swt_terminfo_case_diagterminfo_btn_closediag_onclick(obj:Button, e:ClickEventInfo) {
- this.close();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 진단정보 선택
- ****************************************************************************************/
- function swt_terminfo_case_ccterminfo_button2_onclick(obj:Button, e:ClickEventInfo) {
- fSendTermInfo();
- }
- /****************************************************************************************
- * Components : Button
- * Description : 진단정보 닫기
- ****************************************************************************************/
- function swt_terminfo_case_ccterminfo_button4_onclick(obj:Button, e:ClickEventInfo) {
- this.close();
- }
- function swt_terminfo_case_ccterminfo_grd_ccinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
- // if(swt_terminfo.case_ccterminfo.grd_ccinfo.row == 0){
- // var sFlag = "";
- // if(ds_main_termlist_terminfo.getColumn(1, "check") == "true"){
- // sFlag = "false";
- // }else{
- // sFlag = "true";
- // }
- // var sRowCnt = swt_terminfo.case_ccterminfo.grd_ccinfo.rows- swt_terminfo.case_ccterminfo.grd_ccinfo.fixedRows;
- // for(var iRow = 1; iRow <= sRowCnt; iRow++){
- // eval(xTermListPath).setColumn( iRow, "check", sFlag);
- // }
- // swt_terminfo.case_ccterminfo.grd_ccinfo.rebuild();
- // }
- }
- function ds_main_termlist_terminfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid=="check") {
- obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|