/// <summary> /// 保存记账记录 /// </summary> /// <param name="OpenId">用户标识</param> /// <param name="ItemType">项目类别</param> /// <param name="ItemMoney">项目金额</param> /// <param name="ItemDate">记录时间</param> /// <param name="ItemNote">备注</param> /// <returns></returns> public bool SaveInBill(string OpenId, string ItemType, string ItemMoney, string ItemDate, string ItemNote) { InBillEntity _entiry = new InBillEntity(); _entiry.OpenId = OpenId; _entiry.ItemType = ItemType; _entiry.ItemMoney = ItemMoney; _entiry.ItemDate = ItemDate; _entiry.ItemNote = ItemNote; return(SaveInBill(_entiry)); }
/// <summary> /// 保存记账记录 /// </summary> /// <param name="_entity"></param> /// <returns></returns> public bool SaveInBill(InBillEntity _entity) { int _result = 0; string _sql = string.Format(_insertSql, _entity.OpenId, _entity.ItemType, _entity.ItemMoney, _entity.ItemDate, _entity.ItemNote); _result = DataAccess.ExecNonQuery(_sql); return(_result > 0); }