예제 #1
0
 private void barButtonItem3_ItemClick(object sender, ItemClickEventArgs e)
 {
     tEMPBCODEPRINTBindingSource.DataSource = dsTemp;
     var frm = new StockList(null, String.Empty, String.Empty, true);
     frm.EventSelectedItem += AdditemsToList;
     frm.ShowDialog();
     if (ActiveControl.Name != "gridControl1")
         gridControl1.Focus();
 }
예제 #2
0
 void AddItems(string itemno){
     if (lookupfrom.EditValue == null && lookupto.EditValue == null)
     {
         XtraMessageBox.Show("Please select correct locations", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     if (lookupfrom.EditValue == lookupto.EditValue)
     {XtraMessageBox.Show("Please select correct locations", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     if (lookupfrom.EditValue != null)
     {
         var frm = new StockList(dsInventory1.ITEMTRANSFERDETAIL, itemno, lookupfrom.EditValue.ToString(), _isStore);
         frm.EventSelectedItem += AdditemsToList;
         frm.ShowDialog();
     }
     if (ActiveControl.Name != "gridControl1")
         gridControl1.Focus();
 }
예제 #3
0
 void AddItems(string itemno)
 {
     if (Lookupwarehouse.EditValue == null)
     {
         XtraMessageBox.Show("Please select the warehouse", "POS", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     //var frm = new FrmItemLookUp(dsPurchase1.PURINVDETAIL, itemno);
     //frm.EventSelectedItem += AdditemsToList;
     var fcd = advBandedGridView1.FocusedRowHandle;
     //frm.ShowDialog();
    var frm = new StockList(dsInventory1.ADJDETAIL, itemno, Lookupwarehouse.EditValue.ToString(), false,true);
    frm.EventSelectedItem += AdditemsToList;
    frm.ShowDialog();
     if (ActiveControl.Name != "gridControl1")
         gridControl1.Focus();
     if (advBandedGridView1.FocusedRowHandle >= 0)
     {
         advBandedGridView1.FocusedRowHandle = fcd;
     }
     else
     {
         advBandedGridView1.FocusedRowHandle = 0;
     }
 }
예제 #4
0
 protected override void AddItems(string itemno)
 {
     if (Lookupwarehouse.EditValue==null)
     {
         XtraMessageBox.Show("Please select the warehouse","POS", MessageBoxButtons.OK,MessageBoxIcon.Information);
         return;
     }
     var frm = new StockList(dsPurchase1.RETURNDETAIL, itemno,Lookupwarehouse.EditValue.ToString(),false);
     frm.EventSelectedItem += AdditemsToList;
     frm.ShowDialog();
     if (ActiveControl.Name != "gridControl1")
         gridControl1.Focus();
 }