123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPPID26000" position="absolute 0 0 960 639" titletext="임신주수별 신생아 체중 기준관리" oninit="SPPID26000_oninit" onload="SPPID26000_onload">
- <Layouts>
- <Layout>
- <Div position="absolute 1 18 943 610" id="grp_biz" scrollbars="autoboth" anchor="all">
- <Layouts>
- <Layout>
- <Grid position="absolute 0 78 940 592" id="grd_clbsmast" class="datagrid2" binddataset="ds_main_babyweightlist_babyweight" anchor="all" autofittype="col" selecttype="multirow" onrbuttondown="grp_biz_grd_clbsmast_onrbuttondown" cellsizingtype="col">
- <Formats>
- <Format id="default">
- <Columns>
- <Column size="25"/>
- <Column size="53"/>
- <Column size="47"/>
- <Column size="75"/>
- <Column size="75"/>
- <Column size="92"/>
- <Column size="91"/>
- <Column size="80"/>
- <Column size="133"/>
- <Column size="81"/>
- <Column size="125"/>
- </Columns>
- <Rows>
- <Row size="29" band="head"/>
- <Row size="24"/>
- </Rows>
- <Band id="head">
- <Cell/>
- <Cell col="1" text="기준년"/>
- <Cell col="2" text="임신 주수"/>
- <Cell col="3" text="신생아체중 10분위"/>
- <Cell col="4" text="신생아체중 90분위"/>
- <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" edittype="normal" style="align:center middle;" text="bind:baseyear"/>
- <Cell col="2" displaytype="number" edittype="normal" style="align:center middle;" text="bind:prgntweek" enable="false"/>
- <Cell col="3" displaytype="number" edittype="normal" style="align:center middle;" text="bind:minweight"/>
- <Cell col="4" displaytype="number" edittype="normal" style="align:center middle;" text="bind:maxweight"/>
- <Cell col="5" displaytype="date" edittype="text" style="align:center middle;" text="bind:fromdd" mask="yyyy-MM-dd"/>
- <Cell col="6" displaytype="date" edittype="text" style="align:center middle;" text="bind:todd" mask="yyyy-MM-dd"/>
- <Cell col="7" displaytype="normal" edittype="none" text="bind:fstrgstrid"/>
- <Cell col="8" displaytype="date" edittype="none" style="align:left middle;" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm"/>
- <Cell col="9" displaytype="normal" style="align:center middle;" text="bind:lastupdtrid"/>
- <Cell col="10" displaytype="date" style="align:left middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm"/>
- </Band>
- </Format>
- </Formats>
- </Grid>
- <Static text="임신주수별 신생아 체중 기준조회" position="absolute 0 57 234 80" id="cap_judgtrgtman" class="tit_2" anchor="default"/>
- <Shape position="absolute 0 73 940 79" linetype="horizontal" id="line1" class="line_1" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
- <Div position="absolute 0 6 940 46" align="align:center top;" id="group1" class="div_SA" anchor="left top right">
- <Layouts>
- <Layout>
- <Static text="기준일자 :" position="absolute 8 11 95 28" id="caption30" class="search_name" anchor="default"/>
- <Calendar position="absolute 95 10 185 29" align="align:center middle;" id="ipt_orddd" class="input_search" taborder="1" mask="yyyy-mm-dd" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
- <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="top right"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 709 54 789 73" id="btn_excelsave" class="btn7" text="엑셀저장" anchor="top right" onclick="grp_biz_btn_excelsave_onclick"/>
- <Button position="absolute 898 54 940 73" id="button1" class="btn5" text="저장" anchor="top right" onclick="grp_biz_button1_onclick"/>
- <Button position="absolute 790 54 843 73" id="button2" class="btn2" text="행삭제" anchor="top right" onclick="grp_biz_button2_onclick"/>
- <Button position="absolute 844 54 897 73" id="button3" class="btn2" text="행추가" anchor="top right" onclick="grp_biz_button3_onclick"/>
- <Button position="absolute 617 54 708 73" id="button4" class="btn7" text="엑셀업로드" anchor="top right" onclick="grp_biz_button4_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- <Button position="absolute 885 611 941 633" id="btn_cancel" class="btn4" text="종료" onclick="btn_cancel_onclick" anchor="right bottom"/>
- <Static id="cap_title" text="임신주수별 신생아 체중 기준관리" class="tit_1" position="absolute 1 0 249 23"/>
- <PopupMenu id="pmn_menu1" position="absolute 980 112 1033 162" innerdataset="@ds_menu" levelcolumn="level" idcolumn="func" captioncolumn="label" onmenuclick="pmn_menu1_onmenuclick" onmouseleave="pmn_menu1_onmouseleave"/>
- </Layout>
- </Layouts>
- <Objects>
- <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="orddd" type="STRING" size="256"/>
- <Column id="babyweightlist" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row/>
- </Rows>
- </Dataset>
- <Dataset id="ds_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="label" type="STRING" size="256"/>
- <Column id="func" type="STRING" size="256"/>
- <Column id="level" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="label">행추가</Col>
- <Col id="func">fSpclGridInsertRow</Col>
- </Row>
- <Row>
- <Col id="label">-</Col>
- <Col id="func">-</Col>
- </Row>
- <Row>
- <Col id="label">행삭제</Col>
- <Col id="func">fSpclGridDeleteRow</Col>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_main_babyweightlist_babyweight" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
- <Column id="baseyear" type="STRING" size="256" sumtext="기준년"/>
- <Column id="prgntweek" type="STRING" size="256" sumtext="임신주수"/>
- <Column id="minweight" type="STRING" size="256" sumtext="10분위"/>
- <Column id="maxweight" type="STRING" size="256" sumtext="90분위"/>
- <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
- <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
- <Column id="fstrgstrid" type="STRING" size="256" sumtext="등록자"/>
- <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일"/>
- <Column id="lastupdtrid" type="STRING" size="256" sumtext="수정자"/>
- <Column id="lastupdtdt" type="STRING" size="256" sumtext="수정일"/>
- </ColumnInfo>
- </Dataset>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp_biz.group1.ipt_orddd" propid="value" datasetid="ds_send" columnid="orddd"/>
- </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";
- include "pam_pamcomnxp::PAM.xjs";
- var gToday = new Date();
- var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
- var gBasemonth = gToday.getDateFormat("MM");
- var gBaseday = gToday.getDateFormat("DD");
- var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
- var gCurrentym = gBaseyear + gBasemonth;
- function SPPID26000_oninit(obj:Form, e:InitEventInfo)
- {
- frmf_initForm(obj);
- }
- function SPPID26000_onload(obj:Form, e:LoadEventInfo)
- {
- grdf_initGrid(grp_biz.grd_clbsmast);
- grdf_setRowTypeIcon(grp_biz.grd_clbsmast, 0);
-
- fInitialize();
- }
- function fInitialize()
- {
- ds_send.setColumn(0, "orddd", utlf_getCurrentDate());
-
- grp_biz_group1_btn_select_onclick();
- }
- function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
- {
- fGetDocuList();
- }
- function fGetDocuList()
- {
- var chk = true;
-
- if(utlf_isNull(ds_send.getColumn(0, "orddd")))
- {
- chk = false;
- sysf_messageBox("기준년월은", "I003");
- grp_biz.group1.ipt_orddd.setFocus();
- }
- if (chk == true)
- {
- var oParam = {};
- oParam.id = "TRPID26001";
- oParam.service = "aftjudgapp.InAftJudg";
- oParam.method = "reqGetNewBornBabyWeightList";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_main_babyweightlist_babyweight=babyweight";
- oParam.async = false;
- //oParam.callback = "cf_TRPID26001";
- tranf_submit(oParam);
-
- }
- }
- function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
- {
- if(ds_main_babyweightlist_babyweight.rowcount == 0)
- {
- sysf_messageBox("엑셀저장할 내역이", "I004");
- }
- else
- {
- grdf_exportExcel(grp_biz.grd_clbsmast, "", "see");
- }
- }
- function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo)
- {
- fSpclGridDeleteRow();
- }
- function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
- {
- fSpclGridInsertRow();
- }
- function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
- {
- var updtdata = grdf_getGridUpdateData(grp_biz.grd_clbsmast);
-
- if (updtdata == 0)
- {
- sysf_messageBox("변경된 데이터가","I004");
- return;
- }
-
- for (var i = 0; i < ds_main_babyweightlist_babyweight.rowcount; i++)
- {
- if(ds_main_babyweightlist_babyweight.getRowType(i) == 2 || ds_main_babyweightlist_babyweight.getRowType(i) == 8)
- {
- if(utlf_isNull(ds_main_babyweightlist_babyweight.getColumn(i, "baseyear")))
- {
- sysf_messageBox("기준년","I003");
- return;
- }
-
- if(utlf_isNull(ds_main_babyweightlist_babyweight.getColumn(i, "prgntweek")))
- {
- sysf_messageBox("임신주수","I003");
- return;
- }
-
- if(utlf_isNull(ds_main_babyweightlist_babyweight.getColumn(i, "fromdd")))
- {
- sysf_messageBox("시작일자","I003");
- return;
- }
- if(utlf_isNull(ds_main_babyweightlist_babyweight.getColumn(i, "todd")))
- {
- sysf_messageBox("종료일자는","I003");
- return;
- }
- }
- }
-
- if (sysf_messageBox("저장", "S001") == 6)
- {
- var oParam = {};
- oParam.id = "TXPID26001";
- oParam.service = "aftjudgapp.InAftJudg";
- oParam.method = "reqExeNewBornBabyWeightList";
- oParam.inds = "req=ds_main_babyweightlist_babyweight:U";
- oParam.outds = "ds_main_babyweightlist_babyweight=babyweight";
- oParam.async = false;
- oParam.callback = "cf_TXPID26001";
- tranf_submit(oParam);
- }
- }
- function cf_TXPID26001(sSvcId, nErrorCode, sErrorMsg)
- {
- if(nErrorCode < 0)
- {
- return;
- }
- else
- {
- sysf_messageBox("저장이","I002");
-
- grp_biz_group1_btn_select_onclick();
- }
- }
- function fSpclGridDeleteRow()
- {
- var rows = grdf_getSelectedRows(grp_biz.grd_clbsmast);
-
- for (var i = 0; i < rows.length; i++)
- {
- var sel = rows[i];
- var arrRow = new Array();
- arrRow[0] = sel;
- grdf_setStatus(grp_biz.grd_clbsmast, "D", arrRow);
- }
- }
- function fSpclGridInsertRow()
- {
- var row = ds_main_babyweightlist_babyweight.addRow();
- }
- function pmn_menu1_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
- {
- eval(e.id +"();");
- }
- function pmn_menu1_onmouseleave(obj:PopupMenu, e:MenuMouseEventInfo)
- {
- obj.closePopup();
- }
- function grp_biz_grd_clbsmast_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
- {
- pmn_menu1.trackPopup(e.screenX,e.screenY);
- }
- function grp_biz_button4_onclick(obj:Button, e:ClickEventInfo)
- {
- ds_main_babyweightlist_babyweight.clearData();
-
- grdf_ImportExcel("ds_main_babyweightlist_babyweight", 1, grp_biz.grd_clbsmast);
-
- var rows = ds_main_babyweightlist_babyweight.rowcount;
-
- for (var i = 0; i < rows; i++)
- {
- var arrRow = new Array();
- arrRow[0] = i;
- grdf_setStatus(grp_biz.grd_clbsmast, "I", arrRow);
- }
- }
- function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
- {
- this.close();
- }
- ]]></Script>
- </Form>
- </FDL>
|