Exemple #1
0
        protected void btnProcess1_Click(object sender, EventArgs e)
        {
            DoctorsProcess1 dp1 = new DoctorsProcess1();

            if (!string.IsNullOrEmpty(txtDFullName.Text) || !string.IsNullOrEmpty(txtPhone.Text) || !string.IsNullOrEmpty(txtEmailAddress.Text))
            {
                dp1.DoctorFullname = txtDFullName.Text.Trim();
                dp1.DcotorPhyone   = Convert.ToInt32(txtPhone.Text);
                dp1.DoctorEmail    = txtEmailAddress.Text.Trim();
                int rowCount = _dpManager.SaveProcess1(dp1);
                if (rowCount > 0)
                {
                    Session["DoctorEmail"] = txtEmailAddress.Text.Trim();
                    Response.Redirect("DoctorProcess2.aspx");
                    return;
                }
                else
                {
                    lblMessage.Text = "Process 1 is not complete.Try again!";
                }
            }
            else
            {
                lblMessage.Text = "Field Cannot be Empty!";
            }
        }
Exemple #2
0
 internal int SaveProcess1(DoctorsProcess1 dp1)
 {
     connection.Open();
     command = new SqlCommand("sp_doctorProcess1", connection);
     command.Parameters.Add("@doctoFullName", SqlDbType.NVarChar).Value = dp1.DoctorFullname;
     command.Parameters.Add("@doctorPhone", SqlDbType.Int).Value        = dp1.DcotorPhyone;
     command.Parameters.Add("@doctorEmail ", SqlDbType.NVarChar).Value  = dp1.DoctorEmail;
     command.CommandType = CommandType.StoredProcedure;
     row = command.ExecuteNonQuery();
     connection.Close();
     return(row);
 }
Exemple #3
0
 internal int SaveProcess1(DoctorsProcess1 dp1)
 {
     return(_dpGateway.SaveProcess1(dp1));
 }