예제 #1
0
 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();
 }
예제 #2
0
 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();
 }
예제 #3
0
        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();
        }
예제 #4
0
        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();
        }
예제 #5
0
        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();
        }