Beispiel #1
0
 private void MenuItem_Click_1(object sender, RoutedEventArgs e)
 {
     TimeTable.Time_Table ObjTimeTable = new TimeTable.Time_Table();
     Close();
     ObjTimeTable.Show();
 }
Beispiel #2
0
        private void btnGo_Click_1(object sender, RoutedEventArgs e)
        {
            try
            {
                if (cbBranchName.SelectedValue.ToString() != "0" && cbBranchName.SelectedItem.ToString() != "Select")
                {
                    if (dpTTStartDate.Text != "")
                    //dpTTStartDate.Focus();
                    {
                        if (btnGo.Content.ToString() == "Go")
                        {
                            DisableUpperPart();
                            GetDetails();

                        }
                        else if (btnGo.Content.ToString() == "Change")
                        {
                            Time_Table tt = new Time_Table();
                            Close();
                            tt.Show();
                            EnableUpperPart();
                            ClearData();
                        }
                    }
                    else
                    {
                        dpTTStartDate.Focus();
                        MessageBox.Show("Please Select Time Table Start Date","Info",MessageBoxButton.OK,MessageBoxImage.Warning);
                    }
                }
                else
                {
                    MessageBox.Show("Please select Branch Name", "Info", MessageBoxButton.OK, MessageBoxImage.Warning);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString(), "Exception Error", MessageBoxButton.OK, MessageBoxImage.Warning);
            }
        }
Beispiel #3
0
 private void btnSave_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (Validate())
         {
             //ValiateTime();
             Setparameter();
             string Result = objTimeTable.SaveTimeTable(TimeTableID, TimeTableDetailID,Date, BatchID, RoomID, Day, LectStartTime, LectEndTime, TeacherSubjectID, UpdatedByUserID, UpdatedDate, IsActive, IsDeleted,ViewType);
             if ((Result == "Save Sucessfully...!!!") || (Result == "Updated Sucessfully...!!!"))
             {
                 MessageBox.Show(Result, "Save Sucessfull", MessageBoxButton.OK, MessageBoxImage.Information);
                 Time_Table tt = new Time_Table();
                 Close();
                 tt.Show();
                 //ClearFields();
                 //BindGridviewTimeTable();
             }
             else
             {
                 MessageBox.Show(Result, "Error To Save", MessageBoxButton.OK, MessageBoxImage.Information);
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString());
     }
 }
Beispiel #4
0
 private void btnClear_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         Time_Table tt = new Time_Table();
         Close();
         tt.Show();
         //ClearFields();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString());
     }
 }