コード例 #1
0
        protected void EditFacturaGastos(Expedient expediente, InputInvoiceInfo fac)
        {
            this.Enabled = false;

            try
            {
                PgMng.Reset(5, 1, "Recalculando gastos y costes del expediente...", this);
                PgMng.Grow();

                expediente.LoadConceptosAlbaranes(false);
                PgMng.Grow();

                expediente.UpdateGasto(fac, expediente.Conceptos, true);
                PgMng.Grow();

                UpdateExpensesList();
                UpdateBindings();
                PgMng.Grow();
            }
            finally
            {
                PgMng.FillUp();
                this.Enabled = true;
            }
        }
コード例 #2
0
        protected void EditOtroGasto(Expedient expedient, Expense expense)
        {
            expedient.UpdateGasto(expense, true);

            UpdateExpensesList();
        }