protected void shfInitializer() { // 初始化默认登录数据----需要初始化成为默认用户状态。 shfUser = shfUsers.GetUserById(1); //设为默认用户。 shfUserLogin = shfUserLogins.GetOneByUserID(1); //设为默认用户登录。 shfUserLogin.LoginNumber++; shfUserLogin.LoginProgramID = this.myProgramID; //本程序标识 shfUserLogin.LoginUnitID = 0; //主界面 shfUserLogin.LastDateTime = shfUserLogin.ThisDateTime; shfUserLogin.ThisDateTime = DateTime.Now; shfUserLogins.UpdateOne(shfUserLogin); }