Exemplo n.º 1
0
    private void BindFiles(DA_FilesBU file)
    {
        bool flag = false;

        if (file == null)
        {
            file = new DA_FilesBU();
            flag = true;
        }
        DA_FilesBU file1 = new DA_FilesBU();
        DataSet    ds1   = file1.GetFileList(this.ajnum.Text.ToString());

        Repeater1.DataSource = ds1;
        Repeater1.DataBind();
        if (flag)
        {
            file.Close();
        }
    }
Exemplo n.º 2
0
    private void BindFiles(DA_FilesBU file)
    {
        bool flag = false;

        if (file == null)
        {
            file = new DA_FilesBU();
            flag = true;
        }
        DA_FilesBU file1 = new DA_FilesBU();
        DataSet    ds1   = file1.GetFileList(this.ajnum.Text.ToString());

        Repeater1.DataSource = ds1;
        Repeater1.DataBind();
        //this.depart.Text = ds1.Tables[0].Rows[0]["depart"].ToString();
        //this.zeren.Text = ds1.Tables[0].Rows[0]["zeren"].ToString();
        if (flag)
        {
            file.Close();
        }
    }