123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLPJ02100" position="absolute 0 0 566 566" titletext="병리번호목록" oninit="SPLPJ02100_oninit" onload="SPLPJ02100_onload">
- <Layouts>
- <Layout>
- <Button id="btn_cls" taborder="1" text="닫기" class="btn4" position="absolute 494 527 550 549" onclick="btn_cls_onclick"/>
- <Static id="caption1" text="병리번호목록" class="tit_2" position="absolute 5 10 166 24"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 26 550 32" style="strokepen:3 solid #33bbbbff;"/>
- <Radio id="rdo_ptno" taborder="2" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 415 8 550 28" onitemchanged="rdo_ptno_onitemchanged" value="1" index="1">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </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>
- <Grid id="grd_ptnolist" taborder="3" binddataset="ds_grd_ptnolist" useinputpanel="false" position="absolute 0 30 550 522" autofittype="col" oncelldblclick="grd_ptnolist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="90"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="instcd"/>
- <Cell col="1" text="ptno"/>
- <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="spccd"/>
- <Cell col="10" text="검체명"/>
- <Cell col="11" text="검체접수일자"/>
- <Cell col="12" text="검체접수번호"/>
- <Cell col="13" text="접수일련번호"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" text="bind:ptno"/>
- <Cell col="2" class="text_center" text="bind:dispptno"/>
- <Cell col="3" text="bind:grosdrnm"/>
- <Cell col="4" class="text_center" text="bind:pid"/>
- <Cell col="5" class="text_center" text="bind:patnm"/>
- <Cell col="6" displaytype="date" edittype="date" class="text_center" text="bind:acptdd" mask="yyyy-MM-dd"/>
- <Cell col="7" displaytype="date" edittype="date" text="bind:acpttm" mask="hh:mm:ss"/>
- <Cell col="8" text="bind:acptno"/>
- <Cell col="9" text="bind:spccd"/>
- <Cell col="10" style="align:left middle;" text="bind:spcnm"/>
- <Cell col="11" text="bind:spcacptdd"/>
- <Cell col="12" text="bind:spcacptno"/>
- <Cell col="13" text="bind:acptseqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_ptnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING"/>
- <Column id="ptno" type="STRING"/>
- <Column id="dispptno" type="STRING"/>
- <Column id="grosdrnm" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="acptdd" type="STRING"/>
- <Column id="acpttm" type="STRING"/>
- <Column id="acptno" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="spcacptdd" type="STRING"/>
- <Column id="spcacptno" type="STRING"/>
- <Column id="acptseqno" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_obj_send" 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="pid" type="STRING" size="256"/>
- <Column id="dispptno" type="STRING" size="256"/>
- <Column id="ptno" type="STRING" size="256"/>
- <Column id="path" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ptnoflagcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="rdo_ptno" propid="value" datasetid="ds_init" columnid="ptnoflagcd"/>
- </Bind>
- <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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var bfptnocnclptno = "0";
- function SPLPJ02100_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPLPJ02100_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_ptnolist);
- fExeInitialize();
- }
- function fExeInitialize()
- {
- if(frmf_checkOpener())
- {
- try
- {
- ds_obj_send.copyData(arg_ds_send);
- }
- catch(e)
- {
- }
- }
- if(bfptnocnclptno == "1")
- {
- rdo_ptno.value = "1";
- }
- else
- {
- rdo_ptno.value = "0";
- }
- // if (opener.ds_pop_ptno.getColumn(0,"bfptnocnclptno") == "1") {
- // rdo_ptno.value = "1";
- // }else {
- // rdo_ptno.value = "1";
- // }
-
- fGetBfAfPtNoList();
- }
- function fGetBfAfPtNoList()
- {
- // dsf_createDsRow("ds_send", [{col : "instcd", val : opener.ds_pop_ptno.getColumn(0, "instcd")}
- // ,{col : "pid", val : opener.ds_pop_ptno.getColumn(0, "pid")}
- // ,{col : "ptnoflagcd", val : rdo_ptno.value}]);
- dsf_createDsRow("ds_send", [{col : "instcd", val : ds_obj_send.getColumn(0, "instcd")}
- ,{col : "pid", val : ds_obj_send.getColumn(0, "pid")}
- ,{col : "ptnoflagcd", val : rdo_ptno.value}]);
- var oParam = {};
- oParam.id = "TRLPJ02101";
- oParam.service = "plgyacptmngtapp.SpecimenAccept";
- oParam.method = "reqGetBfAfPtNoList";
- oParam.inds = "refdata=ds_send";
- oParam.outds = "ds_grd_ptnolist=reflist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPJ02101";
- tranf_submit(oParam);
- }
-
- function fExePtNoChange()
- {
- fGetBfAfPtNoList();
- }
- function btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function rdo_ptno_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
- {
- fExePtNoChange();
- }
- /* @group : 의뢰지 검체정보
- * @ver : 2007.07.03 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 병리번호 선택 처리 Function
- */
- // function lf_ExeGridSelect() {
- //
- // var grdRow = ds_grd_ptnolist.rowposition;
- //
- // if (grdRow >= 0 ) {
- // // Continue
- // } else {
- // return false;
- // }
- //
- // trace('aaa '+ ds_grd_ptnolist.getColumn(grdRow,"ptno"));
- // //---------------------------------------------------------------------------------------
- // // opener.ds_pop_ptno.setColumn(0,"ptno",ds_grd_ptnolist.getColumn(grdRow,"ptno"));
- // // opener.ds_pop_ptno.setColumn(0,"dispptno",ds_grd_ptnolist.getColumn(grdRow,"dispptno"));
- //
- // ds_obj_send.setColumn(0,"ptno",ds_grd_ptnolist.getColumn(grdRow,"ptno"));
- // ds_obj_send.setColumn(0,"dispptno",ds_grd_ptnolist.getColumn(grdRow,"dispptno"));
- // //---------------------------------------------------
- // // if (ds_init.getColumn(0,"ptnoflagcd") == "0") {
- // // opener.ds_pop_ptno.setColumn(0,"bfacptdd", ds_grd_ptnolist.getColumn(grdRow,"acptdd"));
- // // opener.ds_pop_ptno.setColumn(0,"bfacptno", ds_grd_ptnolist.getColumn(grdRow,"acptno"));
- // // opener.ds_pop_ptno.setColumn(0,"bfacptseqno", ds_grd_ptnolist.getColumn(grdRow,"acptseqno"));
- // // opener.ds_pop_ptno.setColumn(0,"reuseflagcd", "0");
- // // opener.ds_pop_ptno.setColumn(0,"bfspcacptdd",ds_grd_ptnolist.getColumn(grdRow,"spcacptdd"));
- // // opener.ds_pop_ptno.setColumn(0,"bfspcacptno",ds_grd_ptnolist.getColumn(grdRow,"spcacptno"));
- // // } else {
- // // opener.ds_pop_ptno.setColumn(0,"bfacptdd","-");
- // // opener.ds_pop_ptno.setColumn(0,"bfacptno","-");
- // // opener.ds_pop_ptno.setColumn(0,"bfacptseqno","0");
- // // opener.ds_pop_ptno.setColumn(0,"reuseflagcd","1");
- // // opener.ds_pop_ptno.setColumn(0,"bfspcacptdd","-");
- // // opener.ds_pop_ptno.setColumn(0,"bfspcacptno","-");
- // // }
- //
- // if (ds_init.getColumn(0,"ptnoflagcd") == "0") {
- // ds_obj_send.setColumn(0,"bfacptdd", ds_grd_ptnolist.getColumn(grdRow,"acptdd"));
- // ds_obj_send.setColumn(0,"bfacptno", ds_grd_ptnolist.getColumn(grdRow,"acptno"));
- // ds_obj_send.setColumn(0,"bfacptseqno", ds_grd_ptnolist.getColumn(grdRow,"acptseqno"));
- // ds_obj_send.setColumn(0,"reuseflagcd", "0");
- // ds_obj_send.setColumn(0,"bfspcacptdd",ds_grd_ptnolist.getColumn(grdRow,"spcacptdd"));
- // ds_obj_send.setColumn(0,"bfspcacptno",ds_grd_ptnolist.getColumn(grdRow,"spcacptno"));
- // } else {
- // ds_obj_send.setColumn(0,"bfacptdd","-");
- // ds_obj_send.setColumn(0,"bfacptno","-");
- // ds_obj_send.setColumn(0,"bfacptseqno","0");
- // ds_obj_send.setColumn(0,"reuseflagcd","1");
- // ds_obj_send.setColumn(0,"bfspcacptdd","-");
- // ds_obj_send.setColumn(0,"bfspcacptno","-");
- // }
- //
- // this.close();
- // }
- function lf_ExeGridSelect()
- {
- //var grdRow = grd_ptnolist.row;
- var grdRow = ds_grd_ptnolist.rowposition;
- trace("grdRow="+ds_grd_ptnolist.rowposition);
- //if (grdRow > 0 && grd_ptnolist.isCell(event.target) && grdRow >= grd_ptnolist.fixedRows)
- if(grdRow > -1 )
- {
- // Continue
- }
- else
- {
- return false;
- }
-
-
- //---------------------------------------------------------------------------------------
- //model.property("ptno") = model.getValue("/root/main/ptno/ptnolist["+grdRow+"]/ptno");
- //model.property("dispptno") = model.getValue("/root/main/ptno/ptnolist["+grdRow+"]/dispptno");
- opener.frmf_setParameter("ptno", ds_grd_ptnolist.getColumn(grdRow, "ptno"));
- trace("ptno="+ds_grd_ptnolist.getColumn(grdRow, "ptno"));
- opener.frmf_setParameter("dispptno", ds_grd_ptnolist.getColumn(grdRow, "dispptno"));
-
- //---------------------------------------------------
- //if (model.getValue("/root/init/ptnoflagcd") == "0")
- if(ds_init.getColumn(0, "ptnoflagcd") == "0")
- {
- opener.frmf_setParameter("bfacptdd", ds_grd_ptnolist.getColumn(grdRow, "acptdd"));
- opener.frmf_setParameter("bfacptno", ds_grd_ptnolist.getColumn(grdRow, "acptno"));
- opener.frmf_setParameter("bfacptseqno", ds_grd_ptnolist.getColumn(grdRow, "acptseqno"));
- opener.frmf_setParameter("reuseflagcd", "0");
- opener.frmf_setParameter("bfspcacptdd", ds_grd_ptnolist.getColumn(grdRow, "spcacptdd"));
- opener.frmf_setParameter("bfspcacptno", ds_grd_ptnolist.getColumn(grdRow, "spcacptno"));
- }
- else
- {
- opener.frmf_setParameter("bfacptdd", "-");
- opener.frmf_setParameter("bfacptno", "-");
- opener.frmf_setParameter("bfacptseqno", "0");
- opener.frmf_setParameter("reuseflagcd", "1");
- opener.frmf_setParameter("bfspcacptdd", "-");
- opener.frmf_setParameter("bfspcacptno", "-");
- }
- this.close();
- }
- function grd_ptnolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- lf_ExeGridSelect();
- }
- ]]></Script>
- </Form>
- </FDL>
|