Пример #1
0
        public ValidMessage IsValidInput()
        {
            var v = new ValidMessage();

            if ((this.VendorId == 0) ||
                (String.IsNullOrEmpty(this.VendorName)) ||
                (String.IsNullOrEmpty(this.Source)))
            {
                v.message = "VendorId & VendorName,Source are Required Partner attributes";
                v.valid   = false;
            }
            else
            {
                v.message = "";
                v.valid   = true;
            }
            return(v);
        }
Пример #2
0
        public ValidMessage HasAllAttributes()
        {
            var v = new ValidMessage();

            if ((String.IsNullOrEmpty(this.PartnerOrderFormat)) ||
                (String.IsNullOrEmpty(this.OrderAction)) ||
                (String.IsNullOrEmpty(this.ProductFamily)) ||
                (String.IsNullOrEmpty(this.PartnerOrderName)) ||
                (String.IsNullOrEmpty(this.PreOrderValidation)))
            {
                v.message = "Partner key does not have all the attribues";
                v.valid   = false;
            }
            else
            {
                v.message = "";
                v.valid   = true;
            }
            return(v);
        }