예제 #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);
    }
예제 #2
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            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));

            listObj = BLLTable<Ec_tab>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount);
            repCus.DataSource = listObj;
            repCus.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
        aspPager.RecordCount = recount;
    }
예제 #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);
    }
예제 #4
0
    protected void btnFind_Click(object sender, EventArgs e)
    {
        try
        {
            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));
            }

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

            repCus.DataSource = listObj;
            repCus.DataBind();
        }
        catch (Exception ex)
        {
            litWarn.Text = ex.Message;
        }
        aspPager.RecordCount = recount;
    }