Esempio n. 1
0
        internal void Init_from_reader(DB_reader reader)
        {
            if (reader == null || reader.IsClosed)
            {
                return;
            }

            this.DividendIndex          = reader.GetInt("DividendIndex");
            this.DTC_Number             = reader.GetString("DTC_Number");
            this.Company_Name           = reader.GetString("Company_Name");
            this.Total_RecDate_Position = reader.GetDecimal("Total_RecDate_Position");
            this.CustodianID            = reader.GetInt("CustodianID");

            for (int i = 1; i <= Rates.RateCount; ++i)
            {
                this.curr_ratePos[i] = reader.GetDecimal("Rate_Position_" + i);
                this.DB_ratePos[i]   = this.curr_ratePos[i];

                this.curr_rateCharges[i] = reader.GetDecimal("Rate_Chargeback_" + i);
                this.DB_rateCharges[i]   = this.curr_rateCharges[i];
            }

            for (int i = 1; i <= 5; ++i)
            {
                this.Exampts[i] = reader.GetDecimal("Exempt" + i);
            }
        }
Esempio n. 2
0
        public void Init_from_reader(DB_reader reader)
        {
            if (reader == null || reader.IsClosed)
            {
                return;
            }

            this.DTC_Number           = reader.GetString("DTC_Number");
            this.DividendIndex        = reader.GetInt("DividendIndex");
            this.ClaimShares_ADRS_SUM = reader.GetDecimal("ClaimShares_ADRS_SUM");
        }
Esempio n. 3
0
        public void Init_from_reader(DB_reader reader)
        {
            if (reader == null || reader.IsClosed)
            {
                return;
            }

            this.DTC_PositionID         = reader.GetInt("DTC_PositionID");
            this.DTC_Number             = reader.GetString("DTC_Number");
            this.DividendIndex          = reader.GetInt("DividendIndex");
            this.Total_RecDate_Position = reader.GetDecimal("Total_RecDate_Position");

            for (int i = 1; i <= 18; ++i)
            {
                string  colName = "Rate_Position_" + i;
                decimal val     = reader.GetDecimal(colName, 0);
                if (val > 0)
                {
                    this.values_dic[colName] = val;
                }
            }
            for (int i = 1; i <= 18; ++i)
            {
                string  colName = "Rate_Chargeback_" + i;
                decimal val     = reader.GetDecimal(colName, 0);
                if (val > 0)
                {
                    this.values_dic[colName] = val;
                }
            }
            for (int i = 1; i <= 5; ++i)
            {
                string  colName = "Exempt" + i;
                decimal val     = reader.GetDecimal(colName, 0);
                if (val > 0)
                {
                    this.values_dic[colName] = val;
                }
            }
        }
Esempio n. 4
0
        public void Init_from_reader(DB_reader reader)
        {
            if (reader == null || reader.IsClosed)
            {
                return;
            }

            this.DividendIndex           = reader.GetInt("DividendIndex");
            this.Issue                   = reader.GetString("Issue");
            this.Country                 = reader.GetString("Country");
            this.CUSIP                   = reader.GetString("CUSIP");
            this.DTCPosition_ModelNumber = reader.GetInt("DTCPosition_ModelNumber");

            this.RecordDate_ADR = reader.GetDateTime("RecordDate_ADR", Utility.MinDate);
            this.PayDate_ADR    = reader.GetDateTime("PayDate_ADR", Utility.MinDate);
            this.PayDate_ORD    = reader.GetDateTime("PayDate_ORD", Utility.MinDate);

            this.FinalDivGrossAmount_ORD = reader.GetDecimal("FinalDivGrossAmount_ORD");
            this.FinalDivGrossAmount_ADR = reader.GetDecimal("FinalDivGrossAmount_ADR");
            this.LongFormFee             = reader.GetDecimal("LongFormFee");
            this.StatutoryRate           = reader.GetDecimal("StatutoryRate");
        }