Esempio n. 1
0
 public override ITransaction Storno(IAccountTypeInternal stornoAccount, B4F.TotalGiro.Stichting.Login.IInternalEmployeeLogin employee, string reason, ITradingJournalEntry tradingJournalEntry)
 {
     ICrumbleTransaction newStorno = new CrumbleTransaction();
     newStorno.Order = Order;
     this.storno(stornoAccount, employee, reason, tradingJournalEntry, newStorno);
     return newStorno;
 }
Esempio n. 2
0
 public override ITransaction Storno(IAccountTypeInternal stornoAccount, B4F.TotalGiro.Stichting.Login.IInternalEmployeeLogin employee, string reason, ITradingJournalEntry tradingJournalEntry)
 {
     IOrderAllocation newStorno = new OrderAllocation();
     newStorno.Order = Order;
     this.storno(stornoAccount, employee, reason, tradingJournalEntry, newStorno);
     if (this.IsClientSettled)
     {
         newStorno.IsClientSettled = true;
         newStorno.ClientSettlementDate = this.ClientSettlementDate;
     }
     return newStorno;
 }
Esempio n. 3
0
 public override IGeneralOperationsBooking Storno(B4F.TotalGiro.Stichting.Login.IInternalEmployeeLogin employee, string reason, IMemorialBooking journalEntry)
 {
     ForeignExchange newStorno = new ForeignExchange();
     return this.storno(employee, reason, journalEntry, newStorno); ;
 }
 public override ITransaction Storno(IAccountTypeInternal stornoAccount, B4F.TotalGiro.Stichting.Login.IInternalEmployeeLogin employee, string reason, ITradingJournalEntry tradingJournalEntry)
 {
     CorporateActionStockDividend newStorno = new CorporateActionStockDividend();
     this.storno(stornoAccount, employee, reason, tradingJournalEntry, newStorno);
     return newStorno;
 }
Esempio n. 5
0
 public void Remove(B4F.Web.TGWebService.Cashflow obj)
 {
     base.Remove(obj);
 }
Esempio n. 6
0
 public B4F.Web.TGWebService.Cashflow Add(B4F.Web.TGWebService.Cashflow obj)
 {
     return CashFlowCollection.Add(obj);
 }
Esempio n. 7
0
 public B4F.Web.TGWebService.Cashflow Add(B4F.Web.TGWebService.Cashflow obj)
 {
     base.Add(obj);
     return obj;
 }
Esempio n. 8
0
 public B4F.Web.TGWebService.ExpectedCapitalValueType Add(B4F.Web.TGWebService.ExpectedCapitalValueType obj)
 {
     base.Add(obj);
     return obj;
 }
Esempio n. 9
0
 public abstract ISecurityOrder Convert(B4F.TotalGiro.Instruments.Price price, B4F.TotalGiro.OrderRouteMapper.IOrderRouteMapper route);
        public static DataSet GetFeeCalculations(
            string calcName, FeeTypes feeType, 
            B4F.TotalGiro.ApplicationLayer.UC.AccountFinderAdapter.AccountGuiStatus activeStatus, 
            string propertyList)
        {
            DataSet ds = null;
            IDalSession session = NHSessionFactory.CreateSession();
            Hashtable parameters = new Hashtable();

            if (!string.IsNullOrEmpty(calcName))
                parameters.Add("calcName", Util.PrepareNamedParameterWithWildcard(calcName, MatchModes.Anywhere));
            if (feeType > 0)
                parameters.Add("feeType", feeType);
            if (activeStatus != B4F.TotalGiro.ApplicationLayer.UC.AccountFinderAdapter.AccountGuiStatus.All)
                parameters.Add("isActive", (activeStatus == B4F.TotalGiro.ApplicationLayer.UC.AccountFinderAdapter.AccountGuiStatus.Active));
            IManagementCompany comp = LoginMapper.GetCurrentManagmentCompany(session);
            if (comp == null)
                throw new ApplicationException("Not good");
            else if (!comp.IsStichting)
                parameters.Add("managementCompanyID", comp.Key);

            List<IFeeCalc> calculations = session.GetTypedListByNamedQuery<IFeeCalc>(
                "B4F.TotalGiro.Fees.FeeCalculations.FeeCalculations",
                parameters);

            ds = DataSetBuilder.CreateDataSetFromBusinessObjectList(
                calculations,
                propertyList);

            session.Close();
            return ds;
        }
Esempio n. 11
0
 public override ITransaction Storno(IAccountTypeInternal stornoAccount, B4F.TotalGiro.Stichting.Login.IInternalEmployeeLogin employee, string reason, ITradingJournalEntry tradingJournalEntry)
 {
     InstrumentConversion newStorno = new InstrumentConversion();
     if (this.ConvertedInstrumentSize != null)
         newStorno.ConvertedInstrumentSize = this.ConvertedInstrumentSize.Negate();
     this.storno(stornoAccount, employee, reason, tradingJournalEntry, newStorno);
     return newStorno;
 }
Esempio n. 12
0
 public void Remove(B4F.Web.TGWebService.ExpectedCapitalValueType obj)
 {
     base.Remove(obj);
 }
Esempio n. 13
0
 public void Insert(int index, B4F.Web.TGWebService.ExpectedCapitalValueType obj)
 {
     base.Insert(index, obj);
 }
Esempio n. 14
0
 public override ISecurityOrder Convert(Price price, B4F.TotalGiro.OrderRouteMapper.IOrderRouteMapper routeMapper)
 {
     throw new ApplicationException("Client Orders may not be converted at this time");
 }
Esempio n. 15
0
 public void Insert(int index, B4F.Web.TGWebService.Cashflow obj)
 {
     base.Insert(index, obj);
 }
Esempio n. 16
0
        public static DataSet GetLifecycles(string lifecycleName, B4F.TotalGiro.ApplicationLayer.UC.AccountFinderAdapter.AccountGuiStatus activeStatus, bool isInsert)
        {
            using (IDalSession session = NHSessionFactory.CreateSession())
            {
                Hashtable parameters = new Hashtable();
                parameters.Add("managementCompanyID", ModelMaintenanceAdapter.getAssetManager().GetV(x => x.Key));
                if (!string.IsNullOrEmpty(lifecycleName))
                    parameters.Add("name", Util.PrepareNamedParameterWithWildcard(lifecycleName));
                if (activeStatus != B4F.TotalGiro.ApplicationLayer.UC.AccountFinderAdapter.AccountGuiStatus.All)
                    parameters.Add("isActive", activeStatus == B4F.TotalGiro.ApplicationLayer.UC.AccountFinderAdapter.AccountGuiStatus.Active);

                List<ILifecycle> list = session.GetTypedListByNamedQuery<ILifecycle>(
                    "B4F.TotalGiro.Instruments.Lifecycles",
                    parameters);

                if (isInsert)
                    list.Add(new Lifecycle("Lifecycle", ModelMaintenanceAdapter.getAssetManager()));

                return list.Select(c => new
                    {
                        c.Key,
                        c.Name,
                        c.CreatedBy,
                        c.CreationDate,
                        c.LastUpdated,
                        c.IsActive
                    })
                    .ToDataSet();
            }
        }
Esempio n. 17
0
 public B4F.Web.TGWebService.ExpectedCapitalValueType Add(B4F.Web.TGWebService.ExpectedCapitalValueType obj)
 {
     return ExpectedCapitalValueCollection.Add(obj);
 }