/// <summary> /// /// </summary> public static AdjustRestHistory GetNewAdjustRestHistory(AdjustRestHistoryTypeEnum type, int accountid) { AdjustRestHistory adjustRestHistory = new AdjustRestHistory(0, DateTime.Now, 0, type); adjustRestHistory.Operator = new Account(accountid, "", ""); return(adjustRestHistory); }
/// <summary> /// 构造函数 /// </summary> public AdjustRestHistory(int adjustRestHistoryID, DateTime occurTime, decimal changeHours, AdjustRestHistoryTypeEnum adjustRestHistoryTypeEnum) { _AdjustRestHistoryID = adjustRestHistoryID; _OccurTime = occurTime; //_ResultAdjustRestHours = resultAdjustRestHours; _ChangeHours = changeHours; _AdjustRestHistoryTypeEnum = adjustRestHistoryTypeEnum; }
/// <summary> /// 将AssessCharacterType枚举转换为文字 /// </summary> /// <param name="adjustRestHistoryTypeEnum"></param> /// <returns></returns> public static string GetAdjustRestHistoryByType(AdjustRestHistoryTypeEnum adjustRestHistoryTypeEnum) { switch (adjustRestHistoryTypeEnum) { case AdjustRestHistoryTypeEnum.AdjustRestRequest: return("调休"); case AdjustRestHistoryTypeEnum.ModifyByOperator: return("修改"); case AdjustRestHistoryTypeEnum.OverWork: return("加班换休"); case AdjustRestHistoryTypeEnum.OutCityApplication: return("出差换休"); default: return(""); } }
public string UrlDetail(AdjustRestHistoryTypeEnum adjustRestHistoryTypeEnum, int relevantID) { switch (adjustRestHistoryTypeEnum) { case AdjustRestHistoryTypeEnum.AdjustRestRequest: return ("<a href='../LeaveRequestPages/LeaveRequestDetail.aspx?LeaveRequestID=" + SecurityUtil.DECEncrypt(relevantID.ToString()) + "' target='_blank'>查看调休详情</a>"); case AdjustRestHistoryTypeEnum.OverWork: return ("<a href='../OverWorkPages/OverWorkDetail.aspx?PKID=" + SecurityUtil.DECEncrypt(relevantID.ToString()) + "' target='_blank'>查看加班详情</a>"); case AdjustRestHistoryTypeEnum.OutCityApplication: return ("<a href='../OutApplicationPages/OutApplicationDetail.aspx?PKID=" + SecurityUtil.DECEncrypt(relevantID.ToString()) + "' target='_blank'>查看出差详情</a>"); default: return(string.Empty); } }