123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPIZ00400" position="absolute 0 0 960 530" titletext="상병코드조회" oninit="SPPIZ00400_oninit" onload="SPPIZ00400_onload">
- <Layouts>
- <Layout>
- <Div id="div_search" taborder="2" class="div_SA" position="absolute 1 27 941 69" anchor="left top right">
- <Layouts>
- <Layout>
- <Static id="caption4" text="기준일자 :" class="search_name" position="absolute 8 11 82 34" anchor="default"/>
- <Calendar id="ipt_basedd" taborder="4" class="input_search" position="absolute 85 10 175 33" mask="####-##-##" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
- <Static id="caption2" text="유형 :" class="search_name" position="absolute 200 11 248 34" anchor="default"/>
- <Radio id="rdo_diagkind" taborder="3" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 250 10 365 33" anchor="default" onitemchanged="Div00_rdo_diagkind_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn" size="256"/>
- <Column id="datacolumn" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">1</Col>
- <Col id="datacolumn">ICD10</Col>
- </Row>
- <Row>
- <Col id="codecolumn">2</Col>
- <Col id="datacolumn">확장</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- <Static id="caption5" text="상병코드 :" class="search_name" position="absolute 375 11 449 34" anchor="default"/>
- <Static id="caption3" text="~" position="absolute 735 10 747 30" style="align:center;" anchor="default"/>
- <Edit id="ipt_diagcd" taborder="0" class="input_essential" position="absolute 450 10 550 33" anchor="default" inputmode="upper" onkeyup="div_search_ipt_diagcd_onkeyup" imemode="alpha" inputtype="numberandenglish" autoselect="true"/>
- <Edit id="ipt_diagnm" taborder="2" class="input_essential" position="absolute 635 10 835 33" anchor="default" onkeyup="div_search_ipt_diagnm_onkeyup" imemode="hangul"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 874 10 930 33" anchor="top right" onclick="div_search_btn_search_onclick"/>
- <Static id="caption00" text="상병명 :" class="search_name" position="absolute 574 11 634 34" anchor="default"/>
- </Layout>
- </Layouts>
- </Div>
- <Grid id="grd_diag" taborder="4" useinputpanel="false" position="absolute 0 93 940 492" autofittype="col" anchor="all" binddataset="ds_diag" cellsizingtype="col" oncelldblclick="grd_diag_oncelldblclick">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="30"/>
- <Column size="60"/>
- <Column size="90"/>
- <Column size="265"/>
- <Column size="308"/>
- <Column size="92"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="39"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="ICD10"/>
- <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="특례"/>
- </Band>
- <Band id="body">
- <Cell celltype="head" style="align:center;" expr="currow + 1"/>
- <Cell col="1" style="align:center middle;" text="bind:diagcd"/>
- <Cell col="2" style="align:center middle;" text="bind:termcd"/>
- <Cell col="3" style="align:left middle;padding:0 0 0 5;" text="bind:diagengnm"/>
- <Cell col="4" style="align:left middle;padding:0 0 0 5;" text="bind:diaghngnm"/>
- <Cell col="5" style="align:center middle;" text="bind:spclcd"/>
- <Cell col="6" displaytype="date" style="align:center;" text="bind:diagfromdd" mask="####-##-##" calendardisplaynulltype="nulltext"/>
- <Cell col="7" displaytype="date" style="align:center;" text="bind:diagtodd" mask="####-##-##" calendardisplaynulltype="nulltext"/>
- <Cell col="8" text="bind:estmexptyn"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static id="caption1" text="상병 목록" class="tit_2" position="absolute 1 76 101 96"/>
- <Button id="btn_init" taborder="6" text="초기화" class="btn4" position="absolute 814 494 882 519" anchor="right bottom" onclick="btn_init_onclick"/>
- <Button id="btn_close" taborder="7" text="확인" class="btn4" position="absolute 884 494 940 519" anchor="right bottom" onclick="btn_close_onclick"/>
- <Static id="caption00" text="상병코드조회" class="tit_1" position="absolute 1 0 178 26"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_diag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="diagfromdd" type="STRING" size="256"/>
- <Column id="diagtodd" type="STRING" size="256"/>
- <Column id="diagcd" type="STRING" size="256"/>
- <Column id="termcd" type="STRING" size="256"/>
- <Column id="diaghngnm" type="STRING" size="256"/>
- <Column id="diagengnm" type="STRING" size="256"/>
- <Column id="spclcd" type="STRING" size="256"/>
- <Column id="estmexptyn" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="diagfromdd"/>
- <Col id="diagtodd"/>
- <Col id="diagcd"/>
- <Col id="termcd"/>
- <Col id="diaghngnm"/>
- <Col id="diagengnm"/>
- <Col id="spclcd"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="basedd" type="STRING" size="256"/>
- <Column id="diagcd" type="STRING" size="256"/>
- <Column id="diagnm" type="STRING" size="256"/>
- <Column id="selectedrdodiagkind" type="STRING" size="256"/>
- <Column id="flag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="basedd"/>
- <Col id="diagcd"/>
- <Col id="diagnm"/>
- <Col id="selectedrdodiagkind"/>
- <Col id="flag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="div_search.ipt_basedd" propid="value" datasetid="ds_send" columnid="basedd"/>
- <BindItem id="item1" compid="div_search.rdo_diagkind" propid="value" datasetid="ds_send" columnid="selectedrdodiagkind"/>
- <BindItem id="item2" compid="div_search.ipt_diagcd" propid="value" datasetid="ds_send" columnid="diagcd"/>
- <BindItem id="item3" compid="div_search.ipt_diagnm" propid="value" datasetid="ds_send" columnid="diagnm"/>
- </Bind>
- <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
- var arErrorCode = new HashArray();
- function fCheckOpener() {
- var dsFlag = true;
-
- try{
- ds_send.copyData(arg_ds_diag);
- }
- catch(e){
- dsFlag = false;
- }
-
- if (!dsFlag) {
- ds_send.setColumn(0, "basedd", utlf_getCurrentDate());
-
- try {
- ds_send.setColumn(0, "diagcd", sDiagcd);
- } catch(e) {
- ds_send.setColumn(0, "diagcd", "");
- }
-
- try {
- ds_send.setColumn(0, "diagnm", sDiagnm);
- } catch(e) {
- ds_send.setColumn(0, "diagnm", "");
- }
-
- try {
- ds_send.setColumn(0, "selectedrdodiagkind", sSelectedrdodiagkind);
- } catch(e) {
- ds_send.setColumn(0, "selectedrdodiagkind", "");
- }
-
- try {
- ds_send.setColumn(0, "flag", sSingleFlag);
- } catch(e) {
- ds_send.setColumn(0, "flag", "");
- }
- }
-
- if (ds_send.getColumn(0, "selectedrdodiagkind") == "3") {
- ds_send.setColumn(0, "selectedrdodiagkind", "1");
- }
-
- if (utlf_isNull(ds_send.getColumn(0, "diagcd")) && utlf_isNull(ds_send.getColumn(0, "diagnm"))) {
- return;
- }
-
- var oParam = {};
- oParam.id = "TRPIZ00401";
- oParam.service = "insucomapp.SickAndWounded";
- oParam.method = "reqGetSickAndWounded";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_diag=listdiag";
- oParam.async = false;
- oParam.callback = "cf_TRPIZ00401";
- tranf_submit(oParam);
- }
- function cf_TRPIZ00401(sSvcId, nErrorCode, sErrorMsg) {
- arErrorCode.push(sSvcId, nErrorCode);
- }
- function fInitialize() {
-
- ds_diag.clearData();
- ds_send.clearData();
-
- ds_send.addRow();
- ds_send.setColumn(0, "selectedrdodiagkind", "1");
- ds_send.setColumn(0, "basedd", utlf_getCurrentDate());
- }
- function fSearchDiag() {
-
- ds_diag.clearData();
-
- if (utlf_isNull(ds_send.getColumn(0, "diagcd")) && utlf_isNull(ds_send.getColumn(0, "diagnm"))) {
- sysf_messageBox("상병코드 또는 상병명은", "I003"); // 상병코드 또는 상병명은 필수입력입니다.
- return;
- }
-
- if (ds_send.getColumn(0, "selectedrdodiagkind") != "1" && ds_send.getColumn(0, "selectedrdodiagkind") != "2") {
- sysf_messageBox("유형은", "I003"); // 유형은 필수입력입니다.
- return;
- }
-
- var oParam = {};
- oParam.id = "TRPIZ00401";
- oParam.service = "insucomapp.SickAndWounded";
- oParam.method = "reqGetSickAndWounded";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_diag=listdiag";
- oParam.async = false;
- oParam.callback = "cf_TRPIZ00401";
- tranf_submit(oParam);
- }
- function SPPIZ00400_oninit(obj:Form, e:InitEventInfo) {
- frmf_initForm(obj);
- }
- function SPPIZ00400_onload(obj:Form, e:LoadEventInfo) {
- grdf_initGrid(grd_diag);
- grdf_setToolTipBind(grd_diag);
- if (frmf_checkOpener()) {
- fCheckOpener();
- } else {
- fInitialize();
- }
- }
- function div_search_ipt_diagcd_onkeyup(obj:Edit, e:KeyEventInfo) {
- if (e.keycode == "13") {
- if (div_search.ipt_diagcd.text.length > 0) {
- obj.updateToDataset();
- fSearchDiag();
- }
- }
- }
- function div_search_ipt_diagnm_onkeyup(obj:Edit, e:KeyEventInfo) {
- if (e.keycode == "13") {
- if (div_search.ipt_diagnm.text.length > 1) {
- obj.updateToDataset();
- fSearchDiag();
- }
- }
- }
- function div_search_btn_search_onclick(obj:Button, e:ClickEventInfo) {
- fSearchDiag();
- }
- function grd_diag_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
- if (!frmf_checkOpener()) {
-
- sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004"); // 상위화면이 변경되어 데이터를 전달할 수 없습니다.
-
- } else if (ds_send.getColumn(0, "flag") == "M") {
-
- var rtnDs = new Dataset();
-
- rtnDs.copyData(ds_diag);
- rtnDs.clearData();
- rtnDs.addRow();
-
- rtnDs.copyRow(0, ds_diag, ds_diag.rowposition);
-
- this.close(rtnDs);
-
- } else {
-
- var objArg = new Object();
-
- objArg.sDiagnm = ds_diag.getColumn(e.row, "diaghngnm");
- objArg.sDiagcd = ds_diag.getColumn(e.row, "diagcd");
- objArg.sTermcd = ds_diag.getColumn(e.row, "termcd");
- objArg.sDiagfromdd = ds_diag.getColumn(e.row, "diagfromdd");
- objArg.sDiagtodd = ds_diag.getColumn(e.row, "diagtodd");
- objArg.sDiagengnm = ds_diag.getColumn(e.row, "diagengnm");
- objArg.sSpclcd = ds_diag.getColumn(e.row, "spclcd");
- objArg.sSelectedrdodiagkind = ds_send.getColumn(0, "selectedrdodiagkind");
-
- trace(objArg.sDiagcd);
- trace(objArg.sDiagnm);
- trace(objArg.sTermcd);
- trace(objArg.sDiagfromdd);
- trace(objArg.sSpclcd);
- trace(objArg.sSelectedrdodiagkind);
-
- this.close(objArg);
- }
- }
- function btn_init_onclick(obj:Button, e:ClickEventInfo) {
- fInitialize();
- }
- function btn_close_onclick(obj:Button, e:ClickEventInfo) {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|