protected void shfInitializer()
        {
            // 初始化默认登录数据----需要初始化成为默认用户状态。
            shfUser      = shfUsers.GetUserById(1);         //设为默认用户。
            shfUserLogin = shfUserLogins.GetOneByUserID(1); //设为默认用户登录。

            //shfUserLogin.LoginProgramID = shfUser.ProgramID; // 设置程序标识
            shfUserLogin.LoginNumber++;
            shfUserLogin.LoginProgramID = this.myProgramID; //本程序标识
            shfUserLogin.LoginUnitID    = 0;                //主界面
            shfUserLogin.LastDateTime   = shfUserLogin.ThisDateTime;
            shfUserLogin.ThisDateTime   = DateTime.Now;

            shfUserLogins.UpdateOne(shfUserLogin);
        }
 /// <summary>登录返回
 /// 显示登录用户信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void uiSHF_Main_Activated(object sender, EventArgs e)
 {
     //
     try
     {
         shfUserLogin = new btSHFUserLogin();
         btSHFUserLogins shfUserLogins = new btSHFUserLogins();
         shfUserLogin = shfUserLogins.GetOneByUserID(shfUser.UserID);
         pictureBoxHead.ImageLocation = Application.StartupPath + shfUser.UserHeadPath;
         label学号.Text = "学号: " + shfUser.UserCode + " ";
         label姓名.Text = "姓名: " + shfUser.UserName + " ";
     }
     catch
     { }
 }
 /// <summary>登录返回
 /// 显示登录用户信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void uiSHF_Main_Activated(object sender, EventArgs e)
 {
     //
     try
     {
         shfUserLogin = new btSHFUserLogin();
         btSHFUserLogins shfUserLogins = new btSHFUserLogins();
         shfUserLogin = shfUserLogins.GetOneByUserID(shfUser.UserID);
         pictureBoxHead.ImageLocation = Application.StartupPath + shfUser.UserHeadPath;
         label学号.Text = "学号: " + shfUser.UserCode + " ";
         label姓名.Text = "姓名: " + shfUser.UserName + " ";
     }
     catch
     { }
 }