Example #1
0
        private void Cal_ClaimShares_ADRS_pos(Dictionary <int, BD_Dividend> dic)
        {
            this.statusInfo.status = "Calculate ClaimShares_ADR positions";

            foreach (BD_Dividend dvd in dic.Values)
            {
                DTCPositionModelNumber_Mapping dm = DTC_model_master.GetMapping_modelNum(dvd.DTCPosition_ModelNumber);
                if (dm == null)
                {
                    continue;
                }

                dm.Create_headers();
                List <DTC_Position_Headers> exempt_headerList     = dm.Get_headersList("Exempt", null);
                List <DTC_Position_Headers> favorable_headerList  = dm.Get_headersList("Favorable", null);
                List <DTC_Position_Headers> chargeBack_headerList = dm.Get_headersList("CHARGEBACK", "'NON-DISCLOSED");

                foreach (BD_DTC_Position bdp in dvd.bdp_dic.Values)
                {
                    bdp.ExemptPosition     = bdp.GetSum_by_list(exempt_headerList);
                    bdp.FavorablePosition  = bdp.GetSum_by_list(favorable_headerList);
                    bdp.ChargeBackPosition = bdp.GetSum_by_list(chargeBack_headerList);

                    bdp.RemainingTotalADRS = bdp.Total_RecDate_Position - bdp.ClaimShares_ADRS_SUM;

                    ++this.statusInfo.recordNum;
                }
            }
        }
Example #2
0
        public DTCPositionModelNumber_Mapping Get_DTCpos_model()
        {
            DTCPositionModelNumber_Mapping posMod = DTC_model_master.GetMapping_modelNum(this.DTCPosition_ModelNumber.Value);

            if (posMod != null)
            {
                posMod.Create_headers();
            }
            return(posMod);
        }