Exemplo n.º 1
0
 public static bool HasLogin_GM = false;                     //该次是否已有管理员登录
 public GoodsManager()
 {
     InitializeComponent();
     change.Hide();
     GM_DM  = new DataManager();
     GM_AL  = new AdminLogin();
     GM_AOA = new AllOfAll();
     UpdateDataView_GM("SELECT * FROM Goods");
 }
Exemplo n.º 2
0
 public MaintainManager()
 {
     InitializeComponent();
     change.Hide();
     MM_DM  = new DataManager();
     MM_AL  = new AdminLogin();
     MM_AOA = new AllOfAll();
     UpdateDataView_MM("SELECT * FROM Maintain");
 }
Exemplo n.º 3
0
 public static bool HasLogin_IM = false;                     //该次是否已有管理员登录
 public InstallManager()
 {
     InitializeComponent();
     change.Hide();
     IM_DM  = new DataManager();
     IM_AL  = new AdminLogin();
     IM_AOA = new AllOfAll();
     UpdateDataView_IM("SELECT * FROM Install");
 }
Exemplo n.º 4
0
 public static bool HasLogin_CM = false;                     //该次是否已有管理员登录
 public CustomerManager()
 {
     InitializeComponent();
     add.Hide();
     change.Hide();
     delete.Hide();
     CM_DM  = new DataManager();
     CM_AL  = new AdminLogin();
     CM_IM  = new InstallManager();
     CM_MM  = new MaintainManager();
     CM_GM  = new GoodsManager();
     CM_AOA = new AllOfAll();
     UpdateDataView_CM("SELECT * FROM Customer");                 //进行显示界面的初始化
 }
Exemplo n.º 5
0
        private bool IsHave  = false;                                    //判断是否查询到数据

        //↓构造函数,进行相关数据初始化
        public ProductManager()
        {
            InitializeComponent();
            this.add.Hide();                                             //只显示信息界面
            this.change.Hide();
            PM_DM  = new DataManager();                                  //实例化PM_DM
            PM_AL  = new AdminLogin();
            PM_AOA = new AllOfAll();
            UpdateDataView("SELECT * FROM Product");                     //进行显示界面的初始化
            GetProductsNumber();                                         //得到产品总数
            string        sql      = "SELECT function FROM Product";     //查询所有功能
            List <string> Function = PM_DM.GetNoRepeatList(sql);         //得到产品功能分类

            //↓遍历所有功能分类,若不在默认列表内则添加至列表
            foreach (string i in Function)
            {
                if (i != "制冷电器" && i != "空调器" && i != "清洁电器" && i != "厨房电器" && i != "电暖器具" && i != "整容保健电器" && i != "声像电器" && i != "报警电器")
                {
                    comboBox1.Items.Add(i);
                    comboBox6.Items.Add(i);
                }
            }
        }