private void cmbRawSecond_SelectedIndexChanged(object sender, EventArgs e) { //初始化,全部处于未激活 this.SetComponentDisabled(); if (this.cmbRawSecond.SelectedValue.ToString().Length > 5) { return; //处理冲突,启动时会激活该事件报错 } if (this.cmbRawSecond.SelectedValue.ToString() == "2" && this.cmbRawFirst.SelectedValue.ToString() == "1") { //非金属,材料牌号,厚度和长宽激活输入 this.SetTxtRawEnabled(); this.SetTxtThickAndTxtSizeEnabled(); } //级联变化 LevelSearchor.searchAndSetLevel3(this.cmbRawThird, "1", this.cmbRawFirst.SelectedValue.ToString(), this.cmbRawSecond.SelectedValue.ToString()); //SetTxtCodeNull(); GenerateLevelCode(); }
private void cmbElecSecond_SelectedIndexChanged(object sender, EventArgs e) { this.setElecComponentDisalbe(); if (this.cmbElecSecond.SelectedValue.ToString().Length > 5) { return; //处理冲突,启动时会激活该事件报错 } //级联变化 LevelSearchor.searchAndSetLevel3(this.cmbElecThird, "3", this.cmbElecFirst.SelectedValue.ToString(), this.cmbElecSecond.SelectedValue.ToString()); //根据选择,决定激活哪些控件 SetEnableAdjustToInput(); //实时生成编码 GenerateAllCode(); }
private void cmbMlineSecond_SelectedIndexChanged(object sender, EventArgs e) { //全部锁定后,按选择激活 this.SetMlineComponetDisable(); if (this.cmbMlineSecond.SelectedValue.ToString().Length > 5) { return; //处理冲突,启动时会激活该事件报错 } //级联变化 LevelSearchor.searchAndSetLevel3(this.cmbMlineThird, "8", this.cmbMlineFirst.SelectedValue.ToString(), this.cmbMlineSecond.SelectedValue.ToString()); //根据选择,决定激活哪些控件 this.SetMlineEnableComponent(); //实时生成编码 this.GenerateMlineCode(); }