public uiCHSTRAS_091_Foreword(Form form, btSHFUserLogin shfUserLogin, btSHFUnitPractice shfUnitPratice) : base(form, shfUserLogin, shfUnitPratice) { InitializeComponent(); pratice = shfUnitPratice; this.label.Text = disForeword(); }
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(); }
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; }
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(); }
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(); }
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"); }
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; }
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"); }
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(); }
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]; }
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); }
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]; }
/// <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 { } }
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; }
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; }
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; }
public uiEGLPABC_TestEdit(Form form, btSHFUserLogin shfUserLogin) : base(form, shfUserLogin) { InitializeComponent(); name = shfUserLogin.UserName; }
public EGLPABC082_ReceiveEmail(Form callForm, btSHFUserLogin callLog, string ps, string na, string pass) : base(callForm, callLog) { myReMail = new RMail(ps, na, pass); InitializeComponent(); }
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(); }
public uiEGLPABC_ScoreShow2(Form form, btSHFUserLogin shfUserLogin) : base(form, shfUserLogin) { InitializeComponent(); StudentID = shfUserLogin.UserID; }
public EGLPABC082_SetEmail(Form callForm, btSHFUserLogin callLog) : base(callForm, callLog) { InitializeComponent(); }
public uiCHSTRAS_091_CourseShow(Form callForm, btSHFUserLogin callLog, btSHFUnitPractice callUnit) : base(callForm, callLog, callUnit) { InitializeComponent(); }
public uiEGLPABC_WordList(Form callme, btSHFUserLogin shfUserlogin) : base(callme, shfUserlogin) { InitializeComponent(); }
public uiEGLPABC_TestShowH1(Form callme, btSHFUserLogin shfUserlogin) : base(callme, shfUserlogin) { InitializeComponent(); StudentID = shfUserlogin.UserID; }
public uiEGLPABC_CourseEdit(Form form, btSHFUserLogin shfUserLogin) : base(form, shfUserLogin) { InitializeComponent(); }
public uiEGLPABC_TestEdit(Form form,btSHFUserLogin shfUserLogin) : base(form,shfUserLogin) { InitializeComponent(); name = shfUserLogin.UserName; }
public uiEGLPABC_Drogen(Form callme, btSHFUserLogin shfUserlogin) : base(callme, shfUserlogin) { InitializeComponent(); StudentID = shfUserlogin.UserID; }
public EGLPABC082_SetEmail(Form callForm, btSHFUserLogin callLog, btSHFUnitPractice callUnit, btSHFStructure callItem) : base(callForm, callLog, callUnit, callItem) { InitializeComponent(); }
/// <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 { } }
public uiEGLPABC_Monkey(Form callme, btSHFUserLogin shfUserlogin) : base(callme, shfUserlogin) { InitializeComponent(); }
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); }
public uiEGLPABC_TestShowH0(Form callme, btSHFUserLogin shfUserlogin) : base(callme, shfUserlogin) { InitializeComponent(); }