You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.0 KiB

  1. using System.Data;
  2. using Swift.DAL.SwiftDAL;
  3. namespace Swift.DAL.BL.System.Notification
  4. {
  5. public class NotificationDao : SwiftDao
  6. {
  7. public DbResult DeleteMessage(string msgId, string userName)
  8. {
  9. string sql = "exec proc_applicationMessage @flag = 'd', @userName =" + FilterString(userName) + ", @msgId =" +
  10. FilterString(msgId);
  11. return ParseDbResult(ExecuteDataset(sql).Tables[0]);
  12. }
  13. public DataTable PopulateData(string msgId)
  14. {
  15. string sql = "exec proc_applicationMessage @flag = 'a', @msgId =" + FilterString(msgId);
  16. return ExecuteDataset(sql).Tables[0];
  17. }
  18. public DataTable SelectCountryInfoById(string user, string countryId)
  19. {
  20. string sql = "EXEC proc_ViewCountryInfo";
  21. sql += " @flag = 's'";
  22. sql += ", @user = " + FilterString(user);
  23. sql += ", @countryId = " + FilterString(countryId);
  24. return ExecuteDataset(sql).Tables[0];
  25. }
  26. }
  27. }