public async Task initialKeyNew()
        {
            listMatrialView.ItemsSource = await sourcefirebaseHelper.GetAllMaterialSource();

            Models.MaterialHeader header = await headerfirebaseHelper.GetMaterial(this.header_id);

            Models.Product product = await productbaseHelper.GetProduct(new Guid(header.ProductID));

            Lbl_FoodLabel.Text = product.NameEn;
        }
Пример #2
0
        public async Task initAsync()
        {
            this.picker.SelectedIndex = 0;
            //StockOnline.Models.MaterialHeader materialM = await firebaseHelper.GetMaterial(this.material_id);

            //	StockOnline.Models.MaterialSource materialSource = await sourcefirebaseHelper.GetMaterialSource(this.material_id);

            listAllMaterial.ItemsSource = await sourcefirebaseHelper.GetAllMaterialSource();

            /*
             *
             * Entry_MaterialName.Text = materialSource.Name;
             * Entry_MaterialNameEn.Text = materialSource.NameEn;
             *
             * Entry_Quantity.Text = materialSource.Quantity + "";
             * Entry_QuantityAlert.Text = materialSource.QuantityAlert + "";
             * Entry_Remark.Text = materialSource.Remark;
             *
             *
             * bt_Confirm.Text = "Confirm Update";
             *
             *
             * if (materialSource.UnitName == "กิโลกรัม")
             * {
             *      this.picker.SelectedIndex = 0;
             * }
             * else if (materialSource.UnitName == "ช้อนชา")
             * {
             *      this.picker.SelectedIndex = 1;
             * }
             */
        }
        public async Task initAsync()
        {
            List <Models.MaterialSource> listP = await matSourceFirebaseHelper.GetAllMaterialSource();

            listView.ItemsSource = listP;

            /*
             *
             * List<Models.Material> listFood = await firebaseHelper.GetAllMaterial();
             *
             * listView.ItemsSource = listP;
             */
        }