示例#1
0
 void ItemLookUp()
 {
     var f = new FrmItemLookUp();
     f.closeonselect = false;
     f.EventSelectedItem += AdditemsToList;
     f.ShowDialog();
 }
示例#2
0
 void AddItems(string itemno)
 {
     var frm = new FrmItemLookUp();
     frm.EventSelectedItem += AdditemsToList;
     frm.closeonselect = false;
     frm.ShowDialog();
     if (ActiveControl.Name != "gridControl1")
          gridControl1.Focus();
 }
        private void  AddItems()
        {

            var frm = new FrmItemLookUp();
            frm.EventSelectedItem += AdditemsToList;
            frm.closeonselect = true;
            if (txtbarcode.EditValue != null)
                frm.filtertext = txtbarcode.EditValue.ToString();
            frm.ShowDialog();
        }
示例#4
0
 private void RptItemMove_KeyDown(object sender, KeyEventArgs e)
 {
     if(e.KeyCode==Keys.F10)
     {
         if(dateEdit1.EditValue==null || dateEdit2.EditValue==null)
         {
             XtraMessageBox.Show("Please selecte the period", "POS", MessageBoxButtons.OK,
                                 MessageBoxIcon.Information);
             return;
         }
         var frm = new FrmItemLookUp();
         frm.EventSelectedItem += AdditemsToList;
         frm.ShowDialog();
     }
 }
示例#5
0
 void AddItems(string itemno)
 {
     var frm = new FrmItemLookUp(ledgers1.COMMISIONDETAIL, itemno);
     frm.EventSelectedItem += AdditemsToList;
     var fcd = gridView1.FocusedRowHandle;
     frm.ShowDialog();
     if (ActiveControl.Name != "gridControl1")
     {
         gridControl1.Focus();
        // barEditItem2.EditValue = null;
         if (gridView1.FocusedRowHandle >= 0)
         {
             gridView1.FocusedRowHandle = fcd;
         }
         else
         {
            gridView1.FocusedRowHandle = 0;
         }
     }
 }
示例#6
0
 void AddItems()  
 {
     var frm = new FrmItemLookUp(dataSet1.PURINVDETAIL,string.Empty);
     frm.EventSelectedItem += AdditemsToList;
     frm.ShowDialog();
 }
示例#7
0
 private void AddItems()
 {
     var frm = new FrmItemLookUp();
     frm.EventSelectedItem += AdditemsToList;
     IsItemmast = true;
     frm.closeonselect = true;
     frm.ShowDialog();
     IsItemmast = false;
 }
示例#8
0
 void AddItems()
 {
     FrmItemLookUp frm = new FrmItemLookUp(dataSet1.PURINVDETAIL,string.Empty);
     //  frm.Itemadded += new RefershGrid(AdditemsToList);
     frm.EventSelectedItem += AdditemsToList;
     frm.ShowDialog();
 }
示例#9
0
 protected override void AddItems(string itemno)
 {
     var frm = new FrmItemLookUp(dsPurchase1.PURINVDETAIL, itemno);
     frm.EventSelectedItem += AdditemsToList;
     var fcd = advBandedGridView1.FocusedRowHandle;
     frm.ShowDialog();
     //IsHold = true;
     //DoSave();
     //ShorcutKeysDisbale = false;
     if (ActiveControl.Name != "gridControl1")
     {
         gridControl1.Focus();
         barEditItem2.EditValue = null;
         if (advBandedGridView1.FocusedRowHandle >= 0)
         {
             advBandedGridView1.FocusedRowHandle = fcd;
         }
         else
         {
             advBandedGridView1.FocusedRowHandle = 0;
         }
     }
 }
示例#10
0
 void AddItems()
 {
     FrmItemLookUp frm = new FrmItemLookUp(dataSet1.PURINVDETAIL);
     frm.Itemadded += new RefershGrid(AdditemsToList);
     frm.ShowDialog();
 }
        void ItemLookUp()
        {

            var f = new FrmItemLookUp();

            //if (textEdit1.EditValue != null)
            //{
            //    f.filtertext = textEdit2.EditValue.ToString();
            //}
            f.closeonselect = true;
            f.EventSelectedItem += AdditemsToList;
            f.ShowDialog();
        }
示例#12
0
 void AddItems()
 {
     if (warehouse.EditValue == null)
     {
         XtraMessageBox.Show("Please select the warehouse", "P.O.S", MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     if (this.dataSet1.ADJDETAIL.Rows.Count > 0)
     {
         foreach (DataRow d in this.dataSet1.ADJDETAIL.Rows)
         {
             d.Delete();
         }
     }
     FrmItemLookUp frm = new FrmItemLookUp(dataSet1.PURINVDETAIL,string.Empty);
     frm.EventSelectedItem += AdditemsToList;
     frm.ShowDialog(); 
 }
示例#13
0
 void AddItems(string itemno)
 {
     var frm = new FrmItemLookUp(dsPurchase1.PODETAIL, itemno);
     frm.EventSelectedItem += AdditemsToList;
     frm.ShowDialog();
     if (ActiveControl.Name != "gridControl1")
     {
         barEditItem2.EditValue = null;
         gridControl1.Focus();
         gridView1.FocusedRowHandle = 0;
     }
 }
示例#14
0
 void AddItems()
 {
     var frm = new FrmItemLookUp();
     frm.EventSelectedItem += AdditemsToList;
     frm.closeonselect = true;
     if (!String.IsNullOrEmpty(textBox1.Text))
         frm.filtertext = textBox1.Text;
     frm.ShowDialog();
 }