论文比赛支持网站开发内容摘要:

{ string strcon = [ConDBES].ToString()。 SqlConnection sqlcon = new SqlConnection(strcon)。 string sqlstr = select AuthorID from authors where S=@value_S and Password=@value_Password。 SqlCommand sqlcmd = new SqlCommand(sqlstr, sqlcon)。 SqlParameter pStuNum = (@value_S, )。 SqlParameter pPassword = (@value_Password, )。 =。 =。 ()。 string AuthorID = ().ToString()。 ()。 return AuthorID。 } //查看用户是否存在 public string CheckStuNumExistence(Authors author) { string strcon = [ConDBES].ToString()。 SqlConnection sqlcon = new SqlConnection(strcon)。 string sqlstr = select count(*) from authors where S=@value_S。 SqlCommand sqlcmd = new SqlCommand(sqlstr, sqlcon)。 SqlParameter pStuNum = (@value_S, )。 =。 ()。 string Existence = ().ToString()。 ()。 return Existence。 } //检查用户是否注册 (根据学号 ,密码 ,认证码 ) public string checkAuthorsExistence(Authors author) { string strcon = [ConDBES].ToString()。 SqlConnection sqlcon = new SqlConnection(strcon)。 string sqlstr = select count(*) from authors where S=@value_S and AuthorID=@value_AuthorID and Password=@value_Password。 SqlCommand sqlcmd = new SqlCommand(sqlstr, sqlcon)。 SqlParameter pName = (@value_StuNum, )。 SqlParameter pAuthorID = (@value_AuthorID, )。 SqlParameter pPassword = (@value_Password, )。 SqlParameter pStuNum = (@value_S, )。 ()。 string Existence = ().ToString()。 ()。 return Existence。 } //查看是否存在作者记录 public string CheckAuthorExistByNoPwd(Authors author) { string strcon = [ConDBES].ToString()。 SqlConnection sqlcon = new SqlConnection(strcon)。 string sqlstr = select count(*) from authors where S=@value_S and Password=@value_Password。 SqlCommand sqlcmd = new SqlCommand(sqlstr, sqlcon)。 SqlParameter pName = (@value_S, )。 SqlParameter pPassword = (@value_Password, )。 ()。 string Existence = ().ToString()。 ()。 return Existence。 } //获取作者当前状态 public string GetAuthorsStatus(Authors author) { string strcon = [ConDBES].ToString()。 SqlConnection sqlcon = new SqlConnection(strcon)。 string sqlstr = select status from authors where AuthorID=@value_AuthorID。 SqlCommand sqlcmd = new SqlCommand(sqlstr, sqlcon)。 SqlParameter pAuthorID = (@value_AuthorID, )。 ()。 string Status = ().ToString()。 ()。 return Status。 } //将作者状态修改为“已完成摘要投稿” public void UpdateStatus_FinishAbstract(Authors author) { string strcon = [ConDBES].ToString()。 SqlConnection sqlcon = new SqlConnection(strcon)。 string sqlstr = update authors set Status=39。 已完成摘要投稿 39。 where AuthorID=@value_AuthorID。 SqlCommand sqlcmd = new SqlCommand(sqlstr, sqlcon)。 SqlParameter pAuthorID = (@value_AuthorID, )。 ()。 ()。 ()。 } //将作者状态修改为“已完成论文投稿” public void UpdateStatus_FinishEssay(Authors author) { string strcon = [ConDBES].ToString()。 SqlConnection sqlcon = new SqlConnection(strcon)。 string sqlstr = update authors set Status=39。 已完成论文投稿 39。 where AuthorID=@value_AuthorID。 SqlCommand sqlcmd = new SqlCommand(sqlstr, sqlcon)。 SqlParameter pAuthorID = (@value_AuthorID, )。 ()。 ()。 ()。 } //根据 ID 查询作者信息 public DataTable GetAuthorInfoByAuthorID(Authors author) { string strcon = [ConDBES].ToString()。 SqlConnection sqlcon = new SqlConnection(strcon)。 string sqlstr = select * fron authors where AuthorID=+()。 SqlDataAdapter da = new SqlDataAdapter(sqlstr, sqlcon)。 DataSet ds = new DataSet()。 (ds)。 return [0]。 } //修改作者信息 public void UpdateuthorInfoByAuthorID(Authors author) { string strcon = [ConDBES].ToString()。 SqlConnection sqlcon = new SqlConnection(strcon)。 string sqlstr = update authors set Name=@value_Name,S=@value_S,Password=@value_Password,Email=@value_Email,CellPhone=@value_CellPhone where AuthorID=@value_AuthorID。 SqlCommand sqlcmd = new SqlCommand(sqlstr, sqlcon)。 SqlParameter pName = (@value_Name, )。 SqlParameter pStuNum = (@value_S, )。 SqlParameter pPassword = (@value_Password, )。 SqlParameter pEmail = (@value_Email, )。 SqlParameter pCellPhoneNum = (@value_CellPhone, )。 ()。 ()。 ()。 } //参赛者这列表 public DataTable GetAuthorLIst() { string strcon = [ConDBES].ToString()。 SqlConnection sqlcon = new SqlConnection(strcon)。 string sqlstr = select , from authors a left join essayInfo e on = order by。 SqlDataAdapter da = new SqlDataAdapter(sqlstr, sqlcon)。 DataSet ds = new DataSet()。 (ds)。 return [0]。 }。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。