예제 #1
0
        private void InitComBox()
        {
            if (!this.DesignMode)
            {
                FT.Windows.CommonsPlugin.BindingHelper.BindProvince(this.cbRegProvince);
                DictManager.BindComeFrom(this.cbComeFrom);
                DictManager.BindBelongArea(this.cbBelongArea);

                this.cbRegProvince.Text = FT.Windows.CommonsPlugin.BindingHelper.GetDefaultProvince();
                this.cbRegCity.Text     = FT.Windows.CommonsPlugin.BindingHelper.GetDefaultCity();
                // this.SetAddress();

                this.txtDescription.KeyDown += new KeyEventHandler(txtDescription_KeyDown);
                this.cbSex.SelectedIndex     = 0;

                this.cbListen.SelectedIndex        = 1;
                this.cbMainBody.SelectedIndex      = 1;
                this.cbTopBody.SelectedIndex       = 1;
                this.cbLeftDownBody.SelectedIndex  = 1;
                this.cbRightDownBody.SelectedIndex = 1;
                this.cbColor.SelectedIndex         = 1;
                this.cbLearnType.SelectedIndex     = 0;

                DictManager.BindIdCardType(this.cbIdCardType);
                DictManager.BindNation(this.cbNation);
                DictManager.BindCarTypeDynamic(this.cbNewCarType);

                DictManager.BindCarStyle(this.cbNewCarStyle);
                DictManager.BindFromRoute(this.cbFromRoute);
                DictManager.BindHospital(this.cbHospital);
                DS.Plugins.Car.BindingHelper.BindCoach(this.cbCoachName);
                DictManager.BindRecommend(this.cbRecommend);


                this.cbNewCarType.SelectedValue = "C1";
                //ArrayList lists = FT.DAL.Orm.SimpleOrmOperator.QueryListAll(typeof(CarInfo));
                //if (lists.Count > 0)
                //{
                //    //this.cbGroup
                //    this.cbHmhp.DataSource = lists;
                //    this.cbHmhp.DisplayMember = "号码号牌";
                //    this.cbHmhp.ValueMember = "号码号牌";
                //    this.cbHmhp.SelectedIndex = 0;
                //}
                //FT.Windows.CommonsPlugin.Entity.DictManager.BindToCombox(this.cbCarType, "准驾车型");
            }
            //this.cbSex.SelectedIndex = 0;
        }