예제 #1
0
        internal int getUserValidity(DBCredentialBO dBCredentialBO)
        {
            DataAccessSqlHelper sqlHelper = new DataAccessSqlHelper(dBCredentialBO.ConString);
            SqlCommand          command   = sqlHelper.CreateCommand(CommandType.Text);

            command.CommandText = "select Active from [User] where UserId = '" + dBCredentialBO.UserID + "'";
            return(Convert.ToInt32(sqlHelper.ExecuteScalar(command)));
        }
예제 #2
0
        internal DataSet GetLicenceOfUser(DBCredentialBO dBCredentialBO)
        {
            DataAccessSqlHelper sqlHelper = new DataAccessSqlHelper(dBCredentialBO.ConString);
            SqlCommand          command   = sqlHelper.CreateCommand(CommandType.StoredProcedure);

            command.CommandText = "uspGetLicenceOfUser";
            sqlHelper.AddParameter(command, "@UserId", dBCredentialBO.User, ParameterDirection.Input);
            return(sqlHelper.ExecuteDataSet(command));
        }
예제 #3
0
        internal DataSet ValidateCustomerLogin(DBCredentialBO dBCredentialBO)
        {
            DataAccessSqlHelper sqlHelper = new DataAccessSqlHelper(dBCredentialBO.ConString);
            SqlCommand          command   = sqlHelper.CreateCommand(CommandType.StoredProcedure);

            command.CommandText = "uspWSGetLoginCredentials";
            sqlHelper.AddParameter(command, "@LoginName", dBCredentialBO.Loginname, ParameterDirection.Input);
            sqlHelper.AddParameter(command, "@PassWord", dBCredentialBO.Password, ParameterDirection.Input);
            sqlHelper.AddParameter(command, "@ImeiNo", dBCredentialBO.imeiKey, ParameterDirection.Input);
            return(sqlHelper.ExecuteDataSet(command));
        }
예제 #4
0
        internal int checkRequireShopWiseProductSorting(DBCredentialBO dBCredentialBO)
        {
            DataAccessSqlHelper sqlHelper = new DataAccessSqlHelper(dBCredentialBO.ConString);
            SqlCommand          command   = sqlHelper.CreateCommand(CommandType.StoredProcedure);

            command.CommandText = "uspGetRequireShopwiseProductFiltering";
            sqlHelper.AddParameter(command, "@UserId", dBCredentialBO.UserID, ParameterDirection.Input);
            try
            {
                return(Convert.ToInt32(sqlHelper.ExecuteScalar(command)));
            }
            catch
            {
                return(0);
            }
        }