Example #1
0
        private void просмотрИРедактированиеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //mf.ViewEditMenuItem_Click(sender, e);
            if (dgSummon.SelectedRows.Count == 0)
            {
                MessageBox.Show("Извещение не выбрано!");
                return;
            }
            DBSummon      dbs = new DBSummon();
            SummonVO      svo = dbs.GetSummonByIDS(dgSummon.SelectedRows[0].Cells["ids"].Value.ToString());
            PreviousState ps  = new PreviousState(dgSummon);

            ShowSummon ss = new ShowSummon(mf.UVO, svo);

            ss.ShowDialog();

            //switch (mf.UVO.Role)
            //{
            //    case Roles.Manager:
            //        ShowSummon ss = new ShowSummon(mf.UVO,svo);
            //        ss.ShowDialog();
            //        break;
            //    case Roles.Ozis:
            //        ShowSummonOZIS ssozis = new ShowSummonOZIS(svo.IDS, mf.UVO,svo.ID);
            //        ssozis.ShowDialog();
            //        break;
            //    case Roles.Prod:
            //        ShowSummonPROD ssprod = new ShowSummonPROD(svo.IDS, mf.UVO,svo.ID);
            //        ssprod.ShowDialog();
            //        break;
            //    case Roles.OTK:
            //        ShowSummonOTK ssotk = new ShowSummonOTK(svo.IDS, mf.UVO,svo.ID);
            //        ssotk.ShowDialog();
            //        break;
            //    case Roles.Ware:
            //        ShowSummonWare ssware = new ShowSummonWare(svo.IDS, mf.UVO,svo.ID);
            //        ssware.ShowDialog();
            //        break;
            //    case Roles.Logist:
            //        ShowSummonLOG ssLOG = new ShowSummonLOG(svo.IDS, mf.UVO,svo.ID);
            //        ssLOG.ShowDialog();
            //        break;
            //    case Roles.Director:
            //        ShowSummonDIR ssDIR = new ShowSummonDIR(svo.IDS, mf.UVO,svo.ID);
            //        ssDIR.ShowDialog();
            //        break;
            //    case Roles.Wsh:
            //        ShowSummonWSH ssWSH = new ShowSummonWSH(svo.IDS, mf.UVO,svo.ID);
            //        ssWSH.ShowDialog();
            //        break;
            //    case Roles.Admin:
            //        ShowSummonDIR ssadmin = new ShowSummonDIR(svo.IDS, mf.UVO,svo.ID);
            //        ssadmin.ShowDialog();
            //        break;
            //}
            ReloadData();
            ps.Restore();
        }
Example #2
0
        private void bGoToSummon_Click(object sender, EventArgs e)
        {
            if (dgSumm.SelectedRows.Count == 0)
            {
                MessageBox.Show("Извещение не выбрано!");
                return;
            }
            DBSummon dbs = new DBSummon();
            SummonVO svo = dbs.GetSummonByID(dgSumm.SelectedRows[0].Cells["IDSUMMON"].Value.ToString());

            ShowSummon ss = new ShowSummon(UVO, svo);

            ss.ShowDialog();
            Remarks_Load(sender, e);
        }
Example #3
0
        private void button4_Click(object sender, EventArgs e)
        {
            if (dgSummon.SelectedRows.Count == 0)
            {
                return;
            }
            DBSummon dbs = new DBSummon();
            SummonVO svo = dbs.GetSummonByIDS(dgSummon.SelectedRows[0].Cells["ids"].Value.ToString());


            ShowSummon ss = new ShowSummon(new UVO_DIRECTOR(), svo);

            ss.Tag = "finished";
            ss.ShowDialog();
            //ShowSummonDIR ssDIR = new ShowSummonDIR(svo.IDS, null, svo.ID);
            //ssDIR.ShowDialog();
        }
Example #4
0
        private void dgSummon_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            if (e.RowIndex == -1)
            {
                return;
            }

            if (dgSummon.SelectedRows.Count == 0)
            {
                MessageBox.Show("Извещение не выбрано!");
                return;
            }
            DBSummon      dbs = new DBSummon();
            SummonVO      svo = dbs.GetSummonByIDS(dgSummon.SelectedRows[0].Cells["ids"].Value.ToString());
            PreviousState ps  = new PreviousState(dgSummon);

            ShowSummon ss = new ShowSummon(mf.UVO, svo);

            ss.ShowDialog();
        }