public bool UpdateRepositoryCategoryNames(int intAdviserId, string strCategoryNames, string strCategoryRoles, int intUserId)
        {
            RepositoryDao repoDao  = new RepositoryDao();
            bool          blResult = false;

            try
            {
                blResult = repoDao.UpdateRepositoryCategoryNames(intAdviserId, strCategoryNames, strCategoryRoles, intUserId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "RepositoryBo.cs:UpdateRepositoryCategoryNames(int intAdviserId, string strCategoryNames, int intUserId)");
                object[] objects = new object[3];
                objects[0]   = intAdviserId;
                objects[1]   = strCategoryNames;
                objects[2]   = intUserId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }

            return(blResult);
        }
        public bool UpdateRepositoryItem(RepositoryVo repoVo)
        {
            RepositoryDao repoDao  = new RepositoryDao();
            bool          blResult = false;

            try
            {
                blResult = repoDao.UpdateRepositoryItem(repoVo);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "RepositoryBo.cs:UpdateRepositoryItem(RepositoryVo repoVo)");
                object[] objects = new object[1];
                objects[0]   = repoVo;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }

            return(blResult);
        }
        public bool DeleteRepositoryItems(string strXML, float fStorageBalance, int intAdviserId)
        {
            RepositoryDao repoDao  = new RepositoryDao();
            bool          blResult = false;

            try
            {
                blResult = repoDao.DeleteRepositoryItems(strXML, fStorageBalance, intAdviserId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "RepositoryBo.cs:DeleteRepositoryItems(string strXML, float fStorageBalance, int intAdviserId)");
                object[] objects = new object[3];
                objects[0]   = strXML;
                objects[1]   = fStorageBalance;
                objects[2]   = intAdviserId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }

            return(blResult);
        }
        public float GetAdviserStorageValues(int intAdviserId, out float fMaxStorage)
        {
            RepositoryDao repoDao = new RepositoryDao();
            float         fResult = 0.0F;

            fMaxStorage = 0.0F;

            try
            {
                fResult = repoDao.GetAdviserStorageValues(intAdviserId, out fMaxStorage);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "RepositoryBo.cs:GetAdviserStorageValues(int intAdviserId, out float fMaxStorage)");
                object[] objects = new object[1];
                objects[0]   = intAdviserId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }

            return(fResult);
        }
        public DataSet GetRepositoryCategory(int intAdviserId)
        {
            RepositoryDao repoDao = new RepositoryDao();
            DataSet       ds      = new DataSet();

            try
            {
                ds = repoDao.GetRepositoryCategory(intAdviserId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "RepositoryBo.cs:GetRepositoryCategory(int intAdviserId)");
                object[] objects = new object[1];
                objects[0]   = intAdviserId;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(ds);
        }
        public RepositoryVo GetRepositoryItem(int intRepositoryId)
        {
            RepositoryDao repoDao = new RepositoryDao();
            RepositoryVo  repoVo  = new RepositoryVo();

            try
            {
                repoVo = repoDao.GetRepositoryItem(intRepositoryId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "RepositoryBo.cs:GetRepositoryItem(int intRepositoryId)");
                object[] objects = new object[2];
                objects[0]   = intRepositoryId;
                objects[1]   = repoDao;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            return(repoVo);
        }
Exemplo n.º 7
0
        public ActionResult search(string keyWord)
        {
            UserBll     userBll  = new UserBll();
            List <User> userList = userBll.searchUser(keyWord);

            ViewData["userList"] = userList;
            RepositoryBll     repositoryBll  = new RepositoryBll();
            List <Repository> repositoryList = repositoryBll.searchRepository(keyWord);

            ViewData["repositoryList"] = repositoryList;

            RepositoryDao       repositoryDao       = new RepositoryDao();
            FollowRepositoryBll followRepositoryBll = new FollowRepositoryBll();
            List <string>       repositoryCountList = followRepositoryBll.findRepositoryAndCount();

            if (repositoryCountList != null)
            {
                List <Repository> repositorylist = new List <Repository>();
                foreach (string userEmail in repositoryCountList)
                {
                    repositorylist.Add(repositoryDao.findRepositoryById(userEmail));
                }
                ViewData["repositoryCountList"] = repositorylist;
            }
            return(View("searchResult"));
        }
        public int GetNcdProspectUsCat(int advisorId, int RoleId, int UserId)
        {
            RepositoryDao repoDao = new RepositoryDao();


            try
            {
                return(repoDao.GetNcdProspectUsCat(advisorId, RoleId, UserId));
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
        }
        public bool AddOrderDocument(RepositoryVo repoVo, int issueId)
        {
            RepositoryDao repoDao  = new RepositoryDao();
            bool          blResult = false;

            try
            {
                blResult = repoDao.AddOrderDocument(repoVo, issueId);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            return(blResult);
        }
Exemplo n.º 10
0
        // GET: Comment
        public ActionResult projectComment(string repositoryId)
        {
            if (repositoryId != null && repositoryId != "")
            {
                ViewData["repositoryId"] = repositoryId;
                RepositoryDao   repositoryDao = new RepositoryDao();
                Repository      repository    = repositoryDao.findRepositoryById(repositoryId); //获取仓库的id
                Src.Dao.UserDao userDao       = new Src.Dao.UserDao();
                User            user          = userDao.findUserByEmail(repository.email);      //根据仓库id查找用户的信息

                ViewData["user"]       = user;                                                  //设置仓库所属用户信息
                ViewData["repository"] = repository;                                            //设置仓库信息

                List <Comment> comments = bll.findAllcommentByRepositoryId(repositoryId);
                ViewData["commnets"] = comments;
            }

            return(View("projectComment"));
        }
Exemplo n.º 11
0
 public CardRepository()
 {
     DAO = new RepositoryDao();
 }
Exemplo n.º 12
0
 public ApiLogRepository()
 {
     DAO = new RepositoryDao();
 }
Exemplo n.º 13
0
 public GatewayRepository()
 {
     dao = new RepositoryDao();
 }
Exemplo n.º 14
0
 public SubAgentManagementRepository()
 {
     dao = new RepositoryDao();
 }
Exemplo n.º 15
0
 public UserRepository()
 {
     dao = new RepositoryDao();
 }
Exemplo n.º 16
0
 public ErrorLogRepository()
 {
     Dao = new RepositoryDao();
 }
 public ClientManagementRepository()
 {
     DAO = new RepositoryDao();
 }
 public MobilePaymentRepository()
 {
     dao = new RepositoryDao();
 }
 public ServicesManagementRepository()
 {
     DAO = new RepositoryDao();
 }
Exemplo n.º 20
0
 public AccessLogRepository()
 {
     DAO = new RepositoryDao();
 }
 public LandLinePaymentRepository()
 {
     dao = new RepositoryDao();
 }
 public TransactionLimitRepository()
 {
     dao = new RepositoryDao();
 }
Exemplo n.º 23
0
 public AgentRepository()
 {
     DAO = new RepositoryDao();
 }
Exemplo n.º 24
0
 public AppVersionControlRepository()
 {
     dao = new RepositoryDao();
 }
Exemplo n.º 25
0
 public RoleRepository()
 {
     dao = new RepositoryDao();
 }
Exemplo n.º 26
0
 public SubDistributorManagementRepository()
 {
     dao = new RepositoryDao();
 }
Exemplo n.º 27
0
 public GadgetRepo()
 {
     dao = new RepositoryDao();
 }
 public ClientCommissionRepository()
 {
     dao = new RepositoryDao();
 }
Exemplo n.º 29
0
 public BalanceRepository()
 {
     DAO = new RepositoryDao();
 }
Exemplo n.º 30
0
 public StaticDataRepository()
 {
     dao = new RepositoryDao();
 }