/// <summary> /// 删除建档时间 /// </summary> /// <param name="u"></param> public void _DelTime(int id) { DT_BuildTime bu = bbll.QueryById(id); int count = bbll.DelTime(bu); if (count > 0) { Response.Write("<script type='text/javascript'>alert('删除成功!');</script>"); Response.Write("<script type='text/javascript'>window.location.href='/SystemManage/BuildTime';</script>"); } }
/// <summary> /// 添加建档时间 /// </summary> /// <param name="u"></param> public void _AddTime(DT_BuildTime b) { DT_BuildTime bu = new DT_BuildTime(); bu.BuildStartTime = b.BuildStartTime; bu.BuildEndTime = b.BuildEndTime; bu.AddTime = DateTime.Now; int count = bbll.AddTime(bu); if (count > 0) { Response.Write("1"); } else { Response.Write("0"); } Response.End(); }
/// <summary> /// 修改建档时间 /// </summary> /// <param name="u"></param> public void _UpdTime(DT_BuildTime b) { //根据id修改 DT_BuildTime bu = bbll.QueryById(b.Id); bu.BuildStartTime = b.BuildStartTime; bu.BuildEndTime = b.BuildEndTime; bu.UpdateTime = DateTime.Now; int count = bbll.UpdTime(bu); if (count > 0) { Response.Write("1"); } else { Response.Write("0"); } Response.End(); }
/// <summary> /// 删除建档时间 /// </summary> /// <param name="u"></param> /// <returns></returns> public int DelTime(DT_BuildTime b) { return(bdal.DelTime(b)); }
/// <summary> /// 修改建档时间 /// </summary> /// <param name="u"></param> /// <returns></returns> public int UpdTime(DT_BuildTime b) { return(bdal.UpdTime(b)); }
/// <summary> /// 添加建档时间 /// </summary> /// <param name="u"></param> /// <returns></returns> public int AddTime(DT_BuildTime b) { return(bdal.AddTime(b)); }