コード例 #1
0
        protected void AddEntry_Click(object sender, System.EventArgs e)
        {
            TimeTrackerWebRole.AppCode.BLL.TimeEntry timeEntry = new TimeTrackerWebRole.AppCode.BLL.TimeEntry(Page.User.Identity.Name, Convert.ToInt32(CategoryList.SelectedValue), Convert.ToDecimal(Hours.Text), DateTime.Now, UserList.SelectedValue);
            timeEntry.Description = Description.Text;
            timeEntry.Save();

            Description.Text = string.Empty;
            Hours.Text = string.Empty;
            ProjectListGridView.DataBind();
        }
コード例 #2
0
 public abstract bool UpdateTimeEntry(TimeEntry timeEntry);
コード例 #3
0
 //TimeEntry
 public abstract int CreateNewTimeEntry(TimeEntry newTimeEntry);