protected void UpdateAdviserEODLog(string group, int IsComplete, int LogId)
        {
            AdviserDailyLOGVo adviserDaliyLOGVo = new AdviserDailyLOGVo();

            try
            {
                adviserDaliyLOGVo.IsEquityCleanUpComplete = 0;
                adviserDaliyLOGVo.IsValuationComplete     = IsComplete;
                adviserDaliyLOGVo.ModifiedBy = 1000;
                adviserDaliyLOGVo.EODLogId   = LogId;
                adviserDaliyLOGVo.AssetGroup = group;
                adviserDaliyLOGVo.EndTime    = DateTime.Now;
                customerPortfolioBo.UpdateAdviserEODLog(adviserDaliyLOGVo);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "EquityNetpositionProcessBo:UpdateAdviserEODLog()");
                object[] objects = new object[3];
                objects[0]   = group;
                objects[1]   = IsComplete;
                objects[2]   = LogId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
        private int CreateAdviserEODLog(string assetType, DateTime dt, int adviserId)
        {
            int LogId = 0;

            AdviserDailyLOGVo adviserDaliyLOGVo = new AdviserDailyLOGVo();

            try
            {
                adviserDaliyLOGVo.AdviserId   = adviserId;
                adviserDaliyLOGVo.CreatedBy   = 1000;
                adviserDaliyLOGVo.StartTime   = DateTime.Now;
                adviserDaliyLOGVo.ProcessDate = dt;
                adviserDaliyLOGVo.AssetGroup  = assetType;
                LogId = customerPortfolioBo.CreateAdviserEODLog(adviserDaliyLOGVo);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "EquityNetpositionProcessBo:CreateAdviserEODLog()");
                object[] objects = new object[2];
                objects[0]   = assetType;
                objects[1]   = dt;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(LogId);
        }
Beispiel #3
0
        protected void UpdateAdviserEODLog(string group, int IsComplete, int LogId)
        {
            AdviserDailyLOGVo adviserDaliyLOGVo = new AdviserDailyLOGVo();

            adviserDaliyLOGVo.IsEquityCleanUpComplete = 0;
            adviserDaliyLOGVo.IsValuationComplete     = IsComplete;
            adviserDaliyLOGVo.ModifiedBy = 1000;
            adviserDaliyLOGVo.EODLogId   = LogId;
            adviserDaliyLOGVo.AssetGroup = group;
            adviserDaliyLOGVo.EndTime    = DateTime.Now;
            customerPortfolioBo.UpdateAdviserEODLog(adviserDaliyLOGVo);
        }
Beispiel #4
0
        private int CreateAdviserEODLog(string assetType, DateTime dt, int adviserId)
        {
            int LogId = 0;

            AdviserDailyLOGVo adviserDaliyLOGVo = new AdviserDailyLOGVo();

            adviserDaliyLOGVo.AdviserId   = adviserId;
            adviserDaliyLOGVo.CreatedBy   = 1000;
            adviserDaliyLOGVo.StartTime   = DateTime.Now;
            adviserDaliyLOGVo.ProcessDate = dt;
            adviserDaliyLOGVo.AssetGroup  = assetType;
            LogId = customerPortfolioBo.CreateAdviserEODLog(adviserDaliyLOGVo);

            return(LogId);
        }