示例#1
0
    protected void FormView1_DataBound(object sender, EventArgs e)
    {
        RmsOA.BFL.AssetModel aModel = new RmsOA.BFL.AssetModel();
        Label lblCodeNO             = (Label)(this.FormView1.Row.FindControl("CodeNOLabel"));
        Label lblApplyer            = (Label)(this.FormView1.Row.FindControl("UserCodeLabel"));

        aModel = aBFL.GetAssetName(Request.QueryString["ManageCode"]);
        if (!aModel.Equals(null))
        {
            lblCodeNO.Text = aModel.SortCode;
        }
        lblApplyer.Text = user.UserName;
        if (this.FormView1.CurrentMode == FormViewMode.ReadOnly)
        {
            this.CheckFormViewButtonRight();
        }
    }
示例#2
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();
     }
 }