123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPANC00200" position="absolute 0 0 500 315" titletext="영양검색판정기준표" onload="SPANC00200_onload">
- <Layouts>
- <Layout>
- <Button id="btn_close" taborder="1" text="닫기" class="btn4" position="absolute 444 293 500 315" onclick="btn_close_onclick"/>
- <Static id="caption1" text="영양검색판정기준표" class="tit_2" position="absolute 0 0 140 16"/>
- <Shape id="line1" class="line_10" position="absolute 0 17 500 23"/>
- <Grid id="grd_data" taborder="2" binddataset="ds_main_data" useinputpanel="false" position="absolute 0 22 500 291" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="102"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="89"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="90"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="good1"/>
- <Cell col="2" text="good2"/>
- <Cell col="3" text="양호"/>
- <Cell col="4" text="low1"/>
- <Cell col="5" text="low2"/>
- <Cell col="6" text="저위험도"/>
- <Cell col="7" text="mid1"/>
- <Cell col="8" text="mid2"/>
- <Cell col="9" text="중위험도"/>
- <Cell col="10" text="high1"/>
- <Cell col="11" text="high2"/>
- <Cell col="12" text="고위험도"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="bind:cddiv"/>
- <Cell col="1" text="bind:good1"/>
- <Cell col="2" text="bind:good2"/>
- <Cell col="3" text="bind:good"/>
- <Cell col="4" text="bind:low1"/>
- <Cell col="5" text="bind:low2"/>
- <Cell col="6" text="bind:low"/>
- <Cell col="7" text="bind:mid1"/>
- <Cell col="8" text="bind:mid2"/>
- <Cell col="9" text="bind:mid"/>
- <Cell col="10" text="bind:high1"/>
- <Cell col="11" text="bind:high2"/>
- <Cell col="12" text="bind:high"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cddiv" type="STRING"/>
- <Column id="good1" type="STRING"/>
- <Column id="good2" type="STRING"/>
- <Column id="good" type="STRING"/>
- <Column id="low1" type="STRING"/>
- <Column id="low2" type="STRING"/>
- <Column id="low" type="STRING"/>
- <Column id="mid1" type="STRING"/>
- <Column id="mid2" type="STRING"/>
- <Column id="mid" type="STRING"/>
- <Column id="high1" type="STRING"/>
- <Column id="high2" type="STRING"/>
- <Column id="high" type="STRING"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cddiv">PIBW(%)</Col>
- </Row>
- <Row>
- <Col id="cddiv">Alb(g/dl)</Col>
- </Row>
- <Row>
- <Col id="cddiv">TLC(cells/mm³)</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_receivedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description :
- ****************************************************************************************/
- function fopensearch(){
- // 항목별,위험도별로 최저값과 최고값을 hidden 컬럼에 setting
- for(var i = 0; i < 12; i++){
- var cd = ds_main_receivedata.getColumn(i, 'cd');
- var dngrcd = ds_main_receivedata.getColumn(i, 'dngrcd');
- var min = ds_main_receivedata.getColumn(i, 'min');
- var max = ds_main_receivedata.getColumn(i, 'max');
-
- // PIBW 일 경우
- if(cd == 1){
- // 양호
- if(dngrcd == 1){
- min = min.toString().getRound(-1, 'DOWN');
- ds_main_data.setColumn(0, 'good', '≥ ' + min);
- }
- // 저위험
- else if(dngrcd == 2){
- min = min.toString().getRound(-1, 'DOWN');
- max = max.toString().getRound(-1, 'DOWN');
- ds_main_data.setColumn(0, 'low', min + ' ~ ' + max);
- }
- // 중위험
- else if(dngrcd == 3){
- min = min.toString().getRound(-1, 'DOWN');
- max = max.toString().getRound(-1, 'DOWN');
- ds_main_data.setColumn(0, 'mid', min + ' ~ ' + max);
- }
- // 고위험
- else if(dngrcd == 4){
- max = max.toString().getRound(-1, 'DOWN');
- ds_main_data.setColumn(0, 'high', '< ' + max);
- }
- }
-
- // Alb 일 경우
- else if(cd == 2){
- if(dngrcd == 1){
- ds_main_data.setColumn(1, 'good', '≥ ' + min);
- }
- else if(dngrcd == 2){
- ds_main_data.setColumn(1, 'low', min + ' ~ ' + max);
- }
- else if(dngrcd == 3){
- ds_main_data.setColumn(1, 'mid', min + ' ~ ' + max);
- }
- else if(dngrcd == 4){
- ds_main_data.setColumn(1, 'high', '< ' + max);
- }
- }
-
- // TLC 일 경우
- else if(cd == 3){
- if(dngrcd == 1){
- min = min.toString().getRound(-1, 'DOWN');
- ds_main_data.setColumn(2, 'good', '≥ ' + min);
- }
- else if(dngrcd == 2){
- min = min.toString().getRound(-1, 'DOWN');
- max = max.toString().getRound(-1, 'DOWN');
- ds_main_data.setColumn(2, 'low', min + ' ~ ' + max);
- }
- else if(dngrcd == 3){
- min = min.toString().getRound(-1, 'DOWN');
- max = max.toString().getRound(-1, 'DOWN');
- ds_main_data.setColumn(2, 'mid', min + ' ~ ' + max);
- }
- else if(dngrcd == 4){
- max = max.toString().getRound(-1, 'DOWN');
- ds_main_data.setColumn(2, 'high', '< ' + max);
- }
- }
- }
- }
- //=======================================================================================
- // callback
- //---------------------------------------------------------------------------------------
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /****************************************************************************************
- * Argument :
- * Description : onload
- ****************************************************************************************/
- function SPANC00200_onload(obj:Form, e:LoadEventInfo){
- // 폼 초기화
- frmf_initForm(obj);
-
- ds_main_receivedata.copyData(arg_ds_main_receivedata);
-
- fopensearch();
- }
- /****************************************************************************************
- * Argument :
- * Description : 닫기 버튼 클릭 이벤트
- ****************************************************************************************/
- function btn_close_onclick(obj:Button, e:ClickEventInfo){
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|