Exemplo n.º 1
0
        private bool IsFormValidate()
        {
            ErrorHanding.SetErrorCount();
            ErrorHanding.SetTextboxErrorWithCount(errorDate, dpDate, "Select Date");
            ErrorHanding.SetTextboxErrorWithCount(errorMrNo, txtMRno, "Enter MR No");
            ErrorHanding.SetTextboxErrorWithCount(errorREcievedFrom, txtRecievefrom, "Enter Reciever from Name");
            ErrorHanding.SetTextboxErrorWithCount(errorFrom, txtfrom, "Enter from");
            ErrorHanding.SetTextboxErrorWithCount(errorTo, txtto, "Enter to");

            ErrorHanding.SetTextboxErrorWithCount(errorBillno, txtbillno, "Enterbillno");
            ErrorHanding.SetTextboxErrorWithCount(errorDate, dpbilldate, "Enter date");
            ErrorHanding.SetTextboxErrorWithCount(errorBillAmount, txtBillAmount, "Select bill amount");
            ErrorHanding.SetTextboxErrorWithCount(errorNoofPackage, txtNoofPackage, "Enter no of package");
            ErrorHanding.SetTextboxErrorWithCount(errorWeight, txtWeight, "Enter weight");

            ErrorHanding.SetTextboxErrorWithCount(errorRecievedAmount, txtRecievedAmount, "Enter recieve amount");
            ErrorHanding.SetTextboxErrorWithCount(errorPaymenttype, cmbPaymentType, "Select Payment Type");

            if (ErrorHanding.GetErrorCount() == 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        private Boolean validatedata()
        {
            {
                ErrorHanding.SetErrorCount();
                ErrorHanding.SetTextboxErrorWithCount(errorPartyName, comboaddress, "Enter Account nmae");

                if (ErrorHanding.GetErrorCount() == 0)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
        }
Exemplo n.º 3
0
        private Boolean validatedata()
        {
            ErrorHanding.SetErrorCount();
            ErrorHanding.SetTextboxErrorWithCount(errorPartyName, cmbParty, "Enter Party Name");
            ErrorHanding.SetTextboxErrorWithCount(errorBrandcode, textbranchcode, "Enter Branch Code");
            ErrorHanding.SetTextboxErrorWithCount(errorbilldate, dateTimebilldate, "Select Date");
            ErrorHanding.SetTextboxErrorWithCount(errorPaymentDuedate, dateTimeduedate, "Select Date");
            ErrorHanding.SetTextboxErrorWithCount(errorTickbillType, combotickbill, "Select Tick Bill Type");
            ErrorHanding.SetTextboxErrorWithCount(errorServiceTex, comboservicetax, "Select Service tax");

            if (ErrorHanding.GetErrorCount() == 0)
                return true;
            else
                return false;

        }
Exemplo n.º 4
0
        private bool IsFormValidate()
        {
            ErrorHanding.SetErrorCount();
            ErrorHanding.SetTextboxErrorWithCount(errorChallanDate, dpChallanDate, "Select Date");
            ErrorHanding.SetTextboxErrorWithCount(errorVehicleNo, txtVehicleNo, "Enter Vehicle Number");
            ErrorHanding.SetTextboxErrorWithCount(errorVehicleType, txtVehicleType, "Enter Vehicle Type");
            ErrorHanding.SetTextboxErrorWithCount(errorMake, txtMake, "Enter Vehicle Make");
            ErrorHanding.SetTextboxErrorWithCount(errorToBrCode, txtToBrCode, "Enter to Br Code");

            if (ErrorHanding.GetErrorCount() == 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 5
0
        private Boolean ValidateData()
        {
            ErrorHanding.SetErrorCount();
            ErrorHanding.SetTextboxErrorWithCount(errorAcoountName, textaccountname, "Enter Account name");
            ErrorHanding.SetTextboxErrorWithCount(errorAccountno, textaccountno, "Enter the Account No");
            ErrorHanding.SetTextboxErrorWithCount(errorAddress, textaddress, "Enter The Address");
            ErrorHanding.SetTextboxErrorWithCount(errorPhoneNo, textphoneno, "Enter The Phone number");
            ErrorHanding.SetTextboxErrorWithCount(errorOpeningBalance, textopeningbal, "Enter The Opening Balance");

            if (ErrorHanding.GetErrorCount() == 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 6
0
        private bool IsFormValidate()
        {
            ErrorHanding.SetErrorCount();
            ErrorHanding.SetTextboxErrorWithCount(errorPartyname, txtPartyName, "Enter Party name");
            ErrorHanding.SetTextboxErrorWithCount(errorCode, txtCode, "Enter Code");
            ErrorHanding.SetTextboxErrorWithCount(errorType, cbType, "Select Type");
            ErrorHanding.SetTextboxErrorWithCount(errorAddress, txtAddress, "Enter Address");
            ErrorHanding.SetTextboxErrorWithCount(errorPhoneNo, txtPhoneNo, "Enter Phone No.");

            if (ErrorHanding.GetErrorCount() == 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        private bool IsFormValidate()
        {
            ErrorHanding.SetErrorCount();
            ErrorHanding.SetTextboxErrorWithCount(errorAccountName, cmbAccountName, "Select Account Name");
            ErrorHanding.SetTextboxErrorWithCount(errorTDate, dpTdate, "Select Date");
            ErrorHanding.SetTextboxErrorWithCount(errorChequeno, txtChanqueno, "Enter Cheque No");
            ErrorHanding.SetTextboxErrorWithCount(errorChequeDate, dpChaqurDate, "Select Date");
            ErrorHanding.SetTextboxErrorWithCount(errorPaidBy, txtPaidby, "Enter Paid Person Name");
            ErrorHanding.SetTextboxErrorWithCount(errorRecievedby, txtRecievedby, "Enter Recieve Person Name");
            ErrorHanding.SetTextboxErrorWithCount(errorDescription, txtDescription, "Enter Description");

            if (ErrorHanding.GetErrorCount() == 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 8
0
        private Boolean ValidateData()
        {
            ErrorHanding.SetErrorCount();
            ErrorHanding.SetTextboxErrorWithCount(errorCompanyName, txtCompanyName, "Enter CompanyName");
            ErrorHanding.SetTextboxErrorWithCount(errorConsignmentNote, txtConsignmentNoteNo, "Enter Consignment Note number");
            ErrorHanding.SetTextboxErrorWithCount(errorCharges, txtCharges1, "Enter Charges");
            ErrorHanding.SetTextboxErrorWithCount(errorAmount, txtAmount1, "Enter Amount");
            ErrorHanding.SetTextboxErrorWithCount(errorFromCode, txtFromCodeName, "Enter from Code name");
            ErrorHanding.SetTextboxErrorWithCount(errorToCode, txtToCodeName, "Enterto code name");
            ErrorHanding.SetTextboxErrorWithCount(errorServiceTax, cmbServiceTaxisPaybleBy, "select ServiceTax");

            if (ErrorHanding.GetErrorCount() == 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }