Exemplo n.º 1
0
 public override void Validate(Willowsoft.WillowLib.Data.Misc.ErrorList errors)
 {
     base.Validate(errors);
     ValidateLength(mCategoryName, errors, 1, 40, "Category Name");
     ValidateLength(mSortCode, errors, 1, 4, "Sort Code");
     ValidateLength(mNotes, errors, 0, 2048, "Notes");
 }
Exemplo n.º 2
0
 public override void Validate(Willowsoft.WillowLib.Data.Misc.ErrorList errors)
 {
     base.Validate(errors);
     ValidateLength(mSubCategoryName, errors, 1, 40, "Subcategory Name");
     ValidateLength(mSortCode, errors, 1, 6, "Sort Code");
     ValidateLength(mNotes, errors, 0, 2048, "Notes");
     ValidateIdRequired(mProductCategoryId, errors, "Product Category");
     ValidateIntRange(mDefaultProfitMargin.ToString(), 0, 99, errors, "Default Profit Margin");
 }