Example #1
0
        /// <summary>
        /// 判断是否已存在
        /// </summary>
        /// <param name="ProductID"></param>
        /// <param name="CompanyCD"></param>
        /// <returns></returns>
        public static bool Existss(string ProductID)
        {
            UserInfoUtil userInfo  = (UserInfoUtil)SessionUtil.Session["UserInfo"];
            string       CompanyCD = userInfo.CompanyCD;

            string[] IdS = null;
            ProductID = ProductID.Substring(0, ProductID.Length);
            IdS       = ProductID.Split(',');
            for (int i = 0; i < IdS.Length; i++)
            {
                bool isSucc = ProductInfoDBHelper.Exists(IdS[i].ToString(), CompanyCD);
                if (isSucc)
                {
                    return(true);
                }
            }
            return(false);
        }