Ejemplo n.º 1
0
 public uiCHSTRAS_091_Foreword(Form form, btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice)
     : base(form, shfUserLogin, shfUnitPratice)
 {
     InitializeComponent();
     pratice = shfUnitPratice;
     this.label.Text = disForeword();
 }
Ejemplo n.º 2
0
 public EGLPABC_SendEmail(Form callForm, btSHFUserLogin callLog, string ss, string na, string pass)
     : base(callForm, callLog)
 {
     //将smtpserver,name,password信息传入SMail类的构造函数中
     mySendEmail = new SMail(ss, na, pass);
     InitializeComponent();
 }
Ejemplo n.º 3
0
 public EGLPABC_SendEmail(Form callForm, btSHFUserLogin callLog, string ss, string na, string pass)
     : base(callForm, callLog)
 {
     //将smtpserver,name,password信息传入SMail类的构造函数中
     mySendEmail = new SMail(ss, na, pass);
     InitializeComponent();
 }
Ejemplo n.º 4
0
 public btCHSTRAS_091_Item(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice)
 {
     database = new btCHSTRAS_091_Database();
     bt = new btCHSTRAS_091_Base();
     userUnitIDs = bt.getUserUnitIDs(shfUserLogin, shfUnitPratice);
     startTime = DateTime.Now;
 }
Ejemplo n.º 5
0
 public EGLPABC_SendEmail(Form callForm, btSHFUserLogin callLog, btSHFUnitPractice callUnit, btSHFStructure callItem, string ss, string na, string pass)
     : base(callForm, callLog, callUnit, callItem)
 {
     //将smtpserver,name,password信息传入SMail类的构造函数中
     mySendEmail = new SMail(ss, na, pass);
     InitializeComponent();
 }
Ejemplo n.º 6
0
 public EGLPABC_SendEmail(Form callForm, btSHFUserLogin callLog, btSHFUnitPractice callUnit, btSHFStructure callItem, string ss, string na, string pass)
     : base(callForm, callLog, callUnit, callItem)
 {
     //将smtpserver,name,password信息传入SMail类的构造函数中
     mySendEmail = new SMail(ss, na, pass);
     InitializeComponent();
 }
Ejemplo n.º 7
0
 public btCHSTRAS_091_Fault(btSHFUserLogin shfUserLogin,
     btSHFUnitPractice shfUnitPratice, int courseType, int itemNumber)
     : base(shfUnitPratice, courseType)
 {
     item = new Common.btCHSTRAS_091_Item(shfUserLogin, shfUnitPratice);
     unit = new Common.btCHSTRAS_091_Unit(getSize(), shfUserLogin, shfUnitPratice);
     file = new btCHSTRAS_091_File();
 }
Ejemplo n.º 8
0
 public btCHSTRAS_091_Puzzle(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice, int courseType, int itemNumber)
     : base(shfUnitPratice, courseType)
 {
     this.itemNumber = itemNumber;
     file = new btCHSTRAS_091_File();
     item = new Common.btCHSTRAS_091_Item(shfUserLogin, shfUnitPratice);
     unit = new Common.btCHSTRAS_091_Unit(getSize(), shfUserLogin, shfUnitPratice);
     finger = file.getImage("finger.png");
 }
Ejemplo n.º 9
0
 public btCHSTRAS_091_Unit(DateTime startTime, int totalNum, btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice)
 {
     bt = new btCHSTRAS_091_Base();
     time = new btCHSTRAS_091_Time();
     userUnitIDs = bt.getUserUnitIDs(shfUserLogin, shfUnitPratice);
     answerTime = time.getAnswerTime(startTime);
     this.startTime = startTime;
     this.totalNum = totalNum;
 }
Ejemplo n.º 10
0
 public btCHSTRAS_091_Memory(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice, int courseType, int itemNumber)
     : base(shfUnitPratice, courseType)
 {
     item = new Common.btCHSTRAS_091_Item(shfUserLogin, shfUnitPratice);
     unit = new Common.btCHSTRAS_091_Unit(getSize(), shfUserLogin, shfUnitPratice);
     file = new btCHSTRAS_091_File();
     open = file.getImage("open.png");
     close = file.getImage("close.png");
 }
Ejemplo n.º 11
0
 public btCHSTRAS_091_Unit(int totalNum, btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice)
 {
     this.shfUnitPratice = shfUnitPratice;
     this.shfUserLogin = shfUserLogin;
     bt = new btCHSTRAS_091_Base();
     time = new btCHSTRAS_091_Time();
     userUnitIDs = bt.getUserUnitIDs(shfUserLogin, shfUnitPratice);
     startTime = DateTime.Now;
     this.totalNum = totalNum;
     keyValues = new Hashtable();
 }
