protected void EmployeesGrid_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
        {
            string Adi = e.NewValues["Adi"] == null ? "" : e.NewValues["Adi"].ToString();

            db.I_Grup(Adi);
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            Update();
        }
        protected void EmployeesGrid_RowDeleting(object sender, DevExpress.Web.Data.ASPxDataDeletingEventArgs e)
        {
            int          rowindex = EmployeesGrid.FindVisibleIndexByKeyValue(e.Keys[EmployeesGrid.KeyFieldName]);
            ASPxGridView grid     = (ASPxGridView)sender;
            var          id       = grid.GetRowValues(rowindex, "ID").ToString();

            db.D_Dokumanlar(Convert.ToInt32(id));
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            GridUpdating();
        }
示例#3
0
        protected void EmployeesGrid_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e)
        {
            ASPxGridView grid = (ASPxGridView)sender;
            string       id   = grid.GetRowValues(grid.EditingRowVisibleIndex, "ID").ToString();
            string       onay = e.NewValues["Onay"].ToString();

            db.U_Siparis(Convert.ToInt32(id), Convert.ToInt32(onay));
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            Update();
        }
示例#4
0
        protected void EmployeesGrid_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
        {
            string adet   = e.NewValues["Adet"].ToString();
            string urunid = e.NewValues["UrunID"].ToString();
            string bayiid = e.NewValues["BayiID"].ToString();

            db.I_Siparislerim(Convert.ToInt32(bayiid), Convert.ToInt32(urunid), Convert.ToInt32(adet));
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            Update();
        }
        protected void EmployeesGrid_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
        {
            string AdiSoyadi = e.NewValues["AdiSoyadi"] == null ? "" : e.NewValues["AdiSoyadi"].ToString();
            string UserID    = e.NewValues["UserID"] == null ? "" : e.NewValues["UserID"].ToString();
            Guid   guid      = new Guid(UserID);

            db.I_MusteriTemsilcisi(AdiSoyadi, guid);
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            Update();
        }
        protected void EmployeesGrid_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e)
        {
            ASPxGridView grid = (ASPxGridView)sender;
            string       id   = grid.GetRowValues(grid.EditingRowVisibleIndex, "ID").ToString();
            string       Adi  = e.NewValues["Adi"] == null ? "" : e.NewValues["Adi"].ToString();

            db.U_Grup(Convert.ToInt32(id), Adi);
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            Update();
        }
        protected void EmployeesGrid_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
        {
            string       DokumanAdi = e.NewValues["DokumanAdi"].ToString();
            string       tipid      = e.NewValues["DokumanTipi_TipID5"].ToString();
            ASPxCheckBox checkBox   = EmployeesGrid.FindEditFormTemplateControl("ASPxGridViewTemplateReplacement6") as ASPxCheckBox;

            //ASPxCheckBox checkBox = ((ASPxGridView)sender).FindEditFormLayoutItemTemplateControl("ASPxGridViewTemplateReplacement6") as ASPxCheckBox;
            db.I_Dokuman(DokumanAdi, DataProvider.docAdi, Convert.ToBoolean(checkBox.Checked), Convert.ToInt32(tipid));
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            GridUpdating();
        }
        protected void EmployeesGrid_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
        {
            string      adet       = e.NewValues["Adet"].ToString();
            string      urunid     = e.NewValues["UrunID"].ToString();
            ProfileBase curProfile = ProfileBase.Create(Membership.GetUser().UserName);
            string      bayiid     = curProfile.GetPropertyValue("BayiID").ToString();

            db.I_Siparislerim(Convert.ToInt32(bayiid), Convert.ToInt32(urunid), Convert.ToInt32(adet));
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            Update();
        }
        protected void EmployeesGrid_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e)
        {
            ASPxGridView grid      = (ASPxGridView)sender;
            string       id        = grid.GetRowValues(grid.EditingRowVisibleIndex, "ID").ToString();
            string       AdiSoyadi = e.NewValues["AdiSoyadi"] == null ? "" : e.NewValues["AdiSoyadi"].ToString();
            string       UserID    = e.NewValues["UserID"] == null ? "" : e.NewValues["UserID"].ToString();
            Guid         guid      = new Guid(UserID);

            db.U_MusteriTemsilcisi(Convert.ToInt32(id), AdiSoyadi, guid);
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            Update();
        }
        protected void EmployeesGrid_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
        {
            string UrunKodu          = e.NewValues["UrunKodu"] == null ? "" : e.NewValues["UrunKodu"].ToString();
            string resimadi          = DataProvider.urunresmi;
            string UrunAdi           = e.NewValues["UrunAdi"] == null ? "" : e.NewValues["UrunAdi"].ToString();
            string KategoriID_TipID4 = e.NewValues["KategoriID_TipID4"] == null ? "" : e.NewValues["KategoriID_TipID4"].ToString();
            string Marka             = e.NewValues["Marka"] == null ? "" : e.NewValues["Marka"].ToString();
            string Model             = e.NewValues["Model"] == null ? "" : e.NewValues["Model"].ToString();
            string Fiyat             = e.NewValues["Fiyat"] == null ? "" : e.NewValues["Fiyat"].ToString();

            db.I_UrunTanimlari(UrunKodu, UrunAdi, Convert.ToInt32(KategoriID_TipID4), Marka, Model, Convert.ToDecimal(Fiyat), resimadi);
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            Update();
        }
        protected void EmployeesGrid_RowUpdating(object sender, DevExpress.Web.Data.ASPxDataUpdatingEventArgs e)
        {
            ASPxGridView grid              = (ASPxGridView)sender;
            string       id                = grid.GetRowValues(grid.EditingRowVisibleIndex, "ID").ToString();
            string       UrunKodu          = e.NewValues["UrunKodu"] == null ? "" : e.NewValues["UrunKodu"].ToString();
            string       resimadi          = DataProvider.urunresmi;
            string       UrunAdi           = e.NewValues["UrunAdi"] == null ? "" : e.NewValues["UrunAdi"].ToString();
            string       KategoriID_TipID4 = e.NewValues["KategoriID_TipID4"] == null ? "" : e.NewValues["KategoriID_TipID4"].ToString();
            string       Marka             = e.NewValues["Marka"] == null ? "" : e.NewValues["Marka"].ToString();
            string       Model             = e.NewValues["Model"] == null ? "" : e.NewValues["Model"].ToString();
            string       Fiyat             = e.NewValues["Fiyat"] == null ? "" : e.NewValues["Fiyat"].ToString();

            db.U_UrunTanimlari(Convert.ToInt32(id), UrunKodu, UrunAdi, Convert.ToInt32(KategoriID_TipID4),
                               Marka, Model, Convert.ToDecimal(Fiyat), resimadi);
            e.Cancel = true;
            EmployeesGrid.CancelEdit();
            Update();
        }