/// <summary> /// 编辑缴纳金额 /// </summary> /// <param name="item"></param> /// <returns></returns> public int EditCashItem(CashDetailModel item, int cd_id) { if (null == item) { return(0); } HCQ2_Model.BB_CashDetail model = new HCQ2_Model.BB_CashDetail { ip_id = item.ip_id, cash_start_date = DateTime.ParseExact(item.cash_start_date, "yyyy-MM-dd", new System.Globalization.CultureInfo("zh-CN")), cash_end_date = DateTime.ParseExact(item.cash_end_date, "yyyy-MM-dd", new System.Globalization.CultureInfo("zh-CN")), cash_money = item.cash_money }; return(Modify(model, s => s.cd_id == cd_id, "cash_start_date", "cash_end_date", "cash_money")); }
/// <summary> /// 添加缴纳金额 /// </summary> /// <param name="item"></param> /// <returns></returns> public int AddCashItem(CashDetailModel item) { if (null == item) { return(0); } HCQ2_Model.BB_CashDetail model = new HCQ2_Model.BB_CashDetail { ip_id = item.ip_id, cash_start_date = DateTime.ParseExact(item.cash_start_date, "yyyy-MM-dd", new System.Globalization.CultureInfo("zh-CN")), cash_end_date = DateTime.ParseExact(item.cash_end_date, "yyyy-MM-dd", new System.Globalization.CultureInfo("zh-CN")), cash_money = item.cash_money }; return(Add(model)); }