Example #1
0
 public OverWorkItem FindOverWorkItemByItemID(int itemid)
 {
     if (_OverWorkItems == null)
     {
         return(null);
     }
     return(OverWorkItem.FindOverWorkItemByID(_OverWorkItems, itemid));
 }
Example #2
0
 public static bool IsItemFlowContainStatus(OverWorkItem OverWorkItemItem, RequestStatus requeststatus)
 {
     foreach (OverWorkFlow flow in OverWorkItemItem.OverWorkFlow)
     {
         if (flow.Operation.Id == requeststatus.Id)
         {
             return(true);
         }
     }
     return(false);
 }
Example #3
0
 ///<summary>
 ///</summary>
 public static bool IsAgreed(OverWorkItem overWorkItem)
 {
     foreach (OverWorkFlow flow in overWorkItem.OverWorkFlow)
     {
         if (flow.Operation == RequestStatus.ApprovePass)
         {
             return(true);
         }
     }
     return(false);
 }
Example #4
0
 /// <summary>
 /// 判断等于
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public bool Equals(OverWorkItem obj)
 {
     return(obj.FromDate == _FromDate &&
            obj.ToDate == _ToDate &&
            obj.CostTime == _CostTime);
 }