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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
|
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Net;
using System.Net.Mail;
using System.Text;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using MonoTests.SystemWeb.Framework;
public partial class Sections_ECCN_test : System.Web.UI.Page
{
//protected override void OnPreInit (EventArgs e)
public Sections_ECCN_test ()
{
WebTest t = WebTest.CurrentTest;
if (t != null)
t.Invoke (this);
}
public override void VerifyRenderingInServerForm (Control c)
{
}
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnSearch_Click(object sender, System.EventArgs e)
{
gvECCN.Visible = true;
}
}
namespace App.Test
{
public class ECCNYearList
{
private Int32 _year = 0;
public Int32 year
{
get { return _year; }
set { _year = value; }
}
private String _yearText = "";
public String yearText
{
get { return _yearText; }
set { _yearText = value; }
}
public ECCNYearList() { }
public ECCNYearList(Int32 p_year) { year = p_year; yearText = p_year.ToString(); }
}
/// <summary>
/// Class to get a list of US States
/// </summary>
[Serializable]
public class ECCN
{
#region Public/Private properties
private Int32 _year = 0;
public Int32 year
{
get { return _year; }
set { _year = value; }
}
private String _eccn = "";
public String eccn
{
get { return _eccn; }
set { _eccn = value; }
}
private String _sched_b = "";
public String sched_b
{
get { return _sched_b; }
set { _sched_b = value; }
}
private Int32 _count = 0;
public Int32 count
{
get { return _count; }
set { _count = value; }
}
private Double _percent = 0.0;
public Double percent
{
get { return _percent; }
set { _percent = value; }
}
private Int32 _rownum = 0;
public Int32 rownum
{
get { return _rownum; }
set { _rownum = value; }
}
private Int32 _total = 0;
public Int32 total
{
get { return _total; }
set { _total = value; }
}
#endregion
#region Constructors
public ECCN() { }
public ECCN(Int32 p_year, String p_eccn, String p_sched_b, Int32 p_count, Double p_percent, Int32 p_rownum, Int32 p_total)
{
year = p_year;
eccn = p_eccn.Trim().ToUpper();
sched_b = p_sched_b.Trim();
count = p_count;
percent = p_percent;
rownum = p_rownum;
total = p_total;
}
#endregion
public static List<ECCN> GetECCNSummaryWithFilter(Int32 startRowIndex, Int32 maximumRows, Int32 year, String eccn)
{
List<ECCN> summary = new List<ECCN>();
summary.Add(new ECCN(2009, "test", "test", 1, 2.5, 1, 100));
return summary;
}
public static Int32 GetECCNSummaryCountWithFilter(Int32 year, String eccn)
{
return 1;
}
public static List<ECCNYearList> GetECCNYearList()
{
List<ECCNYearList> result = new List<ECCNYearList>();
result.Add(new ECCNYearList(2009));
result.Add(new ECCNYearList(2008));
return result;
}
}
}
|