//public static String sal;
        private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            Payments.com = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            SO_CRF s = new SO_CRF();

            s.Show();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            save1();
            Payments.com = sno;
            SO_CRF s = new SO_CRF();

            s.ShowDialog();
        }
示例#3
0
        private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            com = dataGridView1.SelectedRows[0].Cells[3].Value.ToString();
            string[] strArr = null;
            int      count  = 0;

            char[] splitchar = { '-' };
            strArr = com.Split(splitchar);
            string tem = null;

            for (count = 0; count <= strArr.Length - 1; count++)
            {
                if (count == strArr.Length - 1)
                {
                    tem = strArr[count];
                }

                //MessageBox.Show(strArr[count]);
            }
            // MessageBox.Show("Your Var"+tem);
            if (com.Equals("#RET-INV-" + tem))
            {
                com = tem;
                RCF r = new RCF();
                r.ShowDialog();
            }
            else
            {
                if (com.Equals("#SAO-" + tem))
                {
                    com = tem;
                    SO_CRF s = new SO_CRF();
                    s.Show();
                }
                else
                {
                    if (com.Equals("#REN-" + tem))
                    {
                        com         = tem;
                        Invoice.nam = dataGridView1.SelectedRows[0].Cells[4].Value.ToString();
                        INV_REF s = new INV_REF();
                        s.ShowDialog();
                    }
                }
            }
        }