资源简介
C#+SQL SERVER耗材管控系统,该系统主板管控耗材入库、出库、退领、档案备份、查询等功能!!
代码片段和文件信息
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.IO;
using System.Drawing.Imaging;
namespace Consumable_Control_System_V1._00
{
public partial class Add_NEW_Item : Form
{
public Add_NEW_Item()
{
InitializeComponent();
}
private void Form1_FormClosing(object sender FormClosingEventArgs e)
{
System.Environment.Exit(1);
}
public String User_Name = String.Empty;
public int User_Grade = 0;
private void Add_NEW_Item_Load(object sender EventArgs e)//区域
{
String Sql_Str = “SELECT * FROM Equipment_Use_Area“;
OperationDatabase GetStorageArea = new OperationDatabase(@“SERVER2\SERVER2“ “E_Material_Control“ “sa“ “adminsystem“ Sql_Str);
if (GetStorageArea.Get_Storage_Area(comboBox1 “Region_For_Use“))
{
comboBox1.Focus();
comboBox1.Enabled = true;
}
Option_Windows ss = (Option_Windows)this.Owner;
User_Name = ss.User_Name;
User_Grade = ss.User_Grade;
textBox6.Text = User_Name;
}
private void comboBox1_SelectedIndexChanged(object sender EventArgs e)//品版
{
if (comboBox1.Text != null && comboBox1.Text != String.Empty)
{
comboBox2.Items.Clear();
String Sql_Str = “SELECT * FROM Trademark_Table“;
OperationDatabase GetTrademark = new OperationDatabase(@“SERVER2\SERVER2“ “E_Material_Control“ “sa“ “adminsystem“ Sql_Str);
if (GetTrademark.Get_Storage_Area(comboBox2 “Trademark_Name“))
{
comboBox1.Enabled = false;
comboBox2.Enabled = true;
comboBox2.Focus();
}
else
{
comboBox1.Focus();
comboBox1.SelectAll();
}
}
else
{
comboBox1.Focus();
comboBox1.SelectAll();
}
}
private void comboBox2_SelectedIndexChanged(object sender EventArgs e)//物品名称
{
if (comboBox2.Text != null && comboBox2.Text != String.Empty)
{
comboBox2.Enabled = false;
textBox1.Enabled = true;
textBox1.Focus();
}
else
{
comboBox2.Focus();
comboBox2.SelectAll();
}
}
private void textBox1_KeyPress(object sender KeyPressEventArgs e)//物品名称
{
if (e.KeyChar == (Char)Keys.Enter)
{
if (text
- 上一篇:Linux 下服务器与客户端之间的文件传输
- 下一篇:在线招聘求职系统
相关资源
- mysql数据库驱动8.0.12版本
- 安装SQLServer 2008 R2安装详细图文教程
- SQLServer2008R2简体中文版(64位)
- SQL Server 2000 绿色版
- SQL Server 绿色版,不需安装
- mha4mysql-0.56-0.el6
- mysql_5.6.24_winx64
- MYSQL作业提交作业批改系统.zip
- Maven搭建Spring+Mybatis+MySql
- sql server 2012 R2企业版安装光盘ISO
- 成语首尾字用于成语接龙.sql
- MySQL中文手册api帮助文档
- linux_mysql5.1.66x86_64.zip
- postgresql分布式安装部署
- PostgreSQL-从入门到精通
- SQL文自动整理格式工具
- 赛门铁克Backup Exec 12防护Microsoft SQL
- 6.SparkSQL下--Spark实战应用.pdf
- oracle 到mysql转换工具
- SqlServer+ServHA Cluster双机热备配置实战
- Sql高级查询练习题(有答案
- 易语言SQL操作ACCESS数据库例程源码
- 易语言SQLserver数据库操作例程源码
- 数据库原理实验指导书Mysql
- 金蝶K3 新旧物料编码转换 SQL语句
- mysql 5.6 绿色精简版 5Mb
- mysql Premium 破解
- PL SQL Developer 7.1.4 汉化包
- 深入浅出MySQL第二版本pdf
- 深入浅出MySQL.pdf
评论
共有 条评论