private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridView1.CurrentCell == dataGridView1.CurrentRow.Cells[5])
            {
                if (dataGridView1.CurrentRow.Cells[3].Value.ToString().Contains("بيع"))
                {
                    Show_Details_Purchasing_Customer showDetails = new Show_Details_Purchasing_Customer(dataGridView1.CurrentRow.Cells[0].Value, false);
                    showDetails.ShowDialog();
                }
                else if (dataGridView1.CurrentRow.Cells[3].Value.ToString().Contains("مرتجع من عميل"))
                {
                    Show_Details_Purchasing_Customer showDetails = new Show_Details_Purchasing_Customer(dataGridView1.CurrentRow.Cells[0].Value, true);
                    showDetails.ShowDialog();
                }
                else if (dataGridView1.CurrentRow.Cells[3].Value.ToString().Contains("شراء"))
                {
                    ShowDetails_Purchasing_Supplier showDetails = new ShowDetails_Purchasing_Supplier(dataGridView1.CurrentRow.Cells[0].Value, true);
                    showDetails.ShowDialog();
                }
                else if (dataGridView1.CurrentRow.Cells[3].Value.ToString().Contains("مرتجع الى مورد"))
                {
                    ShowDetails_Purchasing_Supplier showDetails = new ShowDetails_Purchasing_Supplier(dataGridView1.CurrentRow.Cells[0].Value, false);
                    showDetails.ShowDialog();
                }

                //Store_BillDetails store_ = new Store_BillDetails(dataGridView1.CurrentRow.Cells[0].Value.ToString(),
                //                                                 dataGridView1.CurrentRow.Cells[1].Value.ToString(),
                //                                                 dataGridView1.CurrentRow.Cells[3].Value.ToString(),
                //                                                 dataGridView1.CurrentRow.Cells[4].Value.ToString()
                //    );
                //store_.ShowDialog();
            }
        }
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.CurrentCell == dataGridView1.CurrentRow.Cells[8])
     {
         if (dataGridView1.CurrentRow.Cells[7].Value.ToString().Contains("شراء"))
         {
             ShowDetails_Purchasing_Supplier showDetails = new ShowDetails_Purchasing_Supplier(dataGridView1.CurrentRow.Cells[0].Value, true);
             showDetails.ShowDialog();
         }
         else if (dataGridView1.CurrentRow.Cells[7].Value.ToString().Contains("مرتجع"))
         {
             ShowDetails_Purchasing_Supplier showDetails = new ShowDetails_Purchasing_Supplier(dataGridView1.CurrentRow.Cells[0].Value, false);
             showDetails.ShowDialog();
         }
         else if (dataGridView1.CurrentRow.Cells[7].Value.ToString() == "تحويل بنكى")
         {
             ShowDetails_Bank_Supplier showDetails = new ShowDetails_Bank_Supplier(dataGridView1.CurrentRow.Cells[0].Value);
             showDetails.ShowDialog();
         }
         else if (dataGridView1.CurrentRow.Cells[7].Value.ToString() == "تسديد نقدى")
         {
             ShowDetails_Payback_Supplier showDetails = new ShowDetails_Payback_Supplier(dataGridView1.CurrentRow.Cells[0].Value, dataGridView1.CurrentRow.Cells[7].Value);
             showDetails.ShowDialog();
         }
         else if (dataGridView1.CurrentRow.Cells[7].Value.ToString() == "خصم")
         {
             ShowDetails_Payback_Supplier showDetails = new ShowDetails_Payback_Supplier(dataGridView1.CurrentRow.Cells[0].Value, dataGridView1.CurrentRow.Cells[7].Value);
             showDetails.ShowDialog();
         }
     }
 }
Example #3
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.CurrentCell == dataGridView1.CurrentRow.Cells[8])
     {
         if (dataGridView1.CurrentRow.Cells[7].Value.ToString() == "تسديد الى مورد")
         {
             ShowDetails_Bank_Supplier showDetails = new ShowDetails_Bank_Supplier(dataGridView1.CurrentRow.Cells[0].Value);
             showDetails.ShowDialog();
         }
         else if (dataGridView1.CurrentRow.Cells[7].Value.ToString() == "تسديد من عميل")
         {
             ShowDetails_Bank_Customer showDetails = new ShowDetails_Bank_Customer(dataGridView1.CurrentRow.Cells[0].Value);
             showDetails.ShowDialog();
         }
         else if (dataGridView1.CurrentRow.Cells[7].Value.ToString() == "ايراد من بيع")
         {
             Show_Details_Purchasing_Customer showDetails = new Show_Details_Purchasing_Customer(dataGridView1.CurrentRow.Cells[0].Value, false);
             showDetails.ShowDialog();
         }
         else if (dataGridView1.CurrentRow.Cells[7].Value.ToString() == "دفع من شراء")
         {
             ShowDetails_Purchasing_Supplier showDetails = new ShowDetails_Purchasing_Supplier(dataGridView1.CurrentRow.Cells[0].Value, true);
             showDetails.ShowDialog();
         }
         else if (dataGridView1.CurrentRow.Cells[7].Value.ToString() == "ايراد")
         {
         }
     }
 }
