Пример #1
0
 protected void btnAdd_Click(Object Sender, EventArgs e)
 {
     if (intID == 0)
     {
         oForecast.AddStreetValue(intModel, Int32.Parse(ddlLineItem.SelectedItem.Value), double.Parse(txtCost.Text), (chkProduction.Checked ? 1 : 0), (chkEnabled.Checked ? 1 : 0));
     }
     else
     {
         oForecast.UpdateStreetValue(intID, Int32.Parse(ddlLineItem.SelectedItem.Value), double.Parse(txtCost.Text), (chkProduction.Checked ? 1 : 0), (chkEnabled.Checked ? 1 : 0));
     }
     Response.Redirect(Request.Path + "?mid=" + intModel.ToString());
 }