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.

71 lines
2.1 KiB

  1. ///-----------------------------------------------------------------------
  2. /// <copyright file="SystemSettingHelper.cs" company="Origtek">
  3. /// 程式代號: SystemSettingHelper
  4. /// 程式名稱: SystemSettingHelper
  5. /// 程式說明:
  6. /// 起始作者: Hercules
  7. /// 起始日期: 2017/05/11 17:15:06
  8. /// 最新修改人: Hercules
  9. /// 最新修日期: 2017/05/18 17:45:54
  10. /// </copyright>
  11. ///-----------------------------------------------------------------------
  12. #region 程式異動記錄
  13. /// xx.YYYY/MM/DD VER AUTHOR COMMENTS(說明修改的內容)
  14. /// 01.2017/05/11 1.000 Hercules 加入Folder使用(RV.4250)
  15. /// 02.2017/05/16 1.001 Hercules 更新Log4net(RV.4317)
  16. /// 03.2017/05/18 1.002 Hercules 補程式Header註解(RV.4375)
  17. #endregion
  18. namespace CounsellorBL.Helper
  19. {
  20. using MonumentDefine;
  21. using OT.COM.ArsenalDB;
  22. using SoldierData.EnterprizeV4;
  23. using System.Collections.Generic;
  24. using System.Linq;
  25. using static CounsellorBL.Common.EntityBaseExtension;
  26. /// <summary>
  27. /// 類別名稱:SystemSettingHelper
  28. /// 類別說明:
  29. /// 起始作者:
  30. /// 起始日期:
  31. /// 最新修改人:
  32. /// 最新修改日:
  33. /// </summary>
  34. public static class TranslationHelper
  35. {
  36. public static string GetTranslations(out List<tb_sys_translation> i_sResult)
  37. {
  38. string sMsg = null;
  39. List<tb_sys_translation> oRes = null;
  40. do
  41. {
  42. tb_sys_translation oDisplay = new tb_sys_translation();
  43. oDisplay.SetFullDirtyEx(EColumnFilter.ES_NO_SYSTEMCOLUMN);
  44. Command c = Command.SetupSelectCmd(oDisplay);
  45. ArsenalInterface ai = ArsenalDBMgr.GetInst(c, null);
  46. List<tb_sys_translation> lo = ai.RunQueryList<tb_sys_translation>(c);
  47. if (lo != null && lo.Any())
  48. {
  49. oRes = lo;
  50. }
  51. sMsg = c.LastErrorMsg;
  52. }
  53. while (false);
  54. i_sResult = oRes;
  55. return sMsg;
  56. }
  57. }
  58. }