高校网上教材征订系统的设计与实现(8)

来源:xiaoniu168.com 作者:本站原创 添加时间:2012-04-17 点击数:23528

计算机毕业设计介绍:

4.2.4 统计功能
统计是教材征订中一个必不可少的环节。统计在系统中体现为教学秘书的统计和教材科的统计这两方面。
(1) 教学秘书的统计。在教师征订完教材,系主任对教材进行审核后,教学秘书将进入系统,单击菜单栏中的“修改表单”,系统将会以列表的形式显示出本系所有通过审核的书籍,点击表单中的修改,出现教材人数统计界面,填入人数后单击确定按钮,统计结果写被写入数据库。
具体代码如下:
private void secretary_Button_Click (object sender, System.EventArgs e)
  {
   if (IsInt (Count_TextBox.Text) ==false)
   {
    showMsg("人数输入有错!!");
    return;
   }
   string sql="";
  sql+="update book_order_table set student_count="+Convert.ToInt32 (Count_TextBox.Text) +" where countid="+getCountId ().ToString ();
   Db.ExecuteSql(sql);
   showMsg("添加成功!!");
   Cancel_Button_Click(sender,e);
  }
if(iUsId>=4000)              //系秘书修改本系未审核表单
sql+="Select c.user_name as '授课人',a.ISBN as 'ISBN号',a.book_name as '教材名',a.publisher as '出版社',a.pub_time as '出版时间',"+
"a.author_name as '作者',b.department_name as '所属院系',d.book_type_name as '教材类型',a.bar_cord as '条形码',a.approve as '审核',a.student_count as '学生数',"+
"a.student_class as '班级',a.approver_ID as '审核人ID',a.course_name as '课程名' ,'修改' as 操作"+
" From book_order_table a,department_type b,user_info_table c,book_type_table d where a.approve='已审核' and a.book_type=d.book_type and a.user_ID=c.user_ID and a.department=b.department_number and c.department=b.department_number ";
(2) 教材科的统计。各系征订工作结束后,教材科进入系统,对各系教材进行统计,教材处利用此结果向出版社进行教材的征定。

〖资料来源:计算机毕业论文 www.xiaoniu168.com

第9页为计算机毕业论文部分......

【联系方式】

【本站信誉】

用心做计算机毕业设计论文网