Пример #1
0
    private LogQueryConditon GetConditonFormUI()
    {
        var condition = new LogQueryConditon();

        if (!string.IsNullOrEmpty(tbCustomerCode.Text))
        {
            condition.customer_code = tbCustomerCode.Text;
        }
        if (!string.IsNullOrEmpty(selDateStart.Value))
        {
            condition.date_begin = selDateStart.Value;
        }
        if (!string.IsNullOrEmpty(selDateEnd.Value))
        {
            condition.date_end = selDateEnd.Value;
        }
        if (this.tbUnitCode.Text.Trim() != "")
        {
            condition.unit_code = this.tbUnitCode.Text.Trim();
        }
        return(condition);
    }
Пример #2
0
 protected void btnQuery_Click(object sender, EventArgs e)
 {
     this.Codition = this.GetConditonFormUI();
     Query(0);
 }