电子药箱通讯服务端
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

OperationTakeItemBagBLL.cs 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using RDH.Data.Models;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.Xml.Linq;
  8. namespace RDH.Data.BLL
  9. {
  10. public partial class OperationTakeItemBagBLL : BaseOrclSnapshotBLL<OperationTakeItemBag>
  11. {
  12. public OperationTakeItemBagBLL() : base()
  13. {
  14. AliasTableName = "otib";
  15. }
  16. internal override String TABLE_NAME { get { return "OPERATION_TAKE_ITEM_BAG"; } }//TB_NAME
  17. internal override string ENTITY_NAME { get { return "OperationTakeItemBag"; } }
  18. internal override String KEY_COLUMN { get { return "SNAPSHOT_KEY"; } }//KEY_COLUMN
  19. internal override string SNAPSHOT_BASE { get { return "OPERATION_TAKE_ITEM_BAG_BASE"; } }
  20. internal override void InitMaps()
  21. {
  22. ColumnPropMaps.Add("KEY", "Key");
  23. ColumnPropMaps.Add("SNAPSHOT_KEY", "SnapshotKey");
  24. ColumnPropMaps.Add("OPERATION_KEY", "OperationKey");
  25. ColumnPropMaps.Add("NAME", "Name");
  26. ColumnPropMaps.Add("TYPE", "Type");
  27. ColumnPropMaps.Add("STATUS", "Status");
  28. //ColumnPropMaps.Add("DESC", "Desc");
  29. ColumnPropMaps.Add("CREATE_BY", "CreateBy");
  30. ColumnPropMaps.Add("CREATE_TIME", "CreateTime");
  31. ColumnPropMaps.Add("ITEM_COUNT", "ItemCount");
  32. ColumnPropMaps.Add("CHECKED_COUNT", "CheckedCount");
  33. ColumnPropMaps.Add("UPLOADED_COUNT", "UploadedCount");
  34. ColumnPropMaps.Add("FLAG", "Flag");
  35. ColumnPropMaps.Add("CLIENT_TIME", "ClientTime");
  36. ColumnPropMaps.Add("SERVER_TIME", "ServerTime");
  37. ColumnPropMaps.Add("EXT01", "Ext01");
  38. ColumnPropMaps.Add("EXT02", "Ext02");
  39. ColumnPropMaps.Add("EXT03", "Ext03");
  40. ColumnPropMaps.Add("EXT04", "Ext04");
  41. ColumnPropMaps.Add("EXT05", "Ext05");
  42. ColumnPropMaps.Add("EXT06", "Ext06");
  43. ColumnPropMaps.Add("EXT07", "Ext07");
  44. ColumnPropMaps.Add("EXT08", "Ext08");
  45. ColumnPropMaps.Add("EXT09", "Ext09");
  46. ColumnPropMaps.Add("EXT10", "Ext10");
  47. ColumnPropMaps.Add("DEVICE_KEY", "DeviceKey");//COLUMN_MAPS
  48. }
  49. internal override object GetParam(OperationTakeItemBag operationtakeitembag)
  50. {
  51. return new
  52. {
  53. Key = operationtakeitembag.Key,
  54. SnapshotKey = operationtakeitembag.SnapshotKey,
  55. OperationKey = operationtakeitembag.OperationKey,
  56. Name = operationtakeitembag.Name,
  57. Type = operationtakeitembag.Type,
  58. Status = operationtakeitembag.Status,
  59. Desc = operationtakeitembag.Desc,
  60. CreateBy = operationtakeitembag.CreateBy,
  61. CreateTime = operationtakeitembag.CreateTime,
  62. ItemCount = operationtakeitembag.ItemCount,
  63. CheckedCount = operationtakeitembag.CheckedCount,
  64. UploadedCount = operationtakeitembag.UploadedCount,
  65. Flag = operationtakeitembag.Flag,
  66. ClientTime = operationtakeitembag.ClientTime,
  67. ServerTime = operationtakeitembag.ServerTime,
  68. Ext01 = operationtakeitembag.Ext01,
  69. Ext02 = operationtakeitembag.Ext02,
  70. Ext03 = operationtakeitembag.Ext03,
  71. Ext04 = operationtakeitembag.Ext04,
  72. Ext05 = operationtakeitembag.Ext05,
  73. Ext06 = operationtakeitembag.Ext06,
  74. Ext07 = operationtakeitembag.Ext07,
  75. Ext08 = operationtakeitembag.Ext08,
  76. Ext09 = operationtakeitembag.Ext09,
  77. Ext10 = operationtakeitembag.Ext10,
  78. DeviceKey = operationtakeitembag.DeviceKey, //Params
  79. };
  80. }
  81. public OperationTakeItemBag GetByOperation(PatientOperationInfo operationInfo)
  82. {
  83. return SqlMapper.Query<OperationTakeItemBag>(ConnectionFactory.Current.GetSessionConnection(),
  84. BuildBaseSql() + " WHERE OPERATION_KEY=:operationKey",
  85. new { operationKey = operationInfo.Key })
  86. .FirstOrDefault();
  87. }
  88. }
  89. }