资源简介

实现药品管理、药品清单、供货、退货、销售、聊天等功能。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient;
namespace WindowsFormsApp1
{
    public partial class adddrug : Form
    {
        public adddrug()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender EventArgs e)
        {

        }

        private void label4_Click(object sender EventArgs e)
        {

        }

        private void textBox1_TextChanged(object sender EventArgs e)
        {

        }

        private void button5_Click(object sender EventArgs e)
        {
            string a = textBox1.Text;
            string b = textBox2.Text;
            string c = textBox3.Text;
            string d = textBox4.Text;

            string coonString = “server =LENOVO-PC\\SQLEXPRESS;database=denglu;uid=sa;pwd=123456“;
            //string coonString = “server=home-pc\\SQLEXPRESS;Initial Catalog=System;Integrated Security=SSPI“;
            SqlConnection coon = new SqlConnection(coonString);
            coon.Open();//打开连接   
            SqlCommand cmd = coon.CreateCommand();
            cmd.CommandText = “insert into medicine values (‘“+a+“‘‘“+b+“‘‘“+c+“‘‘“+d+“‘)“;
            cmd.ExecuteNonQuery();//执行sql   
            MessageBox.Show(“添加成功“);
        }

        private void button1_Click(object sender EventArgs e)
        {
            this.Hide();
            Form3 form = new Form3();
            form.Show();
        }

        private void button2_Click(object sender EventArgs e)
        {
            
        }

        private void button3_Click(object sender EventArgs e)
        {
            this.Hide();
            deletedrug form = new deletedrug();
            form.Show();
        }

        private void button4_Click(object sender EventArgs e)
        {
            this.Hide();
            Form1 form = new Form1();
            form.Show();
        }

        private void button6_Click(object sender EventArgs e)
        {
            this.Hide();
            sale form = new sale();
            form.Show();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    3145728  2019-01-23 15:09  drugmanage\denglu.mdf

     文件    1048576  2019-01-23 15:09  drugmanage\denglu_log.ldf

     文件         40  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\COMMIT_EDITMSG

     文件        770  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\config

     文件         73  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\description

     文件         23  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\HEAD

     文件        478  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\hooks\applypatch-msg.sample

     文件        896  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\hooks\commit-msg.sample

     文件        189  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\hooks\post-update.sample

     文件        424  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\hooks\pre-applypatch.sample

     文件       1642  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\hooks\pre-commit.sample

     文件       1348  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\hooks\pre-push.sample

     文件       4951  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\hooks\pre-rebase.sample

     文件        544  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\hooks\pre-receive.sample

     文件       1239  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\hooks\prepare-commit-msg.sample

     文件       3610  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\hooks\update.sample

     文件        225  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\index

     文件        240  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\info\exclude

     文件        181  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\logs\HEAD

     文件        181  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\logs\refs\heads\master

     文件        751  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\objects\1f\f0c423042b46cb1d617b81efb715defbe8054d

     文件       2112  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\objects\3c\4efe206bd0e7230ad0ae8396a3c883c8207906

     文件        156  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\objects\5a\3627e4aac1c6e15887b8fa4dcd42cfba08cd33

     文件         89  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\objects\91\e3470e1645e6e8d0de6fe9f6b242f366e9a393

     文件         41  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.git\refs\heads\master

     文件       2581  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.gitattributes

     文件       4565  2019-01-18 10:41  drugmanage\manage\WindowsFormsApp1\.gitignore

     文件      85645  2017-09-16 14:22  drugmanage\manage\WindowsFormsApp1\.vs\config\applicationhost.config

    ..A..H.    133120  2019-01-23 15:11  drugmanage\manage\WindowsFormsApp1\.vs\WindowsFormsApp1\v15\.suo

     文件     856064  2019-01-23 14:25  drugmanage\manage\WindowsFormsApp1\.vs\WindowsFormsApp1\v15\sqlite3\storage.ide

............此处省略202个文件信息

评论

共有 条评论