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
|
protected void Next(object sender, EventArgs e)
{
if (this.weeks.Enabled)
{
this.week = Int32.Parse(this.weeks.SelectedItem.Value);
this.weeks.Items.FindByValue(""+this.week).Selected = true;
this.weeks.Enabled = false;
string key = this.weeks.SelectedItem.Text;
if (this.projects.Items.Count == 0)
{
int i = 0;
foreach (string project in this.planning[key])
{
this.projects.Items.Add(new ListItem(project, ""+i));
i++;
}
}
this.projects.Enabled = true;
this.exports.Enabled = true;
this.next.Text = "Generate";
}
else
{
this.week = Int32.Parse(this.weeks.SelectedItem.Value);
this.project = Int32.Parse(this.projects.SelectedItem.Value);
this.export = Int32.Parse(exports.SelectedItem.Value);
this.status = "Generation on-going";
this.weeks.Enabled = false;
this.projects.Enabled = false;
this.exports.Enabled = false;
this.back.Enabled = false;
this.next.Enabled = false;
this.mustGenerate = true;
}
} |
Partager