public override bool _met_RealizaLogin(object _object)
        {
            cls_vo_login _cls_log = (cls_vo_login)_object;

            if (_met_CompruebaLogin(_cls_log))
            {
                _sqldataRead = _cls_con._met_data_cunsult("exec _SP_login '" + _cls_log.Str_rfc + "','" + _cls_log.Str_pass + "'");
                while (_sqldataRead.Read())
                {
                    _cls_var_log._RFC      = _sqldataRead.GetString(0);
                    _cls_var_log._Nom_empl = _sqldataRead.GetString(3);
                    _cls_var_log._Carg     = _sqldataRead.GetString(4);
                }
                _b_action = true;
            }
            return(_b_action);
        }
        public override bool _met_CompruebaLogin(object _object)
        {
            cls_vo_login _cls_log = (cls_vo_login)_object;

            return(_cls_con._met_busquedas("exec _SP_login '" + _cls_log.Str_rfc + "','" + _cls_log.Str_pass + "'").Read());
        }
Пример #3
0
 public cls_dav_login(cls_vo_login _cls_v_login)
 {
     _cls_vo_login = _cls_v_login;
 }