Exemple #1
0
    protected void btnQuery_Click(object sender, EventArgs e)
    {
        EntryAdapter ea   = new EntryAdapter();
        T_EntryList  item = new T_EntryList();

        item.EntryId = txtEntryId.Text.Trim();
        DataSet ds = ea.queryEntryList(item);

        show(ds);
        clean();
    }
Exemple #2
0
    private void getQueryData()
    {
        T_EntryList item = new T_EntryList();

        if (!string.IsNullOrEmpty(txt_owner_name.Text.Trim()))
        {
            item.OwnerName = txt_owner_name.Text.Trim();
        }
        if (!string.IsNullOrEmpty(txt_entry_id.Text.Trim()))
        {
            item.EntryId = txt_entry_id.Text.Trim();
        }
        if (!string.IsNullOrEmpty(txt_sale_bill_no.Text.Trim()))
        {
            item.SaleBillNo = txt_sale_bill_no.Text.Trim();
        }
        if (!string.IsNullOrEmpty(txt_g_name.Text.Trim()))
        {
            item.GName = txt_g_name.Text.Trim();
        }
        if (!string.IsNullOrEmpty(txt_code_ts.Text.Trim()))
        {
            item.CodeTs = txt_code_ts.Text.Trim();
        }
        if (!string.IsNullOrEmpty(txt_agent_name.Text.Trim()))
        {
            item.AgentName = txt_agent_name.Text.Trim();
        }
        if (!string.IsNullOrEmpty(txt_operator.Text.Trim()))
        {
            item.Operator = txt_operator.Text.Trim();
        }
        if (!string.IsNullOrEmpty(CalendarBox1.Text.Trim()))
        {
            item.startTime = DateTime.Parse(CalendarBox1.Text.Trim());
        }
        if (!string.IsNullOrEmpty(CalendarBox2.Text.Trim()))
        {
            item.endTime = DateTime.Parse(CalendarBox2.Text.Trim());
        }
        try
        {
            show(ea.queryEntryList(item));
        }
        catch (Exception ex)
        {
            Label1.Text = ex.Message;
        }
    }