123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLLF10700" position="absolute 0 0 1256 805" titletext="CDSS RULE 관리" onload="SMLLF10700_onload">
- <Layouts>
- <Layout>
- <Div id="grp3" position="absolute 0 25 1256 805" anchor="all" positiontype="position" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Shape id="line1" class="line_1" position="absolute 0 70 490 70" anchor="default" linetype="horizontal" positiontype="position"/>
- <Grid id="grd_testlist" position="absolute 0 72 348 780" anchor="left top bottom" onclick="testlist_onclick" positiontype="position" binddataset="ds_grid_testlist" oncellclick="grp3_grd_testlist_oncellclick" findtype="col" onheadclick="grdf_setEventGrid" autosizingtype="none" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="162"/>
- <Column size="55"/>
- </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="룰여부"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="image" expr="expr:expr: getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
- <Cell col="2" displaytype="text" edittype="text" text="bind:tclscd"/>
- <Cell col="3" style="align:left middle;" text="bind:tclsnm"/>
- <Cell col="4" text="bind:yn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" class="tit_2" position="absolute 0 52 98 72" anchor="default" text="검사코드목록" positiontype="position"/>
- <Button id="btn_add" class="btn2" position="absolute 1200 48 1256 68" anchor="top right" text="행추가" positiontype="position" onclick="grp3_btn_add_onclick"/>
- <Grid id="grd_cdsslist" position="absolute 353 72 1255 780" anchor="all" positiontype="position" binddataset="ds_grid_cdsslist" autosizingtype="none" autoenter="select" autofittype="col" onheadclick="grdf_setEventGrid">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="25"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="51"/>
- <Column size="127"/>
- <Column size="124"/>
- <Column size="103"/>
- <Column size="103"/>
- <Column size="100"/>
- <Column size="66"/>
- <Column size="54"/>
- <Column size="57"/>
- <Column size="59"/>
- </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="RULE종류"/>
- <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="원내구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" celltype="head" displaytype="image"/>
- <Cell col="2" text="bind:seqno"/>
- <Cell col="3" text="bind:tclscd"/>
- <Cell col="4" displaytype="combo" edittype="combo" style="align:center;" text="bind:cvryn" editautoselect="true" combodataset="ds_rule" combocodecol="cd" combodatacol="nm"/>
- <Cell col="5" displaytype="combo" edittype="combo" style="align:center;" text="bind:msgkind" combodataset="ds_msgkind" combocodecol="cd" combodatacol="nm"/>
- <Cell col="6" displaytype="combo" edittype="combo" style="align:center;" text="bind:rsltstat" editautoselect="true" combodataset="ds_rsltstat" combocodecol="cd" combodatacol="nm"/>
- <Cell col="7" displaytype="combo" edittype="combo" style="align:center;" text="bind:rulekind" editautoselect="true" combodataset="ds_rulekind" combocodecol="cd" combodatacol="nm"/>
- <Cell col="8" displaytype="combo" edittype="combo" style="align:center;selectbackground:EXPR(rulekind== 'P' ? '' : '#c0c0c0');" text="bind:refs" editautoselect="true" combodataset="ds_refs" combocodecol="cd" combodatacol="nm"/>
- <Cell col="9" displaytype="text" edittype="text" style="selectbackground:EXPR(rulekind== 'P' ? '' : '#c0c0c0');" text="bind:rulerst" editautoselect="true" combodataset="ds_refs" combocodecol="cd" combodatacol="nm"/>
- <Cell col="10" displaytype="text" edittype="text" text="bind:resendday"/>
- <Cell col="11" displaytype="combo" edittype="combo" style="align:center;" text="bind:sendyn" combodataset="ds_sendyn" combocodecol="cd" combodatacol="nm"/>
- <Cell col="12" displaytype="checkbox" edittype="checkbox" text="bind:recipient1"/>
- <Cell col="13" displaytype="checkbox" edittype="checkbox" text="bind:recipient2"/>
- <Cell col="14" displaytype="combo" edittype="combo" text="bind:ioflag" combodataset="ds_ioflag" combocodecol="cd" combodatacol="nm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption3" class="tit_2" position="absolute 356 52 608 72" anchor="left top" text="CDSS RULE LIST" positiontype="position" onclick="grp3_caption3_onclick"/>
- <Shape id="line2" class="line_1" position="absolute 500 70 1194 70" anchor="default" linetype="horizontal" positiontype="position"/>
- <Button id="bnt_delete" class="btn2" position="absolute 1141 48 1197 68" anchor="top right" text="행삭제" positiontype="position" onclick="grp3_bnt_delete_onclick"/>
- <Div id="grp_sea" anchor="left top right" taborder="1" style="align:center top;" position="absolute 0 0 1256 42" class="div_SA">
- <Layouts>
- <Layout>
- <Button id="btn_sea" taborder="21" text="조회" class="btn1" position="absolute 1115 10 1172 30" anchor="top right" onclick="grp3_grp_sea_btn_sea_onclick"/>
- <Combo id="cmb_selectgbn" taborder="22" class="combo_search" position="absolute 82 10 162 30" anchor="default" visible="true" positiontype="position" codecolumn="cd" datacolumn="nm" onitemchanged="grp3_grp_sea_cmb_selectgbn_onitemchanged" innerdataset="@ds_selectgbn"/>
- <Combo id="cmb_testlrgcd" taborder="23" position="absolute 165 10 275 30" anchor="default" positiontype="position" onitemchanged="grp3_grp_sea_cmb_testlrgcd_onitemchanged"/>
- <Combo id="cmb_testmdlcd" taborder="24" position="absolute 278 10 408 30" anchor="default" positiontype="position" onitemchanged="grp3_grp_sea_cmb_testmdlcd_onitemchanged"/>
- <Static id="caption2" text="검사분류" class="search_name" position="absolute 8 10 82 30" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp2" position="absolute 0 0 1256 25" anchor="default" positiontype="position">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 0 193 25" anchor="default" positiontype="position" text="CVR/CDSS RULE 관리"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_save" taborder="2" text="저장" onclick="btn_save_onclick" class="btn4" position="absolute 1200 0 1256 20" anchor="top right"/>
- <Button id="btn_clear" taborder="3" text="초기화" onclick="btn_clear_onclick" class="btn1" position="absolute 1176 36 1245 56" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_lb0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING"/>
- <Column id="nm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING"/>
- <Column id="nm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING"/>
- <Column id="nm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING"/>
- <Column id="nm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_lb0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cd" type="STRING"/>
- <Column id="nm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_selectgbn" 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>
- <Rows>
- <Row>
- <Col id="cd">1</Col>
- <Col id="nm">검사분류</Col>
- </Row>
- <Row>
- <Col id="cd">2</Col>
- <Col id="nm">시행부서</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_grid_testlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="tclscd" type="STRING"/>
- <Column id="tclsnm" type="STRING"/>
- <Column id="yn" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_cdsslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grid_cdsslist_oncolumnchanged">
- <ColumnInfo>
- <Column id="seqno" type="STRING"/>
- <Column id="tclscd" type="STRING"/>
- <Column id="msgkind" type="STRING"/>
- <Column id="rsltstat" type="STRING"/>
- <Column id="rulekind" type="STRING"/>
- <Column id="refs" type="STRING"/>
- <Column id="rulerst" type="STRING"/>
- <Column id="resendday" type="STRING"/>
- <Column id="sendyn" type="STRING"/>
- <Column id="recipient1" type="STRING"/>
- <Column id="recipient2" type="STRING"/>
- <Column id="ioflag" type="STRING"/>
- <Column id="cvryn" type="STRING" size="256"/>
- <Column id="refminvalsinq" type="STRING" size="256"/>
- <Column id="refminval" type="STRING" size="256"/>
- <Column id="refmaxvalsinq" type="STRING" size="256"/>
- <Column id="refmaxval" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_ioflag" 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>
- <Rows>
- <Row>
- <Col id="cd">A</Col>
- <Col id="nm">전체</Col>
- </Row>
- <Row>
- <Col id="cd">I</Col>
- <Col id="nm">입원</Col>
- </Row>
- <Row>
- <Col id="cd">O</Col>
- <Col id="nm">외래</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_sendyn" 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>
- <Rows>
- <Row>
- <Col id="cd">Y</Col>
- <Col id="nm">YES</Col>
- </Row>
- <Row>
- <Col id="cd">N</Col>
- <Col id="nm">NO</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_refs" 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>
- <Rows>
- <Row>
- <Col id="cd">-</Col>
- <Col id="nm">없음</Col>
- </Row>
- <Row>
- <Col id="cd">5</Col>
- <Col id="nm">일치 (=)</Col>
- </Row>
- <Row>
- <Col id="cd">6</Col>
- <Col id="nm">포함 (like)</Col>
- </Row>
- <Row>
- <Col id="cd">1</Col>
- <Col id="nm">이상 (>=)</Col>
- </Row>
- <Row>
- <Col id="cd">2</Col>
- <Col id="nm">초과 (>)</Col>
- </Row>
- <Row>
- <Col id="cd">3</Col>
- <Col id="nm">이하 (<=)</Col>
- </Row>
- <Row>
- <Col id="cd">4</Col>
- <Col id="nm">미만 (<)</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_rulekind" 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>
- <Rows>
- <Row>
- <Col id="cd">C</Col>
- <Col id="nm">Critical</Col>
- </Row>
- <Row>
- <Col id="cd">P</Col>
- <Col id="nm">패턴</Col>
- </Row>
- <Row>
- <Col id="cd">R</Col>
- <Col id="nm">범위</Col>
- </Row>
- <Row>
- <Col id="cd">L</Col>
- <Col id="nm">Low</Col>
- </Row>
- <Row>
- <Col id="cd">H</Col>
- <Col id="nm">High</Col>
- </Row>
- <Row>
- <Col id="cd">M</Col>
- <Col id="nm">배양(양성)</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_rsltstat" 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>
- <Rows>
- <Row>
- <Col id="cd">2</Col>
- <Col id="nm">중간보고</Col>
- </Row>
- <Row>
- <Col id="cd">4</Col>
- <Col id="nm">최종보고</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_msgkind" 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>
- <Rows>
- <Row>
- <Col id="cd">S</Col>
- <Col id="nm">SMS</Col>
- </Row>
- <Row>
- <Col id="cd">N</Col>
- <Col id="nm">notify</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_rule" 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>
- <Rows>
- <Row>
- <Col id="cd">Y</Col>
- <Col id="nm">CVR</Col>
- </Row>
- <Row>
- <Col id="cd">N</Col>
- <Col id="nm">CDSS</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_refminvalsinq" 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">-</Col>
- </Row>
- <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_refmaxvalsinq" 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">-</Col>
- </Row>
- <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_print" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="able" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_execute" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="able" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp3.bnt_delete" propid="enable" datasetid="ds_execute" columnid="able"/>
- <BindItem id="item1" compid="btn_save" propid="enable" datasetid="ds_execute" columnid="able"/>
- <BindItem id="item2" compid="grp3.btn_add" propid="enable" datasetid="ds_execute" columnid="able"/>
- <BindItem id="item3" compid="grp3.grd_cdsslist" propid="enable" datasetid="ds_execute" columnid="able"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-09
- * 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 SMLLF10700_onload(obj:Form, e:LoadEventInfo)
- {
- //폼 초기화 함수
- frmf_initForm(obj);
- grdf_setRowTypeIcon(grp3.grd_testlist, 0);
- grdf_setRowTypeIcon(grp3.grd_cdsslist, 1);
-
- //초기값 셋팀
- lf_initDataSet();
- lf_fSelectGbn();
- var sScreenID = frmf_getScreenID(); //화면아이디를 가져온다.
- var sScreenAuth = frmf_getScreenAuth(); //화면권한코드를 가져온다.
- var sMenuParam = frmf_getMenuParam(); //메뉴파라미터를 가져온다.
- var sMenuGroupCD = frmf_getMenuGroupCD(); //메뉴그룹코드를 가져온다.
- var sMenuItemCD = frmf_getMenuItemCD(); //메뉴아이템코드를 가져온다.
- var sPrestDeptCd = frmf_getPrestDeptCd(); //메뉴그룹의 사용처 부서코드를 가져온다.
-
- lf_menumaster();//메뉴권한
- }
- function lf_initDataSet(){
- //0104 대분류 0102 중분류 0000 유저과flag 0111 시행부서(계) 0106 시행부서(검사계)
- lf_getDbDeptcd("0104|0102|0000|0111|0106|","cbf_SMLLF10700");
- grp3.grp_sea.cmb_selectgbn.value = "1";
- }
- // 조회구분에서 대분류와 중분류의 값을 받아 검사목록을 출력
- function lf_fGettestRsltlist(){
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "selectgbn", val: grp3.grp_sea.cmb_selectgbn.value}
- , {col: "testlrgcd", val: grp3.grp_sea.cmb_testlrgcd.value}
- , {col: "testmdlcd", val: grp3.grp_sea.cmb_testmdlcd.value}
- , {col: "deptflag" , val: lgv_sUserdeptflagcd}
- ]);
-
- var oParam = {};
- oParam.id = "TRLLF90803";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqTclscdList";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_testlist=reqTclscdList";
- oParam.async = false;
- oParam.callback = "cbf_SMLLF10700";
- tranf_submit(oParam);
-
- lf_fClickResultList();
- }
- //검사목록 조회
- function lf_fClickResultList(){
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "tclscd", val: ds_grid_testlist.getColumn(grp3.grd_testlist.currentrow,"tclscd")}]);
- var oParam = {};
- oParam.id = "TRLLF90804";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqCdssList";
- oParam.inds = "cond="+sInDsName;
- oParam.outds = "ds_grid_cdsslist=reqCdssList";
- oParam.async = false;
- oParam.callback = "cbf_SMLLF10700";
- tranf_submit(oParam);
-
- for(i=0;i<ds_grid_cdsslist.rowcount;i++){
- if(ds_grid_cdsslist.getColumn(i,"recipient1") == "Y"){
- ds_grid_cdsslist.setColumn(i,"recipient1","1")
- } else{
- ds_grid_cdsslist.setColumn(i,"recipient1","0")
- }
- if(ds_grid_cdsslist.getColumn(i,"recipient2") == "Y"){
- ds_grid_cdsslist.setColumn(i,"recipient2","1")
- } else{
- ds_grid_cdsslist.setColumn(i,"recipient2","0")
- }
- }
- }
- //행추가
- function lf_fInsRowAdd() {
-
- ds_grid_cdsslist.addRow();
- ds_grid_cdsslist.setColumn(grp3.grd_cdsslist.rowcount - 1,"tclscd" ,ds_grid_testlist.getColumn(grp3.grd_testlist.currentrow,"tclscd"));
- ds_grid_cdsslist.setColumn(grp3.grd_cdsslist.rowcount - 1,"msgkind" ,"S");
- ds_grid_cdsslist.setColumn(grp3.grd_cdsslist.rowcount - 1,"rsltstat" ,"4");
- ds_grid_cdsslist.setColumn(grp3.grd_cdsslist.rowcount - 1,"rulekind" ,"C");
- ds_grid_cdsslist.setColumn(grp3.grd_cdsslist.rowcount - 1,"refs" ,"-");
- ds_grid_cdsslist.setColumn(grp3.grd_cdsslist.rowcount - 1,"rulerst" ,"-");
- ds_grid_cdsslist.setColumn(grp3.grd_cdsslist.rowcount - 1,"resendday" ,"-");
- ds_grid_cdsslist.setColumn(grp3.grd_cdsslist.rowcount - 1,"sendyn" ,"Y");
- ds_grid_cdsslist.setColumn(grp3.grd_cdsslist.rowcount - 1,"recipient1","0");
- ds_grid_cdsslist.setColumn(grp3.grd_cdsslist.rowcount - 1,"recipient2","0");
- ds_grid_cdsslist.setColumn(grp3.grd_cdsslist.rowcount - 1,"ioflag" ,"A");
-
- }
- //행삭제
- function lf_fInsRowdel() {
- var arrPostion = new Array();
- arrPostion[0] = ds_grid_cdsslist.rowposition;
- if(ds_grid_cdsslist.getRowType(arrPostion)==Dataset.ROWTYPE_INSERT){
- ds_grid_cdsslist.deleteRow(arrPostion);
- } else {
- grdf_setStatus(grp3.grd_cdsslist, "D", arrPostion);
- }
- }
- //그리드 필수값 체크
- function lf_ckeckNull() {
- if(sysf_messageBox("","Q002","")==6){
- if(grp3.grd_testlist.selectendrow < 0 ){
- sysf_messageBox("검사항목을 선택하십시오","E","");
- return;
- } else{
- lf_fExeEqmtSave();
- }
- }
- }
- // 결과목록 삽입, 삭제, 수정
- function lf_fExeEqmtSave() {
- for(i=0;i<ds_grid_cdsslist.rowcount;i++){
- if(ds_grid_cdsslist.getColumn(i,"recipient1") == "1"){
- ds_grid_cdsslist.setColumn(i,"recipient1","Y")
- } else{
- ds_grid_cdsslist.setColumn(i,"recipient1","N")
- }
- if(ds_grid_cdsslist.getColumn(i,"recipient2") == "1"){
- ds_grid_cdsslist.setColumn(i,"recipient2","Y")
- } else{
- ds_grid_cdsslist.setColumn(i,"recipient2","N")
- }
- }
- var oParam = {};
- oParam.id = "TXLLF90901";
- oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
- oParam.method = "reqInsertCdss";
- oParam.inds = "cond=ds_grid_cdsslist:U";
- oParam.async = false;
- oParam.callback = "cbf_SMLLF10700";
- tranf_submit(oParam);
- }
- function lf_fSelectGbn(){
- //검사분류 선택
- if(grp3.grp_sea.cmb_selectgbn.value == "1"){
- //첫번째 콤보에 대분류 셋팅
- grp3.grp_sea.cmb_testlrgcd.innerdataset="ds_init_lb0104";
- grp3.grp_sea.cmb_testlrgcd.codecolumn="cd";
- grp3.grp_sea.cmb_testlrgcd.datacolumn="nm";
- //두번째 콤보에 중분류 셋팅
- ds_init_lb0102.filter("");
- grp3.grp_sea.cmb_testmdlcd.innerdataset="ds_init_lb0102";
- grp3.grp_sea.cmb_testmdlcd.codecolumn="cd";
- grp3.grp_sea.cmb_testmdlcd.datacolumn="nm";
- }
- //시행부서 선택
- else if(grp3.grp_sea.cmb_selectgbn.value == "2"){
- //첫번째 콤보에 계코드 셋팅
- grp3.grp_sea.cmb_testlrgcd.innerdataset="ds_init_lb0111";
- grp3.grp_sea.cmb_testlrgcd.codecolumn="cd";
- grp3.grp_sea.cmb_testlrgcd.datacolumn="nm";
- //두번째 콤보에 검사계코드 셋팅
- ds_init_lb0106.filter("");
- grp3.grp_sea.cmb_testmdlcd.innerdataset="ds_init_lb0106";
- grp3.grp_sea.cmb_testmdlcd.codecolumn="cd";
- grp3.grp_sea.cmb_testmdlcd.datacolumn="nm";
- }
- grp3.grp_sea.cmb_testlrgcd.index = 0;
- grp3.grp_sea.cmb_testmdlcd.index = 0;
- }
-
- //첫번째 콤보 선택시, 두번째 콤보 셋팅
- function lf_fSetSelect02(){
- var sEtc = grp3.grp_sea.cmb_testlrgcd.value;
- var sFilter = "cd =='00' || etc01 =='" + sEtc + "'";
- //검사분류선택
- if(grp3.grp_sea.cmb_selectgbn.value == "1"){
- grp3.grp_sea.cmb_testmdlcd.innerdataset="ds_init_lb0102";
- }
- //시행부서 선택
- else if(grp3.grp_sea.cmb_selectgbn.value == "2"){
- grp3.grp_sea.cmb_testmdlcd.innerdataset="ds_init_lb0106";
- }
- if(sEtc != "00") {
- ds_init_lb0102.filter(sFilter);
- ds_init_lb0106.filter(sFilter);
- } else {
- ds_init_lb0102.filter("");
- ds_init_lb0106.filter("");
- }
- grp3.grp_sea.cmb_testmdlcd.codecolumn="cd";
- grp3.grp_sea.cmb_testmdlcd.datacolumn="nm";
- grp3.grp_sea.cmb_testmdlcd.index=0;
- }
- //콜백함수
- function cbf_SMLLF10700(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- if(strSvcID == "TXLLF90901" && nErrorCode==0){
- lf_fClickResultList();
- sysf_messageBox("","I001","");
- }
- }
- //진검 사용자별 메뉴권한
- function lf_menumaster(){
- var edit = frmf_checkAuth("X");
- var print = frmf_checkAuth("P");
- var eRow = ds_execute.addRow();
- var pRow = ds_print.addRow();
-
- if(edit == true){
- ds_execute.setColumn(eRow,"able",true);
- }
- if(print == true){
- ds_print.setColumn(pRow,"able",true);
- }
- }
- function grp3_grd_testlist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_fClickResultList();
- }
- function grp3_btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_fInsRowAdd();
- }
- function grp3_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_fGettestRsltlist();
- }
- function grp3_grp_sea_cmb_testlrgcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_fSetSelect02();
-
- grp3_grp_sea_btn_sea_onclick();
- }
- function grp3_grp_sea_cmb_testmdlcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_fGettestRsltlist();
-
- grp3_grp_sea_btn_sea_onclick();
-
- }
- function grp3_grp_sea_cmb_selectgbn_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- lf_fSelectGbn();
- }
- function grp3_bnt_delete_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_fInsRowdel();
- }
- function btn_clear_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_grid_testlist.clearData();
- ds_grid_cdsslist.clearData();
- grp3.grp_sea.cmb_selectgbn.value = "1";
- grp3.grp_sea.cmb_testlrgcd.index = 0;
- grp3.grp_sea.cmb_testmdlcd.index = 0;
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_ckeckNull();
- }
- //룰유형에 따라 그리드 포맷이 바뀜
- function lf_gridRuleKindFormat(rulekind) {
- if(rulekind == "C") { //Critical
-
- grp3.grd_cdsslist.setFormatColProperty( 7, "size", 0); //부등호
- grp3.grd_cdsslist.setFormatColProperty( 8, "size", 0); //룰값
-
- }
- else if(rulekind == "P") { //패턴
-
- grp3.grd_cdsslist.setFormatColProperty( 7, "size", 122); //부등호
- grp3.grd_cdsslist.setFormatColProperty( 8, "size", 122); //룰값
-
- }
- }
- //그리드 데이타셋 변경시 발생
- function ds_grid_cdsslist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if( e.columnid == "rulekind" ) {
-
- var rulekind = obj.getColumn(e.row, e.col);
-
- //룰유형 Critical 선택시, 패턴관련 값은 초기화
- if(rulekind == "C") {
- obj.setColumn(e.row, "refs" , "-");
- obj.setColumn(e.row, "rulerst", "-");
- }
-
- }
- }
- function grp3_caption3_onclick(obj:Static, e:ClickEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|