private QueryConditon GetConditonFormUI() { var condition = new QueryConditon(); if (!string.IsNullOrEmpty(tbBcCode.Text)) { condition.brand_customer_code = tbBcCode.Text.Trim(); } if (!string.IsNullOrEmpty(tbBcName.Text)) { condition.brand_customer_name = tbBcName.Text.Trim(); } return(condition); }
protected void btnQuery_Click(object sender, EventArgs e) { this.Codition = this.GetConditonFormUI(); Query(0); }