123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581 |
- <?xml version="1.0" encoding="utf-8"?>
- <FDL version="1.5">
- <TypeDefinition url="..\..\..\default_typedef.xml"/>
- <Form id="SPSTP01200" position="absolute 0 0 1256 805" titletext="진료수익차트" onload="SPSTP01200_onload">
- <Layouts>
- <Layout>
- <Static text="진료수익차트" position="absolute 0 0 140 25" align="align:center middle;" id="caption60" class="tit_1"/>
- <Static text="기간별 수익 현황" position="absolute 0 487 125 503" id="caption1" class="tit_2"/>
- <Shape position="absolute 0 506 1195 512" linetype="horizontal" id="line1" class="line_1" style="strokepen:3 solid #33bbbbff;"/>
- <ActiveX position="absolute 141 83 1195 483" id="obj_chart" progid="{fab9b41c-87d6-474d-ab7e-f07d78f2422e}"/>
- <Grid position="absolute 0 510 1195 765" id="grd_main" binddataset="ds_main_gridlist_gridinfo">
- <Formats>
- <Format id="default"/>
- </Formats>
- </Grid>
- <Shape id="rectangle1" type="rectangle"/>
- <Div id="grp" taborder="4" position="absolute 0 25 1195 66" class="div_SA">
- <Layouts>
- <Layout width="1195" height="41">
- <Shape id="line13" linetype="vertical" position="absolute 1103 7 1109 34" anchor="default"/>
- <Static id="caption21" text="조회기간 :" class="search_name" position="absolute 230 12 302 29" anchor="default"/>
- <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1125 10 1181 32" anchor="default" onclick="grp_btn_search_onclick"/>
- <Static id="caption6" text="~" visible="false" position="absolute 387 13 397 28" anchor="default"/>
- <Calendar id="ipt_fromdd" taborder="2" class="input_search" position="absolute 310 11 380 30" mask="yyyy-mm" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" autoselect="true" autoskip="true"/>
- <Calendar id="ipt_todd" taborder="3" class="input_search" visible="false" position="absolute 404 11 474 30" mask="yyyy-mm" anchor="default"/>
- <Static id="caption2" text="기간구분 :" class="search_name" position="absolute 5 12 77 29" anchor="default"/>
- <Radio id="cmb_srchflag" taborder="4" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 85 11 185 30" anchor="default" onitemchanged="grp_cmb_srchflag_onitemchanged">
- <Dataset id="innerdataset">
- <ColumnInfo>
- <Column id="codecolumn"/>
- <Column id="datacolumn"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="codecolumn">day</Col>
- <Col id="datacolumn">일별</Col>
- </Row>
- <Row>
- <Col id="codecolumn">month</Col>
- <Col id="datacolumn">월별</Col>
- </Row>
- </Rows>
- </Dataset>
- </Radio>
- </Layout>
- </Layouts>
- </Div>
- <Div id="leg" taborder="5" position="absolute 10 165 120 380" style="border:1 solid #808080ff ;">
- <Layouts>
- <Layout width="110" height="215">
- <CheckBox id="checkbox1" taborder="0" position="absolute 27 122 102 137" text="실제 입원" falsevalue="N" truevalue="Y" onclick="CheckBox_onclick"/>
- <CheckBox id="checkbox2" taborder="1" position="absolute 27 97 102 112" text="실제 외래" falsevalue="N" truevalue="Y" onclick="CheckBox_onclick"/>
- <CheckBox id="checkbox3" taborder="2" position="absolute 27 147 102 162" text="실제 합계" falsevalue="N" truevalue="Y" onclick="CheckBox_onclick"/>
- <CheckBox id="checkbox4" taborder="3" position="absolute 27 37 107 52" text="목표 입원" falsevalue="N" truevalue="Y" onclick="CheckBox_onclick"/>
- <CheckBox id="checkbox5" taborder="4" position="absolute 27 12 107 27" text="목표 외래" falsevalue="N" truevalue="Y" onclick="CheckBox_onclick"/>
- <CheckBox id="checkbox6" taborder="5" position="absolute 27 62 107 77" text="목표 합계" falsevalue="N" truevalue="Y" onclick="CheckBox_onclick"/>
- <Shape id="rectangle2" type="rectangle" position="absolute 7 122 22 137" style="fillbrush:solid #ffa500ff true;"/>
- <Shape id="rectangle3" type="rectangle" position="absolute 7 97 22 112" style="fillbrush:solid #008000ff true;"/>
- <Shape id="rectangle4" type="rectangle" position="absolute 7 147 22 162" style="fillbrush:solid #ff0000ff true;"/>
- <Shape id="rectangle5" type="rectangle" position="absolute 7 37 22 52" style="fillbrush:solid #ee82eeff true;"/>
- <Shape id="rectangle6" type="rectangle" position="absolute 7 12 22 27" style="fillbrush:solid #5f9ea0ff true;"/>
- <Shape id="rectangle7" type="rectangle" position="absolute 7 62 22 77" style="fillbrush:solid #0000ffff true;"/>
- <CheckBox id="checkbox7" taborder="6" position="absolute 7 182 97 202" text="누적값 조회" falsevalue="N" truevalue="Y" onclick="CheckBox_onclick"/>
- </Layout>
- </Layouts>
- </Div>
- </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="fromdd" type="STRING" size="256"/>
- <Column id="todd" type="STRING" size="256"/>
- <Column id="srchflag" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="fromdd"/>
- <Col id="todd"/>
- <Col id="srchflag"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
- <ColumnInfo>
- <Column id="accflag" type="STRING" size="256"/>
- <Column id="outflag" type="STRING" size="256"/>
- <Column id="inflag" type="STRING" size="256"/>
- <Column id="totflag" type="STRING" size="256"/>
- <Column id="goal_out" type="STRING" size="256"/>
- <Column id="goal_in" type="STRING" size="256"/>
- <Column id="goal_tot" type="STRING" size="256"/>
- </ColumnInfo>
- <Rows>
- <Row>
- <Col id="accflag"/>
- <Col id="outflag"/>
- <Col id="inflag"/>
- <Col id="totflag"/>
- <Col id="goal_out"/>
- <Col id="goal_in"/>
- <Col id="goal_tot"/>
- </Row>
- </Rows>
- </Dataset>
- <Dataset id="ds_temp_header" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_gridlist_gridinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_main_gridlist_gridinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_chrtlist_chrtinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_acclist_accinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_goallist_goalinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- <Dataset id="ds_temp_goalacclist_goalaccinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
- </Objects>
- <Bind>
- <BindItem id="item0" compid="grp.cmb_srchflag" propid="value" datasetid="ds_send" columnid="srchflag"/>
- <BindItem id="item1" compid="grp.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
- <BindItem id="item2" compid="grp.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
- <BindItem id="item3" compid="leg.checkbox5" propid="value" datasetid="ds_hidden" columnid="goal_out"/>
- <BindItem id="item4" compid="leg.checkbox4" propid="value" datasetid="ds_hidden" columnid="goal_in"/>
- <BindItem id="item5" compid="leg.checkbox6" propid="value" datasetid="ds_hidden" columnid="goal_tot"/>
- <BindItem id="item6" compid="leg.checkbox2" propid="value" datasetid="ds_hidden" columnid="outflag"/>
- <BindItem id="item7" compid="leg.checkbox1" propid="value" datasetid="ds_hidden" columnid="inflag"/>
- <BindItem id="item8" compid="leg.checkbox3" propid="value" datasetid="ds_hidden" columnid="totflag"/>
- <BindItem id="item9" compid="leg.checkbox7" propid="value" datasetid="ds_hidden" columnid="accflag"/>
- </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
- *
- *---------------------------------------------------------------------------------------
- ****************************************************************************************/
- //=======================================================================================
- // Lib Include
- //---------------------------------------------------------------------------------------
- include 'com_commonxp::comm_main.xjs';
- var colArr = new Array();
- var arErrorCode = new HashArray();
- //=======================================================================================
- // Local methods
- //---------------------------------------------------------------------------------------
- /**
- * [fInit description]
- * @return {[type]} [description]
- */
- function fInit() {
- ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
- ds_send.setColumn(0, "todd", utlf_getCurrentDate());
- ds_send.setColumn(0, "srchflag", "day");
- ds_hidden.setColumn(0, "accflag", "Y");
- ds_hidden.setColumn(0, "totflag", "Y");
- ds_hidden.setColumn(0, "goal_tot", "Y");
- // 목표 외래, 입원, 합계
- colArr[0] = "0xa09e5f"; // CadetBlue
- colArr[1] = "0xee82ee"; // 보라
- colArr[2] = "0xff0000"; // 파랑
- // 실제 외래, 입원, 합계
- colArr[3] = "0x008000"; // 녹색
- colArr[4] = "0x00a5ff"; // 주황
- colArr[5] = "0x0000ff"; // 빨강
- fMakeChart(0, 0, 0, 0);
- }
- /**
- * [fMakeChart description]
- * @param {[type]} hMin [description]
- * @param {[type]} hMax [description]
- * @param {[type]} vMin [description]
- * @param {[type]} vMax [description]
- * @return {[type]} [description]
- */
- function fMakeChart(hMin, hMax, vMin, vMax) {
- inff_clearTChart(obj_chart);
- obj_chart.Axis.RemoveAllCustom();
- obj_chart.Header.Visible = false;
- obj_chart.Aspect.View3D = 0; // 3D 설정 :: 0 = 2D | 1 = 3D
- obj_chart.Zoom.Enable = false;
- obj_chart.Scroll.Enable = 2;
- obj_chart.Legend.Visible = false;
- obj_chart.Environment.MouseWheelScroll = false;
- //margin 값 정하기
- obj_chart.Panel.MarginTop = 2;
- obj_chart.Panel.MarginLeft = 10;
- obj_chart.Panel.MarginRight = 2;
- obj_chart.Panel.MarginBottom = 2;
- obj_chart.Panel.BevelWidth = 0; // 주취 테두리
- obj_chart.Panel.Gradient.Visible = true;
- obj_chart.Panel.Gradient.StartColor = 0xffffff;
- obj_chart.Panel.Gradient.EndColor = 0xffffff;
- // 축 설정
- obj_chart.Axis.Bottom.AxisPen.Visible = false;
- obj_chart.Axis.Bottom.Automatic = false; //하단축 자동 설정(기본값)
- obj_chart.Axis.Bottom.Labels.Visible = true; //하단축 Label 설정
- obj_chart.Axis.Bottom.Labels.Multiline = false; //하단축 Label 2줄 설정
-
- obj_chart.Axis.Bottom.Labels.Style = 0;
- obj_chart.Axis.Bottom.Labels.Font.Color = 0x000000;
- obj_chart.Axis.Bottom.Minimum = hMin;
- obj_chart.Axis.Bottom.Maximum = hMax;
-
- obj_chart.Axis.Bottom.Increment = 1; //하단축 증가값 설정
- obj_chart.Axis.Bottom.MinorTickCount = 0; //하단축 눈금 갯수 설정
- obj_chart.Axis.Bottom.TicksInner.Visible = true; //하단축 눈금 안쪽 표시 설정
-
- // 외래(0), 입원(1), 합계(2)
- for (var i = 0; i < 6; i++) {
- var axis = obj_chart.Axis.AddCustom(false);
-
- obj_chart.Axis.get_Custom(i).AxisPen.Visible = false;
-
- obj_chart.Axis.get_Custom(i).Title.Font.Size = 8;
- obj_chart.Axis.get_Custom(i).Title.Font.Bold = false;
- obj_chart.Axis.get_Custom(i).Title.Angle = 0;
- obj_chart.Axis.get_Custom(i).Labels.Visible = i < 1 ? true : false;
- obj_chart.Axis.get_Custom(i).PositionPercent = 0;
- obj_chart.Axis.get_Custom(i).Automatic = false; // 값에 따른 자동 Min-Max 조절
- obj_chart.Axis.get_Custom(i).Maximum = vMax;
- obj_chart.Axis.get_Custom(i).Minimum = vMin;
- obj_chart.Axis.get_Custom(i).Increment = 1; // 세로 눈금
- obj_chart.AddSeries(0); // type 0 is a Line series, type 1 is a Bar series, and type 2 is an HorizBar series
- obj_chart.Series(i).VerticalAxisCustom = axis;
- //라인의 굵기를 정해준다.
- obj_chart.Series(i).Color = parseInt(colArr[i], 16);
- obj_chart.Series(i).asLine.Pointer.Visible = false;
- obj_chart.Series(i).asLine.Pointer.Style = 0;
- obj_chart.Series(i).asLine.Pointer.VerticalSize = 3;
- obj_chart.Series(i).asLine.Pointer.HorizontalSize = 3;
- obj_chart.Series(i).asLine.LinePen.Width = 2;
- obj_chart.Series(i).asLine.LinePen.Style = 0;
- }
- }
- /**
- * [fSetDynamicGrid description]
- * @param {[type]} grd: Grid [description]
- * @param {[type]} ref: Dataset [description]
- * @param {[type]} sid [description]
- * @return {[type]} [description]
- */
- function fSetDynamicGrid(grd: Grid, ref: Dataset, sid) {
- ds_temp_header.clearData();
- ds_temp_gridlist_gridinfo.clearData();
- ds_temp_chrtlist_chrtinfo.clearData();
- ds_temp_acclist_accinfo.clearData();
- ds_temp_goallist_goalinfo.clearData();
- ds_temp_goalacclist_goalaccinfo.clearData();
- var oParam = {};
- oParam.id = sid;
- oParam.service = "stspamapp.StsPam";
- oParam.method = "reqGetPaasMagm_Chart";
- oParam.inds = "req=ds_send";
- oParam.outds = "ds_temp_header=header ds_temp_gridlist_gridinfo=gridinfo ds_temp_chrtlist_chrtinfo=chrtinfo " +
- "ds_temp_acclist_accinfo=accinfo ds_temp_goallist_goalinfo=goalinfo ds_temp_goalacclist_goalaccinfo=goalaccinfo";
- oParam.async = false;
- oParam.callback = "callback";
- tranf_submit(oParam);
- if (arErrorCode.pop(sid) < 0) {
- return;
- }
- if (ds_temp_header.rowcount < 1) {
- return;
- }
-
- ref.copyData(ds_temp_gridlist_gridinfo, false);
- var attrArr = String(ds_temp_header.getColumn(0, 'attr')).split("^");
- var widthArr = String(ds_temp_header.getColumn(0, "width")).split("^");
- var capArr = String(ds_temp_header.getColumn(0, "caption")).split('^');
- var xmlStart = '<Formats><Format id="default">';
- var xmlEnd = '</Format></Formats>';
- var colStart = '<Columns>';
- var colEnd = '</Columns>';
- var rowStart = '<Rows>';
- var rowEnd = '</Rows>';
- var bandHeadStart = '<Band id="head">';
- var bandHeadEnd = '</Band>';
- var bandBodyStart = '<Band id="body">';
- var bandBodyEnd = '</Band>';
- var colBody = '';
- var rowBody = '';
- var bandHeadBody = '';
- var bandBodyBody = '';
- var rowNode = '<Row size="24"';
- var END_NODE = '/>';
- rowBody = rowNode + ' band="head" ' + END_NODE +
- rowNode + END_NODE;
- for (var i = 0; i < attrArr.length; i++) {
- var colNode = '<Column size="' + widthArr[i] + '" ';
- if(i <= 1){
- colNode += 'band="left" ';
- }
-
- rowNode += (i == 0) ? ' band="head" ' : '';
- var bandHeadNode = '';
- if((i % 2) == 0){
- bandHeadNode += '<Cell ';
- if(i != 0){
- bandHeadNode += 'col="' + i + '" ';
- }
- bandHeadNode += 'colspan="2" text="' + capArr[i] + '" '
-
- bandHeadBody += bandHeadNode + END_NODE;
- }
- var bandBodyNode = '<Cell ';
- if(i != 0){
- bandBodyNode += 'col="' + i + '" ';
- }
- else{
- bandBodyNode += 'suppress="1" suppressalign="middle,over" '
- }
- var value = attrArr[i].split(';')[0];
- value = value.replace('ref', 'bind');
- bandBodyNode += 'text="' + value + '" ';
- // bind 되는 column 이 amt 로 끝나면 align 을 right middle 로 설정
- var style = 'style="';
- if(value.indexOf('amt') >= 0){
- style += 'align:right middle;';
- }
- style += 'background:BIND(bgColor);background2:BIND(bgColor);';
- if(i > 0){
- style += 'font:BIND(font);';
- }
- else{
- style += 'font:Dotum,9,bold;';
- }
- style += '" ';
- bandBodyNode += style;
- bandBodyBody += bandBodyNode + END_NODE;
- colBody += colNode + END_NODE;
- }
- var format = xmlStart + colStart + colBody + colEnd + rowStart + rowBody + rowEnd + bandHeadStart + bandHeadBody + bandHeadEnd
- + bandBodyStart + bandBodyBody + bandBodyEnd + xmlEnd;
- grd.formats = format;
- }
- /**
- * [fSetChart description]
- * @return {[type]} [description]
- */
- function fSetChart() {
- var cnt = ds_temp_chrtlist_chrtinfo.rowcount;
- if (cnt < 1) {
- return;
- }
- var min = 0;
- var max = 0;
- var outamt = 0;
- var inamt = 0;
- var totamt = 0;
-
- var result = (ds_hidden.getColumn(0, "accflag") == "Y");
- var chrtpath = result ? ds_temp_acclist_accinfo : ds_temp_chrtlist_chrtinfo;
- var goalpath = result ? ds_temp_goalacclist_goalaccinfo : ds_temp_goallist_goalinfo;
- for (var i = 0; i < cnt; i++) {
- outamt = (chrtpath.getColumn(i, "outamt"));
- inamt = (chrtpath.getColumn(i, "inamt"));
- totamt = (chrtpath.getColumn(i, "totamt"));
- if (ds_hidden.getColumn(0, "outflag") == "Y") {
- min = Number(outamt) < Number(min) ? outamt : min;
- max = Number(outamt) > Number(max) ? outamt : max;
- //trace('[outflag]min: ' + min + ', max: ' + max);
- }
- if (ds_hidden.getColumn(0, "inflag") == "Y") {
- min = Number(inamt) < Number(min) ? inamt : min;
- max = Number(inamt) > Number(max) ? inamt : max;
- }
- if (ds_hidden.getColumn(0, "totflag") == "Y") {
- min = Number(totamt) < Number(min) ? totamt : min;
- max = Number(totamt) > Number(max) ? totamt : max;
- }
- }
- var goalCnt = goalpath.rowcount;
- for (var i = 0; i < goalCnt; i++) {
- outamt = (goalpath.getColumn(i, "outamt"));
- inamt = (goalpath.getColumn(i, "inamt"));
- totamt = (goalpath.getColumn(i, "totamt"));
- if (ds_hidden.getColumn(0, "goal_out") == "Y") {
- min = Number(outamt) < Number(min) ? outamt : min;
- max = Number(outamt) > Number(max) ? outamt : max;
- }
- if (ds_hidden.getColumn(0, "goal_in") == "Y") {
- min = Number(inamt) < Number(min) ? inamt : min;
- max = Number(inamt) > Number(max) ? inamt : max;
- }
- if (ds_hidden.getColumn(0, "goal_tot") == "Y") {
- min = Number(totamt) < Number(min) ? totamt : min;
- max = Number(totamt) > Number(max) ? totamt : max;
- }
- }
- min = Math.round(min * 0.9);
- max = Math.round(max * 1.1);
- fMakeChart(0, cnt, min, max);
- var flag = ds_send.getColumn(0, "srchflag");
- var str = (flag == "day") ? "일" : "월";
- var outAmtGoal = 0;
- var inAmtGoal = 0;
- var totAmtGoal = 0;
- // 그래프 표시
- var lbl = "";
-
- for (var i = 0; i < cnt; i++) {
- lbl = parseInt(ds_temp_chrtlist_chrtinfo.getColumn(i, flag)) + str;
- outAmtGoal = utlf_transNullToEmpty(goalpath.getColumn(i, "outamt"));
- outAmtGoal = (outAmtGoal == '') ? 0 : outAmtGoal;
- inAmtGoal = utlf_transNullToEmpty(goalpath.getColumn(i, "inamt"));
- inAmtGoal = (inAmtGoal == '') ? 0 : inAmtGoal;
- totAmtGoal = utlf_transNullToEmpty(goalpath.getColumn(i, "totamt"));
- totAmtGoal = (totAmtGoal == '') ? 0 : totAmtGoal;
-
- //trace('out goal: ' + outAmtGoal + ', in goal: ' + inAmtGoal + ', tot goal: ' + totAmtGoal);
- if (ds_hidden.getColumn(0, "goal_out") == "Y") {
- obj_chart.Series(0).AddXY(i, outAmtGoal, lbl, obj_chart.Series(0).Color);
- }
- if (ds_hidden.getColumn(0, "goal_in") == "Y") {
- obj_chart.Series(1).AddXY(i, inAmtGoal, lbl, obj_chart.Series(1).Color);
- }
- if (ds_hidden.getColumn(0, "goal_tot") == "Y") {
- obj_chart.Series(2).AddXY(i, totAmtGoal, lbl, obj_chart.Series(2).Color);
- }
- outamt = utlf_transNullToEmpty(chrtpath.getColumn(i, "outamt"));
- outamt = (outamt == '') ? 0 : outamt;
- inamt = utlf_transNullToEmpty(chrtpath.getColumn(i, "inamt"));
- inamt = (inamt == '') ? 0 : inamt;
- totamt = utlf_transNullToEmpty(chrtpath.getColumn(i, "totamt"));
- totamt = (totamt == '') ? 0 : totamt;
-
- //trace('out: ' + outamt + ', in: ' + inamt + ', tot: ' + totamt);
- if (ds_hidden.getColumn(0, "outflag") == "Y") {
- obj_chart.Series(3).AddXY(i, outamt, lbl, obj_chart.Series(3).Color);
- }
- if (ds_hidden.getColumn(0, "inflag") == "Y") {
- obj_chart.Series(4).AddXY(i, inamt, lbl, obj_chart.Series(4).Color);
- }
- if (ds_hidden.getColumn(0, "totflag") == "Y") {
- obj_chart.Series(5).AddXY(i, totamt, lbl, obj_chart.Series(5).Color);
- }
- }
- }
- /**
- * submit 후 호출 될 공통 콜백
- * @param {[type]} sSvcId [description]
- * @param {[type]} nErrorCode [description]
- * @param {[type]} sErrorMsg [description]
- * @return {Function} [description]
- */
- function callback(sSvcId, nErrorCode, sErrorMsg){
- arErrorCode.push(sSvcId, nErrorCode);
- }
- //=======================================================================================
- // Events
- //---------------------------------------------------------------------------------------
- /**
- * onload 이벤트 발생 시 호출
- * @param {[type]} obj:Form [description]
- * @param {[type]} e:LoadEventInfo [description]
- */
- function SPSTP01200_onload(obj: Form, e: LoadEventInfo) {
- frmf_initForm(obj);
- fInit();
- }
- /**
- * 기간구분 라디오 아이템 변경 후 이벤트
- * @param {[type]} obj: Radio [description]
- * @param {[type]} e: ItemChangeEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_cmb_srchflag_onitemchanged(obj: Radio, e: ItemChangeEventInfo) {
- var flag = ds_send.getColumn(0, "srchflag");
- if (flag == "day") {
- grp.ipt_fromdd.dateformat = "yyyy-MM";
- grp.ipt_fromdd.editformat = "yyyy-MM";
- }
- else if (flag == "month") {
- grp.ipt_fromdd.dateformat = "yyyy";
- grp.ipt_fromdd.editformat = "yyyy";
- }
- }
- /**
- * 조회 버튼 클릭 이벤트
- * @param {[type]} obj: Button [description]
- * @param {[type]} e: ClickEventInfo [description]
- * @return {[type]} [description]
- */
- function grp_btn_search_onclick(obj: Button, e: ClickEventInfo) {
- fSetDynamicGrid(grd_main, ds_main_gridlist_gridinfo, "TRSTP01803");
- ds_main_gridlist_gridinfo.addColumn('bgColor', 'string');
- ds_main_gridlist_gridinfo.addColumn('font', 'string');
- ds_main_gridlist_gridinfo.setColumn(2, 'bgColor', '#e6e6ff');
- ds_main_gridlist_gridinfo.setColumn(2, 'font', 'Dotum,9,bold');
- ds_main_gridlist_gridinfo.setColumn(5, 'bgColor', '#ffe6e6');
- ds_main_gridlist_gridinfo.setColumn(5, 'font', 'Dotum,9,bold');
- ds_main_gridlist_gridinfo.setColumn(8, 'bgColor', '#ffcdcd');
- ds_main_gridlist_gridinfo.setColumn(8, 'font', 'Dotum,9,bold');
- fSetChart();
- }
- /**
- * 차트 범례 체크 박스 클릭 이벤트
- * @param {[type]} obj: CheckBox [description]
- * @param {[type]} e: ClickEventInfo [description]
- */
- function CheckBox_onclick(obj: CheckBox, e: ClickEventInfo) {
- fSetChart();
- }
- ]]></Script>
- </Form>
- </FDL>
|