public override void FolioAction(ArrayList folioVector, CMString ActionName)
        {
            if (folioVector.Count == 0)
            {
                return;
            }

            var table = BuildTable(

                "Id",
                i => {
                var portfolio = folioVector[i] as CSMPortfolio;
                return(portfolio.GetCode());
            },

                "Portfolio Name",
                i => {
                var portfolio = folioVector[i] as CSMPortfolio;
                return(GetPortfolioFormula(portfolio.GetCode(), "Portfolio Name"));
            },

                (i, column) => {
                var portfolio = folioVector[i] as CSMPortfolio;

                return(GetPortfolioFormula(portfolio.GetCode(), column));
            },

                folioVector.Count);

            Clipboard.SetText(table);
        }
        public override void Action(ArrayList positionList, CMString ActionName)
        {
            if (positionList.Count == 0)
            {
                return;
            }

            var table = BuildTable(

                "Id",
                i => {
                var position = positionList[i] as CSMPosition;
                return(position.GetIdentifier());
            },

                "Instrument name",
                i => {
                var position = positionList[i] as CSMPosition;
                return(GetPositionFormula(position.GetIdentifier(), "Instrument name"));
            },

                (i, column) => {
                var position = positionList[i] as CSMPosition;
                return(GetPositionFormula(position.GetIdentifier(), column));
            },

                positionList.Count);

            Clipboard.SetText(table);
        }
예제 #3
0
        bool IsIDBGroupEntity(int id)
        {
            CSMThirdParty entity = CSMThirdParty.GetCSRThirdParty(id);

            if (entity == null)
            {
                return(false);
            }
            CMString reference = new CMString();

            entity.GetReference(reference);
            if (IDBGroupAccountEntity.CompareTo(reference.ToString()) == 0)
            {
                return(true);
            }
            //reference.SetString("");

            //CSMThirdParty parent = entity.GetParent();
            //parent.GetReference(reference);
            //if (parent == null)
            //{
            //    return false;
            //}
            //if (IDBGroupAccountEntity.CompareTo(reference.ToString()) == 0)
            //{
            //    return true;
            //}

            return(false);
        }
        public override void FolioAction(ArrayList folioVector, CMString ActionName)
        {
            try
            {
                var sb = new StringBuilder();

                for (int i = 0; i < folioVector.Count; i++)
                {
                    var folio = folioVector[i] as CSMPortfolio;

                    string formula = GetPortfolioFormula(folio.GetCode(), GetSelectedColumn());
                    sb.Append(formula).AppendLine();
                }

                Clipboard.SetText(sb.ToString());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "FusionLink");
            }
        }
        public override void Action(ArrayList positionList, CMString ActionName)
        {
            try
            {
                var sb = new StringBuilder();

                for (int i = 0; i < positionList.Count; i++)
                {
                    //Check if the position is a future. If so, allow it
                    var position = positionList[i] as CSMPosition;

                    string formula = GetPositionFormula(position.GetIdentifier(), GetSelectedColumn());
                    sb.Append(formula).AppendLine();
                }

                Clipboard.SetText(sb.ToString());
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "FusionLink");
            }
        }
 public virtual void FolioAction(ArrayList folioVector, CMString ActionName)
 {
 }
 public virtual void Action(ArrayList positionList, CMString ActionName)
 {
     throw new NotImplementedException();
 }
예제 #8
0
 public void GetName(CMString familyName)
 {
     throw new NotImplementedException();
 }
예제 #9
0
 public unsafe static int GetYieldCurveFamilyCode(int currencyCode, CMString name)
 {
     throw new NotImplementedException();
 }
예제 #10
0
 public static int LookUpYieldCurveId(int familyCode, CMString curveName)
 {
     throw new NotImplementedException();
 }
예제 #11
0
 public eMRightStatusType GetUserDefRight(CMString right)
 {
     throw new NotImplementedException();
 }
예제 #12
0
 public void GetName(CMString cmString)
 {
     throw new NotImplementedException();
 }
예제 #13
0
 public static int GetCode(CMString reference)
 {
     throw new NotImplementedException();
 }
예제 #14
0
 public unsafe CSMDay(CMString yyyymmdd)
 {
 }
예제 #15
0
 public static int StringToCurrency(CMString dest)
 {
     throw new NotImplementedException();
 }