Exemplo n.º 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);
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 4
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);
        }
Exemplo n.º 5
0
        private bool ValidateInput()
        {
            bool valid = true;


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

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

            //if (formMode == FormTools.enumFormMode.New || (formMode == FormTools.enumFormMode.Update && txtNoPol.Text != this.oldNoPol))
            //{
            //    if (FormTools.IsDataExist("usp_Bkl_mMotorService_LIST", "@no_pol", SqlDbType.VarChar, txtNoPol.Text))
            //    {
            //        valid = false;
            //        goto finish;
            //    }
            //}

finish:
            return(valid);
        }