Exemplo n.º 1
0
        private void bbiShow_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int Ref = 0;

            if (Selected == "grid1")
            {
                Ref = int.Parse(grdGrid.GetFocusedRowCellValue("Ref").ToString());
            }
            else if (Selected == "grid2")
            {
                Ref = int.Parse(gridView1.GetFocusedRowCellValue("Ref").ToString());
            }


            FrmBuyOrder order = new FrmBuyOrder();

            order._FormMod = Enums.enmFormMod.Diger;
            order._Ref     = Ref;
            order.ShowDialog();
        }
Exemplo n.º 2
0
        private void treeBuy_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            TreeListHitInfo hi = treeBuy.CalcHitInfo(e.Location);

            if (hi.HitInfoType == DevExpress.XtraTreeList.HitInfoType.Cell)
            {
                if (hi.Node[cololaylar].ToString() == "Tedarikçi Cari Hesapları")
                {
                    Sell.FrmCurrentList list = new Sell.FrmCurrentList();
                    list.MdiParent = this;
                    list.Show();
                }

                if (hi.Node[cololaylar].ToString() == "Hizmet Tanımları")
                {
                    Buy.FrmBuyServices services = new Buy.FrmBuyServices();
                    services.MdiParent = this;
                    services.Show();
                }

                else if (hi.Node[cololaylar].ToString() == "Satınalma Fiyat Listeleri")
                {
                    Buy.FrmBuyList list = new Buy.FrmBuyList();
                    db.AddParameterValue("@date", DateTime.Now.ToShortDateString(), SqlDbType.Date);
                    FormFill(@"SELECT        PL.Ref as Ref, PL.code AS [Liste Kodu], PL.name AS [Liste Adı]
                    FROM            StBuyPriceList PL with(nolock)
                    WHERE PL.active = 1 /*AND  @date between PL.startDate and PL.finishDate*/
                    ", "Alış Fiyatları", list);
                }

                else if (hi.Node[cololaylar].ToString() == "Satınalma Talebi")
                {
                    Buy.FrmBuyOrder order = new Buy.FrmBuyOrder();
                    FormFill(@"SELECT        BO.Ref as Ref, BO.code AS [Sipariş Kodu], BO.name AS [Sipariş Adı], BO.Date AS [Sipariş Tarihi], BO.totalPrice as [Toplam Tutar] ,BR.name as [Şube], WH.name as [Depo]
FROM            StBuyOrder BO with(nolock) 
INNER JOIN AtlasSys.dbo.sysBranch BR ON BR.Ref = BO.branchRef
INNER JOIN AtlasSys.dbo.sysWhouse WH ON WH.Ref = BO.whouseRef
WHERE        (BO.state = 1) ", "Satınalma Talepleri", order);
                }

                else if (hi.Node[cololaylar].ToString() == "Hizmet Satınalma Talebi")
                {
                    Buy.FrmServiceOrder order = new Buy.FrmServiceOrder();
                    FormFill(@"SELECT        BO.Ref as Ref, BO.code AS [Hizmet Kodu], BO.name AS [Hizmet Adı], BO.Date AS [Hizmet Tarihi],BO.totalPrice as [Toplam Tutar], BR.name as [Şube] 
FROM            StBuyServiceOrder BO with(nolock) 
INNER JOIN AtlasSys.dbo.sysBranch BR ON BR.Ref = BO.branchRef
WHERE        (BO.state = 1) ", "Hizmet Satınalma Talepleri", order);
                }

                else if (hi.Node[cololaylar].ToString() == "Toplu Satınalma Talebi Kapatma")
                {
                    Buy.FrmOrderList orderList = new Buy.FrmOrderList();
                    orderList.MdiParent = this;
                    orderList.Show();
                }
                else if (hi.Node[cololaylar].ToString() == "Alım İade Faturası")
                {
                    Buy.FrmBuyReturn Ret = new Buy.FrmBuyReturn();
                    FormFill(@"", "Alım İade Faturası", Ret);
                }
            }
        }