예제 #1
0
 private void panelButton_Item_Click(string senderName)
 {
     switch (senderName)
     {
             //会员登记
         case "panelButton_Member_Add":
             memRegister mRegister = new memRegister();
             mRegister.ShowDialog();
             break;
         case "panelButton_Member_List":
             memList mList = new memList();
             mList.ShowDialog();
             break;
         case "panelButton_Member_Recharge":
             prepaidCardRecharge pRecharge = new prepaidCardRecharge();
             pRecharge.ShowDialog();
             break;
         case "panelButton_Member_DataInput":
             DataInput dmInput = new DataInput();
             dmInput.ShowDialog();
             break;
         case "panelButton_Goods_Add":
             GoodsPutIn goodsPutIn = new GoodsPutIn();
             goodsPutIn.ShowDialog();
             break;
         case "panelButton_Goods_List":
             GoodsList gList = new GoodsList();
             gList.ShowDialog();
             break;
         case "panelButton_Goods_DataInput":
             DataInput dgInput = new DataInput();
             dgInput.ShowDialog();
             break;
         case "panelButton_stockAdd":
             Stock_AddGoods stock_AddGoods = new Stock_AddGoods();
             stock_AddGoods.orderType = "采购进货";
             stock_AddGoods.ShowDialog();
             break;
         case "panelButton_Gift_Exchang":
             Exchang exchange = new Exchang();
             exchange.ShowDialog();
             break;
         case "panelButton_Gift_Setup":
             GiftList giftList = new GiftList();
             giftList.ShowDialog();
             break;
         case "panelButton_Gift_His":
             GiftHistory giftHis = new GiftHistory();
             giftHis.ShowDialog();
             break;
         case "panelButton_Order_Expense":
             Expense exp = new Expense();
             exp.ShowDialog();
             break;
         case "panelButton_Order_Point":
             Expense_Point exp_Pointe = new Expense_Point();
             exp_Pointe.ShowDialog();
             break;
         case "panelButton_Order_Expense_Time":
             break;
         case "panelButton_Order_Cancel":
             break;
         case "panelButton_Order_History":
             ExpHistory expHis = new ExpHistory();
             expHis.ShowDialog();
             break;
         case "panelButton_Setup_Level":
             SetLevel setLevel = new SetLevel();
             setLevel.ShowDialog();
             break;
         case "panelButton_Setup_GoodsClass":
             SetClass setClass = new SetClass();
             setClass.ShowDialog();
             break;
         case "panelButton_Setup_Custom":
             break;
         case "panelButton_Setup_Remind":
             break;
         case "panelButton_Setup_Master":
             VipSoft.SystemSet.Master master = new VipSoft.SystemSet.Master();
             master.ShowDialog();
             break;
         case "panelButton_Step_Shop":
             Shop shop = new Shop();
             shop.ShowDialog();
             break;
         case "panelButton_SystemSet":
             break;
         case "panelButton_Export_Order":
             OrderReport orderReport = new OrderReport();
             orderReport.ShowDialog();
             break;
         case "panelButton_Export_Gift":
             PointExchangeReport pointExchangeReport = new PointExchangeReport();
             pointExchangeReport.ShowDialog();
             break;
         case "panelButton_Export_Cai":
             ReportStock rStock = new ReportStock();
             rStock.ShowDialog();
             break;
         case "panelButton_Export_Recharge":
             RechargeMoneyReport rechrgeMoneyReport = new RechargeMoneyReport();
             rechrgeMoneyReport.ShowDialog();
             break;
         case "panelButton_Export_PointChange":
             PointChangeReport pointChangeReport = new PointChangeReport();
             pointChangeReport.ShowDialog();
             break;
         case "panelButton_Export_Total":
             break;
         case "panelButton_CouponSet":
             Coupon coupon = new Coupon();
             coupon.ShowDialog();
             break;
         default:
             break;
     }
 }
예제 #2
0
 private void toolStripButton_Item_Click(object sender, EventArgs e)
 {
     ToolStripButton item = (ToolStripButton)sender;
     switch (item.Name)
     {
         case "toolStripButton_Add":
             GoodsPutIn goodsP = new GoodsPutIn();
             goodsP.GoodsListRefresh += new GoodsListRefreshHandler(BindList);
             goodsP.Show(this.Owner);
             break;
         case "toolStripButton_Edit":
             if (this.dataGridView_List.SelectedRows.Count == 1)
             {
                 ShowEditForm(int.Parse(this.dataGridView_List.SelectedRows[0].Cells[1].Value.ToString()));
             }
             break;
         case "toolStripButton_Delete":
             DeleteItem();
             break;
         case "toolStripButton_DataInput":
             DataInput dataInput = new DataInput();
             dataInput.ShowDialog();
             break;
         case "toolStripButton_Close":
             this.Close();
             break;
     }
 }