Esempio n. 1
0
        private void dgvForm_DoubleClick(object sender, EventArgs e)
        {
            if (dgvForm.SelectedRows == null)
            {
                return;
            }

            string status  = dgvForm.SelectedRows[0].Cells[0].Value.ToString().Trim();
            string type    = dgvForm.SelectedRows[0].Cells[1].Value.ToString().Trim();
            string chaseno = dgvForm.SelectedRows[0].Cells[8].Value.ToString().Trim();

            if (type.StartsWith("R3"))
            {
                //FormR3Application form = new FormR3Application("view", chaseno, status);
                FormR3 form = new FormR3(chaseno);
                if (form.ShowDialog() == DialogResult.OK)
                {
                    LoadData();
                }
            }
            else
            {
                FormITApplication form = new FormITApplication("view", type, chaseno, status);
                if (form.ShowDialog() == DialogResult.OK)
                {
                    LoadData();
                }
            }
        }
Esempio n. 2
0
        private void tsbtnNew_Click(object sender, EventArgs e)
        {
            FormSelection form = new FormSelection();

            if (form.ShowDialog() == DialogResult.OK)
            {
                if (GlobalService.ApplicationForm == "itservice")
                {
                    FormITApplication app = new FormITApplication("new", "", "", "");
                    if (app.ShowDialog() == DialogResult.OK)
                    {
                        LoadData();
                    }
                }

                if (GlobalService.ApplicationForm == "r3application")
                {
                    FormR3Application app = new FormR3Application("new", "", "");
                    if (app.ShowDialog() == DialogResult.OK)
                    {
                        LoadData();
                    }
                }
            }

            //FormITApplication form = new FormITApplication("new");
            //if (form.ShowDialog() == DialogResult.OK)
            // LoadData();
        }