protected void bt_DIACUpgrade_Click(object sender, EventArgs e)
    {
        if ((int)ViewState["ClientID"] > 0)
        {
            int ret = CM_ClientBLL.DISubACUpgrade((int)ViewState["ClientID"]);
            switch (ret)
            {
            case 0:
                MessageBox.Show(this, "子户头升级成功,原主户头自动降级子户头!");
                CM_ClientBLL _bll = new CM_ClientBLL((int)ViewState["ClientID"]);
                Response.Redirect("DistributorDetail.aspx?ClientID=" + _bll.Model.Supplier.ToString());
                break;

            case -1:
                MessageBox.Show(this, "必须在子户头上进行升级!");
                break;

            case -2:
                MessageBox.Show(this, "该子户头的供货商(即要降级的主户头),必须为经销商主户头!");
                break;

            default:
                MessageBox.Show(this, "子户头升级失败!错误码:" + ret.ToString());
                break;
            }
        }
    }