コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>



        #region Delete
        public bool Delete(List <int> BuyleadID, int CompID)
        {
            var svCompany = new Company.CompanyService();

            var Contains = SQLWhereListInt(BuyleadID, "BuyleadID");

            UpdateByCondition <b2bFavBuylead>(" IsDelete = 1   ", "CompID = " + CompID + " AND " + Contains);

            IsResult = svCompany.UpdateBuyleadCount(CompID);

            return(IsResult);
        }
コード例 #2
0
        public bool MoveToJunk(List <int> BuyleadID, List <int> CateLV1, List <int> CateLV2, List <int> CateLV3, int CompID)
        {
            var svCompany = new Company.CompanyService();

            var Contains = SQLWhereListInt(BuyleadID, "BuyleadID");

            UpdateByCondition <b2bBuylead>(" IsJunk = 1 , ListNo = 0 ", " CompID = " + CompID + " AND " + Contains);

            IsResult = svCompany.UpdateBuyleadCount(CompID);
            UpdateBuyleadCountInCategories(CateLV1, CateLV2, CateLV3);

            return(IsResult);
        }
コード例 #3
0
        public bool Delete(List <int> BuyleadID, List <int> CateLV1, List <int> CateLV2, List <int> CateLV3, int CompID = 0)
        {
            var svCompany  = new Company.CompanyService();
            var svCategory = new Category.CategoryService();

            var sqlWhere = SQLWhereListInt(BuyleadID, "BuyleadID");

            if (CompID > 0)
            {
                sqlWhere += " AND CompID = " + CompID;
            }

            UpdateByCondition <b2bBuylead>(" IsDelete = 1   , ListNo = 0 ", sqlWhere);

            if (CompID > 0)
            {
                IsResult = svCompany.UpdateBuyleadCount(CompID);
            }
            UpdateBuyleadCountInCategories(CateLV1, CateLV2, CateLV3);

            return(IsResult);
        }