-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPayment.ascx.cs
60 lines (48 loc) · 1.62 KB
/
Payment.ascx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.UI.WebControls;
using DotNetNuke.Common;
using DotNetNuke.Entities.Portals;
using NBrightCore.common;
using NBrightCore.render;
using NBrightDNN;
using Nevoweb.DNN.NBrightBuy.Base;
using Nevoweb.DNN.NBrightBuy.Components;
using DataProvider = DotNetNuke.Data.DataProvider;
namespace OS_sogecommerce
{
/// -----------------------------------------------------------------------------
/// <summary>
/// The ViewNBrightGen class displays the content
/// </summary>
/// -----------------------------------------------------------------------------
public partial class OS_sogecommercePayment : NBrightBuyAdminBase
{
#region Event Handlers
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
if (Page.IsPostBack == false)
{
PageLoad();
}
}
private void PageLoad()
{
if (NBrightBuyUtils.CheckRights())
{
var objCtrl = new NBrightBuyController();
var info = objCtrl.GetPluginSinglePageData("OS_sogecommercepayment", "OS_sogecommercePAYMENT", Utils.GetCurrentCulture());
var strOut = NBrightBuyUtils.RazorTemplRender("settings.cshtml", 0, "", info, ControlPath, "config", Utils.GetCurrentCulture(), StoreSettings.Current.Settings());
var l = new Literal();
l.Text = strOut;
Controls.Add(l);
}
}
#endregion
}
}