/// <summary> /// 取的分類中的代碼 /// </summary> /// <param name="classify">分類名稱</param> /// <param name="isDefalut">是否要預設加入一筆未選</param> /// <returns></returns> public static IList <ListItem> GetSystemItemList(string classify, bool isDefalut) { SystemFactory systemFactory = new SystemFactory(); ISystemService sysemSerivce = systemFactory.GetSystemService(); IList <ListItem> result = SystemItemToListItem(sysemSerivce.GetAllItemParamByNoDel(classify)); if (isDefalut) { result.Insert(0, new ListItem("未選", "")); } return(result); }
public void TestCaseInit() { m_AuthFactory = new AuthFactory(); m_PostFactory = new PostFactory(); m_SystemFactory = new SystemFactory(); m_StorageFactory = new StorageFactory(); m_MemberFactory = new MemberFactory(); m_AccountingFactory = new AccountingFactory(); m_AuthService = m_AuthFactory.GetAuthService(); m_PostService = m_PostFactory.GetPostService(); m_TemplateService = m_SystemFactory.GetTemplateService(); m_SystemService = m_SystemFactory.GetSystemService(); m_MessageService = m_PostFactory.GetMessageService(); m_StorageFileService = m_StorageFactory.GetStorageFileService(); m_MemberService = m_MemberFactory.GetMemberService(); m_AccountingService = m_AccountingFactory.GetAccountingService(); }
public WebMailService() { m_ConfigHelper = new ConfigHelper(); m_SystemFactory = new SystemFactory(); m_SystemService = m_SystemFactory.GetSystemService(); m_MailVO = m_SystemService.GetSystemParamByRoot(); bool enableSSL = m_MailVO.EnableSSL; int port = 25; if (m_MailVO.MailSmtp.IndexOf("gmail") != -1) { enableSSL = true; port = 587; } else if (!string.IsNullOrEmpty(m_MailVO.MailPort)) { port = int.Parse(m_MailVO.MailPort); } m_MailService = new MailService(m_MailVO.MailSmtp, port, enableSSL, m_MailVO.Account, m_MailVO.Password); }
public void TestCaseInit() { m_SystemFactory = new SystemFactory(); m_SystemService = m_SystemFactory.GetSystemService(); }
public void TestCaseInit() { m_SystemFactory = new SystemFactory(); m_SystemService = m_SystemFactory.GetSystemService(); }