Exemple #1
0
        /// <summary>
        /// 返回订单税金金额
        /// </summary>
        /// <param name="where"></param>
        /// <returns></returns>
        public static decimal Money_BillCount(string where)
        {
            string sum = B_Lebi_Order.GetValue("sum(Money_Bill)", "" + where + "");

            if (String.IsNullOrEmpty(sum))
            {
                sum = 0.ToString();
            }
            return(Convert.ToDecimal(sum));
        }
Exemple #2
0
        /// <summary>
        /// 返回利润
        /// </summary>
        /// <param name="where"></param>
        /// <returns></returns>
        public static decimal Money_ProfitCount(string where)
        {
            string sum = B_Lebi_Order.GetValue("sum(Money_product - Money_Cost - Money_Cut - Money_Transport_Cut)", "" + where + "");

            if (String.IsNullOrEmpty(sum))
            {
                sum = 0.ToString();
            }
            return(Convert.ToDecimal(sum));
        }