Exemplo n.º 1
0
    //初始列表
    private void BindGrid()
    {
        DataTable dt = item_bll.GetItemListByZhuanTiId(userId, ztId);

        List.DataSource = dt;
        List.DataBind();

        DataTable zhuanTi = bll.GetZhuanTiDataTableByZhuanTiId(userId, ztId);

        this.ZhuanTiDate.Text   = zhuanTi.Rows[0]["ZhuanTiDate"].ToString();
        this.ZhuanTiShouRu.Text = Convert.ToDouble(zhuanTi.Rows[0]["ZhuanTiShouRu"]).ToString("0.0##");
        this.ZhuanTiZhiChu.Text = Convert.ToDouble(zhuanTi.Rows[0]["ZhuanTiZhiChu"]).ToString("0.0##");
    }