Beispiel #1
0
        private void mEditDirectory_Load(object sender, EventArgs e)
        {
            customers          = new VO.CustomersVO();
            customers.Custcode = Custcode;
            String[] getScam = customers.ReadEdits();
            txtBoxCustomerCode.Text = getScam[0].ToString();
            txtBoxCompany.Text      = getScam[1].ToString();
            txtBoxFirst.Text        = getScam[2].ToString();
            txtBoxMiddle.Text       = getScam[3].ToString();
            txtBoxLast.Text         = getScam[4].ToString();
            txtBoxEmail.Text        = getScam[5].ToString();
            txtBoxPhone.Text        = getScam[6].ToString();
            txtBoxAddress.Text      = getScam[7].ToString();
            txtBoxCity.Text         = getScam[8].ToString();
            txtBoxProv.Text         = getScam[9].ToString();
            txtBoxZip.Text          = getScam[10].ToString();
            mskTIN.Text             = getScam[11].ToString();
            mskSSS.Text             = getScam[12].ToString();
            txtBoxCreditLimit.Text  = Convert.ToDouble(getScam[13]).ToString("#,###,##0.00");
            if (getScam[14].ToString() == "30")
            {
                cBoxNetDays.Text = "1-30";
            }
            if (getScam[14].ToString() == "60")
            {
                cBoxNetDays.Text = "31-60";
            }
            if (getScam[14].ToString() == "90")
            {
                cBoxNetDays.Text = "61-90";
            }
            if (getScam[14].ToString() == "120")
            {
                cBoxNetDays.Text = "91+";
            }
            if (getScam[15].ToString() == "1")
            {
                cBoxSuspended.Checked = true;
            }
            else
            {
                cBoxSuspended.Checked = false;
            }
            String x = Convert.ToDouble(getScam[16]).ToString("#0.##%");

            txtBoxIR.Text        = x.Replace("%", "");
            dateTimePicker1.Text = Convert.ToDateTime(getScam[17]).ToString("MM/dd/yyyy");
            if (getScam[18].ToString() == "1")
            {
                cBoxSummary.Checked = true;
            }
            else
            {
                cBoxSummary.Checked = false;
            }
        }
Beispiel #2
0
 private void mEditDirectory_Load(object sender, EventArgs e)
 {
     customers          = new VO.CustomersVO();
     customers.Custcode = Custcode;
     String[] getScam = customers.ReadEdits();
     txtBoxCustomerCode.Text = getScam[0].ToString();
     txtBoxCompany.Text      = getScam[1].ToString();
     txtBoxFirst.Text        = getScam[2].ToString();
     txtBoxMiddle.Text       = getScam[3].ToString();
     txtBoxLast.Text         = getScam[4].ToString();
     txtBoxEmail.Text        = getScam[5].ToString();
     txtBoxPhone.Text        = getScam[6].ToString();
     txtBoxAddress.Text      = getScam[7].ToString();
     txtBoxCity.Text         = getScam[8].ToString();
     txtBoxProv.Text         = getScam[9].ToString();
     txtBoxZip.Text          = getScam[10].ToString();
 }