private void refreshData() { List <KeyValuePair <string, string> > paramlist = new List <KeyValuePair <string, string> >(); paramlist.Add(new KeyValuePair <string, string>("supplierid", supplier.SupplierID.ToString())); var supplierResult = WebCall.GetMethod <SupplierResult>(WebCall.GetSupplierDetail, paramlist); if (supplierResult.Code.Equals(SystemConst.MSG_SUCCESS)) { travelProjects.Clear(); foreach (TravelProjectDto tra in supplierResult.Data.travelProjects) { travelProjects.Add(tra); } dgTravelService.DataSource = null; dgTravelService.DataSource = travelProjects; hotels.Clear(); foreach (HotelDto hotel in supplierResult.Data.hotels) { hotels.Add(hotel); } dgHotel.DataSource = null; dgHotel.DataSource = hotels; } else { ClientUtils.WarningCode(supplierResult.Message); } GetAllVipServices(); GetAllDrivers(); GetAllGuides(); }
private void GetAllDrivers() { List <KeyValuePair <string, string> > paramlist = new List <KeyValuePair <string, string> >(); paramlist.Add(new KeyValuePair <string, string>("supplierID", supplier.SupplierID.ToString())); drivers = WebCall.GetMethod <List <DriverDto> >(WebCall.GetDrivers, paramlist); dgDrivers.DataSource = drivers; }
private void GetAllGuides() { List <KeyValuePair <string, string> > paramlist = new List <KeyValuePair <string, string> >(); paramlist.Add(new KeyValuePair <string, string>("supplierID", supplier.SupplierID.ToString())); guides = WebCall.GetMethod <List <GuideDto> >(WebCall.GetGuides, paramlist); dgGuides.DataSource = guides; }
private void GetAllVipServices() { List <KeyValuePair <string, string> > paramlist = new List <KeyValuePair <string, string> >(); paramlist.Add(new KeyValuePair <string, string>("supplierID", supplier.SupplierID.ToString())); vips = WebCall.GetMethod <List <VIPDto> >(WebCall.GetVips, paramlist); dgVIP.DataSource = vips; }
private void GetProjectTypes() { projectTypes = WebCall.GetMethod <List <T_TravelProjectTypes> >(WebCall.GetTravelProjectTypes, null); foreach (T_TravelProjectTypes projectType in projectTypes) { cbxType.Items.Add(projectType.ProjectTypeName); } }
private void GetRoles() { RolesResult result = WebCall.GetMethod <RolesResult>(WebCall.GetRoles, null); if (result.Code.Equals(SystemConst.MSG_SUCCESS)) { roles = result.Data; foreach (T_Roles role in roles) { cbxRole.Items.Add(role.RoleName); } } else { ClientUtils.WarningCode(result.Message); } }
private void GetAllVipServices() { vips = WebCall.GetMethod <List <VIPDto> >(WebCall.GetVips, null); dgVIP.DataSource = vips; }
private void GetAllGuides() { guides = WebCall.GetMethod <List <GuideDto> >(WebCall.GetGuides, null); dgGuides.DataSource = guides; }
private void GetAllSuppliers() { var suppliers = WebCall.GetMethod <List <Supplier> >(WebCall.GetAllSupplier, null); dgSuppliers.DataSource = suppliers; }
private void GetAllDrivers() { drivers = WebCall.GetMethod <List <DriverDto> >(WebCall.GetDrivers, null); dgDrivers.DataSource = drivers; }
private void GetAllUsers() { var users = WebCall.GetMethod <List <UserDto> >(WebCall.GetUsers, null); dgUsers.DataSource = users; }