Ejemplo n.º 1
0
        public RowsFilters ConvertFilter(DataRow _dataRow, RowsFilters _localeRow)
        {
            ConvertData convertData = new ConvertData(_dataRow, _localeRow);

            _localeRow.FiltersQuantityMin = convertData.ConvertDataDouble("QuantityMin");
            _localeRow.FiltersQuantityMax = convertData.ConvertDataDouble("QuantityMax");
            _localeRow.FiltersAmountMin   = convertData.ConvertDataDouble("AmountMin");
            _localeRow.FiltersAmountMax   = convertData.ConvertDataDouble("AmountMax");
            return(_localeRow);
        }
Ejemplo n.º 2
0
        public LocalRow Convert(DataRow _dataRow, LocalRow _localeRow)
        {
            SupplyTypeList supplyTypeList = new SupplyTypeList();
            ConvertData    convertData    = new ConvertData(_dataRow, _localeRow);

            _localeRow.ID           = convertData.ConvertDataInt32("ID");
            _localeRow.Status       = convertData.ConvertDataInt32("Status");
            _localeRow.StatusString = supplyTypeList.innerList.FirstOrDefault(x => x.ID == _localeRow.Status) != null?
                                      supplyTypeList.innerList.FirstOrDefault(x => x.ID == _localeRow.Status).Description : Properties.Resources.UndefindField;

            _localeRow.CreatedDate                 = convertData.ConvertDataDateTime("CreatedDate");
            _localeRow.CreatedDateString           = convertData.DateTimeConvertShortString(_localeRow.CreatedDate);
            _localeRow.LastModificatedDate         = convertData.ConvertDataDateTime("LastModificatedDate");
            _localeRow.LastModificatedDateString   = convertData.DateTimeConvertShortString(_localeRow.LastModificatedDate);
            _localeRow.CreatedUserID               = convertData.ConvertDataInt32("CreatedUserID");
            _localeRow.LastModificatedUserID       = convertData.ConvertDataInt32("LastModificatedUserID");
            _localeRow.CreatedUserIDString         = convertData.ConvertDataString("CreatedUserIDString");
            _localeRow.LastModificatedUserIDString = convertData.ConvertDataString("LastModificatedUserIDString");
            _localeRow.Invoice     = convertData.ConvertDataString("Invoice");
            _localeRow.TTN         = convertData.ConvertDataString("TTN");
            _localeRow.ManagerName = convertData.ConvertDataString("ManagerName");
            _localeRow.Delivery    = convertData.ConvertDataString("Delivery");
            _localeRow.Amount      = (Decimal)convertData.ConvertDataDouble("Amount");
            _localeRow.Count       = convertData.ConvertDataInt32("Count");

            return(_localeRow);
        }
Ejemplo n.º 3
0
        public LocalRow Convert(DataRow _row, LocalRow localrow)
        {
            VetrinaList listVetrina = new VetrinaList();

            convertData = new ConvertData(_row, localrow);

            localrow.ID                     = convertData.ConvertDataInt32("ID");
            localrow.TrackingNumber         = convertData.ConvertDataInt64("TrackingNumber");
            localrow.WhenOrdered            = convertData.ConvertDataDateTime("WhenOrdered");
            localrow.WhenItComes            = convertData.ConvertDataDateTime("WhenItComes");
            localrow.Quantity               = convertData.ConvertDataInt32("Quantity");
            localrow.SummaSum               = convertData.ConvertDataDouble("SummaSum");
            localrow.PaymentType            = convertData.ConvertDataInt32("PaymentType");
            localrow.PaymentReceipt         = convertData.ConvertDataInt32("PaymentReceipt");
            localrow.TypeBelivery           = convertData.ConvertDataInt32("TypeBelivery");
            localrow.Adress                 = convertData.ConvertDataString("Adress");
            localrow.NumvberPhon            = convertData.ConvertDataString("NumvberPhon");
            localrow.NamaMeneger            = convertData.ConvertDataString("NamaMeneger");
            localrow.NameBelivery           = convertData.ConvertDataString("NameBelivery");
            localrow.NumberBeliveryTracking = convertData.ConvertDataString("NumberBeliveryTracking");
            localrow.NameManegerBelivery    = convertData.ConvertDataString("NameManegerBelivery");
            localrow.DopNameCompanyBelivery = convertData.ConvertDataString("DopNameCompanyBelivery");
            localrow.DopNameSkladCompany    = convertData.ConvertDataString("DopNameSkladCompany");
            localrow.DopTagPriceOrder       = convertData.ConvertDataDouble("DopTagPriceOrder");
            localrow.DopWhenDateOrder       = convertData.ConvertDataDateTime("DopWhenDateOrder");
            localrow.DopWhereDateOrder      = convertData.ConvertDataDateTime("DopWhereDateOrder");
            localrow.DopTypePayment         = convertData.ConvertDataInt32("DopTypePayment");
            localrow.DopPaymentReceipt      = convertData.ConvertDataInt32("DopPaymentReceipt");
            localrow.DopNameManegerCompany  = convertData.ConvertDataString("DopNameManegerCompany");
            localrow.DopNumberPhoneManeger  = convertData.ConvertDataString("DopNumberPhoneManeger");
            localrow.DateCreate             = convertData.ConvertDataDateTime("DateCreate");
            localrow.CreateUseras           = convertData.ConvertDataInt32("CreateUseras");
            localrow.DataLastModifide       = convertData.ConvertDataDateTime("DataLastModifide");
            localrow.LastModifideUsers      = convertData.ConvertDataInt32("LastModifideUsers");

            return(localrow);
        }