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