Esempio n. 1
0
 protected void FormView1_DataBound(object sender, EventArgs e)
 {
     if (!String.IsNullOrEmpty(Request.QueryString["ManageCode"]))
     {
         RmsOA.BFL.YF_AssetFacade af     = new RmsOA.BFL.YF_AssetFacade();
         RmsOA.BFL.AssetModel     aModel = new RmsOA.BFL.AssetModel();
         aModel = af.GetAssetName(Request.QueryString["ManageCode"]);
         if (!aModel.Equals(null))
         {
             Label lblName = (Label)(this.FormView1.Row.FindControl("NameLabel"));
             lblName.Text = aModel.EquiName;
             Label lblSortNo = (Label)(this.FormView1.Row.FindControl("SortNOLabel"));
             lblSortNo.Text = aModel.SortCode;
         }
     }
     if (this.FormView1.CurrentMode == FormViewMode.ReadOnly)
     {
         this.CheckFormViewButtonRight();
     }
 }