/// <summary> /// 验证月固化信息 /// </summary> /// <param name="month"></param> /// <returns></returns> private string ValidateMonth(string month, ref MonthBonusModel bonus) { string result = ""; if (string.IsNullOrEmpty(month)) { result = "待固化月份值不能为空!"; } else { bonus = _MonthBonusService.GetMonthBonus(month); if (bonus != null) { var bill = _MonthBillCase.FirstOrDefault(p => p.Month == month && p.IsUse); if (bill != null) { result = "月度【" + month + "】已产生固化单,编号为【" + bill.Id.ToString() + "】。"; } } else { result = "请先设定月度【" + month + "】总奖金!"; } } return(result); }
public ActionResult EditMonthBonus(long?id) { if (id == null || id == 0) { return(View(new MonthBonusModel())); } var entObj = _MonthBonusAppService.GetMonthBonus(id.Value); return(View(entObj)); }