diff --git a/bin/finalexam/Database/Cashier/Cashier.class b/bin/finalexam/Database/Cashier.class similarity index 90% rename from bin/finalexam/Database/Cashier/Cashier.class rename to bin/finalexam/Database/Cashier.class index 4f1f7c6..00d1751 100644 Binary files a/bin/finalexam/Database/Cashier/Cashier.class and b/bin/finalexam/Database/Cashier.class differ diff --git a/bin/finalexam/Database/Cashier/CourseGrading.html b/bin/finalexam/Database/Cashier/CourseGrading.html deleted file mode 100644 index 994fb2a..0000000 --- a/bin/finalexam/Database/Cashier/CourseGrading.html +++ /dev/null @@ -1,990 +0,0 @@ - - -
- - - - - - - - - -MySQL数据库xiaoshou表结构如下:
1.t_yong用户表
yonghuming:用户名
mima:密码(存放密码对应md5编码值)
xingming:姓名
juese:角色(管理员,收银员)
2.t_shouyinmingxi收银明细表
liushuihao:流水号(格式为yyyyMMdd****,如2023年5月18日第一笔收银流水号为2023050180001)
tiaoma:商品条码(6位数字)
mingcheng:商品名称
danjia:商品单价
shuliang:销售数量
shouyinyuan:收银员(系统当前登录用户对应的姓名)
xiaoshoushijian:销售时间(系统当前时间)
3.t_shangping商品表
tiaoma:商品条码(主键,唯一)
mingcheng:商品名称
danjia:商品单价
gongyingshang:供应商
附:数据库连接地址字符串
jdbc:mysql://localhost:3306/xiaoshou?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
设计程序完成收银功能
当程序运行时,显示“欢迎使用阳光超市收银系统”
显示
“请输入商品条形码(6位数字字符):”
如果输入的条形码在商品表中存在,则显示“输入商品数量:”,
否则,提示“您输入的商品条形码不存在,请确认后重新输入”,
继续显示“请输入收银员”:
输入完毕后在销售明细表中增加一条记录
插入时:
商品名称及商品单价是根据输入的条形码查找商品表获取的,
销售时间为系统当前时间yyyy-mm-dd hh:mm:ss)
流水号根据规则【12位:yyyyMMdd+四位顺序号,如202305180001等】自动生成,
增加成功后显示“成功增加一笔销售数据”。
显示是否继续收银(y/n:)选择y,重复以上步骤,选择n,显示“成功退出收银程序”,程序结束
rar 或者 zip 包提交。
-
-
- MySQL数据库xiaoshou表结构如下:
1.t_yong用户表
yonghuming:用户名
mima:密码(存放密码对应md5编码值)
xingming:姓名
juese:角色(管理员,收银员)
2.t_shouyinmingxi收银明细表
liushuihao:流水号(格式为yyyyMMdd****,如2023年5月18日第一笔收银流水号为2023050180001)
tiaoma:商品条码(6位数字)
mingcheng:商品名称
danjia:商品单价
shuliang:销售数量
shouyinyuan:收银员(系统当前登录用户对应的姓名)
xiaoshoushijian:销售时间(系统当前时间)
3.t_shangping商品表
tiaoma:商品条码(主键,唯一)
mingcheng:商品名称
danjia:商品单价
gongyingshang:供应商
附:数据库连接地址字符串
jdbc:mysql://localhost:3306/xiaoshou?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
设计程序完成收银功能
当程序运行时,显示“欢迎使用阳光超市收银系统”
显示
“请输入商品条形码(6位数字字符):”
如果输入的条形码在商品表中存在,则显示“输入商品数量:”,
否则,提示“您输入的商品条形码不存在,请确认后重新输入”,
继续显示“请输入收银员”:
输入完毕后在销售明细表中增加一条记录
插入时:
商品名称及商品单价是根据输入的条形码查找商品表获取的,
销售时间为系统当前时间yyyy-mm-dd hh:mm:ss)
流水号根据规则【12位:yyyyMMdd+四位顺序号,如202305180001等】自动生成,
增加成功后显示“成功增加一笔销售数据”。
显示是否继续收银(y/n:)选择y,重复以上步骤,选择n,显示“成功退出收银程序”,程序结束
rar 或者 zip 包提交。
-
-
- 
" + tipMsg + "
");
- showmessageFrame.document.close();
-}
-
-function cgShowDIVLoadingImg(myDivID, tipMsg) {
- document.getElementById(myDivID).innerHTML=("" + tipMsg + "
");
-}
-
-function cgGetPageY(elem) {
- return elem.offsetParent ? (elem.offsetTop + cgGetPageY(elem.offsetParent)) : elem.offsetTop;
-}
-
-function cgResizeIframe(ifmID) {
- var height = document.documentElement.clientHeight;
- height -= cgGetPageY(document.getElementById(ifmID))+ 55 ;
- height = (height < 0) ? 0 : height;
- document.getElementById(ifmID).style.height = height + 'px';
-}
-
-
-function cgResizeModalIframe(ifmID) {
- var height = document.documentElement.clientHeight;
- height -= cgGetPageY(document.getElementById(ifmID))+ 8 ;
- height = (height < 0) ? 0 : height;
- document.getElementById(ifmID).style.height = height + 'px';
-}
\ No newline at end of file
diff --git a/bin/finalexam/Database/Cashier/CourseGrading_files/logo.png b/bin/finalexam/Database/Cashier/CourseGrading_files/logo.png
deleted file mode 100644
index b83b0bc..0000000
Binary files a/bin/finalexam/Database/Cashier/CourseGrading_files/logo.png and /dev/null differ
diff --git a/bin/finalexam/Database/Cashier/CourseGrading_files/popper.min.js.download b/bin/finalexam/Database/Cashier/CourseGrading_files/popper.min.js.download
deleted file mode 100644
index 8a17212..0000000
--- a/bin/finalexam/Database/Cashier/CourseGrading_files/popper.min.js.download
+++ /dev/null
@@ -1,5 +0,0 @@
-/*
- Copyright (C) Federico Zivolo 2019
- Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
- */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function i(e){return e&&e.referenceNode?e.referenceNode:e}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1|
-
-
- 得分0.00 最后一次提交时间:2024-05-21 19:44:53
-
- |
-
|
-
- - |
-
MySQL数据库xiaoshou表结构如下:
1.t_yong用户表
yonghuming:用户名
mima:密码(存放密码对应md5编码值)
xingming:姓名
juese:角色(管理员,收银员)
2.t_shouyinmingxi收银明细表
liushuihao:流水号(格式为yyyyMMdd****,如2023年5月18日第一笔收银流水号为2023050180001)
tiaoma:商品条码(6位数字)
mingcheng:商品名称
danjia:商品单价
shuliang:销售数量
shouyinyuan:收银员(系统当前登录用户对应的姓名)
xiaoshoushijian:销售时间(系统当前时间)
3.t_shangping商品表
tiaoma:商品条码(主键,唯一)
mingcheng:商品名称
danjia:商品单价
gongyingshang:供应商
附:数据库连接地址字符串
jdbc:mysql://localhost:3306/xiaoshou?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
设计程序完成查询统计功能
程序运行时,显示“请输入销售日期(yyyy-mm-dd):”,如果日期格式不正确,则显示“你输入的日期格式不正确,请重新输入”,输入正确后,查询统计当前日期所有的销售信息,输出显示格式如下:
YYYY年MM月DD日销售如下
流水号 商品名称 单价 数量 金额 时间
=======================================================================================
** ** ** ** ** **
** ** ** ** ** **
销售总记录条数:*** ;商品总数量:****; 销售总金额:***
日期:YYYY年MM月DD日
是否继续查询(y/n:)
选择y重新查询,选择n,显示“程序成功退出”,结束程序
rar 或者 zip 包提交。
-
-
- MySQL数据库xiaoshou表结构如下:
1.t_yong用户表
yonghuming:用户名
mima:密码(存放密码对应md5编码值)
xingming:姓名
juese:角色(管理员,收银员)
2.t_shouyinmingxi收银明细表
liushuihao:流水号(格式为yyyyMMdd****,如2023年5月18日第一笔收银流水号为2023050180001)
tiaoma:商品条码(6位数字)
mingcheng:商品名称
danjia:商品单价
shuliang:销售数量
shouyinyuan:收银员(系统当前登录用户对应的姓名)
xiaoshoushijian:销售时间(系统当前时间)
3.t_shangping商品表
tiaoma:商品条码(主键,唯一)
mingcheng:商品名称
danjia:商品单价
gongyingshang:供应商
附:数据库连接地址字符串
jdbc:mysql://localhost:3306/xiaoshou?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
设计程序完成查询统计功能
程序运行时,显示“请输入销售日期(yyyy-mm-dd):”,如果日期格式不正确,则显示“你输入的日期格式不正确,请重新输入”,输入正确后,查询统计当前日期所有的销售信息,输出显示格式如下:
YYYY年MM月DD日销售如下
流水号 商品名称 单价 数量 金额 时间
=======================================================================================
** ** ** ** ** **
** ** ** ** ** **
销售总记录条数:*** ;商品总数量:****; 销售总金额:***
日期:YYYY年MM月DD日
是否继续查询(y/n:)
选择y重新查询,选择n,显示“程序成功退出”,结束程序
rar 或者 zip 包提交。
-
-
- 
" + tipMsg + "
");
- showmessageFrame.document.close();
-}
-
-function cgShowDIVLoadingImg(myDivID, tipMsg) {
- document.getElementById(myDivID).innerHTML=("" + tipMsg + "
");
-}
-
-function cgGetPageY(elem) {
- return elem.offsetParent ? (elem.offsetTop + cgGetPageY(elem.offsetParent)) : elem.offsetTop;
-}
-
-function cgResizeIframe(ifmID) {
- var height = document.documentElement.clientHeight;
- height -= cgGetPageY(document.getElementById(ifmID))+ 55 ;
- height = (height < 0) ? 0 : height;
- document.getElementById(ifmID).style.height = height + 'px';
-}
-
-
-function cgResizeModalIframe(ifmID) {
- var height = document.documentElement.clientHeight;
- height -= cgGetPageY(document.getElementById(ifmID))+ 8 ;
- height = (height < 0) ? 0 : height;
- document.getElementById(ifmID).style.height = height + 'px';
-}
\ No newline at end of file
diff --git a/bin/finalexam/Database/CashierStatistics/CourseGrading_files/logo.png b/bin/finalexam/Database/CashierStatistics/CourseGrading_files/logo.png
deleted file mode 100644
index b83b0bc..0000000
Binary files a/bin/finalexam/Database/CashierStatistics/CourseGrading_files/logo.png and /dev/null differ
diff --git a/bin/finalexam/Database/CashierStatistics/CourseGrading_files/popper.min.js.download b/bin/finalexam/Database/CashierStatistics/CourseGrading_files/popper.min.js.download
deleted file mode 100644
index 8a17212..0000000
--- a/bin/finalexam/Database/CashierStatistics/CourseGrading_files/popper.min.js.download
+++ /dev/null
@@ -1,5 +0,0 @@
-/*
- Copyright (C) Federico Zivolo 2019
- Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
- */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function i(e){return e&&e.referenceNode?e.referenceNode:e}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1|
-
-
- 得分0.00 最后一次提交时间:2024-05-18 17:35:47
-
- |
-
|
-
- - |
-
MySQL数据库xiaoshou表结构如下:
1.t_yong用户表
yonghuming:用户名
mima:密码(存放密码对应md5编码值)
xingming:姓名
juese:角色(管理员,收银员)
2.t_shouyinmingxi收银明细表
liushuihao:流水号(格式为yyyyMMdd****,如2023年5月18日第一笔收银流水号为2023050180001)
tiaoma:商品条码(6位数字)
mingcheng:商品名称
danjia:商品单价
shuliang:销售数量
shouyinyuan:收银员(系统当前登录用户对应的姓名)
xiaoshoushijian:销售时间(系统当前时间)
3.t_shangping商品表
tiaoma:商品条码(主键,唯一)
mingcheng:商品名称
danjia:商品单价
gongyingshang:供应商
附:数据库连接地址字符串
jdbc:mysql://localhost:3306/xiaoshou?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
设计程序,完成商品的导入功能
===****超市商品管理维护====
1、从excel中导入数据
2、从文本文件导入数据
3、返回主菜单
请选择(1-3):
当选择1时,程序读取商品信息.xls文件(附件已提供),将所有数据增加到商品表中,增加的时候要检查每条记录的条形码在商品表中是否存在,若存在,则不需要增加到数据库中,所有数据增加完毕后,显示“成功从excel文件导入XXX条商品数据”,返回菜单。
当选择2时,程序读取商品信息.txt文件(附件已提供),将所有数据增加到商品表中,增加的时候要检查每条记录的条形码在商品表中是否存在,若存在,则不需要增加到数据库中,所有数据增加完毕后,显示“成功从文本文件导入XXX条商品数据”,返回菜单。
rar 或者 zip 包提交。
-
-
- MySQL数据库xiaoshou表结构如下:
1.t_yong用户表
yonghuming:用户名
mima:密码(存放密码对应md5编码值)
xingming:姓名
juese:角色(管理员,收银员)
2.t_shouyinmingxi收银明细表
liushuihao:流水号(格式为yyyyMMdd****,如2023年5月18日第一笔收银流水号为2023050180001)
tiaoma:商品条码(6位数字)
mingcheng:商品名称
danjia:商品单价
shuliang:销售数量
shouyinyuan:收银员(系统当前登录用户对应的姓名)
xiaoshoushijian:销售时间(系统当前时间)
3.t_shangping商品表
tiaoma:商品条码(主键,唯一)
mingcheng:商品名称
danjia:商品单价
gongyingshang:供应商
附:数据库连接地址字符串
jdbc:mysql://localhost:3306/xiaoshou?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
设计程序,完成商品的导入功能
===****超市商品管理维护====
1、从excel中导入数据
2、从文本文件导入数据
3、返回主菜单
请选择(1-3):
当选择1时,程序读取商品信息.xls文件(附件已提供),将所有数据增加到商品表中,增加的时候要检查每条记录的条形码在商品表中是否存在,若存在,则不需要增加到数据库中,所有数据增加完毕后,显示“成功从excel文件导入XXX条商品数据”,返回菜单。
当选择2时,程序读取商品信息.txt文件(附件已提供),将所有数据增加到商品表中,增加的时候要检查每条记录的条形码在商品表中是否存在,若存在,则不需要增加到数据库中,所有数据增加完毕后,显示“成功从文本文件导入XXX条商品数据”,返回菜单。
rar 或者 zip 包提交。
-
-
- 
" + tipMsg + "
");
- showmessageFrame.document.close();
-}
-
-function cgShowDIVLoadingImg(myDivID, tipMsg) {
- document.getElementById(myDivID).innerHTML=("" + tipMsg + "
");
-}
-
-function cgGetPageY(elem) {
- return elem.offsetParent ? (elem.offsetTop + cgGetPageY(elem.offsetParent)) : elem.offsetTop;
-}
-
-function cgResizeIframe(ifmID) {
- var height = document.documentElement.clientHeight;
- height -= cgGetPageY(document.getElementById(ifmID))+ 55 ;
- height = (height < 0) ? 0 : height;
- document.getElementById(ifmID).style.height = height + 'px';
-}
-
-
-function cgResizeModalIframe(ifmID) {
- var height = document.documentElement.clientHeight;
- height -= cgGetPageY(document.getElementById(ifmID))+ 8 ;
- height = (height < 0) ? 0 : height;
- document.getElementById(ifmID).style.height = height + 'px';
-}
\ No newline at end of file
diff --git a/bin/finalexam/Database/DataInput/CourseGrading_files/logo.png b/bin/finalexam/Database/DataInput/CourseGrading_files/logo.png
deleted file mode 100644
index b83b0bc..0000000
Binary files a/bin/finalexam/Database/DataInput/CourseGrading_files/logo.png and /dev/null differ
diff --git a/bin/finalexam/Database/DataInput/CourseGrading_files/popper.min.js.download b/bin/finalexam/Database/DataInput/CourseGrading_files/popper.min.js.download
deleted file mode 100644
index 8a17212..0000000
--- a/bin/finalexam/Database/DataInput/CourseGrading_files/popper.min.js.download
+++ /dev/null
@@ -1,5 +0,0 @@
-/*
- Copyright (C) Federico Zivolo 2019
- Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
- */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function i(e){return e&&e.referenceNode?e.referenceNode:e}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1|
-
-
- 得分0.00 最后一次提交时间:2024-05-20 18:58:30
-
- |
-
|
-
- - |
-
MySQL数据库xiaoshou表结构如下:
1.t_yong用户表
yonghuming:用户名
mima:密码(存放密码对应md5编码值)
xingming:姓名
juese:角色(管理员,收银员)
2.t_shouyinmingxi收银明细表
liushuihao:流水号(格式为yyyyMMdd****,如2023年5月18日第一笔收银流水号为2023050180001)
tiaoma:商品条码(6位数字)
mingcheng:商品名称
danjia:商品单价
shuliang:销售数量
shouyinyuan:收银员(系统当前登录用户对应的姓名)
xiaoshoushijian:销售时间(系统当前时间)
3.t_shangping商品表
tiaoma:商品条码(主键,唯一)
mingcheng:商品名称
danjia:商品单价
gongyingshang:供应商
附:数据库连接地址字符串
jdbc:mysql://localhost:3306/xiaoshou?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
设计程序,完成商品的导入功能
===****超市商品管理维护====
1、导出商品信息至excel
2、导出商品信息至文本文件
3、返回主菜单
请选择(1-3):
当选择1时,将商品表中所有数据写入到“商品导出.xls”文件中,文件第一行为标题,显示“成功导出XXX条商品数据到excel中”,返回菜单。
当选择2时,将商品表中所有数据写入到“商品导出.txt"文件中,文件第一行为标题,显示“成功导出XXX条商品数据到txt中”,返回菜单。
rar 或者 zip 包提交。
-
-
- MySQL数据库xiaoshou表结构如下:
1.t_yong用户表
yonghuming:用户名
mima:密码(存放密码对应md5编码值)
xingming:姓名
juese:角色(管理员,收银员)
2.t_shouyinmingxi收银明细表
liushuihao:流水号(格式为yyyyMMdd****,如2023年5月18日第一笔收银流水号为2023050180001)
tiaoma:商品条码(6位数字)
mingcheng:商品名称
danjia:商品单价
shuliang:销售数量
shouyinyuan:收银员(系统当前登录用户对应的姓名)
xiaoshoushijian:销售时间(系统当前时间)
3.t_shangping商品表
tiaoma:商品条码(主键,唯一)
mingcheng:商品名称
danjia:商品单价
gongyingshang:供应商
附:数据库连接地址字符串
jdbc:mysql://localhost:3306/xiaoshou?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
设计程序,完成商品的导入功能
===****超市商品管理维护====
1、导出商品信息至excel
2、导出商品信息至文本文件
3、返回主菜单
请选择(1-3):
当选择1时,将商品表中所有数据写入到“商品导出.xls”文件中,文件第一行为标题,显示“成功导出XXX条商品数据到excel中”,返回菜单。
当选择2时,将商品表中所有数据写入到“商品导出.txt"文件中,文件第一行为标题,显示“成功导出XXX条商品数据到txt中”,返回菜单。
rar 或者 zip 包提交。
-
-
- 
" + tipMsg + "
");
- showmessageFrame.document.close();
-}
-
-function cgShowDIVLoadingImg(myDivID, tipMsg) {
- document.getElementById(myDivID).innerHTML=("" + tipMsg + "
");
-}
-
-function cgGetPageY(elem) {
- return elem.offsetParent ? (elem.offsetTop + cgGetPageY(elem.offsetParent)) : elem.offsetTop;
-}
-
-function cgResizeIframe(ifmID) {
- var height = document.documentElement.clientHeight;
- height -= cgGetPageY(document.getElementById(ifmID))+ 55 ;
- height = (height < 0) ? 0 : height;
- document.getElementById(ifmID).style.height = height + 'px';
-}
-
-
-function cgResizeModalIframe(ifmID) {
- var height = document.documentElement.clientHeight;
- height -= cgGetPageY(document.getElementById(ifmID))+ 8 ;
- height = (height < 0) ? 0 : height;
- document.getElementById(ifmID).style.height = height + 'px';
-}
\ No newline at end of file
diff --git a/bin/finalexam/Database/DataOutput/CourseGrading_files/logo.png b/bin/finalexam/Database/DataOutput/CourseGrading_files/logo.png
deleted file mode 100644
index b83b0bc..0000000
Binary files a/bin/finalexam/Database/DataOutput/CourseGrading_files/logo.png and /dev/null differ
diff --git a/bin/finalexam/Database/DataOutput/CourseGrading_files/popper.min.js.download b/bin/finalexam/Database/DataOutput/CourseGrading_files/popper.min.js.download
deleted file mode 100644
index 8a17212..0000000
--- a/bin/finalexam/Database/DataOutput/CourseGrading_files/popper.min.js.download
+++ /dev/null
@@ -1,5 +0,0 @@
-/*
- Copyright (C) Federico Zivolo 2019
- Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
- */(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultView,n=o.getComputedStyle(e,null);return t?n[t]:n}function o(e){return'HTML'===e.nodeName?e:e.parentNode||e.host}function n(e){if(!e)return document.body;switch(e.nodeName){case'HTML':case'BODY':return e.ownerDocument.body;case'#document':return e.body;}var i=t(e),r=i.overflow,p=i.overflowX,s=i.overflowY;return /(auto|scroll|overlay)/.test(r+s+p)?e:n(o(e))}function i(e){return e&&e.referenceNode?e.referenceNode:e}function r(e){return 11===e?re:10===e?pe:re||pe}function p(e){if(!e)return document.documentElement;for(var o=r(10)?document.body:null,n=e.offsetParent||null;n===o&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&'BODY'!==i&&'HTML'!==i?-1!==['TH','TD','TABLE'].indexOf(n.nodeName)&&'static'===t(n,'position')?p(n):n:e?e.ownerDocument.documentElement:document.documentElement}function s(e){var t=e.nodeName;return'BODY'!==t&&('HTML'===t||p(e.firstElementChild)===e)}function d(e){return null===e.parentNode?e:d(e.parentNode)}function a(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var o=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=o?e:t,i=o?t:e,r=document.createRange();r.setStart(n,0),r.setEnd(i,0);var l=r.commonAncestorContainer;if(e!==l&&t!==l||n.contains(i))return s(l)?l:p(l);var f=d(e);return f.host?a(f.host,t):a(e,d(t).host)}function l(e){var t=1|
-
-
- 得分0.00 最后一次提交时间:2024-05-18 13:57:37
-
- |
-
|
-
- - |
-
MySQL数据库xiaoshou表结构如下:
1.t_yong用户表
yonghuming:用户名
mima:密码(存放密码对应md5编码值)
xingming:姓名
juese:角色(管理员,收银员)
2.t_shouyinmingxi收银明细表
liushuihao:流水号(格式为yyyyMMdd****,如2023年5月18日第一笔收银流水号为2023050180001)
tiaoma:商品条码(6位数字)
mingcheng:商品名称
danjia:商品单价
shuliang:销售数量
shouyinyuan:收银员(系统当前登录用户对应的姓名)
xiaoshoushijian:销售时间(系统当前时间)
3.t_shangping商品表
tiaoma:商品条码(主键,唯一)
mingcheng:商品名称
danjia:商品单价
gongyingshang:供应商
附:数据库连接地址字符串
jdbc:mysql://localhost:3306/xiaoshou?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT
程序运行步骤如下:
请输入用户名:
若用户名不存在,则显示“该用户不存在,请重新输入”
否则显示“请输入当前用户的原密码:”,若原密码不正确,则提示“原密码输入不正确,请重新输入”,输入正确后,显示“请设置新的密码:”,【选做功能:输入的密码必须满足必要的复杂性,如果不符合要求,则提示“您的密码不符合复杂性要求(密码长度不少于6个字符,至少有一个小写字母,至少有一个大写字母,至少一个数字)】,请重新输入:”,输入成功后,显示“请输入确认密码:”,若两次输入不一样,则提示“两次输入的密码必须一致,请重新输入确认密码:”,输入成功后,修改数据库中的用户表,并提示“您已成功修改密码,请谨记”,退出程序。用户在数据库中存放时不要明文的方式进行存放,需要采用Md5加密算法存放加密后的密文
rar 或者 zip 包提交。
-
-
-