示例#1
0
        //Satıs sorumlusu girişi
        private void tileSatisSorumlusu_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            SatisSorumlusuForm SSF = new SatisSorumlusuForm();

            SSF.Show();
            this.Hide();
        }
示例#2
0
 private void tileAllProduct_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     waitForm.ShowWaitForm();
     System.Threading.Thread.Sleep(1000);
     navBarControl.Groups.Clear();
     tabControl.SelectedTab = tbAllProducts;
     //Load data into Combo Box
     //Add type into combo box
     foreach (Types t in td.getList())
     {
         ItemsCBTypes.Items.Add(t.typeName);
     }
     //Add supplier into combo box
     foreach (Supplier s in sd.getList())
     {
         ItemsCBCompany.Items.Add(s.companyName);
     }
     gridControl1.DataSource = pc.getTable();
     createNavBar();
     //
     // Stop animation
     tileTime.StopAnimation();
     tileAllProduct.StopAnimation();
     waitForm.CloseWaitForm();
 }
示例#3
0
        private void Manage_Categories_Button_Click(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            Categories categoriesForm = new Categories();

            this.Hide();
            categoriesForm.Show();
        }
示例#4
0
        //
        // Show form employees
        private void tileEmployees_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            frmEmployee frm = new frmEmployee();

            frm.ShowDialog();
            frm.Owner = this;
        }
示例#5
0
        //
        //Show form Import Product
        private void tileImportProduct_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            frmImportProducts frm = new frmImportProducts();

            frm.ShowDialog();
            frm.Owner = this;
        }
示例#6
0
 private void tileItem14_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     try
     {
         if (Kullanici.OnayFormlari.Equals("True"))
         {
             DialogResult sonuc;
             sonuc = HotelMessageBox.Show(Localization.ProgramCikisOnay, Localization.Evet, Localization.Hayır);
             if (sonuc == DialogResult.No)
             {
                 //MessageBox.Show("");// hiçbir işlem yaptırmıyorum
             }
             if (sonuc == DialogResult.Yes)
             {
                 this.Close();
                 Application.Exit();
             }
         }
         else
         {
             Application.Exit();
         }
     }
     catch (Exception ex)
     {
         HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1);
     }
 }
示例#7
0
        //
        //Log out
        private void tileLogOut_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            frmLogIn frm = new frmLogIn();

            frm.Show();
            this.Dispose();
        }
示例#8
0
        private void imageView1_OnItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            try
            {
                if (e.Item == null)
                {
                    return;
                }

                TileImageInfo imageInfo = e.Item.Tag as TileImageInfo;

                if (imageInfo == null)
                {
                    return;
                }

                if (imageInfo.MediaType != "图像")
                {
                    MessageBox.Show("音视频不能进行处理。", "提示");
                    return;
                }

                _selectImageID = imageInfo.MediaId;

                imageProcessControl1.LoadBackImage(ImageEx.LoadFile(imageInfo.File) as Bitmap);
            }
            catch (Exception ex)
            {
                MsgBox.ShowException(ex, this);
            }
        }
示例#9
0
        //Admin girişi
        private void tileAdminGiris_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            AdminForm ALF = new AdminForm();

            ALF.Show();
            this.Hide();
        }
示例#10
0
        //Departman yetkili girişi
        private void tileDepartmanYetkilisi_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            DepartmanYetkilisiForm DYF = new DepartmanYetkilisiForm();

            DYF.Show();
            this.Hide();
        }
示例#11
0
 private void tileItemDeleteProduct_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     if (ProductDAO.Instance.DeleteProduct(int.Parse(txtIdProduct.Text)) == true)
     {
         MessageBox.Show("Delete success!");
         LoadProducts();
     }
 }
示例#12
0
        private void tile_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            var tile       = sender as TileItem;
            var userRoleId = UserInfo.Instance.RoleId;

            switch (tile.Tag.ToString())
            {
            case "收银台":
                if (!(userRoleId.IndexOf(BaseRoleConst.ShopManager) > -1 || userRoleId.IndexOf(BaseRoleConst.Crasher) > -1))
                {
                    ShowMessage($"当前用户角色无操作{tile.Tag.ToString()}的权限!");
                    return;
                }
                new frmPos().Show(this);
                break;

            case "库存查询":
                new frmStockQuery().Show(this);
                break;

            case "交接班":
                new frmTransferWork().ShowDialog();
                break;

            case "销售查询":
                new frmSaleList().Show();
                break;

            case "系统设置":
                new frmSysConfig().ShowDialog();
                break;

            case "库存盘点":
                new frmStocktaking().Show();
                break;

            case "商品入库":
                new frmGoodsIn().ShowDialog();
                break;

            case "退出系统":
                AskExit();
                break;

            case "商品出库":
                new frmGoodsOutList().Show();
                break;

            case "角色设置":
                new frmEmployerMgmt().ShowDialog();
                break;

            default:

                break;
            }
        }
示例#13
0
        private void tsmiNewAppartment_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            fmApartment form = new fmApartment();

            if (form.ShowDialog() == DialogResult.OK)
            {
                tbgApartments.Items.Insert(tbgApartments.Items.Count - 1, GetApartmentItem(new TileBarItem(), form.ApartmentId));
            }
        }
        private void tiSetting_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            var frmMain = this.MdiParent as FrmMain;

            if (frmMain == null)
            {
                return;
            }
            frmMain.btnParametre_ItemClick(null, null);
        }
        private void tiExerciceEncours_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            var frmMain = this.MdiParent as FrmMain;

            if (frmMain == null)
            {
                return;
            }
            frmMain.btnEncourExercice_ItemClick(null, null);
        }
