public void filllotusScanNowItems() { try { DataTable ScanSettings = new DataTable(); ScanSettings = VSWebBL.ConfiguratorBL.SametimeServerBL.Ins.Scangetdata(); if (ScanSettings.Rows.Count > 0) { Session["ScanSettings"] = ScanSettings; GvScanNowItems.DataSource = ScanSettings; GvScanNowItems.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 StatusListPopupMenu_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e) { //VSPLUS-766, Mukund, 15Sep14 ErrorMsg.InnerHtml = ""; ErrorMsg.Style.Value = "display: none"; string name = ""; //if (Request.QueryString["server"] != "" && Request.QueryString["server"] != null) //{ int focusrow = GvScanNowItems.FocusedRowIndex; if (e.Item.Name == "ScanNow") { if (focusrow > -1) { myRow = GvScanNowItems.GetDataRow(focusrow); Session["myRow"] = myRow; try { Status StatusObj = new Status(); StatusObj.Name = myRow["sname"].ToString(); StatusObj.Type = myRow["svalue"].ToString(); bool bl = false; bl = VSWebBL.SettingBL.SettingsBL.Ins.UpdateScanFirstvalue(StatusObj.Name, StatusObj.Type, VSWeb.Constants.Constants.SysString); filllotusScanNowItems(); } catch (Exception ex) { //myUserName = ""; Log.Entry.Ins.WriteHistoryEntry(DateTime.Now.ToString() + " Exception - " + ex); throw ex; } } else { msgPopupControl.HeaderText = "Scan Now"; msgLabel.Text = "Please select a device in the grid."; msgPopupControl.ShowOnPageLoad = true; YesButton.Visible = false; NOButton.Visible = false; CancelButton.Visible = true; CancelButton.Text = "OK"; } } }