コード例 #1
0
 private void ClearForm()
 {
     NoTrsTextBox.Clear();
     TanggalDateTime.Value = DateTime.Now;
     KeteranganTextBox.Clear();
     DetilAdjTable.Rows.Clear();
     AddRow();
     JamTrsTimer.Enabled = true;
 }
コード例 #2
0
        private void ClearForm()
        {
            NoTrsTextBox.Clear();
            TanggalDateTime.Value         = DateTime.Now;
            CustomerComboBox.SelectedItem = null;
            BuyerNameTextBox.Clear();
            AlamatTextBox.Clear();
            NoTelpTextBox.Clear();
            CatatanTextBox.Clear();
            DetilPenjualanTable.Rows.Clear();

            if (_listBayarDetil.IsNotNull())
            {
                _listBayarDetil.Clear();
            }

            BiayaKirimNumText.Value   = 0;
            DiskonNumText.Value       = 0;
            BiayaLainNumText.Value    = 0;
            BayarCashNumText.Value    = 0;
            BayarNonCashNumText.Value = 0;
            KembaliNumText.Value      = 0;

            ReCalcTotal();
            JamTrsTimer.Enabled = true;
            DetilPenjualanTable.Rows.Clear();
            _listBayarDetil = null;

            DepositIDText.Clear();
            PihakKeduaNameText.Clear();
            KeteranganText.Clear();
            NilaiDepositText.Value  = 0;
            TglDepositText.Value    = DateTime.Now;
            JamDepositText.Text     = "00:00:00";
            DepositCheckBox.Checked = false;

            AddRow();
        }