コード例 #1
0
ファイル: AddInventory.cs プロジェクト: umeshsohaliya/PawnPOS
        public bool CheckDataInput()
        {
            DataVerification dataCheck         = new DataVerification();
            string           primeCategory     = GetSelectedPrimeCategory();
            string           secondaryCategory = GetSelectedSecCategory();
            bool             result            = false;

            bool checkProductId   = dataCheck.IsEmpty(ProductIDTextBox, ProductIDTextBox.Text, ErrorProvider);
            bool checkProductDesc = dataCheck.IsEmpty(ProductDescTextBox, ProductDescTextBox.Text, ErrorProvider);
            bool checkPrice       = dataCheck.IsEmpty(PriceTextBox, PriceTextBox.Text, ErrorProvider);
            bool checkSerialNum   = dataCheck.IsEmpty(SerialNumTextBox, SerialNumTextBox.Text, ErrorProvider);
            bool checkPrimeCat    = dataCheck.IsEmpty(PrimeCatGridView, primeCategory, ErrorProvider);
            bool checkSecCat      = dataCheck.IsEmpty(SecCatGridView, secondaryCategory, ErrorProvider);

            if (checkProductId || checkProductDesc || checkPrice || checkSerialNum || checkPrimeCat ||
                checkSecCat)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                result = false;
            }
            return(result);
        }
コード例 #2
0
ファイル: PurchaseItem.cs プロジェクト: njmube/PawnPOS
        public bool CheckDataInput()
        {
            DataVerification dataCheck = new DataVerification();
            string primeCategory = GetSelectedPrimeCategory();
            string secondaryCategory = GetSelectedSecCategory();
            bool result = false;

            bool checkCustomerNum = dataCheck.IsEmpty(CustomerIDTextBox, CustomerIDTextBox.Text, ErrorProvider);
            bool checkProductId = dataCheck.IsEmpty(ProductIDTextBox, ProductIDTextBox.Text, ErrorProvider);
            bool checkProductDesc = dataCheck.IsEmpty(ProductDescTextBox, ProductDescTextBox.Text, ErrorProvider);
            bool checkPrice = dataCheck.IsEmpty(PriceTextBox, PriceTextBox.Text, ErrorProvider);
            bool checkSerialNum = dataCheck.IsEmpty(SerialNumberTextBox, SerialNumberTextBox.Text, ErrorProvider);
            bool checkPrimeCat = dataCheck.IsEmpty(PrimeCatGridView, primeCategory, ErrorProvider);
            bool checkSecCat = dataCheck.IsEmpty(SecCatGridView, secondaryCategory, ErrorProvider);

            if (checkCustomerNum || checkProductId || checkProductDesc || checkPrice ||
                checkSerialNum || checkPrimeCat || checkSecCat)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                return false;
            }
            return result;
        }
コード例 #3
0
        public bool CheckDataInput()
        {
            DataVerification dataCheck = new DataVerification();
            bool             result    = false;

            var checkLicenseNum  = dataCheck.IsEmpty(LicenseNumTextBox, LicenseNumTextBox.Text, ErrorProvider);
            var checkFirstName   = dataCheck.IsEmpty(FirstNameTextBox, FirstNameTextBox.Text, ErrorProvider);
            var checkLastName    = dataCheck.IsEmpty(LastNameTextBox, LastNameTextBox.Text, ErrorProvider);
            var checkMiddleName  = dataCheck.IsEmpty(MiddleTextBox, MiddleTextBox.Text, ErrorProvider);
            var checkAddress     = dataCheck.IsEmpty(AddressTextBox, AddressTextBox.Text, ErrorProvider);
            var checkCity        = dataCheck.IsEmpty(CityTextBox, CityTextBox.Text, ErrorProvider);
            var checkState       = dataCheck.IsEmpty(StateTextBox, StateTextBox.Text, ErrorProvider);
            var checkZip         = dataCheck.IsEmpty(ZipCodeTextBox, ZipCodeTextBox.Text, ErrorProvider);
            var checkPhone       = dataCheck.IsEmpty(PhoneNumTextBox, PhoneNumTextBox.Text, ErrorProvider);
            var checkSecondPhone = dataCheck.IsEmpty(SecondaryPhoneTextBox, SecondaryPhoneTextBox.Text, ErrorProvider);

            if (checkLicenseNum || checkFirstName || checkLastName || checkMiddleName || checkAddress ||
                checkCity || checkState || checkZip || checkPhone || checkSecondPhone)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                result = false;
            }
            return(result);
        }
