Пример #1
0
        private void productGridControl_MouseClick(object sender, MouseEventArgs e)
        {
            if (productGridView.RowCount > 0)
            {
                btnSave.Enabled = true;
                try
                {
                    lblProductName.Text = productGridView.GetRowCellDisplayText(productGridView.FocusedRowHandle, productGridView.Columns["ProductName"]);
                    Param.product       = productGridView.GetRowCellDisplayText(productGridView.FocusedRowHandle, productGridView.Columns["Product"]);

                    if (Param.status == "Return")
                    {
                        FmReturnSell frm    = new FmReturnSell();
                        var          result = frm.ShowDialog(this);
                        if (result == System.Windows.Forms.DialogResult.OK)
                        {
                        }
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToString());
                }
            }
        }
Пример #2
0
 private void FmProductQty_Load(object sender, EventArgs e)
 {
     if (Param.status == "Return")
     {
         FmReturnSell frm    = new FmReturnSell();
         var          result = frm.ShowDialog(this);
         if (result == System.Windows.Forms.DialogResult.OK)
         {
         }
     }
 }
Пример #3
0
        private void productGridControl_MouseClick(object sender, MouseEventArgs e)
        {
            if (productGridView.RowCount > 0)
            {
                btnSave.Enabled = true;
                try
                {
                    lblProductName.Text = productGridView.GetRowCellDisplayText(productGridView.FocusedRowHandle, productGridView.Columns["ProductName"]);
                    Param.product = productGridView.GetRowCellDisplayText(productGridView.FocusedRowHandle, productGridView.Columns["Product"]);

                    if (Param.status == "Return")
                    {
                        FmReturnSell frm = new FmReturnSell();
                        var result = frm.ShowDialog(this);
                        if (result == System.Windows.Forms.DialogResult.OK)
                        {

                        }
                    }
                }
                catch (Exception ex)
                {
                    Console.WriteLine(ex.ToString());
                }
            }
        }
Пример #4
0
        private void FmProductQty_Load(object sender, EventArgs e)
        {
            if (Param.status == "Return")
            {
                FmReturnSell frm = new FmReturnSell();
                var result = frm.ShowDialog(this);
                if (result == System.Windows.Forms.DialogResult.OK)
                {

                }
            }
        }