コード例 #1
0
        async Task CopyBaseData()
        {
            CompanyAPI comApi = new CompanyAPI(api);
            ErrorCodes res    = await comApi.CopyBaseData(fromCompany, editrow, (bool)chkDimensions.IsChecked, (bool)chkTransType.IsChecked, (bool)chkNumberSerei.IsChecked, (bool)chkPayments.IsChecked, (bool)chkJournal.IsChecked, (bool)chkGroups.IsChecked, (bool)chkGlAccount.IsChecked, (bool)chkVat.IsChecked, CopyProject : (bool)chkProject.IsChecked);

            Thread.Sleep(2 * 1000);
            editrow.ClearCache(typeof(GLVat));
            editrow.ClearCache(typeof(GLAccount));
            busyIndicator.IsBusy = false;
            if (res != ErrorCodes.Succes)
            {
                UtilDisplay.ShowErrorCode(res);
            }
        }