Exemple #1
0
        public RawItemMasterViewModel()
        {
            TableDropDown tdd = new TableDropDown();

            PrimaryVendorList           = tdd.SetPrimaryVendorList();
            StoreList                   = tdd.SetStoreDropDown();
            LocationList                = tdd.SetLocationDropDown();
            VendorList                  = tdd.SetVendorList();
            UnitOfMeasureList           = tdd.SetUnitOfMeasureList();
            MaterialsGroupList          = tdd.SetMaterialsGroupList();
            GroupList                   = tdd.SetGroupList();
            RawItemMasterList           = new List <RawItem>();
            MenuItemList                = new List <MenuItem>();
            VendorsSelectedList         = new List <bool>(VendorList.Count());
            PreviousVendorsSelectedList = new List <bool>();
            VendorCPR                   = new List <string>(VendorList.Count());
            VendorPUN                   = new List <string>(VendorList.Count());
            VendorSCM                   = new List <string>(VendorList.Count());
            int i = 0;

            foreach (var v in VendorList)
            {
                VendorsSelectedList.Add(v.Cb);
                PreviousVendorsSelectedList.Add(v.Cb);
                VendorCPR.Add("");
                VendorPUN.Add("");
                VendorSCM.Add("");
                i++;
            }
        }
Exemple #2
0
        public VendorMasterViewModel()
        {
            TableDropDown tdd = new TableDropDown();

            LocationList     = tdd.SetLocationDropDown();
            StoreList        = tdd.SetStoreDropDown();
            VendorMasterList = new List <VendorMasterViewModel>();
        }
        public MenuItemMasterViewModel()
        {
            TableDropDown tdd = new TableDropDown();

            LocationList       = tdd.SetLocationDropDown();
            StoreList          = tdd.SetStoreDropDown();
            MenuItemMasterList = new List <MenuItem>();
            MenuRecipeList     = new List <MenuRecipe>();
            TierList           = TierManager.SetTierList();
            TradingAreaList    = tdd.SetTradingAreaList();
            CategoryList       = tdd.SetCategoryList();
            MIMFGCList         = tdd.SetPMGList("PMGFGC");
            MIMHPTList         = tdd.SetPMGList("PMGHPT");
            MIMWGRList         = tdd.SetPMGList("PMGWGR");
            GroupList          = tdd.SetGroupList();
            MasterList         = new List <MenuItemMasterViewModel>();
        }
        public MenuRecipeViewModel()
        {
            TableDropDown tdd = new TableDropDown();

            RIRRIC    = new List <string>();
            RIMRID    = new List <string>();
            RIMCPR    = new List <string>();
            RIRSFQ    = new List <string>();
            RIRCWC    = new List <string>();
            RIRSTA    = new List <string>();
            STOATT    = new List <string>();
            GroupList = tdd.SetGroupList();
            RIRRIC.Add("");
            RIMRID.Add("");
            RIMCPR.Add("");
            RIRSFQ.Add("");
            RIRCWC.Add("");
            RIRSTA.Add("");
            STOATT.Add("");
            MenuRecipeList = new List <MenuRecipe>();
        }
        public ReportGenerationViewModel()
        {
            TableDropDown tdd = new TableDropDown();

            OwnershipList    = tdd.SetOwnershipDropDown();
            LocationList     = tdd.SetLocationDropDown();
            ProfitCenter     = tdd.SetProfitCenterDropDown();
            BreakfastTier    = tdd.SetBreakfastPriceTierDropDown();
            RegularTier      = tdd.SetRegularPriceTierDropDown();
            DCTier           = tdd.SetDessertPriceTierDropDown();
            MDSTier          = tdd.SetMDSPriceTierDropDown();
            McCafeLevel2Tier = tdd.SetMcCafeLevel2PriceTierDropDown();
            McCafeLevel3Tier = tdd.SetMcCafeLevel3PriceTierDropDown();
            McCafeBistroTier = tdd.SetMcCafeBistroPriceTierDropDown();
            ProjectGoldTier  = tdd.SetProjectGoldPriceTierDropDown();
            BusinessExtList  = tdd.SetBusinessExtensionList();
            StoreList        = tdd.SetStoreDropDown();
            BET = new List <bool>();
            foreach (CheckBoxList cbl in BusinessExtList)
            {
                BET.Add(cbl.Cb);
            }
        }
        public TextGeneratorViewModel()
        {
            TableDropDown tdd = new TableDropDown();

            StoreList = tdd.SetStoreInformationList();
        }