private void cmbContractFirst_SelectedIndexChanged(object sender, EventArgs e) { if (this.cmbContractFirst.SelectedValue.ToString().Length > 5) { return; //处理冲突,启动时会激活该事件报错 } //设置下级下拉框的级联变化 LevelSearchor.searchAndSetLevel2(this.cmbContractSecond, "2", this.cmbContractFirst.SelectedValue.ToString()); GenerateContractCode(); }
private void cmbStdFirst_SelectedIndexChanged(object sender, EventArgs e) { setStdComponentDisable(); if (this.cmbStdFirst.SelectedValue.ToString().Length > 5) { return; //处理冲突,启动时会激活该事件报错 } //设置下级下拉框的级联变化 LevelSearchor.searchAndSetLevel2(this.cmbStdSecond, "2", this.cmbStdFirst.SelectedValue.ToString()); GenerateStdLevelCode(); }
private void cmbRawFirst_SelectedIndexChanged(object sender, EventArgs e) { //初始化,全部处于未激活 this.SetComponentDisabled(); if (this.cmbRawFirst.SelectedValue.ToString().Length > 5) { return; //处理冲突,启动时会激活该事件报错 } //设置下级下拉框的级联变化 LevelSearchor.searchAndSetLevel2(this.cmbRawSecond, "1", this.cmbRawFirst.SelectedValue.ToString()); //SetTxtCodeNull(); GenerateLevelCode(); }
private void cmbElecFirst_SelectedIndexChanged(object sender, EventArgs e) { this.setElecComponentDisalbe(); if (this.cmbElecFirst.SelectedValue.ToString().Length > 5) { return; //处理冲突,启动时会激活该事件报错 } //设置下级下拉框的级联变化 LevelSearchor.searchAndSetLevel2(this.cmbElecSecond, "3", this.cmbElecFirst.SelectedValue.ToString()); //根据选择,决定激活哪些控件 SetEnableAdjustToInput(); //实时生成编码 GenerateAllCode(); }
private void cmbMlineFirst_SelectedIndexChanged(object sender, EventArgs e) { //全部锁定后,按选择激活 this.SetMlineComponetDisable(); if (this.cmbMlineFirst.SelectedValue.ToString().Length > 5) { return; //处理冲突,启动时会激活该事件报错 } //设置下级下拉框的级联变化 LevelSearchor.searchAndSetLevel2(this.cmbMlineSecond, "8", this.cmbMlineFirst.SelectedValue.ToString()); //根据选择,决定激活哪些控件 this.SetMlineEnableComponent(); //实时生成编码 this.GenerateMlineCode(); }