Example #1
0
        private void itemAdd_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            Supplierform frm = new Supplierform();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                lvSuppliers_Load(NCCPTien.All());
            }
        }
Example #2
0
        private void btnNewSupplier_Click(object sender, EventArgs e)
        {
            Supplierform frm = new Supplierform();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                cbbSupplier_Load(NCCPTien.All());
            }
        }
Example #3
0
 private void Suppliersfrm_Load(object sender, EventArgs e)
 {
     if (Powers == PowersLog.Administrator || Powers == PowersLog.Designer)
     {
         grbManager.Visible = true;
     }
     else
     {
         grbManager.Visible = false;
     }
     cbbFields_Load();
     lvSuppliers_Load(NCCPTien.All());
 }
Example #4
0
 private void itemUpdate_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
 {
     if (lvSuppliers.SelectedItems.Count > 0)
     {
         Supplierform frm = new Supplierform();
         frm.Code = MyConvert.ToInt32(lvSuppliers.SelectedItems[0].SubItems[0].Text);
         frm.ShowDialog();
         if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             lvSuppliers_Load(NCCPTien.All());
         }
     }
 }
Example #5
0
 private void Tourfrm_Load(object sender, EventArgs e)
 {
     tvtours_Load(Tour.All());
     listDes    = new List <DiemDen>();
     listScenic = new List <DiemDL>();
     cbbLocal_Load(DiaDiemDL.All());
     cbbSupplier_Load(NCCPTien.All());
     cbbStatus.SelectedIndex = 0;
     if (_ID != 0)
     {
         btnUpdateTour.Enabled = true;
         Controls_LoadUp();
     }
 }
Example #6
0
 private void cbbSupplier_Load()
 {
     cbbSupplier.DataSource    = NCCPTien.All();
     cbbSupplier.DisplayMember = "TenNCC";
     cbbSupplier.ValueMember   = "ID";
 }
Example #7
0
 private void btnAll_Click(object sender, EventArgs e)
 {
     lvSuppliers_Load(NCCPTien.All());
 }