纽威
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.

201 lines
5.3 KiB

3 years ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace NFine.Domain._03_Entity.SystemManage
  8. {
  9. public class FilterClass
  10. {
  11. public string LogString { set; get; }
  12. public int LogIndex { set; get; }
  13. public string SValue { set; get; }
  14. public string DValue { set; get; }
  15. /// <summary>
  16. /// 获取数据类型
  17. /// </summary>
  18. /// <param name="dc"></param>
  19. /// <returns></returns>
  20. public static int GetDataType(DataColumn dc)
  21. {
  22. int res = 0;
  23. if (dc.DataType == typeof(System.String))
  24. {
  25. res = 1;
  26. }
  27. else if (dc.DataType == typeof(DateTime))
  28. {
  29. res = 2;
  30. }
  31. else if (dc.DataType == typeof(int))
  32. {
  33. res = 0;
  34. }
  35. else if (dc.DataType == typeof(float))
  36. {
  37. res = 0;
  38. }
  39. else if (dc.DataType == typeof(double))
  40. {
  41. res = 0;
  42. }
  43. else if (dc.DataType == typeof(decimal))
  44. {
  45. res = 0;
  46. }
  47. else if (dc.DataType == typeof(short))
  48. {
  49. res = 0;
  50. }
  51. else if (dc.DataType == typeof(long))
  52. {
  53. res = 0;
  54. }
  55. else if (dc.DataType == typeof(char))
  56. {
  57. res = 1;
  58. }
  59. else if (dc.DataType == typeof(bool))
  60. {
  61. res = 3; ;
  62. }
  63. return res;
  64. }
  65. }
  66. public class ConditionClass
  67. {
  68. public string ID { set; get; }
  69. public string CSortSeq { set; get; }
  70. public string NotNullFlag { set; get; }
  71. public string CCaption { set; get; }
  72. public string CFiledName { set; get; }
  73. public string CIndex { set; get; }
  74. public string CDataType { set; get; }
  75. public string CDefaultLogStirng { set; get; }
  76. public string CDefaultValue { set; get; }
  77. public string CLogString { set; get; }
  78. public string CSelectFlag { set; get; }
  79. public string CSelectSqlTxt { set; get; }
  80. public string CSelectSourceId { set; get; }
  81. public string SysDataSourceFlag { set; get; }
  82. public string ReturnCol { set; get; }
  83. }
  84. public class ConditionSQLClass
  85. {
  86. public string CIndex { set; get; }
  87. public string Content { set; get; }
  88. }
  89. /// <summary>
  90. /// BY账号记录的默认筛选条件
  91. /// </summary>
  92. public class DefaultRecordClass
  93. {
  94. public string FilterID { set; get; }
  95. public string CCaption { set; get; }
  96. public string CDefaultLogStirng { set; get; }
  97. public string CDefaultValue1 { set; get; }
  98. public string CDefaultValue2 { set; get; }
  99. }
  100. public class ColsOfGridClass
  101. {
  102. public string Id { set; get; }
  103. public string SourceId { set; get; }
  104. public string ColCaption { set; get; }
  105. public string ColFiledName { set; get; }
  106. public string DataType { set; get; }
  107. public Boolean DefineFlag { set; get; }
  108. public string FunctionString { set; get; }
  109. public int DeciamlNum { set; get; }
  110. public int ColWidth { set; get; }
  111. public Boolean ColMerFlag { set; get; }
  112. public Boolean ColMerKeyFlag { set; get; }
  113. public Boolean ColSumFlag { set; get; }
  114. public string HeaderId { set; get; }
  115. public int COrder { set; get; }
  116. public Boolean VisbleFlag { set; get; }
  117. public Boolean SortFlag { set; get; }
  118. }
  119. public class ColsStrOfGridClass
  120. {
  121. public string Id { set; get; }
  122. public string SourceId { set; get; }
  123. public string ColCaption { set; get; }
  124. public string ColFiledName { set; get; }
  125. public string DataType { set; get; }
  126. public string DefineFlag { set; get; }
  127. public string FunctionString { set; get; }
  128. public string DeciamlNum { set; get; }
  129. public string ColWidth { set; get; }
  130. public string ColMerFlag { set; get; }
  131. public string ColMerKeyFlag { set; get; }
  132. public string ColSumFlag { set; get; }
  133. public string HeaderId { set; get; }
  134. public string COrder { set; get; }
  135. public string VisbleFlag { set; get; }
  136. public string SortFlag { set; get; }
  137. }
  138. public class GridFormatClass
  139. {
  140. //ID,ColId,LogStr,SValue,DValue,Color,AllRowFlag
  141. public string ID { set; get; }
  142. public string ColId { set; get; }
  143. public string LogStr { set; get; }
  144. public string SValue { set; get; }
  145. public string DValue { set; get; }
  146. public string Color { set; get; }
  147. public string AllRowFlag { set; get; }
  148. }
  149. public enum LogStringTypeEnum
  150. {
  151. = 0,
  152. = 1,
  153. = 2,
  154. = 3,
  155. = 4,
  156. = 5,
  157. = 6,
  158. = 7,
  159. = 8,
  160. = 9,
  161. = 10,
  162. = 11
  163. }
  164. public enum DataTypeEnum
  165. {
  166. = 0,
  167. = 1,
  168. = 2,
  169. = 3
  170. }
  171. }