Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                // Load Data WareHouse
                Helpers.SetDataSource(cboDataDW, MyBI.Me.GetDW(), "Value", "Text");
                
                WHCode = Get_Param(PageArgs.WHCode);
                if (!string.IsNullOrEmpty(WHCode))
                {
                    cboDataDW.Value = WHCode;
                    gridPortletList.DataSource = MyBI.Me.Get_Widget(WHCode);
                    gridPortletList.DataBind();
                    IQueryable<lsttbl_Widget> widgets = MyBI.Me.Get_Widget(WHCode);
                    foreach (lsttbl_Widget wg in widgets)
                    {
                        if (wg.WidgetType == "gauge")
                        {
                            WidgetGauge wgGauge = wg.JsonObj_Gauge;
                            
                        }
                        else if (wg.WidgetType == "chart")
                        {
                            WidgetChart wgChart = wg.JsonObj_Chart;
                        }
                        else
                        {
                            // grid
                            WidgetGrid wgGrid = wg.JsonObj_Grid;
                        }
                    }
                }
            }

        }
Example #2
0
 public override WidgetBase GetInputSett()
 {
     try
     {
         var ret = new WidgetGauge()
         {
             MinValue         = float.Parse(this.txtMinValue.Text),
             MaxValue         = float.Parse(this.txtMaxValue.Text),
             Width            = int.Parse(this.txtWidth.Text),
             Height           = int.Parse(this.txtHeight.Text),
             Dimension        = Lib.NTE(this.cboDimension.Value),
             Measure          = Lib.NTE(this.cboMeasure.Value),
             FormatString     = this.txtFormatValue.Text,
             ShowCurValueText = this.chkShowCurValueText.Checked
         };
         foreach (wcPropGauge_StateRange ctrl in this.ctrlStateRange.Controls)
         {
             ret.StateRanges.Add(ctrl.Get_StateRange());
         }
         return(ret);
     }
     catch { return(new WidgetGauge()); }
 }
Example #3
0
 public override WidgetBase GetInputSett()
 {
     try
     {
         var ret = new WidgetGauge()
         {
             MinValue = float.Parse(this.txtMinValue.Text),
             MaxValue = float.Parse(this.txtMaxValue.Text),
             Width = int.Parse(this.txtWidth.Text),
             Height = int.Parse(this.txtHeight.Text),
             Dimension = Lib.NTE(this.cboDimension.Value),
             Measure = Lib.NTE(this.cboMeasure.Value),
             FormatString = this.txtFormatValue.Text,
             ShowCurValueText = this.chkShowCurValueText.Checked
         };
         foreach (wcPropGauge_StateRange ctrl in this.ctrlStateRange.Controls)
             ret.StateRanges.Add(ctrl.Get_StateRange());
         return ret;
     }
     catch { return new WidgetGauge(); }
 }