Esempio n. 1
0
 public string UpdateCalendarInfoForMobile(string title, string content, string reminderrmodel, string reparteminder, string employeeID, string strHourMins, string calenderID)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         return(calendarBll.UpdateCalendarInfoForMobile(title, content, reminderrmodel, reparteminder, employeeID, strHourMins, calenderID));
     }
 }
Esempio n. 2
0
 public int UpdateCalendar(T_OA_CALENDAR obj)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {            
         return calendarBll.UpdateCalendarInfo(obj);
     }
 }
Esempio n. 3
0
 public T_OA_CALENDAR GetCalendarInfoByID(string calendarID)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         return(calendarBll.GetCalendarInfo(calendarID));
     }
 }
Esempio n. 4
0
 public int UpdateCalendar(T_OA_CALENDAR obj)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         return(calendarBll.UpdateCalendarInfo(obj));
     }
 }
Esempio n. 5
0
 public int DelCalendar(T_OA_CALENDAR obj)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         if (calendarBll.DeleteCalendarInfo(obj.CALENDARID))
         {
             return(1);
         }
         return(-1);
     }
 }
Esempio n. 6
0
 public int DelCalendarForMobile(string calendarID)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         if (calendarBll.DeleteCalendarInfo(calendarID))
         {
             return(1);
         }
         return(-1);
     }
 }
Esempio n. 7
0
 public int AddCalendar(T_OA_CALENDAR obj)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         bool sucess = calendarBll.AddCalendarInfo(obj);
         if (sucess == false)
         {
             return(-1);
         }
         return(1);
     }
 }
Esempio n. 8
0
 public int AddCalendar(T_OA_CALENDAR obj)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {                
         bool sucess = calendarBll.AddCalendarInfo(obj);
         if (sucess == false)
         {
             return -1;
         }
         return 1;
     }
 }
Esempio n. 9
0
 public int DelCalendar(T_OA_CALENDAR obj)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         
         if (calendarBll.DeleteCalendarInfo(obj.CALENDARID))
         {
             return 1;
         }
         return -1;
     }
 }
Esempio n. 10
0
 public int DelCalendarList(List<T_OA_CALENDAR> infoList)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {                
         foreach (T_OA_CALENDAR obj in infoList)
         {
             if (!calendarBll.DeleteCalendarInfo(obj.CALENDARID))
             {
                 return -1;
             }
         }
         return 1;
     }
 }
Esempio n. 11
0
 public int DelCalendarList(List <T_OA_CALENDAR> infoList)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         foreach (T_OA_CALENDAR obj in infoList)
         {
             if (!calendarBll.DeleteCalendarInfo(obj.CALENDARID))
             {
                 return(-1);
             }
         }
         return(1);
     }
 }
Esempio n. 12
0
 public List <T_OA_CALENDAR> GetCalendarListByUserID(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userID)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         IQueryable <T_OA_CALENDAR> calendarList = calendarBll.GetCalendarListByUserID(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userID);
         if (calendarList == null)
         {
             return(null);
         }
         else
         {
             return(calendarList.ToList());
         }
     }
 }
Esempio n. 13
0
 public List<T_OA_CALENDAR> GetCalendarListByUserID(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userID)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {            
         IQueryable<T_OA_CALENDAR> calendarList = calendarBll.GetCalendarListByUserID(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userID);
         if (calendarList == null)
         {
             return null;
         }
         else
         {
             return calendarList.ToList();
         }
     }
 }
Esempio n. 14
0
 public List <T_OA_CALENDAR> GetApporvalList22(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, LoginUserInfo loginUserInfo)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         IQueryable <T_OA_CALENDAR> approvalList = calendarBll.GetCalendarList(pageIndex, pageSize, sort, filterString, paras, ref pageCount, loginUserInfo.userID);
         if (approvalList == null)
         {
             return(null);
         }
         else
         {
             return(approvalList.ToList());
         }
     }
 }
Esempio n. 15
0
 public T_OA_CALENDAR GetCalendarInfoByID(string calendarID)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         return calendarBll.GetCalendarInfo(calendarID);
     }
 }
Esempio n. 16
0
 public string UpdateCalendarInfoForMobile(string title, string content, string reminderrmodel, string reparteminder, string employeeID, string strHourMins, string calenderID)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         return calendarBll.UpdateCalendarInfoForMobile(title, content, reminderrmodel, reparteminder, employeeID, strHourMins, calenderID);
     }
 }
Esempio n. 17
0
 public int DelCalendarForMobile(string calendarID)
 {
     using (CalendarManagementBll calendarBll = new CalendarManagementBll())
     {
         if (calendarBll.DeleteCalendarInfo(calendarID))
         {
             return 1;
         }
         return -1;
     }
 }
Esempio n. 18
0
        public List<T_OA_CALENDAR> GetApporvalList22(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, LoginUserInfo loginUserInfo)
        {

            using (CalendarManagementBll calendarBll = new CalendarManagementBll())
            {

                IQueryable<T_OA_CALENDAR> approvalList = calendarBll.GetCalendarList(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, loginUserInfo.userID);
                if (approvalList == null)
                {
                    return null;
                }
                else
                {
                    return approvalList.ToList();
                }                
            }
        }