/// <summary> /// 修改假期 /// </summary> private void UpdateHolidays() { int id = Convert.ToInt32(Request.QueryString["id"]); entity = new HolidaysBLL().GetHolidaysTableEntity(id); holidayID = id; userCode = entity.UserCode; startTime = entity.startTime.ToString("yyyy-MM-dd HH:mm:ss"); endTime = entity.endTime.ToString("yyyy-MM-dd HH:mm:ss"); day = entity.DayCount < 0?(entity.DayCount * -1).ToString():entity.DayCount.ToString(); typeID = Convert.ToInt32(entity.HolidaysType); remark = entity.Remark; }
/// <summary> /// 更新一条数据 /// </summary> public void UpdateHolidaysTable(HolidaysTable entity) { linqHelper.UpdateEntity <HolidaysTable>(entity); }
/// <summary> /// 更新一条数据 /// </summary> /// <param name="entity"></param> public void UpdateHolidaysTable(HolidaysTable entity) { new HolidaysDAL().UpdateHolidaysTable(entity); }
/// <summary> /// 增加一条数据 /// </summary> public void AddHolidaysTable(HolidaysTable entity) { linqHelper.InsertEntity <HolidaysTable>(entity); }
/// <summary> /// 增加一条数据 /// </summary> /// <param name="entity"></param> public void AddHolidaysTable(HolidaysTable entity) { service.AddHolidaysTable(entity); }