資源簡介
C#超市倉庫管理系統(sql server數據庫),畢業設計必備,直接使用即可啊。程序做的簡單明了

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
//Download?by?http://www.codefans.net
using?GoodsReportManage.ItemClass;
using?GoodsReportManage.Goods;
using?System.Collections;
namespace?GoodsReportManage
{
????public?partial?class?AppMain?:?Form
????{
????????public?AppMain()
????????{
????????????InitializeComponent();
????????}
????????SqlbaseClass?G_SqlClass?=?new?SqlbaseClass();
????????///?
????????///?根據用戶權限分配顯示菜單
????????///?
????????public?void?MenuIsVisible()
????????{
????????????ArrayList?arylst?=?new?ArrayList();
????????????ToolStripMenuItem[]?menu?=?new?ToolStripMenuItem[]?{
????????????????this.menuEmployeethis.menuCompanythis.menuCustomerthis.menuGoodsInthis.menuGoodsOutthis.menuSellGoods
????????????????this.menuGoodsBackthis.menuDepotChangethis.menuDepotAlarmthis.menuSysUserthis.menuPopedomSetthis.menuDatabakthis.menuReBakData
????????????};
????????????DataSet?P_ds?=?G_SqlClass.GetDs(“SELECT?*?FROM?v_UserView?WHERE?SysLoginName?=?‘“+?PropertyClass.SendNameValue+“‘“);
????????????for?(int?i?=?0;?i?13;?i++)
????????????{
????????????????arylst.Add(P_ds.Tables[0].Rows[0][14+i].ToString());
????????????}
????????????for?(int?j?=?0;?j?????????????{
????????????????if?(arylst[j].ToString()?==?“False“)
????????????????{
????????????????????menu[j].Visible?=?false;
????????????????}
????????????????else
????????????????{
????????????????????menu[j].Visible?=?true;
????????????????}
????????????}
????????}
????????private?void?timer1_Tick(object?sender?EventArgs?e)
????????{
????????????this.statusTime.Text?=?“當前時間:“?+?DateTime.Now.ToString();
????????}
????????private?void?AppMain_Load(object?sender?EventArgs?e)
????????{
????????????this.timer1.Start();
????????????this.statusUser.Text?=?“系統操作員:“+PropertyClass.SendNameValue;
????????????MenuIsVisible();
????????}
????????private?void?AppMain_FormClosing(object?sender?FormClosingEventArgs?e)
????????{
????????}
????????private?void?Menu_Click(object?sender?EventArgs?e)
????????{
????????????WinOperationClass?P_Menu?=?new?WinOperationClass();??//聲明對WinForm窗體進行操作的類對象
????????????P_Menu.ShowForm((ToolStripMenuItem)sender?this);???//調用類中的方法,完成對窗體中ToolStripMenuItem控件相應項的操作
????????}
????????private?void?AppMain_FormClosed_1(object?sender?FormClosedEventArgs?e)
????????{
????????????if?(MessageBox.Show(“確定要退出嗎?“?“提示對話框“?MessageBoxButtons.YesNo?MessageBoxIcon.Information)?==?DialogResult.Yes)
????????????{
????????????????Application.Exit();
????????????????this.Dispose();
????????????}
????????????else
????????????{
????????????????AppMain?app?=?new?AppMain();
????????????????app.Show();
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
-----------?---------??----------?-----??----
??????????????6810018????????????????????192
- 上一篇:IrisSkin4使用
- 下一篇:ScintillaNET文本編輯器源碼
評論
共有 條評論