Example #1
0
 public AddStuInfoForm(Leader leader)
 {
     this.leader    = leader;
     stuBaseInfoBLL = new StuBaseInfoBLL(leader);
     InitializeComponent();
     SchoolTypecomboBox.SelectedIndex = 0;
 }
 public AlterStuInfoForm(Leader leader, StuInfo stuInfo, int select)
 {
     this.leader    = leader;
     this.stuInfo   = stuInfo;
     this.select    = select;
     stuBaseInfoBLL = new StuBaseInfoBLL(leader);
     InitializeComponent();
 }
        /// <summary>
        /// 创建
        /// </summary>
        /// <param name="leader">领导用户信息</param>
        /// <param name="selectTab">选择的Tab</param>
        public QueryStuInfoForm(Leader leader, int selectTab)
        {
            this.leader    = leader;
            stuBaseInfoBLL = new StuBaseInfoBLL(leader);
            startselect    = selectTab;
            InitializeComponent();
            switch (selectTab) // 设置默认Tab
            {
            case 1:
                tabControl1.SelectedTab = StuPertabPage; break;

            case 2:
                tabControl1.SelectedTab = StuFamtabPage; break;

            case 3:
                tabControl1.SelectedTab = StuSchtabPage; break;
            }
        }