Exemplo n.º 1
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(TempChargeDetail model)
 {
     using (DBHelper db = DBHelper.Create())
     {
         db.Insert<TempChargeDetail>(model);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Ajax.Model.TempChargeDetail model)
 {
     return(dal.Update(model));
 }
Exemplo n.º 3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(Ajax.Model.TempChargeDetail model)
 {
     dal.Add(model);
 }
Exemplo n.º 4
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(TempChargeDetail model)
 {
     using (DBHelper db = DBHelper.Create())
     {
         db.Update<TempChargeDetail>(model);
         return true;
     }
 }
Exemplo n.º 5
0
 public ActionResult Search(EasyUIGridParamModel param, TempCharge tCharge, TempChargeDetail tChargeDetail)
 {
     int itemCount = 0;
     List<dynamic> chargeList = new Ajax.BLL.TempChargeRule().Search(param, tCharge, out itemCount);
     var showList = from tempCharge in chargeList
                    select new
                    {
                        ID = tempCharge.ID,
                        CUSTOMERNAME = tempCharge.CUSTOMERNAME,
                        CHARGENAME = tempCharge.CHARGENAME,
                        MONEY = tempCharge.MONEY,
                        CREATETIME = tempCharge.CREATETIME,
                        NAME = tempCharge.NAME
                    };
     return Json(new { total = itemCount, rows = showList }, JsonRequestBehavior.AllowGet);
 }