コード例 #1
0
 private void ShowInfo(string CommodityFatherID)
 {
     Maticsoft.BLL.CommodityFather   bll   = new Maticsoft.BLL.CommodityFather();
     Maticsoft.Model.CommodityFather model = bll.GetModel(CommodityFatherID);
     this.lblCommodityFatherID.Text   = model.CommodityFatherID;
     this.lblCommodityFatherName.Text = model.CommodityFatherName;
 }
コード例 #2
0
ファイル: BackFatherchange.aspx.cs プロジェクト: Jyf524/RunZe
 protected void Page_Load(object sender, EventArgs e)
 {
     if (UsersInfo.UserID == "")
     {
         Response.Write("<script> alert('请先登录!'); window.location.href='/BackLogin.aspx' </script>");
         return;
     }
     if (!IsPostBack)
     {
         if (Request.QueryString["ID"] != null)
         {
             Maticsoft.Model.CommodityFather modelnew = CommodityFather_BLL.GetModel(Request.QueryString["ID"].ToString()); //引用id所在行的数据
             RadTextBox1.Text = modelnew.CommodityFatherName;                                                               //添加数据
         }
     }
 }