123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMB04001" classname="SPPID32200_외국인진료비예상금액산정" inheritanceid="" position="absolute 0 0 880 768" titletext="방문객 DUR 예외 관리" onload="SPPID32400_onload">
- <Layouts>
- <Layout>
- <Static id="caption00" text="방문객 DUR 예외 관리" 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 879 95" anchor="left top right"/>
- <Button id="btn_close" taborder="31" text="닫기" class="btn4" position="absolute 823 741 879 763" anchor="right bottom" onclick="btn_close_onclick"/>
- <Grid id="datagrid1" taborder="33" binddataset="ds_main_nondurlist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 94 879 736" anchor="all" onexpandup="datagrid1_onexpandup" oncelldblclick="datagrid1_oncelldblclick" onkeyup="datagrid1_onkeyup">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="120"/>
- <Column size="120"/>
- <Column size="80"/>
- <Column size="100"/>
- <Column size="80"/>
- <Column size="300"/>
- <Column size="0"/>
- <Column size="0"/>
- <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="주민번호"/>
- <Cell col="5" text="여권번호"/>
- <Cell col="6" text="외국인구분"/>
- <Cell col="7" text="등록일자"/>
- <Cell col="8" text="등록자"/>
- <Cell col="9" text="비고"/>
- <Cell col="10" text="cdgrupid_org"/>
- <Cell col="11" text="cdid_org"/>
- <Cell col="12" text="todd_org"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" edittype="expr:expr:getRowType(currow)==2?'normal':'none'" editfilter="upper,number,nosign" text="bind:issueno" editimemode="alpha" editautoselect="true"/>
- <Cell col="2" displaytype="text" style="padding:5 2 3 2;" text="bind:name"/>
- <Cell col="3" displaytype="combo" text="bind:gubun" combodataset="ds_init_gubun" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="4" text="bind:rrgstno" mask="expr:utlf_isNull(rrgstno)?'':'######-#******'" maskchar="*"/>
- <Cell col="5" text="bind:psptno"/>
- <Cell col="6" text="bind:forgeryn"/>
- <Cell col="7" displaytype="date" style="padding:0 0 0 0;" text="bind:rgstdd" editautoselect="true" calendardisplay="expr:expr:getRowType(currow)==2?'display':'edit'"/>
- <Cell col="8" text="bind:rgstid"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:bigo" editautoselect="true"/>
- <Cell col="10" text="bind:cdgrupid_org"/>
- <Cell col="11" text="bind:cdid_org"/>
- <Cell col="12" text="bind:todd_org"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_add" taborder="34" text="행추가" class="btn2" position="absolute 727 67 780 89" anchor="top right" onclick="btn_add_onclick"/>
- <Button id="btn_del" taborder="35" text="행삭제" class="btn2" position="absolute 782 67 835 89" anchor="top right" onclick="btn_del_onclick"/>
- <Button id="btn_save" taborder="36" text="저장" class="btn2" position="absolute 837 67 879 89" anchor="top right" onclick="btn_save_onclick"/>
- <Div id="grp_search" taborder="32" class="div_SA" position="absolute 0 25 879 65">
- <Layouts>
- <Layout width="1195" height="40">
- <Button id="btn_search" taborder="0" text="조회" class="btn1" position="absolute 808 10 864 32" anchor="default" onclick="grp_search_btn_search_onclick"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 792 9 795 32" anchor="default"/>
- <Static id="caption1" text="이름 :" class="search_name" position="absolute 8 13 64 30" anchor="default"/>
- <Edit id="input2" taborder="3" autoselect="true" position="absolute 65 11 157 31" anchor="default" onkeyup="grp_search_input2_onkeyup" imemode="hangul"/>
- <Static id="caption00" text="등록일자 : " class="search_name" position="absolute 215 12 298 29"/>
- <Calendar id="cal_srch_fromdd" taborder="4" position="absolute 296 10 404 30"/>
- <Static id="Static00" text="~" position="absolute 408 14 420 26"/>
- <Calendar id="cal_srch_todd" taborder="5" position="absolute 424 10 532 30"/>
- </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="issueno" type="STRING" size="256"/>
- <Column id="name" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="issueno"/>
- <Col id="name"/>
- <Col id="fromdd"/>
- <Col id="todd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_nondurlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256"/>
- <Column id="issueno" type="STRING" size="256"/>
- <Column id="gubun" type="STRING" size="256"/>
- <Column id="name" type="STRING" size="256"/>
- <Column id="rrgstno" type="STRING" size="256"/>
- <Column id="forgeryn" type="STRING" size="256"/>
- <Column id="psptno" type="STRING" size="256"/>
- <Column id="rgstdd" type="STRING" size="256"/>
- <Column id="rgstid" type="STRING" size="256"/>
- <Column id="bigo" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_gubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="cdid" type="STRING" size="256"/>
- <Column id="cdnm" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdid">1</Col>
- <Col id="cdnm">환자</Col>
- </Row>
- <Row>
- <Col id="cdid">2</Col>
- <Col id="cdnm">직원</Col>
- </Row>
- <Row>
- <Col id="cdid">3</Col>
- <Col id="cdnm">외부직원</Col>
- </Row>
- <Row>
- <Col id="cdid">4</Col>
- <Col id="cdnm">보호자</Col>
- </Row>
- <Row>
- <Col id="cdid">5</Col>
- <Col id="cdnm">기타</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_visitorinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item1" compid="grp_search.input2" propid="value" datasetid="ds_send" columnid="name"/>
- <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"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- function fInitialize() {
- grdf_setRowTypeIcon(datagrid1, 0);
-
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate().toDate().getAddDate(-1,"Y").getDateFormat());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
-
- try{
- if(arg_ds_pmohvist.rowcount > 0) {
- var nRow = ds_main_nondurlist.addRow();
- ds_main_nondurlist.copyRow(nRow, arg_ds_pmohvist, 0);
- ds_main_nondurlist.setColumn(nRow, "rgstdd", utlf_getCurrentDate());
- ds_main_nondurlist.setColumn(nRow, "rgstid", sysf_getUserId());
- } else fSearch();
- }catch(e){}
- }
- function fSearch() {
- var oParam = {};
- oParam.id = "getNonDurList";
- oParam.service = "pambaseinfomngtapp.Etc";
- oParam.method = "reqGetNonDurList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_nondurlist=item";
- oParam.async = false;
- 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 = "exeNonDurList";
- oParam.service = "pambaseinfomngtapp.Etc";
- oParam.method = "reqExeNonDurList";
- oParam.inds = "req=ds_send_savedata";
- oParam.async = false;
- tranf_submit(oParam);
- }
- function fSetPmohvistList(issueno) {
- if(utlf_isNull(issueno)) return;
- if(issueno.substr(0,1) == "Z") { //방문객 마스터조회
- fGetVisitorInfo(issueno, "Z");
- } else if(issueno.substr(0,1) == "T") { //직원정보조회
- issueno = issueno.substr(1,5);
- fGetVisitorInfo(issueno, "T");
- } else if(issueno.length == 12) { //칠곡직원정보조회 T 없이 12자리
- issueno = issueno.substr(0,5);
- fGetVisitorInfo(issueno, "T");
- } else { //pam.pmcmptbs && 직원정보조회
- if(issueno.substr(0,1) == "P") {
- issueno = String(Number(issueno.substr(1, 9)));
- }
-
- fGetVisitorInfo(issueno, "E");
-
- if(ds_temp_visitorinfo.rowcount > 1) {
- dsf_createDs("ds_temp_visitorinfo2");
- dsf_copyColInfo(ds_temp_visitorinfo2, ds_temp_visitorinfo);
- var cRow = -1;
- if(sysf_messageBox("직원 입니까?","Q") == 6) {
- cRow = ds_temp_visitorinfo.findRow("gubun", "2");
- } else {
- cRow = ds_temp_visitorinfo.findRow("gubun", "1");
- }
- ds_temp_visitorinfo2.copyRow(ds_temp_visitorinfo2.addRow(), ds_temp_visitorinfo, cRow);
- ds_temp_visitorinfo.clear();
- ds_temp_visitorinfo.copyData(ds_temp_visitorinfo2);
- dsf_deleteDs("ds_temp_visitorinfo2");
- }
- }
-
- ds_main_nondurlist.copyRow(ds_main_nondurlist.rowposition, ds_temp_visitorinfo, 0);
- }
- function fGetVisitorInfo(issueno, gubun) {
- ds_temp_visitorinfo.clearData();
- dsf_createDsRow("ds_req", [{col: "issueno", val: issueno}
- , {col: "gubun", val : gubun}]);
- var oParam = {};
- oParam.id = "getVisitorInfo";
- oParam.service = "pambaseinfomngtapp.Etc";
- oParam.method = "reqGetVisitorInfo";
- oParam.inds = "req=ds_req";
- oParam.outds = "ds_temp_visitorinfo=item";
- oParam.force = true;
- oParam.async = false;
- tranf_submit(oParam);
- }
- function SPPID32400_onload(obj:Form, e:LoadEventInfo)
- {
- frmf_initForm(obj);
-
- fInitialize();
- }
- 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)
- {
- var nRow = ds_main_nondurlist.addRow();
- ds_main_nondurlist.setColumn(nRow, "rgstdd", utlf_getCurrentDate());
- ds_main_nondurlist.setColumn(nRow, "rgstid", sysf_getUserId());
- }
- function btn_del_onclick(obj:Button, e:ClickEventInfo)
- {
- var selRow = ds_main_nondurlist.rowposition;
- if(ds_main_nondurlist.getRowType(selRow) == 2) {
- ds_main_nondurlist.deleteRow(selRow);
- } else {
- grdf_setStatus(datagrid1, "D", [selRow]);
- }
- }
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- fSave();
-
- fSearch();
- }
- function datagrid1_onkeyup(obj:Grid, e:KeyEventInfo)
- {
- if(e.keycode == 13 && obj.getCellPos() == 1) {
- fSetPmohvistList(ds_main_nondurlist.getColumn(ds_main_nondurlist.rowposition, "issueno"));
- }
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }]]></Script>
- </Form>
- </FDL>
|