예제 #1
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            //messageBox.Show("Please select sales Line", e.ColumnIndex.ToString(), MessageBoxButtons.OK, MessageBoxIcon.Warning);
            JobIDtxt.Text = dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
            if (JobIDtxt.Text == "")
            {
                MessageBox.Show("Please select sales Line", JobIDtxt.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                if (e.ColumnIndex == 0)
                {
                    JobCard jobcard = new JobCard(Int32.Parse(JobIDtxt.Text), Int32.Parse(SalesLine.Text));
                    jobcard.Text = this.Text;
                    jobcard.Show();
                }
                else if (e.ColumnIndex > 0 && e.ColumnIndex < 2)
                {
                    ExoJobOrder salesline = new ExoJobOrder(Int32.Parse(JobIDtxt.Text));
                    salesline.Show();
                    salesline.GrantAccess(this.Text);
                }
                else

                {
                    this.Validate();
                    this.pRODJOBCARDBindingSource.EndEdit();
                    this.pROD_JOBCARDTableAdapter.Update(this.mESDataSet.PROD_JOBCARD);
                }
            }
        }
예제 #2
0
 private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (SalesID.Text != "")
     {
         ExoJobOrder salesline = new ExoJobOrder(Int32.Parse(SalesID.Text.ToString()));
         salesline.Show();
     }
 }
예제 #3
0
        private void Doubleclick(object sender, DataGridViewCellEventArgs e)
        {
            currRecord = e.RowIndex;

            FillControlers(0, false);
            ExoJobOrder salesline = new ExoJobOrder(Int32.Parse(SaleID.Text.ToString()));

            salesline.Show();
            this.Hide();
        }