示例#1
0
        public string GetCategoryNameFromSChemeCode(int schemePlanCode)
        {
            ProductMFDao productMFDao = new ProductMFDao();
            string       category;

            try
            {
                category = productMFDao.GetCategoryNameFromSChemeCode(schemePlanCode);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "ProductMFBo.cs:GetAMCfromFolioNo()");


                object[] objects = new object[0];


                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(category);
        }
示例#2
0
        public List <ProductMFSchemePlanVo> GetCodeSchemePlans(int schemeCode)
        {
            ProductMFDao productMFDao = new ProductMFDao();

            List <ProductMFSchemePlanVo> codeSchemePlanList = new List <ProductMFSchemePlanVo>();

            try
            {
                codeSchemePlanList = productMFDao.GetAMCSchemePlans(schemeCode);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "ProductMFBo.cs:GetCodeSchemePlans()");


                object[] objects = new object[0];
                objects[0] = schemeCode;

                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(codeSchemePlanList);
        }
示例#3
0
        public string GetModefromFolioNo(int accountId)
        {
            ProductMFDao productMFDao = new ProductMFDao();
            string       mode         = string.Empty;

            try
            {
                mode = productMFDao.GetModefromFolioNo(accountId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "ProductMFBo.cs:GetModefromFolioNo()");

                object[] objects = new object[2];

                objects[0]   = accountId;
                objects[1]   = 100;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(mode);
        }
示例#4
0
        public DataSet GetMessagefromFolioNo(int schemePlanCode)
        {
            DataSet      dsGetMessage;
            ProductMFDao productMFDao = new ProductMFDao();

            try
            {
                dsGetMessage = productMFDao.GetMessagefromFolioNo(schemePlanCode);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "ProductMFBo.cs:GetMessagefromFolioNo()");

                object[] objects = new object[1];
                objects[0]   = schemePlanCode;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(dsGetMessage);
        }
示例#5
0
        public DataSet GetFolioNumber(int portfolioId, int amcCode, int all)
        {
            ProductMFDao productMFDao = new ProductMFDao();
            DataSet      dsGetFolioNumber;

            try
            {
                dsGetFolioNumber = productMFDao.GetFolioNumber(portfolioId, amcCode, all);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "ProductMFBo.cs:GetFolioNumber()");


                object[] objects = new object[0];


                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(dsGetFolioNumber);
        }
示例#6
0
        public int GetAMCfromFolioNo(int accountId)
        {
            ProductMFDao productMFDao = new ProductMFDao();
            int          amcCode;

            try
            {
                amcCode = productMFDao.GetAMCfromFolioNo(accountId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "ProductMFBo.cs:GetAMCfromFolioNo()");


                object[] objects = new object[0];


                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(amcCode);
        }
示例#7
0
        public DataSet GetSchemeName(int amcCode, string categoryCode, int all, int status)
        {
            ProductMFDao productMFDao = new ProductMFDao();
            DataSet      dsGetScheme;

            try
            {
                dsGetScheme = productMFDao.GetSchemeName(amcCode, categoryCode, all, status);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "ProductMFBo.cs:GetSchemeName()");


                object[] objects = new object[0];


                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(dsGetScheme);
        }
示例#8
0
        public DataSet GetProductAssetCategory()
        {
            ProductMFDao productMFDao = new ProductMFDao();
            DataSet      dsAssetCategory;

            try
            {
                dsAssetCategory = productMFDao.GetProductAssetCategory();
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "ProductMFBo.cs:GetProductAssetCategory()");


                object[] objects = new object[0];


                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(dsAssetCategory);
        }
示例#9
0
        public DataTable GetSwitchSchemePlanPrefix(string prefixText, int SchemePlanCode)
        {
            DataTable    dtSchemePlans;
            ProductMFDao productMFDao = new ProductMFDao();

            try
            {
                dtSchemePlans = productMFDao.GetSwitchSchemePlanPrefix(prefixText, SchemePlanCode);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "ProductMFBo.cs:GetSchemePlanPrefix()");


                object[] objects = new object[0];
                objects[0] = prefixText;

                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(dtSchemePlans);
        }
示例#10
0
        public int GetScheme(string schemePlanName)
        {
            ProductMFDao productMFDao = new ProductMFDao();
            int          schemePlanCode;

            try
            {
                schemePlanCode = productMFDao.GetScheme(schemePlanName);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "ProductMFBo.cs:GetScheme()");


                object[] objects = new object[1];
                objects[0] = schemePlanName;


                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(schemePlanCode);
        }
示例#11
0
        public DataTable GetSchemeGuess(string prefix, int exchangeType)
        {
            DataTable    dtGetSchemePlanName;
            ProductMFDao productMFDao = new ProductMFDao();

            dtGetSchemePlanName = productMFDao.GetSchemeGuess(prefix, exchangeType);
            return(dtGetSchemePlanName);
        }
示例#12
0
        public DataTable GetSchemePlanOnline(int AMCCode)
        {
            DataTable    dtGetSchemePlanOnline;
            ProductMFDao productMFDao = new ProductMFDao();

            dtGetSchemePlanOnline = productMFDao.GetSchemePlanOnline(AMCCode);
            return(dtGetSchemePlanOnline);
        }
示例#13
0
        public DataSet GetSWPSchemeNames(string prefixText, int amcCode)
        {
            ProductMFDao productMFDao = new ProductMFDao();
            DataSet      dsGetScheme;

            try
            {
                dsGetScheme = productMFDao.GetSWPSchemeNames(prefixText, amcCode);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            return(dsGetScheme);
        }