Ejemplo n.º 1
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new Ec_tab();

        if(txtTabid.Value !="" )
            condObj.Like(Ec_tab.Attribute.Tabid, Convert.ToInt32(txtTabid.Value));

        if(txtName.Value !="" )
            condObj.Like(Ec_tab.Attribute.Name, Convert.ToString(txtName.Value));

        if(txtPresence.Value !="" )
            condObj.Like(Ec_tab.Attribute.Presence, Convert.ToInt32(txtPresence.Value));

        if(txtTabsequence.Value !="" )
            condObj.Like(Ec_tab.Attribute.Tabsequence, Convert.ToInt32(txtTabsequence.Value));

        if(txtTablabel.Value !="" )
            condObj.Like(Ec_tab.Attribute.Tablabel, Convert.ToString(txtTablabel.Value));

        if(txtModifiedby.Value !="" )
            condObj.Like(Ec_tab.Attribute.Modifiedby, Convert.ToInt32(txtModifiedby.Value));

        if(txtModifiedtime.Value !="" )
            condObj.Like(Ec_tab.Attribute.Modifiedtime, Convert.ToInt32(txtModifiedtime.Value));

        if(txtCustomized.Value !="" )
            condObj.Like(Ec_tab.Attribute.Customized, Convert.ToInt32(txtCustomized.Value));

        if(txtReportable.Value !="" )
            condObj.Like(Ec_tab.Attribute.Reportable, Convert.ToInt32(txtReportable.Value));

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Ejemplo n.º 2
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new Ec_tab();

        if(txtTabid.Value !="" )
            condObj.Like_OR(Ec_tab.Attribute.Tabid, Convert.ToInt32(txtTabid.Value));

        if(txtName.Value !="" )
            condObj.Like_OR(Ec_tab.Attribute.Name, Convert.ToString(txtName.Value));

        if(txtPresence.Value !="" )
            condObj.Like_OR(Ec_tab.Attribute.Presence, Convert.ToInt32(txtPresence.Value));

        if(txtTabsequence.Value !="" )
            condObj.Like_OR(Ec_tab.Attribute.Tabsequence, Convert.ToInt32(txtTabsequence.Value));

        if(txtTablabel.Value !="" )
            condObj.Like_OR(Ec_tab.Attribute.Tablabel, Convert.ToString(txtTablabel.Value));

        if(txtModifiedby.Value !="" )
            condObj.Like_OR(Ec_tab.Attribute.Modifiedby, Convert.ToInt32(txtModifiedby.Value));

        if(txtModifiedtime.Value !="" )
            condObj.Like_OR(Ec_tab.Attribute.Modifiedtime, Convert.ToInt32(txtModifiedtime.Value));

        if(txtCustomized.Value !="" )
            condObj.Like_OR(Ec_tab.Attribute.Customized, Convert.ToInt32(txtCustomized.Value));

        if(txtReportable.Value !="" )
            condObj.Like_OR(Ec_tab.Attribute.Reportable, Convert.ToInt32(txtReportable.Value));

        try
        {
            hidCondition.Value = condObj.ToJson(20);

            listObj = BLLTable<Ec_tab>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);
            repList.DataSource = listObj;
            repList.DataBind();
        }
        catch (Exception ex)
        {
             litWarn.Text = ex.Message;
        }
    }
Ejemplo n.º 3
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new Ec_tab();



        if (txtTabid.Value != "")
        {
            condObj.Like(Ec_tab.Attribute.Tabid, Convert.ToInt32(txtTabid.Value));
        }


        if (txtName.Value != "")
        {
            condObj.Like(Ec_tab.Attribute.Name, Convert.ToString(txtName.Value));
        }


        if (txtPresence.Value != "")
        {
            condObj.Like(Ec_tab.Attribute.Presence, Convert.ToInt32(txtPresence.Value));
        }


        if (txtTabsequence.Value != "")
        {
            condObj.Like(Ec_tab.Attribute.Tabsequence, Convert.ToInt32(txtTabsequence.Value));
        }


        if (txtTablabel.Value != "")
        {
            condObj.Like(Ec_tab.Attribute.Tablabel, Convert.ToString(txtTablabel.Value));
        }


        if (txtModifiedby.Value != "")
        {
            condObj.Like(Ec_tab.Attribute.Modifiedby, Convert.ToInt32(txtModifiedby.Value));
        }


        if (txtModifiedtime.Value != "")
        {
            condObj.Like(Ec_tab.Attribute.Modifiedtime, Convert.ToInt32(txtModifiedtime.Value));
        }


        if (txtCustomized.Value != "")
        {
            condObj.Like(Ec_tab.Attribute.Customized, Convert.ToInt32(txtCustomized.Value));
        }


        if (txtReportable.Value != "")
        {
            condObj.Like(Ec_tab.Attribute.Reportable, Convert.ToInt32(txtReportable.Value));
        }

        hidCondition.Value = condObj.ToJson(20);

        BindList(condObj, 1);
    }
Ejemplo n.º 4
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        condObj = new Ec_tab();


        if (txtTabid.Value != "")
        {
            condObj.Like_OR(Ec_tab.Attribute.Tabid, Convert.ToInt32(txtTabid.Value));
        }


        if (txtName.Value != "")
        {
            condObj.Like_OR(Ec_tab.Attribute.Name, Convert.ToString(txtName.Value));
        }


        if (txtPresence.Value != "")
        {
            condObj.Like_OR(Ec_tab.Attribute.Presence, Convert.ToInt32(txtPresence.Value));
        }


        if (txtTabsequence.Value != "")
        {
            condObj.Like_OR(Ec_tab.Attribute.Tabsequence, Convert.ToInt32(txtTabsequence.Value));
        }


        if (txtTablabel.Value != "")
        {
            condObj.Like_OR(Ec_tab.Attribute.Tablabel, Convert.ToString(txtTablabel.Value));
        }


        if (txtModifiedby.Value != "")
        {
            condObj.Like_OR(Ec_tab.Attribute.Modifiedby, Convert.ToInt32(txtModifiedby.Value));
        }


        if (txtModifiedtime.Value != "")
        {
            condObj.Like_OR(Ec_tab.Attribute.Modifiedtime, Convert.ToInt32(txtModifiedtime.Value));
        }


        if (txtCustomized.Value != "")
        {
            condObj.Like_OR(Ec_tab.Attribute.Customized, Convert.ToInt32(txtCustomized.Value));
        }


        if (txtReportable.Value != "")
        {
            condObj.Like_OR(Ec_tab.Attribute.Reportable, Convert.ToInt32(txtReportable.Value));
        }

        try
        {
            hidCondition.Value = condObj.ToJson(20);

            listObj = BLLTable <Ec_tab> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);

            repList.DataSource = listObj;
            repList.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
    }