/// <summary> /// 获得数据列表 /// </summary> public List <MobileSoft.Model.HSPR.Tb_HSPR_RefundMultiAudit> DataTableToList(DataTable dt) { List <MobileSoft.Model.HSPR.Tb_HSPR_RefundMultiAudit> modelList = new List <MobileSoft.Model.HSPR.Tb_HSPR_RefundMultiAudit>(); int rowsCount = dt.Rows.Count; if (rowsCount > 0) { MobileSoft.Model.HSPR.Tb_HSPR_RefundMultiAudit model; for (int n = 0; n < rowsCount; n++) { model = new MobileSoft.Model.HSPR.Tb_HSPR_RefundMultiAudit(); //model.IID=dt.Rows[n]["IID"].ToString(); if (dt.Rows[n]["BusinessType"].ToString() != "") { model.BusinessType = int.Parse(dt.Rows[n]["BusinessType"].ToString()); } if (dt.Rows[n]["CommID"].ToString() != "") { model.CommID = int.Parse(dt.Rows[n]["CommID"].ToString()); } //model.CustID=dt.Rows[n]["CustID"].ToString(); //model.RoomID=dt.Rows[n]["RoomID"].ToString(); //model.CostID=dt.Rows[n]["CostID"].ToString(); //model.FeesID=dt.Rows[n]["FeesID"].ToString(); //model.RefundID=dt.Rows[n]["RefundID"].ToString(); //model.PrecID=dt.Rows[n]["PrecID"].ToString(); modelList.Add(model); } } return(modelList); }
/// <summary> /// 更新一条数据 /// </summary> public void Update(MobileSoft.Model.HSPR.Tb_HSPR_RefundMultiAudit model) { dal.Update(model); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(MobileSoft.Model.HSPR.Tb_HSPR_RefundMultiAudit model) { return(dal.Add(model)); }