public void Initializeaza(BComportamentAplicatie.Enum_TablouDeBord_DataInteres pDataInteres, bool pSalveazaComportamentul) { base.InitializeazaVariabileleGenerale(); this.lDataInteres = pDataInteres; this.lSalveazaComportamentul = pSalveazaComportamentul; incepeIncarcarea(); initDataInteres(); finalizeazaIncarcarea(); }
private static string getDataInteres(BComportamentAplicatie.Enum_TablouDeBord_DataInteres pDataInteres) { switch (pDataInteres) { case BComportamentAplicatie.Enum_TablouDeBord_DataInteres.DataCreare: return(DUtilizatoriVenituriDetalii.EnumCampuriTabela.dDataCreare.ToString()); case BComportamentAplicatie.Enum_TablouDeBord_DataInteres.DataInceput: return(DUtilizatoriVenituriDetalii.EnumCampuriTabela.dDataInceput.ToString()); case BComportamentAplicatie.Enum_TablouDeBord_DataInteres.DataFinal: return(DUtilizatoriVenituriDetalii.EnumCampuriTabela.dDataFinal.ToString()); } return(DUtilizatoriVenituriDetalii.EnumCampuriTabela.dDataCreare.ToString()); }
private static string getDataInteres(BComportamentAplicatie.Enum_TablouDeBord_DataInteres pDataInteres) { switch (pDataInteres) { case BComportamentAplicatie.Enum_TablouDeBord_DataInteres.DataCreare: return(DClientiComenziHeader.EnumCampuriTabela.dDataCreare.ToString()); case BComportamentAplicatie.Enum_TablouDeBord_DataInteres.DataPrimire: return(DClientiComenziHeader.EnumCampuriTabela.dDataPrimire.ToString()); case BComportamentAplicatie.Enum_TablouDeBord_DataInteres.DataLaGata: return(DClientiComenziHeader.EnumCampuriTabela.dDataLaGata.ToString()); case BComportamentAplicatie.Enum_TablouDeBord_DataInteres.DataTermen: return(DClientiComenziHeader.EnumCampuriTabela.dDataInchidere.ToString()); } return(DClientiComenziHeader.EnumCampuriTabela.dDataCreare.ToString()); }
public static BColectieClientiComenziEtape GetListByTehnicianSiLucrareIntrePerioada(int pIdTehnician, int pIdLucrare, DateTime pDataInceput, DateTime pDataSfarsit, BComportamentAplicatie.Enum_TablouDeBord_DataInteres pDataInteres, IDbTransaction pTranzactie) { BColectieClientiComenziEtape lstDClientiComenziEtape = new BColectieClientiComenziEtape(); using (DataSet ds = DClientiComenziEtape.GetListByTehnicianSiLucrareIntrePerioada(pIdTehnician, pIdLucrare, pDataInceput, pDataSfarsit, getDataInteres(pDataInteres), pTranzactie)) { foreach (DataRow dr in ds.Tables[0].Rows) { lstDClientiComenziEtape.Add(new BClientiComenziEtape(dr)); } } return(lstDClientiComenziEtape); }
public static BColectieClientiComenziHeader GetListByParamIntrePerioada(int pIdTehnician, DateTime pDataInceput, DateTime pDataSfarsit, CDefinitiiComune.EnumStare pStare, BComportamentAplicatie.Enum_TablouDeBord_DataInteres pDataInteres, IDbTransaction pTranzactie) { BColectieClientiComenziHeader lstDClientiComenzi = new BColectieClientiComenziHeader(); using (DataSet ds = DClientiComenziHeader.GetListByParamSiPerioada(getDataInteres(pDataInteres), pIdTehnician, pDataInceput, pDataSfarsit, pStare, pTranzactie)) { foreach (DataRow dr in ds.Tables[0].Rows) { lstDClientiComenzi.Add(new BClientiComenziHeader(dr)); } } return(lstDClientiComenzi); }