123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SMMRD01900" position="absolute 0 0 615 333" titletext="지표관리(Master관리)" oninit="SMMRD01900_oninit" onload="SMMRD01900_onload">
- <Layouts>
- <Layout>
- <Static text="지표관리(Master관리)" position="absolute 1 33 159 49" id="caption1" class="tit_2"/>
- <Shape position="absolute 1 49 611 55" linetype="horizontal" id="line1" class="line_10"/>
- <Static text="지표관리" position="absolute 0 0 147 26" id="caption6" class="tit_1"/>
- <Shape position="absolute 2 303 612 309" linetype="horizontal" id="line4" class="line_3"/>
- <Button position="absolute 555 309 611 331" id="btn_save" class="btn4" visible="true" text="저장" onclick="btn_save_onclick"/>
- <Button position="absolute 515 27 568 46" id="button1" class="btn2" text="행추가" onclick="button1_onclick"/>
- <Button position="absolute 570 27 612 46" id="button2" class="btn2" text="삭제" onclick="button2_onclick"/>
- <Grid position="absolute 2 54 612 303" id="grd_indxlist" binddataset="ds_main_indxlist_rows" ontextchanged="grd_indxlist_ontextchanged">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="0"/>
- <Column size="25"/>
- <Column size="162"/>
- <Column size="100"/>
- <Column size="100"/>
- <Column size="56"/>
- <Column size="149"/>
- </Columns>
- <Rows>
- <Row size="24" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell text="KPICD"/>
- <Cell col="1" text="기관코드"/>
- <Cell col="2" text="INDXID"/>
- <Cell col="3" text="순번"/>
- <Cell col="4"/>
- <Cell col="5" text="항목명"/>
- <Cell col="6" text="적용시작일"/>
- <Cell col="7" text="적용종료일"/>
- <Cell col="8" text="적용여부"/>
- <Cell col="9" text="비고"/>
- </Band>
- <Band id="body">
- <Cell text="bind:kpicd"/>
- <Cell col="1" text="bind:instcd"/>
- <Cell col="2" text="bind:indxid"/>
- <Cell col="3" displaytype="text" edittype="text" text="bind:dispseq" mask="999"/>
- <Cell col="4" celltype="head"/>
- <Cell col="5" displaytype="text" edittype="text" text="bind:itemnm"/>
- <Cell col="6" displaytype="date" edittype="date" text="bind:indxfromdd"/>
- <Cell col="7" displaytype="date" edittype="date" text="bind:indxtodd"/>
- <Cell col="8" displaytype="checkbox" edittype="checkbox" text="bind:indxappflag"/>
- <Cell col="9" displaytype="text" edittype="text" text="bind:rem"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_main_indxlist_rows" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="kpicd" type="STRING"/>
- <Column id="instcd" type="STRING"/>
- <Column id="indxid" type="STRING"/>
- <Column id="dispseq" type="STRING"/>
- <Column id="itemnm" type="STRING"/>
- <Column id="indxfromdd" type="STRING"/>
- <Column id="indxtodd" type="STRING"/>
- <Column id="indxappflag" type="STRING"/>
- <Column id="rem" type="STRING"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Script type="xscript4.0"><![CDATA[/***************************************************************************************
- * System Name :
- * Job Name :
- * Creator :
- * Make Date : 2015-11-13
- * Description :
- *---------------------------------------------------------------------------------------
- * Modify Date Modifier Modify Description
- *---------------------------------------------------------------------------------------
- * 2015-11-13 Live Converter TF->XP
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- include "com_commonxp::comm_main.xjs";
- include "emr_dschanalyxp::SMMRD01700.xjs";
- function SMMRD01900_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SMMRD01900_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grd_indxlist);
- grdf_setRowTypeIcon(grd_indxlist, 4);
-
- dsf_createDs("ds_temp");
- var oParam = {};
- oParam.id = "TRMRD01900";
- oParam.service = "dschanalyapp.DschAnaly";
- oParam.method = "reqGetIndxList";
- oParam.inds = "req=ds_temp";
- oParam.outds = "ds_main_indxlist_rows=indxlist";
- oParam.transaction = false;
- oParam.async = false;
- //oParam.callback = "cf_TRMRD01900";
- tranf_submit(oParam);
- }
- //행추가
- function button1_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_indxlist_rows.addRow();
-
- var curRow = ds_main_indxlist_rows.rowposition;
-
- ds_main_indxlist_rows.setColumn(curRow, "indxfromdd", utlf_getCurrentDate());
- ds_main_indxlist_rows.setColumn(curRow, "indxtodd", "99991231");
- ds_main_indxlist_rows.setColumn(curRow, "indxappflag", "Y");
- }
- //삭제
- function button2_onclick(obj:Button, e:ClickEventInfo)
- {
- var nRow = ds_main_indxlist_rows.rowposition;
- var iStatus = ds_main_indxlist_rows.getRowType(nRow);
-
- var msg = sysf_messageBox(" ","Q001");
- trace("msg = " + msg);
- if(msg == "6")
- {
- if (iStatus == 1)
- {
- grdf_setStatus(grd_indxlist, "D", [nRow]);
- }
- else if (iStatus == 2)
- {
- ds_main_indxlist_rows.deleteRow(nRow);
- }
- }
- }
- //저장
- function btn_save_onclick(obj:Button, e:ClickEventInfo)
- {
- var itemNmSame = ds_main_indxlist_rows.getColumn(ds_main_indxlist_rows.rowposition, "itemnm");
- if(utlf_isNull(itemNmSame))
- {
- sysf_messageBox("항목명","I003");
- return;
- }
- var oParam = {};
- oParam.id = "TXMRD01900";
- oParam.service = "dschanalyapp.DschAnaly";
- oParam.method = "reqSetIndxList";
- oParam.inds = "req=ds_main_indxlist_rows:A";
- oParam.outds = "ds_main_indxlist_rows=indxlist";
- oParam.transaction = false;
- oParam.async = false;
- //oParam.callback = "cf_TXMRD01900";
- tranf_submit(oParam);
- }
- function grd_indxlist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo)
- {
- var curRow = ds_main_indxlist_rows.rowcount;
- var itemnm = ds_main_indxlist_rows.getColumn(curRow, "itemnm");
- var dispseq = ds_main_indxlist_rows.getColumn(curRow, "dispseq");
- var indxfromdd = ds_main_indxlist_rows.getColumn(curRow, "indxfromdd");
- var indxtodd = ds_main_indxlist_rows.getColumn(curRow, "indxtodd");
- if(e.col == 5)
- {
- if(utlf_isNull(itemnm))
- {
- sysf_messageBox("","I003");
- }
- else
- {
- var bfSameRow = ds_main_indxlist_rows.findRow("itemnm", itemnm);
- var aftSameRow = ds_main_indxlist_rows.findRow("itemnm", itemnm, curRow+1);
- if(bfSameRow != curRow && bfSameRow > 0)
- {
- var msg = messageBox(" . ","Q003");
- if(msg != "6")
- {
- ds_main_indxlist_rows.setColumn(curRow, "itemnm", "");
- }
- }
- if(aftSameRow != curRow && aftSameRow > 0)
- {
- var msg = sysf_messageBox(" . ","Q003");
- if(msg != "6")
- {
- ds_main_indxlist_rows.setColumn(curRow, "itemnm", "");
- }
- }
- }
- }
- if(e.col == 6 && utlf_isNull(indxfromdd))
- {
- sysf_messageBox("","I003");
- }
- if(e.col == 6 && utlf_isNull(indxtodd))
- {
- sysf_messageBox("","I003");
- }
- }
- ]]></Script>
- </Form>
- </FDL>
|