Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
        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;
        }
Exemplo n.º 5
0
 private void GetProjectTypes()
 {
     projectTypes = WebCall.GetMethod <List <T_TravelProjectTypes> >(WebCall.GetTravelProjectTypes, null);
     foreach (T_TravelProjectTypes projectType in projectTypes)
     {
         cbxType.Items.Add(projectType.ProjectTypeName);
     }
 }
Exemplo n.º 6
0
        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);
            }
        }
Exemplo n.º 7
0
 private void GetAllVipServices()
 {
     vips             = WebCall.GetMethod <List <VIPDto> >(WebCall.GetVips, null);
     dgVIP.DataSource = vips;
 }
Exemplo n.º 8
0
 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;
        }
Exemplo n.º 10
0
 private void GetAllDrivers()
 {
     drivers = WebCall.GetMethod <List <DriverDto> >(WebCall.GetDrivers, null);
     dgDrivers.DataSource = drivers;
 }
Exemplo n.º 11
0
        private void GetAllUsers()
        {
            var users = WebCall.GetMethod <List <UserDto> >(WebCall.GetUsers, null);

            dgUsers.DataSource = users;
        }