Ejemplo n.º 1
0
 private void BtnOrderList_Click(object sender, EventArgs e)
 {
     PL.Return.FrmSelectListSales frm = new PL.Return.FrmSelectListSales();
     frm.ShowDialog();
     try
     {
         TxtItemId.Text         = frm.DGV_Order.CurrentRow.Cells[0].Value.ToString();
         txtOrderId.Text        = frm.DGV_Order.CurrentRow.Cells[1].Value.ToString();
         txtBarCode.Text        = frm.DGV_Order.CurrentRow.Cells[2].Value.ToString();
         TxtIReturnName.Text    = frm.DGV_Order.CurrentRow.Cells[3].Value.ToString();
         TxtReturnPrice.Text    = frm.DGV_Order.CurrentRow.Cells[4].Value.ToString();
         TxtReturnQTE.Text      = frm.DGV_Order.CurrentRow.Cells[5].Value.ToString();
         TxtReturnDiscount.Text = frm.DGV_Order.CurrentRow.Cells[6].Value.ToString();
         TxtAmount.Text         = frm.DGV_Order.CurrentRow.Cells[7].Value.ToString();
         TxtReturnTotal.Text    = frm.DGV_Order.CurrentRow.Cells[8].Value.ToString();
         TxtAmounTAR.Text       = frm.DGV_Order.CurrentRow.Cells[9].Value.ToString();
         CalculateDisCount();
         CalculateAmount();
         TxtNotes.Focus();
     }
     catch
     {
         return;
     }
 }
Ejemplo n.º 2
0
 private void TxtE_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         TxtNotes.Focus();
     }
 }
Ejemplo n.º 3
0
        private void txtBarCode_TextChanged(object sender, EventArgs e)
        {
            try
            {
                if (txtBarCode.Text != string.Empty)
                {
                    DataTable dt = new DataTable();
                    dt = ClsRet.GatBarCode(txtBarCode.Text);

                    if (dt.Rows.Count > 0)
                    {
                        TxtItemId.Text         = dt.Rows[0][0].ToString();
                        txtOrderId.Text        = dt.Rows[0][1].ToString();
                        txtBarCode.Text        = dt.Rows[0][2].ToString();
                        TxtIReturnName.Text    = dt.Rows[0][3].ToString();
                        TxtReturnPrice.Text    = dt.Rows[0][4].ToString();
                        TxtReturnQTE.Text      = dt.Rows[0][5].ToString();
                        TxtReturnDiscount.Text = dt.Rows[0][6].ToString();
                        TxtAmount.Text         = dt.Rows[0][7].ToString();
                        TxtReturnTotal.Text    = dt.Rows[0][8].ToString();
                        TxtNotes.Focus();
                    }
                }
                //else
                //{
                //    return;
                //}
            }
            catch
            {
                return;
            }
        }