public void Save(DCVendorCountyRate dcvdr) { try { VendorCountyRateDetail detvdr = new VendorCountyRateDetail(); GMUtilities.GMReflectionUtils.Copy(dcvdr, detvdr); m_biz.Save(detvdr); } catch (Exception exp) { throw exp; } finally { } }
public List<DCVendorCountyRate> Get(GridView gv) { List<DCVendorCountyRate> rv = new List<DCVendorCountyRate>(); foreach (GridViewRow grv in gv.Rows) if (grv.Visible) { DCVendorCountyRate vcr = new DCVendorCountyRate(gv, grv); if (vcr.CountyID==0 || vcr.Rate == 0) continue; m_vf.Assign(vcr); rv.Add(vcr); } return rv; }
public List <DCVendorCountyRate> Get(int ID) { List <DCVendorCountyRate> rv = new List <DCVendorCountyRate>(); DataTable dt = m_biz.GetByVendor(ID); foreach (DataRow dr in dt.Rows) { DCVendorCountyRate vcr = new DCVendorCountyRate(dr); vcr.DSCountyID = m_dtcounty; rv.Add(vcr); } return(rv); }
public void Assign(DCVendorCountyRate dcvcr) { dcvcr.DSCountyID = m_dtcounty; }