protected void Page_Load(object sender, EventArgs e) { m_ConfigHelper = new ConfigHelper(); m_WebLogService = new WebLogService(); m_PostFactory = new PostFactory(); m_MemberFactory = new MemberFactory(); m_AuthFactory = new AuthFactory(); m_HttpHelper = new HttpHelper(); m_SessionHelper = new SessionHelper(); m_AccountingFactory = new AccountingFactory(); m_AuthService = m_AuthFactory.GetAuthService(); m_MemberService = m_MemberFactory.GetMemberService(); m_PostService = m_PostFactory.GetPostService(); m_AccountingService = m_AccountingFactory.GetAccountingService(); if (!IsPostBack) { InitDDL(); ShowMode(); fillGridView(); new Thread(new ThreadStart(ApiUtil.UpdateMemberToServer)).Start(); new Thread(new ThreadStart(() => ApiUtil.UpdateFileToServer(Server.MapPath("../../App_Data/upload/")))).Start(); new Thread(new ThreadStart(() => ApiUtil.UpdatePostToServer(2))).Start(); //LoadTotalCommission(); } }
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(); }
protected void Page_Load(object sender, EventArgs e) { m_WebLogService = new WebLogService(); m_PostFactory = new PostFactory(); m_MemberFactory = new MemberFactory(); m_AuthFactory = new AuthFactory(); m_HttpHelper = new HttpHelper(); m_SessionHelper = new SessionHelper(); m_AccountingFactory = new AccountingFactory(); m_AuthService = m_AuthFactory.GetAuthService(); m_MemberService = m_MemberFactory.GetMemberService(); m_PostService = m_PostFactory.GetPostService(); m_AccountingService = m_AccountingFactory.GetAccountingService(); if (!IsPostBack) { ////先更新到今天之前的結帳 m_AccountingService.UpdateCash(); txtDate.Text = ConvertUtil.UtcDateTimeToTaiwanDateTime(DateTime.UtcNow).ToString("yyyy/MM/dd"); ShowMode(); LoadDataToUI(); } }