public override MySearchUtil ToSearchUtil() { MySearchUtil util = MySearchUtil.New().AndEqual("IsDel", false); if (!string.IsNullOrWhiteSpace(Key)) { util.AndContains("Name", Key.Trim()); } if (!Enabled.HasValue) { util.AndEqual("Enabled", true); } else { util.AndEqual("Enabled", Enabled.Value); } if (SchoolId.HasValue) { util.AndEqual("SchoolId", SchoolId); } util.OrderBy(SetOrderBy()); return(util); }
public override MySearchUtil ToSearchUtil() { MySearchUtil util = MySearchUtil.New().AndEqual("IsDel", false); if (!string.IsNullOrWhiteSpace(Key)) { // util.AndContains(new string[] { "Title", "Name" }, Key.Trim()); } if (SchoolId.HasValue) { util.AndEqual("SchoolId", SchoolId.Value); } if (StudentId.HasValue) { util.AndEqual("StudentId", StudentId.Value); } if (!string.IsNullOrWhiteSpace(StudentName)) { util.AndContains("StudentName", StudentName.Trim()); } if (!string.IsNullOrWhiteSpace(PaymentMethod)) { util.AndContains("PaymentMethod", PaymentMethod.Trim()); } util.OrderBy(SetOrderBy()); return(util); }
public override MySearchUtil ToSearchUtil() { MySearchUtil util = MySearchUtil.New().AndEqual("IsDel", false); if (SchoolId.HasValue) { util.AndEqual("SchoolId", SchoolId.Value); } if (!string.IsNullOrWhiteSpace(Key)) { util.AndContains("Name", Key.Trim()); } if (!string.IsNullOrWhiteSpace(Card)) { util.AndEqual("Card", Card.Trim()); } if (SalerId.HasValue) { util.AndEqual("SalerId", SalerId.Value); } if (!string.IsNullOrWhiteSpace(Mobile)) { util.AndContains("Mobile", Mobile.Trim()); } util.OrderBy(SetOrderBy()); return(util); }
public override MySearchUtil ToSearchUtil() { MySearchUtil util = MySearchUtil.New().AndEqual("IsDel", false); if (!string.IsNullOrWhiteSpace(Key)) { // util.AndContains(new string[] { "Title", "Name" }, Key.Trim()); } if (SchoolId.HasValue) { util.AndEqual("SchoolId", SchoolId.Value); } if (!string.IsNullOrWhiteSpace(Account)) { util.AndContains("Account", Account.Trim()); } if (!string.IsNullOrWhiteSpace(Name)) { util.AndContains("Name", Name.Trim()); } if (!string.IsNullOrWhiteSpace(RoleIds)) { util.AndContains("RoleIds", RoleIds.Trim()); } util.OrderBy(SetOrderBy()); return(util); }
public override MySearchUtil ToSearchUtil() { MySearchUtil util = MySearchUtil.New().AndEqual("IsDel", false); if (!string.IsNullOrWhiteSpace(Key)) { util.AndContains("Name", Key.Trim()); } util.OrderBy(SetOrderBy()); return(util); }
public override MySearchUtil ToSearchUtil() { MySearchUtil util = MySearchUtil.New().AndEqual("IsDel", false); if (!string.IsNullOrWhiteSpace(Key)) { // util.AndContains(new string[] { "Title", "Name" }, Key.Trim()); } if (SchoolId.HasValue) { util.AndEqual("SchoolId", SchoolId.Value); } if (StudentId.HasValue) { util.AndEqual("StudentId", StudentId.Value); } if (SalerId.HasValue) { util.AndEqual("SalerId", SalerId.Value); } if (!string.IsNullOrWhiteSpace(OrderType)) { util.AndContains("OrderType", OrderType.Trim()); } if (!string.IsNullOrWhiteSpace(ActualPayment)) { util.AndContains("ActualPayment", ActualPayment.Trim()); } util.OrderBy(SetOrderBy()); return(util); }