public static DataTable GetListByOrganizeCity(int OrganizeCity, int BeginMonth, int EndMonth, int Client)
        {
            SVM_SalesTargetDAL dal = (SVM_SalesTargetDAL)DataAccess.CreateObject(DALClassName);

            return(Tools.ConvertDataReaderToDataTable(dal.GetListByOrganizeCity(OrganizeCity, BeginMonth, EndMonth, Client)));
        }
        public static decimal GetTargetSumPrice(int TargetID)
        {
            SVM_SalesTargetDAL dal = (SVM_SalesTargetDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetTargetSumPrice(TargetID));
        }
        public static int InitProductList(int OrganizeCity, int AccountMonth, int ClientID, int StaffID)
        {
            SVM_SalesTargetDAL dal = (SVM_SalesTargetDAL)DataAccess.CreateObject(DALClassName);

            return(dal.InitProductList(OrganizeCity, AccountMonth, ClientID, StaffID));
        }
 public SVM_SalesTargetBLL(int id, bool bycache)
     : base(DALClassName)
 {
     _dal = (SVM_SalesTargetDAL)_DAL;
     FillModel(id, bycache);
 }
 public SVM_SalesTargetBLL(int id)
     : base(DALClassName)
 {
     _dal = (SVM_SalesTargetDAL)_DAL;
     FillModel(id);
 }
 ///<summary>
 ///SVM_SalesTargetBLL
 ///</summary>
 public SVM_SalesTargetBLL()
     : base(DALClassName)
 {
     _dal = (SVM_SalesTargetDAL)_DAL;
     _m   = new SVM_SalesTarget();
 }
        /// <summary>
        /// 获取指定客户和月份的销量总额
        /// </summary>
        /// <param name="OrganizeCity"></param>
        /// <param name="ClientID"></param>
        /// <param name="beginMonth"></param>
        /// <param name="endMonth"></param>
        /// <param name="ClientType"></param>
        /// <returns></returns>
        public static DataTable GetSummary(int OrganizeCity, int ClientID, int beginMonth, int endMonth, int ClientType)
        {
            SVM_SalesTargetDAL dal = (SVM_SalesTargetDAL)DataAccess.CreateObject(DALClassName);

            return(Tools.ConvertDataReaderToDataTable(dal.GetSummary(OrganizeCity, ClientID, beginMonth, endMonth, ClientType)));
        }