123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPID33000" classname="SPPID32200_외국인진료비예상금액산정" inheritanceid="" position="absolute 0 0 950 768" titletext="뇌사기증자진료비관리" onload="SPPID32400_onload">
- <Layouts>
- <Layout>
- <Static id="caption00" text="뇌사기증자 진료비 관리" class="tit_1" position="absolute 0 0 180 25"/>
- <Static id="caption18" text="뇌사기증자 리스트" onclick="caption1_onclick" class="tit_2" position="absolute 0 73 182 92" anchor="left top"/>
- <Shape id="line01" onclick="grp_tstmemo_line5_onclick" class="line_10" position="absolute 0 89 950 95" anchor="left top right"/>
- <Button id="btn_close" taborder="31" text="닫기" class="btn4" position="absolute 893 741 949 763" anchor="right bottom" onclick="btn_close_onclick"/>
- <Grid id="datagrid1" taborder="33" binddataset="ds_main_patlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 94 950 736" anchor="all" onexpandup="datagrid1_onexpandup" oncelldblclick="datagrid1_oncelldblclick" ontextchange="datagrid1_ontextchange">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="110"/>
- <Column size="90"/>
- <Column size="90"/>
- <Column size="50"/>
- <Column size="300"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="90"/>
- </Columns>
- <Rows>
- <Row size="30" 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="적출일" taborder="undefined"/>
- <Cell col="6" text="적출 시간" taborder="undefined"/>
- <Cell col="7" text="수혜자 정보"/>
- <Cell col="8" text="cdgrupid_org"/>
- <Cell col="9" text="cdid_org"/>
- <Cell col="10" text="todd_org"/>
- <Cell col="11" text="완료일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" edittype="expand" text="bind:pid" expandshow="show"/>
- <Cell col="2" displaytype="text" style="padding:5 2 3 2;" text="bind:hngnm"/>
- <Cell col="3" text="bind:rrgstno" mask="expr:utlf_isNull(rrgstno)?'':'######-#******'" maskchar="*"/>
- <Cell col="4" displaytype="date" text="bind:indd"/>
- <Cell col="5" displaytype="date" edittype="expr:getRowType(currow)==2?'date':'none'" style="padding:0 0 0 0;" text="bind:extdd" editautoselect="true" calendardisplay="expr:expr:getRowType(currow)==2?'display':'edit'"/>
- <Cell col="6" displaytype="normal" edittype="masknumber" text="bind:exttime" mask="expr:utlf_isNull(exttime)?'':'##:##'" editautoselect="true"/>
- <Cell col="7" displaytype="text" edittype="text" text="bind:beneficinfo" editautoselect="true"/>
- <Cell col="8" text="bind:cdgrupid_org"/>
- <Cell col="9" text="bind:cdid_org"/>
- <Cell col="10" text="bind:todd_org"/>
- <Cell col="11" displaytype="expr:utlf_isNull(enddd)?'normal':'date'" edittype="date" style="padding:0 0 0 0;" text="bind:enddd" editautoselect="true"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_add" taborder="34" text="행추가" class="btn2" position="absolute 797 67 850 89" anchor="top right" onclick="btn_add_onclick"/>
- <Button id="btn_del" taborder="35" text="행삭제" class="btn2" position="absolute 852 67 905 89" anchor="top right" onclick="btn_del_onclick"/>
- <Button id="btn_save" taborder="36" text="저장" class="btn2" position="absolute 907 67 949 89" anchor="top right" onclick="btn_save_onclick"/>
- <Div id="grp_search" taborder="32" class="div_SA" position="absolute 0 25 950 65">
- <Layouts>
- <Layout width="1195" height="40">
- <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 878 10 934 32" anchor="default" onclick="grp_search_btn_search_onclick"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 862 9 865 32" anchor="default"/>
- <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 8 13 96 30" anchor="default"/>
- <Button id="btn_patsrch" taborder="1" class="icon_search" position="absolute 154 11 174 31" anchor="default" onclick="grp_search_btn_patsrch_onclick"/>
- <Edit id="ipt_hngnm" taborder="2" autoselect="true" class="input_search" position="absolute 175 11 297 31" anchor="default"/>
- <Edit id="input2" taborder="3" autoselect="true" position="absolute 86 11 154 31" anchor="default" onkeyup="grp_search_input2_onkeyup"/>
- <Static id="caption00" text="적출일 : " class="search_name" position="absolute 335 12 402 29" anchor="default"/>
- <Calendar id="cal_srch_fromdd" taborder="4" position="absolute 400 10 508 30" anchor="default"/>
- <Static id="Static00" text="~" position="absolute 512 14 524 26" anchor="default"/>
- <Calendar id="cal_srch_todd" taborder="5" position="absolute 528 10 636 30" anchor="default"/>
- <CheckBox id="chk_noend" taborder="6" text="미완료건만 조회" position="absolute 658 10 774 30" falsevalue="N" truevalue="Y"/>
- </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="pid" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="endyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="hngnm"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="endyn">N</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_patlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_patlist_oncolumnchanged">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="extdd" type="STRING" size="256"/>
- <Column id="hngnm" type="STRING" size="256"/>
- <Column id="rrgstno" type="STRING" size="256"/>
- <Column id="indd" type="STRING" size="256"/>
- <Column id="beneficinfo" type="STRING" size="256"/>
- <Column id="exttime" type="STRING" size="256"/>
- <Column id="enddd" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item2" compid="grp_search.ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
- <BindItem id="item1" compid="grp_search.input2" propid="value" datasetid="ds_send" columnid="pid"/>
- <BindItem id="item0" compid="grp_search.cal_srch_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item3" compid="grp_search.cal_srch_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item4" compid="grp_search.chk_noend" propid="value" datasetid="ds_send" columnid="endyn"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- function fInitialize() {
- grdf_initGrid(datagrid1);
- grdf_setRowTypeIcon(datagrid1, 0);
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-5,"Y").getDateFormat());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- }
- function fSearch() {
- var oParam = {};
- oParam.id = "getDonorCalcInfo";
- oParam.service = "aftjudgapp.InAftJudg";
- oParam.method = "reqGetDonorCalcInfo";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_patlist=item";
- oParam.async = false;
- //oParam.callback = "cf_getDonorCalcInfo";
- tranf_submit(oParam);
- }
- function fSave() {
- dsf_createDs("ds_send_savedata");
- var dsUpdate = grdf_getGridUpdateData(datagrid1, "all");
- grdf_setStatusColumn(dsUpdate, "m");
- ds_send_savedata.copyData(dsUpdate, true);
- var oParam = {};
- oParam.id = "setDonorCalcInfo";
- oParam.service = "aftjudgapp.InAftJudg";
- oParam.method = "reqExeDonorCalcInfo";
- oParam.inds = "req=ds_send_savedata";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function SPPID32400_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- fInitialize();
- }
- function grp_search_btn_patsrch_onclick(obj:Button, e:ClickEventInfo)
- {
- dsf_createDsRow("ds_temp", [{col:"srchcond", val:"2"}
- ,{col:"hngnm", val:ds_send.getColumn(0,"hngnm")}]);
- var objArg = new Object();
- objArg.arg_ds_send = ds_temp;
- frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", 1, 150, 150, "", "", "", "", "", "M");
- ds_send.setColumn(0, "pid", ds_patinfolist.getColumn(0,"pid"));
- ds_send.setColumn(0, "hngnm", ds_patinfolist.getColumn(0,"hngnm"));
- }
- function grp_search_btn_search_onclick(obj:Button, e:ClickEventInfo)
- {
- fSearch();
- }
- function grp_search_input2_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13) {
- obj.updateToDataset();
- fSearch();
- }
- }
- function btn_add_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_patlist.addRow();
- }
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- var selRow = ds_main_patlist.rowposition;
- if(ds_main_patlist.getRowType(selRow) == 2) {
- ds_main_patlist.deleteRow(selRow);
- } else {
- grdf_setStatus(datagrid1, "D", [selRow]);
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
-
- fSearch();
- }
- function datagrid1_onexpandup(obj:Grid, e:GridMouseEventInfo)
- {
- if(e.col == obj.getBindCellIndex("body", "pid") && ds_main_patlist.getRowType(e.row) == 2) {
- dsf_createDsRow("ds_temp", [{col:"srchcond", val:"1"}]);
- var objArg = new Object();
- objArg.arg_ds_send = ds_temp;
- frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", 1, 150, 150, "", "", "", "", "", "M");
-
- dsf_createDsRow("ds_req", [{col:"pid", val:ds_patinfolist.getColumn(0,"pid")}
- ,{col:"dethdd", val:ds_patinfolist.getColumn(0,"dethdd")}]);
- dsf_createDs("ds_temp_result");
- var oParam = {};
- oParam.id = "getLastIndd";
- oParam.service = "aftjudgapp.InAftJudg";
- oParam.method = "reqGetLastIndd";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_temp_result=item";
- oParam.async = false;
- tranf_submit(oParam);
- ds_main_patlist.setColumn(e.row, "pid", ds_patinfolist.getColumn(0,"pid"));
- ds_main_patlist.setColumn(e.row, "hngnm", ds_patinfolist.getColumn(0,"hngnm"));
- ds_main_patlist.setColumn(e.row, "rrgstno", ds_patinfolist.getColumn(0,"rrgstno1")+ds_patinfolist.getColumn(0,"rrgstno2"));
- ds_main_patlist.setColumn(e.row, "indd", ds_temp_result.getColumn(0,"indd"));
- }
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function datagrid1_oncelldblclick(obj:Grid, e:GridClickEventInfo)
- {
- if(e.row < 0) return;
-
- dsf_createDsRow("ds_temp", [{col:"pid", val:ds_main_patlist.getColumn(e.row, "pid")}
- ,{col:"hngnm", val:ds_main_patlist.getColumn(e.row, "hngnm")}
- ,{col:"extdd", val:ds_main_patlist.getColumn(e.row, "extdd")}
- ,{col:"indd", val:ds_main_patlist.getColumn(e.row, "indd")}]);
- var objArg = new Object();
- objArg.arg_ds_send = ds_temp;
- frmf_modal("SPPID33100", "SPPID33100", objArg, "", "", "", "", "", "", "", "", "", "M");
- }
- function datagrid1_ontextchange(obj:Grid, e:GridEditTextChangeEventInfo)
- {
- if( e.col == obj.getBindCellIndex("body","exttime") ){
- grdf_validGridTime(obj, e);
- }
- }
- function ds_main_patlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
- {
- if(e.columnid == "exttime" && e.newvalue.length > 4) {
- obj.setColumn(e.row, e.columnid, e.newvalue.substr(0,4));
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|