//添加类型
        private void tsmiTypeAdd_Click(object sender, EventArgs e)
        {
            typefrm type = new typefrm();

            type.Text = "添加类型";
            type.ShowDialog();
            RefreshTree("exceptionstype", "distinct category", "类型列表", "typename,typeid", "where category='", "typeid");
        }
Example #2
0
        //类型添加按钮
        private void btnTypeadd_Click(object sender, EventArgs e)
        {
            typefrm type = new typefrm();

            type.Text     = "添加类型";
            type.TypeName = cmbExType.Text.Trim();
            type.ShowDialog();

            if (type.State)
            {
                cmbExType.AutoCompleteCustomSource = getSuggestSource("exceptionstype", "typeName", cmbExType);
                cmbExType.Text = type.TypeName;
                txtExID.Text   = "TLW-" + type.ID + "-1";
            }
        }
Example #3
0
        private void tsmiTypeAdd_Click(object sender, EventArgs e)
        {
            typefrm type = new typefrm();

            type.ShowDialog();
        }
 private void tsmiTypeAdd_Click(object sender, EventArgs e)
 {
     typefrm type = new typefrm();
     type.ShowDialog();
 }
 //修改类型
 private void tsmiTypeChange_Click(object sender, EventArgs e)
 {
     typefrm type = new typefrm();
     type.Text = "修改类型";
     type.ID = ID_m;
     type.ShowDialog();
     RefreshTree("exceptionstype", "distinct category", "类型列表", "typename,typeid", "where category='", "typeid");
 }
 //类型添加按钮
 private void btnTypeadd_Click(object sender, EventArgs e)
 {
     typefrm type = new typefrm();
     type.Text = "添加类型";
     type.TypeName = cmbExType.Text.Trim();
     type.ShowDialog();
     
     if (type.State)
     {
         cmbExType.AutoCompleteCustomSource = getSuggestSource("exceptionstype", "typeName", cmbExType);
         cmbExType.Text = type.TypeName;
         txtExID.Text= "TLW-"+type.ID+"-1";
     }
 }