コード例 #1
0
        /// <summary>
        /// 更新赠品可请购余额
        /// </summary>
        /// <param name="AccountMonth"></param>
        /// <param name="Client"></param>
        /// <param name="Brand"></param>
        /// <param name="Classify"></param>
        /// <param name="ChangeAmount"></param>
        /// <param name="Staff"></param>
        /// <returns></returns>
        public static int ChangeBalanceAmount(int AccountMonth, int Client, int Brand, int Classify, decimal ChangeAmount, int Staff)
        {
            ORD_GiftApplyAmountDAL dal = (ORD_GiftApplyAmountDAL)DataAccess.CreateObject(DALClassName);

            return(dal.ChangeBalanceAmount(AccountMonth, Client, Brand, Classify, ChangeAmount, Staff));
        }
コード例 #2
0
        /// <summary>
        /// 获取指定客户赠品可请购余额
        /// </summary>
        /// <param name="AccountMonth"></param>
        /// <param name="Client"></param>
        /// <param name="Brand"></param>
        /// <param name="Classify"></param>
        /// <returns></returns>
        public static decimal GetBalanceAmount(int AccountMonth, int Client, int Brand, int Classify)
        {
            ORD_GiftApplyAmountDAL dal = (ORD_GiftApplyAmountDAL)DataAccess.CreateObject(DALClassName);

            return(dal.GetBalanceAmount(AccountMonth, Client, Brand, Classify));
        }
コード例 #3
0
 public ORD_GiftApplyAmountBLL(int id, bool bycache)
     : base(DALClassName)
 {
     _dal = (ORD_GiftApplyAmountDAL)_DAL;
     FillModel(id, bycache);
 }
コード例 #4
0
 ///<summary>
 ///ORD_GiftApplyAmountBLL
 ///</summary>
 public ORD_GiftApplyAmountBLL()
     : base(DALClassName)
 {
     _dal = (ORD_GiftApplyAmountDAL)_DAL;
     _m   = new ORD_GiftApplyAmount();
 }
コード例 #5
0
        public DataTable GetChangeHistory()
        {
            ORD_GiftApplyAmountDAL dal = (ORD_GiftApplyAmountDAL)DataAccess.CreateObject(DALClassName);

            return(Tools.ConvertDataReaderToDataTable(dal.GetChangeHistory(this.Model.AccountMonth, this.Model.Client, this.Model.Brand, this.Model.Classify)));
        }
コード例 #6
0
        public static DataTable GetUsedInfo(int AccountMonth, int OrganizeCity)
        {
            ORD_GiftApplyAmountDAL dal = (ORD_GiftApplyAmountDAL)DataAccess.CreateObject(DALClassName);

            return(Tools.ConvertDataReaderToDataTable(dal.GetUsedInfo(AccountMonth, OrganizeCity)));
        }
コード例 #7
0
        /// <summary>
        /// 计算各经销商下月可请购赠品金额
        /// </summary>
        /// <param name="AccountMonth"></param>
        /// <param name="Client"></param>
        /// <returns></returns>
        public static int ComputAvailableAmount(int AccountMonth, int Client)
        {
            ORD_GiftApplyAmountDAL dal = (ORD_GiftApplyAmountDAL)DataAccess.CreateObject(DALClassName);

            return(dal.ComputAvailableAmount(AccountMonth, Client));
        }