Диплом: Автоматизация приема и обработки заявок отделом техподдержки ООО "НТЦ ФСК ЕЭС"

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам
z.Номер_кабинета = Convert.ToInt32(numericUpDown1.Value);
z.Текст_заявки = richTextBox1.Text;
if (checkBox2.Checked)////если указали сохранение скрина
{
MemoryStream ms = new MemoryStream();
pictureBox1.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
z.Снимок_экрана = ms.ToArray();
}
if (checkBox1.Checked) z.Имя_ПК = "заявка сделана с ПК "+ textBox3.Text
+ " на другой компьютер";
deskDataSet.Заявка.AddЗаявкаRow(z);
заявкаTableAdapter.Update(z);
deskDataSet.AcceptChanges();
MessageBox.Show("Заявка создана");
this.заявкаTableAdapter.Fill(this.deskDataSet.Заявка);
заявкаBindingSource.Filter = "[ФИО заявителя]='" +
Environment.UserName + "'";
clearText();
}
private void clearText()
{
comboBox2.SelectedValue = -1;
comboBox1.SelectedValue = -1;
//textBox1.Text = "";
textBox4.Text = "";
// textBox3.Text = "";
numericUpDown1.Value = 0;
richTextBox1.Text = "";
pictureBox1.Image = null;
checkBox1.Checked = false;
checkBox2.Checked = false;
}
private void linkLabel1_LinkClicked(object sender,
LinkLabelLinkClickedEventArgs e)
{
FormNastr f = new FormNastr();
f.StartPosition = FormStartPosition.CenterScreen;
f.ShowDialog();
}
private void dataGridView1_CellContentClick(object sender,
DataGridViewCellEventArgs e)
{
}
private void dataGridView1_CellDoubleClick(object sender,
DataGridViewCellEventArgs e)
{
if (dataGridView1.Rows.Count > 0 && dataGridView1.CurrentCell != null
&& dataGridView1.Rows[dataGridView1.CurrentCell.RowIndex].DataBoundItem != null)
{
deskDataSet.ЗаявкаRow d =
(deskDataSet.ЗаявкаRow)((DataRowView)dataGridView1.Rows[dataGridView1.CurrentCell
.RowIndex].DataBoundItem).Row;
if (d != null)
{
FormZayavka f = new FormZayavka();
f.LoadData(d,user,isp,op);
f.StartPosition = FormStartPosition.CenterScreen;
f.ShowDialog();
}
}
}
private void linkLabel3_LinkClicked(object sender,
LinkLabelLinkClickedEventArgs e)
{
//снимок экрана
// свернуть
this.WindowState = FormWindowState.Minimized;
timer1.Start();//делаем паузу в 300мс, чтобы скрыть окно программы и
делаем скрин уже без программы,
//а потом восстанавливаем окно программы
}
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
{
timer1.Stop();
Application.Exit();
}
private void pictureBox1_DoubleClick(object sender, EventArgs e)
{
if (pictureBox1.Image == null) return;
string s = Path.ChangeExtension(Path.GetTempFileName(), "jpg");
pictureBox1.Image.Save(s, ImageFormat.Jpeg);
Process.Start(s);
}
private void pictureBox1_Click(object sender, EventArgs e)
{
}
private void linkLabel4_LinkClicked(object sender,
LinkLabelLinkClickedEventArgs e)
{
if (pictureBox1.Image == null) return;
string s = Path.ChangeExtension(Path.GetTempFileName(), "jpg");
pictureBox1.Image.Save(s, ImageFormat.Jpeg);
Process.Start(s);
}
private void timer1_Tick(object sender, EventArgs e)
{
pictureBox1.Image = Image.FromFile(CreateScreen());
timer1.Stop();
// Развернуть
this.WindowState = FormWindowState.Normal;
checkBox2.Checked = true;
}
private void dataGridView2_CellMouseDoubleClick(object sender,
DataGridViewCellMouseEventArgs e)
{
if (dataGridView2.Rows.Count > 0 && dataGridView2.CurrentCell != null
&& dataGridView2.Rows[dataGridView2.CurrentCell.RowIndex].DataBoundItem != null)
{
deskDataSet.ЗаявкаRow d =
(deskDataSet.ЗаявкаRow)((DataRowView)dataGridView2.Rows[dataGridView2.CurrentCell
.RowIndex].DataBoundItem).Row;
if (d != null)
{
FormZayavka f = new FormZayavka();
f.LoadData(d,user,isp,op);
f.StartPosition = FormStartPosition.CenterScreen;
f.ShowDialog();
}
}
}
private void timer2_Tick(object sender, EventArgs e)
{
this.заявкаTableAdapter.Fill(this.deskDataSet.Заявка);
}
private void dataGridView2_CellContentDoubleClick(object sender,
DataGridViewCellEventArgs e)
{
}
private void dataGridView3_CellContentDoubleClick(object sender,
DataGridViewCellEventArgs e)
{
if (dataGridView3.Rows.Count > 0 && dataGridView3.CurrentCell != null
&& dataGridView3.Rows[dataGridView3.CurrentCell.RowIndex].DataBoundItem != null)
{
deskDataSet.ЗаявкаRow d =
(deskDataSet.ЗаявкаRow)((DataRowView)dataGridView3.Rows[dataGridView3.CurrentCell
.RowIndex].DataBoundItem).Row;
if (d != null)
{
FormZayavka f = new FormZayavka();
f.LoadData(d, user, isp, op);
f.StartPosition = FormStartPosition.CenterScreen;
f.ShowDialog();
}
}
}
private void dataGridView4_CellDoubleClick(object sender,
DataGridViewCellEventArgs e)
{
if (dataGridView4.Rows.Count > 0 && dataGridView4.CurrentCell != null
&& dataGridView4.Rows[dataGridView4.CurrentCell.RowIndex].DataBoundItem != null)
{
deskDataSet.ЗаявкаRow d =
(deskDataSet.ЗаявкаRow)((DataRowView)dataGridView4.Rows[dataGridView4.CurrentCell
.RowIndex].DataBoundItem).Row;
if (d != null)
{
FormZayavka f = new FormZayavka();
f.LoadData(d, user, isp, op);
f.StartPosition = FormStartPosition.CenterScreen;
f.ShowDialog();
SetFilterIsp();
}
}
}
private void dataGridView5_CellDoubleClick(object sender,
DataGridViewCellEventArgs e)
{
if (dataGridView5.Rows.Count > 0 && dataGridView5.CurrentCell != null
&& dataGridView5.Rows[dataGridView5.CurrentCell.RowIndex].DataBoundItem != null)
{
deskDataSet.ЗаявкаRow d =
(deskDataSet.ЗаявкаRow)((DataRowView)dataGridView5.Rows[dataGridView5.CurrentCell
.RowIndex].DataBoundItem).Row;
if (d != null)
{
FormZayavka f = new FormZayavka();
f.LoadData(d, user, isp, op);
f.StartPosition = FormStartPosition.CenterScreen;
f.ShowDialog();
SetFilterIsp();
}
}
}
private void dataGridView6_CellDoubleClick(object sender,
DataGridViewCellEventArgs e)
{
if (dataGridView6.Rows.Count > 0 && dataGridView6.CurrentCell != null
&& dataGridView6.Rows[dataGridView6.CurrentCell.RowIndex].DataBoundItem != null)
{
deskDataSet.ЗаявкаRow d =
(deskDataSet.ЗаявкаRow)((DataRowView)dataGridView6.Rows[dataGridView6.CurrentCell
.RowIndex].DataBoundItem).Row;
if (d != null)
{
FormZayavka f = new FormZayavka();
f.LoadData(d, user, isp, op);
f.StartPosition = FormStartPosition.CenterScreen;
f.ShowDialog();
SetFilterIsp();
}
}
}
private void linkLabel2_LinkClicked(object sender,
LinkLabelLinkClickedEventArgs e)
{
FormNastr f = new FormNastr();
f.StartPosition = FormStartPosition.CenterScreen;
f.ShowDialog();
}
private void linkLabel5_LinkClicked(object sender,
LinkLabelLinkClickedEventArgs e)
{
FormNastr f = new FormNastr();
f.StartPosition = FormStartPosition.CenterScreen;
f.ShowDialog();
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
timer1.Stop();
timer2.Stop();
}
}
}

Смотрите также:

"Автоматизация обработки заявок ООО "Проектно-Строительная Компания"
"Автоматизация процесса аттестации персонала для ООО "Нэт Бай Нэт Холдинг"
"Анализ интернет-активности конкурентов ( на примере конкурентов "Газпром нефть")
"Бухгалтерский учёт и аудит расчётов с подотчётними лицами в организации на примере ООО "ЛОЦ 10""
«Психологическое сопровождение персонала в организации на примере ООО «Крокус»
Cовершенствование деловой оценки персонала в организации (на примере ООО "Даймонд кейтеринг развитие")
IPO - инструмент финансирования деятельности организации. На примере ПАО «Нефтяная компания «Лукойл»
PR как средство продвижения организации (на примере ПАО "Тамбовский завод "Комсомолец им. Н.С. Артемова")
PR-коммуникации в сфере общественного питания (на примере кафе-кондитерской «Cream Cheese»)
SMM как средство повышения эффективности работы учреждений социокультурной сферы (на примере Малого театра)