123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPLPR01000" position="absolute 0 0 1155 731" titletext="병리번호목록" oninit="SPLPR01000_oninit" onload="SPLPR01000_onload">
- <Layouts>
- <Layout>
- <Static id="caption1" text="병리번호 목록" class="tit_2" position="absolute 1 69 106 85"/>
- <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 87 1137 93" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_ptnolist" taborder="1" binddataset="ds_grd_ptnolist" useinputpanel="false" position="absolute 0 91 1137 689" autofittype="col" oncelldblclick="grd_ptnolist_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="28"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="80"/>
- <Column size="65"/>
- <Column size="70"/>
- <Column size="46"/>
- <Column size="67"/>
- <Column size="65"/>
- <Column size="48"/>
- <Column size="80"/>
- <Column size="122"/>
- <Column size="65"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="0"/>
- <Column size="64"/>
- <Column size="70"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="기관코드"/>
- <Cell col="1" text="ptno"/>
- <Cell col="2"/>
- <Cell col="3" text="병리번호"/>
- <Cell col="4" text="relptno"/>
- <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="예약일"/>
- </Band>
- <Band id="body">
- <Cell text="bind:instcd"/>
- <Cell col="1" text="bind:ptno" mask="yyyy-mm-dd"/>
- <Cell col="2" text="expr:currow + 1"/>
- <Cell col="3" displaytype="normal" edittype="none" class="text_center" text="bind:ptno"/>
- <Cell col="4" text="bind:relaptno"/>
- <Cell col="5" class="text_center" text="bind:disprelaptno"/>
- <Cell col="6" class="text_center" text="bind:pid"/>
- <Cell col="7" class="text_center" text="bind:patnm"/>
- <Cell col="8" class="text_center" text="bind:prcpgenrflag"/>
- <Cell col="9" class="text_center" text="bind:grosdrnm"/>
- <Cell col="10" class="text_center" text="bind:prcsstat"/>
- <Cell col="11" class="text_center" text="bind:orddeptabbr"/>
- <Cell col="12" displaytype="date" edittype="date" class="text_center" text="bind:prcpdd" mask="yyyy-MM-dd"/>
- <Cell col="13" displaytype="date" edittype="date" class="text_center" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm:ss"/>
- <Cell col="14" class="text_center" text="bind:rsltrgstabbr"/>
- <Cell col="15" displaytype="date" edittype="date" class="text_center" text="bind:acptdd" mask="yyyy-MM-dd"/>
- <Cell col="16" displaytype="date" edittype="date" class="text_center" text="bind:readdd" mask="yyyy-MM-dd"/>
- <Cell col="17" class="text_center" text="bind:readdrid"/>
- <Cell col="18" class="text_center" text="bind:readdrnm"/>
- <Cell col="19" class="text_center" text="bind:apptdate"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Div id="grp_sea" taborder="2" position="absolute 1 1 1138 61" class="div_SA2">
- <Layouts>
- <Layout>
- <Static id="caption2" text="접수일자 :" class="search_name" position="absolute 5 8 76 25" anchor="default"/>
- <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1028 7 1034 51" anchor="default"/>
- <Calendar id="ipt_acptfromdd" taborder="7" class="input_search" position="absolute 79 8 180 27" anchor="default"/>
- <Static id="caption19" text="~" class="search_no_b" position="absolute 188 10 200 27" anchor="default"/>
- <Calendar id="ipt_acpttodd" taborder="8" class="input_search" position="absolute 207 8 308 27" anchor="default" onkeyup="grp_sea_ipt_acpttodd_onkeyup"/>
- <Static id="caption3" text="판독의사 :" class="search_name" position="absolute 655 10 741 27" anchor="default"/>
- <Combo id="cmb_readid" taborder="9" innerdataset="ds_init_cmb_readid" codecolumn="userid" datacolumn="usernm" class="combo_search" position="absolute 746 9 860 28" anchor="default" onitemchanged="grp_sea_cmb_readid_onitemchanged"/>
- <Static id="caption4" text="진행상태 :" class="search_name" position="absolute 5 35 76 52" anchor="default"/>
- <Button id="btn_sea" taborder="10" text="조회" class="btn1" position="absolute 1061 18 1117 40" anchor="default" onclick="grp_sea_btn_sea_onclick"/>
- <Combo id="cbo_ptnocd" taborder="12" innerdataset="ds_init_cbo_ptnocd" codecolumn="ptnocd" datacolumn="ptnonm" position="absolute 502 9 632 28" anchor="default"/>
- <Static id="caption5" text="병리번호 :" class="search_name" position="absolute 412 10 483 27" anchor="default"/>
- <Edit id="ipt_toyear" taborder="13" class="text_center" visible="false" position="absolute 347 8 374 27" anchor="default"/>
- <Edit id="ipt_fromyear" taborder="14" class="text_center" visible="false" position="absolute 314 8 341 27" anchor="default"/>
- <CheckBox id="chk_diagwait" taborder="15" position="absolute 935 8 1010 24" anchor="default" text="진단대기"/>
- <cp_checkboxList id="cp_checkboxList00" taborder="16" scrollbars="none" position="absolute 89 32 716 50" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
- </Layout>
- </Layouts>
- </Div>
- <Button id="btn_cls" taborder="3" text="닫기" class="btn4" position="absolute 1081 701 1137 723" onclick="btn_cls_onclick"/>
- <Button id="btn_excel" taborder="4" text="EXCEL저장" class="btn7" position="absolute 1 699 93 721" onclick="btn_excel_onclick"/>
- </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="relaptno" type="STRING"/>
- <Column id="disprelaptno" type="STRING"/>
- <Column id="pid" type="STRING"/>
- <Column id="patnm" type="STRING"/>
- <Column id="prcpgenrflag" type="STRING"/>
- <Column id="grosdrnm" type="STRING"/>
- <Column id="prcsstat" type="STRING"/>
- <Column id="orddeptabbr" type="STRING"/>
- <Column id="prcpdd" type="STRING"/>
- <Column id="fstrgstdt" type="STRING"/>
- <Column id="rsltrgstabbr" type="STRING"/>
- <Column id="acptdd" type="STRING"/>
- <Column id="readdd" type="STRING"/>
- <Column id="readdrid" type="STRING"/>
- <Column id="readdrnm" type="STRING"/>
- <Column id="apptdate" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_cmb_readid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="usernm" type="STRING"/>
- <Column id="userid" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <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_hospenvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="lendrtnterm" type="STRING" size="256" sumtext="대출반환기간"/>
- <Column id="recvqualmthdcd" type="STRING" size="256" sumtext="수신확인방법"/>
- <Column id="plgydeptcd" type="STRING" size="256" sumtext="병리과"/>
- <Column id="plgyteamcd" type="STRING" size="256" sumtext="병리팀"/>
- <Column id="doctjobgradcd" type="STRING" size="256" sumtext="병리의사직급코드"/>
- <Column id="teamjobgradcd" type="STRING" size="256" sumtext="레지던트직급코드"/>
- <Column id="csteeqmtip" type="STRING" size="256" sumtext="Cassette장비IP"/>
- <Column id="csteeqmtport" type="STRING" size="256" sumtext="Cassette장비Port"/>
- <Column id="slideqmtip" type="STRING" size="256" sumtext="슬라이드장비IP"/>
- <Column id="norcptacptyn" type="STRING" size="256" sumtext="외래미수납접수여부"/>
- <Column id="slidbceqmtip" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP"/>
- <Column id="acptreaddr" type="STRING" size="256" sumtext="접수시점판독의지정여부"/>
- <Column id="slidbceqmtip2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비IP2"/>
- <Column id="slidbceqmtport2" type="STRING" size="256" sumtext="슬라이드(라벨지)장비Port2"/>
- <Column id="repttitl" type="STRING" size="256" sumtext="보고서제목"/>
- <Column id="repttitl2" type="STRING" size="256" sumtext="자문의뢰제목"/>
- <Column id="plgyrecroom1" type="STRING" size="256" sumtext="병리과기록실1"/>
- <Column id="plgyrecroom2" type="STRING" size="256" sumtext="병리과기록실2"/>
- <Column id="ptnoacptflag" type="STRING" size="256" sumtext="병리번호접수구분"/>
- <Column id="autoacptflagcd" type="STRING" size="256" sumtext="자동접수구분"/>
- </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="detlrefcrite" type="STRING" size="256"/>
- <Column id="userdeptcd" type="STRING" size="256"/>
- <Column id="prtndirect" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="prtndirect">1</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_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" sumtext="시스템일자"/>
- <Column id="systm" type="STRING" size="256" sumtext="시스템시간"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_userinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="choi" type="STRING" size="256" sumtext="선택"/>
- <Column id="dutplceinstcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="userid" type="STRING" size="256" sumtext="사용자ID"/>
- <Column id="usernm" type="STRING" size="256" sumtext="사용자명"/>
- <Column id="jobkindcd" type="STRING" size="256" sumtext="직종구분코드"/>
- <Column id="userabbr" type="STRING" size="256" sumtext="직종구분코드"/>
- <Column id="mpphonno" type="STRING" size="256" sumtext="직종구분코드"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_hidden1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="acptfromdd" type="STRING" size="256"/>
- <Column id="acpttodd" type="STRING" size="256"/>
- <Column id="prcsstat" type="STRING" size="256"/>
- <Column id="readdrid" type="STRING" size="256"/>
- <Column id="userdeptcd" type="STRING" size="256"/>
- <Column id="diagwait" type="STRING" size="256"/>
- <Column id="ptno" 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="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"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_L0025" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_sea.ipt_acptfromdd" propid="value" datasetid="ds_hidden1" columnid="acptfromdd"/>
- <BindItem id="item1" compid="grp_sea.ipt_acpttodd" propid="value" datasetid="ds_hidden1" columnid="acpttodd"/>
- <BindItem id="item2" compid="grp_sea.ipt_fromyear" propid="value" datasetid="ds_init" columnid="fromyear"/>
- <BindItem id="item3" compid="grp_sea.ipt_toyear" propid="value" datasetid="ds_init" columnid="toyear"/>
- <BindItem id="item4" compid="grp_sea.cbo_ptnocd" propid="value" datasetid="ds_init" columnid="ptnocode"/>
- <BindItem id="item5" compid="grp_sea.cmb_readid" propid="value" datasetid="ds_hidden1" columnid="readdrid"/>
- <BindItem id="item6" compid="grp_sea.chk_diagwait" propid="value" datasetid="ds_root_hidden" columnid="diagwait"/>
- </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";
- include "lis_commonxp::LPZ001.xjs";
- function SPLPR01000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPLPR01000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_ptnolist);
- fExeInitialize();
- }
- //초기화
- function fExeInitialize()
- {
- var sCurDate = "";
- var iFlagCnt = 0;
- var iMaxRowCnt = 0;
- var sAcptFromDD = "";
-
- //-----------------------
- // 병원환경설정 정보 조회
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}]);
-
- var oParam = {};
- oParam.id = "TRLPZ00101";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetHospitalEnvironmentSetInfo";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_hospenvinfo=hospenvinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00101";
- 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);
- //---------------------------------------------------------
- // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
- lpzfUserDeptCd(ds_hospenvinfo, ds_hidden);
-
- //----------------
- // 시스템일시 조회
- 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_sysdtinfo=sysdtinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00102";
- tranf_submit(oParam);
-
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")}
- ,{col : "userdeptcd", val : ds_hidden.getColumn(0, "userdeptcd")}
- ,{col : "doctjobgradcd", val : ds_hospenvinfo.getColumn(0, "doctjobgradcd")}
- ,{col : "teamjobgradcd", val : ds_hospenvinfo.getColumn(0, "teamjobgradcd")}]);
-
- var oParam = {};
- oParam.id = "TRLPZ00105";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetUserInfoList";
- oParam.inds = "refdata=ds_send";
- oParam.outds = "ds_init_cmb_readid=reflist";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00105";
- tranf_submit(oParam);
-
- //---------------------------
- // 판독의사 목록에 "전체" 추가
- iMaxRowCnt = Number(ds_init_cmb_readid.rowcount) + 1;
- ds_init_cmb_readid.filter("jobkindcd == 1");
- var iMaxRow = ds_init_cmb_readid.insertRow(0);
- ds_init_cmb_readid.setColumn(iMaxRow,"userid","");
- ds_init_cmb_readid.setColumn(iMaxRow,"usernm","전체");
- ds_init_cmb_readid.setColumn(iMaxRow,"jobkindcd","");
-
- dsf_copyDs(ds_userinfolist, ds_init_cmb_readid);
-
- //--------------
- // 진행상태 호출
- var arrParam = [{dsNm: "ds_init_L0025", cdGrpId: "L0025"}];
- appf_getCodeList(arrParam);
-
- // 진행상태에 "전체"구분 추가
- iFlagCnt = ds_init_L0025.rowcount;
- iFlagCnt = Number(iFlagCnt) + 1;
- var iFlagCnt = ds_init_L0025.insertRow(iFlagCnt);
- ds_init_L0025.setColumn(iFlagCnt,"cdid","ZZZZ");
- ds_init_L0025.setColumn(iFlagCnt,"cdnm","전체");
- ds_init_L0025.deleteRow(1);
-
- var sProp = "col=5,cellspacing=4,vcellspacing=0,itemWidth=100,itemHeight=22,overflow='visible'";
- grp_sea.cp_checkboxList00.setInitComp(sProp, ds_init_L0025, "cdid", "cdnm", "fExeStatClick");
-
- var aData = new Array();
- aData[0] = "0";
- var aFalseData = new Array();
- grp_sea.cp_checkboxList00.setData(aData, aFalseData, false);
- // 필요없는 노드는 삭제
- //------------------------------------------------------------
- sCurDate = ds_sysdtinfo.getColumn(0, "sysdd");
- sAcptFromDD = sCurDate.toDate().getAddDate(-5,"D").getDateFormat();
-
- //------------
- // 초기값 설정
- ds_hidden1.setColumn(0, "acptfromdd", sAcptFromDD);
- ds_hidden1.setColumn(0, "acpttodd", ds_sysdtinfo.getColumn(0, "sysdd"));
- ds_hidden1.setColumn(0, "readdrid", "");
- ds_hidden1.setColumn(0, "diagwait", "");
- 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", "");
-
- if( !lpzfGetDoctorCheck(ds_hospenvinfo, sysf_getUserInfo("jobkindcd")))
- {
- //ds_hidden1.setColumn(0, "prcsstat", "0");
- grp_sea.cp_checkboxList00.setData(utlf_transNullToEmpty(ds_init_L0025.lookup("cdid", "0", "cdnm")).split("▨"), "", false);
- }
- else
- {
- ds_hidden1.setColumn(0, "prcsstat", "1");
- }
- }
- function fExePtNoDel()
- {
- var iFindNo = -1;
- // var objParentWin = window.parent;
- //var sPtNo = objParentWin.model.getValue("/root/hidden/ptno");
- var sPtNo = opener.frmf_getParameter("sPtNo");
- //--------------------------------------------------------
- //iFindNo = grd_ptnolist.findRow(sPtNo, 1, 2, false, false);
- iFindNo = ds_grd_ptnolist.findRow("ptno", sPtNo);
- trace("iFindNo = " + iFindNo);
-
- //-----------------
- if (iFindNo > -1)
- {
- //model.removeNodeset("/root/main/acptptno/acptptnolist["+iFindNo+"]");
- ds_grd_ptnolist.deleteSelectedRows(iFindNo);
- }
- }
-
- //접수 병리번호 목록조회 처리 함수
- function fGetAcptPtNoList()
- {
- var re = / /g; // i:1회실행, g:모두실행, gi:전역실행(대소문자 안가림)
- var sPrcsStat = grp_sea.cp_checkboxList00.getData();
- var sTemp = "";
- var sFromDD = ds_hidden1.getColumn(0, "acptfromdd");
- var sToDD = ds_hidden1.getColumn(0, "acpttodd");
-
- // Regular표현식을 사용하여 공백(" ")문자를 ','로 변환
- // sPrcsStat = "'" + sPrcsStat.replace(re, "','") + "'";
- trace("sPrcsStat="+sPrcsStat);
- 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");
-
- dsf_createDsRow("ds_send", [{col : "instcd", val : sysf_getUserInfo("dutplceinstcd")} // 기관코드
- ,{col : "acptfromdd", val : ds_hidden1.getColumn(0, "acptfromdd")} // 접수시작일자
- ,{col : "acpttodd", val : ds_hidden1.getColumn(0, "acpttodd")} // 접수종료일자
- ,{col : "readdrid", val : ds_hidden1.getColumn(0, "readdrid")} // 판독의사ID
- ,{col : "prcsstat", val : sPrcsStat} // 진행상태(0:접수, 2:예비결과, 3:최종결과, 4:수정결과)
- ,{col : "userdeptcd", val : ds_hidden.getColumn(0, "userdeptcd")}
- ,{col : "ptnocode", val : 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 : "diagwait", val : ds_hidden1.getColumn(0, "diagwait")}]); // 진단대기
-
- var oParam = {};
- oParam.id = "TRLPR01001";
- oParam.service = "plgyrsltmngtapp.TestRsltRgst";
- oParam.method = "reqGetAcptPtNoList";
- oParam.inds = "reqdata=ds_send";
- oParam.outds = "ds_grd_ptnolist=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPR01001";
- tranf_submit(oParam);
- }
- //병리번호를 선택할 경우 처리 함수
- function grd_ptnolist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- fExeChoiPtNo();
- }
- function fExeChoiPtNo()
- {
- var objParentWin = this.parent;
- if( utlf_isNull(objParentWin))
- {
- sysf_messageBox("병리번호 팝업창을 호출한 화면이 ", "I004");
- return false;
- }
- opener.ds_hidden1.setColumn(0, "ptno", ds_grd_ptnolist.getColumn(ds_grd_ptnolist.rowposition, "ptno"));
- opener.fGetPatInfo();
- frmf_setFocusOpener(); //부모창 focus
- }
- //닫기 버튼
- function btn_cls_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- //엑셀저장
- function btn_excel_onclick(obj:Button, e:ClickEventInfo)
- {
- grdf_exportExcel(grd_ptnolist, "병리번호목록", "SheetName");
- }
- //조회 버튼
- function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetAcptPtNoList();
- }
- function grp_sea_ipt_acpttodd_onkeyup(obj:Calendar, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetAcptPtNoList();
- }
- }
- function fExeStatClick(chkVal)
- {
- var sFlagCd = String(grp_sea.cp_checkboxList00.getData()).replace(","," ");
- sFlagCd = sFlagCd.split(" ");
- //---------------------------------
- // 최종 선택구분이 전체일 경우 처리
- if(grp_sea.cp_checkboxList00.chk_4.value == "ZZZZ")
- {
- grp_sea.cp_checkboxList00.chk_0.value = "0";
- grp_sea.cp_checkboxList00.chk_1.value = "2";
- grp_sea.cp_checkboxList00.chk_2.value = "3";
- grp_sea.cp_checkboxList00.chk_3.value = "4";
- grp_sea.cp_checkboxList00.chk_4.value = "ZZZZ";
- }
- }]]></Script>
- </Form>
- </FDL>
|