123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPIJ03302" position="absolute 0 0 951 595" titletext="DRG 진단별 중증도 점수 기준자료 관리" oninit="SPPIJ03302_oninit" onload="SPPIJ03302_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 0 19 942 577" id="grp_biz" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 77 935 548" id="grd_dpcdlist" class="datagrid3" binddataset="ds_grd_dpcdlist" anchor="all" scrollbars="autoboth" cellsizingtype="col" selecttype="multirow">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="66"/>
- <Column size="271"/>
- <Column size="82"/>
- <Column size="78"/>
- <Column size="75"/>
- <Column size="68"/>
- <Column size="151"/>
- <Column size="69"/>
- <Column size="112"/>
- </Columns>
- <Rows>
- <Row size="32" 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" style="align:center middle;" text="등록자"/>
- <Cell col="7" text="등록일자"/>
- <Cell col="8" text="수정자"/>
- <Cell col="9" text="수정일자"/>
- </Band>
- <Band id="body">
- <Cell celltype="head"/>
- <Cell col="1" displaytype="text" edittype="text" style="align:center middle;" text="bind:diagcd" enable="false"/>
- <Cell col="2" style="align:left middle;" text="bind:diagnm"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:spoint" enable="true"/>
- <Cell col="4" displaytype="date" edittype="date" style="align:center middle;" text="bind:fromdd" mask="yyyy-MM-dd"/>
- <Cell col="5" displaytype="date" edittype="date" style="align:center middle;" text="bind:todd" mask="yyyy-MM-dd"/>
- <Cell col="6" displaytype="text" edittype="text" style="align:center middle;" text="bind:fstrgstrid"/>
- <Cell col="7" displaytype="date" edittype="date" style="align:center middle;" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm"/>
- <Cell col="8" style="align:center middle;" text="bind:lastupdtrid"/>
- <Cell col="9" displaytype="date" edittype="date" style="align:center middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="DRG 진단별 중증도 점수 기준자료 리스트" position="absolute 0 56 298 79" id="cap_judgtrgtman" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 68 935 82" linetype="horizontal" id="line1" class="line_10" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
- <Div position="absolute 0 5 940 45" align="align:center top;" id="group1" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout width="940" height="40">
- <Button position="absolute 875 10 931 32" id="btn_select" class="btn1" taborder="32" text="조회" anchor="top right" onclick="grp_biz_group1_btn_select_onclick"/>
- <Shape position="absolute 857 5 863 38" linetype="vertical" id="line3" class="line_4" anchor="default"/>
- <Static text="진단코드 :" position="absolute 8 11 95 28" id="caption30" class="search_name" anchor="default"/>
- <Edit position="absolute 100 10 200 29" id="ipt_diagcd" anchor="default" onkeyup="grp_biz_group1_ipt_diagcd_onkeyup"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 704 52 784 71" id="btn_excelsave" class="btn7" text="엑셀저장" anchor="top right" usebitmapcache="false" onclick="grp_biz_btn_excelsave_onclick"/>
- <Button position="absolute 893 52 935 71" id="button1" class="btn5" text="저장" anchor="top right" usebitmapcache="false" onclick="grp_biz_button1_onclick"/>
- <Button position="absolute 785 52 838 71" id="button2" class="btn2" text="행종료" anchor="top right" usebitmapcache="false" onclick="grp_biz_button2_onclick"/>
- <Button position="absolute 839 52 892 71" id="button3" class="btn2" text="행추가" anchor="top right" usebitmapcache="false" onclick="grp_biz_button3_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 880 569 936 589" id="btn_cancel" class="btn4" text="종료" anchor="right bottom" onclick="btn_cancel_onclick"/>
- <Static id="cap_title" text="DRG 진단별 중증도 점수 기준자료 관리" class="tit_1" position="absolute 0 0 272 23"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_grd_dpcdlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="diagcd" type="STRING"/>
- <Column id="diagnm" type="STRING"/>
- <Column id="spoint" 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>
- <Bind/>
- <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 SPPIJ03302_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPPIJ03302_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grp_biz.grd_dpcdlist);
- grdf_setRowTypeIcon(grp_biz.grd_dpcdlist, 0);
-
- grdf_setToolTipBind(grp_biz.grd_dpcdlist)
-
- grp_biz.group1.btn_select.click();
- }
- function fGetDocuList(){
- dsf_createDsRow("ds_send", [{col:"instcd", type:"STRING", size:256, val: sysf_getUserInfo("dutplceinstcd")}
- , {col:"diagcd", type:"STRING", size:256 ,val :grp_biz.group1.ipt_diagcd.text}]);
- var oParam = {};
- oParam.id = "TRPIJ03302";
- oParam.service = "bfjudgapp.DRGCdIF";
- oParam.method = "reqGetDrgPointCode";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_grd_dpcdlist=rslt";
- oParam.async = false;
- //oParam.callback = "cf_TRPIJ03302";
- tranf_submit(oParam);
-
- }
- function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetDocuList();
- }
- function grp_biz_group1_ipt_diagcd_onkeyup(obj:Edit, e:KeyEventInfo)
- {
- if(e.keycode == 13)
- {
- fGetDocuList();
- }
- }
- function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
- {
- if (ds_grd_dpcdlist.rowcount > 0) {
- grdf_exportExcel(grp_biz.grd_dpcdlist, "exportExcel", "see");
- } else {
- sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
- }
- }
- function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fSpclGridDeleteRow();
- }
- function fSpclGridDeleteRow()
- {
- var SelectedRows = grdf_getSelectedRows(grp_biz.grd_dpcdlist);
-
- for(var i = 0; i < SelectedRows.length; i++)
- {
- var sel = SelectedRows[i];
-
- var arrRow = new Array();
- arrRow[0] = sel;
- grdf_setStatus(grp_biz.grd_dpcdlist, "D", arrRow);
- }
- }
- function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fSpclGridInsertRow();
- }
- function fSpclGridInsertRow()
- {
- var addRw = ds_grd_dpcdlist.addRow();
- }
- function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grp_biz.grd_dpcdlist, "all");
- if ( updtdata.rowcount == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
- // 저장 버튼 예외 처리
- for (var i=0; i < ds_grd_dpcdlist.rowcount; i++)
- {
- if (ds_grd_dpcdlist.getRowType(i) == 2 || ds_grd_dpcdlist.getRowType(i) == 4 )
- {
- var diagcd = grp_biz.grd_dpcdlist.getBindCellIndex("body","diagcd");
- var spoint = grp_biz.grd_dpcdlist.getBindCellIndex("body","spoint");
- var fromdd = grp_biz.grd_dpcdlist.getBindCellIndex("body","fromdd");
- var todd = grp_biz.grd_dpcdlist.getBindCellIndex("body","todd");
- if(!frmf_chkMdtGrid(grp_biz.grd_dpcdlist,[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:"ipt_diagcd", type:"STRING", size:256, val :grp_biz.group1.ipt_diagcd.value}]);
- var oParam = {};
- oParam.id = "TXPIJ03301";
- oParam.service = "bfjudgapp.DRGCdIF";
- oParam.method = "reqExeDrgPointCode";
- oParam.inds = "srch="+Ids+" req=ds_grd_dpcdlist:U";
- oParam.outds = "ds_grd_dpcdlist=rslt";
- oParam.async = false;
- oParam.callback = "cf_TXPIJ03301";
- 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();
- }
- ]]></Script>
- </Form>
- </FDL>
|