123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLPC00700" position="absolute 0 0 1256 805" titletext="New Form" oninit="model1_oninit" onload="SMLPC00700_onload">
- <Layouts>
- <Layout>
- <Static id="caption6" class="tit_1" position="absolute 0 3 152 28" anchor="default" positiontype="position" text="검사정보등록"/>
- <Button id="btn_save" class="btn4" taborder="10" position="absolute 1200 32 1256 52" anchor="top right" text="저장" positiontype="position" onclick="btn_save_onclick"/>
- <Shape id="line17" class="line_6" position="absolute 0 25 1194 25" anchor="default" linetype="horizontal" positiontype="position"/>
- <Button id="button1" class="btn4" position="absolute 261 32 317 52" anchor="top right" text="다음" positiontype="position" onclick="button1_onclick"/>
- <Button id="button2" class="btn3" position="absolute 1 32 57 52" anchor="top right" text="처음" positiontype="position" onclick="button2_onclick"/>
- <Button id="button4" class="btn4" position="absolute 320 32 376 52" anchor="top right" text="최종" positiontype="position" onclick="button4_onclick"/>
- <Edit id="ipt_paval" class="input_search" position="absolute 119 32 184 52" style="align:right middle;" anchor="top right" positiontype="position" imemode="hangul"/>
- <Static id="cap_lastPage" position="absolute 195 35 255 47" anchor="top right" text="1" positiontype="position"/>
- <Button id="btn_prntexcel" class="btn3" position="absolute 60 32 116 52" anchor="top right" text="이전" positiontype="position" onclick="btn_prntexcel_onclick"/>
- <Static id="caption4" text="/" position="absolute 186 34 197 46" anchor="top right" positiontype="position"/>
- <Static id="caption1" class="tit_2" position="absolute 644 101 775 121" anchor="default" text="검사정보" positiontype="position"/>
- <Shape id="line1" class="line_1" position="absolute 615 113 1193 113" anchor="default" linetype="horizontal" positiontype="position"/>
- <Grid id="grd_testinfolist" taborder="31" position="absolute 639 121 1256 805" anchor="all" onclick="grd_testinfolist_onclick" positiontype="position" autofittype="none" binddataset="ds_grid_grd_testinfolist" oncellclick="grd_testinfolist_oncellclick" onbuttondown="grd_testinfolist_onbuttondown" scrollbars="fixedboth">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="79"/>
- <Column size="200"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- </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="검사명"/>
- <Cell col="5" text="검체코드"/>
- <Cell col="6" text="검체명"/>
- <Cell col="7" text="사용"/>
- <Cell col="8" text="시작일자"/>
- <Cell col="9" text="종료일자"/>
- <Cell col="10" text="tubecd"/>
- <Cell col="11" text="readid"/>
- <Cell col="12" text="incfnm"/>
- <Cell col="13" text="barcdprntcnt"/>
- <Cell col="14" text="state"/>
- <Cell col="15" text="바코드출력"/>
- </Band>
- <Band id="body">
- <Cell displaytype="image" 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="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
- <Cell col="2" displaytype="normal" edittype="none" text="bind:instcd"/>
- <Cell col="3" displaytype="normal" edittype="none" style="align:center middle;" text="bind:testcd"/>
- <Cell col="4" displaytype="normal" edittype="none" style="align:left;" text="bind:testhngnm"/>
- <Cell col="5" displaytype="normal" edittype="none" style="align:center middle;" text="bind:spccd"/>
- <Cell col="6" displaytype="normal" edittype="none" style="align:left;" text="bind:spcnm"/>
- <Cell col="7" displaytype="combo" edittype="combo" text="bind:delflagcd" combodataset="ds_useflagcd" combocodecol="value" combodatacol="label"/>
- <Cell col="8" displaytype="date" edittype="date" text="bind:fromdd"/>
- <Cell col="9" displaytype="date" edittype="date" text="bind:todd"/>
- <Cell col="10" displaytype="normal" edittype="none" text="bind:tubecd"/>
- <Cell col="11" displaytype="normal" edittype="none" text="bind:readid"/>
- <Cell col="12" displaytype="normal" edittype="none" text="bind:incfnm"/>
- <Cell col="13" displaytype="normal" edittype="none" text="bind:barcdprtncnt"/>
- <Cell col="14" displaytype="normal" edittype="none" text="bind:state"/>
- <Cell col="15" displaytype="normal" edittype="combo" text="bind:barcdprtncnt" combodataset="ds_spcuseflagcd" combocodecol="value" combodatacol="label"/>
- <Cell col="16"/>
- <Cell col="17"/>
- <Cell col="18"/>
- <Cell col="19"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption3" class="tit_2" position="absolute 0 101 131 121" anchor="default" text="검사목록" positiontype="position"/>
- <Shape id="line2" class="line_1" position="absolute 0 113 310 113" anchor="default" linetype="horizontal" positiontype="position"/>
- <Grid id="grd_spclist" taborder="31" position="absolute 340 120 633 805" anchor="left top bottom" positiontype="position" autofittype="col" binddataset="ds_grid_grd_spclist" onbuttondown="grd_spclist_onbuttondown" ondragmove="grd_spclist_ondragmove" ondrag="grd_spclist_ondrag" scrollpixel="all" selecttype="multirow" onrbuttondown="grd_spclist_onrbuttondown">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="26"/>
- <Column size="0"/>
- <Column size="60"/>
- <Column size="150"/>
- <Column size="40"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
- <Cell col="2" text="instcd"/>
- <Cell col="3" text="검체코드"/>
- <Cell col="4" text="검체명"/>
- <Cell col="5" text="구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
- <Cell col="2" displaytype="normal" edittype="none" text="bind:instcd"/>
- <Cell col="3" displaytype="normal" edittype="none" style="align:center middle;" text="bind:spccd"/>
- <Cell col="4" displaytype="normal" edittype="none" style="align:left;" text="bind:spcnm"/>
- <Cell col="5" displaytype="combo" edittype="combo" text="bind:spcflagcd" combodataset="ds_spcflagcd" combocodecol="value" combodatacol="label"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption5" class="tit_2" position="absolute 320 101 451 121" anchor="default" text="검체목록" positiontype="position"/>
- <Shape id="line3" class="line_1" position="absolute 314 113 610 113" anchor="default" linetype="horizontal" positiontype="position"/>
- <Grid id="grd_testlist" position="absolute 0 120 334 805" anchor="left top bottom" onlbuttonDown="grd_testlist_onlbuttonDown" positiontype="position" autofittype="col" binddataset="ds_grid_grd_testlist" onbuttondown="grd_testlist_onbuttondown" onmouseleave="grd_testlist_onmouseleave" autosizingtype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="79"/>
- <Column size="170"/>
- <Column size="105"/>
- </Columns>
- <Rows>
- <Row size="22" band="head"/>
- <Row size="20"/>
- </Rows>
- <Band id="head">
- <Cell displaytype="checkbox" edittype="checkbox"/>
- <Cell col="1" text="instcd"/>
- <Cell col="2" text="testcd"/>
- <Cell col="3" text="검사코드"/>
- <Cell col="4" text="검사코드"/>
- <Cell col="5" text="검사명"/>
- <Cell col="6" text="검사약어"/>
- </Band>
- <Band id="body">
- <Cell displaytype="checkbox" edittype="checkbox" text="bind:choi"/>
- <Cell col="1" text="bind:instcd"/>
- <Cell col="2" text="bind:testcd"/>
- <Cell col="3" style="align:left;" text="bind:testcd" wordwrap="none"/>
- <Cell col="4" text="bind:testcd"/>
- <Cell col="5" style="align:left;" text="bind:testengnm" wordwrap="word"/>
- <Cell col="6" style="align:left;" text="bind:testengabbr" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="7"/>
- <Cell col="8"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_addcste" class="btn2" taborder="12" position="absolute 1188 98 1256 118" anchor="top right" text="정보전달" positiontype="position" onclick="btn_addcste_onclick"/>
- <Combo id="cmb_useflagcd" position="absolute 1110 98 1185 118" anchor="top right" positiontype="position" codecolumn="codecolumn" datacolumn="datacolumn" value="0" text="사용" index="0" onitemchanged="cmb_useflagcd_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">사용</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">미사용</Col>
- </Row>
- </Rows>
- </Dataset>
- </Combo>
- <Div id="group1" anchor="left top right" taborder="32" style="align:center top;" class="div_SA" position="absolute 0 53 1256 95" positiontype="position">
- <Layouts>
- <Layout>
- <Static id="caption2" text="사용여부" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
- <Radio id="rdo_s_delflagcd" taborder="1" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 84 12 206 28" anchor="default" value="0" index="0" positiontype="position">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">0</Col>
- <Col id="datacolumn">사용</Col>
- </Row>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">미사용</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption22" text="조회값" class="search_name" position="absolute 870 10 929 30" anchor="default" positiontype="position"/>
- <Combo id="combo1" taborder="2" class="combo_search" position="absolute 932 10 1052 30" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" value="1" text="검사코드" index="0" positiontype="position">
- <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_refval" taborder="3" class="input_search" position="absolute 1055 10 1175 30" anchor="default" imemode="alpha" onkeydown="group1_ipt_refval_onkeydown" inputmode="upper" positiontype="position"/>
- <Button id="button3" taborder="4" text="조회" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="button3_onclick" positiontype="position"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grid_grd_testinfolist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="testengnm" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="delflagcd" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- <Column id="tubecd" type="STRING"/>
- <Column id="readid" type="STRING"/>
- <Column id="incfnm" type="STRING"/>
- <Column id="barcdprtncnt" type="STRING"/>
- <Column id="state" type="STRING"/>
- <Column id="testhngnm" type="STRING" size="256"/>
- <Column id="m" type="STRING" size="0"/>
- <Column id="readdr" type="STRING" size="0"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_testlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="testengnm" type="STRING"/>
- <Column id="testengabbr" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grid_grd_spclist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="dispseqno" type="STRING" size="256"/>
- <Column id="spccd" type="STRING" size="256"/>
- <Column id="spcnm" type="STRING" size="256"/>
- <Column id="spcabbr" type="STRING" size="256"/>
- <Column id="spcflagcd" type="STRING" size="256"/>
- <Column id="reprspccd" type="STRING" size="256"/>
- <Column id="reprspcnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_lastpage" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="lastpage" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_useflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value">0</Col>
- <Col id="label">사용</Col>
- </Row>
- <Row>
- <Col id="value">1</Col>
- <Col id="label">미사용</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_spcflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value">0</Col>
- <Col id="label">대표</Col>
- </Row>
- <Row>
- <Col id="value">1</Col>
- <Col id="label">세부</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_database_instcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_spcuseflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="value" type="STRING" size="256"/>
- <Column id="label" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="value">0</Col>
- <Col id="label">미사용</Col>
- </Row>
- <Row>
- <Col id="value">1</Col>
- <Col id="label">사용</Col>
- </Row>
- </Rows>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name : KU2.0
- * Job Name :
- * File Name : SMLPC00700_검사정보등록.xfdl
- * Creator :
- *
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LPZ001.xjs";
- include "lis_commonxp::LLZ001.xjs";
- include "lis_commonxp::LZZ001.xjs";
- include "emr_prcpmngtxp::MMO001.xjs";
- var lgv_sInstCd = sysf_getUserInfo("dutplceinstcd");
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //화면초기화
- function lf_exeInitialize(){
-
- cap_lastPage.text = "1";
- //-----------------------------------------------------------------
- //검사목록조회
- var sInDsName = dsf_createDsRow("ds_temp_search2"
- , [{col: "instcd" , val: lgv_sInstCd}
- , {col: "refval" , val: ""}
- , {col: "refflag" , val: ""}
- , {col: "delflagcd", val: "0"}
- ]);
-
- tranf_submit({
- id: "TRLPC00401"
- , service: "plgybaseinfomngtapp.TestCode"
- , method: "reqGetTestCodeList"
- , inds : "refData="+sInDsName
- , outds: "ds_grid_grd_testlist=rsltlist"
- , async: false
- });
- //-----------------------------------------------------------------
- //검체목록조회
- sInDsName = dsf_createDsRow("ds_temp_search2"
- , [{col: "instcd" , val: lgv_sInstCd}
- , {col: "delflagcd", val: "0"}
- , {col: "refflag" , val: ""}
- , {col: "refval" , val: ""}
- ]);
-
- tranf_submit({
- id: "TRLPC00601"
- , service: "plgybaseinfomngtapp.SpecimenCode"
- , method: "reqGetSpecimenCodeList"
- , inds : "refData="+sInDsName
- , outds: "ds_grid_grd_spclist=spccdlistdata"
- , async: false
- });
- // //그리드 전체체크
- // grdf_setAllCheck(grd_testlist);
- // grdf_setAllCheck(grd_spclist);
- // grdf_setAllCheck(grd_testinfolist);
- // grdf_setGridSort(grd_testlist);
- // grdf_setGridSort(grd_spclist);
- // grdf_setGridSort(grd_testinfolist);
- }
- function lf_getRefData(ref_work_flag){
- var iRowNo = ds_grid_grd_testinfolist.rowcount;
- var iColNo = ds_grid_grd_testinfolist.colcount;
-
- if(ref_work_flag =="testinfo"){
- if(iRowNo >0){
- //Continue
- } else {
- return false;
- }
- }
-
- //-------------------------------------------------------------
- if(ref_work_flag == "testinfo" && ds_grid_grd_testinfolist.rowcount<0){
- return;
- }
- //---------------------------------------------
- switch (ref_work_flag){
-
- case "testinfolist":
- //-------------------
- lf_getTestInfoList("");
- break;
-
- case "testinfo":
- break;
-
- default:
- break;
- }
- }
- //검사정보 보기
- function lf_getTestInfoList(page){
- // 이상 페이지 번호 처리
- if(page == "") page = 1;
- if(page < 1) page = 1;
-
- if(page > Number(cap_lastPage.value)) page = Number(cap_lastPage.value);
- if (page == 0) page = 1;
- //--------------------------------
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "delflagcd", val: group1.rdo_s_delflagcd.value}
- , {col: "refflag" , val: group1.combo1.value}
- , {col: "refval" , val: group1.ipt_refval.value}
- , {col: "instcd" , val: lgv_sInstCd}
- , {col: "page" , val: page}
- , {col: "itemlimit", val: "100"}
- ]);
-
- tranf_submit({
- id: "TRLPC00701"
- , service: "plgybaseinfomngtapp.TestInfo"
- , method: "reqGetTestInfoList"
- , inds : "refData="+sInDsName
- , outds: "ds_grid_grd_testinfolist=refrslt ds_lastpage=lastpage"
- , async: false
- });
- cap_lastPage.text = ds_lastpage.getColumn(0,"lastpage");
- ipt_paval.value = page;
- ds_grid_grd_testinfolist.addColumn("targetdb", "string");
- }
- /**********************************************************************************
- * Name : lf_exeInfoSend
- * Description : 정보전달
- * Argument :
- * return Type : Null
- * Author : Autumn
- ***********************************************************************************/
- function lf_exeInfoSend(){
- var iLastNo = 0;
- var iFindRow = ds_grid_grd_testlist.findRow("choi", "1");
- if (iFindRow == -1) {
- sysf_messageBox("등록할 검사코드를 ", "C002", "");
- return;
- }
-
- iFindRow = ds_grid_grd_spclist.findRow("choi", "1");
- if (iFindRow == -1) {
- sysf_messageBox("등록할 검체코드를 ", "C002", "");
- return;
- }
- for (var iTestNo=0; iTestNo < ds_grid_grd_testlist.rowcount; iTestNo++) {
- //-----------------------------------
- if(ds_grid_grd_testlist.getColumn(iTestNo,"choi")=="1"){
- //-----------------------------------
- for(var iSpcNo=0; iSpcNo <ds_grid_grd_spclist.rowcount; iSpcNo++) {
- //-----------------------------------
- if(ds_grid_grd_spclist.getColumn(iSpcNo,"choi")=="1"){
- //-----------------------------------
- ds_grid_grd_testinfolist.addRow();
- iLastNo = Number(ds_grid_grd_testinfolist.rowcount)-1;
-
- //-------------------------------------
- ds_grid_grd_testinfolist.setColumn(iLastNo,"choi" , "0");
- ds_grid_grd_testinfolist.setColumn(iLastNo,"instcd" , ds_grid_grd_testlist.getColumn(iTestNo,"instcd"));
- ds_grid_grd_testinfolist.setColumn(iLastNo,"testcd" , ds_grid_grd_testlist.getColumn(iTestNo,"testcd"));
- ds_grid_grd_testinfolist.setColumn(iLastNo,"testengnm" , ds_grid_grd_testlist.getColumn(iTestNo,"testengnm"));
- ds_grid_grd_testinfolist.setColumn(iLastNo,"spccd" , ds_grid_grd_spclist.getColumn(iSpcNo,"spccd"));
- ds_grid_grd_testinfolist.setColumn(iLastNo,"spcnm" , ds_grid_grd_spclist.getColumn(iSpcNo,"spcnm"));
- ds_grid_grd_testinfolist.setColumn(iLastNo,"delflagcd" , "0");
- ds_grid_grd_testinfolist.setColumn(iLastNo,"fromdd" , utlf_getCurrentDate());
- ds_grid_grd_testinfolist.setColumn(iLastNo,"todd" , "99991231");
- ds_grid_grd_testinfolist.setColumn(iLastNo,"tubecd" , "-");
- ds_grid_grd_testinfolist.setColumn(iLastNo,"readid" , "-");
- ds_grid_grd_testinfolist.setColumn(iLastNo,"incfnm" , "-");
- ds_grid_grd_testinfolist.setColumn(iLastNo,"barcdprtncnt", "1");
- ds_grid_grd_testinfolist.setColumn(iLastNo,"state" , "1"); //신규(1)
- }
- }
- //------------------------------------
- //생성 후 선택 자동 취소(검사)
- ds_grid_grd_testlist.setColumn(iTestNo,"choi","0");
- }
- }
-
- for(var iSpcNo=0; iSpcNo<ds_grid_grd_spclist.rowcount; iSpcNo++){
- if(ds_grid_grd_spclist.getColumn(iSpcNo,"choi")=="1"){
- ds_grid_grd_spclist.setColumn(iSpcNo,"choi","0");
- }
- }
-
- //-----------------------------------
- if(Number(ds_grid_grd_testinfolist.rowcount)>28){
- ds_grid_grd_testinfolist.rowposition = Number(ds_grid_grd_testinfolist.rowcount)-28;
- } else {
- ds_grid_grd_testinfolist.rowposition = 0;
- }
- }
- /**********************************************************************************
- * Name : lf_exeTestInfoSave
- * Description : 저장
- * Argument :
- * return Type : Null
- * Author : Autumn
- ***********************************************************************************/
- function lf_exeTestInfoSave(){
-
- var nRow =0;
- for(nRow=0;nRow<ds_grid_grd_testinfolist.rowcount;nRow++){
- if(ds_grid_grd_testinfolist.getRowType(nRow) == Dataset.ROWTYPE_INSERT )
- {
- ds_grid_grd_testinfolist.setColumn(nRow,"m", "i");
- ds_grid_grd_testinfolist.setColumn(nRow,"readdr", ds_grid_grd_testinfolist.getColumn(nRow,"readid"));
-
- }
- if(ds_grid_grd_testinfolist.getRowType(nRow) == Dataset.ROWTYPE_UPDATE )
- {
- ds_grid_grd_testinfolist.setColumn(nRow,"m", "u");
- ds_grid_grd_testinfolist.setColumn(nRow,"readdr", ds_grid_grd_testinfolist.getColumn(nRow,"readid"));
- }
- }
- tranf_submit({
- id: "TXLPC00701"
- , service: "plgybaseinfomngtapp.TestInfo"
- , method: "reqSetTestInfoInfo"
- , inds : "refData=ds_grid_grd_testinfolist:U"
- , callback: "cbf_TXLPC00701"
- , async: false
- });
- }
- /**********************************************************************************
- * Name : cbf_TXLPC00701
- * Description : 저장관련 콜백함수
- * Argument :
- * return Type : Null
- * Author : Autumn
- ***********************************************************************************/
- function cbf_TXLPC00701(strSvcID, nErrorCode, strErrorMag){
- if (nErrorCode != 0) {
- return ;
- }
- switch (strSvcID) {
- case "TXLPC00701":
- sysf_messageBox("저장이","I002","");
- lf_getRefData("testinfolist");
- break;
- default:
- break;
- }
- }
- //=======================================================================================
- // Event
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Components :
- * Components ID : SMLPC00700
- * Event : onload
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function SMLPC00700_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj); // 화면공통
- //마우스 우측 메뉴 항목 세팅
-
- grdf_initGrid(grd_testlist);
- grdf_initGrid(grd_spclist);
- grdf_initGrid(grd_testinfolist);
- frmf_createPopupMenu("pm_SubMenu", "pm_SubMenu_onmenuclick");
- lf_exeInitialize();
-
- }
- /****************************************************************************************
- * Components :
- * Components ID : button3
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_getRefData("testinfolist");
- }
- /****************************************************************************************
- * Components :
- * Components ID : grd_testinfolist
- * Event : oncellclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function grd_testinfolist_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- //체크해재시 상태값 초기화(개별 체크)
- if(e.col == grd_testinfolist.getBindCellIndex("body", "choi")){
- if(ds_grid_grd_testinfolist.getColumn(e.row, "choi") != "1"){
- var arrPostion = new Array();
- arrPostion[0] = e.row;
- grdf_setStatus(grd_testinfolist,"", arrPostion);
- }
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID : group1_ipt_refval
- * Event : onkeydown
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function group1_ipt_refval_onkeydown(obj:Edit, e:KeyEventInfo)
- {
- if (e.keycode == '13') {
-
- var sText = group1.ipt_refval.text;
- group1.ipt_refval.value = sText.toUpperCase();
-
- //조회호출
- lf_getRefData("testinfolist");
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID : button1
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- //다음 페이지 클릭시
- lf_getTestInfoList(Number(ipt_paval.value)+1);
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_prntexcel
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_prntexcel_onclick(obj:Button, e:ClickEventInfo)
- {
- //이전 페이지 클릭시
- lf_getTestInfoList(Number(ipt_paval.value) - 1);
- }
- /****************************************************************************************
- * Components :
- * Components ID : button2
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- //처음 페이지 클릭시
- lf_getTestInfoList(1);
- }
- /****************************************************************************************
- * Components :
- * Components ID : button4
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- //최종 페이지 클릭시
- lf_getTestInfoList(cap_lastPage.text);
- }
- /****************************************************************************************
- * Components :
- * Components ID : btn_addcste
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_addcste_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_exeInfoSend();
- }
- /****************************************************************************************
- * Components :
- * Components ID: btn_save
- * Event : onclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description :
- ****************************************************************************************/
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- lf_exeTestInfoSave();
- }
- /****************************************************************************************
- * Components : Combo
- * Components ID: cmb_useflagcd
- * Event : onitemchanged
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 사용여부지정
- ****************************************************************************************/
- function cmb_useflagcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- var iFindRow = ds_grid_grd_testinfolist.findRow("choi", "1");
- if (iFindRow == -1) {
- return ;
- }
- for (var i = 0; i < ds_grid_grd_testinfolist.rowcount; i++) {
- if (ds_grid_grd_testinfolist.getColumn(i, "choi") == "1" && ds_grid_grd_testinfolist.getColumn(i, "state") != "1") {
- if (cmb_useflagcd.value != ds_grid_grd_testinfolist.getColumn(i, "delflagcd")) {
- ds_grid_grd_testinfolist.setColumn(i, "state" , "2") ;
- ds_grid_grd_testinfolist.setColumn(i, "delflagcd", cmb_useflagcd.value) ;
- }
- }
- }
- }
- /****************************************************************************************
- * Components : Grid
- * Components ID : grd_medireclist
- * Event : ondragmove
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 전체설정 그리드 드레그 이벤트
- ****************************************************************************************/
- function grd_spclist_ondragmove(obj:Grid, e:GridDragEventInfo)
- {
- fAddColDragOver(obj, e);
- }
- /****************************************************************************************
- * Function : fAddColDragOver
- * Description : 컬럼 추가 드래그 종료
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * retrun type :
- * Creator :
- ****************************************************************************************/
- function fAddColDragOver(obj:Grid, e:GridDragEventInfo){
- if(e.button == "lbutton")
- obj.style.cursor = "hand";
- else
- obj.style.cursor = "auto";
- }
- function grd_spclist_ondrag(obj:Grid, e:GridDragEventInfo)
- {
-
- if(e.row < 0 || e.col < 0) return false;
- fAddColDragStart(obj, e);
- return true;
- }
- /****************************************************************************************
- * Function : fAddColDragStart
- * Description : 컬럼 추가 드래그 시작
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * retrun type :
- * Creator :
- ****************************************************************************************/
- function fAddColDragStart(obj:Grid, e:GridDragEventInfo){
- var sDropData = ""; // Drag Drop 파라미터 데이터
- var sDragColNm = ""; // 컬럼명
- var sDragColSz = ""; // 컬럼 사이즈
- var nCurCol = 0; // 선택된 컬럼 번호
-
- var SelectedCells = grdf_getSelectedCols(obj);
- for(var i = 0; i < SelectedCells.length; i++){
- nCurCol = SelectedCells[i];
-
- sDragColNm = lf_getBindCellName(obj, nCurCol);
- sDragColSz = obj.getRealColSize(nCurCol);
-
- if(eval(sDragColSz) > 0) {
- if(utlf_isNull(sDropData)) {
- sDropData = sDragColNm + "^" + sDragColSz;
- } else {
- sDropData = sDropData + "|" + sDragColNm + "^" + sDragColSz;
- }
- }
- }
- e.userdata = sDropData;
- //e.dragimage = obj.saveToImageObject();
- }
- function grd_spclist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.cell>0){
- ds_grid_grd_spclist.rowposition = e.row;
- lf_GetRMouseDown(e.screenX, e.screenY, e.row, e.col);
- }
- }
- function lf_GetRMouseDown(screenX, screenY, row, col){
- if(row > -1){
- frmf_setPopupMenuDs("pm_SubMenu", [{id: "fExeSpcSelect", level: "0", title: "선택"}
- , {id: "fExeSpcDeSelect",level: "0", title: "해제"}]);
- pm_SubMenu.trackPopup(screenX+5,screenY+5,"right bottom");
- }
- }
- /****************************************************************************************
- * Components :
- * Components ID : pm_SubMenu
- * Event : onmenuclick
- * Argument : 01.obj : Object Event has occurred
- * : 02.e : Event Object
- * Description : 상세처방조회 마우스 우측메뉴 클릭 이벤트
- ****************************************************************************************/
- function pm_SubMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo){
- lf_Onmenu(e.id);
- }
- //우클릭팝업메뉴 선택
- function lf_Onmenu(id){
- if(id == "fExeSpcSelect"){//선택
- fExeSpcSelect();
- }else if(id == "fExeSpcDeSelect"){//취소
- fExeSpcDeSelect();
- }
- }
- /* @group : 검사정보등록 화면
- * @ver : 2011.02.10 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검체목록 선택 함수
- */
- function fExeSpcSelect() {
-
- var iFirstRow = grd_spclist.selectstartrow;
- var iLasrRow = grd_spclist.selectendrow;
-
- //---------------------------------------------------
- for(var i = iFirstRow; i <= iLasrRow ; i++) {
- ds_grid_grd_spclist.setColumn(i,"choi","1");
- }
-
- }
- /* @group : 검사정보등록 화면
- * @ver : 2011.02.10 (CMCDEV-0001)
- * @by : 유동철
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 검체목록 선택취소 함수
- */
- function fExeSpcDeSelect() {
-
- var iFirstRow = grd_spclist.selectstartrow;
- var iLasrRow = grd_spclist.selectendrow;
-
- //---------------------------------------------------
- for(var i = iFirstRow; i <= iLasrRow ; i++) {
- ds_grid_grd_spclist.setColumn(i,"choi","0");
- }
-
- }
- ]]></Script>
- </Form>
- </FDL>
|