/// <summary> /// /// </summary> /// <param name="id"></param> private void BindList(string id, ReportCatalog catalogEnum) { string catalog = EnumHandler<ReportCatalog>.GetStringFromEnum(catalogEnum); IList<InstalmentOfCompensationInfo> cList = new InstalmentOfCompensation().GetList(id, catalog); InstalmentOfCompensationInfo cInfo = new InstalmentOfCompensationInfo(); cList.Add(cInfo); gvList.DataSource = cList; gvList.DataBind(); }
/// <summary> /// /// </summary> /// <param name="id"></param> private void BindList(string id, ReportCatalog catalogEnum) { string catalog = EnumHandler<ReportCatalog>.GetStringFromEnum(catalogEnum); IList<InstalmentOfCompensationInfo> cList = new InstalmentOfCompensation().GetList(id, catalog); InstalmentOfCompensationInfo cInfo = new InstalmentOfCompensationInfo(); cList.Add(cInfo); if (catalogEnum == ReportCatalog.InsuranceOfShip) { gvShipList.DataSource = cList; gvShipList.DataBind(); } else if (catalogEnum == ReportCatalog.InsuranceOfCompensation) { gvCompensationList.DataSource = cList; gvCompensationList.DataBind(); } }