1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using Models;
- using DAL;
- using OA2014.publicCode;
- namespace OA2014.users
- {
- public partial class addDailyManagement : SessionCode
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- }
- }
- /// <summary>
- /// 保存事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected void btnSave_Click(object sender, EventArgs e)
- {
- DailyManagementService dms = new DailyManagementService();
- DailyManagement dm = new DailyManagement();
- dm.DailyDate = txtDailyDate.Text;
- dm.WorkTitle = txtWorkTitle.Text;
- dm.WorkHours = txtWorkHours.Text;
- dm.CompletionRate = txtCompletionRate.Text;
- dm.WorkContent = txtWorkContent.Text;
- dm.UserId = UserId;
- dm.Dates = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
- dm.IsAudit = 0;
- dm.AuditUserId = 0;
- dm.AuditDate = "";
- dm.IsDel = 0;
- if (dms.AddDailyManagement(dm))
- Response.Redirect("dailyManagement.aspx");
- else
- PublicCode.GetAlertMsg(this, GetType(), PublicCode.AlertMsgOne);
- }
- /// <summary>
- /// 返回事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- protected void btnBack_Click(object sender, EventArgs e)
- {
- Response.Redirect("dailyManagement.aspx");
- }
- }
- }
|