예제 #1
0
        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);
            }
        }
예제 #2
0
 public void DeleteShiftStaff(GetStaffShift argObj)
 {
     try
     {
         AdminDAL ws = new AdminDAL();
         ws.DeleteShiftStaff(argObj);
     }
     catch (Exception ex)
     {
     }
 }
예제 #3
0
 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;
     }
 }
예제 #4
0
        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);
            }
        }