Ejemplo n.º 1
0
        private bool PerformValidation()
        {
            bool   Result = true;
            string message;

            message = AddFunc.CheckControlTextBoxStringEmpty(txtNewPasswd, txtoldPasswd, txtRePasswd, txtUsername);
            if (message != string.Empty)
            {
                AddFunc.MsgError(message);
                Result = false;
            }
            return(Result);
        }
Ejemplo n.º 2
0
        private bool PerformValidation()
        {
            bool   Result   = true;
            string message  = AddFunc.CheckControlTextBoxStringEmpty(txtAlamat, txtBornDate, txtDescription, txtEmail, txtName, txtNoBatch);
            string messages = AddFunc.CheckComboBoxValue(LstDepartment, Position);

            if (message != string.Empty)
            {
                AddFunc.MsgError(message);
                Result = false;
            }

            return(Result);
        }
Ejemplo n.º 3
0
        private bool PerformValidation()
        {
            bool   result  = true;
            string message = AddFunc.CheckControlTextBoxStringEmpty(txtBPMobil, txtCustomer, txtMobil);

            if (message != string.Empty)
            {
                AddFunc.MsgError(message);
                result = false;
            }
            if (_obj.Invoice_Detail.Where(x => x.Service_Name == cbPackages.Text).Count() > 0)
            {
                AddFunc.MsgError("This Package Already Add !");
                result = false;
            }
            return(result);
        }
Ejemplo n.º 4
0
        private bool PerformValidation()
        {
            bool   result = true;
            string message;

            message = AddFunc.CheckControlTextBoxStringEmpty(txtPackageNames);
            if (message != string.Empty)
            {
                AddFunc.MsgError(message);
                result = false;
            }
            message = AddFunc.CheckNumericZero(nmrPrice);
            if (message != string.Empty)
            {
                AddFunc.MsgError(message);
                result = false;
            }
            return(result);
        }
Ejemplo n.º 5
0
        private bool PerfomValidation()
        {
            bool   result  = true;
            String message = AddFunc.CheckComboBoxValue(cboEmployee, cboUserGroup);

            if (message != string.Empty)
            {
                AddFunc.MsgWarning(message);
                return(false);
            }
            message = AddFunc.CheckControlTextBoxStringEmpty(txtPassword, txtReTypePass, txtUsername);
            if (message != string.Empty)
            {
                AddFunc.MsgWarning(message);
                return(false);
            }
            if (txtPassword.Text != txtReTypePass.Text)
            {
                AddFunc.MsgWarning("Password wasn't match");
                return(false);
            }

            return(result);
        }