Example #1
0
 public DeletePatient(int ID, string FIO, DRIVER dob)
 {
     InitializeComponent();
     db = dob;
     id = ID;
     fio = FIO;
     namer.Text = fio;
 }
Example #2
0
 public SendSMS(int ID, string FIO, DRIVER dob)
 {
     InitializeComponent();
     db = dob;
     id = ID;
     fio = FIO;
     namer.Text = fio;
 }
Example #3
0
        public Patient_Edit(DRIVER dob, int ID)
        {
            InitializeComponent();

            db = dob;
            UserID = ID;

            db.Create_Connection("Patients", patient.item);

            DataTable Respond = db.LocalDataTable.Select("ID=" + UserID).CopyToDataTable();

               Patient.Columns.Add("Property", "Свойство");
            Patient.Columns.Add("Value", "Значение");
            Patient.Columns[1].Width = 220;

            for (int i = 0; i < 14; i++)
            {

                if (i == 12) image = (byte[])Respond.Rows[0].ItemArray.GetValue(i);
                String Name =  db.LocalDataTable.Columns[i].ColumnName.ToString();
                String Value = Respond.Rows[0].ItemArray.GetValue(i).ToString();

                Patient.Rows.Add(Name,Value);

            }

               Patient.Rows[0].Visible = false;
               Patient.Rows[9].Visible = false;
               Patient.Rows[10].Visible = false;
               Patient.Rows[11].Visible = false;
               Patient.Rows[12].Visible = false;
               Patient.Rows[13].Visible = false;

               Image FetchedImage;
               byte[] ImgBytes = (byte[])Respond.Rows[0]["Profileb"];

               MemoryStream ImgStream = new MemoryStream(ImgBytes);
               FetchedImage = Image.FromStream(ImgStream);
               PatientImage.Image = FetchedImage;
        }
Example #4
0
 public Patient_ADD(DRIVER dob)
 {
     InitializeComponent();
     db = dob;
 }
Example #5
0
 public Profile(DRIVER dob, int id)
 {
     InitializeComponent();
     db = dob;
     ID = id;
 }
Example #6
0
 public anket(DRIVER drive)
 {
     InitializeComponent();
     driver = drive;
 }