コード例 #1
0
        protected void gvProductType_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            int productid = Convert.ToInt32(gvProductType.DataKeys[e.RowIndex].Value);

            OfferPriceInfo.DelProductType(productid);
            gvProductBind();
        }
コード例 #2
0
ファイル: AddPrice1.aspx.cs プロジェクト: xingfudaiyan/OA
        protected void gvProductType_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            int productid = Convert.ToInt32(gvProductType.DataKeys[e.RowIndex].Value);

            OfferPriceInfo.DelProductType(productid);
            gvProductBind();

            int    OpId = Convert.ToInt32(Request["OfferPriceId"].ToString());
            string str  = OfferPriceInfo.GetProductMoneySum(OpId);

            if (str == "")
            {
                lblMoneySum.Text = "0元";
            }
            else
            {
                lblMoneySum.Text = OfferPriceInfo.GetProductMoneySum(OpId) + "元";
            }
        }