/// <summary> /// Выбран детальный шаг /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void lvStep_SelectedIndexChanged(object sender, EventArgs e) { this.IDStep = (int)((ListView)sender).SelectedDataKey.Value; StepProject.IDStep = this.IDStep; StepProject.Change = this.Change; StepProject.DataBind(); }
/// <summary> /// Сбросить панель Step /// </summary> protected void ClearStep() { this.IDStep = null; this.SelectIndexStep = -1; this.IDlvStep = null; StepProject.IDStep = null; StepProject.DataBind(); }
/// <summary> /// Добавить детальный шаг /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void pnSelectStep_InsertClick(object sender, EventArgs e) { StepProject.ModeTable = FormViewMode.Insert; if (ddlTemplate.SelectedIndex != -1) { StepProject.Insert_IDTemplateStepProject = int.Parse(ddlTemplate.SelectedValue); } if (lvBigStep.SelectedDataKey != null) { StepProject.Insert_IDBigStep = (int)lvBigStep.SelectedDataKey.Value; } StepProject.Change = this.Change; StepProject.DataBind(); }