Ejemplo n.º 1
0
        protected async void Load()
        {
            canEdit = true;

            var canErpDbAt132GetTblGnProductByProductSeqResult = await CanErpDbAt132.GetTblGnProductByProductSeq(int.Parse($"{Product_SEQ}"));

            tblgnproduct = canErpDbAt132GetTblGnProductByProductSeqResult;
        }
Ejemplo n.º 2
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnProduct args)
        {
            try
            {
                var canErpDbAt132UpdateTblGnProductResult = await CanErpDbAt132.UpdateTblGnProduct(int.Parse($"{Product_SEQ}"), tblgnproduct);

                DialogService.Close(tblgnproduct);
            }
            catch (Exception canErpDbAt132UpdateTblGnProductException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnProduct");
            }
        }
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnProduct args)
        {
            try
            {
                var canErpDbAt132CreateTblGnProductResult = await CanErpDbAt132.CreateTblGnProduct(tblgnproduct);

                DialogService.Close(tblgnproduct);
            }
            catch (Exception canErpDbAt132CreateTblGnProductException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnProduct!");
            }
        }
Ejemplo n.º 4
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblGnProduct data)
        {
            try
            {
                var canErpDbAt132DeleteTblGnProductResult = await CanErpDbAt132.DeleteTblGnProduct(data.Product_SEQ);

                if (canErpDbAt132DeleteTblGnProductResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblGnProductException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnProduct");
            }
        }
Ejemplo n.º 5
0
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblGnProduct args)
        {
            var result = await DialogService.OpenAsync <EditTblGnProduct>("Edit Tbl Gn Product", new Dictionary <string, object>() { { "Product_SEQ", args.Product_SEQ } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
 protected async void Load()
 {
     tblgnproduct = new ErpCan.Models.CanErpDbAt132.TblGnProduct();
 }