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++; } }
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 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); } }