Esempio n. 1
0
        public static Cliente_grupo Cliente_grupoGet(int IdClienteGrupo)
        {
            Cliente_grupo o = new Cliente_grupo();

            try
            {
                Cliente_grupoMng oC_gMng = new Cliente_grupoMng();
                o.Id = IdClienteGrupo;
                oC_gMng.O_Cliente_grupo = o;
                oC_gMng.selById();
            }
            catch
            {
                throw;
            }
            return(o);
        }
Esempio n. 2
0
 public override void fillLst()
 {
     try
     {
         this.comm = GenericDataAccess.CreateCommandSP("sp_Cliente_grupo");
         addParameters(0);
         this.dt   = GenericDataAccess.ExecuteSelectCommand(comm);
         this._lst = new List <Cliente_grupo>();
         foreach (DataRow dr in dt.Rows)
         {
             Cliente_grupo o = new Cliente_grupo();
             BindByDataRow(dr, o);
             this._lst.Add(o);
         }
     }
     catch
     {
         throw;
     }
 }
Esempio n. 3
0
 protected void BindByDataRow(DataRow dr, Cliente_grupo o)
 {
     try
     {
         int.TryParse(dr["id"].ToString(), out entero);
         o.Id     = entero;
         entero   = 0;
         o.Nombre = dr["nombre"].ToString();
         if (dr["isactive"] != DBNull.Value)
         {
             bool.TryParse(dr["isactive"].ToString(), out logica);
             o.Isactive = logica;
             logica     = false;
         }
     }
     catch
     {
         throw;
     }
 }
Esempio n. 4
0
 public Cliente_grupoMng()
 {
     this._oCliente_grupo = new Cliente_grupo();
 }