コード例 #4
0
ファイル: CreateNewCustomer.cs プロジェクト: njmube/PawnPOS
        public bool CheckDataInput()
        {
            DataVerification dataCheck = new DataVerification();
            bool result = false;

            var checkLicenseNum = dataCheck.IsEmpty(LicenseNumTextBox, LicenseNumTextBox.Text, ErrorProvider);
            var checkFirstName = dataCheck.IsEmpty(FirstNameTextBox, FirstNameTextBox.Text, ErrorProvider);
            var checkLastName = dataCheck.IsEmpty(LastNameTextBox, LastNameTextBox.Text, ErrorProvider);
            var checkMiddleName = dataCheck.IsEmpty(MiddleTextBox, MiddleTextBox.Text, ErrorProvider);
            var checkAddress = dataCheck.IsEmpty(AddressTextBox, AddressTextBox.Text, ErrorProvider);
            var checkCity = dataCheck.IsEmpty(CityTextBox, CityTextBox.Text, ErrorProvider);
            var checkState = dataCheck.IsEmpty(StateTextBox, StateTextBox.Text, ErrorProvider);
            var checkZip = dataCheck.IsEmpty(ZipCodeTextBox, ZipCodeTextBox.Text, ErrorProvider);
            var checkPhone = dataCheck.IsEmpty(PhoneNumTextBox, PhoneNumTextBox.Text, ErrorProvider);
            var checkSecondPhone = dataCheck.IsEmpty(SecondaryPhoneTextBox, SecondaryPhoneTextBox.Text, ErrorProvider);

            if (checkLicenseNum || checkFirstName || checkLastName || checkMiddleName || checkAddress ||
                checkCity || checkState || checkZip || checkPhone || checkSecondPhone)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                result = false;
            }
            return result;
        }
コード例 #5
0
ファイル: PawnItem.cs プロジェクト: umeshsohaliya/PawnPOS
        public bool CheckDataInput()
        {
            DataVerification dataCheck = new DataVerification();
            bool             result    = false;

            bool checkCustomerNum = dataCheck.IsEmpty(CustomerIDTextBox, CustomerIDTextBox.Text, ErrorProvider);
            bool checkProductDesc = dataCheck.IsEmpty(ProductDescTextBox, ProductDescTextBox.Text, ErrorProvider);
            bool checkPrice       = dataCheck.IsEmpty(PrincipalTextBox, PrincipalTextBox.Text, ErrorProvider);

            if (checkCustomerNum || checkProductDesc || checkPrice)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                result = false;
            }
            return(result);
        }
コード例 #6
0
ファイル: PawnItem.cs プロジェクト: njmube/PawnPOS
        public bool CheckDataInput()
        {
            DataVerification dataCheck = new DataVerification();
            bool result = false;

            bool checkCustomerNum = dataCheck.IsEmpty(CustomerIDTextBox, CustomerIDTextBox.Text, ErrorProvider);
            bool checkProductDesc = dataCheck.IsEmpty(ProductDescTextBox, ProductDescTextBox.Text, ErrorProvider);
            bool checkPrice = dataCheck.IsEmpty(PrincipalTextBox, PrincipalTextBox.Text, ErrorProvider);

            if (checkCustomerNum || checkProductDesc || checkPrice)
            {
                result = true;
            }
            else
            {
                ErrorProvider.Clear();
                result = false;
            }
            return result;
        }