IAppendixService.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using GreenTree.Nachtragsmanagement.Core.Domain.Appendix;
  7. using GreenTree.Nachtragsmanagement.Core.Domain.Invoice;
  8. namespace GreenTree.Nachtragsmanagement.Services.Appendix
  9. {
  10. public interface IAppendixService
  11. {
  12. #region Appendix
  13. /// <summary>
  14. /// Gets all appendices
  15. /// </summary>
  16. IList<Core.Domain.Appendix.Appendix> GetAllAppendices();
  17. /// <summary>
  18. /// Gets a appendix by specified Id
  19. /// </summary>
  20. /// <param name="id">Appendix identifier.</param>
  21. Core.Domain.Appendix.Appendix GetAppendixById(int id);
  22. /// <summary>
  23. /// Gets all appendices to the specified ids
  24. /// </summary>
  25. IList<Core.Domain.Appendix.Appendix> GetAppendicesByIds(int[] ids);
  26. /// <summary>
  27. /// Gets a appendix by specified customer number
  28. /// </summary>
  29. /// <param name="customNumber">Customer number.</param>
  30. Core.Domain.Appendix.Appendix GetAppendixByCustomNumber(string customNumber);
  31. /// <summary>
  32. /// Insert a appendix
  33. /// </summary>
  34. /// <param name="appendix">Appendix.</param>
  35. void InsertAppendix(Core.Domain.Appendix.Appendix appendix);
  36. /// <summary>
  37. /// Update a appendix
  38. /// </summary>
  39. /// <param name="appendix">Appendix.</param>
  40. void UpdateAppendix(Core.Domain.Appendix.Appendix appendix);
  41. /// <summary>
  42. /// Delete a appendix
  43. /// </summary>
  44. /// <param name="appendix">Appendix.</param>
  45. void DeleteAppendix(Core.Domain.Appendix.Appendix appendix);
  46. #endregion
  47. #region Category
  48. /// <summary>
  49. /// Gets all categories
  50. /// </summary>
  51. IList<Category> GetAllCategories();
  52. /// <summary>
  53. /// Gets a category by specified Id
  54. /// </summary>
  55. /// <param name="id">Category identifier.</param>
  56. Category GetCategoryById(int id);
  57. /// <summary>
  58. /// Gets all categories to the specified ids
  59. /// </summary>
  60. IList<Category> GetCategoriesByIds(int[] ids);
  61. /// <summary>
  62. /// Insert a category
  63. /// </summary>
  64. /// <param name="category">Category.</param>
  65. void InsertCategory(Category category);
  66. /// <summary>
  67. /// Update a category
  68. /// </summary>
  69. /// <param name="category">Category.</param>
  70. void UpdateCategory(Category category);
  71. /// <summary>
  72. /// Delete a category
  73. /// </summary>
  74. /// <param name="category">Category.</param>
  75. void DeleteCategory(Category category);
  76. #endregion
  77. #region Invoice
  78. /// <summary>
  79. /// Gets all invoices
  80. /// </summary>
  81. IList<Invoice> GetAllInvoices();
  82. /// <summary>
  83. /// Gets a invoice by specified Id
  84. /// </summary>
  85. /// <param name="id">Invoice identifier.</param>
  86. Invoice GetInvoiceById(int id);
  87. /// <summary>
  88. /// Gets all invoices to the specified ids
  89. /// </summary>
  90. IList<Invoice> GetInvoicesByIds(int[] ids);
  91. /// <summary>
  92. /// Insert a invoice
  93. /// </summary>
  94. /// <param name="invoice">Invoice.</param>
  95. void InsertInvoice(Invoice invoice);
  96. /// <summary>
  97. /// Update a invoice
  98. /// </summary>
  99. /// <param name="invoice">Invoice.</param>
  100. void UpdateInvoice(Invoice invoice);
  101. /// <summary>
  102. /// Delete a invoice
  103. /// </summary>
  104. /// <param name="invoice">Invoice.</param>
  105. void DeleteInvoice(Invoice invoice);
  106. #endregion
  107. }
  108. }