示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.CurrentPosition = "代码项添加";
     this.CurrentTitle    = "代码项添加";
     this.Title           = "代码项添加";
     if (!this.Page.IsPostBack)
     {
         this.ViewState["ItemCode"] = Request["ItemCode"];
         this.ViewState["MainGuid"] = Request["MainGuid"];
         this.ViewState["CodeName"] = new DB_Frame_Code_Main().GetDetail(this.ViewState["MainGuid"].ToString()).CodeName;
         Detail_Frame_Code_Item item = new DB_Frame_Code_Item().GetDetail_ItemCode(this.ViewState["MainGuid"].ToString(), this.ViewState["ItemCode"].ToString());
         this.txtPreItemName.Text = item.ItemText;
         if (this.txtPreItemName.Text == "")
         {
             this.txtPreItemName.Text = "根";
         }
     }
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     this.CurrentPosition = "���������";
     this.CurrentTitle = "���������";
     this.Title = "���������";
     if (!this.Page.IsPostBack)
     {
         this.ViewState["ItemCode"] = Request["ItemCode"];
         this.ViewState["MainGuid"] = Request["MainGuid"];
         this.ViewState["CodeName"] = new DB_Frame_Code_Main().GetDetail(this.ViewState["MainGuid"].ToString()).CodeName;
         Detail_Frame_Code_Item item = new DB_Frame_Code_Item().GetDetail_ItemCode(this.ViewState["MainGuid"].ToString(), this.ViewState["ItemCode"].ToString());
         this.txtPreItemName.Text = item.ItemText;
         if (this.txtPreItemName.Text == "")
         {
             this.txtPreItemName.Text = "��";
         }
     }
 }