123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLPP01100" position="absolute 0 0 1256 805" titletext="검사진행현황" onload="SMLPP01100_onload">
- <Layouts>
- <Layout>
- <Shape id="Shape11" type="roundrectangle" position="absolute 729 123 869 177"/>
- <Shape id="Shape10" type="roundrectangle" position="absolute 561 123 701 177"/>
- <Shape id="Shape09" type="roundrectangle" position="absolute 383 123 523 177"/>
- <Shape id="Shape08" type="roundrectangle" position="absolute 205 123 345 177"/>
- <Shape id="Shape07" type="roundrectangle" position="absolute 35 123 175 177"/>
- <Static id="Static01" class="sta_DA_box" position="absolute 0 206 1256 232" anchor="left top right"/>
- <Shape id="Shape13" type="roundrectangle" position="absolute 1077 123 1217 177" onclick="Shape13_onclick"/>
- <Shape id="Shape12" type="roundrectangle" position="absolute 899 123 1039 177"/>
- <Shape id="rect_stat6" type="roundrectangle" position="absolute 1077 98 1217 122"/>
- <Shape id="rect_stat5" type="roundrectangle" position="absolute 899 98 1039 122" onclick="rect_stat5_onclick"/>
- <Shape id="rect_stat4" type="roundrectangle" position="absolute 729 98 869 122"/>
- <Shape id="rect_stat7" type="roundrectangle" position="absolute 561 98 701 122"/>
- <Shape id="rect_stat3" type="roundrectangle" position="absolute 383 98 523 122" style="fillbrush:solid #f2f2efff true;background:transparent;"/>
- <Shape id="rect_stat2" type="roundrectangle" position="absolute 205 98 345 122"/>
- <Shape id="rect_stat1" position="absolute 35 98 175 122" type="roundrectangle"/>
- <Static id="caption6" text="검사진행현황" class="tit_1" position="absolute 0 0 147 25"/>
- <Static id="caption3" text="검사진행상황" class="tit_2" position="absolute 0 78 111 98"/>
- <Static id="caption2" text="검체접수목록" class="tit_2" position="absolute 0 242 100 262"/>
- <Div id="div_search" taborder="1" style="align:center top;" class="div_SA" position="absolute 0 25 1256 67" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption1" text="검색조건" class="search_name" position="absolute 686 10 760 30" anchor="default"/>
- <Button id="btn_search" taborder="9" text="조회" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="div_search_btn_search_onclick"/>
- <Static id="caption10" text="접수일자" class="search_name" position="absolute 376 10 450 30" anchor="default"/>
- <Static id="caption11" text="~" class="search_n_b" position="absolute 550 10 566 30" anchor="default" style="align:center;"/>
- <Combo id="cmb_refflagcd" taborder="7" class="combo_search" position="absolute 760 10 851 30" style="align:center middle;" anchor="default" codecolumn="codecolumn" datacolumn="datacolumn" index="-1" onitemchanged="div_search_cmb_refflagcd_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>
- <Edit id="edt_refval" taborder="8" class="input_search" position="absolute 859 10 974 30" anchor="default" onkeydown="div_search_edt_refval_onkeydown" style="align:center middle;" onkillfocus="div_search_edt_refval_onkillfocus" onsetfocus="div_search_edt_refval_onsetfocus" imemode="alpha" inputtype="numberandenglish" useime="none" inputmode="upper" maxlength="11"/>
- <Calendar id="cal_acptfromdd" taborder="5" class="input_s_essential" position="absolute 450 10 550 30" mask="####-##-##" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
- <Calendar id="cal_acpttodd" taborder="6" class="input_s_essential" position="absolute 562 10 662 30" mask="####-##-##" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
- <Combo id="cmb_ptnocd" taborder="0" position="absolute 82 10 173 30" anchor="default" innerdataset="@ds_init_ptnocdlist" codecolumn="ptnocd" datacolumn="ptnonm"/>
- <Edit id="edt_fromptno" taborder="2" class="text_center" position="absolute 206 10 256 30" anchor="default" maxlength="6" inputtype="number"/>
- <Static id="caption4" text="병리번호" class="search_name" position="absolute 8 10 82 30" anchor="default"/>
- <Static id="caption5" text="~" position="absolute 256 10 272 30" anchor="default" style="align:center;"/>
- <Edit id="edt_toptno" taborder="4" class="text_center" position="absolute 302 10 352 30" anchor="default" maxlength="6" inputtype="number"/>
- <Edit id="edt_toyear" taborder="3" class="text_center" position="absolute 272 10 299 30" anchor="default" inputtype="number" maxlength="2"/>
- <Edit id="edt_fromyear" taborder="1" class="text_center" position="absolute 176 10 203 30" anchor="default" maxlength="2" inputtype="number"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption13" text="검체현황" class="tit_2" position="absolute 0 187 111 207"/>
- <Static id="caption31" text="검체전달" class="cell_1" position="absolute 0 207 101 231"/>
- <Edit id="opt_spctran" taborder="2" readonly="true" position="absolute 104 209 229 229" style="align:center middle;font:arial,9,bold;" mask="#,###,###"/>
- <Static id="caption14" text="병리과 수신" class="cell_1" position="absolute 232 207 333 231"/>
- <Edit id="opt_spcrecv" taborder="3" readonly="true" position="absolute 336 209 460 229" style="align:center middle;font:arial,9,bold;" mask="#,###,###"/>
- <Static id="caption15" text="검체접수" class="cell_1" position="absolute 463 207 564 231"/>
- <Edit id="opt_spcacpt" taborder="4" readonly="true" position="absolute 567 209 691 229" style="align:center middle;font:arial,9,bold;" mask="#,###,###"/>
- <Static id="caption17" text="총 환자수" class="cell_1" position="absolute 694 207 795 231"/>
- <Edit id="opt_totalpat" taborder="5" readonly="true" position="absolute 798 209 922 229" style="align:center middle;font:arial,9,bold;" mask="#,###,###"/>
- <Static id="caption18" text="총 검사수" class="cell_1" position="absolute 925 207 1026 231"/>
- <Edit id="opt_totalspc" taborder="6" readonly="true" position="absolute 1029 209 1145 229" style="align:center middle;font:arial,9,bold;" mask="#,###,###"/>
- <Static id="cap_stat1" text="검체전달(A)" position="absolute 35 101 175 121" style="color:black;align:center middle;font:Dotum,9, bold;"/>
- <Static id="cap_stat2" text="병리과 수신(B)" position="absolute 207 101 347 121" style="color:black;align:center middle;font:Dotum,9, bold;"/>
- <Static id="cap_stat3" text="검체접수(C)" position="absolute 388 101 520 121" style="background:transparent;color:black;align:center middle;font:Dotum,9, bold;"/>
- <Static id="cap_stat4" text="판독중(E)" position="absolute 728 101 868 121" style="color:black;align:center middle;font:Dotum,9, bold;"/>
- <Static id="cap_stat5" text="최종진단(F)" position="absolute 901 101 1041 121" style="color:black;align:center middle;font:Dotum,9, bold;" onkeydown="cap_stat5_onkeydown" onclick="cap_stat5_onclick"/>
- <Static id="cap_stat6" text="추가진단(G)" position="absolute 1073 101 1213 121" style="color:black;align:center middle;font:Dotum,9, bold;" onkeydown="cap_stat6_onkeydown" onclick="cap_stat6_onclick"/>
- <Grid id="grd_acptspclist" taborder="7" useinputpanel="false" position="absolute 0 262 1256 805" onclick="grd_acptspclist_onclick" anchor="all" autofittype="col" oncellclick="grd_acptspclist_oncellclick" binddataset="ds_grid_grd_acptspclist" cellsizingtype="col" onrbuttondown="grd_acptspclist_onrbuttondown" class="CSS::lis.css">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="41"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="70"/>
- <Column size="100"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="70"/>
- <Column size="60"/>
- <Column size="76"/>
- <Column size="140"/>
- <Column size="60"/>
- <Column size="50"/>
- <Column size="70"/>
- <Column size="79"/>
- <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="No"/>
- <Cell col="1" text="상태"/>
- <Cell col="2" text="바코드번호"/>
- <Cell col="3" text="기관코드"/>
- <Cell col="4" text="ptno"/>
- <Cell col="5" text="병리번호"/>
- <Cell col="6" text="육안검사의"/>
- <Cell col="7" text="등록번호"/>
- <Cell col="8" text="환자명"/>
- <Cell col="9" text="검체명"/>
- <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="채취일자"/>
- <Cell col="18" text="채취시간"/>
- <Cell col="19" text="수신일자"/>
- <Cell col="20" text="수신시간"/>
- <Cell col="21" text="접수일자"/>
- <Cell col="22" text="접수시간"/>
- <Cell col="23" text="검사코드"/>
- <Cell col="24" text="처방명"/>
- <Cell col="25" text="처방의"/>
- <Cell col="26" text="진료과"/>
- <Cell col="27" text="판독일자"/>
- <Cell col="28" text="판독의사"/>
- <Cell col="29" text="execprcpuniqno"/>
- <Cell col="30" text="prcpgenrflag"/>
- <Cell col="31"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" expr="currow+1"/>
- <Cell col="1" text="bind:spcstatnm"/>
- <Cell col="2" text="bind:spcbarcdno"/>
- <Cell col="3"/>
- <Cell col="4"/>
- <Cell col="5" style="align:center middle;" text="bind:dispptno"/>
- <Cell col="6" class="text_center" text="bind:grosdrnm"/>
- <Cell col="7" displaytype="text" style="align:center middle;" class="text_center" text="bind:pid"/>
- <Cell col="8" style="align:center middle;" class="text_center" text="bind:patnm"/>
- <Cell col="9" style="align:center middle;" class="text_center" text="bind:spcnm"/>
- <Cell col="10" class="text_center"/>
- <Cell col="11"/>
- <Cell col="12"/>
- <Cell col="13" style="align:center middle;" class="text_center" text="bind:prcpdd" mask="expr:getColumn(currow, prcpdd) != '-' ? '####-##-##' : ''"/>
- <Cell col="14" style="align:center middle;" class="text_center" text="bind:prcptm" mask="expr:getColumn(currow, prcptm) != '-' ? '##:##:##' : ''"/>
- <Cell col="15" class="text_center" text="bind:trandd" mask="expr:getColumn(currow, trandd) != '-' ? '####-##-##' : ''"/>
- <Cell col="16" class="text_center" text="bind:trantm" mask="expr:getColumn(currow, trantm) != '-' ? '##:##:##' : ''"/>
- <Cell col="17" class="text_center" text="bind:delivedd" mask="expr:getColumn(currow, delivedd) != '-' ? '####-##-##' : ''"/>
- <Cell col="18" class="text_center" text="bind:delivetm" mask="expr:getColumn(currow, delivetm) != '-' ? '##:##:##' : ''"/>
- <Cell col="19" class="text_center" text="bind:cnfmdd" mask="expr:getColumn(currow, cnfmdd) != '-' ? '####-##-##' : ''"/>
- <Cell col="20" class="text_center" text="bind:cnfmtm" mask="expr:getColumn(currow, cnfmtm) != '-' ? '##:##:##' : ''"/>
- <Cell col="21" style="align:center middle;" class="text_center" text="bind:acptdd" mask="expr:getColumn(currow, acptdd) != '-' ? '####-##-##' : ''"/>
- <Cell col="22" style="align:center middle;" class="text_center" text="bind:acpttm" mask="expr:getColumn(currow, acpttm) != '-' ? '##:##:##' : ''"/>
- <Cell col="23" text="bind:testcd"/>
- <Cell col="24" style="align:left;" text="bind:testnm"/>
- <Cell col="25" style="align:center middle;" class="text_center" text="bind:orddrnm"/>
- <Cell col="26" style="align:center middle;" class="text_center" text="bind:orddeptnm"/>
- <Cell col="27" style="align:center middle;" text="bind:readdd" mask="####-##-##"/>
- <Cell col="28" text="bind:readdrnm"/>
- <Cell col="29"/>
- <Cell col="30"/>
- <Cell col="31"/>
- <Cell col="32"/>
- <Cell col="33"/>
- <Cell col="34"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="cap_cnts1" position="absolute 35 126 175 170" style="align:center middle;"/>
- <Static id="cap_cnts2" position="absolute 207 129 347 170" style="align:center middle;"/>
- <Static id="cap_cnts3" position="absolute 381 126 521 170" style="align:center middle;"/>
- <Static id="cap_cnts4" position="absolute 728 126 868 170" style="align:center middle;"/>
- <Static id="cap_cnts5" position="absolute 901 126 1041 170" style="align:center middle;" onkeydown="cap_cnts5_onkeydown" onclick="cap_cnts5_onclick"/>
- <Static id="cap_cnts6" position="absolute 1078 126 1218 170" style="align:center middle;" onkeydown="cap_cnts6_onkeydown" onclick="cap_cnts6_onclick"/>
- <Static id="cap_stat7" text="검사중(D)" position="absolute 562 101 702 121" style="color:black;align:center middle;font:Dotum,9, bold;"/>
- <Button id="btn_left" taborder="8" class="icon_left" position="absolute 105 239 131 259" onclick="btn_left_onclick"/>
- <Static id="cap_cnts7" position="absolute 563 126 703 170" style="align:center middle;"/>
- <Button id="btn_right" taborder="9" class="icon_right" position="absolute 134 239 160 259" onclick="btn_right_onclick"/>
- <Button id="btn_excel" taborder="10" text="EXCEL저장" class="btn2" position="absolute 1174 239 1256 259" anchor="top right" onclick="btn_excel_onclick"/>
- <PopupMenu id="pop_right" position="absolute 13 296 148 319" idcolumn="idcolumn" captioncolumn="captioncolumn" levelcolumn="levelcolumn" enablecolumn="enablecolumn" iconcolumn="iconcolumn" checkboxcolumn="checkboxcolumn" hotkeycolumn="hotkeycolumn" userdatacolumn="userdatacolumn" onmenuclick="pop_right_onmenuclick">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="idcolumn" size="256"/>
- <Column id="captioncolumn" size="256"/>
- <Column id="levelcolumn" size="256"/>
- <Column id="enablecolumn" size="256"/>
- <Column id="iconcolumn" size="256"/>
- <Column id="checkboxcolumn" size="256"/>
- <Column id="hotkeycolumn" size="256"/>
- <Column id="userdatacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="idcolumn">1</Col>
- <Col id="captioncolumn">병리번호별 상태조회</Col>
- <Col id="levelcolumn">lf_exeAcptDetlStat</Col>
- <Col id="enablecolumn"/>
- <Col id="iconcolumn"/>
- <Col id="checkboxcolumn"/>
- <Col id="hotkeycolumn"/>
- <Col id="userdatacolumn"/>
- </Row>
- </Rows>
- </Dataset>
- </PopupMenu>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_spccntinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="trancnt" type="STRING"/>
- <Column id="recvcnt" type="STRING"/>
- <Column id="acptcnt" type="STRING"/>
- <Column id="patcnt" type="STRING"/>
- <Column id="testcnt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_detlstatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_grid_grd_acptspclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_hospenvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_sysdtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false"/>
- <Dataset id="ds_init_ptnocdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="ptnocd" type="STRING"/>
- <Column id="ptnonm" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="opt_spctran" propid="value" datasetid="ds_spccntinfo" columnid="trancnt"/>
- <BindItem id="item1" compid="opt_spcrecv" propid="value" datasetid="ds_spccntinfo" columnid="recvcnt"/>
- <BindItem id="item2" compid="opt_spcacpt" propid="value" datasetid="ds_spccntinfo" columnid="acptcnt"/>
- <BindItem id="item3" compid="opt_totalpat" propid="value" datasetid="ds_spccntinfo" columnid="patcnt"/>
- <BindItem id="item4" compid="opt_totalspc" propid="value" datasetid="ds_spccntinfo" columnid="testcnt"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-05-19
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-05-19 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "lis_commonxp::LLZ001.xjs";
- include "lis_commonxp::LZZ001.xjs";
- include "lis_commonxp::LPZ001.xjs";
- //=======================================================================================
- // Function
- //---------------------------------------------------------------------------------------
- //콜백함수
- function cbf_SMLPP01100(strSvcID, nErrorCode, strErrorMag){
- if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
- }
- function lf_exeInitialize(){
- var sInstcd = sysf_getUserInfo("dutplceinstcd");
-
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "instcd", val: sInstcd}]);
-
-
- // 서브밋호출
- var oParam = {};
- oParam.id = "TRLPZ00101";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetHospitalEnvironmentSetInfo";
- oParam.inds = "refData="+sInDsName;
- oParam.outds = "ds_init_hospenvinfo=hospenvinfo";
- oParam.async = false;
- oParam.callback = "cbf_SMLPP01100";
- tranf_submit(oParam);
- var oParam = {};
- oParam.id = "TRLPZ00102";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetSystemDateTimeInformation";
- oParam.inds = "refData="+sInDsName;
- oParam.outds = "ds_init_sysdtinfo=sysdtinfo";
- oParam.async = false;
- oParam.callback = "cbf_SMLPP01100";
- tranf_submit(oParam);
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "instcd", val: sInstcd}
- , {col: "refflagcd", val: "0"}]);
-
- // 서브밋호출
- var oParam = {};
- oParam.id = "TRLPZ00109";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetPtNoCdList";
- oParam.inds = "refdata="+sInDsName;
- oParam.outds = "ds_init_ptnocdlist=rsltlist";
- oParam.async = false;
- oParam.callback = "cbf_SMLPP01100";
- tranf_submit(oParam);
- //---------------------------------------------------------
- // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
- lpzfUserDeptCd(ds_init_hospenvinfo, ds_hidden);
- div_search.cal_acptfromdd.value = ds_init_sysdtinfo.getColumn(0, "sysdd");
- div_search.cal_acpttodd.value = ds_init_sysdtinfo.getColumn(0, "sysdd");
- div_search.edt_refval.value = null;
-
- appf_getPatientInfoDetails("ds_init_paminfo");
-
- if(ds_init_paminfo.rowcount >= 0){
-
- if(!utlf_isNull(ds_init_paminfo.getColumn(0, "pid"))){
- div_search.cmb_refflagcd.value = "1";
- div_search.edt_refval.value = ds_init_paminfo.getColumn(0, "pid");
- lf_getSpcStatList();
- }
-
- }
-
- // div_search.cmb_ptnocd.value = "-";
- // div_search.cmb_refflagcd.value = "1";
- lf_getSpcStatList();
- div_search.edt_refval.setFocus();
- }
- function lf_getSpcStatList(){
- var sPtNoCd = div_search.cmb_ptnocd.value;
- // 조회시 병리번호 From ~ To 체크/셋팅 [include "lis_commonxp::LZZ001.xjs";]
- gf_getPtNoSetting( div_search.cal_acptfromdd.value
- , div_search.cal_acpttodd.value
- , div_search.cmb_ptnocd
- , div_search.edt_fromyear
- , div_search.edt_fromptno
- , div_search.edt_toyear
- , div_search.edt_toptno);
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "instcd", val: sysf_getUserInfo("dutplceinstcd")}
- , {col: "refmthd", val: utlf_transNullToEmpty(div_search.cmb_refflagcd.value)}
- , {col: "refval", val: utlf_transNullToEmpty(div_search.edt_refval.value)}
- , {col: "acptfromdd", val: utlf_transNullToEmpty(div_search.cal_acptfromdd.value)}
- , {col: "acpttodd", val: utlf_transNullToEmpty(div_search.cal_acpttodd.value)}
- , {col: "ptnocode", val: utlf_transNullToEmpty(sPtNoCd).replace("-","")}
- , {col: "fromyear", val: utlf_transNullToEmpty(div_search.edt_fromyear.value)}
- , {col: "fromptno", val: utlf_transNullToEmpty(div_search.edt_fromptno.value)}
- , {col: "toyear", val: utlf_transNullToEmpty(div_search.edt_toyear.value)}
- , {col: "toptno", val: utlf_transNullToEmpty(div_search.edt_toptno.value)}]);
-
- // 서브밋호출
- var oParam = {};
- oParam.id = "TRLPP01101";
- oParam.service = "plgyrefmngtapp.TestRsltRef";
- oParam.method = "reqGetSpcStatList";
- oParam.inds = "refData="+sInDsName;
- oParam.outds = "ds_grid_grd_acptspclist=acptspclist ds_spccntinfo=spccntinfo";
- oParam.async = false;
- oParam.callback = "cbf_SMLPP01100";
- tranf_submit(oParam);
-
-
- //상세상태를 자동으로 표시
- if(ds_grid_grd_acptspclist.rowcount > 0){
- lf_getSpcDeltStat(0);
- }
- }
- function lf_getSpcDeltStat(pRowNo){
- var bState = false;
- var iMaxRowCnt = 0;
-
- var sInDsName = dsf_createDsRow("ds_temp_search"
- , [{col: "instcd", val: ds_grid_grd_acptspclist.getColumn(pRowNo, "instcd")}
- , {col: "spcbarcdno", val: ds_grid_grd_acptspclist.getColumn(pRowNo, "spcbarcdno")}
- , {col: "pid", val: ds_grid_grd_acptspclist.getColumn(pRowNo, "pid")}
- , {col: "prcpdd", val: ds_grid_grd_acptspclist.getColumn(pRowNo, "prcpdd")}
- , {col: "execprcpuniqno", val: ds_grid_grd_acptspclist.getColumn(pRowNo, "execprcpuniqno")}]);
-
- // 서브밋호출
- var oParam = {};
- oParam.id = "TRLPP01102";
- oParam.service = "plgyrefmngtapp.TestRsltRef";
- oParam.method = "reqGetSpcDetlStat";
- oParam.inds = "refData="+sInDsName;
- oParam.outds = "ds_detlstatinfo=refrslt";
- oParam.async = false;
- oParam.callback = "cbf_SMLPP01100";
- tranf_submit(oParam);
-
- iMaxRowCnt = ds_detlstatinfo.rowcount;
-
- //초기화
- lf_exeCtrlInitialize();
-
- for(iNo = 0; iNo < iMaxRowCnt; iNo++){
- if (iNo == (iMaxRowCnt - 1) ) {
-
- bState = true;
-
- } else {
- bState = false;
- }
-
- switch (ds_detlstatinfo.getColumn(iNo, "tretflagcd")){
-
- // 바코드 출력
- case "400": {
- break;
- }// 채취일자 등록
- case "410": {
- lf_exeStatChange(iNo, rect_stat1, cap_cnts1, bState);
- break;
- }// 병리과 수신확인
- case "420": {
- lf_exeStatChange(iNo, rect_stat2, cap_cnts2, bState);
- break;
- }// 검체접수
- case "430": {
- lf_exeStatChange(iNo, rect_stat3, cap_cnts3, false);
- lf_exeStatChange(iNo, rect_stat7, cap_cnts7, bState);
- break;
- }// 검사중
- case "510": {
- if(bState){
- if(!ds_detlstatinfo.getColumn(iNo, "tretdd")){
- rect_stat7.style.backgroundColor = "#ff0000";
- }
- }
- break;
- }// 판독중
- case "700": {
-
- lf_exeStatChange(iNo, rect_stat4, cap_cnts4, bState);
- break;
- }// 예비결과 등록
- case "710": {
- if(bState){
- if(!utlf_isNull(ds_detlstatinfo.getColumn(iNo, "tretdd"))){
- rect_stat4.style.fillbrush.color = "#ff0000";
- }else if (!utlf_isNull(cap_cnts7.text)){
- rect_stat7.style.fillbrush.color = "#ff0000";
- }
- }
- break;
- }// 최종진단 등록
- case "730": {
- lf_exeStatChange(iNo, rect_stat5, cap_cnts5, bState);
- break;
- }// 수정진단 등록
- case "740": {
- lf_exeStatChange(iNo, rect_stat6, cap_cnts6, bState);
- break;
- }
- }
- }
- }
- function lf_exeStatChange(iNo, objCtrl1, objCtrl2, pState){
- var sMsg = "";
-
- sMsg += "시행일자 : " + ds_detlstatinfo.getColumn(iNo, "tretdd") + "\n";
- sMsg += "시행시간 : " + ds_detlstatinfo.getColumn(iNo, "trettm") + "\n";
- sMsg += "시 행 자 : " + ds_detlstatinfo.getColumn(iNo, "tretpsnnm");
- if(pState){
- objCtrl1.style.fillbrush.color = "#ff0000";
- objCtrl1.style.fillbrush.style = "solid";
- objCtrl1.style.fillbrush.antialiasing = "true";
- }else{
- objCtrl1.style.fillbrush.color = "#33cccc";
- objCtrl1.style.fillbrush.style = "solid";
- objCtrl1.style.fillbrush.antialiasing = "true";
- }
-
- objCtrl2.text = sMsg;
- }
- function lf_exeCtrlInitialize(){
- rect_stat1.style.fillbrush.color = "#f2f2ef";
- rect_stat1.style.fillbrush.style = "solid";
- rect_stat1.style.fillbrush.antialiasing = "true";
- cap_stat1.text = "검체전달(A)";
- cap_cnts1.text = "";
-
- rect_stat2.style.fillbrush.color = "#f2f2ef";
- rect_stat2.style.fillbrush.style = "solid";
- rect_stat2.style.fillbrush.antialiasing = "true";
- cap_stat2.text = "병리과 수신(B)";
- cap_cnts2.text = "";
-
- rect_stat3.style.fillbrush.color = "#f2f2ef";
- rect_stat3.style.fillbrush.style = "solid";
- rect_stat3.style.fillbrush.antialiasing = "true";
- cap_stat3.text = "검체접수(C)";
- cap_cnts3.text = "";
-
- rect_stat7.style.fillbrush.color = "#f2f2ef";
- rect_stat7.style.fillbrush.style = "solid";
- rect_stat7.style.fillbrush.antialiasing = "true";
- cap_stat7.text = "검사중(D)";
- cap_cnts7.text = "";
-
- rect_stat4.style.fillbrush.color = "#f2f2ef";
- rect_stat4.style.fillbrush.style = "solid";
- rect_stat4.style.fillbrush.antialiasing = "true";
- cap_stat4.text = "판독중(E)";
- cap_cnts4.text = "";
-
- rect_stat5.style.fillbrush.color = "#f2f2ef";
- rect_stat5.style.fillbrush.style = "solid";
- rect_stat5.style.fillbrush.antialiasing = "true";
- cap_stat5.text = "최종진단(F)";
- cap_cnts5.text = "";
-
- rect_stat6.style.fillbrush.color = "#f2f2ef";
- rect_stat6.style.fillbrush.style = "solid";
- rect_stat6.style.fillbrush.antialiasing = "true";
- cap_stat6.text = "수정진단(G)";
- cap_cnts6.text = "";
- }
- function lf_exePopupCallSytsRslt(){
- //환자상단정보 표시
- if(utlf_isNull(ds_grid_grd_acptspclist.getColumn(ds_grid_grd_acptspclist.rowposition, "execprcpuniqno"))){
- }else{
- var mngtflag = "S"; //조회구분
- var prcpdd = ds_grid_grd_acptspclist.getColumn(ds_grid_grd_acptspclist.rowposition, "prcpdd"); //처방일자
- var execprcpuniqno = ds_grid_grd_acptspclist.getColumn(ds_grid_grd_acptspclist.rowposition, "execprcpuniqno"); //실시부서유일번호
- var instcd = ds_grid_grd_acptspclist.getColumn(ds_grid_grd_acptspclist.rowposition, "instcd"); //기관코드
- var srchdd = utlf_getCurrentDate(); //기준일자
- var async = true; //비동기여부
- var condparam = mngtflag + '▦' + prcpdd + '▦' + execprcpuniqno + '▦' + instcd + '▦' + srchdd + '▦' + async;
-
- frmf_setParameter('condparam', condparam); // 글로벌변수에 저장
- appf_initPatientInfo();
-
- //통합결과 조회 부분 일단 주석 처리 화면 모두 개발후 수정 예정
- //상단정보를 이용하여 통합결과 조회 조회
- //modal("SMAER00800");
- }
- }
- function lf_exeAcptSpcClick(){
- lf_getSpcDeltStat(ds_grid_grd_acptspclist.rowposition);
- }
- function lf_exeSaveToExcel(){
- if(ds_grid_grd_acptspclist.rowcount > 0){
- grdf_exportExcel(grd_acptspclist, lf_lisGetTitle(this), "see", false, "", "none", false);
- } else {
- sysf_messageBox("저장할 내용이","I004","");
- }
- }
- function lf_exeAcptDetlStat(){
- dsf_createDs("ds_acptspclist"
- , [{col: "instcd"}
- , {col: "pid"}
- , {col: "prcpdd"}
- , {col: "spcbarcdno"}
- , {col: "execprcpuniqno"}]);
-
- var nRow = ds_acptspclist.addRow();
- ds_acptspclist.setColumn(nRow, "instcd", ds_grid_grd_acptspclist.getColumn(ds_grid_grd_acptspclist.rowposition, "instcd"));
- ds_acptspclist.setColumn(nRow, "pid", ds_grid_grd_acptspclist.getColumn(ds_grid_grd_acptspclist.rowposition, "pid"));
- ds_acptspclist.setColumn(nRow, "prcpdd", ds_grid_grd_acptspclist.getColumn(ds_grid_grd_acptspclist.rowposition, "prcpdd"));
- ds_acptspclist.setColumn(nRow, "spcbarcdno", ds_grid_grd_acptspclist.getColumn(ds_grid_grd_acptspclist.rowposition, "spcbarcdno"));
- ds_acptspclist.setColumn(nRow, "execprcpuniqno", ds_grid_grd_acptspclist.getColumn(ds_grid_grd_acptspclist.rowposition, "execprcpuniqno"));
-
- var objArg = new Object();
- objArg.DSParam = ds_acptspclist;
-
- frmf_modal("SPLPP01200","SPLPP01200",objArg);
-
- }
- function SMLPP01100_onload(obj:Form, e:LoadEventInfo){
- //폼 초기화 함수
- frmf_initForm(obj);
-
- lf_exeInitialize();
- }
- function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo){
- lf_getSpcStatList();
- }
- function btn_left_onclick(obj:Button, e:ClickEventInfo){
- grd_acptspclist.setRealColSize(2, 0, false);
- grd_acptspclist.setRealColSize(15, 0, false);
- grd_acptspclist.setRealColSize(16, 0, false);
- grd_acptspclist.setRealColSize(17, 0, false);
- grd_acptspclist.setRealColSize(18, 0, false);
- grd_acptspclist.setRealColSize(19, 0, false);
- grd_acptspclist.setRealColSize(20, 0, false);
- }
- function btn_right_onclick(obj:Button, e:ClickEventInfo){
- grd_acptspclist.setRealColSize(2, 85, false);
- grd_acptspclist.setRealColSize(15, 60, false);
- grd_acptspclist.setRealColSize(16, 70, false);
- grd_acptspclist.setRealColSize(17, 60, false);
- grd_acptspclist.setRealColSize(18, 70, false);
- grd_acptspclist.setRealColSize(19, 60, false);
- grd_acptspclist.setRealColSize(20, 70, false);
- }
- function cap_stat6_onclick(obj:Static, e:ClickEventInfo){
- lf_exePopupCallSytsRslt();
- }
- function cap_stat5_onclick(obj:Static, e:ClickEventInfo){
- lf_exePopupCallSytsRslt();
- }
- function grd_acptspclist_oncellclick(obj:Grid, e:GridClickEventInfo){
- lf_exeAcptSpcClick();
- }
- function btn_excel_onclick(obj:Button, e:ClickEventInfo){
- lf_exeSaveToExcel();
- }
- function pop_right_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo){
- if (ds_grid_grd_acptspclist.rowcount < 0) return;
- var str = pop_right.innerdataset.getColumn(e.index, "levelcolumn");
- // 존재하지 않는 함수 체크
- if (this[str] == undefined) {
- sysf_messageBox("해당 function이", "E014");
- }else{
- // "exist_func"이 함수 타입인지 체크
- if (typeof eval(str) == "function")
- eval(str).call(); // function 인 경우 해당 함수를 call 한다.
- }
- }
- function cap_cnts5_onclick(obj:Static, e:ClickEventInfo){
- lf_exePopupCallSytsRslt();
- }
- function cap_cnts6_onclick(obj:Static, e:ClickEventInfo){
- lf_exePopupCallSytsRslt();
- }
- function grd_acptspclist_onrbuttondown(obj:Grid, e:GridMouseEventInfo){
- ds_grid_grd_acptspclist.rowposition = e.row;
- pop_right.trackPopup(e.screenX+5, e.screenY+5, "right bottom");
- }
- function div_search_edt_refval_onkeydown(obj:Edit, e:KeyEventInfo){
- if(e.keycode == 13){
- if( !utlf_isNull(div_search.cmb_refflagcd.value) ){
- if( div_search.cmb_refflagcd.value == "1" ){
- div_search.edt_refval.setSelect(0, div_search.edt_refval.value.length);
- }
- lf_getSpcStatList();
- } else {
- sysf_messageBox( "검색조건을 선택하세요." );
- return;
- }
- }
- }
- function div_search_cmb_refflagcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
- {
- div_search.edt_refval.value = "";
- switch (div_search.cmb_refflagcd.value) {
- case "0":
- div_search.edt_refval.maxlength = 11:
- div_search.edt_refval.inputtype = "numberandenglish";
- break;
- case "1":
- div_search.edt_refval.maxlength = 9:
- div_search.edt_refval.inputtype = "number";
- break;
- }
-
- div_search.edt_refval.setFocus();
- }
- function div_search_edt_refval_onkillfocus(obj:Edit, e:KillFocusEventInfo)
- {
- if(div_search.cmb_refflagcd.value == "0"){
- obj.style.glow = "";
- obj.value = null;
- }
- }
- function div_search_edt_refval_onsetfocus(obj:Edit, e:SetFocusEventInfo)
- {
- if(div_search.cmb_refflagcd.value == "0"){
- obj.style.glow = "2 blue";
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|