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); }
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(); }
public void GetName(CMString familyName) { throw new NotImplementedException(); }
public unsafe static int GetYieldCurveFamilyCode(int currencyCode, CMString name) { throw new NotImplementedException(); }
public static int LookUpYieldCurveId(int familyCode, CMString curveName) { throw new NotImplementedException(); }
public eMRightStatusType GetUserDefRight(CMString right) { throw new NotImplementedException(); }
public void GetName(CMString cmString) { throw new NotImplementedException(); }
public static int GetCode(CMString reference) { throw new NotImplementedException(); }
public unsafe CSMDay(CMString yyyymmdd) { }
public static int StringToCurrency(CMString dest) { throw new NotImplementedException(); }