Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //填充数据
            allInfo             = pm.GetAllInfo();
            anpPage.RecordCount = allInfo.Count;
            DisPlay();

            if (Session["cp"] != null)
            {
                CustomerPriceTB cp = Session["cp"] as CustomerPriceTB;
                gvTemp.DataSource = pm.GetPriceBypno(cp.PNo);
                gvTemp.DataBind();
            }
        }
    }