123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLMR90600" position="absolute 0 0 850 691" titletext="전일결과복사" oninit="SPLMR90600_oninit" onload="SPLMR90600_onload">
- <Layouts>
- <Layout>
- <Button position="absolute 731 665 787 687" id="button3" class="btn4" visible="true" text="선택" onclick="button3_onclick"/>
- <Button position="absolute 790 665 846 687" id="button4" class="btn4" text="닫기" onclick="button4_onclick"/>
- <Shape id="line1" class="line_1" position="absolute 3 154 848 160" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption31" text="검체정보" class="tit_2" position="absolute 8 7 123 23"/>
- <Grid id="datagrid1" taborder="1" binddataset="ds_bftestlist" useinputpanel="false" position="absolute 303 28 848 123" oncellclick="datagrid1_oncellclick" cellsizingtype="col" autosizingtype="none" autofittype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="28"/>
- <Column size="126"/>
- <Column size="232"/>
- <Column size="158"/>
- </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="검사결과"/>
- </Band>
- <Band id="body">
- <Cell displaytype="normal" edittype="none" text="expr:currow + 1"/>
- <Cell col="1" text="bind:bflastreptdt" mask="9999-99-99 99:99:99"/>
- <Cell col="2" style="align:left middle;" text="bind:tclsscrnnm"/>
- <Cell col="3" text="bind:bfreptrslt"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Shape id="line2" class="line_1" position="absolute 303 24 848 30" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption2" text="전일 균 결과" class="tit_2" position="absolute 303 8 426 24"/>
- <Static id="caption4" text="항생제 결과" class="tit_2" position="absolute 4 136 100 152"/>
- <Edit id="output4" taborder="2" readonly="true" position="absolute 96 53 296 72"/>
- <Edit id="output5" taborder="3" readonly="true" position="absolute 96 77 296 96"/>
- <Shape id="line12" class="line_1" position="absolute 3 24 296 30" style="strokepen:3 solid #33bbbbff;"/>
- <Static id="caption1" text="작업번호" class="cell_1" position="absolute 3 100 93 123"/>
- <Static id="caption32" text="접수일시" class="cell_1" position="absolute 3 28 93 51"/>
- <Static id="caption33" text="검체명" class="cell_1" position="absolute 3 52 93 75"/>
- <Shape id="line15" class="line_3" position="absolute 3 120 296 126"/>
- <Static id="caption36" text="바코드번호" class="cell_1" position="absolute 3 76 93 99"/>
- <Edit id="output1" taborder="4" readonly="true" position="absolute 96 101 296 120"/>
- <MaskEdit id="output3" taborder="5" readonly="true" mask="####-##-## ##:##:##" position="absolute 96 29 296 48" style="align:left middle;" type="string"/>
- <Grid id="datagrid2" taborder="6" binddataset="ds_datagrid2" useinputpanel="false" position="absolute 3 158 848 658">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="28"/>
- <Column size="23"/>
- <Column size="100"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- <Column size="40"/>
- </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"/>
- <Cell col="4"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- <Cell col="15"/>
- <Cell col="16"/>
- <Cell col="17"/>
- <Cell col="18"/>
- <Cell col="19"/>
- <Cell col="20"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- <Cell col="28"/>
- <Cell col="29"/>
- <Cell col="30"/>
- <Cell col="31"/>
- <Cell col="32"/>
- <Cell col="33"/>
- </Band>
- <Band id="body">
- <Cell expr="expr:currow + 1"/>
- <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
- <Cell col="2" style="align:left middle;" text="bind:bacscrnnm"/>
- <Cell col="3"/>
- <Cell col="4"/>
- <Cell col="5"/>
- <Cell col="6"/>
- <Cell col="7"/>
- <Cell col="8"/>
- <Cell col="9"/>
- <Cell col="10"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell col="13"/>
- <Cell col="14"/>
- <Cell col="15"/>
- <Cell col="16"/>
- <Cell col="17"/>
- <Cell col="18"/>
- <Cell col="19"/>
- <Cell col="20"/>
- <Cell col="21"/>
- <Cell col="22"/>
- <Cell col="23"/>
- <Cell col="24"/>
- <Cell col="25"/>
- <Cell col="26"/>
- <Cell col="27"/>
- <Cell col="28"/>
- <Cell col="29"/>
- <Cell col="30"/>
- <Cell col="31"/>
- <Cell col="32"/>
- <Cell col="33"/>
- </Band>
- </Format>
- <Format id="format_copy"/>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_datagrid1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="bflastreptdt" type="STRING"/>
- <Column id="tclsscrnnm" type="STRING"/>
- <Column id="bfreptrslt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_datagrid2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="chk" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_bftestlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="bcno" type="STRING" size="256" sumtext="검체번호"/>
- <Column id="bfbcno" type="STRING" size="256" sumtext="이전검체번호"/>
- <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
- <Column id="spccd" type="STRING" size="256" sumtext="검체코드"/>
- <Column id="bfinptrslt" type="STRING" size="256" sumtext="이전입력결과"/>
- <Column id="bfreptrslt" type="STRING" size="256" sumtext="이전보고결과"/>
- <Column id="bflastreptdt" type="STRING" size="256" sumtext="이전보고일시"/>
- <Column id="bfworkno" type="STRING" size="256" sumtext="이전작업번호"/>
- <Column id="tclsscrnnm" type="STRING" size="256" sumtext="검사명"/>
- <Column id="spcscrnnm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_rsltlist_row" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_rsltlist_header" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="output3" propid="value" datasetid="ds_send_data1" columnid="spcacptdt"/>
- <BindItem id="item1" compid="output4" propid="value" datasetid="ds_send_data1" columnid="spcscrnnm"/>
- <BindItem id="item2" compid="output5" propid="value" datasetid="ds_send_data1" columnid="bcno"/>
- <BindItem id="item3" compid="output1" propid="value" datasetid="ds_send_data1" columnid="workno"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-01
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-01 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
-
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- function SPLMR90600_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- ds_send_data1.copyData(ds_hidden_bfsltparm);
- }
- function SPLMR90600_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(datagrid1);
- grdf_initGrid(datagrid2);
- fInit();
-
- }
- function fInit()
- {
- // datagrid1.removeRow();
- //model.copyNode("/root/send/data1" , "/root/hidden/bfsltparm");
-
- //submit("TRLMR90601");
- var oParam = {};
- oParam.id = "TRLMR90601";
- oParam.service = "rsltmngtapp.RsltMngt";
- oParam.method = "reqGetMicroBFRsltRef";
- oParam.inds = "cond=ds_send_data1";
- oParam.outds = "ds_bftestlist=bftestlist";
- oParam.async = false;
- //oParam.callback = "cf_TRLMR90601";
- tranf_submit(oParam);
-
- var cols = datagrid2.getCellCount("Head");
- var rows = datagrid2.rowcount;
-
- for( var i = 0; i < cols; i++ )
- {
- datagrid2.setFormatColProperty(i, "size", 0);
- }
- }
- function datagrid1_oncellclick(obj:Grid, e:GridClickEventInfo)
- {
- fAntimicRef();
- finfomation();
- }
- function finfomation()
- {
- var row = ds_bftestlist.rowposition;
- ds_send_data1.setColumn(0, "spcacptdt", ds_bftestlist.getColumn(row, "bflastreptdt"));
- ds_send_data1.setColumn(0, "spcscrnnm", ds_bftestlist.getColumn(row, "spcscrnnm"));
- ds_send_data1.setColumn(0, "workno", ds_bftestlist.getColumn(row, "bfworkno"));
- ds_send_data1.setColumn(0, "bcno", ds_bftestlist.getColumn(row, "bfbcno"));
- }
- function fAntimicRef()
- {
- // datagrid2.deleteContentsRow("Head",0);
- // datagrid2.deleteContentsRow("Body",0);
- var r = ds_bftestlist.rowposition;
- //model.makeNode("/root/main/rsltlist/row");
-
- //model.copyNode("/root/send/data2" , "/root/main/bftestlist["+datagrid1.row+"]");
-
- //submit("TRLMR90602", false);
- dsf_createDsRow("ds_send_data2", [{col : "testcd", val : ds_bftestlist.getColumn(r, "testcd")}
- ,{col : "spccd", val : ds_bftestlist.getColumn(r, "spccd")}
- ,{col : "bcno", val : ds_bftestlist.getColumn(r, "bfbcno")}]);
- var oParam = {};
- oParam.id = "TRLMR90602";
- oParam.service = "rsltmngtapp.RsltMngt";
- oParam.method = "reqGetMicroBFRsltRef2";
- oParam.inds = "cond=ds_send_data2";
- oParam.outds = "ds_datagrid2=row ds_rsltlist_header=header";
- oParam.async = false;
- //oParam.callback = "cf_TRLMR90602";
- tranf_submit(oParam);
-
- var gridCaption = ds_rsltlist_header.getColumn(0, "caption");
-
- //if(gridCaption == "") return;
- if(utlf_isNull(gridCaption)) return;
-
- //ref 정보
- //var gridColRef = model.getValue("/root/hidden/temp/rsltlist/header/colref");
- //var gridColRefArray = gridColRef.split("^");
- //var gridColType = model.getValue("/root/hidden/temp/rsltlist/header/type");
-
- var gridColRef = ds_rsltlist_header.getColumn(0, "colref");
- var gridColRefArray = gridColRef.split("^");
-
- var gridColType = ds_rsltlist_header.getColumn(0, "type");
- var gridColTypeArray = gridColType.split("^");
-
- var gridColCap = ds_rsltlist_header.getColumn(0, "caption");
- var gridColCapArray = gridColCap.split("^");
-
- for( var i = 3; i <= gridColCapArray.length; i++ )
- {
- //datagrid2.addColumn("ref:" + gridColRefArray[i] + "; type:"+gridColTypeArray[i]+"; ", false);
- datagrid2.setCellProperty("Head", i, "text", gridColCapArray[i-1]);
- datagrid2.setFormatColProperty( i, "size", 70);
- datagrid2.setCellProperty("body", i, "text", "bind:"+gridColRefArray[i-1]);
-
- }
- datagrid2.setFormatColProperty( 0, "size", 22);
- datagrid2.setFormatColProperty( 1, "size", 22);
- datagrid2.setFormatColProperty( 2, "size", 150);
- }
- //선택
- function button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fSelect_Click();
- }
- // 선택버튼 클릭
- function fSelect_Click()
- {
- var bcno = ds_bftestlist.getColumn(ds_bftestlist.rowposition, "bfbcno");
- var testcd = ds_bftestlist.getColumn(ds_bftestlist.rowposition, "testcd");
-
- var strRef = bcno + "/" + testcd + "/" + testcd + "/";
- var bacTF = false;
-
- for(i = 0; i < ds_datagrid2.rowcount; i++)
- {
- if(ds_datagrid2.getColumn(i, "chk") == 1)
- {
- strRef = strRef + ds_datagrid2.getColumn(i, "bacseqno") + "@";
- bacTF = true;
- }
- }
- strRef = strRef + "/";
- for(i = 0; i < ds_datagrid2.rowcount; i++)
- {
- if(ds_datagrid2.getColumn(i, "chk") == "1")
- {
- strRef = strRef + ds_datagrid2.getColumn(i, "baccd") + "@";
- bacTF = true;
- }
- }
-
- if(bacTF)
- {
- trace("strRef="+strRef);
- opener.frmf_setParameter(ds_hidden_bfsltparm.setColumn(0, "bacrslt", strRef));
- }
- this.close(); // 폼 종료
- }
- //닫기
- function button4_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|