示例#1
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(TempChargeDetail model)
 {
     using (DBHelper db = DBHelper.Create())
     {
         db.Insert <TempChargeDetail>(model);
     }
 }
示例#2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(TempChargeDetail model)
 {
     using (DBHelper db = DBHelper.Create())
     {
         db.Update <TempChargeDetail>(model);
         return(true);
     }
 }
示例#3
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));
        }