Exemple #1
0
        /// <summary>
        /// 添加销售记录
        /// </summary>
        /// <param name="saleObj">销售实例</param>
        /// <returns></returns>
        public bool InsertSale(Sale saleObj)
        {
            int id = saleDalObj.InsertSale(saleObj);

            if (id > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
 /// <summary>
 /// 添加销售记录
 /// </summary>
 /// <param name="danhao"></param>
 /// <param name="time"></param>
 /// <param name="sum"></param>
 /// <param name="Salesmanid"></param>
 /// <returns></returns>
 public static bool InsertSale(string danhao, DateTime time, double sum, int Salesmanid)
 {
     return(SaleDal.InsertSale(danhao, time, sum, Salesmanid));
 }