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.

214 lines
5.8 KiB

4 days 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 DataActionClass
  85. {
  86. public string ID { set; get; }
  87. public string CSortSeq { set; get; }
  88. public string CCaption { set; get; }
  89. public string CFiledName { set; get; }
  90. public string CIndex { set; get; }
  91. public string CDataType { set; get; }
  92. public string CLogString { set; get; }
  93. public string CValueBegin { get; set; }
  94. public string CValueEnd { get; set; }
  95. }
  96. public class ConditionSQLClass
  97. {
  98. public string CIndex { set; get; }
  99. public string Content { set; get; }
  100. }
  101. /// <summary>
  102. /// BY账号记录的默认筛选条件
  103. /// </summary>
  104. public class DefaultRecordClass
  105. {
  106. public string FilterID { set; get; }
  107. public string CCaption { set; get; }
  108. public string CDefaultLogStirng { set; get; }
  109. public string CDefaultValue1 { set; get; }
  110. public string CDefaultValue2 { set; get; }
  111. }
  112. public class ColsOfGridClass
  113. {
  114. public string Id { set; get; }
  115. public string SourceId { set; get; }
  116. public string ColCaption { set; get; }
  117. public string ColFiledName { set; get; }
  118. public string DataType { set; get; }
  119. public Boolean DefineFlag { set; get; }
  120. public string FunctionString { set; get; }
  121. public int DeciamlNum { set; get; }
  122. public int ColWidth { set; get; }
  123. public Boolean ColMerFlag { set; get; }
  124. public Boolean ColMerKeyFlag { set; get; }
  125. public Boolean ColSumFlag { set; get; }
  126. public string HeaderId { set; get; }
  127. public int COrder { set; get; }
  128. public Boolean VisbleFlag { set; get; }
  129. public Boolean SortFlag { set; get; }
  130. }
  131. public class ColsStrOfGridClass
  132. {
  133. public string Id { set; get; }
  134. public string SourceId { set; get; }
  135. public string ColCaption { set; get; }
  136. public string ColFiledName { set; get; }
  137. public string DataType { set; get; }
  138. public string DefineFlag { set; get; }
  139. public string FunctionString { set; get; }
  140. public string DeciamlNum { set; get; }
  141. public string ColWidth { set; get; }
  142. public string ColMerFlag { set; get; }
  143. public string ColMerKeyFlag { set; get; }
  144. public string ColSumFlag { set; get; }
  145. public string HeaderId { set; get; }
  146. public string COrder { set; get; }
  147. public string VisbleFlag { set; get; }
  148. public string SortFlag { set; get; }
  149. }
  150. public class GridFormatClass
  151. {
  152. //ID,ColId,LogStr,SValue,DValue,Color,AllRowFlag
  153. public string ID { set; get; }
  154. public string ColId { set; get; }
  155. public string LogStr { set; get; }
  156. public string SValue { set; get; }
  157. public string DValue { set; get; }
  158. public string Color { set; get; }
  159. public string AllRowFlag { set; get; }
  160. }
  161. public enum LogStringTypeEnum
  162. {
  163. = 0,
  164. = 1,
  165. = 2,
  166. = 3,
  167. = 4,
  168. = 5,
  169. = 6,
  170. = 7,
  171. = 8,
  172. = 9,
  173. = 10,
  174. = 11
  175. }
  176. public enum DataTypeEnum
  177. {
  178. = 0,
  179. = 1,
  180. = 2,
  181. = 3
  182. }
  183. }