Example #1
0
        // public static string ino;
        private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            Payments.com = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            INV_REF s = new INV_REF();

            nam = dataGridView1.SelectedRows[0].Cells[2].Value.ToString();
            s.ShowDialog();
        }
Example #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            save1();
            // radioButton1.Checked = false;
            panel1.Visible = false;
            Payments.com   = Convert.ToString(so1);
            nam            = nam1;
            INV_REF in1 = new INV_REF();

            in1.ShowDialog();
        }
Example #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();
                    }
                }
            }
        }