Example #4
0
 private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.CurrentCell == dataGridView1.CurrentRow.Cells[7])
     {
         if (dataGridView1.CurrentRow.Cells[6].Value.ToString().Contains("ايراد من عميل"))
         {
             Show_Details_Purchasing_Customer showDetails = new Show_Details_Purchasing_Customer(dataGridView1.CurrentRow.Cells[0].Value, false);
             showDetails.ShowDialog();
         }
         else if (dataGridView1.CurrentRow.Cells[6].Value.ToString() == "تسديد من عميل")
         {
             ShowDetails_Payback_Customer showDetails = new ShowDetails_Payback_Customer(dataGridView1.CurrentRow.Cells[0].Value, "تسديد نقدى");
             showDetails.ShowDialog();
         }
         else if (dataGridView1.CurrentRow.Cells[6].Value.ToString().Contains("صرف الى مورد"))
         {
             ShowDetails_Purchasing_Supplier showDetails = new ShowDetails_Purchasing_Supplier(dataGridView1.CurrentRow.Cells[0].Value, true);
             showDetails.ShowDialog();
         }
         else if (dataGridView1.CurrentRow.Cells[6].Value.ToString() == "تسديد الى مورد")
         {
             ShowDetails_Payback_Supplier showDetails = new ShowDetails_Payback_Supplier(dataGridView1.CurrentRow.Cells[0].Value, "تسديد نقدى");
             showDetails.ShowDialog();
         }
     }
 }
        private void gv_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (gv.CurrentCell == gv.CurrentRow.Cells[7])
            {
                if (gv.CurrentRow.Cells[6].Value.ToString().Contains("شراء"))
                {
                    ShowDetails_Purchasing_Supplier showDetails = new ShowDetails_Purchasing_Supplier(gv.CurrentRow.Cells[0].Value, true);
                    showDetails.ShowDialog();
                }
                else if (gv.CurrentRow.Cells[6].Value.ToString().Contains("مرتجع"))
                {
                    ShowDetails_Purchasing_Supplier showDetails = new ShowDetails_Purchasing_Supplier(gv.CurrentRow.Cells[0].Value, false);
                    showDetails.ShowDialog();
                }
                else if (gv.CurrentRow.Cells[6].Value.ToString() == "تحويل بنكى")
                {
                    ShowDetails_Bank_Supplier showDetails = new ShowDetails_Bank_Supplier(gv.CurrentRow.Cells[0].Value);
                    showDetails.ShowDialog();
                }
                else if (gv.CurrentRow.Cells[6].Value.ToString() == "تسديد نقدى")
                {
                    ShowDetails_Payback_Supplier showDetails = new ShowDetails_Payback_Supplier(gv.CurrentRow.Cells[0].Value, gv.CurrentRow.Cells[6].Value);
                    showDetails.ShowDialog();
                }
                else if (gv.CurrentRow.Cells[6].Value.ToString() == "خصم")
                {
                    ShowDetails_Payback_Supplier showDetails = new ShowDetails_Payback_Supplier(gv.CurrentRow.Cells[0].Value, gv.CurrentRow.Cells[6].Value);
                    showDetails.ShowDialog();
                }


                //if(gv.CurrentCell==gv.CurrentRow.Cells[7])
                //{
                //    if(gv.CurrentRow.Cells[6].Value.ToString()!="تحويل من عميل")
                //    {
                //        Form1 BillDetails = new Form1(int.Parse(gv.CurrentRow.Cells[0].Value.ToString()), gv.CurrentRow.Cells[6].Value);
                //        BillDetails.ShowDialog();
                //    }
                //    else
                //    {
                //        MessageBox.Show("لا يمكن عرض التفاصيل");
                //    }
                //}
            }
        }
Example #6
0
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridView1.CurrentCell == dataGridView1.CurrentRow.Cells[7])
            {
                if (dataGridView1.CurrentRow.Cells[6].Value.ToString() == "تسديد الى مورد")
                {
                    ShowDetails_Bank_Supplier showDetails = new ShowDetails_Bank_Supplier(dataGridView1.CurrentRow.Cells[0].Value);
                    showDetails.ShowDialog();
                }
                else if (dataGridView1.CurrentRow.Cells[6].Value.ToString() == "تسديد من عميل")
                {
                    ShowDetails_Bank_Customer showDetails = new ShowDetails_Bank_Customer(dataGridView1.CurrentRow.Cells[0].Value);
                    showDetails.ShowDialog();
                }
                else if (dataGridView1.CurrentRow.Cells[6].Value.ToString() == "ايراد من بيع")
                {
                    Show_Details_Purchasing_Customer showDetails = new Show_Details_Purchasing_Customer(dataGridView1.CurrentRow.Cells[0].Value, false);
                    showDetails.ShowDialog();
                }
                else if (dataGridView1.CurrentRow.Cells[6].Value.ToString() == "دفع من شراء")
                {
                    ShowDetails_Purchasing_Supplier showDetails = new ShowDetails_Purchasing_Supplier(dataGridView1.CurrentRow.Cells[0].Value, true);
                    showDetails.ShowDialog();
                }
                else if (dataGridView1.CurrentRow.Cells[6].Value.ToString() == "ايراد")
                {
                }
            }



            //if (dataGridView1.CurrentRow.Cells[6].Value.ToString() != "ايداع الى البنك")
            //{
            //    Bank_BillDetaails BillDetails = new Bank_BillDetaails(int.Parse(dataGridView1.CurrentRow.Cells[0].Value.ToString())
            //                                                                 , dataGridView1.CurrentRow.Cells[6].Value
            //                                                                 , dataGridView1.CurrentRow.Cells[5].Value
            //                                                                 );
            //    BillDetails.ShowDialog();
            //}
        }