90
Program.db.kodproject =
Int32.Parse(maingrid.CurrentRow.Cells[1].Value.ToString());
Formsoob w = new Formsoob();
w.ShowDialog();
if (Program.finisheditsoob)
{
Program.db.mainzapros(Program.db.statusmaingrid, maingrid, 1);
recordcounlabel.Text = Program.db.recordcount.ToString();
if ((Program.db.statusmaingrid == "mvx") || (Pro-
gram.db.statusmaingrid == "arxmvx"))
tree.SelectedNode.Text = "Входящая (" + Pro-
gram.db.recordcount.ToString() + ")";
else tree.SelectedNode.Text = "Исходящая (" + Pro-
gram.db.recordcount.ToString() + ")";
}
}
if (Program.db.statusmaingrid == "tipsoob") // мои исходящие архив
{
if (Program.db.roleuser != "admin")
{
MessageBox.Show("Доступ к данной функции вам закрыт");
return;
}
Program.insert = false;
Program.modified = false;
Program.tmpstring = maingrid.CurrentRow.Cells[1].Value.ToString();
Program.tmpint = Con-
vert.ToInt32(maingrid.CurrentRow.Cells[0].Value);
TipSoob w = new TipSoob();
w.ShowDialog();
if (Program.modified)
{
Program.db.mainzapros(Program.db.statusmaingrid, maingrid, 1);
recordcounlabel.Text = Program.db.recordcount.ToString();
tree.SelectedNode.Text = "Типы сообщений (" + Pro-
gram.db.recordcount.ToString() + ")";
// select(0);
}
}
if (Program.db.statusmaingrid == "sotr") // мои исходящие архив
{
if (Program.db.roleuser != "admin")
{
MessageBox.Show("Доступ к данной функции вам закрыт");
return;
}
Program.insert = false;
Program.modified = false;
Program.tmpstring = maingrid.CurrentRow.Cells[1].Value.ToString();
Program.tmpint = Con-
vert.ToInt32(maingrid.CurrentRow.Cells[0].Value);
Program.kodsotrudnika = main-
grid.CurrentRow.Cells[0].Value.ToString();
fsotrudnik w = new fsotrudnik();
w.ShowDialog();
if (Program.modified)
{
Program.db.mainzapros(Program.db.statusmaingrid, maingrid, 1);
recordcounlabel.Text = Program.db.recordcount.ToString();
tree.SelectedNode.Text = "Сотрудники (" + Pro-
gram.db.recordcount.ToString() + ")";
}