protected void btn_PublishProduct_Click(object sender, EventArgs e)
    {
        if ((int)ViewState["PriceID"] == 0)
        {
            return;
        }

        PDT_StandardPriceBLL _bll = new PDT_StandardPriceBLL((int)ViewState["PriceID"]);

        foreach (GridViewRow row in gv_List.Rows)
        {
            CheckBox cb_check = (CheckBox)row.FindControl("cb_Check");
            if (cb_check.Checked)
            {
                _bll.PublishProduct(int.Parse(gv_List.DataKeys[row.RowIndex]["Product"].ToString()));
            }
        }

        MessageBox.ShowAndRedirect(this, "产品发布成功!", "PDT_StandardPriceDetail.aspx?PriceID=" + ViewState["PriceID"].ToString());
    }
    protected void btn_PublishProduct_Click(object sender, EventArgs e)
    {
        if ((int)ViewState["PriceID"] == 0) return;

        PDT_StandardPriceBLL _bll = new PDT_StandardPriceBLL((int)ViewState["PriceID"]);

        foreach (GridViewRow row in gv_List.Rows)
        {
            CheckBox cb_check = (CheckBox)row.FindControl("cb_Check");
            if (cb_check.Checked)
            {
                _bll.PublishProduct(int.Parse(gv_List.DataKeys[row.RowIndex]["Product"].ToString()));
            }
        }

        MessageBox.ShowAndRedirect(this, "产品发布成功!", "PDT_StandardPriceDetail.aspx?PriceID=" + ViewState["PriceID"].ToString());
    }