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

487 lines
22 KiB

3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
  1. using NFine.Data.Extensions;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Data;
  5. using System.Text;
  6. using NFine.Code;
  7. using NFine.Repository;
  8. using System.Data.Common;
  9. using NFine.Domain._03_Entity.SRM;
  10. using Newtonsoft.Json;
  11. using System.Configuration;
  12. using System.Net;
  13. using System.IO;
  14. using Newtonsoft.Json.Linq;
  15. using System.Data.SqlClient;
  16. using ICS.Data;
  17. namespace NFine.Application.WMS
  18. {
  19. public class BlitemApp : RepositoryFactory<ICSVendor>
  20. {
  21. public DataTable GetGridJson(string queryJson, ref Pagination jqgridparam)
  22. {
  23. DataTable dt = new DataTable();
  24. var queryParam = queryJson.ToJObject();
  25. List<DbParameter> parameter = new List<DbParameter>();
  26. #region [SQL]
  27. string sql = @"SELECT ID, CheckCode, SelectLevel, Status, Quantity, Amount, MUSER, MUSERName, MTIME, WorkPoint
  28. FROM dbo.ICSCheck";
  29. sql += " WHERE 1=1";
  30. sql = string.Format(sql, DbHelper.GetErpIp(), DbHelper.GetErpName());
  31. #endregion
  32. if (!string.IsNullOrWhiteSpace(queryJson))
  33. {
  34. if (!string.IsNullOrWhiteSpace(queryParam["POCode"].ToString()))
  35. {
  36. sql += " and CheckCode like '%" + queryParam["POCode"].ToString() + "%' ";
  37. }
  38. }
  39. if (NFine.Code.OperatorProvider.Provider.GetCurrent().RoleEnCode != "admin")
  40. {
  41. sql += " and WorkPoint='" + NFine.Code.OperatorProvider.Provider.GetCurrent().Location + "'";
  42. }
  43. if (NFine.Code.OperatorProvider.Provider.GetCurrent().RoleEnCode == "Vendor")
  44. {
  45. sql += " and VenCode='" + NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode + "'";
  46. }
  47. return Repository().FindTablePageBySql(sql.ToString(), parameter.ToArray(), ref jqgridparam);
  48. }
  49. public DataTable GetSubGridJson(string ID, string Sequence, ref Pagination jqgridparam)
  50. {
  51. DataTable dt = new DataTable();
  52. //var queryParam = queryJson.ToJObject();
  53. List<DbParameter> parameter = new List<DbParameter>();
  54. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location.TrimEnd(',');
  55. string sql = @" SELECT distinct a.ID, b.InvCode,
  56. b.InvName ,
  57. b.InvStd ,
  58. a.LotNo,
  59. a.Quantity,
  60. d.WarehouseCode,
  61. d.LocationCode,
  62. a.PrimaryQuantity,
  63. a.PrimaryAmount,
  64. a.ReplayQuantity,
  65. a.ReplayAmount,
  66. a.CheckQuantity,
  67. a.CheckAmount
  68. FROM ICSCheckDetail a
  69. left join ICSInventoryLot c on a.LotNo=c.LotNO and a.WorkPoint=c.WorkPoint
  70. left join ICSInventory b on c.InvCode=b.InvCode AND c.WorkPoint=b.WorkPoint
  71. left join ICSWareHouseLotInfo d on c.LotNO=d.LotNO AND c.WorkPoint=d.WorkPoint
  72. WHERE a.CheckID='" + ID + "' and a.WorkPoint in ('" + WorkPoint + "')";
  73. return Repository().FindTablePageBySql(sql.ToString(), parameter.ToArray(), ref jqgridparam);
  74. }
  75. public string DeleteICSCheckDetail(string ID)
  76. {
  77. //站点信息
  78. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location;
  79. string msg = "";
  80. string sql = string.Empty;
  81. try
  82. {
  83. sql = string.Format(@"DELETE FROM ICSCheckDetail WHERE ID ='{0}' and WorkPoint ='{1}'", ID, WorkPoint);
  84. SqlHelper.ExecuteNonQuery(sql);
  85. }
  86. catch (Exception ex)
  87. {
  88. throw new Exception(ex.Message);
  89. }
  90. return msg;
  91. }
  92. /// <summary>
  93. /// 获取仓库
  94. /// </summary>
  95. /// <returns></returns>
  96. public DataTable GetWHCode()
  97. {
  98. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location;
  99. string sql = @" select '' as ID,'' as WarehouseName union all
  100. SELECT ID+'|'+WarehouseCode,WarehouseName FROM ICSWarehouse WITH (NOLOCK) WHERE WorkPoint = '{0}' ";
  101. sql = string.Format(sql, WorkPoint);
  102. //string role = NFine.Code.OperatorProvider.Provider.GetCurrent().RoleEnCode;
  103. //if (role != "admin")
  104. //{
  105. // sql += " and b.WorkPoint='" + WorkPoint + "'";
  106. //}
  107. DataTable dt = SqlHelper.GetDataTableBySql(sql);
  108. return dt;
  109. }
  110. public DataTable GetQU(string WHCodeID)
  111. {
  112. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location;
  113. string sql = @" select '' as QUValue,'' as QUName union all
  114. SELECT Region as QUValue,Region+'区' as QUName FROM ICSLocation WITH (NOLOCK) WHERE WHID = '{0}' AND WorkPoint='{1}'
  115. ";
  116. sql = string.Format(sql, WHCodeID, WorkPoint);
  117. DataTable dt = SqlHelper.GetDataTableBySql(sql);
  118. return dt;
  119. }
  120. //public DataTable GetQU(string WHCodeID)
  121. //{
  122. // string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location;
  123. // string sql = @"SELECT Region as QUValue,Region+'区' as QUName FROM ICSLocation WHERE WHID = '{0}' AND WorkPoint='{1}'";
  124. // sql = string.Format(sql, WHCodeID, WorkPoint);
  125. // DataTable dt = Repository().FindTableBySql(sql);
  126. // return dt;
  127. //}
  128. public DataTable GetPai(string WHCodeID, string Qu)
  129. {
  130. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location;
  131. string sql = @" select '' as PaiValue,'' as PaiName union all
  132. SELECT Row as PaiValue,Row+'排' as PaiName FROM ICSLocation WITH (NOLOCK) WHERE WHID = '{0}' AND WorkPoint='{1}' and Region='{2}'
  133. ";
  134. sql = string.Format(sql, WHCodeID, WorkPoint, Qu);
  135. DataTable dt = SqlHelper.GetDataTableBySql(sql);
  136. return dt;
  137. }
  138. public DataTable GetHuoJia(string WHCodeID, string Qu, string Pai)
  139. {
  140. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location;
  141. string sql = @" select '' as HuoJiaValue,'' as HuoJiaName union all
  142. SELECT GoodsShelf as HuoJiaValue,GoodsShelf +'' as HuoJiaName FROM ICSLocation WITH (NOLOCK) WHERE WHID = '{0}' AND WorkPoint='{1}' and Region='{2}' and Row='{3}'
  143. ";
  144. sql = string.Format(sql, WHCodeID, WorkPoint, Qu, Pai);
  145. DataTable dt = SqlHelper.GetDataTableBySql(sql);
  146. return dt;
  147. }
  148. public DataTable GetCeng(string WHCodeID, string Qu, string Pai, string HuoJia)
  149. {
  150. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location;
  151. string sql = @" select '' as CengValue,'' as CengName union all
  152. SELECT Tier as CengValue,Tier +'层' as CengName FROM ICSLocation WITH (NOLOCK) WHERE WHID = '{0}' AND WorkPoint='{1}' and Region='{2}' and Row='{3}' and GoodsShelf ='{4}'
  153. ";
  154. sql = string.Format(sql, WHCodeID, WorkPoint, Qu, Pai, HuoJia);
  155. DataTable dt = SqlHelper.GetDataTableBySql(sql);
  156. return dt;
  157. }
  158. public DataTable GetGe(string WHCodeID, string Qu, string Pai, string HuoJia, string Ceng)
  159. {
  160. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location;
  161. string sql = @" select '' as GeValue,'' as GeName union all
  162. SELECT Grid as GeValue,Grid +'格' as GeName FROM ICSLocation WITH (NOLOCK) WHERE WHID = '{0}' AND WorkPoint='{1}' and Region='{2}' and Row='{3}' and GoodsShelf ='{4}' and Tier='{5}'
  163. ";
  164. sql = string.Format(sql, WHCodeID, WorkPoint, Qu, Pai, HuoJia, Ceng);
  165. DataTable dt = SqlHelper.GetDataTableBySql(sql);
  166. return dt;
  167. }
  168. //public string AddICSCheck(string Parameter)
  169. //{
  170. // string msg = "";
  171. // string APIURL = ConfigurationManager.ConnectionStrings["APIURL"].ConnectionString + "Check/Create";
  172. // string result = HttpPost(APIURL, Parameter);
  173. // JObject Obj = (JObject)JsonConvert.DeserializeObject(result);//或者JObject jo = JObject.Parse(jsonText);
  174. // string MessAge = Obj["Message"].ToString();
  175. // string Success = Obj["Success"].ToString();
  176. // if (Success.ToUpper() == "FALSE")
  177. // {
  178. // msg = MessAge;
  179. // }
  180. // return msg;
  181. //}
  182. /// <summary>
  183. /// 新增盘点单接口
  184. /// </summary>
  185. /// <param name="Parameter"></param>
  186. /// <returns></returns>
  187. public string AddICSCheck(string Parameter)
  188. {
  189. string msg = "";
  190. try
  191. {
  192. List<ICSCheck> model = JsonConvert.DeserializeObject<List<ICSCheck>>(Parameter.ToString());
  193. if (model == null || model.Count<=0)
  194. {
  195. msg = "操作失败";
  196. return msg;
  197. }
  198. string sql = string.Empty;
  199. foreach (var item in model)
  200. {
  201. if (string.IsNullOrEmpty(item.User))
  202. {
  203. throw new Exception("操作人不能为空!");//"操作人不能为空!");
  204. }
  205. if (string.IsNullOrEmpty(item.WorkPoint))
  206. {
  207. throw new Exception("站点不能为空");//"站点不能为空!"
  208. }
  209. //创建盘点单
  210. foreach (var itemInfo in item.Detail)
  211. {
  212. string Code = string.Empty;
  213. //获取单号
  214. sql = @"IF NOT EXISTS(SELECT F_Account FROM Sys_SRM_User WHERE F_Account='{0}' AND F_Location='{1}')
  215. BEGIN
  216. RAISERROR('',16,1);
  217. RETURN
  218. END
  219. DECLARE @MaxNO INT,@date varchar(20)='CHK'+SUBSTRING(CONVERT(varchar(8), GETDATE(), 112), 1, 8)
  220. SELECT @MaxNO=SUBSTRING(MAX(CheckCode),LEN(@date)+1,LEN(MAX(CheckCode))-LEN(@date))+1 FROM ICSCheck
  221. WHERE SUBSTRING(CheckCode, 1, LEN(@date))=@date
  222. IF @MaxNO IS NULL
  223. BEGIN
  224. SELECT @date+'00001' AS Code
  225. END
  226. ELSE
  227. BEGIN
  228. SELECT @date+REPLICATE('0',5-LEN(@MaxNO))+CAST(@MaxNO AS nvarchar(10)) AS Code
  229. END ";
  230. sql = string.Format(sql, item.User, item.WorkPoint);
  231. Code = SqlHelper.ExecuteScalar(sql).ToString();
  232. if (string.IsNullOrWhiteSpace(Code))
  233. {
  234. throw new Exception("盘点单号不能为空");//"盘点单单号不能为空!");
  235. }
  236. int len = itemInfo.SelectLevel.Length;
  237. sql = @"IF NOT EXISTS(SELECT id FROM ICSWareHouseLotInfo WHERE SUBSTRING(LocationCode,1,{4}) = '{1}')
  238. BEGIN
  239. RAISERROR('!',16,1);
  240. RETURN
  241. END
  242. INSERT INTO ICSCheck (ID,CheckCode,SelectLevel,Status,Quantity,Amount,MUSER,MUSERName,MTIME,WorkPoint)
  243. SELECT NEWID(),'{0}','{1}','2',SUM(a.Quantity),0,b.F_Account,b.F_RealName,GETDATE(),b.F_Location
  244. FROM ICSWareHouseLotInfo a
  245. INNER JOIN Sys_SRM_User b ON b.F_Account='{2}' AND b.F_Location='{3}'
  246. WHERE SUBSTRING(a.LocationCode,1,{4}) = '{1}'
  247. GROUP BY b.F_Account,b.F_RealName,b.F_Location";
  248. sql = string.Format(sql, Code, itemInfo.SelectLevel, item.User, item.WorkPoint, len);
  249. if (SqlHelper.ExecuteNonQuery(sql)<=0)
  250. {
  251. throw new Exception("盘点单创建失败");//"盘点单创建失败!");
  252. }
  253. }
  254. }
  255. }
  256. catch (Exception ex)
  257. {
  258. msg = ex.Message;
  259. }
  260. return msg;
  261. }
  262. /// <summary>
  263. ///
  264. /// </summary>
  265. public class ICSCheck
  266. {
  267. /// <summary>
  268. /// 用户
  269. /// </summary>
  270. public string User { get; set; }
  271. /// <summary>
  272. /// 操作时间
  273. /// </summary>
  274. public string MTIME { get; set; }
  275. /// <summary>
  276. ///
  277. /// 站点
  278. /// </summary>
  279. public string WorkPoint { get; set; }
  280. /// <summary>
  281. /// 详情
  282. /// </summary>
  283. public List<Detail> Detail { get; set; }
  284. }
  285. /// <summary>
  286. ///
  287. /// </summary>
  288. public class Detail
  289. {
  290. /// <summary>
  291. /// 仓库编码
  292. /// </summary>
  293. public string SelectLevel { get; set; }
  294. }
  295. //接口api解析
  296. public static string HttpPost(string url, string body)
  297. {
  298. try
  299. {
  300. Encoding encoding = Encoding.UTF8;
  301. HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
  302. request.Method = "POST";
  303. request.Accept = "application/json, text/javascript, */*"; //"text/html, application/xhtml+xml, */*";
  304. request.ContentType = "application/json; charset=utf-8";
  305. byte[] buffer = encoding.GetBytes(body);
  306. request.ContentLength = buffer.Length;
  307. request.GetRequestStream().Write(buffer, 0, buffer.Length);
  308. HttpWebResponse response = (HttpWebResponse)request.GetResponse();
  309. using (StreamReader reader = new StreamReader(response.GetResponseStream(), encoding))
  310. {
  311. return reader.ReadToEnd();
  312. }
  313. }
  314. catch (WebException ex)
  315. {
  316. throw new Exception(ex.Message);
  317. }
  318. }
  319. public string DeleteICSCheck(string keyValue)
  320. {
  321. //站点信息
  322. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location;
  323. string msg = "";
  324. keyValue = keyValue.Substring(1, keyValue.Length - 2);
  325. string sql = string.Empty;
  326. try
  327. {
  328. sql += string.Format(@" IF EXISTS(SELECT CheckID FROM ICSCheckDetail WHERE CheckID in ({0}) )
  329. BEGIN
  330. RAISERROR(',',16,1);
  331. RETURN
  332. END
  333. DELETE FROM dbo.ICSCheck WHERE ID IN ({0}) and WorkPoint ='{1}'", keyValue.TrimEnd(','), WorkPoint);
  334. sql += string.Format(@"DELETE FROM dbo.ICSCheckDetail WHERE CheckID IN ({0}) and WorkPoint ='{1}'", keyValue.TrimEnd(','), WorkPoint);
  335. SqlHelper.ExecuteNonQuery(sql);
  336. }
  337. catch (Exception ex)
  338. {
  339. msg = ex.Message;
  340. }
  341. return msg;
  342. }
  343. public DataTable GetGridJsonWarehouse(string queryJson, ref Pagination jqgridparam)
  344. {
  345. DataTable dt = new DataTable();
  346. var queryParam = queryJson.ToJObject();
  347. List<DbParameter> parameter = new List<DbParameter>();
  348. #region [SQL]
  349. string sql = @"select distinct ID, WarehouseCode as SelectLevel ,WarehouseCode,WarehouseName from ICSWarehouse";
  350. sql += " WHERE 1=1";
  351. sql = string.Format(sql, DbHelper.GetErpIp(), DbHelper.GetErpName());
  352. #endregion
  353. if (!string.IsNullOrWhiteSpace(queryJson))
  354. {
  355. if (!string.IsNullOrWhiteSpace(queryParam["WarehouseCode"].ToString()))
  356. {
  357. sql += " and WarehouseCode like '%" + queryParam["WarehouseCode"].ToString() + "%' ";
  358. }
  359. }
  360. if (NFine.Code.OperatorProvider.Provider.GetCurrent().RoleEnCode != "admin")
  361. {
  362. sql += " and a.WorkPoint='" + NFine.Code.OperatorProvider.Provider.GetCurrent().Location + "'";
  363. }
  364. if (NFine.Code.OperatorProvider.Provider.GetCurrent().RoleEnCode == "Vendor")
  365. {
  366. sql += " and a.VenCode='" + NFine.Code.OperatorProvider.Provider.GetCurrent().UserCode + "'";
  367. }
  368. return Repository().FindTablePageBySql(sql.ToString(), parameter.ToArray(), ref jqgridparam);
  369. }
  370. public DataTable GetSubGridJsonRegion(string ID, ref Pagination jqgridparam)
  371. {
  372. DataTable dt = new DataTable();
  373. //var queryParam = queryJson.ToJObject();
  374. List<DbParameter> parameter = new List<DbParameter>();
  375. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location.TrimEnd(',');
  376. string sql = @" select distinct b.WarehouseCode+'-'+a.Region as SelectLevel, a.WHID, b.WarehouseCode,a.Region from ICSLocation a left join ICSWarehouse b on a.WHID=b.ID and a.WorkPoint=b.WorkPoint
  377. WHERE a.WHID='" + ID + "' and a.WorkPoint in ('" + WorkPoint + "')";
  378. return Repository().FindTablePageBySql(sql.ToString(), parameter.ToArray(), ref jqgridparam);
  379. }
  380. public DataTable GetSubGridJsonRow(string WHID, string Region, ref Pagination jqgridparam)
  381. {
  382. DataTable dt = new DataTable();
  383. //var queryParam = queryJson.ToJObject();
  384. List<DbParameter> parameter = new List<DbParameter>();
  385. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location.TrimEnd(',');
  386. string sql = @" select distinct isnull(b.WarehouseCode,'')+'-'+isnull(a.Region,'')+'-'+isnull(a.Row,'') as SelectLevel, a.WHID, b.WarehouseCode,a.Region ,a.Row
  387. from ICSLocation a left join ICSWarehouse b on a.WHID=b.ID and a.WorkPoint=b.WorkPoint
  388. WHERE a.WHID='" + WHID + "' and a.Region='" + Region + "' and isnull(a.Row,'') !='' and a.WorkPoint in ('" + WorkPoint + "')";
  389. return Repository().FindTablePageBySql(sql.ToString(), parameter.ToArray(), ref jqgridparam);
  390. }
  391. public DataTable GetSubGridJsonGoodsShelf(string WHID, string Region, string Row, ref Pagination jqgridparam)
  392. {
  393. DataTable dt = new DataTable();
  394. //var queryParam = queryJson.ToJObject();
  395. List<DbParameter> parameter = new List<DbParameter>();
  396. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location.TrimEnd(',');
  397. string sql = @" select distinct isnull(b.WarehouseCode,'')+'-'+isnull(a.Region,'')+'-'+isnull(a.Row,'')+'-'+isnull(a.GoodsShelf,'') as SelectLevel, a.WHID, b.WarehouseCode,a.Region ,a.Row,a.GoodsShelf
  398. from ICSLocation a left join ICSWarehouse b on a.WHID=b.ID and a.WorkPoint=b.WorkPoint
  399. WHERE a.WHID='" + WHID + "' and a.Region='" + Region + "' and a.Row='" + Row + "' and isnull(a.GoodsShelf,'') !='' and a.WorkPoint in ('" + WorkPoint + "')";
  400. return Repository().FindTablePageBySql(sql.ToString(), parameter.ToArray(), ref jqgridparam);
  401. }
  402. public DataTable GetSubGridJsonTier(string WHID, string Region, string Row, string GoodsShelf, ref Pagination jqgridparam)
  403. {
  404. DataTable dt = new DataTable();
  405. //var queryParam = queryJson.ToJObject();
  406. List<DbParameter> parameter = new List<DbParameter>();
  407. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location.TrimEnd(',');
  408. string sql = @" select distinct isnull(b.WarehouseCode,'')+'-'+isnull(a.Region,'')+'-'+isnull(a.Row,'')+'-'+isnull(a.GoodsShelf,'') +'-'+isnull(a.Tier,'') as SelectLevel, a.WHID, b.WarehouseCode,a.Region ,a.Row,a.GoodsShelf ,a.Tier
  409. from ICSLocation a left join ICSWarehouse b on a.WHID=b.ID and a.WorkPoint=b.WorkPoint
  410. WHERE a.WHID='" + WHID + "' and a.Region='" + Region + "' and a.Row='" + Row + "' and a.GoodsShelf='" + GoodsShelf + "' and isnull(a.Tier,'') !='' and a.WorkPoint in ('" + WorkPoint + "')";
  411. return Repository().FindTablePageBySql(sql.ToString(), parameter.ToArray(), ref jqgridparam);
  412. }
  413. public DataTable GetSubGridJsonGrid(string WHID, string Region, string Row, string GoodsShelf, string Tier, ref Pagination jqgridparam)
  414. {
  415. DataTable dt = new DataTable();
  416. //var queryParam = queryJson.ToJObject();
  417. List<DbParameter> parameter = new List<DbParameter>();
  418. string WorkPoint = NFine.Code.OperatorProvider.Provider.GetCurrent().Location.TrimEnd(',');
  419. string sql = @" select distinct isnull(b.WarehouseCode,'')+'-'+isnull(a.Region,'')+'-'+isnull(a.Row,'')+'-'+isnull(a.GoodsShelf,'') +'-'+isnull(a.Tier,'') as SelectLevel, a.WHID, b.WarehouseCode,a.Region ,a.Row ,a.GoodsShelf ,a.Tier,a.Grid
  420. from ICSLocation a left join ICSWarehouse b on a.WHID=b.ID and a.WorkPoint=b.WorkPoint
  421. WHERE a.WHID='" + WHID + "' and a.Region='" + Region + "' and a.Row='" + Row + "' and a.Tier='" + Tier + "' and a.GoodsShelf='" + GoodsShelf + "' and isnull(a.Grid,'') !='' and a.WorkPoint in ('" + WorkPoint + "')";
  422. return Repository().FindTablePageBySql(sql.ToString(), parameter.ToArray(), ref jqgridparam);
  423. }
  424. }
  425. }