小型图书管理系统毕业设计(编辑修改稿)内容摘要:

(G_RowNumber) //the first column get the focus (1) 删除: //得到当前记录 G_RowNumber=() //将当前记录中的员工号取出赋值给全局变量 emp_no deleterow(dw_1,g_rownumber) int a a=MessageBox(提示 ,确实要删除吗 ?,Question!, YesNoCancel!, 3) if a=1 then ( Clicked!) else () end if 保存: if update(dw_1,true,false)=1 then //保存修改成功,提交修改 () mit。 messagebox(提示 !!!,数据更新成功 !!!) else //保存修改失败,取消所作的修改 rollback。 //弹出一个对话框警告 messagebox(错误 !!!,数据更新失败 !!!) end if closequery 事件如前。 退出: close(parent) 修改读者信息界面: 添加: //insert a row in the end of dw_1 g_RowNumber=(0) //dw_1 get the focus () //到当前行 (G_RowNumber) //the first column get the focus (1) 删除: //得到当前记录 G_RowNumber=() //将当前记录中的员工号取出赋值给全局变量 emp_no deleterow(dw_1,g_rownumber) int a a=MessageBox(提示 ,确实要删除吗 ?,Question!, YesNoCancel!, 3) if a=1 then ( Clicked!) else () end if 保存: if update(dw_1,true,false)=1 then //保存修改成功,提交修改 () mit。 messagebox(提示 !!!,数据更新成功 !!!) else //保存修改失败,取消所作的修改 rollback。 //弹出一个对话框警告 messagebox(错误 !!!,数据更新失败 !!!) end if 退出: close(parent) 添加读者信息界面: 前一条: //定义参数当前行行数 integer row_current //数据窗口向前滚动一条记录 row_current=() //如果已经到达第一条记录,则弹出一个对话框警告 if row_current=1 then MessageBox(警告 ,已经是最前一条记录 ) end if 后一条: //定义参数 表的总行数 integer row_count //定义参数 当前行 integer row_current //数据窗口向后滚动一条纪录 row_current=() //得到表的总行数 row_count=() //判断是否是最后一条记录 if row_current= row_count then MessageBox(警告 ,已经是最后一条记录 ) end if 保存: if update(dw_1,true,false)=1 then //保存修改成功,提交修改 () mit。 messagebox(提示 !!!,数据更新成功 !!!) else //保存修改失败,取消所作的修改 rollback。 //弹出一个对话框警告 messagebox(错误 !!!,数据更新失败 !!!) end if 添加: //insert a row in the end of dw_1 g_RowNumber=(0) //dw_1 get the focus () //到当前行 (G_RowNumber) //the first column get the focus (1) 删除: //得到当前记录 G_RowNumber=() //将当前记录中的员工号取出赋值给全局变量 emp_no deleterow(dw_1,g_rownumber) int a a=MessageBox(提示 ,确实要删除吗 ?,Question!, YesNoCancel!, 3) if a=1 then ( Clicked!) else () end if 退出: //定义两个变量 int MCount //修改后没有保存的行数 int UpdateOrNot //是否修改 //得到修改后没有保存的行数 MCount=() if MCount=0 then //没有未保存的修改 close(w_books) elseif Mcount0 then //询问是否保存所做的修改 UpdateOrNot=MessageBox(保存修改 ,您修改了数据窗口中的数据,现在是否保存 ?,Question!,YesNoCancel!) if UpdateOrNot=1 then //保存 if update(,true,false)=1 then //保存修改成功,提交修改 () mit。 else //保存修改失败,取消所作的修改 rollback。 //弹出一个对话框 警告 messagebox(错误 !!!,数据保存失败 ) end if close(w_books) elseif UpdateOrNot=2 then //不保存 rollback。 close(w_books) end if end if 修改书籍界面如下: : 添加: //insert a row in the end of dw_1 g_RowNumber=(0) //dw_1 get the focus () //到当前行 (G_RowNumber) //the first column get the focus (1) 删除: //得到当前记录 G_RowNumber=() //将当前记录中的员工号取出赋值给全局变量 emp_no deleterow(dw_1,g_rownumber) int a a=MessageBox(提示 ,确实要删除吗 ?,Question!, YesNoCancel!, 3) if a=1 then ( Clicked!) else () end if 保存: if update(dw_1,true,false)=1 then //保存修改成功,提交修改 () mit。 messagebox(提示 !!!,数据更新成功 !!!) else //保存修改失败,取消所作的修改 rollback。 //弹出一个对话框警告 messagebox(错误 !!!,数据 更新失败 !!!) end if 退出: close(parent) 书籍查询界面如下: 查询: //定义参数:查询条件综合结果 string LookforCondition1 string LookforCondition //定义参数:要查询的列 string lookforItem1 //定义参数:查询的符号 string lookforHow1 //定义参数:要查询的内容 string lookforWhat1 //定义参数:当前的行号 int current_row1 //定义参数:总的行数 int total_row1 //定义参数:满足条件的行号 int find_row1 //date lookforWhat1 //查询符号的选择 lookforHow1= //查询子段和查询内容的选择 if =书号 then lookforItem1 =bookid lookforwhat1=39。 +trim()+39。 elseif =书名 then lookforItem1=bookname lookforwhat1=39。 +trim()+39。 elseif =种类 then lookforItem1=booktype lookforwhat1=39。 +trim()+39。 elseif =出版社 then lookforItem1=bookpub lookforwhat1=39。 +trim()+39。 elseif =作者 then lookforItem1=bookauthor lookforwhat1=39。 +trim()+39。 elseif =是否借出 then lookforItem1=putup lookforwhat1=39。 +trim()+39。 elseif =类型 then lookforItem1=booktype lookforwhat1=39。 +trim()+39。 lookforCondition1=lookforItem1+lookforHow1+lookforwhat1 elseif =登记日期 then lookforItem1=bookindate lookforwhat1= elseif =出版日期 then lookforItem1=bookpubdate lookforwhat1= elseif =价格 then lookforItem1=price lookforwhat1= end if lookforCondition1=lookforItem1+lookforHow1+lookforwhat1 //定义参数:查询条件综合结果 string LookforCondition2 //定义参数:要查询的列 string lookforItem2 //定义参数:查询的符号 string lookforHow2 //定义参数:要查询的内容 string lookforWhat2 string operator1,operator2,operator3 //查询符号的选择 lookforHow2= //查询子段和查询内容的选择 if =书号 then lookforItem2 =bookid lookforwhat2=39。 +trim()+39。 elseif =书名 then lookforItem2=bookname lookforwhat2=39。 +trim()+39。 elseif =种类 then lookforItem2=booktype lookforwhat2=39。 +trim()+39。 elseif =出版社 then lookforItem2=bookpub lookforwhat2=39。 +trim()+39。 elseif =作者 then lookforItem2=bookauthor lookforwhat2=39。 +trim()+39。 elseif =是否借出 then lookforItem2=putup lookforwhat2=39。 +trim()+39。 elseif =类型 then lookforItem2=booktype lookforwhat2=39。 +trim()+39。 lookforCondition2=lookforItem2+lookforHow2+lookforwhat2 elseif =登记日期 then lookforItem2=bookindate。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。