Ejemplo n.º 1
0
    private PosQueryConditon GetConditonFormUI()
    {
        var condition = new PosQueryConditon();

        if (!string.IsNullOrEmpty(tbItem.Text))
        {
            condition.item_name = this.tbItem.Text;
        }
        if (!string.IsNullOrEmpty(tbOrderNo.Text))
        {
            condition.order_no = tbOrderNo.Text;
        }
        if (!string.IsNullOrEmpty(selDateStart.Value))
        {
            condition.order_date_begin = selDateStart.Value;
        }
        if (!string.IsNullOrEmpty(selDateEnd.Value))
        {
            condition.order_date_end = selDateEnd.Value;
        }
        if (this.selUnit.SelectedValue != "")
        {
            condition.unit_id = this.selUnit.SelectedValue;
        }
        return(condition);
    }
Ejemplo n.º 2
0
 protected void btnQuery_Click(object sender, EventArgs e)
 {
     this.Codition = this.GetConditonFormUI();
     Query(0);
 }