Bus_ConfItemListView.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. using OASystem.Domain.ViewModels.Resource;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.ViewModels.Business
  8. {
  9. public class Bus_ConfItemListView
  10. {
  11. public decimal TotalCost { get; set; }
  12. public List<Bus_ConfItemView> ItemList { get; set; }
  13. }
  14. public class Bus_ConfItemView
  15. {
  16. public int Id { get; set; }
  17. public int ItemId { get; set; }
  18. public string ItemName { get; set; }
  19. public int Count { get; set; }
  20. public decimal CurrCost { get; set; }
  21. public string OpRemark { get; set; }
  22. }
  23. #region 可选物料列表
  24. public class OptionalBusRangeView
  25. {
  26. public int SdId { get; set; }
  27. public string SdName { get; set; }
  28. public List<OptionalItemTypeView> ItemTypeList { get; set; }
  29. }
  30. public class OptionalItemTypeView
  31. {
  32. /// <summary>
  33. /// 物料类型编号
  34. /// </summary>
  35. public int ItemTypeId { get; set; }
  36. /// <summary>
  37. /// 物料类型名称
  38. /// </summary>
  39. public string ItemTypeName { get; set; }
  40. /// <summary>
  41. /// 物料列表
  42. /// </summary>
  43. public List<Res_ItemInfoView> ItemList { get; set; }
  44. }
  45. #endregion
  46. #region Excel
  47. public class Bus_ConfItemExportView
  48. {
  49. public int RowNumber { get; set; }
  50. public string VendorName { get; set; }
  51. public string ItemName { get; set; }
  52. public string ItemTypeName { get; set; }
  53. public string Specs { get; set; }
  54. public int Count { get; set; }
  55. public decimal Price { get; set; }
  56. public decimal TotalPrice
  57. {
  58. get
  59. {
  60. return this.Count * this.Price;
  61. }
  62. }
  63. public string ItemRemark { get; set; }
  64. }
  65. #endregion
  66. }