Exemplo n.º 1
0
    private void bind()
    {
        if (base.Request["PrjCode"] == null || base.Request["Levels"] == null)
        {
            this.gvItemInpect.DataSource = "";
            this.gvItemInpect.DataBind();
            this.Button_add.Visible = false;
            return;
        }
        string    strwhere         = "prjcode in (" + this.getprjCodeList() + ") and Flags=" + base.Request["Levels"].ToString();
        DataTable checkCollections = CheckAction.GetCheckCollections(strwhere);
        int       arg_89_0         = checkCollections.Rows.Count;

        this.ViewState[CheckList.resourceTable] = checkCollections;
        this.gvItemInpect.DataSource            = checkCollections;
        this.gvItemInpect.DataBind();
    }
Exemplo n.º 2
0
    protected void Button_query_Click(object sender, EventArgs e)
    {
        if (base.Request["PrjCode"] == null || base.Request["Levels"] == null)
        {
            this.gvItemInpect.DataSource = "";
            this.gvItemInpect.DataBind();
            return;
        }
        string text = "prjcode='" + base.Request["PrjCode"].ToString() + "' and Flags=" + base.Request["Levels"].ToString();

        if (this.TextBox_sjdw.Text.Trim() != "")
        {
            text = text + " and AcceptCheckUnit like '%" + this.TextBox_sjdw.Text.Trim() + "%'";
        }
        if (this.TextBox_jcdw.Text.Trim() != "")
        {
            text = text + " and ExamineUnit like '%" + this.TextBox_jcdw.Text.Trim() + "%'";
        }
        this.gvItemInpect.DataSource = CheckAction.GetCheckCollections(text);
        this.gvItemInpect.DataBind();
    }