123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPIJ03303" position="absolute 0 0 944 590" titletext="DRG 0포인트 주진단코드 기준자료 관리" oninit="SPPIJ03303_oninit" onload="SPPIJ03303_onload">
- <Layouts>
- <Layout>
- <Button position="absolute 885 564 941 586" id="btn_cancel" class="btn4" text="종료" anchor="right bottom" onclick="btn_cancel_onclick"/>
- <Static id="cap_title" text="DRG 0포인트 주진단코드 기준자료 관리" class="tit_1" position="absolute 0 0 264 23"/>
- <Div id="group1" anchor="left top right" taborder="1" onkeydown="grp_biz_group1_onkeydown" class="div_SA" position="absolute 0 24 940 64">
- <Layouts>
- <Layout>
- <Button id="btn_select" taborder="1" text="조회" onclick="grp_biz_group1_btn_select_onclick" class="btn1" position="absolute 875 10 931 32" anchor="top right"/>
- <Shape id="line3" linetype="vertical" class="line_4" position="absolute 857 5 863 38" anchor="top right"/>
- <Edit id="ipt_diagcd" taborder="2" position="absolute 100 10 200 29"/>
- <Static id="caption30" text="진단코드 :" class="search_name" position="absolute 8 11 95 28"/>
- <Edit id="ipt_mdiagcd" taborder="3" position="absolute 330 10 430 29"/>
- <Static id="caption1" text="주진단코드 :" class="search_name" position="absolute 223 11 322 28"/>
- </Layout>
- </Layouts>
- </Div>
- <Static id="cap_judgtrgtman" text="DRG 0포인트 주진단코드 기준자료 리스트" class="tit_2" position="absolute 0 75 290 98"/>
- <Shape id="line1" class="line_10" position="absolute 0 87 940 101" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- <Grid id="grd_zpcdlist" class="datagrid3" taborder="2" binddataset="ds_grd_zpcdlist" useinputpanel="false" autosizemergetype="rowmerge" position="absolute 0 96 941 561" anchor="all">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="61"/>
- <Column size="153"/>
- <Column size="92"/>
- <Column size="223"/>
- <Column size="85"/>
- <Column size="85"/>
- <Column size="60"/>
- <Column size="100"/>
- <Column size="60"/>
- <Column size="100"/>
- </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="수정일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" style="align:center;" text="bind:diagcd" suppress="1" suppressalign="middle" enable="false"/>
- <Cell col="2" style="align:left middle;" text="bind:diagnm" suppress="1" suppressalign="middle"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:mdiagcd" enable="false"/>
- <Cell col="4" style="align:left middle;" text="bind:mdiagnm"/>
- <Cell col="5" displaytype="date" edittype="date" style="align:left middle;" text="bind:fromdd" mask="yyyy-MM-dd"/>
- <Cell col="6" displaytype="date" edittype="date" style="align:left middle;" text="bind:todd" mask="yyyy-MM-dd" enable="false"/>
- <Cell col="7" displaytype="text" edittype="text" style="align:center middle;" text="bind:fstrgstrid"/>
- <Cell col="8" displaytype="date" edittype="date" style="align:center middle;" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm"/>
- <Cell col="9" style="align:center middle;" text="bind:lastupdtrid"/>
- <Cell col="10" displaytype="date" edittype="date" style="align:center middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Button id="btn_excelsave" taborder="3" text="엑셀저장" onclick="grp_biz_btn_excelsave_onclick" class="btn7" position="absolute 717 71 789 90" anchor="top right"/>
- <Button id="button2" taborder="4" text="행종료" onclick="grp_biz_button2_onclick" class="btn2" position="absolute 790 71 843 90" anchor="top right"/>
- <Button id="button3" taborder="5" text="행추가" onclick="grp_biz_button3_onclick" class="btn2" position="absolute 844 71 897 90" anchor="top right"/>
- <Button id="button1" taborder="6" text="저장" onclick="grp_biz_button1_onclick" class="btn5" position="absolute 898 71 940 90" anchor="top right"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_zpcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="diagcd" type="STRING"/>
- <Column id="diagnm" type="STRING"/>
- <Column id="mdiagcd" type="STRING"/>
- <Column id="mdiagnm" type="STRING"/>
- <Column id="fromdd" type="STRING"/>
- <Column id="todd" type="STRING"/>
- <Column id="fstrgstrid" type="STRING"/>
- <Column id="fstrgstdt" type="STRING"/>
- <Column id="lastupdtrid" type="STRING"/>
- <Column id="lastupdtdt" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2016-05-24
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2016-05-24 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "pam_pamcomnxp::PAM001.xjs";
- function SPPIJ03303_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPPIJ03303_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_zpcdlist);
- grdf_setRowTypeIcon(grd_zpcdlist, 0);
-
- fInitialize();
- }
- function fInitialize()
- {
- }
- function fGetDocuList(){
- var chk = true;
- if (utlf_isNull(group1.ipt_diagcd.value) && utlf_isNull(group1.ipt_mdiagcd.value))
- {
- chk = false;
- sysf_messageBox("조회조건 1개이상은", "I003"); //I003=필수입력입니다.
-
- group1.ipt_diagcd.setFocus();
- return false;
- }
-
- dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val: sysf_getUserInfo("dutplceinstcd")}
- , {col:"diagcd", type:"STRING", size:256 ,val :group1.ipt_diagcd.value}
- , {col:"diagnm", type:"STRING", size:256 ,val :group1.ipt_mdiagcd.value}]);
- var oParam = {};
- oParam.id = "TRPIJ03303";
- oParam.service = "bfjudgapp.DRGCdIF";
- oParam.method = "reqGetDrgZeroPointCode";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grd_zpcdlist=rslt";
- oParam.async = false;
- //oParam.callback = "cf_TRPIJ03303";
- tranf_submit(oParam);
-
- }
- function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetDocuList();
- }
- function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
- {
- if (ds_grd_zpcdlist.rowcount > 0)
- {
- grdf_exportExcel(grd_zpcdlist, "exportExcel", "see");
- }
- else
- {
- sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
- }
- }
- function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fSpclGridDeleteRow();
- }
- function fSpclGridDeleteRow()
- {
- var SelectedRows = grdf_getSelectedRows(grd_zpcdlist);
-
- for(var i = 0; i < SelectedRows.length; i++)
- {
- var sel = SelectedRows[i];
-
- var arrRow = new Array();
- arrRow[0] = sel;
- grdf_setStatus(grd_zpcdlist, "D", arrRow);
- }
- }
- function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fSpclGridInsertRow();
- }
- function fSpclGridInsertRow()
- {
- var addRw = ds_grd_zpcdlist.addRow();
- }
- function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grd_zpcdlist, "all");
- if ( updtdata.rowcount == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
-
- for (var i=0; i < ds_grd_zpcdlist.rowcount; i++)
- {
- if (ds_grd_zpcdlist.getRowType(i) == 2 || ds_grd_zpcdlist.getRowType(i) == 4 )
- {
- var diagcd = grd_zpcdlist.getBindCellIndex("body","diagcd");
- var spoint = grd_zpcdlist.getBindCellIndex("body","mdiagcd");
- var fromdd = grd_zpcdlist.getBindCellIndex("body","fromdd");
- var todd = grd_zpcdlist.getBindCellIndex("body","todd");
-
- if(!frmf_chkMdtGrid(grd_zpcdlist,[diagcd,spoint,fromdd,todd],["진단코드","진단코드명","시작일자","종료일자"]))
- {
- return;
- }
- }
- }
-
- if (sysf_messageBox("저장", "S001") == 6)
- {
- var Ids = dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val :sysf_getUserInfo("dutplceinstcd") }
- , {col:"diagcd", type:"STRING", size:256, val :group1.ipt_diagcd.value}
- , {col:"diagnm", type:"STRING", size:256, val :group1.ipt_mdiagcd.value}]);
- var oParam = {};
- oParam.id = "TXPIJ03303";
- oParam.service = "bfjudgapp.DRGCdIF";
- oParam.method = "reqExeDrgZeroPointCode";
- oParam.inds = "srch="+Ids+" req=ds_grd_zpcdlist:U";
- oParam.outds = "ds_grd_zpcdlist=rslt";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ03303";
- tranf_submit(oParam);
- }
- }
- function cf_TXPIJ03301(sSvcId, nErrorCode, sErrorMsg) {
- if(nErrorCode < 0) return;
- sysf_messageBox("저장이","I002");
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- function grp_biz_group1_onkeydown(obj:Div, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetDocuList();
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|