Example #1
0
 public frmTarihliKar()
 {
     InitializeComponent();
     lokKategori.Properties.DataSource = kategoriDal.GetAll(context);
     lookAnaGrup.Properties.DataSource = anagrupDal.GetAll(context);
     lookAltGrup.Properties.DataSource = altgrupDal.GetAll(context);
     lookMarka.Properties.DataSource   = stokDal.StokListele(context);
     lookUretici.Properties.DataSource = stokDal.StokListele(context);
     dtpBaslangic.DateTime             = new DateTime(DateTime.Now.Year, 1, 1);
     dtpBitis.DateTime = new DateTime(DateTime.Now.Year, 12, 31);
 }
Example #2
0
 public frmTarihliAlis()
 {
     InitializeComponent();
     lokKategori.Properties.DataSource = kategoriDal.GetAll(context);
     lookAnaGrup.Properties.DataSource = anagrupDal.GetAll(context);
     lookAltGrup.Properties.DataSource = altgrupDal.GetAll(context);
     lookMarka.Properties.DataSource   = stokDal.StokListele(context);
     lookUretici.Properties.DataSource = stokDal.StokListele(context);
     dtpBaslangic.DateTime             = new DateTime(DateTime.Now.Year, 1, 1, 00, 00, 00);
     dtpBitis.DateTime = new DateTime(DateTime.Now.Year, 12, 31, 23, 59, 59);
     dtpBaslangic.Properties.Mask.MaskType = MaskType.DateTimeAdvancingCaret;
     dtpBitis.Properties.Mask.MaskType     = MaskType.DateTimeAdvancingCaret;
 }
        public async Task <IEnumerable <Kategori> > GetAll()
        {
            KategoriDAL kategoriDal = new KategoriDAL();

            try
            {
                return(await kategoriDal.GetAll());
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Example #4
0
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     gvKategori.DataSource = kategoriDAL.GetAll();
     gvKategori.DataBind();
 }
Example #5
0
 // The return type can be changed to IEnumerable, however to support
 // paging and sorting, the following parameters must be added:
 //     int maximumRows
 //     int startRowIndex
 //     out int totalRowCount
 //     string sortByExpression
 public IQueryable <SampleEF.Data.Kategori> gvKategori_GetData()
 {
     kategoriDal = new KategoriDAL();
     return(kategoriDal.GetAll());
 }
        // GET: api/Kategori
        public IEnumerable <Kategori> Get()
        {
            KategoriDAL kategoriDAL = new KategoriDAL();

            return(kategoriDAL.GetAll());
        }
Example #7
0
 public List <Kategori> GetAll()
 {
     kategoriDAL = new KategoriDAL();
     return(kategoriDAL.GetAll().ToList());
 }
Example #8
0
 public void Listele()
 {
     gridContKategoriler.DataSource = kategoriDal.GetAll(context);
 }