Beispiel #1
0
        public frmCariSec(bool cokluSecim = false)
        {
            InitializeComponent();
            if (cokluSecim)
            {
                lblUyari.Visible = true;
                gridView1.OptionsSelection.MultiSelect = true;
            }

            gridControl1.DataSource = cariDal.GetCariler(context);
        }
Beispiel #2
0
 public frmEkstre()
 {
     InitializeComponent();
     dtpBaslangic.DateTime = new DateTime(DateTime.Now.Year, 1, 1);
     dtpBitis.DateTime     = new DateTime(DateTime.Now.Year, 12, 31);
     dtpBaslangic.Properties.Mask.MaskType = MaskType.DateTimeAdvancingCaret;
     dtpBitis.Properties.Mask.MaskType     = MaskType.DateTimeAdvancingCaret;
     gridControl1.DataSource = cariDal.GetCariler(context);
 }
Beispiel #3
0
        public rptCariBakiye()
        {
            InitializeComponent();
            NetSatisContext  context = new NetSatisContext();
            CariDAL          cariDal = new CariDAL();
            ObjectDataSource cariBakiyeDataSource = new ObjectDataSource {
                DataSource = cariDal.GetCariler(context)
            };

            this.DataSource = cariBakiyeDataSource;

            colCariKodu.DataBindings.Add("Text", this.DataSource, "CariKodu");
            colCariAdi.DataBindings.Add("Text", this.DataSource, "CariAdi");
            colIl.DataBindings.Add("Text", this.DataSource, "Il");
            colIlce.DataBindings.Add("Text", this.DataSource, "Ilce");
            colAlacak.DataBindings.Add("Text", this.DataSource, "Alacak");
            colBorc.DataBindings.Add("Text", this.DataSource, "Borc");
            colDurum.DataBindings.Add("Text", this.DataSource, "HesapBakiye");

            CalculatedField calcBakiye = new CalculatedField();

            this.CalculatedFields.Add(calcBakiye);
            calcBakiye.Name       = "Bakiye";
            calcBakiye.Expression = "[Alacak]-[Borc]";

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

            XRSummary sumToplamTutar = new XRSummary();

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

            #region Güncellenen Alan
            CalculatedField calcBorcAlacak = new CalculatedField();
            this.CalculatedFields.Add(calcBorcAlacak);
            calcBorcAlacak.Name = "SonDurum";
            //calcBorcAlacak.Expression = "Iif([lblGenelToplam] >= 0, 'Alacak Var', 'Borç Var')";
            calcBorcAlacak.Expression = "Iif([lblGenelToplam] > 0, 'Alacak Var', 'Borç Var')";
            #endregion

            lblGenelToplam.DataBindings.Add("Text", null, "Bakiye");
            lblGenelToplam.Summary = sumToplamTutar;

            lblDurum.DataBindings.Add("Text", null, "SonDurum");
        }
Beispiel #4
0
 private void FrmCariSec_Load(object sender, EventArgs e)
 {
     gridControl1.DataSource = cariDal.GetCariler(context);
 }
Beispiel #5
0
 public void GetAll()
 {
     gridControl1.DataSource = cariDal.GetCariler(context);
 }