//Satıs sorumlusu girişi private void tileSatisSorumlusu_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { SatisSorumlusuForm SSF = new SatisSorumlusuForm(); SSF.Show(); this.Hide(); }
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(); }
private void Manage_Categories_Button_Click(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { Categories categoriesForm = new Categories(); this.Hide(); categoriesForm.Show(); }
// // Show form employees private void tileEmployees_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { frmEmployee frm = new frmEmployee(); frm.ShowDialog(); frm.Owner = this; }
// //Show form Import Product private void tileImportProduct_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { frmImportProducts frm = new frmImportProducts(); frm.ShowDialog(); frm.Owner = this; }
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); } }
// //Log out private void tileLogOut_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { frmLogIn frm = new frmLogIn(); frm.Show(); this.Dispose(); }
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); } }
//Admin girişi private void tileAdminGiris_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { AdminForm ALF = new AdminForm(); ALF.Show(); this.Hide(); }
//Departman yetkili girişi private void tileDepartmanYetkilisi_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { DepartmanYetkilisiForm DYF = new DepartmanYetkilisiForm(); DYF.Show(); this.Hide(); }
private void tileItemDeleteProduct_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e) { if (ProductDAO.Instance.DeleteProduct(int.Parse(txtIdProduct.Text)) == true) { MessageBox.Show("Delete success!"); LoadProducts(); } }
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; } }
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); }
// 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; }
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; } }
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); } }
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(); } }
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); } }
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); } }
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); } }
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); } }
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); } }
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; } }
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); } }
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); } }
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); } }
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(); }
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); } }