Ejemplo n.º 12
0
 public btCHSTRAS_091_Link(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice, int courseType, int arrayLength)
 {
     this.arrayLength = arrayLength;
     this.shfUserLogin = shfUserLogin;
     this.shfUnitPratice = shfUnitPratice;
     file = new btCHSTRAS_091_File();
     question = new btCHSTRAS_091_Question(shfUnitPratice, courseType);
     totalNumber = question.getSize();
     unit = new btCHSTRAS_091_Unit(totalNumber, shfUserLogin, shfUnitPratice);
     item = new btCHSTRAS_091_Item(shfUserLogin, shfUnitPratice);
     textNames = new String[arrayLength];
     imageNames = new String[arrayLength];
 }
Ejemplo n.º 13
0
        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);
        }
Ejemplo n.º 14
0
 public btCHSTRAS_091_Link(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice)
 {
     this.shfUserLogin = shfUserLogin;
     this.shfUnitPratice = shfUnitPratice;
     btCHSTRAS_091_Base bt = new btCHSTRAS_091_Base();
     int programID = bt.getPagesID(shfUnitPratice);
     btCHSTRAS_091_Database database = new btCHSTRAS_091_Database();
     String where = "ProgramID=" + programID;
     String[] selection = new String[] { "TextInfo", "ImageInfo" };
     reader = database.query("E_SHFPages", selection, where, null);
     unit = new btCHSTRAS_091_Unit(DateTime.Now, database.getSize(), shfUserLogin, shfUnitPratice);
     item = new btCHSTRAS_091_Item(shfUserLogin, shfUnitPratice);
     texts = new String[4];
     images = new String[4];
 }
Ejemplo n.º 15
0
 /// <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
     { }
 }
Ejemplo n.º 16
0
 public btCHSTRAS_091_Teach(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice)
 {
     this.shfUserLogin = shfUserLogin;
     file = new btCHSTRAS_091_File();
     database = new btCHSTRAS_091_Database();
     btCHSTRAS_091_Base bt = new btCHSTRAS_091_Base();
     String[] columns = new String[] { "ProgramID", "PageID" };
     String where = "ProgramID=" + bt.getPagesID(shfUnitPratice);
     readerPages = database.query("E_SHFPages", columns, where, null);
     total = database.getSize();
     itemLearned = -1;
     itemCurrent = -1;
     arrayList = new ArrayList();
     startTime = DateTime.Now;
 }
Ejemplo n.º 17
0
 public uiCHSTRAS_091_Base(Form callForm, btSHFUserLogin callLog, btSHFUnitPractice callUnit)
     : base(callForm, callLog, callUnit)
 {
     InitializeComponent();
     times = new btCHSTRAS_091_Time();
     btCHSTRAS_091_Base bt = new btCHSTRAS_091_Base();
     String title = callUnit.UnitPracticeName;
     this.Text = title;
     this.labelPageTitle.Text = title;
     this.label课程信息.Text = bt.getClassInfo(callUnit);
     this.label程序信息.Text = bt.getProgramInfo(callUnit);
     startTime = DateTime.Now;
     this.labelBegin.Text += times.getTime(startTime);
     answeredNum = 1;
     this.labelAnswered.Text += answeredNum;
     this.timer1.Enabled = true;
 }
Ejemplo n.º 18
0
 public Hashtable getUserUnitIDs(btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice)
 {
     Hashtable keyValues = new Hashtable();
     keyValues.Add("ProgramID", shfUnitPratice.ProgramID);
     keyValues.Add("UnitID", shfUnitPratice.UnitID);
     keyValues.Add("UnitPracticeID", shfUnitPratice.UnitPracticeID);
     if (shfUserLogin.LoginType == 2)
     {
         keyValues.Add("TeacherID", shfUserLogin.UserID);
         keyValues.Add("StudentID", 0);
     }
     else
     {
         keyValues.Add("TeacherID", 0);
         keyValues.Add("StudentID", shfUserLogin.UserID);
     }
     return keyValues;
 }
Ejemplo n.º 19
0
 public uiEGLPABC_TestEdit(Form form, btSHFUserLogin shfUserLogin) : base(form, shfUserLogin)
 {
     InitializeComponent();
     name = shfUserLogin.UserName;
 }
Ejemplo n.º 20
0
 public EGLPABC082_ReceiveEmail(Form callForm, btSHFUserLogin callLog, string ps, string na, string pass)
     : base(callForm, callLog)
 {
     myReMail = new RMail(ps, na, pass);
     InitializeComponent();
 }
