DeliveryHolderViewModel.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. //----------------------------------------------------------------
  6. //Module Name: $safeprojectname$
  7. //Purpose:
  8. //CopyRight: Muchinfo
  9. //History:
  10. //----------------------------------------------------------------
  11. //DateTime 2016/8/5 14:38:50
  12. //Author
  13. //Description Create
  14. //----------------------------------------------------------------
  15. using GalaSoft.MvvmLight.Command;
  16. using GalaSoft.MvvmLight.Ioc;
  17. using Muchinfo.MTPClient.Data;
  18. using Muchinfo.MTPClient.Data.Enums;
  19. using Muchinfo.MTPClient.Data.Model;
  20. using Muchinfo.MTPClient.Data.Model.Account;
  21. using Muchinfo.MTPClient.Data.Model.Delivery;
  22. using Muchinfo.MTPClient.Infrastructure.Helpers;
  23. using Muchinfo.MTPClient.Infrastructure.MessageBox;
  24. using Muchinfo.MTPClient.Infrastructure.Utilities;
  25. using Muchinfo.MTPClient.Infrastructure.Windows;
  26. using Muchinfo.MTPClient.IService;
  27. using System.Windows;
  28. using Muchinfo.MTPClient.Resources;
  29. namespace Muchinfo.MTPClient.Delivery.ViewModels
  30. {
  31. /// <summary>
  32. /// 交割单查询ViewModel
  33. /// </summary>
  34. public class DeliveryHolderViewModel : QueryPanelModelBase
  35. {
  36. #region "私有字段/Private Data Members"
  37. protected IDeliveryService _deliveryService;
  38. private ISystemService _systemService;
  39. private ePerformanceType _currentePerformanceType;
  40. private MTPSystemConfig _systemConfig; ////是否需要确认货票 当前配置0时表示不启动自支确认货,1表示启动自动确认货
  41. private const int keyId = 304; //// 是否需要确认货票配置ID
  42. private Window _openWindow;
  43. #endregion "Private Data Members"
  44. #region "构造函数/Constructor/Initialization"
  45. public DeliveryHolderViewModel()
  46. {
  47. _deliveryService = SimpleIoc.Default.GetInstance<IDeliveryService>();
  48. _currentePerformanceType = ePerformanceType.PERFORMANCETYPE_DELIVERY;
  49. _systemService = SimpleIoc.Default.GetInstance<ISystemService>();
  50. }
  51. #endregion "Constructor/Initialization"
  52. #region "接口重写/Interface implementation Or override"
  53. /// <summary>
  54. /// 初始化注册消息
  55. /// </summary>
  56. public override void RegisterMessage()
  57. {
  58. EndTime = ApplicationParameter.ServerTimeNow;
  59. StartTime = ApplicationParameter.ServerTimeNow.AddDays(-30);
  60. RefreshCommand.Execute(null);
  61. //当选择时刷新
  62. MessengerHelper.DefaultUnregister<TradeAccount>(this, MessengerTokens.UpdateDeliveryHolderOrder);
  63. MessengerHelper.DefaultRegister<TradeAccount>(this, MessengerTokens.UpdateDeliveryHolderOrder, (e) =>
  64. {
  65. //接收通知时,防止时间设置错误,弹出错误提示
  66. EndTime = ApplicationParameter.ServerTimeNow;
  67. StartTime = ApplicationParameter.ServerTimeNow.AddDays(-30);
  68. RefreshCommand.Execute(null);
  69. });
  70. }
  71. public override void UnRegisterMessage()
  72. {
  73. MessengerHelper.DefaultUnregister(this);
  74. }
  75. /// <summary>
  76. /// 查询交收单
  77. /// </summary>
  78. public override void RefreshContent()
  79. {
  80. if (!Vailed())
  81. {
  82. return;
  83. }
  84. IsBusy = true;
  85. var queryList = new List<QueryCommonParam>();
  86. queryList.Add(new QueryCommonParam() { ParamKey = "userid", ParamValue = UserManager.CurrentTradeAccount.CustomerId + string.Empty });
  87. queryList.Add(new QueryCommonParam() { ParamKey = "starttime", ParamValue = StartTime.ToString() + string.Empty });
  88. queryList.Add(new QueryCommonParam() { ParamKey = "endtime", ParamValue = EndTime.ToString() + string.Empty });
  89. _deliveryService.QueryDryOrdersByCapitalAccount(QueryStatement.QueryDeliveryHolder, queryList, QuerySuccessCallBackNew, QueryErrorCallbackNew);
  90. }
  91. private void QuerySuccessCallBackNew(List<DryHoldDetail> orders)
  92. {
  93. ItemOrders = orders;
  94. IsBusy = false;
  95. }
  96. private void QueryErrorCallbackNew(ErrorEntity error)
  97. {
  98. IsBusy = false;
  99. }
  100. /// <summary>
  101. /// 是否显示确认货
  102. /// </summary>
  103. public bool IsComfrimVsb
  104. {
  105. get
  106. {
  107. if (_systemConfig == null)
  108. {
  109. return true;
  110. }
  111. return !"1".Equals(_systemConfig.systemconfigvalue);
  112. }
  113. }
  114. /// <summary>
  115. /// 成功返回
  116. /// </summary>
  117. /// <param name="orders"></param>
  118. protected void MarketOrderSuccess(List<DryHoldDetail> orders)
  119. {
  120. //UserManager.CurrentTradeAccount.AccountId
  121. if (orders != null && orders.Count > 0)
  122. {
  123. ItemOrders = orders.OrderByDescending(x => x.DeliveryTime).ToList();
  124. }
  125. IsBusy = false;
  126. }
  127. /// <summary>
  128. /// 是否确认货票参数查询
  129. /// </summary>
  130. /// <param name="configs"></param>
  131. private void QuerySystemConfigSuccess(List<MTPSystemConfig> configs)
  132. {
  133. IsBusy = false;
  134. if (configs != null && configs.Any())
  135. {
  136. _systemConfig = configs[0];
  137. RaisePropertyChanged(() => IsComfrimVsb);
  138. }
  139. }
  140. /// <summary>
  141. /// 失败返回
  142. /// </summary>
  143. /// <param name="errorEntity"></param>
  144. public override void QueryErrorCallback(ErrorEntity errorEntity)
  145. {
  146. IsBusy = false;
  147. var errorMsg = string.Format("{0}:{1}", errorEntity.RequestFunc, ErrorManager.FormatErrorMsg(errorEntity)); //错误信息显示到状态
  148. MessengerHelper.DefaultSend(errorMsg, MessengerTokens.ErrorMessage);
  149. // base.QueryErrorCallback();
  150. }
  151. #endregion "Interface implementation Or override"
  152. #region "Public Properties To Get/Set "
  153. #region 当前履约类型
  154. private ePerformanceType _currentConfirmType;
  155. public ePerformanceType CurrentConfirmType
  156. {
  157. get { return _currentConfirmType; }
  158. set { _currentConfirmType = value; }
  159. }
  160. #endregion
  161. #region 开始时间
  162. private DateTime startTime;
  163. /// <summary>
  164. /// 开始时间
  165. /// </summary>
  166. public DateTime StartTime
  167. {
  168. get { return startTime; }
  169. set { Set(() => StartTime, ref startTime, value); }
  170. }
  171. #endregion
  172. #region 结束时间
  173. private DateTime _endTime;
  174. /// <summary>
  175. /// 结束时间
  176. /// </summary>
  177. public DateTime EndTime
  178. {
  179. get { return _endTime; }
  180. set { Set(() => EndTime, ref _endTime, value); }
  181. }
  182. #endregion
  183. #region 未审核ListSource
  184. private List<DryHoldDetail> _itemOrders;
  185. /// <summary>
  186. /// 未审核ListSource
  187. /// </summary>
  188. public List<DryHoldDetail> ItemOrders
  189. {
  190. get { return _itemOrders; }
  191. set { Set(() => ItemOrders, ref _itemOrders, value); }
  192. }
  193. #endregion
  194. #region 选择当前行【实体】
  195. private DryHoldDetail _selectEntrustOrder;
  196. /// <summary>
  197. /// 选择 行
  198. /// </summary>
  199. public DryHoldDetail SelectEntrustOrder
  200. {
  201. get { return _selectEntrustOrder; }
  202. set { Set(() => SelectEntrustOrder, ref _selectEntrustOrder, value); }
  203. }
  204. #endregion
  205. #endregion "Public Properties To Get/Set "
  206. #region "Public Commands"
  207. #region 重置查询时间命令Command
  208. private RelayCommand _resetCommand;
  209. /// <summary>
  210. /// Gets the ResetCommand.
  211. /// </summary>
  212. public RelayCommand ResetCommand
  213. {
  214. get
  215. {
  216. return _resetCommand
  217. ?? (_resetCommand = new RelayCommand(
  218. () =>
  219. {
  220. EndTime = ApplicationParameter.ServerTimeNow;
  221. StartTime = ApplicationParameter.ServerTimeNow.AddDays(-30);
  222. }));
  223. }
  224. }
  225. #endregion
  226. #region 选中GoodsCommand
  227. /// <summary>
  228. /// 选中
  229. /// </summary>
  230. private RelayCommand selectGoodsCommand;
  231. public RelayCommand SelectGoodsCommand
  232. {
  233. get
  234. {
  235. return selectGoodsCommand ?? (selectGoodsCommand = new RelayCommand(
  236. () =>
  237. {
  238. //CurrentConfirmType = ePerformanceType.Confirm_Goods;
  239. //var sourceList = ItemOrders.ToList().FindAll(p => p.IsGoodsSelected == true);
  240. //for (int i = 0; i < sourceList.Count(); i++)
  241. //{
  242. // //_currentSelectedOrderMatchDetail.Add(new OrderMatchDetailModel() { WRId = (sourceList[i].WRID), DeliveryQty = (sourceList[i].Qty) });
  243. //}
  244. }));
  245. }
  246. }
  247. #endregion
  248. #region 取消选中GoodsCommand
  249. /// <summary>
  250. /// 取消选中
  251. /// </summary>
  252. private RelayCommand unSelectGoodsCommand;
  253. public RelayCommand UnSelectGoodsCommand
  254. {
  255. get
  256. {
  257. return unSelectGoodsCommand ?? (unSelectGoodsCommand = new RelayCommand(
  258. () =>
  259. {
  260. CurrentConfirmType = ePerformanceType.PERFORMANCETYPE_DELIVERY;
  261. }));
  262. }
  263. }
  264. #endregion
  265. #region 选中TicketCommand
  266. /// <summary>
  267. /// 选中
  268. /// </summary>
  269. private RelayCommand selectTicketCommand;
  270. public RelayCommand SelectTicketCommand
  271. {
  272. get
  273. {
  274. return selectTicketCommand ?? (selectTicketCommand = new RelayCommand(
  275. () =>
  276. {
  277. CurrentConfirmType = ePerformanceType.PERFORMANCETYPE_DELIVERY;
  278. }));
  279. }
  280. }
  281. #endregion
  282. #region 取消选中TicketCommand
  283. /// <summary>
  284. /// 取消选中
  285. /// </summary>
  286. private RelayCommand unSelectTicketCommand;
  287. public RelayCommand UnSelectTicketCommand
  288. {
  289. get
  290. {
  291. return unSelectTicketCommand ?? (unSelectTicketCommand = new RelayCommand(
  292. () =>
  293. {
  294. CurrentConfirmType = ePerformanceType.PERFORMANCETYPE_WRTRADE;
  295. }));
  296. }
  297. }
  298. #endregion
  299. #region 确认付款Command
  300. private RelayCommand _confirmPayCommand;
  301. /// <summary>
  302. /// Gets the ConfirmPayCommand.
  303. /// </summary>
  304. public RelayCommand ConfirmPayCommand
  305. {
  306. get
  307. {
  308. return _confirmPayCommand
  309. ?? (_confirmPayCommand = new RelayCommand(
  310. () =>
  311. {
  312. #region 待审核处理
  313. if (SelectEntrustOrder != null)
  314. {
  315. var orderBuild = BuildEntrustOrder();
  316. if (ItemOrders.ToList().Exists(p => p.DeliveryId == orderBuild.DeliveryId && p.IsGoodsSelected == false && p.IsTicketSelected == false))
  317. {
  318. MessageBoxHelper.ShowInfo(Muchinfo.MTPClient.Resources.Client_Resource.DeliveryHolderViewModel_MustCheckOneGoodsOrTicket, Muchinfo.MTPClient.Resources.Client_Resource.Models_Tips, true);
  319. return;
  320. }
  321. ////勾选货
  322. //if (ItemOrders.ToList().Exists(p =>p.DeliveryId == orderBuild.DeliveryId && p.IsGoodsSelected == true))
  323. //{
  324. // orderBuild.ConfirmType = (int)ePerformanceType.Confirm_Goods;
  325. // _currentePerformanceType = ePerformanceType.Confirm_Goods;
  326. //}
  327. ////勾选票
  328. //if (ItemOrders.ToList().Exists(p => p.DeliveryId == orderBuild.DeliveryId && p.IsTicketSelected == true))
  329. //{
  330. // orderBuild.ConfirmType = (int)ePerformanceType.Confirm_Ticket;
  331. // _currentePerformanceType = ePerformanceType.Confirm_Ticket;
  332. //}
  333. ////同时勾选
  334. //if (ItemOrders.ToList().Exists(p => p.DeliveryId == orderBuild.DeliveryId && p.IsTicketSelected == true) && ItemOrders.ToList().Exists(p => p.DeliveryId == orderBuild.DeliveryId && p.IsGoodsSelected == true))
  335. //{
  336. // _currentePerformanceType = ePerformanceType.Confirm_Other;
  337. //}
  338. long orderNumber = orderBuild.DeliveryId;
  339. //var boxResult = MessageBoxHelper.ShowQuestion(Muchinfo.MTPClient.Resources.Client_Resource.Models_MakesureCancel + orderNumber + Muchinfo.MTPClient.Resources.Client_Resource.Models_Bill,
  340. // Muchinfo.MTPClient.Resources.Client_Resource.Models_CancelBillTips);
  341. var boxResult = MessageBoxHelper.ShowQuestion(Muchinfo.MTPClient.Resources.Client_Resource.Models_MakesureToCommit,
  342. Muchinfo.MTPClient.Resources.Client_Resource.Models_Tips);
  343. if (boxResult == MessageBoxResult.Yes)
  344. {
  345. IsBusy = true;
  346. _deliveryService.SubmitReceiveConfirmReq(orderBuild, EntrurstSuccessCallBack, EntrurstErrorCallBack);
  347. }
  348. }
  349. #endregion
  350. }));
  351. }
  352. }
  353. #endregion
  354. #region 查看详情
  355. private RelayCommand<DryHoldDetail> _seeMoreDetailCommand;
  356. /// <summary>
  357. /// Gets the SeeMoreDetailCommand.
  358. /// </summary>
  359. public RelayCommand<DryHoldDetail> SeeMoreDetailCommand
  360. {
  361. get
  362. {
  363. return _seeMoreDetailCommand
  364. ?? (_seeMoreDetailCommand = new RelayCommand<DryHoldDetail>(
  365. p =>
  366. {
  367. MessengerHelper.DefaultSend(SelectEntrustOrder, MessengerTokens.DeliveryOrderDetail);
  368. }));
  369. }
  370. }
  371. #endregion
  372. #region 确认货票
  373. private RelayCommand<DryHoldDetail> _comfirmGoodsTicketsCommand;
  374. /// <summary>
  375. /// Gets the ComfirmGoodsTicketsCommand.
  376. /// </summary>
  377. public RelayCommand<DryHoldDetail> ComfirmGoodsTicketsCommand
  378. {
  379. get
  380. {
  381. return _comfirmGoodsTicketsCommand
  382. ?? (_comfirmGoodsTicketsCommand = new RelayCommand<DryHoldDetail>(
  383. p =>
  384. {
  385. if (p != null)
  386. {
  387. var orderBuild = BuildEntrustOrder();
  388. orderBuild.DeliveryId = p.DeliveryId;
  389. orderBuild.PlanDetailID = p.PlanDetailId;
  390. var boxResult = MessageBoxHelper.ShowQuestion(Muchinfo.MTPClient.Resources.Client_Resource.Models_MakesureToCommit,
  391. Muchinfo.MTPClient.Resources.Client_Resource.Models_Tips);
  392. if (boxResult == MessageBoxResult.Yes)
  393. {
  394. IsBusy = true;
  395. _deliveryService.SubmitReceiveConfirmReq(orderBuild, ComfirmSuccessCallBack, EntrurstErrorCallBack);
  396. }
  397. }
  398. //MessengerHelper.DefaultSend(SelectEntrustOrder, MessengerTokens.ComfirmGoodsTickets);
  399. }));
  400. }
  401. }
  402. #endregion
  403. #region 申诉命令
  404. private RelayCommand<DryHoldDetail> _appealCommand;
  405. /// <summary>
  406. /// 申诉命令
  407. /// </summary>
  408. public RelayCommand<DryHoldDetail> AppealCommand
  409. {
  410. get
  411. {
  412. return _appealCommand
  413. ?? (_appealCommand = new RelayCommand<DryHoldDetail>(
  414. p =>
  415. {
  416. //var orderBuild = BuildEntrustOrder();
  417. //orderBuild.ConfirmType = (int)ePerformanceType.Appeal;
  418. //var boxResult = MessageBoxHelper.ShowQuestion(Muchinfo.MTPClient.Resources.Client_Resource.Models_MakesureToAppeal,
  419. // Muchinfo.MTPClient.Resources.Client_Resource.Models_Tips);
  420. //if (boxResult == MessageBoxResult.Yes && orderBuild != null)
  421. //{
  422. // IsBusy = true;
  423. // _currentePerformanceType = ePerformanceType.Appeal;
  424. // _deliveryService.SubmitReceiveConfirmReq(orderBuild, EntrurstSuccessCallBack, EntrurstErrorCallBack);
  425. //}
  426. }));
  427. }
  428. }
  429. #endregion
  430. #endregion "Public Commands"
  431. #region "Private Methods"
  432. /// 确认收货、票成功返回
  433. /// </summary>
  434. /// <param name="order"></param>
  435. private void ComfirmSuccessCallBack(ReceiveConfirmRspModel order)
  436. {
  437. IsBusy = false;
  438. Application.Current.Dispatcher.BeginInvoke(new Action(() =>
  439. {
  440. // var orderBuild = BuildEntrustOrder();
  441. MessageBoxHelper.ShowSuccess(Muchinfo.MTPClient.Resources.Client_Resource.Order_RecConfirm_Success_Result,
  442. Client_Resource.Models_Tips);
  443. }));
  444. RefreshCommand.Execute(null);
  445. // MessengerHelper.DefaultSend(UserManager.CurrentTradeAccount, MessengerTokens.OrderNoticeToken);
  446. }
  447. /// 确认收货、票成功返回
  448. /// </summary>
  449. /// <param name="order"></param>
  450. private void EntrurstSuccessCallBack(ReceiveConfirmRspModel order)
  451. {
  452. IsBusy = false;
  453. Application.Current.Dispatcher.BeginInvoke(new Action(() =>
  454. {
  455. // var orderBuild = BuildEntrustOrder();
  456. //if (_currentePerformanceType == ePerformanceType.Confirm_Goods )
  457. //{
  458. // MessageBoxHelper.ShowSuccess(Muchinfo.MTPClient.Resources.Client_Resource.Order_ReceiveConfirmGoods_Success_Result,
  459. // Client_Resource.Models_Tips);
  460. //}
  461. //else if (_currentePerformanceType == ePerformanceType.Appeal)
  462. //{
  463. // MessageBoxHelper.ShowSuccess(Muchinfo.MTPClient.Resources.Client_Resource.Order_Appeal_Success_Result,
  464. // Client_Resource.Models_Tips);
  465. //}
  466. //else if (_currentePerformanceType == ePerformanceType.Confirm_Ticket)
  467. //{
  468. // MessageBoxHelper.ShowSuccess(Muchinfo.MTPClient.Resources.Client_Resource.Order_ReceiveConfirmTicket_Success_Result,
  469. // Client_Resource.Models_Tips);
  470. //}
  471. //else if (_currentePerformanceType == ePerformanceType.Confirm_Other)
  472. //{
  473. // MessageBoxHelper.ShowSuccess(Muchinfo.MTPClient.Resources.Client_Resource.Order_ReceiveConfirmTicketAndGoods_Success_Result1,
  474. // Client_Resource.Models_Tips);
  475. //}
  476. }));
  477. MessengerHelper.DefaultSend(UserManager.CurrentTradeAccount, MessengerTokens.OrderNoticeToken);
  478. }
  479. /// <summary>
  480. /// 撤销失败返回
  481. /// </summary>
  482. /// <param name="errorEntity"></param>
  483. private void EntrurstErrorCallBack(ErrorEntity errorEntity)
  484. {
  485. Application.Current.Dispatcher.BeginInvoke(new Action(() =>
  486. {
  487. ErrorManager.ShowReturnError(errorEntity, Client_Resource.UI2014_Tips, true);
  488. IsBusy = false;
  489. }));
  490. }
  491. #region 创建下单委托对象
  492. /// <summary>
  493. /// 创建下单委托对象
  494. /// </summary>
  495. /// <returns>下单委托对象</returns>
  496. private ReceiveConfirmReqModel BuildEntrustOrder()
  497. {
  498. var newOrder = new ReceiveConfirmReqModel()
  499. {
  500. DeliveryId = SelectEntrustOrder.DeliveryId,
  501. //ConfirmType=(int)ePerformanceType.Confirm_Goods,
  502. GoodsId = (uint)SelectEntrustOrder.DeliveryGoodsId,
  503. OperatorID = UserManager.CurrentTradeAccount.AccountId,
  504. AccountType = UserManager.CurrentTradeAccount.AccountType,
  505. //BuildType = eBuildType.BUILDTYPE_CANCEL,
  506. EntrurstTime = ApplicationParameter.ServerTimeNow,
  507. //OrderQty = SelectEntrustOrder.DeliveryQty,
  508. ValidType = ExpirationType.AlwaysValid,
  509. //RelateOrderID = SelectEntrustOrder.DeliveryOrderId,
  510. AccountId = UserManager.CurrentTradeAccount.AccountId,
  511. };
  512. //if (UserManager.CurrentTradeAccount.FundsAccounts.Any() &&
  513. // UserManager.CurrentTradeAccount.FundsAccounts[0] != null)
  514. //{
  515. // newOrder.AccountId = UserManager.CurrentTradeAccount.FundsAccounts[0].AccountId;
  516. //}
  517. //else
  518. //{
  519. // newOrder.AccountId = UserManager.CurrentTradeAccount.AccountId;
  520. //}
  521. return newOrder;
  522. }
  523. #endregion
  524. /// <summary>
  525. /// 数据验证
  526. /// </summary>
  527. /// <returns></returns>
  528. private bool Vailed()
  529. {
  530. if (StartTime > EndTime)
  531. {
  532. MessageBoxHelper.ShowInfo(Muchinfo.MTPClient.Resources.Client_Resource.DateTimeVaided_StartEnd, Muchinfo.MTPClient.Resources.Client_Resource.Models_Tips, true);
  533. return false;
  534. }
  535. else if ((EndTime - StartTime).Days > 30)
  536. {
  537. MessageBoxHelper.ShowInfo(Muchinfo.MTPClient.Resources.Client_Resource.DateTimeVaided_Over30days, Muchinfo.MTPClient.Resources.Client_Resource.Models_Tips, true);
  538. return false;
  539. }
  540. return true;
  541. }
  542. #endregion "Private Methods"
  543. }
  544. }