基础服务api
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.

96 lines
3.2 KiB

  1. using BPA.SAAS.Manage.Comm.Enum;
  2. using BPA.SAAS.Manage.Core.Base;
  3. using SqlSugar;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Security.Principal;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace BPA.SAAS.Manage.Core.DataBase
  11. {
  12. [SugarTable("bpa_batching")]
  13. public class BPA_Batching: IBaseEntity, IGroupId
  14. {
  15. /// <summary>
  16. /// 原料编码
  17. /// </summary>
  18. [SugarColumn(ColumnDataType = "Nvarchar(50)", IsNullable = false)]
  19. public string Code { get; set; }
  20. /// <summary>
  21. /// 商品属性 (0成品,1半成品,2,易耗品)
  22. /// </summary>
  23. [SugarColumn(IsNullable = false)]
  24. public int Aittribute { get; set; } = 0;
  25. /// <summary>
  26. /// 原料名称
  27. /// </summary>
  28. [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = false)]
  29. public string Batching_Name { get; set; }
  30. /// <summary>
  31. /// 配料类型
  32. /// </summary>
  33. [SugarColumn(ColumnDataType = "Nvarchar(200)", IsNullable = false)]
  34. public string Batching_Type { get; set; }
  35. /// <summary>
  36. /// 原料类型
  37. /// </summary>
  38. [SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = false)]
  39. public string TypeID { get; set; }
  40. /// <summary>
  41. /// 库存单位
  42. /// </summary>
  43. [SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = false)]
  44. public string StockUint { get; set; }
  45. /// <summary>
  46. /// 规格属性
  47. /// </summary>
  48. [SugarColumn(ColumnDataType = "Nvarchar(500)", IsNullable = false)]
  49. public string Specs { get; set; }
  50. /// <summary>
  51. /// 成本价
  52. /// </summary>
  53. [SugarColumn(ColumnDataType = "decimal(10,2)", IsNullable = false)]
  54. public decimal Price { get; set; }
  55. /// <summary>
  56. /// 状态 【正常 停用】默认 正常
  57. /// </summary>
  58. [SugarColumn(ColumnDataType = "int", ColumnDescription = "状态", IsNullable = false)]
  59. public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
  60. /// <summary>
  61. /// 净料率
  62. /// </summary>
  63. [SugarColumn(ColumnDataType = "decimal(10,2)", IsNullable = false)]
  64. public decimal netrecovery { get; set; }
  65. /// <summary>
  66. /// 出库单位
  67. /// </summary>
  68. [SugarColumn(ColumnDataType = "Nvarchar(64)", IsNullable = false)]
  69. public string outstockUint { get; set; }
  70. /// <summary>
  71. /// 换算比例
  72. /// </summary>
  73. [SugarColumn(ColumnDataType = "decimal(10,2)", IsNullable = false)]
  74. public decimal proportion { get; set; }
  75. [SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true, IsIdentity = true)]
  76. public int AutoKey { get; set; }
  77. [SugarColumn(ColumnDataType = "Nvarchar(255)", IsNullable = true)]
  78. public string ForeignKeyRe { get; set; }
  79. /// <summary>
  80. /// 加盟商id
  81. /// </summary>
  82. public string GroupId { get; set; }
  83. }
  84. }