㈠ 親有java語言寫的超市管理系統課程設計和源代碼嗎,能給我嗎
package untitled5;
import java.io.*;
import java.net.*;
import java.sql.*;
import java.lang.*;
import javax.sql.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import com.borland.jbcl.layout.*;
public class delbook extends JFrame {
JPanel contentPane;
XYLayout xYLayout1 = new XYLayout();
JLabel jLabel1 = new JLabel();
JLabel jLabel2 = new JLabel();
JLabel jLabel3 = new JLabel();
JTextField jTextField1 = new JTextField();
JLabel jLabel4 = new JLabel();
JTextField jTextField2 = new JTextField();
JLabel jLabel5 = new JLabel();
JTextField jTextField3 = new JTextField();
JLabel jLabel6 = new JLabel();
JTextField jTextField4 = new JTextField();
JButton jButton1 = new JButton();
//Construct the frame
public delbook() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
//Component initialization
private void jbInit() throws Exception {
contentPane = (JPanel) this.getContentPane();
jLabel1.setFont(new java.awt.Font("SansSerif", 0, 25));
jLabel1.setForeground(Color.red);
jLabel1.setText("超市管理系統");
contentPane.setLayout(xYLayout1);
this.setSize(new Dimension(500,400));
this.setTitle("超市管理系統");
jLabel2.setFont(new java.awt.Font("SansSerif", 0, 30));
jLabel2.setText("業務單位信息");
jLabel3.setFont(new java.awt.Font("SansSerif", 0, 25));
jLabel3.setText("產品編號");
jTextField1.setText("");
jLabel4.setFont(new java.awt.Font("SansSerif", 0, 25));
jLabel4.setText("公司名稱");
jTextField2.setText("");
jLabel5.setFont(new java.awt.Font("SansSerif", 0, 25));
jLabel5.setText("訂單號碼");
jTextField3.setText("");
jLabel6.setFont(new java.awt.Font("SansSerif", 0, 25));
jLabel6.setText("電 話");
jTextField4.setText("");
jButton1.setFont(new java.awt.Font("SansSerif", 0, 25));
jButton1.setText("提交");
jButton1.addActionListener(new delbook_jButton1_actionAdapter(this));
contentPane.add(jLabel1, new XYConstraints(179, 1, 153, 32));
contentPane.add(jLabel2, new XYConstraints(162, 33, -1, -1));
contentPane.add(jLabel3, new XYConstraints(83, 89, -1, -1));
contentPane.add(jTextField1, new XYConstraints(189, 88, 141, 36));
contentPane.add(jTextField2, new XYConstraints(189, 149, 142, 36));
contentPane.add(jLabel4, new XYConstraints(84, 148, -1, -1));
contentPane.add(jTextField3, new XYConstraints(188, 206, 143, 33));
contentPane.add(jLabel5, new XYConstraints(84, 204, -1, -1));
contentPane.add(jLabel6, new XYConstraints(84, 253, -1, -1));
contentPane.add(jTextField4, new XYConstraints(189, 260, 143, 36));
contentPane.add(jButton1, new XYConstraints(197, 318, -1, -1));
}
//Overridden so we can exit when window is closed
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
}
}
void update() {
try {
//定義顯示的字元串
String str1;
String str2;
String str3;
String str4;
str1 = jTextField1.getText();
str2 = jTextField2.getText();
str3 = jTextField3.getText();
str4 = jTextField4.getText();
//裝載jdbc驅動程序
String driverName = "oracle.jdbc.OracleDriver";
Driver driver = (Driver) Class.forName(driverName).newInstance();
//連接資料庫
Connection con = DriverManager.getConnection(
"jdbc:oracle:thin:@thsspc0791:1521:liuyong", "hr", "tongfang");
PreparedStatement pstmt = con.prepareStatement(
" insert Customer1('goodID','Name','PID','tel')values(?,?,?,?)");
pstmt.setString(1, str1);
pstmt.setString(2, str2);
pstmt.setString(1, str3);
pstmt.setString(4, str4);
ResultSet res = pstmt.executeQuery();
pstmt.close();
con.close();
}catch (InstantiationException e) {
System.out.println(e.getMessage());
}catch (IllegalAccessException e) {
System.out.println(e.getMessage());
}catch (ClassNotFoundException e) {
System.out.println(e.getMessage());
}catch (SQLException edd) {
edd.printStackTrace() ;
System.out.println(edd.getMessage());
}
}
void jButton1_actionPerformed(ActionEvent e) {
update();
}
}
class delbook_jButton1_actionAdapter implements java.awt.event.ActionListener {
delbook adaptee;
delbook_jButton1_actionAdapter(delbook adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
package untitled5;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import com.borland.jbcl.layout.*;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright © 2003</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
public class retur extends JFrame {
JPanel contentPane;
XYLayout xYLayout1 = new XYLayout();
JLabel jLabel1 = new JLabel();
//Construct the frame
public retur() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
//Component initialization
private void jbInit() throws Exception {
contentPane = (JPanel) this.getContentPane();
jLabel1.setFont(new java.awt.Font("SansSerif", 0, 20));
jLabel1.setForeground(Color.red);
jLabel1.setText("超市管理系統");
contentPane.setLayout(xYLayout1);
this.setSize(new Dimension(400, 300));
this.setTitle("超市管理系統");
contentPane.add(jLabel1, new XYConstraints(139, 1, 126, 33));
}
//Overridden so we can exit when window is closed
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
}
}
}
package untitled5;
import java.io.*;
import java.net.*;
import java.sql.*;
import java.lang.*;
import javax.sql.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import com.borland.jbcl.layout.*;
import com.borland.dbswing.*;
//貨品信息登記
public class Frame2 extends JFrame {
JPanel contentPane;
JLabel jLabel1 = new JLabel();
XYLayout xYLayout1 = new XYLayout();
JLabel jLabel2 = new JLabel();
JLabel jLabel3 = new JLabel();
JTextField jTextField1 = new JTextField();
JLabel jLabel4 = new JLabel();
JTextField jTextField2 = new JTextField();
JPanel jPanel1 = new JPanel();
XYLayout xYLayout2 = new XYLayout();
JScrollPane jScrollPane1 = new JScrollPane();
JLabel jLabel5 = new JLabel();
JTextField jTextField3 = new JTextField();
//Construct the frame
public Frame2() {
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
//Component initialization
private void jbInit() throws Exception {
contentPane = (JPanel) this.getContentPane();
contentPane.setLayout(xYLayout1);
this.setSize(new Dimension(600, 500));
this.setTitle("超市管理系統");
this.addHierarchyBoundsListener(new Frame2_this_hierarchyBoundsAdapter(this));
jLabel1.setFont(new java.awt.Font("SansSerif", 0, 25));
jLabel1.setForeground(Color.red);
jLabel1.setText("超市管理系統");
contentPane.setForeground(Color.black);
jLabel2.setFont(new java.awt.Font("SansSerif", 0, 30));
jLabel2.setText("產 品 信 息 展 示");
// statusBar.setFont(new java.awt.Font("SansSerif", 0, 20));
jLabel3.setFont(new java.awt.Font("SansSerif", 0, 20));
jLabel3.setText("產品名稱");
jTextField1.setText("");
jLabel4.setEnabled(true);
jLabel4.setFont(new java.awt.Font("SansSerif", 0, 20));
jLabel4.setText("產品ID號");
jTextField2.setText("");
jTextField2.addActionListener(new Frame2_jTextField2_actionAdapter(this));
jPanel1.setLayout(xYLayout2);
jLabel5.setFont(new java.awt.Font("SansSerif", 0, 25));
jLabel5.setForeground(Color.red);
jLabel5.setText("該產品詳細信息");
jTextField3.setText("");
contentPane.add(jLabel1, new XYConstraints(237, 0, 153, 40));
contentPane.add(jLabel2, new XYConstraints(200, 47, 231, 58));
contentPane.add(jLabel3, new XYConstraints(47, 102, 101, 42));
contentPane.add(jTextField1, new XYConstraints(128, 108, 112, 34));
contentPane.add(jTextField2, new XYConstraints(361, 107, 109, 36));
contentPane.add(jPanel1, new XYConstraints(75, 166, 453, 277));
jPanel1.add(jScrollPane1, new XYConstraints(14, 8, 433, 221));
jScrollPane1.getViewport().add(jTextField3, null);
jPanel1.add(jLabel5, new XYConstraints(112, 240, -1, -1));
contentPane.add(jLabel4, new XYConstraints(278, 111, -1, -1));
}
//Overridden so we can exit when window is closed
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
}
}
void Select() {
try {
String str1, str2;
str1 = jTextField1.getText();
str2 = jTextField2.getText();
㈡ 美發店會員管理系統源碼,要求可以直接運行,java,sql,單機,過畢設
您好~我這里有很多基於javweb的會員管理系統, 只要把title改了也算是美發店會員管理系統, 都是通用的, 技術框架選用了jsp+springmvc+mybatis, 採用mvc設計模式, 希望能夠幫助到您
㈢ C++商場銷售管理系統 源代碼
/*************************************************
問題補充:設計一個收銀台結算程序:貨品的信息有貨品代碼、
貨品名稱、貨品價格、貨品數量等,該程序能根據貨品的輸入代碼
統計貨品價格,對多個貨品能做價格的累加統計並顯示清單,
另具有找零功能。
需求:
1、實現對貨品信息的輸入和查詢。
2、能根據貨品的輸入代碼統計貨品價格。
3、能對十個貨品的價格統計並顯示清單。
4、具有找零功能!
*************************************************/
//為了順便練習一下使用鏈表結構,所以用鏈表結構實現。
// -----By kuaidh00--------2008/01/08-------------
//****************************************************
#include <iostream>
#include <string>
#include <iomanip>
#include <stdio.h>
using namespace std;
struct Sale
{
//數據域。
string m_code;
string m_name;
float m_price;
unsigned int m_quantity;
//指針域。
struct Sale* next;
};
typedef struct Sale Node;//取外別名,Node.
typedef Node* Link;//取個別名,Link.
//創建鏈表。
Link Create(Link Head)
{
//-----初始化頭節點 Head-------
Head=(Link)new Node;//每次動態分配一個Node內存大小。
Head->m_code="";
Head->m_name="";
Head->m_price=0.0;
Head->m_quantity=0;
Head->next=NULL;
//-----
Link ptr;//定義一個用來運算的指針 ptr。
ptr=Head;//指到首節點。
Link DNode;//定義數據節點,用來存放數據。
char GoOn;
do
{
cout<<"商品信息錄入! "<<endl;
string code,name;
float price;
unsigned int quantity;
cout<<"輸入代碼:"<<endl;
cin>>code;
cout<<"輸入名稱:"<<endl;
cin>>name;
cout<<"輸入價格:"<<endl;
cin>>price;
while(cin.fail())
{
cout<<"請輸入正確的格式:"<<endl;
cin.clear();
fflush(stdin);
cin>>price;
}
cout<<"輸入數量:"<<endl;
cin>>quantity;
while(cin.fail())
{
cout<<"請輸入正確的格式:"<<endl;
cin.clear();
fflush(stdin);
cin>>quantity;
}
//----數據域-----
DNode=(Link)new Node;//每次動態分配一個Node內存大小。
DNode->m_code=code;
DNode->m_name=name;
DNode->m_price=price;
DNode->m_quantity=quantity;
//----指針域-----
DNode->next=NULL;//作為尾節點加入。
ptr->next=DNode;//鏈入鏈表中。
ptr=DNode;//使新節點成為下一次的前驅。
cout<<"商品信息錄入成功! 是否繼續錄入?(Y/N) ";
cin>>GoOn;
}while(GoOn=='Y'||GoOn=='y');
return Head;
}
//釋放鏈表。
void Release(Link Head)
{
Link ptr;
while(Head!=NULL)
{
ptr=Head;
Head=Head->next;
delete ptr;
}
}
//查詢。
Link Search(Link Head,string& code)
{
Link ptr;
//Link front;
ptr=Head;//定義一個用於操作的指針ptr。
//ptr=fornt->next;
while(ptr!=NULL)
{
if(ptr->m_code==code)
return ptr;
else
ptr=ptr->next;
}
cout<<"無此商品!"<<endl;
return ptr;//此時的ptr為NULL了。
}
//列印鏈表。
void Display(Link Head)
{
Link ptr;
ptr=Head->next;//,不要頭節點,只輸出數據節點。
cout<<"==========================================================="<<endl;
cout<<"===============所有商品信息清單============================"<<endl;
cout<<"==========================================================="<<endl;
cout<<"貨品代碼=======貨品名稱======貨品價格======貨品數量===="<<endl;
while(ptr!=NULL)
{
cout<<setw(15)<<left<<ptr->m_code
<<setw(15)<<left<<ptr->m_name
<<setw(15)<<left<<ptr->m_price
<<setw(15)<<left<<ptr->m_quantity<<endl;
ptr=ptr->next;
}
}
void Display_One(Link Head,string& code,unsigned quantity)
{
Link ptr;
ptr=Search(Head,code);//,不要頭節點,只輸出數據節點。
cout<<"貨品代碼=======貨品名稱======貨品價格======貨品數量======小計(元)===="<<endl;
cout<<setw(15)<<left<<ptr->m_code
<<setw(15)<<left<<ptr->m_name
<<setw(15)<<left<<ptr->m_price
<<setw(15)<<left<<quantity
<<setw(15)<<left<<quantity*ptr->m_price<<endl;
}
//單個商品小結。
float CheckOut(Link Head,string& code,unsigned quantity)
{
Link ptr;
float sum(0);
ptr=Search(Head,code);
sum=(ptr->m_price*quantity);
return sum;
}
//總結帳。
void Total(Link Head)
{
Link ptr;
ptr=Head;
float sum(0);
float factly;
char GoOn;
while(1)
{
cout<<"要結束商品買入請按\'N\',其它任意鍵表示繼續買入! "<<endl;
cin>>GoOn;
if(GoOn=='N'||GoOn=='n')
break;
else
{
string code;
unsigned int quantity;
cout<<"輸入要購買的商品代碼:"<<endl;
cin>>code;
cout<<"輸入要購買的數量:"<<endl;
cin>>quantity;
sum+=CheckOut(ptr,code,quantity);
cout<<"你購買的商品為:"<<endl;
Display_One(ptr,code,quantity);
}
}
cout<<"----------------------------------------------------"<<endl;
cout<<"你應該付 "<<sum<<"元!"<<endl;
cout<<"你實際付(元): ";
cin>>factly;
cout<<"應該找回你 "<<factly-sum<<"元!"<<endl;//找零。
}
int main()
{
//---------菜單選項----------------
Link Head=NULL;
//Head=Create(Head);
int loop=1;
while(loop)
{
cout<<"***************************************************"<<endl;
cout<<"*---------------------菜單選項--------------------*"<<endl;
cout<<"*-------------------------------------------------*"<<endl;
cout<<"* 1.輸入數據 2.買入商品 3.顯示數據 0.退出系統 *"<<endl;
cout<<"***************************************************"<<endl;
int menu;
cin>>menu;
if(cin.fail())
{
cout<<"請按菜單對應的數字選擇合適的操作,謝謝合作!"<<endl;
cin.clear();
fflush(stdin);
cin>>menu;
}
switch(menu)
{
case 0:
cout<<"已退出系統!"<<endl;
loop=0;
break;
case 1:
Head=Create(Head);
break;
case 2:
Total(Head);
break;
case 3:
Display(Head);
break;
}//switch(menu)
}//while(loop)
//Display(Head);
//Total(Head);
Release(Head);
return 0;
}
㈣ 求VB和 ACCESS開發的小型超市管理系統源碼
樓主,幫你頂一下吧,算是盡點責任...
詳見:商貿財神進銷存軟體
樓主可以直接下載使用
㈤ 急求ASP.NET寵物店管理系統源代碼
㈥ 能給我一份你那小型超市管理系統的源代碼嗎
如果是超市管理系統,
可以從采購管理,訂單管理,庫存管理,供應商管理,客戶管理,倉儲服務提供商管理,倉庫及出入庫管理,物流服務提供商管理,車輛、司機、線路、配送管理,員工管理,財務管理角度分析設計與開發。
關鍵字:代碼 , 管理 , 系統 ,
友情提示:預付定金是詐騙
㈦ 商場電器銷售管理系統 c++源代碼
汗!
分太低了!
㈧ java超市管理系統源代碼
只寫個demo級的常式很好寫,但用到生產環境中還得具體分析設計再編碼。這種代碼網上太多了內,你隨便搜下就有了。
㈨ 有誰有用JAVA編寫的小型超市管理系統的源代碼啊 資料庫用mysql 急啊
作業吧?找個類似的圖書館一類的東西改一下資料庫不就行了?