private BColectieCorespondenteColoaneValori getDictProprietatiModificate() { BColectieCorespondenteColoaneValori dictRezultat = new BColectieCorespondenteColoaneValori(); if (this.IsMyDataRowItemHasChanged(DColoaneListeAfisaj.EnumCampuriTabela.nOrdine.ToString())) { if (this.Ordine < 0) { dictRezultat.AdaugaNull(DColoaneListeAfisaj.EnumCampuriTabela.nOrdine.ToString()); } else { dictRezultat.Adauga(DColoaneListeAfisaj.EnumCampuriTabela.nOrdine.ToString(), this.Ordine, false); } } if (this.IsMyDataRowItemHasChanged(DColoaneListeAfisaj.EnumCampuriTabela.bVizibila.ToString())) { dictRezultat.Adauga(DColoaneListeAfisaj.EnumCampuriTabela.bVizibila.ToString(), this.Vizibila); } if (this.IsMyDataRowItemHasChanged(DColoaneListeAfisaj.EnumCampuriTabela.nLatime.ToString())) { dictRezultat.Adauga(DColoaneListeAfisaj.EnumCampuriTabela.nLatime.ToString(), this.Latime); } return(dictRezultat); }
/// <summary> /// Adaugam o noua inregistrare in tabela ColoaneListeAfisaj_TP /// </summary> /// <param name="pIdLista"></param> /// <param name="pColoana"></param> /// <param name="pOrdine"></param> /// <param name="pVizibila"></param> /// <param name="pLatime"></param> /// <returns>Cheia inregistrarii adaugate</returns> /// <remarks></remarks> public static void Add(int pIdLista, string pColoana, int pOrdine, bool pVizibila, int pLatime, IDbTransaction pTranzactie) { BColectieCorespondenteColoaneValori dictCorespondenta = new BColectieCorespondenteColoaneValori(); dictCorespondenta.Adauga(EnumCampuriTabela.xnIdLista.ToString(), pIdLista); dictCorespondenta.Adauga(EnumCampuriTabela.tColoana.ToString(), pColoana); if (pOrdine < 0) { dictCorespondenta.AdaugaNull(EnumCampuriTabela.nOrdine.ToString()); } else { dictCorespondenta.Adauga(EnumCampuriTabela.nOrdine.ToString(), pOrdine, false); } dictCorespondenta.Adauga(EnumCampuriTabela.bVizibila.ToString(), pVizibila); dictCorespondenta.Adauga(EnumCampuriTabela.nLatime.ToString(), pLatime); DGeneral.Insert(NUME_TABELA, dictCorespondenta, pTranzactie); }