高新区管委会,以5.0标准版为基准,从双汇项目拷贝

T_RepositoryInformation.cs 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501
  1. using CallCenterApi.DB;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Data;
  5. using System.Data.SqlClient;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace CallCenterApi.DAL
  10. {
  11. /// <summary>
  12. /// 数据访问类:T_RepositoryInformation
  13. /// </summary>
  14. public partial class T_RepositoryInformation
  15. {
  16. private readonly CallCenterApi.DAL.T_Sys_AccessLog AccessLogdal = new CallCenterApi.DAL.T_Sys_AccessLog();
  17. public T_RepositoryInformation()
  18. { }
  19. #region BasicMethod
  20. /// <summary>
  21. /// 得到最大ID
  22. /// </summary>
  23. public int GetMaxId()
  24. {
  25. return DbHelperSQL.GetMaxID("F_RepositoryId", "T_RepositoryInformation");
  26. }
  27. /// <summary>
  28. /// 是否存在该记录
  29. /// </summary>
  30. public bool Exists(int F_RepositoryId)
  31. {
  32. StringBuilder strSql = new StringBuilder();
  33. strSql.Append("select count(1) from T_RepositoryInformation WITH(NOLOCK)");
  34. strSql.Append(" where F_RepositoryId=@F_RepositoryId");
  35. SqlParameter[] parameters = {
  36. new SqlParameter("@F_RepositoryId", SqlDbType.Int,4)
  37. };
  38. parameters[0].Value = F_RepositoryId;
  39. return DbHelperSQL.Exists(strSql.ToString(), parameters);
  40. }
  41. /// <summary>
  42. /// 增加一条数据
  43. /// </summary>
  44. public int Add(Model.T_RepositoryInformation model,int userId)
  45. {
  46. StringBuilder strSql = new StringBuilder();
  47. strSql.Append("insert into T_RepositoryInformation(");
  48. strSql.Append(@"F_CategoryId,F_CustomerId,F_CustomerName,F_ManId,F_ManName,
  49. F_Title,F_Content,F_Description,F_Comments,F_Url,F_KeyWords,F_Expand1,F_Expand2,F_IntExpand1,
  50. F_CreateOn,F_CreateBy,F_CreateName,F_ModifyOn,F_ModifyBy,F_ModifyName,F_DeleteFlag,
  51. F_visibleDeptId,F_isorPerson )");
  52. strSql.Append(" values (");
  53. strSql.Append(@"@F_CategoryId,@F_CustomerId,@F_CustomerName,@F_ManId,
  54. @F_ManName,@F_Title,@F_Content,@F_Description,@F_Comments,@F_Url,@F_KeyWords,@F_Expand1,
  55. @F_Expand2,@F_IntExpand1,@F_CreateOn,@F_CreateBy,@F_CreateName,@F_ModifyOn,@F_ModifyBy,
  56. @F_ModifyName,@F_DeleteFlag,@F_visibleDeptId,@F_isorPerson )");
  57. strSql.Append(";select @@IDENTITY");
  58. SqlParameter[] parameters = {
  59. new SqlParameter("@F_CategoryId", SqlDbType.Int,4),
  60. new SqlParameter("@F_CustomerId", SqlDbType.Int,4),
  61. new SqlParameter("@F_CustomerName", SqlDbType.NVarChar,100),
  62. new SqlParameter("@F_ManId", SqlDbType.Int,4),
  63. new SqlParameter("@F_ManName", SqlDbType.NVarChar,50),
  64. new SqlParameter("@F_Title", SqlDbType.NVarChar,200),
  65. new SqlParameter("@F_Content", SqlDbType.NText),
  66. new SqlParameter("@F_Description", SqlDbType.NText),
  67. new SqlParameter("@F_Comments", SqlDbType.NVarChar,500),
  68. new SqlParameter("@F_Url", SqlDbType.NVarChar,200),
  69. new SqlParameter("@F_KeyWords", SqlDbType.NVarChar,500),
  70. new SqlParameter("@F_Expand1", SqlDbType.NVarChar,100),
  71. new SqlParameter("@F_Expand2", SqlDbType.NVarChar,200),
  72. new SqlParameter("@F_IntExpand1", SqlDbType.SmallInt,2),
  73. new SqlParameter("@F_CreateOn", SqlDbType.DateTime),
  74. new SqlParameter("@F_CreateBy", SqlDbType.Int,4),
  75. new SqlParameter("@F_CreateName", SqlDbType.NVarChar,200),
  76. new SqlParameter("@F_ModifyOn", SqlDbType.DateTime),
  77. new SqlParameter("@F_ModifyBy", SqlDbType.Int,4),
  78. new SqlParameter("@F_ModifyName", SqlDbType.NVarChar,200),
  79. new SqlParameter("@F_DeleteFlag", SqlDbType.SmallInt,2),
  80. new SqlParameter("@F_visibleDeptId", SqlDbType.Int,2),
  81. new SqlParameter("@F_isorPerson", SqlDbType.Int,2)};
  82. parameters[0].Value = model.F_CategoryId;
  83. parameters[1].Value = model.F_CustomerId;
  84. parameters[2].Value = model.F_CustomerName;
  85. parameters[3].Value = model.F_ManId;
  86. parameters[4].Value = model.F_ManName;
  87. parameters[5].Value = model.F_Title;
  88. parameters[6].Value = model.F_Content;
  89. parameters[7].Value = model.F_Description;
  90. parameters[8].Value = model.F_Comments;
  91. parameters[9].Value = model.F_Url;
  92. parameters[10].Value = model.F_KeyWords;
  93. parameters[11].Value = model.F_Expand1;
  94. parameters[12].Value = model.F_Expand2;
  95. parameters[13].Value = model.F_IntExpand1;
  96. parameters[14].Value = model.F_CreateOn;
  97. parameters[15].Value = model.F_CreateBy;
  98. parameters[16].Value = model.F_CreateName;
  99. parameters[17].Value = model.F_ModifyOn;
  100. parameters[18].Value = model.F_ModifyBy;
  101. parameters[19].Value = model.F_ModifyName;
  102. parameters[20].Value = model.F_DeleteFlag;
  103. parameters[21].Value = model.F_visibleDeptId;
  104. parameters[22].Value = model.F_isorPerson;
  105. object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
  106. if (obj == null)
  107. {
  108. return 0;
  109. }
  110. else
  111. {
  112. //日志添加
  113. AccessLogdal.AddAccessLog("新增", "T_RepositoryInformation", Convert.ToInt32(obj), userId);
  114. return Convert.ToInt32(obj);
  115. }
  116. }
  117. /// <summary>
  118. /// 更新一条数据
  119. /// </summary>
  120. public bool Update(Model.T_RepositoryInformation model,int userid)
  121. {
  122. StringBuilder strSql = new StringBuilder();
  123. strSql.Append("update T_RepositoryInformation set ");
  124. strSql.Append("F_CategoryId=@F_CategoryId,");
  125. strSql.Append("F_CustomerId=@F_CustomerId,");
  126. strSql.Append("F_CustomerName=@F_CustomerName,");
  127. strSql.Append("F_ManId=@F_ManId,");
  128. strSql.Append("F_ManName=@F_ManName,");
  129. strSql.Append("F_Title=@F_Title,");
  130. strSql.Append("F_Content=@F_Content,");
  131. strSql.Append("F_Description=@F_Description,");
  132. strSql.Append("F_Comments=@F_Comments,");
  133. strSql.Append("F_Url=@F_Url,");
  134. strSql.Append("F_KeyWords=@F_KeyWords,");
  135. strSql.Append("F_Expand1=@F_Expand1,");
  136. strSql.Append("F_Expand2=@F_Expand2,");
  137. strSql.Append("F_IntExpand1=@F_IntExpand1,");
  138. strSql.Append("F_CreateOn=@F_CreateOn,");
  139. strSql.Append("F_CreateBy=@F_CreateBy,");
  140. strSql.Append("F_CreateName=@F_CreateName,");
  141. strSql.Append("F_ModifyOn=@F_ModifyOn,");
  142. strSql.Append("F_ModifyBy=@F_ModifyBy,");
  143. strSql.Append("F_ModifyName=@F_ModifyName,");
  144. strSql.Append("F_DeleteFlag=@F_DeleteFlag");
  145. strSql.Append("F_DeleteFlag=@F_DeleteFlag");
  146. strSql.Append("F_RepositoryId=@F_RepositoryId");
  147. strSql.Append("F_isorPerson=@F_isorPerson");
  148. strSql.Append(" where F_RepositoryId=@F_RepositoryId");
  149. SqlParameter[] parameters = {
  150. new SqlParameter("@F_CategoryId", SqlDbType.Int,4),
  151. new SqlParameter("@F_CustomerId", SqlDbType.Int,4),
  152. new SqlParameter("@F_CustomerName", SqlDbType.NVarChar,100),
  153. new SqlParameter("@F_ManId", SqlDbType.Int,4),
  154. new SqlParameter("@F_ManName", SqlDbType.NVarChar,50),
  155. new SqlParameter("@F_Title", SqlDbType.NVarChar,200),
  156. new SqlParameter("@F_Content", SqlDbType.NText),
  157. new SqlParameter("@F_Description", SqlDbType.NText),
  158. new SqlParameter("@F_Comments", SqlDbType.NVarChar,500),
  159. new SqlParameter("@F_Url", SqlDbType.NVarChar,200),
  160. new SqlParameter("@F_KeyWords", SqlDbType.NVarChar,500),
  161. new SqlParameter("@F_Expand1", SqlDbType.NVarChar,100),
  162. new SqlParameter("@F_Expand2", SqlDbType.NVarChar,200),
  163. new SqlParameter("@F_IntExpand1", SqlDbType.SmallInt,2),
  164. new SqlParameter("@F_CreateOn", SqlDbType.DateTime),
  165. new SqlParameter("@F_CreateBy", SqlDbType.Int,4),
  166. new SqlParameter("@F_CreateName", SqlDbType.NVarChar,200),
  167. new SqlParameter("@F_ModifyOn", SqlDbType.DateTime),
  168. new SqlParameter("@F_ModifyBy", SqlDbType.Int,4),
  169. new SqlParameter("@F_ModifyName", SqlDbType.NVarChar,200),
  170. new SqlParameter("@F_DeleteFlag", SqlDbType.SmallInt,2),
  171. new SqlParameter("@F_RepositoryId", SqlDbType.Int,4),
  172. new SqlParameter("@F_visibleDeptId", SqlDbType.Int,4),
  173. new SqlParameter("@F_isorPerson", SqlDbType.Int,4)};
  174. parameters[0].Value = model.F_CategoryId;
  175. parameters[1].Value = model.F_CustomerId;
  176. parameters[2].Value = model.F_CustomerName;
  177. parameters[3].Value = model.F_ManId;
  178. parameters[4].Value = model.F_ManName;
  179. parameters[5].Value = model.F_Title;
  180. parameters[6].Value = model.F_Content;
  181. parameters[7].Value = model.F_Description;
  182. parameters[8].Value = model.F_Comments;
  183. parameters[9].Value = model.F_Url;
  184. parameters[10].Value = model.F_KeyWords;
  185. parameters[11].Value = model.F_Expand1;
  186. parameters[12].Value = model.F_Expand2;
  187. parameters[13].Value = model.F_IntExpand1;
  188. parameters[14].Value = model.F_CreateOn;
  189. parameters[15].Value = model.F_CreateBy;
  190. parameters[16].Value = model.F_CreateName;
  191. parameters[17].Value = model.F_ModifyOn;
  192. parameters[18].Value = model.F_ModifyBy;
  193. parameters[19].Value = model.F_ModifyName;
  194. parameters[20].Value = model.F_DeleteFlag;
  195. parameters[21].Value = model.F_RepositoryId;
  196. parameters[22].Value = model.F_visibleDeptId;
  197. parameters[23].Value = model.F_isorPerson;
  198. int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
  199. if (rows > 0)
  200. {
  201. AccessLogdal.AddAccessLog("修改", "T_RepositoryInformation", model.F_RepositoryId, userid);
  202. return true;
  203. }
  204. else
  205. {
  206. return false;
  207. }
  208. }
  209. /// <summary>
  210. /// 删除一条数据
  211. /// </summary>
  212. public bool Delete(int F_RepositoryId,int UserId )
  213. {
  214. StringBuilder strSql = new StringBuilder();
  215. //strSql.Append("delete from T_RepositoryInformation ");
  216. strSql.Append("update T_RepositoryInformation set F_DeleteFlag=1");
  217. strSql.Append(" where F_RepositoryId=@F_RepositoryId");
  218. SqlParameter[] parameters = {
  219. new SqlParameter("@F_RepositoryId", SqlDbType.Int,4)
  220. };
  221. parameters[0].Value = F_RepositoryId;
  222. int rows = DbHelperSQL.ExecuteSql(strSql.ToString(), parameters);
  223. if (rows > 0)
  224. {
  225. AccessLogdal.AddAccessLog("删除", "T_RepositoryInformation", F_RepositoryId, UserId);
  226. return true;
  227. }
  228. else
  229. {
  230. return false;
  231. }
  232. }
  233. /// <summary>
  234. /// 批量删除数据
  235. /// </summary>
  236. public bool DeleteList(string F_RepositoryIdlist)
  237. {
  238. StringBuilder strSql = new StringBuilder();
  239. //strSql.Append("delete from T_RepositoryInformation ");
  240. strSql.Append("update T_RepositoryInformation set F_DeleteFlag=1");
  241. strSql.Append(" where F_RepositoryId in (" + F_RepositoryIdlist + ") ");
  242. int rows = DbHelperSQL.ExecuteSql(strSql.ToString());
  243. if (rows > 0)
  244. {
  245. return true;
  246. }
  247. else
  248. {
  249. return false;
  250. }
  251. }
  252. /// <summary>
  253. /// 得到一个对象实体
  254. /// </summary>
  255. public Model.T_RepositoryInformation GetModel(int F_RepositoryId,int userId )
  256. {
  257. StringBuilder strSql = new StringBuilder();
  258. strSql.Append(@"select top 1 F_RepositoryId,F_CategoryId,F_CustomerId,F_CustomerName,
  259. F_ManId,F_ManName,F_Title,F_Content,F_Description,F_Comments,F_Url,F_KeyWords,F_Expand1,
  260. F_Expand2,F_IntExpand1,F_CreateOn,F_CreateBy,F_CreateName,F_ModifyOn,F_ModifyBy,F_ModifyName,
  261. F_DeleteFlag,F_visibleDeptId ,F_isorPerson from T_RepositoryInformation WITH(NOLOCK) ");
  262. strSql.Append(" where F_RepositoryId=@F_RepositoryId");
  263. SqlParameter[] parameters = {
  264. new SqlParameter("@F_RepositoryId", SqlDbType.Int,4)
  265. };
  266. parameters[0].Value = F_RepositoryId;
  267. Model.T_RepositoryInformation model = new Model.T_RepositoryInformation();
  268. DataSet ds = DbHelperSQL.Query(strSql.ToString(), parameters);
  269. if (ds.Tables[0].Rows.Count > 0)
  270. {
  271. AccessLogdal.AddAccessLog("获取查看", "T_RepositoryInformation", F_RepositoryId, userId);
  272. return DataRowToModel(ds.Tables[0].Rows[0]);
  273. }
  274. else
  275. {
  276. return null;
  277. }
  278. }
  279. /// <summary>
  280. /// 得到一个对象实体
  281. /// </summary>
  282. public Model.T_RepositoryInformation DataRowToModel(DataRow row)
  283. {
  284. Model.T_RepositoryInformation model = new Model.T_RepositoryInformation();
  285. if (row != null)
  286. {
  287. if (row["F_RepositoryId"] != null && row["F_RepositoryId"].ToString() != "")
  288. {
  289. model.F_RepositoryId = int.Parse(row["F_RepositoryId"].ToString());
  290. }
  291. if (row["F_CategoryId"] != null && row["F_CategoryId"].ToString() != "")
  292. {
  293. model.F_CategoryId = int.Parse(row["F_CategoryId"].ToString());
  294. }
  295. if (row["F_CustomerId"] != null && row["F_CustomerId"].ToString() != "")
  296. {
  297. model.F_CustomerId = int.Parse(row["F_CustomerId"].ToString());
  298. }
  299. if (row["F_CustomerName"] != null)
  300. {
  301. model.F_CustomerName = row["F_CustomerName"].ToString();
  302. }
  303. if (row["F_ManId"] != null && row["F_ManId"].ToString() != "")
  304. {
  305. model.F_ManId = int.Parse(row["F_ManId"].ToString());
  306. }
  307. if (row["F_ManName"] != null)
  308. {
  309. model.F_ManName = row["F_ManName"].ToString();
  310. }
  311. if (row["F_Title"] != null)
  312. {
  313. model.F_Title = row["F_Title"].ToString();
  314. }
  315. if (row["F_Content"] != null)
  316. {
  317. model.F_Content = row["F_Content"].ToString();
  318. }
  319. if (row["F_Description"] != null)
  320. {
  321. model.F_Description = row["F_Description"].ToString();
  322. }
  323. if (row["F_Comments"] != null)
  324. {
  325. model.F_Comments = row["F_Comments"].ToString();
  326. }
  327. if (row["F_Url"] != null)
  328. {
  329. model.F_Url = row["F_Url"].ToString();
  330. }
  331. if (row["F_KeyWords"] != null)
  332. {
  333. model.F_KeyWords = row["F_KeyWords"].ToString();
  334. }
  335. if (row["F_Expand1"] != null)
  336. {
  337. model.F_Expand1 = row["F_Expand1"].ToString();
  338. }
  339. if (row["F_Expand2"] != null)
  340. {
  341. model.F_Expand2 = row["F_Expand2"].ToString();
  342. }
  343. if (row["F_IntExpand1"] != null && row["F_IntExpand1"].ToString() != "")
  344. {
  345. model.F_IntExpand1 = int.Parse(row["F_IntExpand1"].ToString());
  346. }
  347. if (row["F_CreateOn"] != null && row["F_CreateOn"].ToString() != "")
  348. {
  349. model.F_CreateOn = DateTime.Parse(row["F_CreateOn"].ToString());
  350. }
  351. if (row["F_CreateBy"] != null && row["F_CreateBy"].ToString() != "")
  352. {
  353. model.F_CreateBy = int.Parse(row["F_CreateBy"].ToString());
  354. }
  355. if (row["F_CreateName"] != null)
  356. {
  357. model.F_CreateName = row["F_CreateName"].ToString();
  358. }
  359. if (row["F_ModifyOn"] != null && row["F_ModifyOn"].ToString() != "")
  360. {
  361. model.F_ModifyOn = DateTime.Parse(row["F_ModifyOn"].ToString());
  362. }
  363. if (row["F_ModifyBy"] != null && row["F_ModifyBy"].ToString() != "")
  364. {
  365. model.F_ModifyBy = int.Parse(row["F_ModifyBy"].ToString());
  366. }
  367. if (row["F_ModifyName"] != null)
  368. {
  369. model.F_ModifyName = row["F_ModifyName"].ToString();
  370. }
  371. if (row["F_DeleteFlag"] != null && row["F_DeleteFlag"].ToString() != "")
  372. {
  373. model.F_DeleteFlag = int.Parse(row["F_DeleteFlag"].ToString());
  374. }
  375. if (row["F_visibleDeptId"] != null && row["F_visibleDeptId"].ToString() != "")
  376. {
  377. model.F_visibleDeptId = int.Parse(row["F_visibleDeptId"].ToString());
  378. }
  379. if (row["F_isorPerson"] != null && row["F_isorPerson"].ToString() != "")
  380. {
  381. model.F_isorPerson = int.Parse(row["F_isorPerson"].ToString());
  382. }
  383. }
  384. return model;
  385. }
  386. /// <summary>
  387. /// 获得数据列表
  388. /// </summary>
  389. public DataSet GetList(string strWhere)
  390. {
  391. StringBuilder strSql = new StringBuilder();
  392. strSql.Append(@"select F_RepositoryId,F_CategoryId,F_CustomerId,F_CustomerName,
  393. F_ManId,F_ManName,F_Title,F_Content,F_Description,F_Comments,F_Url,F_KeyWords,F_Expand1
  394. ,F_Expand2,F_IntExpand1,F_CreateOn,F_CreateBy,F_CreateName,F_ModifyOn,F_ModifyBy,F_ModifyName,
  395. F_DeleteFlag,F_visibleDeptId,F_isorPerson ");
  396. strSql.Append(" FROM T_RepositoryInformation WITH(NOLOCK)");
  397. if (strWhere.Trim() != "")
  398. {
  399. strSql.Append(" where " + strWhere);
  400. }
  401. return DbHelperSQL.Query(strSql.ToString());
  402. }
  403. /// <summary>
  404. /// 获得前几行数据
  405. /// </summary>
  406. public DataSet GetList(int Top, string strWhere, string filedOrder)
  407. {
  408. StringBuilder strSql = new StringBuilder();
  409. strSql.Append("select ");
  410. if (Top > 0)
  411. {
  412. strSql.Append(" top " + Top.ToString());
  413. }
  414. strSql.Append(@" F_RepositoryId,F_CategoryId,F_CustomerId,F_CustomerName,F_ManId,
  415. F_ManName,F_Title,F_Content,F_Description,F_Comments,F_Url,F_KeyWords,F_Expand1,F_Expand2,
  416. F_IntExpand1,F_CreateOn,F_CreateBy,F_CreateName,F_ModifyOn,F_ModifyBy,F_ModifyName,F_DeleteFlag,
  417. F_visibleDeptId,F_isorPerson ");
  418. strSql.Append(" FROM T_RepositoryInformation WITH(NOLOCK)");
  419. if (strWhere.Trim() != "")
  420. {
  421. strSql.Append(" where " + strWhere);
  422. }
  423. strSql.Append(" order by " + filedOrder);
  424. return DbHelperSQL.Query(strSql.ToString());
  425. }
  426. /// <summary>
  427. /// 获取记录总数
  428. /// </summary>
  429. public int GetRecordCount(string strWhere)
  430. {
  431. StringBuilder strSql = new StringBuilder();
  432. strSql.Append("select count(1) FROM T_RepositoryInformation WITH(NOLOCK)");
  433. if (strWhere.Trim() != "")
  434. {
  435. strSql.Append(" where " + strWhere);
  436. }
  437. object obj = DbHelperSQL.GetSingle(strSql.ToString());
  438. if (obj == null)
  439. {
  440. return 0;
  441. }
  442. else
  443. {
  444. return Convert.ToInt32(obj);
  445. }
  446. }
  447. /// <summary>
  448. /// 分页获取数据列表
  449. /// </summary>
  450. public DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex)
  451. {
  452. StringBuilder strSql = new StringBuilder();
  453. strSql.Append("SELECT * FROM ( ");
  454. strSql.Append(" SELECT ROW_NUMBER() OVER (");
  455. if (!string.IsNullOrEmpty(orderby.Trim()))
  456. {
  457. strSql.Append("order by T." + orderby);
  458. }
  459. else
  460. {
  461. strSql.Append("order by T.F_RepositoryId desc");
  462. }
  463. strSql.Append(")AS Row, T.* from T_RepositoryInformation T WITH(NOLOCK)");
  464. if (!string.IsNullOrEmpty(strWhere.Trim()))
  465. {
  466. strSql.Append(" WHERE " + strWhere);
  467. }
  468. strSql.Append(" ) TT");
  469. strSql.AppendFormat(" WHERE TT.Row between {0} and {1}", startIndex, endIndex);
  470. return DbHelperSQL.Query(strSql.ToString());
  471. }
  472. #endregion BasicMethod
  473. #region ExtensionMethod
  474. #endregion ExtensionMethod
  475. }
  476. }