예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         if (Session["GoodID"] == null)
         {
             Response.Redirect("GA_GoodExam.aspx");
         }
         else
         {
             string         lGoodID         = Session["GoodID"].ToString();
             GA             Gadmin          = new GA();
             GAController   gadim           = new GAController();
             List <Good>    GoodInfo        = new List <Good>();
             List <ImgInfo> GoodPictureInfo = new List <ImgInfo>();
             GoodInfo                 = gadim.GoodInfo(Gadmin, lGoodID);
             GoodPictureInfo          = gadim.GoodPictureInfo(Gadmin, lGoodID);
             tbxGoodName.Text         = GoodInfo[0].GoodName;
             tbxGoodPrice.Text        = GoodInfo[0].GoodPrice;
             tbxGoodIncontory.Text    = GoodInfo[0].GoodIncentory.ToString();
             tbxGoodSales.Text        = GoodInfo[0].SalesVolume.ToString();
             tbxGoodImgTitle.Text     = GoodPictureInfo[0].ImgTitle;
             tbxGoodImgUrl.Text       = GoodPictureInfo[0].ImgAddress;
             tbxGoodIncontory.Enabled = false;
             tbxGoodSales.Enabled     = false;
         }
     }
 }