예제 #1
0
    protected void FormView1_DataBound(object sender, EventArgs e)
    {
        if (this.FormView1.CurrentMode == FormViewMode.ReadOnly)
        {
            this.CheckFormViewButtonRight();
        }

        Label lblCodeNO = (Label)(this.FormView1.Row.FindControl("CodeNOLabel"));

        if (!String.IsNullOrEmpty(Request.QueryString["ManageCode"]))
        {
            AssetModel aModel = aBFL.GetAssetName(Request.QueryString["ManageCode"]);
            lblCodeNO.Text = aModel.SortCode;
        }
    }
예제 #2
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();
        }
    }
예제 #3
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();
     }
 }