123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLIF00400" position="absolute 0 0 1100 700" titletext="장비검사별시약관리" oninit="SMLIF00400_oninit" onload="SMLIF00400_onload">
- <Layouts>
- <Layout>
- <Static text="장비검사별 시약관리" position="absolute 0 0 163 20" id="caption1" class="tit_1"/>
- <Div position="absolute 0 20 490 700" id="grp_left" anchor="left top bottom">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 132 490 680" id="grd_reagenttree" binddataset="ds_main_reagenttree" selecttype="row" useinputpanel="false" treeusecheckbox="false" anchor="left top bottom" autofittype="col" oncellclick="grp_left_grd_reagenttree_oncellclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="489"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell displaytype="normal" text="장비정보 ( 자산코드 [장비코드] 장비명) - 검사정보 (검사코드 검사명)"/>
- </Band>
- <Band id="body">
- <Cell displaytype="tree" edittype="tree" style="background:EXPR(fDragOverColorChng(currow));background2:EXPR(fDragOverColorChng(currow));" text="bind:displaynm" treestartlevel="1" treelevel="bind:levl" autosizecol="limitmax"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="roundrect2" taborder="6" class="div_SA2" position="absolute 0 28 490 101" type="roundrectangle">
- <Layouts>
- <Layout>
- <Button id="btn_fixasetcd" taborder="0" class="icon_search" position="absolute 231 5 251 25" onclick="grp_left_roundrect2_btn_fixasetcd_onclick"/>
- <Button id="btn_eraserfixasetcd" taborder="1" class="icon_eraser" position="absolute 252 2 278 28" tooltiptext="자산코 초기화" onclick="grp_left_roundrect2_btn_eraserfixasetcd_onclick"/>
- <Button id="btn_goodcd" taborder="2" class="icon_search" position="absolute 231 28 251 48" onclick="grp_left_roundrect2_btn_goodcd_onclick"/>
- <Button id="btn_erasergoodcd" taborder="3" class="icon_eraser" position="absolute 252 25 278 51" tooltiptext="자산코 초기화" onclick="grp_left_roundrect2_btn_erasergoodcd_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Shape id="line00" class="line_10" position="absolute 0 125 490 131" anchor="default"/>
- <Shape id="line1" linetype="vertical" position="absolute 399 34 408 94"/>
- <Static id="caption00" text="시약코드 :" class="search_name" position="absolute 6 56 80 73"/>
- <Static id="caption2" text="자산코드 :" class="search_name" position="absolute 6 35 80 52"/>
- <Edit id="ipt_search_fixasetcd" taborder="1" onkeydown="grp_left_ipt_search_usercd_onkeydown" class="input_search" position="absolute 83 33 232 52" enable="false"/>
- <Edit id="ipt_search_goodcd" taborder="2" onkeydown="grp_left_ipt_search_cdid_onkeydown" class="input_search" position="absolute 83 55 232 74" enable="false"/>
- <Static id="caption9" text="검사코드 :" class="search_name" position="absolute 6 79 80 96"/>
- <Edit id="ipt_search_tclscd" taborder="3" class="input_search" position="absolute 83 77 232 96" onkeydown="grp_left_ipt_search_tclscd_onkeydown"/>
- <CheckBox id="chk_endyn" taborder="4" text="종료/이력포함" value="N" truevalue="Y" falsevalue="N" position="absolute 295 32 398 52" onclick="grp_left_chk_endyn_onclick"/>
- <Button id="btn_search" taborder="5" text="조회" onclick="grp_left_btn_search_onclick" class="btn1" position="absolute 414 54 470 74"/>
- <Shape id="line2" class="line_10" position="absolute 0 23 490 29"/>
- <Static id="caption6" text="장비별 검사코드 조회" class="tit_2" position="absolute 0 7 220 23"/>
- <CheckBox id="chk_useyn" taborder="7" text="시약사용" value="N" truevalue="Y" falsevalue="N" position="absolute 295 76 375 96" onclick="grp_left_chk_useyn_onclick"/>
- <Static id="caption01" text="장비별 검사코드 항목" class="tit_2" position="absolute 0 107 220 123"/>
- <CheckBox id="chk_prcppossyn" taborder="8" text="처방가능" value="N" truevalue="Y" falsevalue="N" position="absolute 295 54 398 74" onclick="grp_left_chk_prcppossyn_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div position="absolute 500 123 1100 700" id="grp_right_bottom" anchor="all">
- <Layouts>
- <Layout>
- <Static text="장비 검사코드 시약정보" position="absolute 0 4 220 24" align="align:left middle;" id="caption11" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 21 600 27" linetype="horizontal" id="line6" class="line_10" anchor="left top right"/>
- <Button position="absolute 544 0 600 20" id="btn_Save" class="btn4" text="저장" anchor="top right" onclick="grp_right_bottom_btn_Save_onclick"/>
- <Button position="absolute 452 0 494 20" id="button8" class="btn2" text="추가" onclick="grp_right_bottom_button8_onclick" anchor="top right"/>
- <Button position="absolute 496 0 538 20" id="button9" class="btn2" text="삭제" onclick="grp_right_bottom_button9_onclick" anchor="top right"/>
- <Grid position="absolute 0 29 600 577" id="grd_reagentlist" binddataset="ds_main_reagentlist" style="align:center middle;" autosizingtype="row" extendsizetype="row" anchor="all" selecttype="multirow" autofittype="none" onrbuttondown="grp_right_bottom_grd_reagentlist_onrbuttondown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25" band="left"/>
- <Column size="0"/>
- <Column size="35"/>
- <Column size="40"/>
- <Column size="100"/>
- <Column size="200"/>
- <Column size="40"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="30"/>
- <Column size="60"/>
- <Column size="110"/>
- <Column size="60"/>
- <Column size="110"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="normal" text="hardcdno"/>
- <Cell col="2" displaytype="normal" text="순번"/>
- <Cell col="3" text="주/부"/>
- <Cell col="4" displaytype="normal" text="시약코드"/>
- <Cell col="5" displaytype="normal" text="시약명"/>
- <Cell col="6" text="상태"/>
- <Cell col="7" displaytype="normal" text="시작일자"/>
- <Cell col="8" displaytype="normal" text="종료일자"/>
- <Cell col="9" text="이력"/>
- <Cell col="10" text="등록자"/>
- <Cell col="11" text="등록일시"/>
- <Cell col="12" text="수정"/>
- <Cell col="13" text="수정일"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="normal" text="bind:hardcdno"/>
- <Cell col="2" displaytype="normal" edittype="text" style="align:center;" text="bind:dispseq"/>
- <Cell col="3" displaytype="combo" edittype="combo" style="align:center;" text="bind:msgubun" combodataset="ds_msgubun" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="4" displaytype="normal" edittype="none" style="align:center;" text="bind:goodcd" editautoselect="true" expandshow="hide" expandsize="20"/>
- <Cell col="5" displaytype="normal" edittype="none" style="align:left middle;" text="bind:goodnm" editautoselect="true" autosizerow="limitmin"/>
- <Cell col="6" displaytype="combo" style="align:center;" text="bind:histcd" combodataset="ds_histcd" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="7" displaytype="date" edittype="date" text="bind:fromdd"/>
- <Cell col="8" displaytype="date" edittype="date" text="bind:todd"/>
- <Cell col="9" text="bind:histno"/>
- <Cell col="10" style="align:center;" text="bind:fstrgstnm"/>
- <Cell col="11" displaytype="text" style="align:center;" text="bind:fstrgstdt" mask="####-##-## ##:##"/>
- <Cell col="12" text="bind:lastupdtrnm"/>
- <Cell col="13" displaytype="text" text="bind:lastupdtdt" mask="####-##-## ##:##"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_excel" taborder="1" text="Excel" onclick="btn_excel_onclick" class="btn7" position="absolute 383 0 446 20" anchor="top right"/>
- <Button id="btn_copy" taborder="2" text="복사" class="btn2" position="absolute 266 0 308 20" anchor="top right" onclick="grp_right_bottom_btn_copy_onclick"/>
- <Button id="btn_paste" taborder="3" text="붙혀넣기" class="btn2" position="absolute 310 0 377 20" anchor="top right" onclick="grp_right_bottom_btn_paste_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Div id="grp_right_top" anchor="left top right" taborder="1" position="absolute 500 20 1100 120">
- <Layouts>
- <Layout>
- <Static id="caption3" text="장비 검사코드 정보" class="tit_2" position="absolute 0 7 220 23" anchor="default"/>
- <Shape id="line5" class="line_10" position="absolute 0 23 600 29" anchor="left top right"/>
- <Static id="caption4" text="자산코드" class="cell_1" position="absolute 0 28 60 51" anchor="default"/>
- <Edit id="ipt_main_fixasetcd" taborder="6" maxlength="5" class="input" position="absolute 64 30 204 49" style="font:arial,9,bold;" anchor="default" enable="false"/>
- <Static id="caption10" text="자산명" class="cell_1" position="absolute 209 28 269 51" anchor="default"/>
- <Edit id="ipt_main_fixasetnm" taborder="7" maxlength="5" class="input" position="absolute 271 30 600 49" anchor="left top right" enable="false"/>
- <Static id="caption5" text="장비명" class="cell_1" position="absolute 209 53 269 76" anchor="default"/>
- <Edit id="ipt_main_eqmtnm" taborder="8" class="input" position="absolute 271 55 600 74" anchor="left top right" enable="false"/>
- <Static id="caption00" text="장비코드" class="cell_1" position="absolute 0 52 60 75" anchor="default"/>
- <Edit id="ipt_main_eqmtcd" taborder="10" maxlength="5" class="input" position="absolute 64 54 204 73" anchor="default" enable="false" style=":disabled {font:arial,9,bold;}"/>
- <Static id="caption01" text="검사코드" class="cell_1" position="absolute 0 76 60 99" anchor="default"/>
- <Edit id="ipt_main_tclscd" taborder="11" maxlength="5" class="input" position="absolute 64 78 204 97" anchor="default" enable="false" style=":disabled {font:arial,9,bold;}"/>
- <Static id="caption02" text="검사명" class="cell_1" position="absolute 209 77 269 100" anchor="default"/>
- <Edit id="ipt_main_tclsnm" taborder="12" class="input" position="absolute 271 79 600 98" anchor="left top right" enable="false"/>
- </Layout>
- </Layouts>
- </Div>
- <PopupMenu id="pmn_menu" innerdataset="ds_mouserght" idcolumn="func" captioncolumn="label" levelcolumn="level" onmenuclick="pmn_menu_onmenuclick" position="absolute 1112 200 1215 246"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_reagenttree" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="levl" type="STRING" size="256"/>
- <Column id="displaynm" type="STRING" size="256"/>
- <Column id="supcd" type="STRING" size="256"/>
- <Column id="setcd" type="STRING" size="256"/>
- <Column id="eqmtcd" type="STRING" size="256"/>
- <Column id="fixasetcd" type="STRING" size="256"/>
- <Column id="tclscd" type="STRING" size="256"/>
- <Column id="dispseq" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="fixasetcd" type="STRING" size="256"/>
- <Column id="tclscd" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="endyn" type="STRING" size="256"/>
- <Column id="useyn" type="STRING" size="256"/>
- <Column id="prcppossyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fixasetcd"/>
- <Col id="tclscd"/>
- <Col id="goodcd"/>
- <Col id="endyn"/>
- <Col id="useyn"/>
- <Col id="prcppossyn"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_reagentinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="eqmtcd" type="STRING" size="256"/>
- <Column id="eqmtnm" type="STRING" size="256"/>
- <Column id="fixasetcd" type="STRING" size="256"/>
- <Column id="goodflaghngnm" type="STRING" size="256"/>
- <Column id="tclscd" type="STRING" size="256"/>
- <Column id="testdispnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_main_reagentlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="fixasetcd" type="STRING" size="256"/>
- <Column id="tclscd" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="histno" type="STRING" size="256"/>
- <Column id="histcd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="msgubun" type="STRING" size="256"/>
- <Column id="dispseq" type="STRING" size="256"/>
- <Column id="fstrgstnm" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- <Column id="lastupdtrnm" type="STRING" size="256"/>
- <Column id="lastupdtdt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_msgubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">M</Col>
- <Col id="cdnm">주</Col>
- </Row>
- <Row>
- <Col id="cdid">S</Col>
- <Col id="cdnm">부</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_popgood_goodlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_histcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">O</Col>
- <Col id="cdnm">정상</Col>
- </Row>
- <Row>
- <Col id="cdid">H</Col>
- <Col id="cdnm">이력</Col>
- </Row>
- <Row>
- <Col id="cdid">D</Col>
- <Col id="cdnm">삭제</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_mouserght" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="func" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- <Column id="level" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">복사</Col>
- <Col id="func">fCopyRow</Col>
- <Col id="level">0</Col>
- </Row>
- <Row>
- <Col id="label">-</Col>
- <Col id="func"/>
- <Col id="level">0</Col>
- </Row>
- <Row>
- <Col id="label">붙여넣기</Col>
- <Col id="func">fPasteRow</Col>
- <Col id="level">0</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_copy_reagentlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="fixasetcd" type="STRING" size="256"/>
- <Column id="tclscd" type="STRING" size="256"/>
- <Column id="goodcd" type="STRING" size="256"/>
- <Column id="goodnm" type="STRING" size="256"/>
- <Column id="histno" type="STRING" size="256"/>
- <Column id="histcd" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="msgubun" type="STRING" size="256"/>
- <Column id="dispseq" type="STRING" size="256"/>
- <Column id="fstrgstnm" type="STRING" size="256"/>
- <Column id="fstrgstdt" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item7" compid="grp_left.chk_endyn" propid="value" datasetid="ds_main_cond" columnid="endyn"/>
- <BindItem id="item1" compid="grp_left.ipt_search_tclscd" propid="value" datasetid="ds_main_cond" columnid="tclscd"/>
- <BindItem id="item6" compid="grp_left.ipt_search_goodcd" propid="value" datasetid="ds_main_cond" columnid="goodcd"/>
- <BindItem id="item0" compid="grp_left.ipt_search_fixasetcd" propid="value" datasetid="ds_main_cond" columnid="fixasetcd"/>
- <BindItem id="item2" compid="grp_left.chk_useyn" propid="value" datasetid="ds_main_cond" columnid="useyn"/>
- <BindItem id="item3" compid="grp_right_top.ipt_main_fixasetcd" propid="value" datasetid="ds_main_reagentinfo" columnid="fixasetcd"/>
- <BindItem id="item4" compid="grp_right_top.ipt_main_fixasetnm" propid="value" datasetid="ds_main_reagentinfo" columnid="goodflaghngnm"/>
- <BindItem id="item5" compid="grp_right_top.ipt_main_eqmtcd" propid="value" datasetid="ds_main_reagentinfo" columnid="eqmtcd"/>
- <BindItem id="item8" compid="grp_right_top.ipt_main_eqmtnm" propid="value" datasetid="ds_main_reagentinfo" columnid="eqmtnm"/>
- <BindItem id="item9" compid="grp_right_top.ipt_main_tclscd" propid="value" datasetid="ds_main_reagentinfo" columnid="tclscd"/>
- <BindItem id="item10" compid="grp_right_top.ipt_main_tclsnm" propid="value" datasetid="ds_main_reagentinfo" columnid="testdispnm"/>
- <BindItem id="item11" compid="grp_left.chk_prcppossyn" propid="value" datasetid="ds_main_cond" columnid="prcppossyn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2020-01-20
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2020-01-20 엄영만 Create
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- var g_prevmouserow = -1;
- function SMLIF00400_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- grdf_initGrid(grp_right_bottom.grd_reagentlist);
- }
- function SMLIF00400_onload(obj:Form, e:LoadEventInfo)
- {
- fInitialize_SMLIF00400();
-
- grdf_setRowTypeIcon(grp_right_bottom.grd_reagentlist, 0);
-
- grdf_setToolTipBind(grp_right_bottom.grd_reagentlist);
- grdf_setToolTipBind(grp_left.grd_reagenttree);
- }
- function grp_right_bottom_btn_Save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSaveReagentList();
- }
- function grp_right_bottom_button8_onclick(obj:Button, e:ClickEventInfo)
- {
- fReagentListGridAdd(); // 시약항목 추가
- }
- function grp_right_bottom_button9_onclick(obj:Button, e:ClickEventInfo)
- {
- var cur_row = "";
- var iStatus = "";
- var sTclsCd = ds_main_reagentinfo.getColumn(0, "tclscd");
- if(utlf_isNull(sTclsCd) || sTclsCd == "-") {
- alert("선택 된 검사코드가 없습니다.");
- return;
- }
-
- var selectedRows = grdf_getSelectedRows(grp_right_bottom.grd_reagentlist);
- for( var i = selectedRows.length - 1; i >= 0 ; i--) {
- cur_row = selectedRows[i];
- iStatus = ds_main_reagentlist.getRowType(cur_row);
-
- if (iStatus == 2) { // 새로 삽입된 행이면
- ds_main_reagentlist.deleteRow(cur_row);
- } else if (iStatus == 8) { // 삭제 상태이면
- grdf_setStatus(grp_right_bottom.grd_reagentlist, "", [cur_row])
- } else {
- grdf_setStatus(grp_right_bottom.grd_reagentlist, "D", [cur_row])
- }
- }
- }
- /**
- * @desc : 화면 초기화
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fInitialize_SMLIF00400(){
- ds_main_cond.setColumn(0, "endyn", "N");
- ds_main_cond.setColumn(0, "useyn", "N");
- ds_main_cond.setColumn(0, "prcppossyn", "Y");
-
- fGetReagentTree();
- }
- /**
- * @desc : 장비검사별 시약 리스트 조회
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fGetReagentTree(){
- ds_main_reagentinfo.clearData();
- ds_main_reagentinfo.addRow();
-
- ds_main_reagenttree.clearData();
- ds_main_reagentlist.clearData();
-
- var oParam = {};
- oParam.id = "TRLIF00401";
- oParam.service = "diagtestbaseinfomngtapp.InterfaceTestBaseInfoMngt";
- oParam.method = "reqGetReagentTree";
- oParam.inds = "req=ds_main_cond";
- oParam.outds = "ds_main_reagenttree=reagenttree";
- oParam.async = false;
- tranf_submit(oParam);
-
- grdf_expandDepth(grp_left.grd_reagenttree, 0);
- }
- /**
- * @desc : 시약 코드 리스트 클릭시 기본정보 설정
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSetReagentInfo(){
- ds_main_reagentinfo.clearData();
- ds_main_reagentlist.clearData();
-
- var nRow = ds_main_reagenttree.rowposition;
- var sFixasetCd = ds_main_reagenttree.getColumn(nRow, "fixasetcd");
- var sTclsCd = ds_main_reagenttree.getColumn(nRow, "tclscd");
- var sGoodCd = ds_main_cond.getColumn(0, "goodcd");
- var sEndYn = ds_main_cond.getColumn(0, "endyn");
-
- if(!utlf_isNull(sTclsCd) && sTclsCd != "-") {
- dsf_makeValue(ds_send_reqdata, "fixasetcd", "string", sFixasetCd);
- dsf_makeValue(ds_send_reqdata, "tclscd", "string", sTclsCd);
- dsf_makeValue(ds_send_reqdata, "goodcd", "string", sGoodCd);
- dsf_makeValue(ds_send_reqdata, "endyn", "string", sEndYn);
-
- var oParam = {};
- oParam.id = "TRLIF00402";
- oParam.service = "diagtestbaseinfomngtapp.InterfaceTestBaseInfoMngt";
- oParam.method = "reqGetReagentInfo";
- oParam.inds = "req=ds_send_reqdata";
- oParam.outds = "ds_main_reagentinfo=reagentinfo ds_main_reagentlist=reagentlist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- }
- /**
- * @desc : 시약 리스트 저장
- * @
- * @param :
- * @return :
- * @author : 엄영만
- * @---------------------------------------------------
- */
- function fSaveReagentList(){
- if( sysf_messageBox("시약정보를","Q002") == 6 ){
- dsf_createDs("ds_send_reagentlist");
- var updateData = grdf_getGridUpdateData(grp_right_bottom.grd_reagentlist);
-
- grdf_setStatusColumn(updateData, "status");
- ds_send_reagentlist.copyData(updateData, true);
- var oParam = {};
- oParam.id = "TXLIF00401";
- oParam.service = "diagtestbaseinfomngtapp.InterfaceTestBaseInfoMngt";
- oParam.method = "reqExeReagentList";
- oParam.inds = "req=ds_send_reagentlist";
- oParam.outds = "";
- oParam.async = false;
- if(tranf_submit(oParam)) {
- fSetReagentInfo();
- }
- }
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- var sFixasetCd = ds_main_reagentinfo.getColumn(0, "fixasetcd");
- var sTclsCd = ds_main_reagentinfo.getColumn(0, "tclscd");
- if(utlf_isNull(sTclsCd) || sTclsCd == "-") {
- alert("선택 된 사용자코드가 없습니다.");
- return;
- }
-
- grdf_exportExcel(grp_right_bottom.grd_reagentlist, "장비검사별시약정보" +sFixasetCd + "_" + sTclsCd, sTclsCd, false, null, "user", true);
- }
- /*
- * 시약리스트에 항목 추가
- */
- function fReagentListGridAdd(){
- var sGoodCd = "";
- var sGoodNm = "";
- var sTclsCd = ds_main_reagentinfo.getColumn(0, "tclscd");
- if(utlf_isNull(sTclsCd) || sTclsCd == "-") {
- alert("선택 된 검사코드가 없습니다.");
- return;
- }
-
- frmf_modal("SMLIF00500", "SMLIF00500",null,null,null,null,null,null,null,null,null,null,"M");
- var sSelYn = frmf_getParameter("SMLIF00500_rtn_selyn");
-
- if(sSelYn == "Y"){
- frmf_setParameter("SMLIF00500_rtn_selyn", "");
- var totcnt = ds_popgood_goodlist.rowcount;
- for(var i = 0 ; i < totcnt ; i++) {
- sGoodCd = ds_popgood_goodlist.getColumn(i,"goodcd");
- sGoodNm = ds_popgood_goodlist.getColumn(i,"goodnm");
-
- ds_main_reagentlist.addRow();
- grp_right_bottom.grd_reagentlist.showEditor(true);
-
- var nRow = ds_main_reagentlist.rowposition;
- ds_main_reagentlist.setColumn(nRow, "dispseq", nRow+1);
- ds_main_reagentlist.setColumn(nRow, "fixasetcd", ds_main_reagentinfo.getColumn(0, "fixasetcd"));
- ds_main_reagentlist.setColumn(nRow, "tclscd", ds_main_reagentinfo.getColumn(0, "tclscd"));
- ds_main_reagentlist.setColumn(nRow, "goodcd", sGoodCd);
- ds_main_reagentlist.setColumn(nRow, "goodnm", sGoodNm);
- ds_main_reagentlist.setColumn(nRow, "histno", "");
- ds_main_reagentlist.setColumn(nRow, "histcd", "O");
- ds_main_reagentlist.setColumn(nRow, "fromdd", utlf_getCurrentDate());
- ds_main_reagentlist.setColumn(nRow, "todd", "99991231");
- ds_main_reagentlist.setColumn(nRow, "msgubun", "M");
- }
- }
- }
- function grp_left_roundrect2_btn_fixasetcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var sReturn = frmf_modal("SMLIF00300","SMLIF00300", null, null, 1, 200, 200, null, null, null, null, null, "M");
- ds_main_cond.setColumn(0, "fixasetcd", sReturn.fixasetcd);
- fGetReagentTree();
- }
- function grp_left_roundrect2_btn_eraserfixasetcd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_cond.setColumn(0, "fixasetcd", "");
- fGetReagentTree();
- }
- function grp_left_roundrect2_btn_goodcd_onclick(obj:Button, e:ClickEventInfo)
- {
- var sGoodCd = "";
- frmf_modal("SMLIF00500", "SMLIF00500",null,null,null,null,null,null,null,null,null,null,"M");
- var sSelYn = frmf_getParameter("SMLIF00500_rtn_selyn");
-
- if(sSelYn == "Y"){
- frmf_setParameter("SMLIF00500_rtn_selyn", "");
-
- sGoodCd = ds_popgood_goodlist.getColumn(0, "goodcd");
- }
-
- ds_main_cond.setColumn(0, "goodcd", sGoodCd);
- fGetReagentTree();
- }
- function grp_left_roundrect2_btn_erasergoodcd_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_cond.setColumn(0, "goodcd", "");
- fGetReagentTree();
- }
- function grp_left_ipt_search_tclscd_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- grp_left.ipt_search_tclscd.updateToDataset();
- fGetReagentTree();
- }
- }
- function grp_left_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetReagentTree();
- }
- function grp_left_grd_reagenttree_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fSetReagentInfo();
- }
- function grp_left_chk_useyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- fGetReagentTree();
- }
- function grp_left_chk_endyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- fGetReagentTree();
- }
- function grp_left_chk_prcppossyn_onclick(obj:CheckBox, e:ClickEventInfo)
- {
- fGetReagentTree();
- }
- function grp_right_bottom_grd_reagentlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
-
- if(e.row < 0 || e.col < 0) return;
-
- obj.setFocus();
- grdf_setSelectedCell(obj, e);
-
- obj.oncellclick.fireEvent(obj, new GridClickEventInfo());
-
- pmn_menu.trackPopup(e.screenX,e.screenY);
- }
- function fCopyRow () {
- var selectedRows = grdf_getSelectedRows(grp_right_bottom.grd_reagentlist);
- var cnt=0;
-
- for (var i = 0; i < selectedRows.length; i++) {
- fCopyBuffer( ++cnt, selectedRows[i], "ds_copy_reagentlist", "ds_main_reagentlist" );
- }
- }
- /**@desc : 함수 호출시 선택된 데이터를 특정 노드에 담아둔다.
- * @param1 : bufCnt: 첫번째 cnt일때 기존 노드를 삭제하기 위한 count
- * @param2 : bufRow: 노드에 담아놓을 그리드 row
- * @param4 : strDest: 목적지 주소값
- * @param3 : strSrc: 출발지 주소값
- * @return : void
- * @authur : 마정민 2007. 4. 3
- */
- function fCopyBuffer( bufCnt, bufRow, strDest, strSrc ) {
- var ds_src = this.objects[strSrc];
- var ds_dest = this.objects[strDest];
-
- if (bufCnt == 1) { //첫번째 데이터이면 기존 노드를 삭제한다.
- ds_dest.clearData();
- }
-
- //대상노드로 복사한다.
- var toRow = ds_dest.addRow();
- ds_dest.copyRow(toRow, ds_src, bufRow);
- }
- function fPasteRow() {
- var sTclsCd = ds_main_reagentinfo.getColumn(0, "tclscd");
- if(utlf_isNull(sTclsCd) || sTclsCd == "-") {
- alert("선택 된 검사코드가 없습니다.");
- return;
- }
-
- for(var i = 0 ; i < ds_copy_reagentlist.rowcount ; i++) {
- ds_main_reagentlist.addRow();
- grp_right_bottom.grd_reagentlist.showEditor(true);
-
- var nRow = ds_main_reagentlist.rowposition;
- ds_main_reagentlist.setColumn(nRow, "fixasetcd", ds_main_reagentinfo.getColumn(0,"fixasetcd"));
- ds_main_reagentlist.setColumn(nRow, "tclscd", ds_main_reagentinfo.getColumn(0,"tclscd"));
- ds_main_reagentlist.setColumn(nRow, "msgubun", ds_copy_reagentlist.getColumn(i,"msgubun"));
- ds_main_reagentlist.setColumn(nRow, "goodcd", ds_copy_reagentlist.getColumn(i,"goodcd"));
- ds_main_reagentlist.setColumn(nRow, "goodnm", ds_copy_reagentlist.getColumn(i,"goodnm"));
- ds_main_reagentlist.setColumn(nRow, "dispseq", nRow+1);
- ds_main_reagentlist.setColumn(nRow, "histno", "");
- ds_main_reagentlist.setColumn(nRow, "histcd", "O");
- ds_main_reagentlist.setColumn(nRow, "fromdd", utlf_getCurrentDate());
- ds_main_reagentlist.setColumn(nRow, "todd", "99991231");
- }
- //ds_copy_reagentlist.clearData();
- }
- function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- eval(e.id + "()");
- }
- function grp_right_bottom_btn_copy_onclick(obj:Button, e:ClickEventInfo)
- {
- fCopyRow();
- }
- function grp_right_bottom_btn_paste_onclick(obj:Button, e:ClickEventInfo)
- {
- fPasteRow();
- }
- ]]></Script>
- </Form>
- </FDL>
|