Пример #1
0
        private bool ValidateInput()
        {
            bool valid = true;

            if (FormTools.IsBlank(txtKode))
            {
                valid = false;
                goto finish;
            }

            if (FormTools.IsBlank(txtKategori))
            {
                valid = false;
                goto finish;
            }

            if (FormTools.IsDataExist("usp_bkl_hpoint_LIST", "@kode", SqlDbType.VarChar, txtKode.Text))
            {
                valid = false;
                goto finish;
            }


finish:
            return(valid);
        }
Пример #2
0
        private bool ValidateInput()
        {
            bool valid = true;

            if (FormTools.IsBlank(txtNomor))
            {
                valid = false;
                goto finish;
            }

            if (FormTools.IsBlank(txtKeterangan))
            {
                valid = false;
                goto finish;
            }

            if (formMode == FormTools.enumFormMode.New)
            {
                if (FormTools.IsDataExist("usp_bkl_mMemberService_LIST", "@id_member", SqlDbType.VarChar, txtNomor.Text))
                {
                    valid = false;
                    goto finish;
                }
            }


finish:
            return(valid);
        }
Пример #3
0
        private bool ValidateInput()
        {
            bool valid = true;

            //if (FormTools.IsBlank(txtIDCust))
            //{
            //    valid = false;
            //    goto finish;
            //}

            if (FormTools.IsBlank(txtCustNama))
            {
                valid = false;
                goto finish;
            }

            if (formMode == FormTools.enumFormMode.New)
            {
                if (FormTools.IsDataExist("usp_bkl_mCustomerService_LIST", "@idcust", SqlDbType.VarChar, txtIDCust.Text))
                {
                    valid = false;
                    goto finish;
                }
            }

finish:
            return(valid);
        }
Пример #4
0
        private bool ValidateInput()
        {
            bool valid = true;


            if (FormTools.IsBlank(txtKode))
            {
                valid = false;
                goto finish;
            }

            if (FormTools.IsBlank(txtNama))
            {
                valid = false;
                goto finish;
            }

            if (formMode == FormTools.enumFormMode.New)
            {
                if (FormTools.IsDataExist("usp_Bkl_mMekanikService_LIST", "@kd_mk", SqlDbType.VarChar, txtKode.Text))
                {
                    valid = false;
                    goto finish;
                }
            }

finish:
            return(valid);
        }