示例#1
0
        public bool checkExistingCustomer()
        {
            try
            {
                CustomerDA cda = new CustomerDA();
                DataSet ds = cda.CheckExistingCustomer();

                foreach (DataTable DT in ds.Tables)
                {

                    foreach (DataRow DR in DT.Rows)
                    {
                        if (Convert.ToBoolean(DR[1].ToString()))
                            return true;

                    }
                }

            }
            catch (Exception ex)
            {

            }
            return false;
        }