예제 #1
0
        public CoinViewModel(View_CoinWithLastDealHistory coin)
        {
            Id = coin.Id.ToString();
            LastLOT = coin.LastLot;
            LOTS = coin.LOTS;
            Name = "<a href='../OldCoins/Details?id=" + coin.Id.ToString() + "' style='color:Blue' target='_blank'>"
                + (String.IsNullOrWhiteSpace(coin.AppraisalInstitute) ? "" :  coin.AppraisalInstitute + " ")
                + (String.IsNullOrWhiteSpace(coin.AppraisalScore) ? "" : coin.AppraisalScore + " ")
                + coin.Name + "</>";
            //Description = coin.Description;
            AppraisalInstitute = coin.AppraisalInstitute;
            CoinLevelName = coin.CoinLevelName;
            AppraisalScore = coin.AppraisalScore;
            PCGSNo = coin.PCGSNo;
            LastDealCompany = coin.LastDealCompany;
            LastDealDate = coin.LastDealDate.ToShortDateString();
            LastDealPrice = coin.LastDealPrice;

            NeedCompare = Id;

            this.coin = coin;
        }
예제 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the View_CoinWithLastDealHistory EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToView_CoinWithLastDealHistory(View_CoinWithLastDealHistory view_CoinWithLastDealHistory)
 {
     base.AddObject("View_CoinWithLastDealHistory", view_CoinWithLastDealHistory);
 }
예제 #3
0
 /// <summary>
 /// Create a new View_CoinWithLastDealHistory object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="coinTypeId">Initial value of the CoinTypeId property.</param>
 /// <param name="image">Initial value of the Image property.</param>
 /// <param name="createDate">Initial value of the CreateDate property.</param>
 /// <param name="modifyDate">Initial value of the ModifyDate property.</param>
 /// <param name="lastDealDate">Initial value of the LastDealDate property.</param>
 /// <param name="lastDealCompany">Initial value of the LastDealCompany property.</param>
 /// <param name="lastDealPrice">Initial value of the LastDealPrice property.</param>
 /// <param name="coinTypeName">Initial value of the CoinTypeName property.</param>
 public static View_CoinWithLastDealHistory CreateView_CoinWithLastDealHistory(global::System.Guid id, global::System.String name, global::System.String description, global::System.Int32 coinTypeId, global::System.String image, global::System.DateTime createDate, global::System.DateTime modifyDate, global::System.DateTime lastDealDate, global::System.String lastDealCompany, global::System.Decimal lastDealPrice, global::System.String coinTypeName)
 {
     View_CoinWithLastDealHistory view_CoinWithLastDealHistory = new View_CoinWithLastDealHistory();
     view_CoinWithLastDealHistory.Id = id;
     view_CoinWithLastDealHistory.Name = name;
     view_CoinWithLastDealHistory.Description = description;
     view_CoinWithLastDealHistory.CoinTypeId = coinTypeId;
     view_CoinWithLastDealHistory.Image = image;
     view_CoinWithLastDealHistory.CreateDate = createDate;
     view_CoinWithLastDealHistory.ModifyDate = modifyDate;
     view_CoinWithLastDealHistory.LastDealDate = lastDealDate;
     view_CoinWithLastDealHistory.LastDealCompany = lastDealCompany;
     view_CoinWithLastDealHistory.LastDealPrice = lastDealPrice;
     view_CoinWithLastDealHistory.CoinTypeName = coinTypeName;
     return view_CoinWithLastDealHistory;
 }