123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMLPC03000" position="absolute 0 0 574 760" titletext="프로토콜관리" oninit="SMLPC03000_oninit" onload="SMLPC03000_onload">
- <Layouts>
- <Layout>
- <Radio position="absolute 96 37 301 62" id="radio1" visible="false" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn">
- <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 position="absolute 3 65 570 755" id="grd_ptnocdlist" taborder="5" binddataset="ds_grd_ptnocdlist" autofittype="col" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="29"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="100"/>
- </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="프로토콜코드"/>
- <Cell col="4" text="프로토콜명"/>
- <Cell col="5" text="삭제구분"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" text="expr:currow + 1"/>
- <Cell col="1" displaytype="normal" edittype="none" text="bind:instcd"/>
- <Cell col="2" displaytype="number" edittype="normal" style="align:left middle;" text="bind:seqno"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:protcd"/>
- <Cell col="4" displaytype="text" edittype="text" text="bind:protnm"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:delflagcd"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 515 40 568 59" id="btn_deleqmt" class="btn2" taborder="7" text="행삭제" anchor="top right" onclick="btn_deleqmt_onclick"/>
- <Button position="absolute 450 40 503 59" id="btn_addeqmt" class="btn2" taborder="6" text="행추가" anchor="top right" onclick="btn_addeqmt_onclick"/>
- <Div id="div1" taborder="8" position="absolute 1 0 570 35" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout width="569" height="35">
- <Button id="btn_sea" taborder="0" text="조회" class="btn1" position="absolute 430 7 486 29" anchor="top right" onclick="div1_btn_sea_onclick"/>
- <Shape id="line14" linetype="vertical" class="line_4" position="absolute 492 5 498 32" anchor="top right"/>
- <Button id="button1" taborder="1" text="저장" class="btn4" position="absolute 505 7 561 29" anchor="top right" onclick="div1_button1_onclick"/>
- <Static id="caption22" text="조회값 :" class="search_name" visible="false" position="absolute 16 9 91 26" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_ptnocdlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING"/>
- <Column id="seqno" type="INT"/>
- <Column id="protcd" type="STRING"/>
- <Column id="protnm" type="STRING"/>
- <Column id="delflagcd" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="searchcd" type="STRING" size="256"/>
- <Column id="hospenv" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_hosoenvinfo" 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>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_senddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <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 SMLPC03000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMLPC03000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_ptnocdlist);
- fExeInitialize();
- }
- //초기화
- function fExeInitialize()
- {
- ds_grd_ptnocdlist.clearData();
- }
- //검체코드 조회 팝업창 처리 함수
- function fGetretrieve()
- {
- dsf_createDsRow("ds_send", [{col: "searchcd", val: ds_init.getColumn(0, "searchcd")}]);
- var oParam = {};
- oParam.id = "TRLPZ00101";
- oParam.service = "plgycomnusemngtapp.BaseInfoCode";
- oParam.method = "reqGetHospitalEnvironmentSetInfo";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_hosoenvinfo=hospenvinfo";
- oParam.async = false;
- //oParam.callback = "cf_TRLPZ00101";
- tranf_submit(oParam);
-
- var oParam = {};
- oParam.id = "TRLPC03001";
- oParam.service = "plgybaseinfomngtapp.HospEnvSet";
- oParam.method = "reqGetretrieve";
- oParam.inds = "refData=ds_send";
- oParam.outds = "ds_grd_ptnocdlist=refrslt";
- oParam.async = false;
- //oParam.callback = "cf_TRLPC03001";
- tranf_submit(oParam);
-
- ds_grd_ptnocdlist.rowposition = -1;
-
- }
- //그리드 한줄추가 처리 Function
- function fExeEqmtAdd()
- {
-
- var addRw = ds_grd_ptnocdlist.addRow(ds_grd_ptnocdlist.rowcount);
- var arrPostion = new Array();
- arrPostion[0] = addRw;
- ds_grd_ptnocdlist.setColumn(ds_grd_ptnocdlist.rowcount-1, "instcd", sysf_getUserInfo("dutplceinstcd"));
-
- grd_ptnocdlist.setCellPos(addRw-1);
- }
- //행삭제
- function fExeEqmtDel()
- {
- ds_grd_ptnocdlist.deleteRow(ds_grd_ptnocdlist.rowposition);
- }
- //저장
- function fExeEqmtInfo()
- {
- var sEqmtCd = "";
- var sSrcNode = ds_grd_ptnocdlist;
-
- if(ds_grd_ptnocdlist.rowcount < -1)
- {
- sysf_messageBox("프로토콜 내역 ", "C001");
- return false;
- }
- else
- {
- for (var iNo=0; iNo < ds_grd_ptnocdlist.rowcount; iNo++)
- {
- if( utlf_isNull(ds_grd_ptnocdlist.getColumn(iNo, "seqno")))
- {
- sysf_messageBox("순번 ", "C002");
- return false;
- }
-
- if( utlf_isNull(ds_grd_ptnocdlist.getColumn(iNo, "protcd")))
- {
- sysf_messageBox("프로토콜코드를 ", "C001");
- return false;
- }
-
- if( utlf_isNull(ds_grd_ptnocdlist.getColumn(iNo, "protnm")))
- {
- sysf_messageBox("프로토콜명을 ", "C001");
- return false;
- }
- }
- }
-
- // var tmp = grdf_getGridUpdateData(grd_ptnocdlist, "insert");
- // grdf_setStatusColumn(tmp, "state");
- // ds_senddata.copyData(tmp, true);
-
- var oParam = {};
- oParam.id = "TXLPC01901";
- oParam.service = "plgybaseinfomngtapp.TissueBankEqmt";
- oParam.method = "reqExeprotocol";
- oParam.inds = "refData=ds_grd_ptnocdlist:U";
- oParam.async = false;
- oParam.typeStr = "state";
- //oParam.callback = "cf_TXLPC01901";
- tranf_submit(oParam);
-
- //재조회
- fGetretrieve();
- }
-
- //조회
- function div1_btn_sea_onclick(obj:Button, e:ClickEventInfo)
- {
- var pos = grd_ptnocdlist.vscrollbar.pos;
- fGetretrieve();
- grd_ptnocdlist.vscrollbar.pos = pos;
- }
- //행추가
- function btn_addeqmt_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeEqmtAdd();
- }
- //행삭제
- function btn_deleqmt_onclick(obj:Button, e:ClickEventInfo)
- {
- fExeEqmtDel();
- }
- //저장
- function div1_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var pos = grd_ptnocdlist.vscrollbar.pos;
- fExeEqmtInfo();
- grd_ptnocdlist.vscrollbar.pos = pos;
- }
- ]]></Script>
- </Form>
- </FDL>
|