Esempio n. 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);
 }
Esempio n. 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;
 }
Esempio n. 3
0
        public rptStokDurumu()
        {
            InitializeComponent();

            BenimSalonumContext context = new BenimSalonumContext();

            StokDAL stokDal = new StokDAL();

            ObjectDataSource stokDataSource = new ObjectDataSource {
                DataSource = stokDal.StokListele(context)
            };

            this.DataSource = stokDataSource;

            colStokKodu.DataBindings.Add("Text", this.DataAdapter, "StokKodu");
            colStokAdi.DataBindings.Add("Text", this.DataAdapter, "StokAdi");
            colBarkod.DataBindings.Add("Text", this.DataAdapter, "Barkod");
            colBirimi.DataBindings.Add("Text", this.DataAdapter, "Birimi");
            colStokKdv.DataBindings.Add("Text", this.DataAdapter, "SatisKdv");
            colStokGiris.DataBindings.Add("Text", this.DataAdapter, "StokGiris");
            colStokCikis.DataBindings.Add("Text", this.DataAdapter, "StokCikis");
            colMevcutStok.DataBindings.Add("Text", this.DataAdapter, "MevcutStok");

            KullaniciAdi.Text = RoleTool.kullaniciEntity.KullaniciAdi;
        }
Esempio n. 4
0
        public rptStokdurumu()
        {
            InitializeComponent();
            netsatisContext context = new netsatisContext();
            StokDAL         stokDal = new StokDAL();

            ObjectDataSource stokdatasource = new ObjectDataSource {
                DataSource = stokDal.StokListele(context)
            };

            this.DataSource = stokdatasource;
            colstokkodu.DataBindings.Add("Text", this.DataSource, "StokKodu");
            colbarkod.DataBindings.Add("Text", this.DataSource, "Barkod");

            colstokadı.DataBindings.Add("Text", this.DataSource, "StokAdi");
            colbirimi.DataBindings.Add("Text", this.DataSource, "Birimi");
            colstokgrubu.DataBindings.Add("Text", this.DataSource, "StokGrubu");
            colstokaltgrubu.DataBindings.Add("Text", this.DataSource, "StokAltGrubu");
            colstokkdv.DataBindings.Add("Text", this.DataSource, "SatisKdv");
            colstokgiri.DataBindings.Add("Text", this.DataSource, "StokGiris");

            colstokcik.DataBindings.Add("Text", this.DataSource, "StokCikis");

            colmevcutsto.DataBindings.Add("Text", this.DataSource, "MevcutStok");
        }
Esempio n. 5
0
        public rptStokDurumu()
        {
            InitializeComponent();
            NetSatisContext  context        = new NetSatisContext();
            StokDAL          stokDal        = new StokDAL();
            ObjectDataSource stokDataSource = new ObjectDataSource {
                DataSource = stokDal.StokListele(context)
            };

            this.DataSource = stokDataSource;

            colStokKodu.DataBindings.Add("Text", this.DataSource, "StokKodu");
            colStokAdi.DataBindings.Add("Text", this.DataSource, "StokAdi");
            colBirim.DataBindings.Add("Text", this.DataSource, "Birim");
            colSatisKdv.DataBindings.Add("Text", this.DataSource, "SatisKdv");
            colStokGiris.DataBindings.Add("Text", this.DataSource, "StokGiris");
            colStokCikis.DataBindings.Add("Text", this.DataSource, "StokCikis");
            colMevcutStok.DataBindings.Add("Text", this.DataSource, "MevcutStok");


            XRSummary sumStokToplam = new XRSummary();

            sumStokToplam.Func         = SummaryFunc.Sum;
            sumStokToplam.Running      = SummaryRunning.Group;
            sumStokToplam.FormatString = "{0:N2}";

            lblToplamStok.DataBindings.Add("Text", null, "MevcutStok");
            lblToplamStok.Summary = sumStokToplam;
        }
Esempio n. 6
0
        public RptStokDurumu()
        {
            InitializeComponent();
            YemekYemekContext context        = new YemekYemekContext();
            StokDAL           stokdal        = new StokDAL();
            ObjectDataSource  stokdataSource = new ObjectDataSource {
                DataSource = stokdal.StokListele(context)
            };

            this.DataSource = stokdataSource;
            colStokAdi.DataBindings.Add("Text", this.DataSource, "StokAdi");
            colStokKodu.DataBindings.Add("Text", this.DataSource, "StokKodu");
            colBarkod.DataBindings.Add("Text", this.DataSource, "Barkod");
            colBirimi.DataBindings.Add("Text", this.DataSource, "Birimi");
            colStokGrubu.DataBindings.Add("Text", this.DataSource, "StokGrubu");
            colStokAltGrubu.DataBindings.Add("Text", this.DataSource, "StokAltGrubu");
            colStokGiris.DataBindings.Add("Text", this.DataSource, "StokGiris");
            colStokCikis.DataBindings.Add("Text", this.DataSource, "StokCikis");
            colMevcutStok.DataBindings.Add("Text", this.DataSource, "MevcutStok");
            colSatisKdv.DataBindings.Add("Text", this.DataSource, "SatisKdv");
        }
