/// <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> /// Загрузка /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { // Первый запуск if (!IsPostBack) { ((WebSite_Setup_Setup)Master).SetHeader(base.GetStringBaseResource("titleMenuProject"), base.GetStringBaseResource("menuTemplateStepsProject")); } pnSelectBigStep.Change = this.Change; //Если есть выбранный сайт привязать к компоненту if (lvBigStep.SelectedDataKey != null) { BigStepProject.IDBigStep = (int)lvBigStep.SelectedDataKey.Value; BigStepProject.Change = this.Change; StepProject.Insert_IDBigStep = (int)lvBigStep.SelectedDataKey.Value; } StepProject.IDStep = this.IDStep; if (ddlTemplate.SelectedIndex != -1) { StepProject.Insert_IDTemplateStepProject = int.Parse(ddlTemplate.SelectedValue); } StepProject.Change = this.Change; // Требуется обновить компоненты if (base.bReloading) { StepProject.ReloadingControl(); ddlTemplate.DataBind(); lvBigStep.DataBind(); base.bReloading = false; } }
/// <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(); }