Example #1
0
        /// <summary>
        /// Gets the InstitutionContact detail
        /// </summary>
        private void GetInstitutionContactDetail()
        {
            try
            {
                ////set pageLoadStatus - suppress textchanged event
                this.pageLoadStatus = true;
                this.cashAccountManagement.Clear();
                this.cashAccountManagement = this.F1532Control.WorkItem.F1532_GetInstitutionContactDetail(this.contactId);

                if (this.cashAccountManagement.GetInstitutionContact.Rows.Count > 0)
                {
                    this.ContactIdTextBox.Text        = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.ContactIDColumn].ToString();
                    this.NameTextBox.Text             = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.NameColumn].ToString();
                    this.Address1TextBox.Text         = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.Address1Column].ToString();
                    this.Address2TextBox.Text         = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.Address2Column].ToString();
                    this.CityTextBox.Text             = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.CityColumn].ToString();
                    this.StateTextBox.Text            = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.StateColumn].ToString();
                    this.ZipTextBox.Text              = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.ZipColumn].ToString();
                    this.TitleTextBox.Text            = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.TitleColumn].ToString();
                    this.PhoneNumberTextBox.Text      = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.PhoneColumn].ToString();
                    this.EmailTextBox.Text            = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.EmailColumn].ToString();
                    this.NoteTextBox.Text             = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.NoteColumn].ToString();
                    this.ActiveComboBox.SelectedValue = this.cashAccountManagement.GetInstitutionContact.Rows[0][this.cashAccountManagement.GetInstitutionContact.IsActiveColumn];
                    ////set attachment and comments count
                    this.SetAdditionalOperationCount();
                    ////set permission
                    this.SetFieldsPermission();
                }
                else
                {
                    this.ClearInstitutionContact();
                    ////disable panel
                    this.ContactPanel.Enabled = false;
                }

                ////reset pageLoadStatus - trigger textchanged event
                this.pageLoadStatus = false;
            }
            catch (SoapException ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm);
            }
        }
Example #2
0
        /// <summary>
        /// Gets the cashAccount detail
        /// </summary>
        private void GetCashAccountDetail()
        {
            try
            {
                this.cashAccountManagement.Clear();
                this.cashAccountManagement = this.F1531Control.WorkItem.F1531_GetCashAccountDetail(this.registerId);

                if (this.cashAccountManagement.GetCashAccount.Rows.Count > 0)
                {
                    this.RegisterIdTextBox.Text             = this.cashAccountManagement.GetCashAccount.Rows[0][this.cashAccountManagement.GetCashAccount.RegisterIDColumn].ToString();
                    this.AccountNameTextBox.Text            = this.cashAccountManagement.GetCashAccount.Rows[0][this.cashAccountManagement.GetCashAccount.AccountNameColumn].ToString();
                    this.RegisterTypeComboBox.SelectedValue = this.cashAccountManagement.GetCashAccount.Rows[0][this.cashAccountManagement.GetCashAccount.RegisterTypeIDColumn];
                    this.AccountingSubFundTextBox.Text      = this.cashAccountManagement.GetCashAccount.Rows[0][this.cashAccountManagement.GetCashAccount.SubFundColumn].ToString();
                    ////check for subfund
                    if (!string.IsNullOrEmpty(this.cashAccountManagement.GetCashAccount.Rows[0][this.cashAccountManagement.GetCashAccount.SubFundIDColumn].ToString()))
                    {
                        this.subFundId = Convert.ToInt32(this.cashAccountManagement.GetCashAccount.Rows[0][this.cashAccountManagement.GetCashAccount.SubFundIDColumn]);
                    }

                    this.AccountNumberTextBox.Text            = this.cashAccountManagement.GetCashAccount.Rows[0][this.cashAccountManagement.GetCashAccount.AccountNumberColumn].ToString();
                    this.ActiveComboBox.SelectedValue         = this.cashAccountManagement.GetCashAccount.Rows[0][this.cashAccountManagement.GetCashAccount.IsActiveColumn].ToString();
                    this.DefaultAccountComboBox.SelectedValue = this.cashAccountManagement.GetCashAccount.Rows[0][this.cashAccountManagement.GetCashAccount.IsDefaultColumn].ToString();
                    this.DescriptionTextBox.Text = this.cashAccountManagement.GetCashAccount.Rows[0][this.cashAccountManagement.GetCashAccount.DescriptionColumn].ToString();
                    ////set attachment and comments count
                    this.SetAdditionalOperationCount();
                    ////set permission
                    this.SetFieldsPermission();
                }
                else
                {
                    this.ClearCashAccount();
                    ////disable panel
                    this.RegisterPanel.Enabled = false;
                }
            }
            catch (SoapException ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this);
            }
            catch (Exception ex)
            {
                ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this);
            }
        }