Exemple #1
0
        private void DataGrid_SelectionChanged(object sender, Syncfusion.SfDataGrid.XForms.GridSelectionChangedEventArgs e)
        {
            production_order_detail production_order_detail = dataGridorderdetail.SelectedItem as production_order_detail;

            CurrentSession.production_order_detail = production_order_detail.id_order_detail;
            Navigation.PushModalAsync(new ProductionOrderEdit(CurrentSession.production_order_detail));
        }
        public ProductionOrderEdit(int id_order_detail)
        {
            InitializeComponent();
            RestService RestService = new Fidabel.RestService();

            production_order_detailList = RestService.GetOrderDetail("http://" + CurrentSession.url + "/api/production_order_detail/show/" + id_order_detail);
            if (production_order_detailList != null)
            {
                lblname.Text     = production_order_detailList.name;
                txtquantity.Text = production_order_detailList.quantity.ToString();
            }
        }