Exemplo n.º 1
0
        public DataSet GetModifiedDate(ApplicationSettingsBO objApplicationSettingsBO)
        {
            DataAccessSqlHelper sqlHelper = new DataAccessSqlHelper(objApplicationSettingsBO.ConString);
            SqlCommand          command   = sqlHelper.CreateCommand(CommandType.StoredProcedure);

            command.CommandText = "uspGetModifiedDate";
            return(sqlHelper.ExecuteDataSet(command));
        }
Exemplo n.º 2
0
        public DataSet GetApplicationSettings(ApplicationSettingsBO objApplicationSettingsBO)
        {
            DataAccessSqlHelper sqlHelper = new DataAccessSqlHelper(objApplicationSettingsBO.ConString);
            SqlCommand          command   = sqlHelper.CreateCommand(CommandType.StoredProcedure);

            command.CommandText = "usp_GetApplicationSettings";
            sqlHelper.AddParameter(command, "@Mode", objApplicationSettingsBO.Mode, ParameterDirection.Input);
            return(sqlHelper.ExecuteDataSet(command));
        }
Exemplo n.º 3
0
        internal DataSet GetEditableFlag(ApplicationSettingsBO objApplicationSettingsBO)
        {
            DataAccessSqlHelper sqlHelper = new DataAccessSqlHelper(objApplicationSettingsBO.ConString);
            SqlCommand          command   = sqlHelper.CreateCommand(CommandType.StoredProcedure);

            command.CommandText = "usp_WSUserConfiguration";
            sqlHelper.AddParameter(command, "@Mode", objApplicationSettingsBO.Mode, ParameterDirection.Input);
            sqlHelper.AddParameter(command, "@UserId", objApplicationSettingsBO.UserId, ParameterDirection.Input);
            sqlHelper.AddParameter(command, "@Date", objApplicationSettingsBO.Date, ParameterDirection.Input);
            return(sqlHelper.ExecuteDataSet(command));
        }
Exemplo n.º 4
0
        internal string GetUserRole(ApplicationSettingsBO objApplicationSettingsBO)
        {
            DataAccessSqlHelper sqlHelper = new DataAccessSqlHelper(objApplicationSettingsBO.ConString);
            SqlCommand          command   = sqlHelper.CreateCommand(CommandType.StoredProcedure);

            sqlHelper.AddParameter(command, "@UserId", objApplicationSettingsBO.UserId, ParameterDirection.Input);
            command.CommandText = "GetVanSalesUserRole";
            DataSet ds = sqlHelper.ExecuteDataSet(command);

            if (ds != null && ds.Tables[0].Rows.Count > 0)
            {
                return(ds.Tables[0].Rows[0]["UserRole"].ToString());
            }
            else
            {
                return("");
            }
        }