123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLLF90800" position="absolute 0 0 1199 760" titletext="통합검사코드목록" oninit="SPLLF90800_oninit" onload="SPLLF90800_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" text="검사코드추가" class="tit_2" position="absolute 1 10 127 27"/>
- <Div id="group3" taborder="1" class="div_SA2" position="absolute 0 30 1195 70">
- <Layouts>
- <Layout>
- <Shape id="line4" linetype="vertical" class="line_4" position="absolute 1107 9 1113 31" anchor="default"/>
- <Static id="caption7" text="검색구분 :" class="search_name" position="absolute 785 11 875 28" anchor="default"/>
- <Combo id="cmb_refgbn" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group2_group3_cmb_refgbn_onitemchanged" class="combo_search" position="absolute 880 10 965 29" anchor="default">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">검사코드</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">검사명</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Edit id="ipt_refgbn" taborder="2" class="input_s_button" position="absolute 970 10 1090 29" anchor="default" onkeyup="group3_ipt_refgbn_onkeyup"/>
- <Button id="btn_search" taborder="3" text="검색" class="btn1" position="absolute 1120 9 1176 31" anchor="default" onclick="group3_btn_search_onclick"/>
- <Static id="caption8" text="조회구분 :" class="search_name" position="absolute 17 11 104 28" anchor="default"/>
- <Combo id="cmb_TestLrgCd" taborder="4" innerdataset="@ds_init_LB0104" codecolumn="cd" datacolumn="nm" onitemchanged="group2_group3_cmb_TestLrgCd_onitemchanged" class="combo_s_essential" position="absolute 109 10 244 29" anchor="default"/>
- <Combo id="cmb_TestMdlCd" taborder="5" innerdataset="@ds_init_LB0102" codecolumn="cd" datacolumn="nm" class="combo_s_essential" position="absolute 247 10 382 29" anchor="default"/>
- <Button id="btn_ref" taborder="6" text="조회" class="btn1" position="absolute 413 9 469 31" anchor="default" onclick="group3_btn_ref_onclick"/>
- <Shape id="line5" linetype="vertical" class="line_4" position="absolute 395 9 401 31" anchor="default"/>
- <Button id="btn_search00" taborder="7" onclick="group4_btn_search_onclick" position="absolute 1072 12 1088 27" style="background:skyblue;"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line6" class="line_1" position="absolute 0 91 365 97" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_tclsinstlist" taborder="2" binddataset="ds_main_tclsinst_tclslist" useinputpanel="false" position="absolute 0 96 365 756" autofittype="col" cellsizingtype="col" oncellclick="grd_tclsinstlist_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="27"/>
- <Column size="70"/>
- <Column size="158"/>
- <Column size="85"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="fromdd"/>
- <Cell col="2" text="todd"/>
- <Cell col="3"/>
- <Cell col="4" text="검사코드"/>
- <Cell col="5" text="검사명"/>
- <Cell col="6" text="검사구분코드"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="1" displaytype="date" edittype="date" text="bind:fromdd" mask="yyyy-mm-dd"/>
- <Cell col="2" displaytype="date" edittype="date" text="bind:todd" mask="yyyy-mm-dd"/>
- <Cell col="3" celltype="head" expr="expr:currow + 1"/>
- <Cell col="4" style="align:left middle;" text="bind:tclscd"/>
- <Cell col="5" style="align:left middle;" text="bind:tclsnm"/>
- <Cell col="6" displaytype="combo" edittype="combo" text="bind:tclskind" combodataset="ds_init_tclskind" combocodecol="value" combodatacol="label" enable="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Grid id="grd_tclscdlist" taborder="3" binddataset="ds_main_tclslist_tclscdlist" useinputpanel="false" position="absolute 410 455 1190 756">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="74"/>
- <Column size="216"/>
- <Column size="80"/>
- </Columns>
- <Rows>
- <Row size="24" 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="검사구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="expr:currow + 1"/>
- <Cell col="1" displaytype="date" text="bind:tclscdfromdd" mask="yyyy-MM-dd"/>
- <Cell col="2" displaytype="date" text="bind:tclstodd" mask="yyyy-MM-dd"/>
- <Cell col="3" style="align:left middle;" text="bind:tclscd"/>
- <Cell col="4" style="align:left middle;" text="bind:tclsnm"/>
- <Cell col="5" displaytype="combo" edittype="combo" text="bind:tclskind" combodataset="ds_init_tclskind" combocodecol="value" combodatacol="label" enable="false"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption9" text="통합검사코드 목록" class="tit_2" position="absolute 1 75 137 91"/>
- <Static id="caption10" text="병원별 등록 할 코드 목록" class="tit_2" position="absolute 410 75 587 91"/>
- <Button id="btn_save" taborder="4" text="저장" class="btn4" enable="false" position="absolute 1078 7 1134 29" onclick="btn_save_onclick"/>
- <Button id="btn_close" taborder="5" text="닫기" class="btn4" position="absolute 1137 7 1193 29" onclick="btn_close_onclick"/>
- <Grid id="grd_instclslist" taborder="6" binddataset="ds_main_instclslist_tclslist" useinputpanel="false" position="absolute 410 96 1190 415" ontextchange="grd_instclslist_ontextchange">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="28"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="74"/>
- <Column size="136"/>
- <Column size="130"/>
- <Column size="132"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1"/>
- <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="tclsscrnnm"/>
- <Cell col="10" text="tclsabbrnm"/>
- <Cell col="11" text="tclsprntnm"/>
- <Cell col="12" text="tclslblnm"/>
- <Cell col="13" text="testlrgcd"/>
- <Cell col="14" text="testmdlcd"/>
- <Cell col="15" text="userdeptflagcd"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="1" celltype="head" expr="expr:currow + 1"/>
- <Cell col="2" displaytype="date" edittype="date" text="bind:fromdd" mask="yyyy-MM-dd"/>
- <Cell col="3" displaytype="date" edittype="date" text="bind:todd" mask="yyyy-MM-dd"/>
- <Cell col="4" text="bind:tclscd"/>
- <Cell col="5" text="bind:tclsnm"/>
- <Cell col="6" displaytype="combo" edittype="combo" text="bind:spccd" combodataset="ds_init_LB0105" combocodecol="cd" combodatacol="nm" combodisplayrowcount="30"/>
- <Cell col="7" displaytype="combo" edittype="combo" text="bind:tsectcd" combodataset="ds_init_LB0106" combocodecol="cd" combodatacol="nm" combodisplayrowcount="30"/>
- <Cell col="8" displaytype="combo" edittype="combo" text="bind:tclskind" combodataset="ds_init_tclskind" combocodecol="value" combodatacol="label" enable="false"/>
- <Cell col="9" text="bind:tclsscrnnm"/>
- <Cell col="10" text="bind:tclsabbrnm"/>
- <Cell col="11" text="bind:tclsprntnm"/>
- <Cell col="12" text="bind:tclslblnm"/>
- <Cell col="13" text="bind:testlrgcd"/>
- <Cell col="14" text="bind:testmdlcd"/>
- <Cell col="15" text="bind:userdeptflagcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption11" text="병원별 등록 된 코드 목록" class="tit_2" position="absolute 410 434 587 450"/>
- <Shape id="line8" class="line_1" position="absolute 410 451 1190 457" style="strokepen:3 solid #33bbbbff;"/>
- <Button id="btn_move" taborder="7" class="icon_right" position="absolute 374 220 400 239" onclick="btn_move_onclick"/>
- <Button id="button8" taborder="8" text="초기화" class="btn2" position="absolute 1136 71 1189 90" onclick="button8_onclick"/>
- <Button id="button5" taborder="9" text="행삭제" class="btn2" position="absolute 1081 71 1134 90" onclick="button5_onclick"/>
- <Shape id="line00" class="line_1" position="absolute 410 92 1191 98" style="strokepen:3 solid #33bbbbff;"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_tclsinst_tclslist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- <Column id="tclscd" type="STRING"/>
- <Column id="tclsnm" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="tsectcd" type="STRING"/>
- <Column id="tclskind" type="STRING"/>
- <Column id="tclsscrnnm" type="STRING"/>
- <Column id="tclsabbrnm" type="STRING"/>
- <Column id="tclsprntnm" type="STRING"/>
- <Column id="tclslblnm" type="STRING"/>
- <Column id="testlrgcd" type="STRING"/>
- <Column id="testmdlcd" type="STRING"/>
- <Column id="userdeptflagcd" type="STRING"/>
- <Column id="datechk" type="STRING" size="256"/>
- <Column id="reffromdd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_tclslist_tclscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="tclscdfromdd" type="STRING"/>
- <Column id="tclstodd" type="STRING"/>
- <Column id="tclscd" type="STRING"/>
- <Column id="tclsnm" type="STRING"/>
- <Column id="tclskind" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_instclslist_tclslist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- <Column id="tclscd" type="STRING"/>
- <Column id="tclsnm" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="tsectcd" type="STRING"/>
- <Column id="tclskind" type="STRING"/>
- <Column id="tclsscrnnm" type="STRING"/>
- <Column id="tclsabbrnm" type="STRING"/>
- <Column id="tclsprntnm" type="STRING"/>
- <Column id="tclslblnm" type="STRING"/>
- <Column id="testlrgcd" type="STRING"/>
- <Column id="testmdlcd" type="STRING"/>
- <Column id="userdeptflagcd" type="STRING"/>
- <Column id="datechk" type="STRING" size="256"/>
- <Column id="reffromdd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="codeflag" type="STRING" size="256"/>
- <Column id="btngbn" type="STRING" size="256"/>
- <Column id="tclscd" type="STRING" size="256"/>
- <Column id="userdeptflagcd" type="STRING" size="256"/>
- <Column id="searchgbn" type="STRING" size="256"/>
- <Column id="searchtext" type="STRING" size="256"/>
- <Column id="testlrgcd" type="STRING" size="256"/>
- <Column id="testmdlcd" type="STRING" size="256"/>
- <Column id="addtclscd" 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">
- <ColumnInfo>
- <Column id="testlrg" type="STRING" size="256"/>
- <Column id="testmdl" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="searchtext" type="STRING" size="256"/>
- <Column id="searchgbn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden_searchgbn" 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">1</Col>
- </Row>
- <Row>
- <Col id="label">검사명</Col>
- <Col id="value">2</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_LB0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING" size="256" sumtext="코드"/>
- <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
- <Column id="chk" type="STRING" size="256" sumtext="chk"/>
- <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
- <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
- <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
- <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
- <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_LB0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_LB0105" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_LB0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_LB0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_LB9999" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_tclskind" 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">Group</Col>
- <Col id="value">0</Col>
- </Row>
- <Row>
- <Col id="label">Panel</Col>
- <Col id="value">1</Col>
- </Row>
- <Row>
- <Col id="label">Single</Col>
- <Col id="value">2</Col>
- </Row>
- <Row>
- <Col id="label">Parent</Col>
- <Col id="value">3</Col>
- </Row>
- <Row>
- <Col id="label">Child</Col>
- <Col id="value">4</Col>
- </Row>
- <Row>
- <Col id="label">Abnormal</Col>
- <Col id="value">5</Col>
- </Row>
- <Row>
- <Col id="label">성분제제</Col>
- <Col id="value">6</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group3.cmb_TestLrgCd" propid="value" datasetid="ds_hidden" columnid="testlrg"/>
- <BindItem id="item1" compid="group3.cmb_TestMdlCd" propid="value" datasetid="ds_hidden" columnid="testmdl"/>
- <BindItem id="item2" compid="group3.cmb_refgbn" propid="value" datasetid="ds_hidden_search" columnid="searchgbn"/>
- <BindItem id="item3" compid="group3.ipt_refgbn" propid="value" datasetid="ds_hidden_search" columnid="searchtext"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator : SPLLF90800_통합검사코드목록.xfdl
- * Make Date : 2015-12-16
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-09 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- function SPLLF90800_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPLLF90800_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_tclscdlist);
- grdf_initGrid(grd_instclslist);
- grdf_initGrid(grd_tclsinstlist);
-
- ds_send.setColumn(0, "codeflag", "0102|0104|0105|0106|0000|9999|");
-
- var oParam = {};
- oParam.id = "TRLZZ00101";
- oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
- oParam.method = "reqGetInitCodeInfo";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_init_LB0102=0102 ds_init_LB0104=0104 ds_init_LB0105=0105 ds_init_LB0106=0106 ds_init_LB0000=0000 ds_init_LB9999=9999";
- oParam.async = false;
- //oParam.callback = "cf_TRLZZ00101";
- tranf_submit(oParam);
-
- group3.cmb_refgbn.index = 0;
-
- ds_hidden_search.setColumn(0, "searchtext", "");
- ds_hidden.setColumn(0, "testlrg", "00");
- ds_hidden.setColumn(0, "testmdl", "00");
-
- ds_main_instclslist_tclslist.clearData();
-
- //검사코드 추가 권한자이면 저장 버튼 활성화
-
- var Chkuserid1 = ds_init_LB0000.getColumn(0, "cd");
-
- ds_init_LB9999.filterstr = "cd =='" + Chkuserid1 + "'";
- var n = ds_init_LB9999.rowcount;
-
- //권한있음
- if(n > 0)
- {
- btn_save.enable = true;
- }
- }
- //조회
- function group3_btn_ref_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetTclsInstList("B");
- }
- //통합검사코드목록 검색 Function
- function fGetTclsInstList(btngbn)
- {
- if(btngbn == "A") //검색버튼
- {
- if(utlf_isNull(ds_hidden_search.getColumn(0, "searchtext")))
- {
- sysf_messageBox("검색내용을 입력하세요.", "I");
- return;
- }
- ds_send.setColumn(0, "searchtext", group3.ipt_refgbn.text); //검색내용
- ds_send.setColumn(0, "searchgbn", ds_hidden_search.getColumn(0, "searchgbn")); //검색구분
- }
- else if(btngbn == "B") //조회버튼
- {
- if(ds_hidden.getColumn(0, "testlrg") == "00" && ds_hidden.getColumn(0, "testmdl") == "00")
- {
- sysf_messageBox("조회구분을 선택해주세요.", "I");
- return;
- }
- ds_send.setColumn(0, "testlrgcd", ds_hidden.getColumn(0, "testlrg")); //대분류
- ds_send.setColumn(0, "testmdlcd", ds_hidden.getColumn(0, "testmdl")); //중분류
- }
-
- ds_send.setColumn(0, "btngbn", btngbn) //버튼구분
- ds_send.setColumn(0, "userdeptflagcd", ds_init_LB0000.getColumn(0, "nm")); //부서구분(L:진검, P:병리, N:핵체외)
-
- var oParam = {};
- oParam.id = "TRLLF90801";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetSytsTestCdList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_main_tclsinst_tclslist=getSytsTestCdList";
- oParam.async = false;
- //oParam.callback = "cf_TRLLF90801";
- tranf_submit(oParam);
- }
- //검색
- function group3_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetTclsInstList("A");
- }
- function btn_move_onclick(obj:Button, e:ClickEventInfo)
- {
- fSetInslTestList();
- }
- //추가할 검사코드 목록 이동
- function fSetInslTestList(){
-
- //통합검사코드목록에서 선택한 코드와 등록된 코드목록에 조회된 코드가 다르면 다시 조회
- if(ds_main_tclsinst_tclslist.getColumn(ds_main_tclsinst_tclslist.rowposition, "tclscd") != ds_main_tclslist_tclscdlist.getColumn(0, "tclscd"))
- {
- fGetTclsList(ds_main_tclsinst_tclslist, ds_main_tclslist_tclscdlist.rowposition);
- }
-
- var toDay = utlf_getCurrentDate();
- var mDate;
-
- //통합검사 코드목록
- var tclscd = ds_main_tclsinst_tclslist.getColumn(ds_main_tclsinst_tclslist.rowposition, "tclscd");
-
- //통합검사코드목록 선택한 검사코드가 등록할 그리드에 있는지 체크
- var findRowNum = ds_main_instclslist_tclslist.findRow("tclscd", tclscd);
-
- //병원별 이미 등록 된 코드 목록
- var tclscdlistRows = ds_main_tclslist_tclscdlist.rowcount1;
-
- //병원별 등록된 코드목록 중에서 마지막 종료일자. 첫번째 row가 가장 마지막이다. 쿼리에서 종료일자 desc
- var tclslistTodd = ds_main_tclslist_tclscdlist.getColumn(0, "tclstodd");
-
- //----------------------
- //종료일자가 99991231 이 있으면 등록 안한다.
- if(tclslistTodd == "99991231")
- {
- sysf_messageBox("해당 코드는 등록할 수 없습니다.\n\n사용중인 코드의 종료일자가 9999-12-31 입니다.", "I");
- return;
- }
-
- //----------------------
- //등록할 그리드에 있으면 등록 추가 안한다.
- trace("findRowNum = " + findRowNum);
- if(findRowNum >= 0)
- {
- sysf_messageBox(tclscd + "는 " + findRowNum+ "행에 존재합니다.", "I");
- return;
- }
- else
- {
- //등록할 그리드에 추가한다.
- var tclrow = ds_main_instclslist_tclslist.addRow();
- ds_main_instclslist_tclslist.copyRow(tclrow, ds_main_tclsinst_tclslist, ds_main_tclsinst_tclslist.rowposition);
- //추가한 행으로 포커스 이동
- ds_main_instclslist_tclslist.rowposition = ds_main_instclslist_tclslist.rowcount -1;
- }
-
- //------------------------------------
- //병원별 이미 등록된 코드가 있다면.
- if(tclscdlistRows > 0)
- {
- //병원별 등록된 것의 가장 마지막 종료일자가 99991231 이 아니면 +1일 , 99991231 이면 99991231
- if(tclslistTodd == "99991231")
- {
- ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "fromdd", tclslistTodd);
- }
- else
- {
- mDate = tclslistTodd.toDate("YYYYMMDD").getAddDate(+1);
- ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "fromdd", mDate);
- }
- }
- else
- {
- //현재일자
- ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "fromdd", toDay);
- }
- ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "todd", "99991231");
-
- //시작일자 변경시 체크하기 위해 셋팅한다.
- ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "reffromdd", ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowposition, "fromdd"));
-
- //날짜체크 이상 없음.
- ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "datechk", "Y");
- ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "chk", "Y");
-
- //핵의학일때는 시행부서 셋팅
- if(ds_init_LB0000.getColumn(0, "nm") == "N")
- {
- ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "tsectcd", "NR");
- }
- }
- function grd_tclsinstlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fGetTclsList(ds_main_tclsinst_tclslist, ds_main_tclsinst_tclslist.rowposition);
- }
- //등록된 검사코드 목록
- function fGetTclsList(ref, row)
- {
- ds_send.setColumn(0, "tclscd", ref.getColumn(row, "tclscd"));
- ds_send.setColumn(0, "userdeptflagcd", ds_init_LB0000.getColumn(0, "nm"));
-
- var oParam = {};
- oParam.id = "TRLLF90802";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqGetUseTclsList";
- oParam.inds = "cond=ds_send";
- oParam.outds = "ds_main_tclslist_tclscdlist=getUseTclsList";
- oParam.async = false;
- //oParam.callback = "cf_TRLLF90802";
- tranf_submit(oParam);
- }
- function button5_onclick(obj:Button, e:ClickEventInfo)
- {
- fDeleteRow();
- }
- //행삭제
- function fDeleteRow()
- {
- ds_main_instclslist_tclslist.deleteRow(ds_main_instclslist_tclslist.rowposition);
- }
- function button8_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_instclslist_tclslist.clearData();
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveTclsList();
- fGetTclsList(ds_main_tclsinst_tclslist, ds_main_tclsinst_tclslist.rowposition);
- }
- //병원별 검사코드 등록
- function fSaveTclsList()
- {
- var rowCnt = ds_main_instclslist_tclslist.rowcount;
- var spccd = "";
- var tsectcd = "";
-
- if(rowCnt > 0)
- {
- for(iRow = 0; iRow < rowCnt; iRow++)
- {
- spccd = ds_main_instclslist_tclslist.getColumn(iRow, "spccd");
- tsectcd = ds_main_instclslist_tclslist.getColumn(iRow, "tsectcd");
- //날짜체크
- if(ds_main_instclslist_tclslist.getColumn(iRow, "datechk") != "Y" || utlf_isNull(ds_main_instclslist_tclslist.getColumn(iRow, "fromdd"))
- || utlf_isNull(ds_main_instclslist_tclslist.getColumn(iRow, "todd")))
- {
- sysf_messageBox("시작일자, 종료일자를 체크해주세요.", "I");
- return;
- }
- //검체체크 //핵의학일때는 000도 막음.
- if(utlf_isNull(spccd) || spccd == "00" || spccd == "998" || spccd == "999" || ds_init_LB0000.getColumn(0, "nm") == "N" && spccd == "000")
- {
- sysf_messageBox((iRow+1) + " 행의 검체를 체크해주세요.", "I");
- return;
- }
- //시행부서체크
- if(utlf_isNull(tsectcd) || tsectcd == "00")
- {
- sysf_messageBox((iRow+1) + " 행의 시행부서를 체크해주세요.", "I");
- return;
- }
- ds_main_instclslist_tclslist.setColumn(iRow, "chk", "Y");
-
- //grd_instclslist.addStatus(iRow, "insert")
- }
- var oParam = {};
- oParam.id = "TXLLF90801";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqInsHospTclsCd";
- oParam.inds = "cond=ds_main_instclslist_tclslist:I";
- oParam.async = false;
- //oParam.callback = "cf_TXLLF90801";
- tranf_submit(oParam);
- }
- else
- {
- sysf_messageBox("등록 할 검사 코드가 없습니다.");
- return;
- }
-
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function grd_instclslist_ontextchange(obj:Grid, e:GridEditTextChangeEventInfo)
- {
- var fromdd = ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowcount, "fromdd");
- var todd = ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowcount, "todd");
- var reffromdd = ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowcount, "reffromdd");
- var spccd = ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowcount, "spccd");
- var tsectcd = ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowcount, "tsectcd");
-
- //시작일자,종료일자 체크시
- //if((grd_instclslist.col == grd_instclslist.colRef("todd") || grd_instclslist.col == grd_instclslist.colRef("fromdd") ) )
- if(e.col == 3 || e.col == 2)
- {
- if(!utlf_isNull(fromdd) && !utlf_isNull(todd))
- {
- if(fromdd > todd)
- {
- sysf_messageBox("종료일자가 시작일자보다 이전 날짜입니다.", "I");
- ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "todd", "99991231");
- return;
- }
- }
-
- if(!utlf_isNull(fromdd))
- {
- if(reffromdd > fromdd)
- {
- sysf_messageBox("시작일자가 " + reffromdd.toDate("YYYYMMDD").getDateFormat("YYYY-MM-DD") + " 보다 이후 날짜이어야 합니다.", "I");
- ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "fromdd", reffromdd);
- return;
- }
- }
- }
-
- //검체 선택시
- if(e.col == 6)
- {
- if(spccd == "00" || spccd == "998" || spccd == "999")
- {
- sysf_messageBox((ds_main_instclslist_tclslist.rowposition+1) + "행의 검체코드를 확인해주세요.", "I");
- return;
- }
- }
-
- //시행부서 선택시
- if(e.col == 7)
- {
- if(tsectcd == "00")
- {
- sysf_messageBox((ds_main_instclslist_tclslist+1) + "행의 시행부서를 확인해주세요.", "I");
- return;
- }
- }
- }
- function group3_ipt_refgbn_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- ds_hidden_search.setColumn(0, "searchtext", group3.ipt_refgbn.text);
- fGetTclsInstList("A");
- }
- }
- function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_hidden_search.setColumn(0, "searchtext", group3.ipt_refgbn.text);
- fGetTclsInstList("A");
- }
- function group2_group3_cmb_TestLrgCd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fSetTestLrgCd();
- }
- //중분류 초기정보 조회
- function fSetTestLrgCd()
- {
- var lrg = ds_hidden.getColumn(0, "testlrg");
-
- if(lrg == "00")
- {
- ds_init_LB0102.filterstr = "";
- ds_hidden.setColumn(0, "testmdl", "00");
- }
- else
- {
- ds_hidden.setColumn(0, "testmdl", "00");
- ds_init_LB0102.filterstr = "cd == '00' || etc01 == '" + lrg +"'";
- }
- } ]]></Script>
- </Form>
- </FDL>
|