示例#1
0
        private void btnMoveToExpedition_Click(object sender, EventArgs e)
        {
            string DocNumber = WriteOffDetailGrid.SelectedRows[0].Cells["DocNumber"].Value.ToString();
            Thread T         = new Thread(delegate() { SplashWindow.CreateSplash(); });

            T.Start();

            while (!SplashForm.bCreated)
            {
                ;
            }

            ZOVExpeditionForm ZOVExpeditionForm = new ZOVExpeditionForm(this, DocNumber);

            TopForm = ZOVExpeditionForm;

            ZOVExpeditionForm.ShowDialog();

            ZOVExpeditionForm.Close();
            ZOVExpeditionForm.Dispose();

            TopForm = null;
        }
示例#2
0
        private void dgvZDispatch_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (!CallFromLightStartForm || dgvZDispatch.SelectedRows.Count == 0)
            {
                return;
            }
            Thread T = new Thread(delegate() { SplashWindow.CreateSplash(); });

            T.Start();

            while (!SplashForm.bCreated)
            {
                ;
            }
            int    ZOVDispatchID           = 0;
            object PrepareDispatchDateTime = dgvZDispatch.SelectedRows[0].Cells["PrepareDispatchDateTime"].Value;

            if (dgvZDispatch.SelectedRows[0].Cells["DispatchID"].Value != DBNull.Value)
            {
                ZOVDispatchID = Convert.ToInt32(dgvZDispatch.SelectedRows[0].Cells["DispatchID"].Value);
            }
            if (PrepareDispatchDateTime == DBNull.Value)
            {
                return;
            }
            ZOVExpeditionForm ZOVExpeditionForm = new ZOVExpeditionForm(this,
                                                                        Convert.ToDateTime(dgvZDispatch.SelectedRows[0].Cells["PrepareDispatchDateTime"].Value), ZOVDispatchID);

            TopForm = ZOVExpeditionForm;

            ZOVExpeditionForm.ShowDialog();

            ZOVExpeditionForm.Close();
            ZOVExpeditionForm.Dispose();

            TopForm = null;
        }