示例#16
0
 // code nút đăng nhập
 private void tileItem20_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     txt_dangnhap.Visible = true;
     txtpass.Visible      = true;
     bt_dangnhap.Visible  = true;
     lb_thongbao.Visible  = false;
     tli_dangnhap.Visible = true;
     lb_user.Visible      = true;
     lb_pass.Visible      = true;
 }
示例#17
0
        private void tbiPayer_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            fmSelectApartment form = new fmSelectApartment();

            if (form.ShowDialog() == DialogResult.OK)
            {
                LoadApartmentInfo(form.ApartmentId);
                navigationFrame.SelectedPage = welcomePage;
            }
        }
示例#18
0
 private void tileItem11_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     try
     {
         System.Diagnostics.Process.Start("osk.exe");
     }
     catch (Exception ex)
     {
         HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1);
     }
 }
示例#19
0
        private void ttDSHoaDon_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            DialogResult tl = XtraMessageBox.Show("Bạn muốn lựa chọn In thông tin Danh Sách Hóa Đơn ?", "Chú ý !"
                                                  , MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (tl == DialogResult.Yes)
            {
                Form3 frm = new Form3();
                frm.ShowDialog();
            }
        }
示例#20
0
 private void tileItem2_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     try
     {
         HotelWarningForm.Show(Localization.programaGirisYapanKullanici + " " + Kullanici.isim + " " + Kullanici.soyisim, Localization.Tamam, 2);
     }
     catch (Exception ex)
     {
         HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1);
     }
 }
示例#21
0
 private void tileItem16_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     if (DN.capphanquyen() == 2)
     {
         FORM_KHACHHANG f = new FORM_KHACHHANG();
         f.Show();
     }
     else
     {
         XtraMessageBox.Show("Bạn Không Được Cấp Quyền Để Truy Cập Trang Này!", "Quyền Sử Dụng", MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
 }
示例#22
0
 private void tileItem18_ItemClick_1(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     try
     {
         ToplantiIslemleri toplantiIslemleri = new ToplantiIslemleri();
         toplantiIslemleri.Show();
     }
     catch (Exception ex)
     {
         HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1);
     }
 }
示例#23
0
 private void tileItem17_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     try
     {
         PersonelIslemleri persislemleri = new PersonelIslemleri();
         persislemleri.Show();
     }
     catch (Exception ex)
     {
         HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1);
     }
 }
示例#24
0
 private void tileItem4_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     try
     {
         Form4 musteriislemleri = new Form4();
         musteriislemleri.Show();
     }
     catch (Exception ex)
     {
         HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1);
     }
 }
示例#25
0
        private void ti_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            switch ((sender as TileItem).Name)
            {
            case "ti1":
                teDialNumber.Text += "1";
                break;

            case "ti2":
                teDialNumber.Text += "2";
                break;

            case "ti3":
                teDialNumber.Text += "3";
                break;

            case "ti4":
                teDialNumber.Text += "4";
                break;

            case "ti5":
                teDialNumber.Text += "5";
                break;

            case "ti6":
                teDialNumber.Text += "6";
                break;

            case "ti7":
                teDialNumber.Text += "7";
                break;

            case "ti8":
                teDialNumber.Text += "8";
                break;

            case "ti9":
                teDialNumber.Text += "9";
                break;

            case "ti0":
                teDialNumber.Text += "0";
                break;

            case "tiStar":
                teDialNumber.Text += "*";
                break;

            case "tiHash":
                teDialNumber.Text += "#";
                break;
            }
        }
示例#26
0
 private void tileItem7_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     try
     {
         string tarih = Localization.lblTarih + " : " + DateTime.Now.Date.ToString().Substring(0, 8);
         HotelWarningForm.Show(tarih, Localization.Tamam, 2);
     }
     catch (Exception ex)
     {
         HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1);
     }
 }
示例#27
0
 private void tileItem19_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     try
     {
         string tarih = Localization.Saat + " : " + DateTime.Now.ToShortTimeString();;
         HotelWarningForm.Show(tarih, Localization.Tamam, 2);
     }
     catch (Exception ex)
     {
         HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1);
     }
 }
示例#28
0
 private void tileItem3_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     try
     {
         Form2 ayarlar = new Form2();
         ayarlar.ShowDialog();
     }
     catch (Exception ex)
     {
         HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1);
     }
 }
示例#29
0
        private void tileItemUpdateProduct_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            Products product = new Products();

            product.Id     = Int32.Parse(txtIdProduct.Text);
            product.Name   = txtNameProduct.Text;
            product.Amount = float.Parse(txtAmountProduct.Text);
            if (ProductDAO.Instance.UpdateProduct(product) == true)
            {
                MessageBox.Show("Edit success!");
            }
            LoadProducts();
        }
示例#30
0
 private void tileItem1_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     try
     {
         Form3 havadurumu = new Form3();
         havadurumu.Show();
         //Login login = new Login();
         //login.Show();
     }
     catch (Exception ex)
     {
         HotelWarningForm.Show(ex.ToString(), Localization.Tamam, 1);
     }
 }