Exemplo n.º 1
0
 /// <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();
 }
Exemplo n.º 2
0
 /// <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;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Сбросить панель Step
 /// </summary>
 protected void ClearStep()
 {
     this.IDStep          = null;
     this.SelectIndexStep = -1;
     this.IDlvStep        = null;
     StepProject.IDStep   = null;
     StepProject.DataBind();
 }
Exemplo n.º 4
0
 /// <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();
 }