private void FillMobileDevicesGridfromSession() { try { DataTable DCTaskSettingsDataTable = new DataTable(); if ((Session["MobileDevicesDT"] != null)) { DCTaskSettingsDataTable = (DataTable)Session["MobileDevicesDT"]; //VSWebBL.ConfiguratorBL.DominoPropertiesBL.Ins.GetAllData(); if (DCTaskSettingsDataTable.Rows.Count > 0) { NetworkDevicesGridView.DataSource = DCTaskSettingsDataTable; NetworkDevicesGridView.DataBind(); } } DataTable DTThreshold = new DataTable(); if ((Session["MobUserThGrid"] != null)) { DTThreshold = (DataTable)Session["MobUserThGrid"]; //VSWebBL.ConfiguratorBL.DominoPropertiesBL.Ins.GetAllData(); if (DTThreshold.Rows.Count > 0) { MobUserThGrid.DataSource = DTThreshold; MobUserThGrid.DataBind(); } } } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }
protected void MobUserThGrid_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e) { ASPxGridView gridView = (ASPxGridView)sender; String syncTime = e.NewValues["SyncTimeThreshold"].ToString(); String deviceId = e.OldValues["DeviceId"].ToString(); VSWebBL.ConfiguratorBL.MobileUsersBL.Ins.UpdateData(deviceId, Convert.ToInt32(syncTime)); MobUserThGrid.CancelEdit(); e.Cancel = true; FillMobileDevicesGrid(); }
private void FillMobileDevicesGrid() { try { DataTable dt = VSWebBL.ConfiguratorBL.MobileUsersBL.Ins.SetGrid(); NetworkDevicesGridView.DataSource = dt; Session["MobileDevicesDT"] = dt; NetworkDevicesGridView.DataBind(); DataTable dt1 = VSWebBL.ConfiguratorBL.MobileUsersBL.Ins.SetThresholdGrid(); MobUserThGrid.DataSource = dt1; Session["MobUserThGrid"] = dt1; MobUserThGrid.DataBind(); } catch (Exception ex) { //6/27/2014 NS added for VSPLUS-634 Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } finally { } }