Ejemplo n.º 1
0
 public frmOrders()
 {
     InitializeComponent();
     _order = new Order();
     populateCustomerCombo();
     populateProductCombo();
     dgvOrderLines.DataSource = _order.getOrderLinesTable();
 }
Ejemplo n.º 2
0
 public frm_Order(long pLongID, Boolean pblnCanWrite)
 {
     InitializeComponent();
     tsi_save.Enabled = pblnCanWrite;
     _order = new Order(pLongID);
     intComboBox();
     displayRecord();
 }
Ejemplo n.º 3
0
 public frm_Order(Boolean pblnCanWrite)
 {
     InitializeComponent();
     tsi_save.Enabled = pblnCanWrite;
     _order = new Order();
     dgv_orderItems.DataSource = _order.getOrderLinesTable();
     intComboBox();
 }
Ejemplo n.º 4
0
 public frmOrders(long pLongID)
 {
     InitializeComponent();
     _order = new Order(pLongID);
     populateCustomerCombo();
     populateProductCombo();
     enableMenuButtons();
     displayRecord();
 }
Ejemplo n.º 5
0
 public frmOrders(long pLongID, Boolean pBlnReadOnly)
 {
     InitializeComponent();
     _order = new Order(pLongID);
     _blnReadOnly = pBlnReadOnly;
     populateCustomerCombo();
     populateProductCombo();
     displayRecord();
     OrganizeMenuButtons();
 }
Ejemplo n.º 6
0
 private void vts_Order_Search_Click(object sender, EventArgs e)
 {
     if (!isDenied("frm_Order"))
     {
         Order order = new Order("Search");
         frm_Search frmsearch = new frm_Search(order.OrderDataset, "Order", canWrite("frm_Order"));
         frmsearch.MdiParent = this;
         frmsearch.Show();
     }
     else
         MessageBox.Show("Access denied. Contact network administrator to gain access");
 }