protected void JqgridUserService_RowAdding(object sender, Trirand.Web.UI.WebControls.JQGridRowAddEventArgs e) { var user = e.RowData["Username"]; var service = e.RowData["Description"]; var ips = e.RowData["Ips"]; var status = e.RowData["StatusLabel"]; var admin = Session["UserSession"].ToString(); if (!(string.IsNullOrEmpty(user) || string.IsNullOrEmpty(status) || string.IsNullOrEmpty(service))) { var userService = new DataModelLib.UserService() { UserId = Convert.ToInt32(user), ServiceId = Convert.ToInt32(service), Ips = ips, Status = Convert.ToInt32(status), UpdateUser = admin }; UserServiceHelper.AddUserService(userService); } }
protected void JqgridUserService_RowAdding(object sender, Trirand.Web.UI.WebControls.JQGridRowAddEventArgs e) { var user = e.RowData["Username"]; var service = e.RowData["Description"]; var ips = e.RowData["Ips"]; var status = e.RowData["StatusLabel"]; var admin = Session["UserSession"].ToString(); if (!(string.IsNullOrEmpty(user) || string.IsNullOrEmpty(status) || string.IsNullOrEmpty(service))) { var userService = new DataModelLib.UserService() { UserId = Convert.ToInt32(user), ServiceId = Convert.ToInt32(service), Ips = ips, Status = Convert.ToInt32(status), UpdateUser = admin }; UserServiceHelper.AddUserService(userService); } }