Esempio 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();
        }
Esempio 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;
        }
Esempio 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;
        }
Esempio 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;
        }
Esempio 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);
     }
 }
Esempio 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);
            }
        }
Esempio n. 7
0
 private void GetAllVipServices()
 {
     vips             = WebCall.GetMethod <List <VIPDto> >(WebCall.GetVips, null);
     dgVIP.DataSource = vips;
 }
Esempio 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;
        }
Esempio n. 10
0
 private void GetAllDrivers()
 {
     drivers = WebCall.GetMethod <List <DriverDto> >(WebCall.GetDrivers, null);
     dgDrivers.DataSource = drivers;
 }
Esempio n. 11
0
        private void GetAllUsers()
        {
            var users = WebCall.GetMethod <List <UserDto> >(WebCall.GetUsers, null);

            dgUsers.DataSource = users;
        }