示例#1
0
 private void buttom_change_Click(object sender, EventArgs e)
 {
     if (tinhtrang.Text != "Đã xác nhận")
     {
         if (idngdat.Text != idemp || idngnhan.Text != idemp)
         {
             Confirm f1 = new Confirm("MB_DIRECTOR");
             f1.ShowDialog();
             if (f1.DialogResult == DialogResult.OK)
             {
                 Invoice_buy_add f = new Invoice_buy_add();
                 f.Invoice_buy_add_Load(sender, e);
                 f.set(dt, i);
                 f.ShowDialog();
             }
         }
         else
         {
             Invoice_buy_add f2 = new Invoice_buy_add();
             f2.Invoice_buy_add_Load(sender, e);
             f2.set(dt, i);
             f2.ShowDialog();
         }
     }
     else
     {
         MessageBox.Show("Hóa đơn này đã được xác nhận!", "Waring", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
示例#2
0
        private void Invoicebuy_add_Click(object sender, EventArgs e)
        {
            Invoice_buy_add ib = new Invoice_buy_add();
            nhung(ib);

            Invoicebuy_add.BackColor = Color.White;
            Invoicebuy_add.ForeColor = Color.OrangeRed;
            Invoicebuy_add.Image = Image.FromFile(@"Image\menu_add.png");

            Invoicebuy_view.BackColor = Color.OrangeRed;
            Invoicebuy_view.ForeColor = Color.White;
            Invoicebuy_view.Image = Image.FromFile(@"Image\menu_view2.png");

            InvoiceSale_view.BackColor = Color.OrangeRed;
            InvoiceSale_view.ForeColor = Color.White;
            InvoiceSale_view.Image = Image.FromFile(@"Image\menu_view2.png");

            InvoiceSale_add.BackColor = Color.OrangeRed;
            InvoiceSale_add.ForeColor = Color.White;
            InvoiceSale_add.Image = Image.FromFile(@"Image\menu_add2.png");
        }