Пример #1
0
 protected void Decline_Command(object sender, CommandEventArgs e)
 {
     int jobId; int.TryParse(e.CommandArgument.ToString(), out jobId);
     Bll.Substitute substitute = new Bll.Substitute();
     substitute.LoadByUserId(Micajah.Common.Security.UserContext.Current.UserId);
     (new Bll.Job()).ConfirmJob(jobId, substitute.SubstituteId, 1, string.Empty);
     Response.Redirect("Default.aspx");
 }
Пример #2
0
        protected void Decline_Command(object sender, CommandEventArgs e)
        {
            int jobId; int.TryParse(e.CommandArgument.ToString(), out jobId);

            Bll.Substitute substitute = new Bll.Substitute();
            substitute.LoadByUserId(Micajah.Common.Security.UserContext.Current.UserId);
            (new Bll.Job()).ConfirmJob(jobId, substitute.SubstituteId, 1, string.Empty);
            Response.Redirect("Default.aspx");
        }
Пример #3
0
 protected void Accept_Command(object sender, CommandEventArgs e)
 {
     int jobId; int.TryParse(e.CommandArgument.ToString(), out jobId);
     Bll.Substitute substitute = new Bll.Substitute();
     substitute.LoadByUserId(Micajah.Common.Security.UserContext.Current.UserId);
     Miami.Substitute.Dal.User user = new Miami.Substitute.Dal.User();
     DataView userView = user.LoadForMain(substitute.UserId);
     string confirmNote = String.Format("Confirmed by Substitute {0} on {1} {2}", userView[0]["FirstName"].ToString().Trim() + " " + userView[0]["LastName"].ToString().Trim(), DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString());
     (new Bll.Job()).ConfirmJob(jobId, substitute.SubstituteId, 2, confirmNote);
     Response.Redirect("Default.aspx");
 }
Пример #4
0
        protected void Accept_Command(object sender, CommandEventArgs e)
        {
            int jobId; int.TryParse(e.CommandArgument.ToString(), out jobId);

            Bll.Substitute substitute = new Bll.Substitute();
            substitute.LoadByUserId(Micajah.Common.Security.UserContext.Current.UserId);
            Miami.Substitute.Dal.User user = new Miami.Substitute.Dal.User();
            DataView userView    = user.LoadForMain(substitute.UserId);
            string   confirmNote = String.Format("Confirmed by Substitute {0} on {1} {2}", userView[0]["FirstName"].ToString().Trim() + " " + userView[0]["LastName"].ToString().Trim(), DateTime.Now.ToShortDateString(), DateTime.Now.ToShortTimeString());

            (new Bll.Job()).ConfirmJob(jobId, substitute.SubstituteId, 2, confirmNote);
            Response.Redirect("Default.aspx");
        }