示例#1
0
 public T_OA_WORKRECORD GetWorkCordByID(string workRecordID)
 {
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return(workerCordBll.GetWorkCordByID(workRecordID));
     }
 }
示例#2
0
 public string AddWorkCordForMobile(string title, string content, string employeeID, string strTime, ref string workRecordID)
 {
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return(workerCordBll.AddWorkCordForMobile(title, content, employeeID, strTime, ref workRecordID));
     }
 }
示例#3
0
 public bool DelWorkerCordByID(string workRecordID)
 {
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return(workerCordBll.DeleteWorkCord(workRecordID));
     }
 }
示例#4
0
 public List <string> GetDateByEmployeeIDAndDate(string employeeID, string strDate)
 {
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return(workerCordBll.GetDateByEmployeeIDAndDate(employeeID, strDate));
     }
 }
示例#5
0
 public List <T_OA_WORKRECORD> GetWorkRecordsByEmployeeIDAndDate(string employeeID, string strDate)
 {
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return(workerCordBll.GetWorkRecordsByEmployeeIDAndDate(employeeID, strDate));
     }
 }
示例#6
0
 public T_OA_WORKRECORD GetWorkRecordsByEmployeeIDAndCurrentDay(string employeeID, string strDate)
 {
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return(workerCordBll.GetWorkRecordsByEmployeeIDAndCurrentDay(employeeID, strDate));
     }
 }
示例#7
0
 public void WorkerCordUpdate(T_OA_WORKRECORD obj)
 {
     WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll();
     //using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     //{
     workerCordBll.UpdateWorkCord(obj);
     //}
 }
示例#8
0
 public bool WorkerCordDel(T_OA_WORKRECORD obj)
 {
     WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll();
     //using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     //{
     return workerCordBll.DeleteWorkCord(obj.WORKRECORDID);
     //}
 }
示例#9
0
        public void WorkerCordUpdate(T_OA_WORKRECORD obj)
        {
            WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll();

            //using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
            //{
            workerCordBll.UpdateWorkCord(obj);
            //}
        }
示例#10
0
        public bool WorkerCordDel(T_OA_WORKRECORD obj)
        {
            WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll();

            //using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
            //{
            return(workerCordBll.DeleteWorkCord(obj.WORKRECORDID));
            //}
        }
示例#11
0
 public int WorkerCordAdd(T_OA_WORKRECORD obj)
 {
     WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll();
     //using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     //{
     bool sucess = workerCordBll.AddWorkCord(obj);
     if (sucess == false)
     {
         return -1;
     }
     return 1;
     //}
 }
示例#12
0
        public int WorkerCordAdd(T_OA_WORKRECORD obj)
        {
            WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll();
            //using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
            //{
            bool sucess = workerCordBll.AddWorkCord(obj);

            if (sucess == false)
            {
                return(-1);
            }
            return(1);
            //}
        }
示例#13
0
 public int DeleteWorkerCordList(List<T_OA_WORKRECORD> objList)
 {
     WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll();
     //using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     //{
     foreach (T_OA_WORKRECORD obj in objList)
     {
         if (!workerCordBll.DeleteWorkCord(obj.WORKRECORDID))
         {
             return -1;
         }
     }
     return 1;
     //}
 }
示例#14
0
 public List<T_OA_WORKRECORD> GetWorkerCordListByUserId(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userId)
 {
     WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll();
     //using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     //{
     IQueryable<T_OA_WORKRECORD> workerCordList = workerCordBll.GetWorkerCodeListByUserID(pageIndex, pageSize, sort, filterString, paras, ref  pageCount, userId);
     if (workerCordList == null)
     {
         return null;
     }
     else
     {
         return workerCordList.ToList();
     }
     //}
 }
示例#15
0
        public int DeleteWorkerCordList(List <T_OA_WORKRECORD> objList)
        {
            WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll();

            //using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
            //{
            foreach (T_OA_WORKRECORD obj in objList)
            {
                if (!workerCordBll.DeleteWorkCord(obj.WORKRECORDID))
                {
                    return(-1);
                }
            }
            return(1);
            //}
        }
示例#16
0
        public List <T_OA_WORKRECORD> GetWorkerCordListByUserId(int pageIndex, int pageSize, string sort, string filterString, object[] paras, ref int pageCount, string userId)
        {
            WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll();
            //using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
            //{
            IQueryable <T_OA_WORKRECORD> workerCordList = workerCordBll.GetWorkerCodeListByUserID(pageIndex, pageSize, sort, filterString, paras, ref pageCount, userId);

            if (workerCordList == null)
            {
                return(null);
            }
            else
            {
                return(workerCordList.ToList());
            }
            //}
        }
示例#17
0
 public bool DelWorkerCordByID(string workRecordID)
 {            
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return workerCordBll.DeleteWorkCord(workRecordID);
     }
 }
示例#18
0
 public string AddWorkCordForMobile(string title,string content,string employeeID,string strTime,ref string workRecordID)
 {            
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return workerCordBll.AddWorkCordForMobile(title,content,employeeID,strTime,ref  workRecordID);            
     }
 }
示例#19
0
 public T_OA_WORKRECORD GetWorkRecordsByEmployeeIDAndCurrentDay(string employeeID, string strDate)
 {
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return workerCordBll.GetWorkRecordsByEmployeeIDAndCurrentDay(employeeID, strDate);
     }
 }
示例#20
0
 public List<T_OA_WORKRECORD> GetWorkRecordsByEmployeeIDAndDate(string employeeID, string strDate)
 {
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return workerCordBll.GetWorkRecordsByEmployeeIDAndDate(employeeID, strDate);
     }
 }
示例#21
0
 public T_OA_WORKRECORD GetWorkCordByID(string workRecordID)
 {
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return workerCordBll.GetWorkCordByID(workRecordID);
     }
 }
示例#22
0
 public List<string> GetDateByEmployeeIDAndDate(string employeeID, string strDate)
 {
     using (WorkerCordManagementBll workerCordBll = new WorkerCordManagementBll())
     {
         return workerCordBll.GetDateByEmployeeIDAndDate(employeeID,strDate);
     }
 }