Exemple #1
0
        private List <Mfumodel> GetMfuModelList(DataTable dataTable)
        {
            if (dataTable == null)
            {
                return(null);
            }

            var mfumodelList = new List <Mfumodel>();

            foreach (DataRow r in dataTable.Rows)
            {
                var mfumodel = new Mfumodel
                {
                    AccountNo            = r.ItemArray[0].ToString(),
                    Member               = r.ItemArray[1].ToString(),
                    Isin                 = r.ItemArray[2].ToString(),
                    DefineDetail         = r.ItemArray[3].ToString(),
                    BeginOfDay           = NullHelper.NullCheckDecimal(r.ItemArray[4]),
                    ExchangeDate         = NullHelper.NullCheckDate(r.ItemArray[5]),
                    Balance              = NullHelper.NullCheckDecimal(r.ItemArray[6]),
                    DebtOrMoneyOwedToOne = r.ItemArray[7].ToString(),
                    ClearingType         = r.ItemArray[8].ToString(),
                };
                mfumodelList.Add(mfumodel);
            }
            return(mfumodelList);
        }
Exemple #2
0
        public IList <MfuswiftInfo> GetMfuswiftInfoList(DataTable dataTable)
        {
            if (dataTable == null)
            {
                return(null);
            }

            var mfuswiftInfoList = new List <MfuswiftInfo>();

            foreach (DataRow r in dataTable.Rows)
            {
                var mfuswiftInfo = new MfuswiftInfo
                {
                    Acc       = r.ItemArray[0].ToString(),
                    TradeDate = NullHelper.NullCheckDate(r.ItemArray[1]),
                    SettDate  = NullHelper.NullCheckDate(r.ItemArray[2]),
                    Isin      = r.ItemArray[3].ToString(),
                    Diff      = NullHelper.NullCheckDecimal(r.ItemArray[4]),
                    Amount    = NullHelper.NullCheckDecimal(r.ItemArray[5]),
                    Price     = NullHelper.NullCheckDecimal(r.ItemArray[6]),
                    Refe      = r.ItemArray[7].ToString(),
                    Act       = r.ItemArray[8].ToString(),
                    TradeType = r.ItemArray[9].ToString()
                };
                mfuswiftInfoList.Add(mfuswiftInfo);
            }
            return(mfuswiftInfoList);
        }