Информационная система для автоматизации деятельности ателье

Разработка информационной системы для автоматизации работы с клиентами фотоателье. Обзор известных аналогов. Характеристика средств разработки. Проектирование базы данных. Проектирование пользовательского интерфейса. Методы реализации серверной части.

Рубрика Программирование, компьютеры и кибернетика
Вид дипломная работа
Язык русский
Дата добавления 14.12.2019
Размер файла 5,3 M

Отправить свою хорошую работу в базу знаний просто. Используйте форму, расположенную ниже

Студенты, аспиранты, молодые ученые, использующие базу знаний в своей учебе и работе, будут вам очень благодарны.

textBox38.DataBindings.Clear();

textBox38.DataBindings.Add("Text",dataGridView2.DataSource,"date_shooting")

textBox36.DataBindings.Clear();

textBox36.DataBindings.Add("Text", dataGridView2.DataSource, "hour");

textBox37.DataBindings.Clear();

textBox37.DataBindings.Add("Text", dataGridView2.DataSource, "minute");

textBox39.DataBindings.Clear();

textBox39.DataBindings.Add("Text",dataGridView2.DataSource, "price_for_shooting");

textBox41.DataBindings.Clear();

textBox41.DataBindings.Add("Text",dataGridView2.DataSource,

"price_for_shooting");

string config = "Server=127.0.0.1;Database=photostudio;Uid=root;Pwd=root;";

MySqlConnection conexao = new MySqlConnection(config);

conexao.Open();

string query8 = string.Format("select name_shooting from shooting,shooting_orders where shooting.id_shooting = shooting_orders.id_shooting and id_orders_sh = @id_orders_sh");

MySqlCommand command8 = new MySqlCommand(query8, conexao);

command8.Parameters.Add(new MySqlParameter("id_orders_sh", Int32.Parse (textBox8.Text)));

textBox34.Text = command8.ExecuteScalar().ToString();

string query9 = string.Format("select surname_c from customers,shooting_orders where customers.id_customer = shooting_orders.id_customer and id_orders_sh = @id_orders_sh");

MySqlCommand command9 = new MySqlCommand(query9, conexao);

command9.Parameters.Add(new MySqlParameter("id_orders_sh", Int32.Parse (textBox8.Text)));

textBox31.Text = command9.ExecuteScalar().ToString();

string query10 = string.Format("select name_c from customers,shooting_orders where customers.id_customer = shooting_orders.id_customer and id_orders_sh = @id_orders_sh");

MySqlCommand command10 = new MySqlCommand(query10, conexao);

command10.Parameters.Add(new MySqlParameter("id_orders_sh", Int32.Parse (textBox8.Text)));

textBox32.Text = command10.ExecuteScalar().ToString();

string query11 = string.Format("select middle_name_c from customers,shooting_orders where customers.id_customer = shooting_orders.id_customer and id_orders_sh = @id_orders_sh");

MySqlCommand command11 = new MySqlCommand(query11, conexao);

command11.Parameters.Add(new MySqlParameter("id_orders_sh", Int32.Parse (textBox8.Text)));

textBox33.Text = command11.ExecuteScalar().ToString()

}

ПРИЛОЖЕНИЕ 7

(обязательное)

Листинг сохранения квитанции на фотосъемку

private void наФотосъемкуToolStripMenuItem_Click(object sender, EventArgs e)

{

Microsoft.Office.Interop.Excel.Application xla = new Microsoft.Office. Interop.Excel.Application();

Workbook wb = xla.Workbooks.Open(@"D:\WindowsFormsApp5\Квитанция на фотосъемку.xlsx",

Type.Missing, Type.Missing, Type.Missing, Type.Missing,

Type.Missing, Type.Missing, Type.Missing, Type.Missing,

Type.Missing, Type.Missing, Type.Missing, Type.Missing,

Type.Missing, Type.Missing);

Worksheet ws = (Worksheet)xla.ActiveSheet;

xla.Visible = true;

ws.Cells[4, 7] = textBox30.Text;

ws.Cells[6, 3] = textBox31.Text;

ws.Cells[6, 4] = textBox32.Text;

ws.Cells[6, 5] = textBox33.Text;

ws.Cells[8, 3] = textBox34.Text;

ws.Cells[8, 6] = textBox35.Text;

ws.Cells[10, 3] = textBox38.Text;

ws.Cells[10, 7] = textBox36.Text;

ws.Cells[10, 9] = textBox37.Text;

ws.Cells[12, 3] = textBox39.Text;

ws.Cells[17, 8] = textBox41.Text; }

Размещено на Allbest.ru

...

Подобные документы

Работы в архивах красиво оформлены согласно требованиям ВУЗов и содержат рисунки, диаграммы, формулы и т.д.
PPT, PPTX и PDF-файлы представлены только в архивах.
Рекомендуем скачать работу.