Beispiel #1
0
 public override void Remove(object obj)
 {
     if (obj is Enova.Business.Old.Core.IDeleteRecord)
     {
         ((Enova.Business.Old.Core.IDeleteRecord)obj).DeleteRecord();
     }
     this.table = null;
     Reload();
 }
        protected override void LoadData()
        {
            DataSource = new Enova.Business.Old.Web.RejestrKorespondencji();

            if (DataGrid.SortedColumn == null)
            {
                DataGrid.Sort(DataGrid.Columns["DataWysylki"], ListSortDirection.Descending);
            }
        }
Beispiel #3
0
        protected override void OnParamValueChanged(DataContextParamEventArgs e)
        {
            this.table = null;
            this.Reload();

            /*
             * this.initTable();
             * this.Reset();
             */
            base.OnParamValueChanged(e);
        }
Beispiel #4
0
        private void initTable()
        {
            string kod = null;

            if (kontrachentSelect != null && kontrachentSelect.Value != null)
            {
                kod = ((Enova.API.CRM.Kontrahent)kontrachentSelect.Value).Kod;
            }

            table = new Enova.Business.Old.Web.RejestrKorespondencji(kod);
            if (this.SupportsSorting && IsSorted)
            {
                this.table.Sort(this.GetSortComparer());
            }
        }
Beispiel #5
0
 public override void EndEdit()
 {
     base.EndEdit();
     this.table = null;
     this.Reload();
 }