Esempio n. 1
0
        public int OrderWork(string typeOrder, string token, ref string description, ref List <Shipping> shippings)
        {
            orderGet = new OrderGet();
            //WaiteNoramalReqvestCount();
            CountReqvest++;
            int stateOrder = 1;

            if (CrossConnectivity.Current.IsConnected)
            {
                if (typeOrder == "OrderGet")
                {
                    stateOrder = orderGet.ActiveOreder(token, ref description, ref shippings);
                }
                else if (typeOrder == "OrderDelyveryGet")
                {
                    stateOrder = orderGet.DelyveryOreder(token, ref description, ref shippings);
                }
                else if (typeOrder == "OrderArchiveGet")
                {
                    stateOrder = orderGet.ActiveOreder(token, ref description, ref shippings);
                }
            }
            orderGet = null;
            CountReqvest--;
            return(stateOrder);
        }
Esempio n. 2
0
        public int OrderWork(string typeOrder, int idVech, ref VehiclwInformation vehiclwInformation, string token, ref string description)
        {
            orderGet = new OrderGet();
            //WaiteNoramalReqvestCount();
            CountReqvest++;
            int stateOrder = 1;

            if (CrossConnectivity.Current.IsConnected)
            {
                if (typeOrder == "GetVechicleInffo")
                {
                    stateOrder = orderGet.GetVehiclwInformation(token, idVech, ref description, ref vehiclwInformation);
                }
            }
            orderGet = null;
            CountReqvest--;
            return(stateOrder);
        }
Esempio n. 3
0
        public int OrderOneWork(string typeOrder, string id, string token, string typeSave, string payment, string paymentTeams, ref string description)
        {
            orderGet = new OrderGet();
            //WaiteNoramalReqvestCount();
            CountReqvest++;
            int stateOrder = 1;

            if (CrossConnectivity.Current.IsConnected)
            {
                if (typeOrder == "Save")
                {
                    stateOrder = orderGet.Save(token, id, typeSave, payment, paymentTeams, ref description);
                }
            }
            orderGet = null;
            CountReqvest--;
            return(stateOrder);
        }
Esempio n. 4
0
        public int OrderOneWork(string typeOrder, string id, string token, string idOrder, string name, string contactName, string address,
                                string city, string state, string zip, string phone, string email, string typeSave, ref string description)
        {
            orderGet = new OrderGet();
            //WaiteNoramalReqvestCount();
            CountReqvest++;
            int stateOrder = 1;

            if (CrossConnectivity.Current.IsConnected)
            {
                if (typeOrder == "Save")
                {
                    stateOrder = orderGet.Save(token, id, idOrder, name, contactName, address, city, state, zip, phone, email, typeSave, ref description);
                }
            }
            orderGet = null;
            CountReqvest--;
            return(stateOrder);
        }