示例#1
0
        public void SetInitialSettings()
        {
            ResetTransaction();
            if (lbl_TempTransaction.Text.Equals(ListOfTransaction.Purchase.ToString()))
            {
                ModuleControlSettings.SetNumericUpDown(num_Price);
            }
            else
            {
                ModuleControlSettings.SetNumericUpDown(num_Price, true);
            }

            txt_Factur.Text = AppCode.GenerateFacturNo(lbl_TempDesk.Text);
        }
示例#2
0
        private void ResetTransaction()
        {
            txt_Factur.Text = AppCode.GenerateFacturNo(lbl_TempDesk.Text);
            txt_CustId.ResetText();
            txt_CustName.ResetText();
            txt_TransactionId.Text = DateTime.Now.ToFileTimeUtc().ToString();

            num_Pay.Value  = 0;
            num_Back.Value = 0;
            num_Pay.ResetText();
            num_TaxValue.Value = 10;
            num_Tax.Value      = 0;

            grid_Trans.Rows.Clear();
            dt_TransactionDate.Value = DateTime.Now;

            txt_Factur.Focus();
            txt_Factur.Select();
        }