123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361 |
- <?xml version="1.0" encoding="utf-8" standalone="no"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMPMC01200" position="absolute 0 0 1211 820" titletext="중증환자관리" onload="SMPMC01200_onload">
- <Layouts>
- <Layout>
- <Div id="group3" scrollbars="autoboth" position="absolute 0 23 1195 775" style="">
- <Layouts>
- <Layout>
- <Div id="group2" scrollbars="autoboth" position="absolute 0 7 1195 751" style="" anchor="default">
- <Layouts>
- <Layout>
- <Div id="group6" position="absolute 0 206 1195 744" style="" anchor="default">
- <Layouts>
- <Layout>
- <Static id="caption46" class="tit_2" position="absolute 5 7 137 24" style="" text="중증도내역 리스트" anchor="default"/>
- <Shape id="line18" class="line_10" linetype="horizontal" position="absolute 0 27 1194 31" style="" anchor="default"/>
- <Button id="btn_addRow" class="btn2" position="absolute 996 4 1049 23" style="" text="행추가" onclick="group3_group2_group6_btn_addRow_onclick" anchor="default"/>
- <Button id="btn_delRow" class="btn5" position="absolute 1052 4 1105 23" style="" text="행삭제" onclick="group3_group2_group6_btn_delRow_onclick" anchor="default"/>
- <Button id="btn_save" class="btn5" position="absolute 1108 4 1194 23" style="" text="중증내역저장" onclick="group3_group2_group6_btn_save_onclick" anchor="default"/>
- <Grid id="grd_serDiag" binddataset="ds_main_serdiagspec_serdiagspeclist" position="absolute 0 30 1194 534" style="" ontextchanged="group3_group2_group6_grd_serDiag_ontextchanged" anchor="default">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="24"/>
- <Column size="80"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="100"/>
- <Column size="65"/>
- <Column size="60"/>
- <Column size="120"/>
- <Column size="84"/>
- <Column size="84"/>
- <Column size="80"/>
- <Column size="80"/>
- <Column size="120"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- </Columns>
- <Rows>
- <Row size="25" band="head"/>
- <Row size="25"/>
- </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="접수시간"/>
- <Cell col="11" text="접수자ID"/>
- <Cell col="12" text="최종수정자ID"/>
- <Cell col="13" text="최종수정일시"/>
- <Cell col="14" text="환자등록번호"/>
- <Cell col="15" text="최초등록자ID"/>
- <Cell col="16" text="최초등록일시"/>
- <Cell col="17" text="일련번호"/>
- </Band>
- <Band id="body">
- <Cell expr="currow + 1"/>
- <Cell col="1" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:insuflag" combodataset="ds_init_P0315list_P0315" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="2" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:suppkind" combodataset="ds_init_P0317list_P0317" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="3" displaytype="date" edittype="date" style="align:left middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="4" displaytype="date" edittype="date" style="align:left middle;" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="5" edittype="text" style="align:left middle;" text="bind:seridiagno"/>
- <Cell col="6" edittype="text" style="align:left middle;" text="bind:apppsnnm"/>
- <Cell col="7" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:rela" combodataset="ds_init_P0016list_P0016" combocodecol="cdid" combodatacol="cdnm"/>
- <Cell col="8" edittype="text" style="align:left middle;" text="bind:remfact"/>
- <Cell col="9" displaytype="date" style="align:left middle;" text="bind:acptdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
- <Cell col="10" displaytype="date" style="align:left middle;" text="bind:acpttm" mask="HH:mm:ss" calendardisplaynulltype="nulltext"/>
- <Cell col="11" style="align:left middle;" text="bind:acptid"/>
- <Cell col="12" style="align:left middle;" text="bind:lastupdtrid"/>
- <Cell col="13" displaytype="date" edittype="none" style="align:left middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
- <Cell col="14" text="bind:pid"/>
- <Cell col="15" text="bind:fstrgstrid"/>
- <Cell col="16" displaytype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
- <Cell col="17" text="bind:seqno"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- </Div>
- <Div id="import1" url="pam_patinfomngtxp::SSPMC00100_인적사항.xfdl" position="absolute 0 -2 1195 206" style="" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- </Layout>
- </Layouts>
- </Div>
- <Div id="group4" scrollbars="autoboth" position="absolute 0 771 1195 798" style="">
- <Layouts>
- <Layout>
- <Button id="btn_copyRow0" class="btn4" position="absolute 1126 5 1194 27" style="" text="초기화" onclick="group4_btn_copyRow0_onclick" anchor="default"/>
- <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 1194 3" style="" anchor="default"/>
- <Shape id="line20" class="line_6" linetype="horizontal" position="absolute 0 0 1194 3" style="" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="caption4" class="patient_text_black" position="absolute 862 4 1192 20"/>
- <Static id="caption6" text="중증도환자관리" class="tit_1" position="absolute 0 0 140 25"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send_updatedata_datalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="result" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="result"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_P0315list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init_P0016list_P0016" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"/>
- <Col id="cdid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_serdiagspec_serdiagspeclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="pid" type="STRING" size="256"/>
- <Column id="insuflag" type="STRING" size="256"/>
- <Column id="suppkind" type="STRING" size="256"/>
- <Column id="fromdd" type="STRING" size="256"/>
- <Column id="instcd" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="pid"/>
- <Col id="insuflag"/>
- <Col id="suppkind"/>
- <Col id="fromdd"/>
- <Col id="instcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_P0317list_P0317" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"/>
- <Col id="cdid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_init_P0315list_P0315" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="cdnm" type="STRING" size="256"/>
- <Column id="cdid" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="cdnm"/>
- <Col id="cdid"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo>
- <Column id="tmp" type="STRING" size="256"/>
- </ColumnInfo>
- </Dataset>
- <Dataset id="ds_init_P0016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_init_P0317list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
- <ColumnInfo/>
- </Dataset>
- <Dataset id="ds_hidden_tmp_serdiagspeclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind/>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
- include "com_basiccodexp::ZBC001.xjs"
- var arErrorCode = new HashArray();
- function SMPMC01200_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- grdf_initGrid(group3.group2.group6.grd_serDiag);
- var arrParam = [
- {dsNm: "ds_init_P0317list_P0317", cdGrpId: "P0317"},
- {dsNm: "ds_init_P0016list_P0016", cdGrpId: "P0016"},
- {dsNm: "ds_init_P0315list_P0315", cdGrpId: "P0315"}
- ];
-
- appf_getCodeList(arrParam);
- //2007.7.23 - 이동식 추가
- //다른곳에서 화면 호출 조회
- var pid = ds_source.getColumn(0, "pid");
- if (pid != "") {
- group3.group2.import1.group5.ipt_pid.text = pid;
- fSearchPatInfo();
- }
- }
- //중증도 내역 검색
- function fSearch() {
- if (ds_main.getColumn(0, "popupendflag") == "ok") {
- var pid = String(ds_main_patinfo_patinfolist.getColumn(0, "pid"));
- if (pid.length <= 0) {
- sysf_messageBox("환자번호가 정확이 입력되지", "E007");
- return false;
- }
- ds_send.setColumn(0, "pid", pid);
- var oParam = {};
- oParam.id = "TRPMC01201";
- oParam.service = "patinfomngtapp.SerDiagPat";
- oParam.method = "reqGetSerDiagSpec";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_serdiagspec_serdiagspeclist=serdiagspeclist";
- oParam.async = false;
- tranf_submit(oParam);
- var rowCnt = ds_main_serdiagspec_serdiagspeclist.rowcount;
- if (rowCnt < 1) {
- fAddRow();
- }
- }
- }
- //중증도내역 테이블에 한 행을 추가하고 숨긴 컬럼 값을 세팅한다.
- function fAddRow() {
- var pid = String(ds_main_patinfo_patinfolist.getColumn(0, "pid"));
- if (pid.length >= 0) {
- group3.group2.group6.grd_serDiag.addRow();
- var bottom = ds_main_serdiagspec_serdiagspeclist.addRow();
- ds_main_serdiagspec_serdiagspeclist.setColumn(bottom, "pid", pid);
- var curDate = utlf_getCurrentDate();
- ds_main_serdiagspec_serdiagspeclist.setColumn(bottom, "fromdd", curDate);
- ds_main_serdiagspec_serdiagspeclist.setColumn(bottom, "todd", utlf_getDateTime(curDate.toDate().getAddDate(5, "Y"), "D"));
- return true;
- }
- else {
- sysf_messageBox("환자번호가 정확이 입력되지", "E007");
- return false;
- }
- }
- function group3_group2_group6_btn_addRow_onclick(obj: Button, e: ClickEventInfo) {
- fAddRow();
- }
- function group3_group2_group6_btn_delRow_onclick(obj: Button, e: ClickEventInfo) {
- if (sysf_messageBox("선택된 행의 중증도내역을", "Q001") != 6) return;
- var cur_row = ds_main_serdiagspec_serdiagspeclist.rowposition;
- if (cur_row >= 0) {
- //디비에 저장되지 않은 데이타는 그냥 삭제한다.
- if (ds_main_serdiagspec_serdiagspeclist.getRowType(cur_row) == Dataset.ROWTYPE_INSERT) {
- ds_main_serdiagspec_serdiagspeclist.deleterRow(cur_row);
- return;
- }
- ds_main_serdiagspec_serdiagspeclist.setRowType(cur_row, Dataset.ROWTYPE_DELETE);
- var update = grdf_getGridUpdateData(group3.group2.group6.grd_serDiag, "delete");
- ds_send_updatedata_datalist.copyData(update);
- var oParam = {};
- oParam.id = "TXPMC01202";
- oParam.service = "patinfomngtapp.SerDiagPat";
- oParam.method = "reqExeSerDiagSpec";
- oParam.inds = "req=ds_send_updatedata_datalist";
- oParam.outds = "ds_main_serdiagspec_serdiagspeclist=serdiagspeclist";
- oParam.async = false;
- oParam.callback = "cf_TXPMC01202";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMC01202") > -1) {
- ds_main_serdiagspec_serdiagspeclist.deleteRow(cur_row);
- }
- else {
- ds_send_updatedata_datalist.setRowType(cur_row, Dataset.ROWTYPE_NORMAL);
- }
- }
- }
- function cf_TXPMC01202(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function group3_group2_group6_btn_save_onclick(obj: Button, e: ClickEventInfo) {
- var datasetAll = grdf_getGridUpdateData(group3.group2.group6.grd_serDiag, "all");
- ds_send_updatedata_datalist.copyData(datasetAll);
- var oParam = {};
- oParam.id = "TXPMC01202";
- oParam.service = "patinfomngtapp.SerDiagPat";
- oParam.method = "reqExeSerDiagSpec";
- oParam.inds = "req=ds_send_updatedata_datalist";
- oParam.outds = "ds_hidden_tmp_serdiagspeclist=serdiagspeclist";
- oParam.async = false;
- oParam.callback = "cf_TXPMC01202";
- tranf_submit(oParam);
- if (arErrorCode.pop("TXPMC01202") > -1) {
- ds_main_serdiagspec_serdiagspeclist.copyData(ds_hidden_tmp);
- }
- }
- function group3_group2_group6_grd_serDiag_ontextchanged(obj: Grid, e: GridEditTextChangedEventInfo) {
- var cur_row = ds_main_serdiagspec_serdiagspeclist.rowposition;
- if (cur_row >= 0) {
- if (ds_main_serdiagspec_serdiagspeclist.getColumn(0, "rela") == '1') { // 본인 이라면
- ds_main_serdiagspec_serdiagspeclist.setColumn(0, "apppsnnm", ds_main_patinfo_patinfolist.getColumn(0, "hngnm"));
- }
- }
- }
- function group4_btn_copyRow0_onclick(obj: Button, e: ClickEventInfo) {
- ds_main_serdiagspec_serdiagspeclist.clearData();
- ds_main_patinfo_patinfolist.clearData();
- ds_main_patinfo_patinfolist.addRow();
- group3.group2.import1.group5.ipt_pid.setFocus();
- }]]></Script>
- </Form>
- </FDL>
|