private void CheckGasto(ExpenseInfo gasto) { if ((gasto.ECategoriaGasto != ECategoriaGasto.Stock) && (gasto.ECategoriaGasto != ECategoriaGasto.GeneralesExpediente) && (gasto.ECategoriaGasto != ECategoriaGasto.OtrosExpediente)) { return; } switch (gasto.ETipoAcreedor) { case ETipoAcreedor.Proveedor: Proveedor += gasto.NFactura + " - " + gasto.Acreedor + "\n"; break; case ETipoAcreedor.Naviera: Naviera += gasto.NFactura + " - " + gasto.Acreedor + "\n"; break; case ETipoAcreedor.Despachante: Despachante += gasto.NFactura + " - " + gasto.Acreedor + "\n"; break; case ETipoAcreedor.TransportistaOrigen: TransportistaOrigen += gasto.NFactura + " - " + gasto.Acreedor + "\n"; break; case ETipoAcreedor.TransportistaDestino: TransportistaDestino += gasto.NFactura + " - " + gasto.Acreedor + "\n"; break; } }
protected void CopyValues(ExpenseInfo source) { if (source == null) { return; } Oid = source.Oid; _base.CopyValues(source); }
private void CheckGasto(ECategoriaGasto category, ETipoAcreedor providerType, ExpedientInfo expedient, ExpenseList list, List <GastoPrint> pList) { ExpenseInfo info = list.GetItemByExpediente(expedient.Oid, providerType, category); if (info == null) { Expense item = Expense.New(); item.Codigo = "---"; item.OidExpediente = expedient.Oid; item.CodigoExpediente = expedient.Codigo; item.ECategoriaGasto = ECategoriaGasto.GeneralesExpediente; item.Descripcion = moleQule.Common.Structs.EnumText <ETipoAcreedor> .GetLabel(providerType); item.ETipoAcreedor = providerType; pList.Add(GastoPrint.New(item.GetInfo(false))); } }