private void Awake() { //allDay_Now.setProducts(contProd.getProducts()); //инит. комп. dropDown_nameProduct = dropDown_nameProduct.GetComponent <Dropdown>(); allDay_Now = allDay_NowGO.GetComponent <AllDay>(); //Установление связей с конт. прод. contLogic = new ContainerLogic(containerProductGO); //contLogic.setContainerProduct(containerProductGO); // contLogic. //получение базовых продуктов для формирование расчётных продукьтов // //allDay_Now.setProductsOnStartProject(contLogic.getProducts()); allDay_Now.initNewAllDay(contLogic.getProducts(), DateTime.Now.AddDays(-1), coefForGPA); //формирование выводов параметров в окне оператора.Переделать или сделать кастыль Debug.Log("Check - " + GetComponentsInChildren <FieldMassScript>().ToString()); // Invoke("initTextListForDay",1f); initTextListForDay(contentDay); initTextListForNight(contentNight); //itemsContentDay = get }
public IActionResult Index() { List <ContainerViewModel> containers = new List <ContainerViewModel>(); try { var result = ContainerLogic.GetContainers(_configuration.GetConnectionString("DefaultConnection")); foreach (var item in result) { containers.Add(new ContainerViewModel() { Id = item.Id, ContainerName = item.ContainerName, ContainerType = item.ContainerType, CapacityInOz = item.CapacityInOz.ToString("00.00") }); } } catch (Exception ex) { Console.WriteLine(ex.StackTrace); } return(View(containers)); }