123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPMNE13000" position="absolute 0 0 566 780" titletext="응급실 인계장 미수행 검사처방 기준자료 등록" oninit="SPMNE13000_oninit" onload="SPMNE13000_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 0 560 770" id="group5" scrollbars="autoboth">
- <Layouts>
- <Layout>
- <Static text="응급실 인계장 미수행 검사처방 기준자료 등록" position="absolute 0 0 320 25" id="caption6" class="tit_1"/>
- <Shape position="absolute 0 40 560 46" linetype="horizontal" id="line2" class="line_10"/>
- <Grid position="absolute 0 45 560 770" id="grd_stndtestlist" binddataset="ds_stndtestinfo_stndtestlist" onexpanddown="group5_grd_stndtestlist_onexpanddown" autoenter="select" autosizingtype="row" cellsizingtype="both" extendsizetype="row">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="26"/>
- <Column size="95"/>
- <Column size="345"/>
- <Column size="70"/>
- <Column size="0"/>
- </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="대분류코드"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="expr:saveflag =='Y' ? 'none' : 'text' " text="bind:prcpcd" expandshow="show" enable="false"/>
- <Cell col="2" style="align:left;padding:2 2 2 2;" text="bind:prcpnm" wordwrap="char" autosizerow="limitmin"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:sortseq"/>
- <Cell col="4" text="bind:saveflag"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button position="absolute 430 21 472 40" id="button1" class="btn2" text="추가" onclick="group5_button1_onclick"/>
- <Button position="absolute 474 21 516 40" id="button2" class="btn2" text="삭제" onclick="group5_button2_onclick"/>
- <Button position="absolute 518 21 560 40" id="button6" class="btn5" text="저장" onclick="group5_button6_onclick"/>
- <Button position="absolute 386 21 428 40" id="btn_searDetl" class="btn2" text="조회" onclick="group5_btn_searDetl_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="workdd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_stndtestinfo_stndtestlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
- <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
- <Column id="sortseq" type="STRING" size="256" sumtext="정렬순서"/>
- <Column id="saveflag" type="STRING" size="256" sumtext="저장구분"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_rtnmsg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="rtnmsg" type="STRING" size="256" sumtext="Return Message"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-10-10
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-10-10 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- function SPMNE13000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPMNE13000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_setRowTypeIcon(group5.grd_stndtestlist, 0);
- fSearch();
- }
- function fSearch(){
- ds_send.clearData();
- dsf_makeValue(ds_send, "workdd", "string", utlf_getCurrentDate());
-
- //submit("TRMNE11002");
- var oParam = {};
- oParam.id = "TRMNE11002";
- oParam.service = "ercareapp.ERRgst";
- oParam.method = "reqGetStndTestList";
- oParam.inds = "reqdata=ds_send";
- oParam.outds = "ds_stndtestinfo_stndtestlist=stndtestlist";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function group5_btn_searDetl_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function group5_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- //var addrow = parseInt(grd_stndtestlist.rows);
- ds_stndtestinfo_stndtestlist.addRow();
- }
- function group5_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- var xPathStndTestList = ds_stndtestinfo_stndtestlist;
-
- if (!utlf_isNull(xPathStndTestList.getColumn(ds_stndtestinfo_stndtestlist.rowposition, "saveflag"))) {
- ds_stndtestinfo_stndtestlist.enableevent = false;
- ds_stndtestinfo_stndtestlist.updatecontrol = false;
- ds_stndtestinfo_stndtestlist.setRowType(i, 8);
- ds_stndtestinfo_stndtestlist.updatecontrol = true;
- ds_stndtestinfo_stndtestlist.enableevent = true;
- } else {
- ds_stndtestinfo_stndtestlist.deleteRow(ds_stndtestinfo_stndtestlist.rowposition);
- }
- }
- function group5_button6_onclick(obj:Button, e:ClickEventInfo)
- {
- //var savedata = getGridUpdateData(grd_stndtestlist);
- var updateData = grdf_getGridUpdateData(group5.grd_stndtestlist);
- grdf_setStatusColumn(updateData, "stat");
-
- dsf_createDs("ds_reqsmm");
- ds_reqsmm.copyData(updateData, true);
-
- if (ds_reqsmm.rowcount == 0 ) {
- sysf_messageBox("저장할 데이터가 없습니다.", "E999");
- } else {
- var oParam = {};
- oParam.id = "TXMNE11005";
- oParam.service = "ercareapp.ERRgst";
- oParam.method = "reqExeStndTestInfo";
- oParam.inds = "savedata=ds_reqsmm";
- oParam.outds = "ds_rtnmsg=rtnmsg";
- oParam.async = false;
- oParam.callback = "cf_TXMNE11005";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXMNE11005") > -1) {
- fSearch();
- }
- }
- }
- function cf_TXMNE11005(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function group5_grd_stndtestlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
- {
- var row = ds_stndtestinfo_stndtestlist.rowposition;
- var col = group5.grd_stndtestlist.currentcol;
- if (row >= 0 && col == group5.grd_stndtestlist.getCellPos("prcpcd")) {
- frmf_setParameter("scrnflag", "help");
- frmf_setParameter("rtnpath", "ds_stndtestinfo_stndtestlist");
-
- var objArg = new Object();
- frmf_open("SPMNW11100", "SPMNW11100", objArg, null, 1, 100, 500, null, null, null, null, null, "M"); //yjh : 커밋
-
- //open("SPMNW11100","1","100","500");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|