public Object ValidateSametimeServerUpdate(SametimeServers UpdateObject) { Object ReturnValue = ""; try { // if (UpdateObject.Name == null || UpdateObject.Name == "") //{ // return "ER#Please enter the SametimeServers Name"; //} if (UpdateObject.Category == null || UpdateObject.Category == "") { return("ER#Please enter the category of the device"); } // if (UpdateObject.Location == null || UpdateObject.Location == "") // { // return "ER#Please enter the location of the device"; // } // if (UpdateObject.Description == null || UpdateObject.Description == "") // { // return "ER#Please enter a description of the device"; //} if (UpdateObject.ResponseThreshold == null) { return("ER#Please enter a Response Threshold, in milliseconds, over which the device will be considered 'slow'. Validation Failure"); } if (UpdateObject.ScanInterval == null) { return("ER#Please enter a Scan Interval"); } if (UpdateObject.RetryInterval == null) { return("ER#Please enter a Retry Interval"); } // if (UpdateObject.IPAddress == null) // { // return "ER#Please enter the IP Address device, such as '127.0.0.1'"; //} if (UpdateObject.OffHoursScanInterval == null) { return("ER#Please enter an off-hours Scan Interval that is a number, in minutes."); } //if ((UpdateObject.RetryInterval) > (UpdateObject.ScanInterval)) //{ // return "ER#Please enter a Retry Interval that is less than the Scan Interval"; //} } catch (Exception t) { throw t; } return(""); }
public DataTable GetWebSphereTableData(SametimeServers stsObject) { try { return(VSWebDAL.SecurityDAL.ServersDAL.Ins.GetWebSphereTableData(stsObject)); } catch (Exception ex) { throw ex; } }
public DataTable GetIPAddress(SametimeServers StObj) { try { return(VSWebDAL.ConfiguratorDAL.SametimeServersDAL.Ins.GetIPAddress(StObj)); } catch (Exception ex) { throw ex; } }
public SametimeServers getdatawithId(SametimeServers stsObject) { try { return(VSWebDAL.ConfiguratorDAL.SametimeServersDAL.Ins.GetdataSametimeServer(stsObject)); } catch (Exception ex) { throw ex; } }
public Object DeleteSametime(SametimeServers StSobject) { try { return(VSWebDAL.ConfiguratorDAL.SametimeServersDAL.Ins.DeleteSametimeServer(StSobject)); } catch (Exception ex) { throw ex; } }
protected void LotusSametimeGridview_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e) { SametimeServers SametimeObject = new SametimeServers(); SametimeObject.ID = Convert.ToInt32(e.Keys[0]); //delete a Row Object Stsobject = VSWebBL.ConfiguratorBL.SametimeServerBL.Ins.DeleteSametime(SametimeObject); ASPxGridView griedview = (ASPxGridView)sender; griedview.CancelEdit(); e.Cancel = true; filllotussametimegrid(); }
public Object UpdateSametime(SametimeServers StSObject) { Object returnval = ValidateSametimeServerUpdate(StSObject); try { if (returnval.ToString() == "") { return(VSWebDAL.ConfiguratorDAL.SametimeServersDAL.Ins.UpdateSametimeServer(StSObject)); } else { return(returnval); } } catch (Exception ex) { throw ex; } }
public Object insertdetail(SametimeServers insertObject) { //bool insert=false; Object returnVal = ValidateSametimeServerUpdate(insertObject); try { if (returnVal.ToString() == "") { return(VSWebDAL.ConfiguratorDAL.SametimeServersDAL.Ins.insertdetails(insertObject)); } else { return(returnVal); } } catch (Exception ex) { throw ex; } }