Ejemplo n.º 21
0
 public EGLPABC082_ReceiveEmail(Form callForm, btSHFUserLogin callLog, btSHFUnitPractice callUnit, btSHFStructure callItem, string ps, string na, string pass)
     : base(callForm, callLog, callUnit, callItem)
 {
     myReMail = new RMail(ps, na, pass);
     InitializeComponent();
 }
Ejemplo n.º 22
0
 public uiEGLPABC_ScoreShow2(Form form, btSHFUserLogin shfUserLogin)
     : base(form, shfUserLogin)
 {
     InitializeComponent();
     StudentID = shfUserLogin.UserID;
 }
Ejemplo n.º 23
0
 public EGLPABC082_SetEmail(Form callForm, btSHFUserLogin callLog)
     : base(callForm, callLog)
 {
     InitializeComponent();
 }
Ejemplo n.º 24
0
 public uiCHSTRAS_091_CourseShow(Form callForm, btSHFUserLogin callLog, btSHFUnitPractice callUnit)
     : base(callForm, callLog, callUnit)
 {
     InitializeComponent();
 }
Ejemplo n.º 25
0
 public uiEGLPABC_WordList(Form callme, btSHFUserLogin shfUserlogin)
     : base(callme, shfUserlogin)
 {
     InitializeComponent();
 }
Ejemplo n.º 26
0
 public uiEGLPABC_TestShowH1(Form callme, btSHFUserLogin shfUserlogin)
     : base(callme, shfUserlogin)
 {
     InitializeComponent();
     StudentID = shfUserlogin.UserID;
 }
Ejemplo n.º 27
0
 public uiEGLPABC_CourseEdit(Form form, btSHFUserLogin shfUserLogin)
     : base(form, shfUserLogin)
 {
     InitializeComponent();
     
 }
Ejemplo n.º 28
0
 public EGLPABC082_ReceiveEmail(Form callForm, btSHFUserLogin callLog, string ps, string na, string pass)
     : base(callForm, callLog)
 {
     myReMail = new RMail(ps, na, pass);
     InitializeComponent();
 }
Ejemplo n.º 29
0
 public EGLPABC082_ReceiveEmail(Form callForm, btSHFUserLogin callLog, btSHFUnitPractice callUnit, btSHFStructure callItem, string ps, string na, string pass)
     : base(callForm, callLog, callUnit, callItem)
 {
     myReMail = new RMail(ps, na, pass);
     InitializeComponent();
 }
Ejemplo n.º 30
0
 public uiEGLPABC_CourseEdit(Form form, btSHFUserLogin shfUserLogin)
     : base(form, shfUserLogin)
 {
     InitializeComponent();
 }
Ejemplo n.º 31
0
 public uiEGLPABC_TestEdit(Form form,btSHFUserLogin shfUserLogin)
     : base(form,shfUserLogin)
 {
     InitializeComponent();
     name = shfUserLogin.UserName;
 }
Ejemplo n.º 32
0
 public uiEGLPABC_Drogen(Form callme, btSHFUserLogin shfUserlogin)
     : base(callme, shfUserlogin)
 {
     InitializeComponent();
     StudentID = shfUserlogin.UserID;
 }
Ejemplo n.º 33
0
 public EGLPABC082_SetEmail(Form callForm, btSHFUserLogin callLog, btSHFUnitPractice callUnit, btSHFStructure callItem)
     : base(callForm, callLog, callUnit, callItem)
 {
     InitializeComponent();
 }
Ejemplo n.º 34
0
 public EGLPABC082_SetEmail(Form callForm, btSHFUserLogin callLog, btSHFUnitPractice callUnit, btSHFStructure callItem)
     : base(callForm, callLog, callUnit, callItem)
 {
     InitializeComponent();
 }
Ejemplo n.º 35
0
 public EGLPABC082_SetEmail(Form callForm, btSHFUserLogin callLog)
     : base(callForm, callLog)
 {
     InitializeComponent();
 }
Ejemplo n.º 36
0
 /// <summary>登录返回
 /// 显示登录用户信息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void uiSHF_WorkMain_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
     { }
 }
Ejemplo n.º 37
0
 public uiEGLPABC_Monkey(Form callme, btSHFUserLogin shfUserlogin)
     : base(callme, shfUserlogin)
 {
     InitializeComponent();
 }
Ejemplo n.º 38
0
        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);
        }
Ejemplo n.º 39
0
 public uiEGLPABC_TestShowH0(Form callme, btSHFUserLogin shfUserlogin)
     : base(callme, shfUserlogin)
 {
     InitializeComponent();
 }
Ejemplo n.º 40
0
 public uiEGLPABC_ScoreShow2(Form form, btSHFUserLogin shfUserLogin)
     : base(form, shfUserLogin)
 {
     InitializeComponent();
     StudentID = shfUserLogin.UserID;
 }