private void DeleteItem(string argStaffID) { log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { if (!string.IsNullOrEmpty(argStaffID)) { AdminBLL ws = new AdminBLL(); GetStaffShift _req = new GetStaffShift(); _req.StaffID = argStaffID.ToString(); ws.DeleteShiftStaff(_req); HttpContext.Current.Items.Add(ContextKeys.CTX_COMPLETE, "DELETE"); Server.Transfer("AlertUpdateComplete.aspx"); } } catch (System.Threading.ThreadAbortException) { } catch (Exception ex) { logger.Info(ex.Message); } }
public void DeleteShiftStaff(GetStaffShift argObj) { try { AdminDAL ws = new AdminDAL(); ws.DeleteShiftStaff(argObj); } catch (Exception ex) { } }
public GetUserDataResponse GetShiftKey(GetStaffShift objGetShiftRequest) { try { AdminDAL objAdminDAL = new AdminDAL(); GetUserDataResponse ret = new GetUserDataResponse(); List <User_Info> lst = objAdminDAL.GetStaffShiftKey(objGetShiftRequest); ret.UserID = lst; return(ret); } catch (Exception ex) { throw ex; } }
private void BindGrid(int iBTID) { log4net.ILog logger = log4net.LogManager.GetLogger("File"); try { AdminBLL ws = new AdminBLL(); GetStaffShift _req = new GetStaffShift(); _req.ShiftID = iBTID.ToString(); GetUserDataResponse _resp1 = ws.GetShiftKey(_req); int pageSize = ContextKeys.GRID_PAGE_SIZE; gvKeySearch.PageSize = pageSize; gvKeySearch.DataSource = _resp1.UserID; gvKeySearch.DataBind(); } catch (Exception ex) { logger.Info(ex.Message); } }