示例#1
0
        private void InitControls()
        {
            ElbaInformation elbaInformation = _dataContainer.ElbaInformation;
            Sender          sender          = elbaInformation.SenderInformation;

            SenderIdentitiesUc.Identities = sender.SenderIdentities;
            SenderAddressUc.Address       = sender.Address;
            SenderNameUc.IfpName          = sender.SenderName;
            SenderContactUc.ContactData   = elbaInformation.SenderInformation.ContactData;

            Receiver receiver = elbaInformation.RecieverInformation;

            RecieverBankIdUc.BankId   = receiver.BankId;
            RecieverAddressUc.Address = receiver.Address;
            RecieverAddressUc.SetIfpDataContainer(_dataContainer);
            RecieverContactPersonUc.ContactPerson = receiver.ContactPerson;

            Customer customer = elbaInformation.CustomerInformation;

            CustomerIdentitiesUc.Identities    = customer.Identities;
            CustomerAddressUc.Address          = customer.Address;
            CustomerAddressUc.DisplayGcdButton = true;
            CustomerAddressUc.SetIfpDataContainer(_dataContainer);
            CustomerContactUc.ContactData = customer.ContactData;

            BalanceInformation.BalanceInformation = elbaInformation.PrimaryBalanceInformation;

            CustomerTextBox.SetTextDataBinding(customer, nameof(customer.Name));
            ClientConfigurationUc.IfpDataContainer = _dataContainer;

            GcdToolTip.SetToolTip(BtnSetGcdCustomer, GuiHelper.GetGcdValueTooltipText("Name"));
        }
 private void clearLoanIssuePage()
 {
     clearData();
     CustomerTextBox.Clear();
     EmployeeTextBox.Clear();
     LoanTypeTextBox.Clear();
     AmountTextBox.Clear();
     InstalmentTextBox.Clear();
     LoanCodeTextBox.Clear();
     StartDateDatePicker.SelectedDate = System.DateTime.Now;
     EndDateDatePicker.SelectedDate   = System.DateTime.Now;
     RemarkTextBox.Clear();
 }
示例#3
0
        //Clear button resets all fields and focuses on the customer text box
        private void btnClear_Click(object sender, EventArgs e)
        {
            CustomerTextBox.Text = "";
            kWTextBox.Text       = "";
            chargeLabel.Text     = "";
            kWOffTxtBox.Text     = "";
            txtAccount.Text      = "";
            txtCustomerName.Text = "";
            txtCharge.Text       = "";

            kWOffTxtBox.Visible    = false;
            kWOffLabel.Visible     = false;
            peakHoursLabel.Visible = false;
            CustomerTextBox.Focus();
        }
示例#4
0
 private void CreateNewTransaction()
 {
     if (ticketlineBindingSource != null && ticketlineBindingSource.Count > 0)
     {
         NewTicket();
     }
     TotalCash = 0;
     //-- clear amount boxes
     TotalAmountTextBox.Text  = DisplayAmountAsText(0);
     CashAmountTextBox.Text   = DisplayAmountAsText(0);
     ChangeAmountTextBox.Text = DisplayAmountAsText(0);
     //-- clear customer
     CustomerTextBox.Clear();
     CustomerCodeTextBox.Clear();
     //-- clear barcode
     BarcodeInputTextBox.Clear();
 }