图4.9 系统主窗体操作界面设计图
static void Main()//主程序
{
LongInForm LonInForm = new LongInForm();
LonInForm.ShowDialog();
if (LongInForm.lfstate==true)
{
Application.Run(new MainFrm());
}
}
4.2.3 系统管理模块
本系统的管理模块分为添加用户和修改密码界面,分别如图4.10和图4.11所示
图4.10 系统管理之添加用户界面设计图
rivate void AddUser_Load(object sender, EventArgs e)
{
}
图4.11 系统管理之修改密码界面设计图
private void PwdUpdate_Load(object sender, EventArgs e)
{
}
4.2.4 货物管理模块
本系统的货物管理分为货物信息界面和货物查询界面,分别如图4.12和4.13所示
图4.12 货物管理之货物信息界面设计图
private void store_Load(object sender, System.EventArgs e)
{
DataSet storeset=new DataSet();
MyConn.Open();//打开连接
storeAdapter.SelectCommand.CommandText = "SELECT * FROM store";
storeAdapter.SelectCommand.Connection = MyConn;
storeAdapter.Fill(storeInfo);//填充数据表
this.dataGrid1.DataSource = storeInfo.DefaultView;
FNReport = (CurrencyManager)BindingContext[storeInfo];
DataGridTableStyle fn = new DataGridTableStyle();
this.DataBindingsFunction();
fn.AlternatingBackColor = Color.Blue;//颜色设置
fn.MappingName = storeInfo.TableName;
this.dataGrid1.Select(0);//选定第一列
}
图4.13 货物管理之货物查询界面设计图
private void Selstore_Load(object sender, System.EventArgs e)
{
try
{
this.sqlConnection1.ConnectionString= "server=.;Trusted_Connection=yes;user=sa;pwd=sa;database=storage";//建立连接
this.sqlConnection1.Open();
DataSet storeSet=new DataSet();
storeAdapter.SelectCommand.CommandText="SELECT * FROM store"; C#条码仓库管理系统的设计与开发—统计、报表模块(10):http://www.751com.cn/jisuanji/lunwen_871.html