コード例 #1
0
        protected async void Load()
        {
            canEdit = true;

            var canErpDbAt132GetTblGnCityByCitySeqResult = await CanErpDbAt132.GetTblGnCityByCitySeq(int.Parse($"{City_SEQ}"));

            tblgncity = canErpDbAt132GetTblGnCityByCitySeqResult;
        }
コード例 #2
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnCity args)
        {
            try
            {
                var canErpDbAt132UpdateTblGnCityResult = await CanErpDbAt132.UpdateTblGnCity(int.Parse($"{City_SEQ}"), tblgncity);

                DialogService.Close(tblgncity);
            }
            catch (Exception canErpDbAt132UpdateTblGnCityException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update TblGnCity");
            }
        }
コード例 #3
0
        protected async void Form0Submit(ErpCan.Models.CanErpDbAt132.TblGnCity args)
        {
            try
            {
                var canErpDbAt132CreateTblGnCityResult = await CanErpDbAt132.CreateTblGnCity(tblgncity);

                DialogService.Close(tblgncity);
            }
            catch (Exception canErpDbAt132CreateTblGnCityException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new TblGnCity!");
            }
        }
コード例 #4
0
        protected async void GridDeleteButtonClick(MouseEventArgs args, ErpCan.Models.CanErpDbAt132.TblGnCity data)
        {
            try
            {
                var canErpDbAt132DeleteTblGnCityResult = await CanErpDbAt132.DeleteTblGnCity(data.City_SEQ);

                if (canErpDbAt132DeleteTblGnCityResult != null)
                {
                    grid0.Reload();
                }
            }
            catch (Exception canErpDbAt132DeleteTblGnCityException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to delete TblGnCity");
            }
        }
コード例 #5
0
        protected async void Grid0RowSelect(ErpCan.Models.CanErpDbAt132.TblGnCity args)
        {
            var result = await DialogService.OpenAsync <EditTblGnCity>("Edit Tbl Gn City", new Dictionary <string, object>() { { "City_SEQ", args.City_SEQ } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
コード例 #6
0
 protected async void Load()
 {
     tblgncity = new ErpCan.Models.CanErpDbAt132.TblGnCity();
 }