UpdateJXDataFromIPEasyJob.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. using Microsoft.Data.SqlClient;
  2. using Microsoft.EntityFrameworkCore;
  3. using Newtonsoft.Json.Schema;
  4. using Quartz;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Data;
  8. using System.Diagnostics;
  9. using System.Dynamic;
  10. using System.IO;
  11. using System.Linq;
  12. using System.Net.Http;
  13. using System.Net.Http.Json;
  14. using System.Text.Json;
  15. using System.Threading;
  16. using System.Threading.Tasks;
  17. using wispro.sp.entity;
  18. using wispro.sp.utility;
  19. namespace wispro.sp.api.Job
  20. {
  21. public class UpdateJXDataFromIPEasyJob : IJob
  22. {
  23. public dynamic GetItemFromIPEasyDB(PerformanceItem Item, spDbContext spDb)
  24. {
  25. HttpClient http = new HttpClient();
  26. //http.GetFromJsonAsync($"{ConfigHelper.GetSectionValue("IPEasySetting:ipEeasyApi")}/api/ipEasy/GetItemFromIPEasyDB?CaseNo={Item.CaseNo}&DoItem={Item.DoItem}").Wait();
  27. var response = http.GetFromJsonAsync<Object>($"{ConfigHelper.GetSectionValue("IPEasySetting:ipEeasyApi")}/api/ipEasy/GetItemFromIPEasyDB?CaseNo={Item.CaseNo}&DoItem={Item.DoItem}").Result;
  28. dynamic retItem = new ExpandoObject();
  29. JsonElement json = ((System.Text.Json.JsonElement)response);
  30. retItem.CaseNo = json.GetProperty("CaseNo").GetString();
  31. retItem.ApplicationType = json.GetProperty("ApplicationType").GetString();
  32. retItem.BusinessType = json.GetProperty("BusinessType").GetString();
  33. retItem.DoItem = json.GetProperty("DoItem").GetString();
  34. retItem.CaseStage = json.GetProperty("CaseStage").GetString();
  35. retItem.CaseCoefficient = json.GetProperty("CaseCoefficient").GetString();
  36. retItem.DoItemCoefficient = json.GetProperty("DoItemCoefficient").GetString();
  37. retItem.DoPersons = json.GetProperty("DoPersons").GetString();
  38. retItem.Reviewer = json.GetProperty("Reviewer").GetString();
  39. retItem.CustomerName = json.GetProperty("CustomerName").GetString();
  40. retItem.FinishedDate = json.GetProperty("FinishedDate").GetString();
  41. retItem.WordCount = json.GetProperty("WordCount").GetString();
  42. retItem.ReturnDate = json.GetProperty("ReturnDate").GetString();
  43. retItem.CaseType = json.GetProperty("CaseType").GetString();
  44. retItem.CaseState = json.GetProperty("CaseState").GetString();
  45. retItem.DoItemMemo = json.GetProperty("DoItemMemo").GetString();
  46. retItem.DoItemState = json.GetProperty("DoItemState").GetString();
  47. retItem.CaseName = json.GetProperty("CaseName").GetString();
  48. retItem.EntrustingDate = json.GetProperty("EntrustingDate").GetString();
  49. retItem.CustomerLimitDate = json.GetProperty("CustomerLimitDate").GetString();
  50. retItem.InternalDate = json.GetProperty("InternalDate").GetString();
  51. retItem.FirstDraftDate = json.GetProperty("FirstDraftDate").GetString();
  52. retItem.CaseMemo = json.GetProperty("CaseMemo").GetString();
  53. retItem.FinalizationDate = json.GetProperty("FinalizationDate").GetString();
  54. return retItem;
  55. #region old code 直接从数据库中获取数据
  56. //dynamic retItem = new ExpandoObject();
  57. //var dt = new DataTable();
  58. //using (var conn = new SqlConnection(ConfigHelper.GetSectionValue("IPEasySetting:ConnectionStrings")))
  59. //{
  60. // try
  61. // {
  62. // conn.Open();
  63. // string strSql = @"SELECT distinct p_case_info.case_volume as case_volume,
  64. // i_apply_type.apply_type_zh_cn as apply_type_zh_cn,
  65. // i_business_type.business_type_zh_cn as business_type_zh_cn,
  66. // i_ctrl_proc.ctrl_proc_zh_cn as ctrl_proc_zh_cn,
  67. // (select case_status_zh_cn from i_case_status where case_status_id=p_proc_info.review_stage) as review_stage,
  68. // i_case_coefficient.case_coefficient_zh_cn as case_coefficient,
  69. // i_proc_coefficient.proc_coefficient_zh_cn as proc_coefficient,
  70. // (select proc_coefficient_zh_cn from p_proc_info pr
  71. // left join i_proc_coefficient pc on pc.proc_coefficient_id=pr.proc_coefficient_id
  72. // where case_id=p_case_info.case_id and ctrl_proc_id='8b96378e-05a0-4a8d-b3d1-39af92fddaf5'
  73. // and pr.seq=
  74. // (select max(seq) from p_proc_info pr where case_id=p_case_info.case_id
  75. // and ctrl_proc_id='8b96378e-05a0-4a8d-b3d1-39af92fddaf5'and seq<p_proc_info.seq)
  76. // ) as oa_proc_coefficient,
  77. // (STUFF((SELECT ',' + u.cn_name from p_proc_pic_list as pl
  78. // inner join s_user_info as u on u.user_id = pl.pic_id
  79. // inner join p_proc_info pr1 on pr1.proc_id=pl.obj_id
  80. // where case_id=p_case_info.case_id and
  81. // ctrl_proc_id='8b96378e-05a0-4a8d-b3d1-39af92fddaf5'
  82. // and pr1.seq=(
  83. // select max(seq) from p_proc_info pr2 where case_id=p_case_info.case_id
  84. // and ctrl_proc_id='8b96378e-05a0-4a8d-b3d1-39af92fddaf5'
  85. // and seq<p_proc_info.seq) FOR XML PATH('') ),1,1,''))
  86. // as oa_pic_list,
  87. // STUFF((SELECT ',' + ur.rank_zh_cn from p_proc_pic_list as pl
  88. // inner join s_user_info as u on u.user_id = pl.pic_id
  89. // left join i_user_rank ur on ur.rank_id=u.rank_id
  90. // where pl.obj_id = p_proc_info.proc_id FOR XML PATH('') ),1,1,'') as user_rank,
  91. // STUFF((SELECT ',' + u.cn_name from p_proc_pic_list as pl
  92. // inner join s_user_info as u on u.user_id = pl.pic_id
  93. // where pl.obj_id = p_proc_info.proc_id FOR XML PATH('') ),1,1,'') as pic,
  94. // STUFF((SELECT ',' + u.cn_name from p_revise_user_list as pl
  95. // inner join s_user_info as u on u.user_id = pl.revise_user_id
  96. // where pl.obj_id = p_proc_info.proc_id FOR XML PATH('') ),1,1,'') as reviser,
  97. // c_customer.customer_name as customer_name,
  98. // STUFF((SELECT ',' + a.applicant_name_cn from p_applicant_list as al
  99. // inner join i_applicant as a on a.applicant_id = al.applicant_id
  100. // where al.obj_id = p_case_info.case_id order by al.seq FOR XML PATH('') ),1,1,'') as applicants,
  101. // p_proc_info.finish_date as finish_date,
  102. // p_proc_info.finish_doc_date as finish_doc_date,
  103. // p_proc_info.back_date as back_date,
  104. // i_case_type.case_type_zh_cn as case_type_zh_cn,
  105. // i_case_status.case_status_zh_cn as case_status_zh_cn,
  106. // p_proc_info.proc_note as proc_note,
  107. // (select proc_status_zh_cn from i_proc_status where proc_status_id=p_proc_info.proc_status_id) as proc_status_zh_cn,
  108. // p_case_info.case_name as case_name,
  109. // p_case_info.charge_date as charge_date,
  110. // p_proc_info.cus_due_date as cus_due_date,
  111. // p_proc_info.int_due_date as int_due_date,
  112. // p_proc_info.first_doc_date as first_doc_date,
  113. // p_case_info.remark as case_remark,
  114. // p_proc_info.translate_count as translate_count,
  115. // STUFF((SELECT ',' + ui.cn_name from p_sales_list as sl
  116. // inner join dbo.s_user_info as ui on ui.user_id = sl.sales_user_id
  117. // where sl.obj_id = p_case_info.case_id AND sl.is_enabled=1 order by sl.seq FOR XML PATH('') ),1,1,'') as sales,
  118. // i_country.country_zh_cn as country_zh_cn
  119. // from p_case_info
  120. // inner join p_case_advance_info with(nolock) on p_case_info.case_id=p_case_advance_info.case_id
  121. // inner join i_apply_type with(nolock) on i_apply_type.apply_type_id=p_case_info.apply_type_id
  122. // inner join i_case_type with(nolock) on i_case_type.case_type_id=p_case_info.case_type_id
  123. // inner join i_country with(nolock) on i_country.country_id=p_case_info.country_id
  124. // inner join i_case_status with(nolock) on i_case_status.case_status_id=p_case_info.case_status_id
  125. // inner join c_customer with(nolock) on c_customer.customer_id=p_case_info.customer_id
  126. // left join i_case_coefficient on i_case_coefficient.case_coefficient_id=p_case_info.case_coefficient_id
  127. // inner join p_proc_info with(nolock) on p_case_info.case_id=p_proc_info.case_id
  128. // inner join i_ctrl_proc with(nolock) on p_proc_info.ctrl_proc_id=i_ctrl_proc.ctrl_proc_id
  129. // inner join i_business_type on i_business_type.business_type_id = p_case_info.business_type_id
  130. // left join p_proc_pic_list with(nolock) on p_proc_pic_list.obj_id=p_proc_info.proc_id
  131. // left join s_user_info with(nolock) on s_user_info.user_id=p_proc_pic_list.pic_id
  132. // left join i_proc_coefficient on i_proc_coefficient.proc_coefficient_id=p_proc_info.proc_coefficient_id
  133. // where
  134. // p_case_info.is_enabled=1 and
  135. // p_proc_info.is_enabled=1 and
  136. // s_user_info.dept_id not in ('60e09ee0-fcc7-446f-badc-af9973079fee','34d0e351-71dc-418f-9b6b-bcb67af62fed','599cbe0c-044e-4ffc-9411-96dd9019d8a6') and
  137. // (p_case_info.case_type_id='31D1A147-2931-43B5-94AE-B72B1525BA8A') AND
  138. // i_ctrl_proc.ctrl_proc_zh_cn=@DoItem and
  139. // p_case_info.case_volume =@CaseNo";
  140. // //if (!string.IsNullOrEmpty(Item.CaseStage))
  141. // //{
  142. // // strSql = $"select * from ({strSql}) as t where review_stage=@CaseStage";
  143. // //}
  144. // using (var cmd = conn.CreateCommand())
  145. // {
  146. // cmd.CommandText = strSql;
  147. // cmd.CommandType = CommandType.Text;
  148. // cmd.Parameters.Add(new SqlParameter("DoItem", Item.DoItem.Trim()));
  149. // cmd.Parameters.Add(new SqlParameter("CaseNo", Item.CaseNo.Trim()));
  150. // //if (!string.IsNullOrEmpty(Item.CaseStage))
  151. // //{
  152. // // cmd.Parameters.Add(new SqlParameter("CaseStage", Item.CaseStage));
  153. // //}
  154. // using (var reader = cmd.ExecuteReader())
  155. // {
  156. // dt.Load(reader);
  157. // if (dt.Rows.Count > 1)
  158. // {
  159. // bool bRet = false;
  160. // foreach (DataRow row in dt.Rows)
  161. // {
  162. // retItem.FinishedDate = row["finish_date"].ToString();
  163. // DateTime temDate = DateTime.Now;
  164. // DateTime.TryParse(retItem.FinishedDate,out temDate);
  165. // if ((Item.FinishedDate.HasValue && Item.FinishedDate.Value == temDate) ||
  166. // (!string.IsNullOrEmpty(Item.CaseStage) && Item.CaseStage == row["review_stage"].ToString()))
  167. // {
  168. // GetItemData(retItem, row);
  169. // bRet = true;
  170. // break;
  171. // }
  172. // }
  173. // if (!bRet)
  174. // {
  175. // DataRow row = dt.Rows[0];
  176. // GetItemData(retItem, row);
  177. // }
  178. // }
  179. // else
  180. // {
  181. // if (dt.Rows.Count > 0)
  182. // {
  183. // DataRow row = dt.Rows[0];
  184. // GetItemData(retItem, row);
  185. // }
  186. // }
  187. // }
  188. // }
  189. // }
  190. // catch (Exception ex)
  191. // {
  192. // // error handling
  193. // throw;
  194. // }
  195. // finally
  196. // {
  197. // conn.Close();
  198. // }
  199. //}
  200. //return retItem;
  201. #endregion
  202. }
  203. private static void GetItemData(dynamic retItem, DataRow row)
  204. {
  205. retItem.CaseNo = row["case_volume"].ToString();
  206. retItem.ApplicationType = row["apply_type_zh_cn"].ToString();
  207. retItem.BusinessType = row["business_type_zh_cn"].ToString();
  208. retItem.DoItem = row["ctrl_proc_zh_cn"].ToString(); ;
  209. retItem.CaseStage = row["review_stage"].ToString();
  210. retItem.CaseCoefficient = row["case_coefficient"].ToString();
  211. retItem.DoItemCoefficient = row["proc_coefficient"].ToString();
  212. retItem.DoPersons = row["pic"].ToString();
  213. retItem.Reviewer = row["reviser"].ToString();
  214. retItem.CustomerName = row["customer_name"].ToString();
  215. retItem.FinishedDate = row["finish_date"].ToString();
  216. retItem.WordCount = row["translate_count"].ToString();
  217. retItem.ReturnDate = row["back_date"].ToString();
  218. retItem.CaseType = row["case_type_zh_cn"].ToString();
  219. retItem.CaseState = row["case_status_zh_cn"].ToString();
  220. retItem.DoItemState = row["proc_status_zh_cn"].ToString();
  221. retItem.DoItemMemo = row["proc_note"].ToString();
  222. retItem.CaseName = row["case_name"].ToString();
  223. retItem.EntrustingDate = row["charge_date"].ToString();
  224. retItem.CustomerLimitDate = row["cus_due_date"].ToString();
  225. retItem.InternalDate = row["int_due_date"].ToString();
  226. retItem.FirstDraftDate = row["first_doc_date"].ToString();
  227. retItem.CaseMemo = row["case_remark"].ToString();
  228. retItem.FinalizationDate = row["finish_doc_date"].ToString();
  229. }
  230. public void UpdateFromIPEasy(PerformanceItem Item,spDbContext spDb)
  231. {
  232. List<string> caseNos = new List<string>()
  233. {
  234. "AHK2211737",
  235. "PAHK2211739",
  236. "PACN2120893-TS",
  237. "PAKR2117244",
  238. "PAIN2117242",
  239. "PAEPO1912286",
  240. "PAUS2116581-转所",
  241. "PATW2111942",
  242. "PACN2024870-TS客户自行递交",
  243. "PAUS2010428",
  244. "PAEPO2111073",
  245. "PAUS1915675",
  246. "PAUS2111071",
  247. "PAAU2210170",
  248. "PAUS2010164",
  249. "PACN1914374",
  250. "PAUS2210315",
  251. "PAUS2016669-结案",
  252. "PAEPO1510129",
  253. "PAUS2016669-结案",
  254. "PACN2026619-TS",
  255. "PACN2123589-TS",
  256. "PACN2125458"
  257. };
  258. if (caseNos.Contains(Item.CaseNo))
  259. {
  260. System.Diagnostics.Debug.WriteLine("");
  261. }
  262. dynamic retObj = GetItemFromIPEasyDB(Item, spDb); //utility.IPEasyUtility.GetPerformanceRecord(Item.CaseNo, Item.DoItem, string.IsNullOrEmpty(Item.CaseStage) ? null : Item.CaseStage);
  263. var appealAJXS = spDb.AppealTypes.FirstOrDefault(p => p.Name.Contains("案件系数"));
  264. var appealCLSXXS = spDb.AppealTypes.FirstOrDefault(p => p.Name.Contains("处理事项系数"));
  265. var caseXS = (spDb.AppealRecords.FirstOrDefault(p => p.ItemId == Item.Id && p.TypeId == appealAJXS.Id && p.State == 1) == null);
  266. var doItemXS = (spDb.AppealRecords.FirstOrDefault(p => p.ItemId == Item.Id && p.TypeId == appealCLSXXS.Id && p.State == 1) == null);
  267. IDictionary<String, Object> keyValuePairs = (IDictionary<String, Object>)retObj;
  268. if (keyValuePairs.ContainsKey("DoItemCoefficient") && Item.DoItemCoefficient != retObj.DoItemCoefficient && doItemXS)
  269. {
  270. Item.DoItemCoefficient = retObj.DoItemCoefficient;
  271. }
  272. if (keyValuePairs.ContainsKey("WordCount"))
  273. {
  274. if (!string.IsNullOrEmpty(retObj.WordCount))
  275. {
  276. var wordCount = int.Parse(retObj.WordCount);
  277. if (wordCount != Item.WordCount)
  278. Item.WordCount = wordCount;
  279. }
  280. }
  281. if (keyValuePairs.ContainsKey("Reviewer") && (Item.Reviewer == null || Item.Reviewer.Name != retObj.Reviewer) && !string.IsNullOrEmpty(retObj.Reviewer))
  282. {
  283. string name = retObj.Reviewer;
  284. if (!string.IsNullOrEmpty(name))
  285. {
  286. string temName = name.Split('-')[0].Trim();
  287. if (!name.Contains("君龙"))
  288. {
  289. temName = name;
  290. }
  291. var temReviewer = spDb.Staffs.Where<Staff>(s => s.Name == temName).FirstOrDefault();
  292. if (temReviewer == null)
  293. {
  294. //Item.Reviewer = new Staff() { Name = retObj.Reviewer };
  295. }
  296. else
  297. {
  298. //Item.Reviewer = temReviewer;
  299. Item.ReviewerId = temReviewer.Id;
  300. }
  301. }
  302. }
  303. if (keyValuePairs.ContainsKey("ApplicationType") && Item.ApplicationType != retObj.ApplicationType && !string.IsNullOrEmpty(retObj.ApplicationType))
  304. {
  305. Item.ApplicationType = retObj.ApplicationType;
  306. }
  307. if (keyValuePairs.ContainsKey("CaseCoefficient") && Item.CaseCoefficient != retObj.CaseCoefficient && caseXS)
  308. {
  309. if(!(retObj.CaseCoefficient == null && string.IsNullOrEmpty(Item.CaseCoefficient)))
  310. Item.CaseCoefficient = retObj.CaseCoefficient;
  311. }
  312. if (keyValuePairs.ContainsKey("CaseType") && Item.CaseType != retObj.CaseType && !string.IsNullOrEmpty(retObj.CaseType))
  313. {
  314. Item.CaseType = retObj.CaseType;
  315. }
  316. if (spDb.Entry(Item).State != EntityState.Unchanged)
  317. {
  318. if (Item.AgentFeedbackMemo != "特殊点数申诉")
  319. {
  320. new Controllers.PerformanceItemController(spDb, new Services.FileTaskCacheService()).RefreshPoint(Item);
  321. }
  322. }
  323. }
  324. public void RefreshFromIPEasy(int type)
  325. {
  326. System.Threading.Thread t = new Thread(new ParameterizedThreadStart(RefreshFromIPEasy_BatchThread));
  327. t.Start(type);
  328. }
  329. /// <summary>
  330. /// 批量从IPEasy中更新数据
  331. /// </summary>
  332. /// <param name="type">
  333. /// 0:所有;
  334. /// 1:BasePoint为空记录;
  335. /// 2:新申请案件系数为空记录;
  336. /// 3:BasePoint为空记录 或者 新申请案件系数为空记录
  337. /// </param>
  338. /// <returns></returns>
  339. private void RefreshFromIPEasy_BatchThread(object type)
  340. {
  341. spDbContext spDb = new spDbContext();
  342. var Results = spDb.PerformanceItems.Include(p=>p.Customer).Where(p =>
  343. (p.AgentFeedbackMemo != "已算绩效" || p.AgentFeedbackMemo == null)
  344. && p.CalMonth.Status == 0
  345. && !p.CaseNo.StartsWith("J"));
  346. switch (type.ToString())
  347. {
  348. case "1":
  349. Results = Results.Where(p => p.BasePoint == null);
  350. break;
  351. case "2":
  352. Results = Results.Where(p => p.Type == "新申请" && p.CaseCoefficient == "");
  353. break;
  354. case "3":
  355. Results = Results.Where(p => p.BasePoint == null || (p.DoItem == "新申请" && p.CaseCoefficient == ""));
  356. break;
  357. }
  358. var listItems = Results.ToList();
  359. int i = 0;
  360. foreach (var Item in listItems)
  361. {
  362. int iTryCount = 0;
  363. TryAgain:
  364. try
  365. {
  366. iTryCount++;
  367. UpdateFromIPEasy(Item, spDb);
  368. Log($"{DateTime.Now}\t{++i}/{listItems.Count}\t{Item.CaseNo}");
  369. System.Diagnostics.Debug.WriteLine($"{DateTime.Now}\t{i}/{listItems.Count}\t{Item.CaseNo}");
  370. //}
  371. }
  372. catch (Exception ex)
  373. {
  374. if (iTryCount <= 3)
  375. {
  376. goto TryAgain;
  377. }
  378. System.Diagnostics.Debug.WriteLine(ex.ToString());
  379. Log($"{DateTime.Now}\t{++i}/{listItems.Count}\t{Item.CaseNo}\t更新失败!");
  380. }
  381. }
  382. }
  383. public Task Execute(IJobExecutionContext context)
  384. {
  385. spDbContext spDb = new spDbContext();
  386. var lstItem = spDb.PerformanceItems.Where<PerformanceItem>(p =>
  387. ((p.AgentFeedbackMemo != "已算绩效" || p.AgentFeedbackMemo==null )
  388. && p.CalMonth.Status == 0 &&
  389. !p.CaseNo.StartsWith("J")))
  390. .Include(p=>p.Reviewer)
  391. .Include(p=>p.CalMonth)
  392. .Include(p=>p.Customer)
  393. .Include(p=>p.ItemStaffs).ThenInclude(p=>p.DoPerson)
  394. .ToList<PerformanceItem>();
  395. if (lstItem != null)
  396. {
  397. int i = 0;
  398. foreach (var Item in lstItem)
  399. {
  400. System.Threading.Thread.Sleep(100);
  401. int iTryCount = 0;
  402. TryAgain:
  403. try
  404. {
  405. iTryCount++;
  406. UpdateFromIPEasy(Item, spDb);
  407. Log($"{DateTime.Now}\t{++i}/{lstItem.Count}\t{Item.CaseNo}");
  408. System.Diagnostics.Debug.WriteLine($"{DateTime.Now}\t{i}/{lstItem.Count}\t{Item.CaseNo}");
  409. //}
  410. }
  411. catch(Exception ex)
  412. {
  413. if(iTryCount <= 3)
  414. {
  415. goto TryAgain;
  416. }
  417. System.Diagnostics.Debug.WriteLine(ex.ToString());
  418. Log($"{DateTime.Now}\t{++i}\t{Item.CaseNo}\r\n{ex.ToString()}");
  419. }
  420. }
  421. }
  422. return Task.CompletedTask;
  423. }
  424. private void Log(string strMessage)
  425. {
  426. StreamWriter sw = File.AppendText("c:\\temp\\log.txt");
  427. sw.WriteLine($"{strMessage}");
  428. sw.Flush();
  429. sw.Close();
  430. sw.Dispose();
  431. }
  432. }
  433. }