Exemplo n.º 1
0
        public bool updateChannelingSchedule(ChannelingSchedule CS)
        {
            MySqlCommand mysqlcommand = new MySqlCommand("addChannelingSchedule", this.con);

            mysqlcommand.CommandType = CommandType.StoredProcedure;
            // throw new NotImplementedException();mysqlcommand.Parameters.AddWithValue("_doctorid", CS.DoctorId);
            mysqlcommand.Parameters.AddWithValue("_doctorName", CS.DoctorName);
            //mysqlcommand.Parameters.AddWithValue("_day", CS.Day);
            mysqlcommand.Parameters.AddWithValue("_time", CS.Time);

            if (mysqlcommand.ExecuteNonQuery() >= 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        private void viewMore_Click(object sender, EventArgs e)
        {
            String date = this.comboBox1.SelectedItem.ToString();
            String time = this.maskedTextBox1.Text;

            ChannelingSchedule obj = new ChannelingSchedule("0", docId, docName, time, date);
            bool result            = channellService.addChannelingSchedule(obj);

            if (result)
            {
                MessageBox.Show("Schedule Added Successfully!", "Success!",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Information);
            }
            else if (!result)
            {
                MessageBox.Show("Failed to add the Schedule", "Error!",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Error);
            }
        }
Exemplo n.º 3
0
 public bool deleteChannelingSchedule(ChannelingSchedule CS)
 {
     throw new NotImplementedException();
 }