Ejemplo n.º 1
0
 public CRM_Customer_Profile()
 {
     this.ID                 = string.IsNullOrEmpty(ID.ToString()) ? ID : 0;
     this.CustomerID         = string.IsNullOrEmpty(CustomerID) ? CustomerID : "";
     this.CustomerName       = string.IsNullOrEmpty(CustomerName) ? CustomerName : "";
     this.Address            = string.IsNullOrEmpty(Address) ? Address : "";
     this.Phone              = string.IsNullOrEmpty(Phone) ? Phone : "";
     this.Website            = string.IsNullOrEmpty(Website) ? Website : "";
     this.BusinessCategoryID = string.IsNullOrEmpty(BusinessCategoryID) ? BusinessCategoryID : "";
     this.FoundedDate        = string.IsNullOrEmpty(FoundedDate.ToString()) ? FoundedDate : DateTime.Now;
     this.Avatar             = string.IsNullOrEmpty(Avatar) ? Avatar : Avatar;
     this.DescriptionCompany = string.IsNullOrEmpty(DescriptionCompany) ? DescriptionCompany : DescriptionCompany;
     this.Refer              = string.IsNullOrEmpty(Refer) ? DescriptionCompany : Refer;
     this.Status             = string.IsNullOrEmpty(Status.ToString()) ? Status : true;
     this.UpdatedAt          = string.IsNullOrEmpty(UpdatedAt.ToString()) ? UpdatedAt : DateTime.Parse("1900-01-01");
     this.CreatedAt          = string.IsNullOrEmpty(CreatedAt.ToString()) ? CreatedAt : DateTime.Parse("1900-01-01");
     this.CreatedBy          = string.IsNullOrEmpty(CreatedBy) ? CreatedBy : "";
     this.UpdatedBy          = string.IsNullOrEmpty(UpdatedBy) ? UpdatedBy : "";
 }
Ejemplo n.º 2
0
 public override string[] GetModelData()
 {
     return(new string[] { Id.ToString(), Name, FoundedDate.ToString(), LocationCount.ToString() });
 }