示例#1
0
        private SIMSResponseData SaveFactory(long Vehicle_ID, short store_ID, short Invtr_ID)
        {
            SIMSResponseData         responseStatus;
            VehicleFactoryOptionsKBB vehicleFactoryOptions = new VehicleFactoryOptionsKBB();


            vehicleFactoryOptions.VehicleId = Vehicle_ID;
            vehicleFactoryOptions.StoreId   = store_ID;
            vehicleFactoryOptions.InvtrId   = Invtr_ID;


            List <FactoryOptionsKBB> listfactory = new List <FactoryOptionsKBB>();

            foreach (var items in AppDelegate.appDelegate.fctoption)
            {
                foreach (var item in items.questions)
                {
                    FactoryOptionsKBB factory = new FactoryOptionsKBB();
                    factory.categoryName     = item.categoryName;
                    factory.displayName      = item.displayName;
                    factory.isSelected       = item.isSelected;
                    factory.optionId         = item.optionId;
                    factory.isStandardOption = item.isStandardOption;
                    factory.optionKindId     = "KBB";
                    listfactory.Add(factory);
                }
            }

            vehicleFactoryOptions.data = listfactory;
            responseStatus             = ServiceFactory.getWebServiceHandle().SaveFactoryOptions(vehicleFactoryOptions);
            return(responseStatus);
        }
        internal void UpdateCell(FactoryOptionsKBB factoryOption)
        {
            switchElement.Tag           = factoryOption.optionId;
            switchElement.On            = Convert.ToBoolean(factoryOption.isSelected);
            switchElement.ValueChanged += Switchele_ValueChanged;

            LabelElement.Text = factoryOption.displayName;
            LabelElement.UserInteractionEnabled = true;
        }
示例#3
0
 internal void UpdateCell(FactoryOptionsKBB factoryOption)
 {
 }