示例#1
0
        void ddl_SelectedIndexChanged(object sender, EventArgs e)
        {
            var openway = (SpecOperWay)Pub1.GetDDLByID("DDL_" + CondAttr.SpecOperWay).SelectedItemIntVal;
            var lbl     = Pub1.GetLabelByID("LBL1");
            var tb      = Pub1.GetTBByID("TB_" + CondAttr.SpecOperPara);

            switch (openway)
            {
            case SpecOperWay.SpecNodeOper:
                lbl.Text = "节点编号:";
                break;

            case SpecOperWay.SpecSheetField:
                lbl.Text = "表单字段:";
                break;

            case SpecOperWay.SpenEmpNo:
                lbl.Text = "操作员编号:";
                break;

            case SpecOperWay.CurrOper:
                lbl.Text = "参数:";
                break;
            }

            tb.Text    = string.Empty;
            tb.Enabled = openway != SpecOperWay.CurrOper;
        }