コード例 #1
0
  private void FrmStockComparision_KeyDown(object sender, KeyEventArgs e)
  {
 
      if (e.KeyCode == Keys.F8)
      {
          if (gridView1.FocusedRowHandle >= 0)
          {
              var dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);
              var frm = new Puranalyse(dr["itemno"].ToString(), dr["itemname"].ToString());
              frm.Show();
          }
      }
  }
コード例 #2
0
 private void barButtonItem3_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (gridView1.FocusedRowHandle >= 0)
     {
         var dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);
         var frm = new Puranalyse(dr["itemno"].ToString(), dr["itemname"].ToString());
         frm.Show();
     }
 }
コード例 #3
0
 private void ConsolidatedInventory_KeyDown(object sender, KeyEventArgs e)
 {
     if(e.KeyCode==Keys.F10)
         KeyF10();
     if (e.KeyCode == Keys.F8)
     {
         if (gridView1.FocusedRowHandle >= 0)
         {
             var dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);
             var frm = new Puranalyse(dr["itemno"].ToString(), dr["itemname"].ToString());
             frm.Show();
         }
     }
 }
コード例 #4
0
 private void DoAnalyse()
 {
     var itemid = c1TrueDBGrid1.Columns["Item Name"].Value.ToString();
     if (string.IsNullOrEmpty(itemid)) return;
     var itemnm = c1TrueDBGrid1.Columns["Item Name"].Text;
     var f = new Puranalyse(itemid, itemnm);
     f.ShowDialog();
 }
コード例 #5
0
ファイル: PurchaseOrder.cs プロジェクト: rehman922/VIRETAIL
 private void PurchaseOrderKeyDown(object sender, KeyEventArgs e)
 {
     if (_shorcutKeysDisbale) return;
     if (e.KeyCode == Keys.F10)
     { AddItems(string.Empty); }
     if (e.KeyCode == Keys.F5)
     { ItemClone(); }
     if (e.KeyCode == Keys.F4)
     { DoDelete(); }
     if (e.KeyCode == Keys.F8)
     {
         if (gridView1.DataRowCount > 0)
         {
             var dr = gridView1.GetFocusedDataRow();
             if (dr != null)
             {
                 var frm = new Puranalyse(dr["ITEMNO"].ToString(),gridView1.GetFocusedRowCellDisplayText("ITEMNO"));
                 frm.ShowDialog();
             }
         }
     }
 }
コード例 #6
0
ファイル: BasePurInvoice.cs プロジェクト: rehman922/VIRETAIL
 private void BasePurInvoiceKeyDown(object sender, KeyEventArgs e)
 {
     if (ShorcutKeysDisbale) return;
     if (e.KeyCode == Keys.F10)
     {
         IsGiftItem = false;
         AddItems(string.Empty);
     }
     if (e.KeyCode == Keys.F5)
     { ItemClone(); }
     if (e.KeyCode == Keys.F4)
     { DoDelete(); }
     //if (e.KeyCode == Keys.F12 && !_doctype)
     //{
     //    Unitconversionbutton.Checked = !Unitconversionbutton.Checked;
     //}
     if (e.KeyCode == Keys.F2 && !_doctype)
     {
         IsGiftItem = true;
         AddItems(string.Empty);
     }
     //if (e.KeyCode == Keys.F11 && !_doctype)
     //{
     //    panelautosales.Visible = true;
     //    spinEdit1.Focus();
     //    panelautosales.Left = (Width - panelautosales.Width) / 2;
     //    panelautosales.Top = (Height - panelautosales.Height) / 2;
     //    gridControl1.Focus();
     //}
     if (e.KeyCode == Keys.Escape)
     {
         if (panelautosales.Visible || panelunit.Visible)
         {
             panelautosales.Visible = false;
             panelunit.Visible = false;
             gridControl1.Focus();
             advBandedGridView1.FocusedRowHandle = 0;
         }
     }
     if(e.KeyCode==Keys.F7)
     {
         if (decimal.Parse(totvalue.EditValue.ToString()) > 0)
             adjustval.Focus();
     }
     if(e.KeyCode==Keys.F8)
     {
         if (advBandedGridView1.DataRowCount > 0 )
         {
             var dr = advBandedGridView1.GetFocusedDataRow();
             if(dr!=null)
             {
                 var frm = new Puranalyse(dr["ITEMNO"].ToString(),
                                          advBandedGridView1.GetFocusedRowCellDisplayText("ITEMNO"));
                 frm.ShowDialog();
             }
         }
     }
 }