コード例 #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);
     }
 }