Ejemplo n.º 1
0
 private void txtPoints_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Return)
     {
         BtnSave.Focus();
     }
 }
 private void TxtPassword_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key.Equals(Key.Enter))
     {
         BtnSave.Focus();
     }
 }
Ejemplo n.º 3
0
 private void TxtDriver_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         BtnSave.Focus();
     }
 }
Ejemplo n.º 4
0
 private void CboMasterClass_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         BtnSave.Focus();
     }
 }
Ejemplo n.º 5
0
 private void TbContainerDescription_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         BtnSave.Focus();
     }
 }
Ejemplo n.º 6
0
 private void DtpRequestDate_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         BtnSave.Focus();
     }
 }
Ejemplo n.º 7
0
 private void txtPasswd_PreviewKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         e.Handled = true;
         BtnSave.Focus();
     }
 }
Ejemplo n.º 8
0
 private void TxtDiscount_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         txtDiscount.Text = string.Format("{0:#,##0.00}", double.Parse(txtDiscount.Text));
         BtnSave.Focus();
     }
 }
Ejemplo n.º 9
0
        private void repositoryItemLookUpEditAddSanfID_EditValueChanged(object sender, EventArgs e)
        {
            BtnSave.Focus();
            gridViewAdd.Focus();
            LookUpEdit LUE = (LookUpEdit)sender;

            ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["UnitID"]   = AsnafTbl.Rows[LUE.ItemIndex]["TagzeaUnit"].ToString();
            ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["UnitName"] = AsnafTbl.Rows[LUE.ItemIndex]["UnitName"].ToString();
        }
Ejemplo n.º 10
0
        private void repositoryItemLookUpEditDiscountTypeId_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e)
        {
            BtnSave.Focus();
            gridViewAdd.Focus();
            LookUpEdit LUE = (LookUpEdit)sender;

            if (LUE.EditValue.ToString() != ((int)Program.DiscountType.بدون_خصم).ToString() && ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["harakatype"].ToString() == ((int)Program.HarakaType.مرتجع).ToString())
            {
                LUE.EditValue = ((int)Program.DiscountType.بدون_خصم).ToString();
                ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["Discount"] = "0";
            }
        }
Ejemplo n.º 11
0
        public Remachados()
        {
            InitializeComponent();
            SiaWin = System.Windows.Application.Current.MainWindow;
            idemp = SiaWin._BusinessId;
            LoadConfig();
            loadCombo();
            loadOrden();
            controls(1);
            BtnSave.Focus();


        }
Ejemplo n.º 12
0
    protected void txtInvoive_TextChanged(object sender, EventArgs e)
    {
        decimal InvoiceNo = Convert.ToDecimal(txtInvoive.Text.Trim());
        int     Fy        = Convert.ToInt32(strFY);
        DataSet ds        = new DataSet();

        ds = InvoiceDeliveryStatus.Idv_Chetana_GetInvoiceDeliveryStatusDetails(InvoiceNo, Fy);
        bool Flag;

        if ((ds.Tables[1].Rows[0]["auth"].ToString()) == "1")
        {
            Flag = true;
        }
        else
        {
            Flag = false;
        }
        if (ds.Tables[1].Rows.Count != 0)
        {
            if (Flag)
            {
                if (ds.Tables[0].Rows.Count != 0)
                {
                    DataTable dt = new DataTable();
                    dt = ds.Tables[0];
                    txtInvoiceDate.Text = dt.Rows[0]["InvoiceDate"].ToString();
                    txtTotalAmount.Text = dt.Rows[0]["TotalAmount"].ToString();
                    txtCustName.Text    = dt.Rows[0]["CustName"].ToString();
                    txtCustcode.Text    = dt.Rows[0]["CustCode"].ToString();
                    txtArea.Text        = dt.Rows[0]["AreaName"].ToString();
                    BtnSave.Focus();
                }
                else
                {
                    MessageBox("Invoice No. does not Exists");
                    txtInvoive.Focus();
                }
            }
            else
            {
                MessageBox("Invoice No. already Exists");
                txtInvoive.Focus();
                txtInvoiceDate.Text = "";
                txtTotalAmount.Text = "";
                txtCustName.Text    = "";
                txtCustcode.Text    = "";
                txtArea.Text        = "";
            }
        }
    }
 private void TxtPackingSize_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (String.IsNullOrEmpty(productCode))
         {
             BtnSaveAndNew.Focus();
         }
         else
         {
             BtnSave.Focus();
         }
     }
 }
Ejemplo n.º 14
0
        private void repositoryItemLookUpEditAddSanfID_EditValueChanged(object sender, EventArgs e)
        {
            BtnSave.Focus();
            gridViewAdd.Focus();
            LookUpEdit LUE = (LookUpEdit)sender;

            if (ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["harakatype"].ToString() == ((int)Program.HarakaType.مبيعات).ToString())
            {
                ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["Price"] = FXFW.SqlDB.LoadDataTable(@"Select priceout From TblPricelistdetailes Where SanfID = " + LUE.EditValue).Rows[0][0].ToString();
            }
            else if (ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["harakatype"].ToString() == ((int)Program.HarakaType.مرتجع).ToString())
            {
                ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["Price"]          = FXFW.SqlDB.LoadDataTable(@"Select priceout From TblPricelistdetailes Where SanfID = " + LUE.EditValue).Rows[0][0].ToString();
                ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["DiscountTypeId"] = ((int)Program.DiscountType.بدون_خصم).ToString();// if its back discount should b none
                ItemDetials.Rows[gridViewAdd.GetFocusedDataSourceRowIndex()]["Discount"]       = "0";
            }
        }
Ejemplo n.º 15
0
 private void GridBranch_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Space)
     {
         if (GridBranch.Rows.Count > 0)
         {
             if (Convert.ToBoolean(GridBranch.Rows[GridBranch.CurrentRow.Index].Cells["Access"].Value) == true)
             {
                 GridBranch.Rows[GridBranch.CurrentRow.Index].Cells["Access"].Value = false;
             }
             else
             {
                 GridBranch.Rows[GridBranch.CurrentRow.Index].Cells["Access"].Value = true;
             }
         }
     }
     if (e.KeyCode == Keys.Enter && GridBranch.CurrentRow.Index == GridBranch.Rows.Count - 1)
     {
         e.SuppressKeyPress = true;
         BtnSave.Focus();
     }
 }