示例#1
0
        public bool AllComboBoxFilled()
        {
            if (CheckControls.VerifyIfTextboxIsNull(this.txtqty, this.txtEditQty))
            {
                return(true);
            }

            try
            {
                if (ProdId <= 0)
                {
                    return(true);
                }
            }
            catch (Exception)
            {
                return(true);
            }

            try
            {
                if (Whid <= 0)
                {
                    return(true);
                }
            }
            catch (Exception)
            {
                return(true);
            }



            if ((CheckControls.IsNumeric(txtEditQty.Text)) && (CheckControls.IsNumeric(txtqty.Text)))
            {
            }
            else
            {
                return(true);
            }

            return(false);
        }
示例#2
0
        public bool AllComboBoxFilled()
        {
            if (CheckControls.VerifyIfTextboxIsNull(this.txtName, this.txtPrice, txtDesc, txtIVU))
            {
                return(true);
            }

            if (CheckControls.VerifyIfTextboxIsNull(this.txtCost))
            {
                return(true);
            }



            if (!(GlobalVar.CreateMFAction)) //Edit
            {
                try
                {
                    if (ProdId <= 0)
                    {
                        return(true);
                    }
                }
                catch (Exception)
                {
                    return(true);
                }

                try
                {
                    if (CatID <= 0)
                    {
                        return(true);
                    }
                }
                catch (Exception)
                {
                    return(true);
                }
            }
            else //Create
            {
                try
                {
                    if (CatID <= 0)
                    {
                        return(true);
                    }
                }
                catch (Exception)
                {
                    return(true);
                }
            }



            if ((CheckControls.IsNumeric(txtPrice.Text)) && (CheckControls.IsNumeric(txtIVU.Text)) && (CheckControls.IsNumeric(txtCost.Text)))
            {
            }
            else
            {
                return(true);
            }


            return(false);
        }