Пример #1
0
 //Uzupełnie pól edycji transakcji na bazie zaznaczonego rekordu
 public void EditTransactionListLineViewON(CTransactionListLine EditListLine)
 {
     groupBox3.Visible = true;
     groupBox2.Visible = true;
     button5.Visible   = false;
     button4.Visible   = true;
     groupBox4.Visible = false;
     textBox1.Text     = EditListLine.ID.ToString();
     textBox2.Text     = EditListLine.CustNumber.ToString();
     textBox4.Text     = EditListLine.Name.ToString();
     textBox5.Text     = Math.Round(EditListLine.PriceNet, 2).ToString();
     textBox6.Text     = Math.Round(EditListLine.PriceBrt, 2).ToString();
     if (EditListLine.Datin > DateTime.MinValue)
     {
         dateTimePicker1.Value = EditListLine.Datin;
     }
 }
Пример #2
0
        // Przygotowanie pól do wprowadzenia nowego wpisu pozycji transakcji
        public void NewPositionLineViewON(CTransactionListLine EditListLine)
        {
            groupBox4.Visible = true;
            button10.Visible  = true;
            button11.Visible  = false;

            textBox11.Text = EditListLine.ID.ToString();
            if (EditListLine.MaxID == 0)
            {
                textBox10.Text = "1";
            }
            else
            {
                textBox10.Text = (EditListLine.MaxID + 1).ToString();
            }

            textBox9.Text = "";
            textBox7.Text = "";
            textBox3.Text = "";
        }