Exemplo n.º 1
0
        public void loadCustomerName()
        {
            var listDB = customer.GetData(u => u.isDelete == false && u.TypeofCustomer.Type == "Nhập hàng", u => u.TypeofCustomer);

            txtHoten.Items.Clear();
            foreach (var item in listDB)
            {
                txtHoten.Items.Add(item.Name);
            }
        }
Exemplo n.º 2
0
        private void loadCustomerName()
        {
            txtCustomerName.Items.Clear();
            var listDB = customerBO.GetData(u => u.isDelete == false && u.TypeofCustomer.Type == txtCustomerType.Text.Trim(), u => u.TypeofCustomer);

            foreach (var item in listDB)
            {
                txtCustomerName.Items.Add(item.Name);
            }
        }
Exemplo n.º 3
0
        public void LoadDG()
        {
            var listDB = customer.GetData(u => u.isDelete == false, u => u.TypeofCustomer);

            dataDS.Rows.Clear();

            int i = 0;

            foreach (var item in listDB)
            {
                dataDS.Rows.Add();
                dataDS.Rows[i].Cells[0].Value = "KD" + item.ID.ToString("d6");
                dataDS.Rows[i].Cells[1].Value = item.Name;
                dataDS.Rows[i].Cells[2].Value = item.Sex;
                dataDS.Rows[i].Cells[3].Value = item.Phone.Trim();
                dataDS.Rows[i].Cells[4].Value = item.TypeofCustomer.Type;
                i++;
            }
        }