Пример #1
0
        private void btnSelectPerson_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                var frmPersonInfo = new PersonInfoSubmit();
                frmPersonInfo.ShowDialog();

                var person = Business.GetPayrollPersonBusiness().GetById(frmPersonInfo.PersonId);

                txtPerson.Text = person == null ? string.Empty : person.PPerson_Code;
            }
            catch
            {
                throw;
            }
        }
Пример #2
0
        private void btnSelectPerson_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                var frmPersonInfo = new PersonInfoSubmit();
                frmPersonInfo.ShowDialog();

                var person = Business.GetPayrollPersonBusiness().GetById(frmPersonInfo.PersonId);

                txtPerson.Text = person == null ? string.Empty : person.PPerson_Code;
            }
            catch (Exception ex)
            {
                AccountingKernel.Forms.Base.BaseWindow.ShowError(ex);
            }
        }