public static FacREAInfo Get(ExpedienteREAInfo source, ExpedientInfo exp, Charge cobro) { FacREAInfo obj = new FacREAInfo(); obj.CopyFrom(source, exp, cobro); return(obj); }
protected override void SetRowFormat(DataGridViewRow row) { if (row.IsNewRow) { return; } ExpedienteREAInfo item = (ExpedienteREAInfo)row.DataBoundItem; Face.Common.ControlTools.Instance.SetRowColor(row, item.EEstado); row.Cells[FechaCobro.Index].Style = (item.FechaCobro != DateTime.MinValue) ? BasicStyle : HideStyle; }
public static CobroREA NewChild(ExpedienteREAInfo parent) { if (!CanAddObject()) { throw new System.Security.SecurityException(Library.Resources.Messages.USER_NOT_ALLOWED); } CobroREA obj = new CobroREA(); obj.OidExpedienteREA = parent.Oid; obj.OidExpediente = parent.OidExpediente; return(obj); }
protected override void SetExpedienteREAFormat() { foreach (DataGridViewRow row in ExpedienteREA_DGW.Rows) { if (row.IsNewRow) { return; } ExpedienteREAInfo item = (ExpedienteREAInfo)row.DataBoundItem; Face.Common.ControlTools.Instance.SetRowColor(row, item.EEstado); SetRowFormat(row, "FechaDespachoREA", item.Fecha); SetRowFormat(row, "FechaCobroRea", item.FechaCobro); } }
private void CopyFrom(ExpedienteREAInfo source, ExpedientInfo exp, Charge cobro) { Oid = source.Oid; _oid_expediente_rea = source.Oid; _oid_expediente = source.Oid; _expediente_rea = source.NExpedienteREA; _fecha = source.Fecha; _n_expediente = exp.Codigo; _tipo_expediente = exp.Tipo; _prevision = source.FechaCobro; _total_ayuda = exp.AyudaEstimada; CobroREA cobroR = cobro.CobroREAs.GetItemByExpedienteREA(source.Oid); _asignado = cobroR.Cantidad; _activo = (_asignado == 0) ? Resources.Labels.SET_COBRO : Resources.Labels.RESET_COBRO; _fecha_cobro = cobro.Fecha; }
protected virtual void BuildREAGrantAccountingEntry(ExpedienteREAInfo expediente, LineaRegistro lr) { throw new iQImplementationException("ContabilidadExporterBase::BuildREAGrantAccountingEntry"); }
public CobroREA NewItem(ExpedienteREAInfo parent) { this.AddItem(CobroREA.NewChild(parent)); return(this[Count - 1]); }