예제 #1
0
        protected void OnEnumcomboOperationEnumItemSelected(object sender, Gamma.Widgets.ItemSelectedEventArgs e)
        {
            buttonPrint.Sensitive     = Entity.TypeOperation == IncomeType.Return;
            labelExpenseTitle.Visible = comboExpense.Visible =
                ylabel1.Visible       = specialListCmbOrganisation.Visible = Entity.TypeOperation == IncomeType.Return;
            labelIncomeTitle.Visible  = comboCategory.Visible = Entity.TypeOperation != IncomeType.Return;

            labelClientTitle.Visible = yentryClient.Visible = Entity.TypeOperation == IncomeType.Payment;

            vboxDebts.Visible         = checkNoClose.Visible = Entity.TypeOperation == IncomeType.Return && UoW.IsNew;
            yspinMoney.Sensitive      = Entity.TypeOperation != IncomeType.Return;
            yspinMoney.ValueAsDecimal = 0;

            FillDebts();
            CheckOperation((IncomeType)e.SelectedItem);
        }
예제 #2
0
 protected void OnComboExpenseItemSelected(object sender, Gamma.Widgets.ItemSelectedEventArgs e)
 {
     FillDebts();
 }
예제 #3
0
 protected void OnEnumcomboStatusEnumItemSelected(object sender, ItemSelectedEventArgs e)
 {
     OnRefiltered ();
 }
 protected void OnEnumcomboDocumentTypeEnumItemSelected(object sender, ItemSelectedEventArgs e)
 {
     OnRefiltered ();
 }