Пример #1
0
 /// <summary>
 /// 插入JD账单数据
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool Insert(JDBillModel model)
 {
     model.QrCode     = string.IsNullOrWhiteSpace(model.QrCode) ? "" : model.QrCode;
     model.Cost       = string.IsNullOrWhiteSpace(model.Cost) ? "" : model.Cost;
     model.CreateTime = DateTime.Now;
     return(dal.Insert <JDBillModel>(model));
 }
Пример #2
0
 public bool Delete(JDBillModel model)
 {
     return(dal.DeleteByKey(model.LogNo));
 }
Пример #3
0
 public bool Update(JDBillModel model)
 {
     return(dal.Update <JDBillModel>(model, model.LogNo));
 }
Пример #4
0
 /// <summary>
 /// 插入JD账单归档数据
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public bool Insert(JDBillModel model)
 {
     return(dal.Insert <JDBillModel>(model));
 }