Esempio n. 7
0
        public rptStokDurumu()
        {
            InitializeComponent();
            FaysConceptContext context = new FaysConceptContext();
            StokDAL            stokDAL = new StokDAL();

            //linq sorguları yapmak için
            ObjectDataSource stokDataSource = new ObjectDataSource {
                DataSource = stokDAL.StokListele(context)
            };

            this.DataSource = stokDataSource;
            colStokKodu.DataBindings.Add("Text", this.DataSource, "StokKodu");
            colBarkodNo.DataBindings.Add("Text", this.DataSource, "BarkodNo");
            colStokAdi.DataBindings.Add("Text", this.DataSource, "StokAdi");
            colBirimi.DataBindings.Add("Text", this.DataSource, "Birimi");
            colStokGrubu.DataBindings.Add("Text", this.DataSource, "StokGrubu");
            colStokAltGrubu.DataBindings.Add("Text", this.DataSource, "StokAltGrubu");
            colStokGiris.DataBindings.Add("Text", this.DataSource, "StokGiris");
            colStokCikis.DataBindings.Add("Text", this.DataSource, "StokCikis");
            colMevcutStok.DataBindings.Add("Text", this.DataSource, "MevcutStok");
        }
Esempio n. 8
0
 public void GetAll()
 {
     gridControl1.DataSource = stokdal.StokListele(context);
 }
Esempio n. 9
0
 public void listele()
 {
     gridControl1.DataSource = stokDal.StokListele(context);
 }
Esempio n. 10
0
 public void GetAll()
 {
     StokGridControl.DataSource = stokDal.StokListele(context);
 }
Esempio n. 11
0
 private void frmStokSec_Load(object sender, EventArgs e)
 {
     gridcontStoklar.DataSource = stokDAL.StokListele(context);
 }
Esempio n. 12
0
 private void FrmStokSec_Load(object sender, EventArgs e)
 {
     gridConStoklar.DataSource = stokdal.StokListele(context);
 }
Esempio n. 13
0
 private void FrmStokSec_Load(object sender, EventArgs e)
 {
     GridContStokSec.DataSource = stokDal.StokListele(context);
 }
Esempio n. 14
0
 private void GetAll()
 {
     gridControl1.DataSource = stokDAL.StokListele(context);
 }
Esempio n. 15
0
        public rptStokDurumBakiye()
        {
            InitializeComponent();
            NetSatisContext  context        = new NetSatisContext();
            StokDAL          stokDal        = new StokDAL();
            ObjectDataSource stokDataSource = new ObjectDataSource {
                DataSource = stokDal.StokListele(context, false)
            };

            this.DataSource = stokDataSource;

            colStokKodu.DataBindings.Add("Text", this.DataSource, "StokKodu");
            colStokAdi.DataBindings.Add("Text", this.DataSource, "StokAdi");
            colBirim.DataBindings.Add("Text", this.DataSource, "Birim");

            //colAlisFiyati.DataBindings.Add("Text", this.DataSource, "AlisFiyati3");
            //var stk = (int?)this.colAlisFiyati.Value;
            //if (!stk.HasValue && stk != 0)
            //    colAlisFiyati.DataBindings.Add("Text", this.DataSource, "AlisFiyati2");
            //stk = (int?)this.colAlisFiyati.Value;
            //if (!stk.HasValue && stk != 0)
            //    colAlisFiyati.DataBindings.Add("Text", this.DataSource, "AlisFiyati1");

            colAlisFiyati.DataBindings.Add("Text", this.DataSource, "AlisFiyati1");

            colSatisFiyat.DataBindings.Add("Text", this.DataSource, "SatisFiyati1");
            colMevcutStok.DataBindings.Add("Text", this.DataSource, "MevcutStok");

            CalculatedField calcTutar = new CalculatedField();

            this.CalculatedFields.Add(calcTutar);
            calcTutar.Name       = "Tutar";
            calcTutar.Expression = "[MevcutStok]*[AlisFiyati1]";

            colBakiye.DataBindings.Add("Text", null, "Tutar", "{0:C2}");

            CalculatedField calcTutar2 = new CalculatedField();

            this.CalculatedFields.Add(calcTutar2);
            calcTutar2.Name       = "Tutar2";
            calcTutar2.Expression = "[MevcutStok]*[SatisFiyati1]";

            colBakiye2.DataBindings.Add("Text", null, "Tutar2", "{0:C2}");

            XRSummary sumStokToplam = new XRSummary();

            sumStokToplam.Func         = SummaryFunc.Sum;
            sumStokToplam.Running      = SummaryRunning.Group;
            sumStokToplam.FormatString = "{0:C2}";

            XRSummary sumStokToplam2 = new XRSummary();

            sumStokToplam2.Func         = SummaryFunc.Sum;
            sumStokToplam2.Running      = SummaryRunning.Group;
            sumStokToplam2.FormatString = "{0:C2}";

            lblToplamBakiye.DataBindings.Add("Text", null, "Tutar");
            lblToplamBakiye.Summary = sumStokToplam;

            lblToplamBakiye2.DataBindings.Add("Text", null, "Tutar2");
            lblToplamBakiye2.Summary = sumStokToplam2;
        }