コード例 #1
0
ファイル: ModelReview.cs プロジェクト: hellonlink/sun
 public ModelReview(Review item)
 {
     id          = item.id;
     comment     = item.comment;
     up          = item.up;
     createdTime = item.createdTime;
     if (item.Customer != null)
     {
         customerMobile = item.Customer.MOBILE;
         customerImg    = WebFunctions.GetCustomerPortrait(item.Customer.HEAD_PORTEAIT);
     }
 }
コード例 #2
0
 public ModelCustomer(Customer item)
 {
     id            = item.CUSTOMER_ID;
     mobile        = item.MOBILE;
     realName      = item.REAL_NAME;
     sex           = item.SEX;
     birthday      = item.BIRTHDAY.HasValue ? item.BIRTHDAY.Value.ToString("yyyy-MM-dd") : string.Empty;
     province      = item.PROVINCE;
     market        = item.MARKET;
     intro         = item.intro;
     qualification = item.qualification;
     periods       = item.periods;
     customerImg   = WebFunctions.GetCustomerPortrait(item.HEAD_PORTEAIT);
 }