예제 #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!(ExportFeedStatistic.IsRun))
        {
            ExportFeedStatistic.Init();
        }
        if (!ExportFeedStatistic.IsRun && string.IsNullOrEmpty(ModuleName))
        {
            Response.Redirect("ExportFeed.aspx?ModuleId=YandexMarket");
            return;
        }

        PageSubheader.Visible  = true;
        ModuleNameLiteral.Text = ModuleName;

        OutDiv.Visible  = Start;
        PhysicalAppPath = Request.PhysicalApplicationPath;

        if ((SaasDataService.IsSaasEnabled) && (!SaasDataService.CurrentSaasData.HaveExportFeeds))
        {
            mainDiv.Visible     = false;
            notInTariff.Visible = true;
        }

        Page.Title = string.Format("{0} - {1}", SettingsMain.ShopName, Resource.Admin_ExportFeed_Yandex_aspx);
    }
예제 #2
0
 public static void ExportSelection(string moduleName)
 {
     if (!(ExportFeedStatistic.IsRun))
     {
         ExportFeedStatistic.Init();
         ExportFeedStatistic.IsRun = true;
         var thread = new Thread(MakeExportFile);
         ExportFeedStatistic.ThreadImport = thread;
         thread.Start(new[] { moduleName, PhysicalAppPath });
     }
 }
예제 #3
0
    protected override void OnLoad(EventArgs e)
    {
        Page.Title = string.Format("{0} - {1}", SettingsMain.ShopName, Resource.Admin_ExportFeed_Yandex_aspx);
        if ((SaasDataService.IsSaasEnabled) && (!SaasDataService.CurrentSaasData.HaveExportFeeds))
        {
            mainDiv.Visible     = false;
            notInTariff.Visible = true;
        }

        if (!(ExportFeedStatistic.IsRun))
        {
            ExportFeedStatistic.Init();
        }

        if (string.IsNullOrEmpty(ModuleName))
        {
            Response.Redirect("ExportFeedDet.aspx?ModuleId=YandexMarket");
            return;
        }

        LoadSettings();

        PhysicalAppPath = Request.PhysicalApplicationPath;
    }