Beispiel #1
0
 private void Style_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
 {
     Utils.utils._ShowWait("请稍后,主题正在应用", "大约需要10秒");
     DevExpress.XtraBars.Navigation.TileNavSubItem tileNavSubItem = (sender) as DevExpress.XtraBars.Navigation.TileNavSubItem;
     defaultLookAndFeel1.LookAndFeel.SkinName = tileNavSubItem.Caption;
     Utils.utils._EndShowWait();
 }
        private void nButClose_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
        {
            try
            {
                Control fp = Parent;

                while (fp.Parent != null)
                {
                    fp = fp.Parent;
                }

                if ((fp as Form) != null)
                {
                    (fp as Form).Close();
                }
            }
            catch (Exception ex)
            {
                MsgBox.ShowException(ex, this);
            }
        }
Beispiel #3
0
        private void navExit_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
        {
            if (MessageBox.Show("คุณต้องการ ออกจากระบบใช่หรือไม่", "ยืนยันการออกจากระบบ", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            {
                //this.Opacity = 0;
                //this.ShowInTaskbar = false;

                //bool exit = false;
                //FmLogin fmLogin = new FmLogin();
                //bool success = false;
                //while (!success && !exit)
                //{
                //    if (fmLogin.ShowDialog(this) == DialogResult.OK)
                //    {
                //        success = true;
                //    }
                //    else
                //    {
                //        exit = true;
                //    }
                //}

                //if (!exit)
                //{
                //    this.Opacity = 100;
                //    this.ShowInTaskbar = true;
                //    AddPanel(Param.Screen.Sale);
                //    Param.SelectedScreen = (int)Screen.Sale;
                //}
                //else
                //{
                //    this.Dispose();
                //}
                this.Dispose();
            }
        }
Beispiel #4
0
        private void tileNavPane1_TileClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
        {
            Util.LoadScreenPermissionDetail(e.Element.Name);

            if (e.Element.Name == "navSale")
            {
                AddPanel(Param.Screen.Sale);
            }
            else if (e.Element.Name == "navStock")
            {
                AddPanel(Param.Screen.Stock);
            }
            else if (e.Element.Name == "navProduct")
            {
                AddPanel(Param.Screen.Product);
            }
            else if (e.Element.Name == "navCustomerData")
            {
                AddPanel(Param.Screen.Customer);
            }
            else if (e.Element.Name == "navReceived")
            {
                AddPanel(Param.Screen.ReceiveProduct);
            }
            else if (e.Element.Name == "navReportDaily")
            {
                AddPanel(Param.Screen.Report);
            }
            else if (e.Element.Name == "navConfig")
            {
                AddPanel(Param.Screen.Config);
            }
            else if (e.Element.Name == "navClaimData")
            {
                AddPanel(Param.Screen.Claim);
            }
            else if (e.Element.Name == "navReportStock")
            {
                AddPanel(Param.Screen.ReportStock);
            }
            else if (e.Element.Name == "navCredit")
            {
                AddPanel(Param.Screen.Credit);
            }
            else if (e.Element.Name == "navRefresh")
            {
                //InitializeComponent();
                //Param.UserId = "0000";
                //Param.UserCode = "1234";

                //Param.EmployeeId = null;
                //Param.EmployeeType = null;

                //Util.ConnectSQLiteDatabase();
                //Util.GetDiviceId();
                //this.Opacity = 0;
                //this.ShowInTaskbar = false;

                //Main_Load(sender,(e));
                InitialCloudData();
            }
            else if (e.Element.Name == "navReportProduct")
            {
                AddPanel(Param.Screen.ReportProduct);
            }
            else if (e.Element.Name == "navReport")
            {
                AddPanel(Param.Screen.Report);
            }
            else if (e.Element.Name == "navClaimDataShop")
            {
                if (Param.ShopId == "66666666")
                {
                    AddPanel(Param.Screen.claimShop);
                }
            }
            else if (e.Element.Name == "navClaimReceivedShop")
            {
                if (Param.ShopId == "66666666")
                {
                    AddPanel(Param.Screen.claimReceived);
                }
            }
        }
Beispiel #5
0
 private void Form_BT_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
 {
     fun_by_byname((sender as NavButton).Name);
 }
Beispiel #6
0
 private void tileNavItem_voice_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
 {
     SendMessage(this.Handle, WM_APPCOMMAND, 0x200eb0, APPCOMMAND_VOLUME_MUTE * 0x10000);
     tileNavItem_voice.TileImage = (!isMuted()) ? global::DianDianClient.Properties.Resources.voice_close : global::DianDianClient.Properties.Resources.voice;
 }
Beispiel #7
0
 private void navbtn_quit_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
 {
     MyEvent(3);
 }
Beispiel #8
0
 private void navThuChi_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
 {
     AddControl(new UcThuChiList());
 }
Beispiel #9
0
 private void navXuatKho_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
 {
     AddControl(new UcXuatKho());
 }
Beispiel #10
0
 private void navUserAccont_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
 {
     AddControl(new UcUserAccountList());
 }
Beispiel #11
0
 private void navXuatKho_ElementClick(object sender, DevExpress.XtraBars.Navigation.NavElementEventArgs e)
 {
     AddControl(new UcNhapKho(Define.LoaiDonHangEnum.XuatKho));
 }