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