Beispiel #1
0
        protected void lbSave_Click(object sender, EventArgs e)
        {
            Guid ID = Guid.Empty;

            try { ID = new Guid(rcbSaved.SelectedValue); }
            catch { };
            MetricTrac.Bll.MetricFilter.Extend fi = new MetricTrac.Bll.MetricFilter.Extend
            {
                GroupCategoryAspectID = SelectedGroupCategoryAspect,
                DataCollectorID       = SelectedDataCollector,
                FilterOrgLocation     = SelectedOrgLocations,
                FilterPI       = SelectedPerformanceIndicators,
                FilterMetric   = SelectedMetrics,
                MetricFilterID = ID,
                Name           = rcbSaved.Text// check it
            };
            SaveFilter.Filter = fi;

            Telerik.Web.UI.RadAjaxManager am = Telerik.Web.UI.RadAjaxManager.GetCurrent(this.Page);
            string s = "OpenDialogWindow();";

            if (IsDialog)
            {
                s = "setTimeout('" + s + "', 333);";
            }
            am.ResponseScripts.Add(s);
        }
Beispiel #2
0
        private Bll.MetricFilter.Extend CreateFilterFields(Guid FilterID)
        {
            MetricTrac.Control.OrglocationMultipick orgLocationSelect = ((MetricTrac.Control.OrglocationMultipick)mfSaveFilter.FindControl("orgLocationSelect1"));
            MetricTrac.Control.MultiSelectList      multiPI           = ((MetricTrac.Control.MultiSelectList)mfSaveFilter.FindControl("multiPI"));
            MetricTrac.Control.MultiSelectList      multiMetric       = ((MetricTrac.Control.MultiSelectList)mfSaveFilter.FindControl("multiMetric"));

            Bll.MetricFilter.Extend filter = new MetricTrac.Bll.MetricFilter.Extend();
            filter.MetricFilterID    = FilterID;
            filter.FilterOrgLocation = orgLocationSelect.OrgLocationsID;
            filter.FilterPI          = multiPI.SelectedValues;
            filter.FilterMetric      = multiMetric.SelectedValues;
            return(filter);
        }
Beispiel #3
0
        protected void lbExport_Click(object sender, EventArgs e)
        {
            Guid ID = Guid.Empty;

            try { ID = new Guid(rcbSaved.SelectedValue); }
            catch { };
            MetricTrac.Bll.MetricFilter.Extend fi = new MetricTrac.Bll.MetricFilter.Extend
            {
                GroupCategoryAspectID = SelectedGroupCategoryAspect,
                DataCollectorID       = SelectedDataCollector,
                FilterOrgLocation     = SelectedOrgLocations,
                FilterPI       = SelectedPerformanceIndicators,
                FilterMetric   = SelectedMetrics,
                MetricFilterID = ID,
                Name           = rcbSaved.Text// check it
            };
            MetricTrac.home.ExportExcel.Filter = fi;
            Response.Redirect("ExportExcel.aspx");
        }
Beispiel #4
0
        protected void lbSave_Click(object sender, EventArgs e)
        {
            MetricTrac.Bll.MetricFilter.Extend fi = new MetricTrac.Bll.MetricFilter.Extend
            {
                OrgLocationID              = SelectOrgLocationsID.Length > 0 ? SelectOrgLocationsID[0] : null,
                GroupCategoryAspectID      = GCAID,
                PerformanceIndicatorFormID = PIFormID,
                PerformanceIndicatorID     = PIID,
                MetricID        = MetricID,
                DataCollectorID = DataCollectorID,
                OrgLocationsID  = SelectOrgLocationsID
            };
            SaveFilter.Filter = fi;

            Telerik.Web.UI.RadAjaxManager am = Telerik.Web.UI.RadAjaxManager.GetCurrent(this.Page);
            string s = "OpenDialogWindow();";

            if (IsDialog)
            {
                s = "setTimeout('" + s + "', 333);";
            }
            am.ResponseScripts.Add(s);
        }