/// <summary> /// 记录历史 /// </summary> /// <param name="operatorType"></param> private void CreateHistory(OperatorType operatorType) { string remark = ""; AdjustRestHistory _AdjustRestHistory = UpdateAdjustRestByOperator.GetNewAdjustRestHistory(AdjustRestHistoryTypeEnum.OutCityApplication, _AccountID); if (operatorType == OperatorType.add) { remark = _OutApplicationItem.FromDate + " - " + _OutApplicationItem.ToDate + " 出差" + _OutApplicationItem.CostTime + "小时"; _AdjustRestHistory.ChangeHours = _ChangeHour; } else if (operatorType == OperatorType.delete) { remark = _OutApplicationItem.FromDate + " - " + _OutApplicationItem.ToDate + " 取消出差" + _OutApplicationItem.CostTime + "小时"; _AdjustRestHistory.ChangeHours = -_ChangeHour; } _AdjustRestHistory.Remark = remark; _AdjustRestHistory.RelevantID = _OutApplicationItem.OutApplicationID; _IAdjustRestHistory.InsertAdjustRestHistory(_AccountID, _AdjustRestHistory); }
/// <summary> /// 记录历史 /// </summary> private void CreateHistory() { string remark; AdjustRestHistory _AdjustRestHistory = UpdateAdjustRestByOperator.GetNewAdjustRestHistory(AdjustRestHistoryTypeEnum.AdjustRestRequest, _AccountID); remark = _LeaveRequestItem.FromDate + " - " + _LeaveRequestItem.ToDate + " 调休" + _LeaveRequestItem.CostTime + "小时"; _AdjustRestHistory.ChangeHours = -_LeaveRequestItem.CostTime; _AdjustRestHistory.Remark = remark; _AdjustRestHistory.RelevantID = _LeaveRequestID; _IAdjustRestHistory.InsertAdjustRestHistory(_AccountID, _AdjustRestHistory); }