public ORD_PublishBLL(int id, bool bycache)
     : base(DALClassName)
 {
     _dal = (ORD_PublishDAL)_DAL;
     FillModel(id, bycache);
 }
 ///<summary>
 ///ORD_PublishBLL
 ///</summary>
 public ORD_PublishBLL()
     : base(DALClassName)
 {
     _dal = (ORD_PublishDAL)_DAL;
     _m   = new ORD_Publish();
 }
 public ORD_PublishBLL(int id)
     : base(DALClassName)
 {
     _dal = (ORD_PublishDAL)_DAL;
     FillModel(id);
 }
        public static int GetSubmitQuantity(int PublishID, int Product)
        {
            ORD_PublishDAL dal = (ORD_PublishDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetSubmitQuantity(PublishID, Product));
        }
        /// <summary>
        /// 获取某客户的指定产品的请购价格
        /// </summary>
        /// <param name="Client"></param>
        /// <param name="Product"></param>
        /// <returns></returns>
        public static decimal GetPublishPriceByClientAndProduct(int Client, int Product)
        {
            ORD_PublishDAL dal = (ORD_PublishDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetPublishPriceByClientAndProduct(Client, Product));
        }
        /// <summary>
        /// 获取指定供货商的上架发布目录ID
        /// </summary>
        /// <param name="Supplier"></param>
        /// <param name="Type"></param>
        /// <returns></returns>
        public static int GetPublishIDBySupplier(int Supplier, int Type)
        {
            ORD_PublishDAL dal = (ORD_PublishDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetPublishIDByClient(0, Supplier, Type));
        }
        /// <summary>
        /// 获取面向指定订货商的上架发布目录ID
        /// </summary>
        /// <param name="Client"></param>
        /// <param name="Type"></param>
        /// <returns></returns>
        public static int GetPublishIDByClient(int Client, int Type)
        {
            ORD_PublishDAL dal = (ORD_PublishDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetPublishIDByClient(Client, 0, Type));
        }
        public static IList <ORD_Publish> GetPublishListByClient(int Client, int Supplier, int Type)
        {
            ORD_PublishDAL dal = (ORD_PublishDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetPublishListByClient(Client, Supplier, Type));
        }