Пример #1
0
    /// <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;
    }
Пример #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void UpdateHolidaysTable(HolidaysTable entity)
 {
     linqHelper.UpdateEntity <HolidaysTable>(entity);
 }
Пример #3
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 /// <param name="entity"></param>
 public void UpdateHolidaysTable(HolidaysTable entity)
 {
     new HolidaysDAL().UpdateHolidaysTable(entity);
 }
Пример #4
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void AddHolidaysTable(HolidaysTable entity)
 {
     linqHelper.InsertEntity <HolidaysTable>(entity);
 }
Пример #5
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 /// <param name="entity"></param>
 public void AddHolidaysTable(HolidaysTable entity)
 {
     service.AddHolidaysTable(entity);
 }