123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLPJ00700" position="absolute 0 0 1199 761" titletext="접수/취소현황" oninit="SMLPJ00700_oninit" onload="SMLPJ00700_onload">
- <Layouts>
- <Layout>
- <Button id="button13" taborder="1" text="EXCEL저장" class="btn7" position="absolute 1102 69 1194 91" anchor="top right" onclick="button13_onclick"/>
- <Static id="caption6" text="부적합현황" class="tit_1" position="absolute 0 0 116 25" onclick="caption6_onclick"/>
- <Static id="caption4" text="부적합 목록" class="tit_2" position="absolute 5 83 151 97" anchor="left top" onclick="caption4_onclick"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 99 1194 105" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Div id="group2" taborder="2" position="absolute 0 25 1195 60" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
- <Edit id="ipt_seaval" taborder="11" class="input_search" position="absolute 107 8 205 27" anchor="left top" onkeyup="group2_ipt_seaval_onkeyup"/>
- <Static id="caption3" text="등록번호 :" class="search_name" position="absolute 16 9 102 26" anchor="left top"/>
- <Static id="caption5" text="~" class="search_no_b" position="absolute 419 8 431 25" anchor="top right"/>
- <Button id="btn_sea" taborder="12" text="조회" class="btn1" position="absolute 563 7 619 29" anchor="top right" onclick="group2_btn_sea_onclick"/>
- <Calendar id="ipt_cnclfromdd" taborder="13" class="input_s_essential" position="absolute 316 8 416 27" mask="yyyy-mm-dd" anchor="top right"/>
- <Calendar id="ipt_cncltodd" taborder="14" class="input_s_essential" position="absolute 435 8 535 27" mask="yyyy-mm-dd" anchor="top right" onkeyup="group2_ipt_cncltodd_onkeyup"/>
- <Static id="cap_refdd" text="접수일자 :" class="search_name" position="absolute 227 9 313 26" anchor="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_acptcncllist" class="datagrid2" taborder="3" binddataset="ds_grd_acptcncllist" useinputpanel="false" position="absolute 0 103 1194 756" autofittype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="31"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="50"/>
- <Column size="50"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="51"/>
- <Column size="0"/>
- <Column size="150"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="109"/>
- <Column size="50"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="128"/>
- <Column size="141"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="기관코드"/>
- <Cell col="1" text="병리번호"/>
- <Cell col="2"/>
- <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="취소자ID"/>
- <Cell col="10" text="취소자"/>
- <Cell col="11" text="검사코드"/>
- <Cell col="12" text="검사명"/>
- <Cell col="13" text="검사그룹코드"/>
- <Cell col="14" text="그룹검사명"/>
- <Cell col="15" text="진료과"/>
- <Cell col="16" text="진료의"/>
- <Cell col="17" text="추가처방의ID"/>
- <Cell col="18" text="검체코드"/>
- <Cell col="19" text="검체명"/>
- <Cell col="20" text="취소사유"/>
- <Cell col="21" text="조치사항"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" text="bind:ptno"/>
- <Cell col="2" celltype="head" text="expr:currow + 1"/>
- <Cell col="3" text="bind:relaptno"/>
- <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:prcpdd" mask="yy-MM-dd"/>
- <Cell col="7" displaytype="date" edittype="date" class="text_center" text="bind:cncldd" mask="yy-MM-dd"/>
- <Cell col="8" displaytype="date" edittype="date" class="text_center" text="bind:cncltm" mask="hh:mm:ss"/>
- <Cell col="9" text="bind:cnclid"/>
- <Cell col="10" class="text_center" text="bind:cnclnm"/>
- <Cell col="11" text="bind:testcd"/>
- <Cell col="12" style="align:left middle;" text="bind:testnm"/>
- <Cell col="13" text="bind:tgrupcd"/>
- <Cell col="14" text="bind:tgrupnm"/>
- <Cell col="15" style="align:left middle;font:arial,8;" text="bind:orddeptnm"/>
- <Cell col="16" text="bind:orddrnm"/>
- <Cell col="17" text="bind:appeorddrid"/>
- <Cell col="18" text="bind:spccd"/>
- <Cell col="19" text="bind:spcnm"/>
- <Cell col="20" style="align:left middle;" text="bind:resncnts"/>
- <Cell col="21" style="align:left;" text="bind:cnclresncd"/>
- </Band>
- </Format>
- <Format id="format_copy"/>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_init_cbo_ptnocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ptnonm" type="STRING"/>
- <Column id="ptnocd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_grd_acptcncllist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드(병원코드)"/>
- <Column id="ptno" type="STRING" size="256" sumtext="병리번호"/>
- <Column id="dispptno" type="STRING" size="256" sumtext="표시병리번호"/>
- <Column id="relaptno" type="STRING" size="256" sumtext="관련병리번호"/>
- <Column id="disprelaptno" type="STRING" size="256" sumtext="표시관련병리번호"/>
- <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
- <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
- <Column id="patflagnm" type="STRING" size="256" sumtext="환자구분명"/>
- <Column id="prcpdd" type="STRING" size="256" sumtext="처방일자"/>
- <Column id="prcptm" type="STRING" size="256" sumtext="처방시간"/>
- <Column id="acptdd" type="STRING" size="256" sumtext="접수일자"/>
- <Column id="acpttm" type="STRING" size="256" sumtext="접수시간"/>
- <Column id="cncldd" type="STRING" size="256" sumtext="취소일자"/>
- <Column id="cncltm" type="STRING" size="256" sumtext="취소시간"/>
- <Column id="cnclid" type="STRING" size="256" sumtext="최소자ID"/>
- <Column id="cnclnm" type="STRING" size="256" sumtext="취소자명"/>
- <Column id="testcd" type="STRING" size="256" sumtext="검사코드"/>
- <Column id="testnm" type="STRING" size="256" sumtext="검사명"/>
- <Column id="tgrupcd" type="STRING" size="256" sumtext="검사그룹코드"/>
- <Column id="tgrupnm" type="STRING" size="256" sumtext="검사그룹명"/>
- <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
- <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
- <Column id="orddrid" type="STRING" size="256" sumtext="진료의ID"/>
- <Column id="orddrnm" type="STRING" size="256" sumtext="진료의명"/>
- <Column id="appeorddrid" type="STRING" size="256" sumtext="추가처방등록자ID"/>
- <Column id="appeorddrnm" type="STRING" size="256" sumtext="추가처방의명"/>
- <Column id="spccd" type="STRING" size="256" sumtext="검체코드"/>
- <Column id="spcnm" type="STRING" size="256" sumtext="검체명"/>
- <Column id="blocno" type="STRING" size="256" sumtext="Cassette번호"/>
- <Column id="resncnts" type="STRING" size="256" sumtext="취소사유"/>
- <Column id="cnclresncd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_data_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="sysdd" type="STRING" size="256"/>
- <Column id="systm" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="seaval" type="STRING" size="256"/>
- <Column id="acptfromdd" type="STRING" size="256"/>
- <Column id="acpttodd" type="STRING" size="256"/>
- <Column id="seameth" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="seameth">0</Col>
- </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="ptnocode" type="STRING" size="256"/>
- <Column id="fromyear" type="STRING" size="256"/>
- <Column id="fromptno" type="STRING" size="256"/>
- <Column id="toyear" type="STRING" size="256"/>
- <Column id="toptno" type="STRING" size="256"/>
- <Column id="sysdt" type="STRING" size="256"/>
- <Column id="ptnocd" type="STRING" size="256"/>
- <Column id="refflagcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_grd_acptcncllist2" firefirstcount="0" firenextcount="0" useclientlayout="true" 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="relaptno" type="STRING"/>
- <Column id="disprelaptno" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="patflagnm" type="STRING"/>
- <Column id="prcpdd" type="STRING"/>
- <Column id="acptdd" type="STRING"/>
- <Column id="cncldd" type="STRING"/>
- <Column id="cncltm" type="STRING"/>
- <Column id="cnclid" type="STRING"/>
- <Column id="cnclnm" type="STRING"/>
- <Column id="testcd" type="STRING"/>
- <Column id="testnm" type="STRING"/>
- <Column id="tgrupcd" type="STRING"/>
- <Column id="tgrupnm" type="STRING"/>
- <Column id="orddeptcd" type="STRING"/>
- <Column id="orddeptnm" type="STRING"/>
- <Column id="orddrid" type="STRING"/>
- <Column id="orddrnm" type="STRING"/>
- <Column id="appeorddrid" type="STRING"/>
- <Column id="appeorddrnm" type="STRING"/>
- <Column id="spccd" type="STRING"/>
- <Column id="spcnm" type="STRING"/>
- <Column id="blocno" type="STRING"/>
- <Column id="resncnts" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="group2.ipt_cnclfromdd" propid="value" datasetid="ds_hidden" columnid="acptfromdd"/>
- <BindItem id="item1" compid="group2.ipt_cncltodd" propid="value" datasetid="ds_hidden" columnid="acpttodd"/>
- <BindItem id="item2" compid="group2.ipt_seaval" propid="value" datasetid="ds_hidden" columnid="seaval"/>
- </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";
- function SMLPJ00700_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLPJ00700_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_acptcncllist);
- fExeInitialize();
- }
- function fExeInitialize()
- {
- var sCurDate = "";
- dsf_createDsRow("ds_send", [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}]);
-
- var oParam = {};
- oParam.id = "TRLPZ00102";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetSystemDateTimeInformation";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_data_sysdtinfo=sysdtinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00102";
- tranf_submit(oParam);
-
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "refflagcd", val : "0"}]);
- var oParam = {};
- oParam.id = "TRLPZ00109";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetPtNoCdList";
- oParam.inds = "refdata=ds_send";
- oParam.outds = "ds_init_cbo_ptnocd=rsltlist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00109";
- tranf_submit(oParam);
- sCurDate = utlf_getCurrentDate();
- // 초기값 설정
- ds_hidden.setColumn(0, "seaval", "");
- ds_hidden.setColumn(0, "acptfromdd", utlf_getCurrentDate());
- ds_hidden.setColumn(0, "acpttodd", utlf_getCurrentDate());
- ds_hidden.setColumn(0, "seameth", "1");
-
- ds_init.setColumn(0, "refflagcd", "0");
- ds_init.setColumn(0, "ptnocode", "");
- ds_init.setColumn(0, "fromyear", sCurDate.substr(2,2));
- ds_init.setColumn(0, "toyear", sCurDate.substr(2,2));
- ds_init.setColumn(0, "fromptno", "");
- ds_init.setColumn(0, "toptno", "");
- }
- function fGetCnclPrcpList()
- {
- var sTemp = "";
- var sFromDD = ds_hidden.getColumn(0, "acptfromdd");
- var sToDD = ds_hidden.getColumn(0, "acpttodd");
-
- if( !utlf_isNull(ds_init.getColumn(0, "ptnocode")))
- {
- if( utlf_isNull(ds_init.getColumn(0, "fromyear")))
- {
- ds_init.setColumn(0, "fromyear", sFromDD.substr(2,2));
- }
- else
- {
- sTemp = ds_init.getColumn(0, "fromyear");
- ds_init.setColumn(0, "fromyear", sTemp.getLeftPad(2, "0"));
- }
-
- if( utlf_isNull(ds_init.getColumn(0, "toyear")))
- {
- ds_init.setColumn(0, "toyear", sToDD.substr(2,2));
- }
- else
- {
- sTemp = ds_init.getColumn(0, "toyear");
- ds_init.setColumn(0, "toyear", sTemp.getLeftPad(2, "0"));
- }
- if( utlf_isNull(ds_init.getColumn(0, "fromptno")))
- {
- ds_init.setColumn(0, "fromptno", "000000");
- }
- else
- {
- sTemp = ds_init.getColumn(0, "fromptno");
- ds_init.setColumn(0, "fromptno", sTemp.getLeftPad(6, "0"));
- }
- if( utlf_isNull(ds_init.getColumn(0, "toptno")))
- {
- ds_init.setColumn(0, "toptno", "999999");
- }
- else
- {
- sTemp = ds_init.getColumn(0, "toptno");
- ds_init.setColumn(0, "toptno", sTemp.getLeftPad(6, "0"));
- }
- }
-
- sTemp = ds_init.getColumn(0, "ptnocode");
- ds_send.clearData();
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "cnclfromdd", val : ds_hidden.getColumn(0, "acptfromdd")}
- ,{col : "cncltodd", val : ds_hidden.getColumn(0, "acpttodd")}
- ,{col : "refmthd", val : ds_hidden.getColumn(0, "seameth")}
- ,{col : "refval", val : ds_hidden.getColumn(0, "seaval")}
- ,{col : "ptnocode", val : utlf_transNullToEmpty(sTemp).replace("-", "")}
- ,{col : "fromyear", val : ds_init.getColumn(0, "fromyear")}
- ,{col : "fromptno", val : ds_init.getColumn(0, "fromptno")}
- ,{col : "toyear", val : ds_init.getColumn(0, "toyear")}
- ,{col : "toptno", val : ds_init.getColumn(0, "toptno")}
- ,{col : "acptflagcd", val : ds_init.getColumn(0, "refflagcd")}]);
- /*
- var oParam = {};
- oParam.id = "TRLPJ00701";
- oParam.service = "plgyrefmngtapp.AcptSpecRef";
- oParam.method = "reqGetAcptCnclList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_grd_acptcncllist=reflist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPJ00701";
- tranf_submit(oParam);
- */
- var oParam = {};
- oParam.id = "TRLPJ00701";
- oParam.service = "plgyrefmngtapp.AcptSpecRef";
- oParam.method = "reqGetCnclList";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_grd_acptcncllist=reflist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function fExeRefFlagChng()
- {
- if(ds_init.getColumn(0, "refflagcd") == "0")
- {
- group2.cap_refdd.text = "접수일자 :";
- }
- else
- {
- group2.cap_refdd.text = "취소일자 :";
- }
- }
- //조회
- function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetCnclPrcpList();
- }
- function group2_ipt_cncltodd_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetCnclPrcpList();
- }
- }
- function group2_cbo_refflagcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- fExeRefFlagChng();
- }
- //엑셀저장
- function button13_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_acptcncllist, "접수취소현황", "sheet1", false);
- }
- function group2_ipt_seaval_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- ds_hidden.setColumn(0, "seaval", group2.ipt_seaval.text);
- fGetCnclPrcpList();
- }
- }
- function caption6_onclick(obj:Static, e:ClickEventInfo)
- {
-
- }
- function caption4_onclick(obj:Static, e:ClickEventInfo)
- {
-
- }
- ]]></Script>
- </Form>
- </FDL>
|