Exemplo n.º 1
0
 public CarsConcise(string AccountId    = null, string CarsDetailsId = null, string CorporationId = null, string Name = null, string BrandId = null, string SeriesId = null,
                    Decimal GuidePrice  = 0, Decimal SellingPrice    = 0, Decimal BasePrice       = 0,
                    ValidityState State = ValidityState.Disabled, string SurfaceImage = null, CarSell CarSell = CarSell.Sale, CarActivity CarActivity = CarActivity.None)
 {
     this.AccountId     = AccountId;
     this.CarsDetailsId = CarsDetailsId;
     this.CorporationId = CorporationId;
     this.CarSell       = CarSell;
     this.BrandId       = BrandId;
     this.SeriesId      = SeriesId;
     this.CarActivity   = CarActivity;
     this.Name          = Name;
     this.GuidePrice    = GuidePrice;
     this.SellingPrice  = SellingPrice;
     this.BasePrice     = BasePrice;
     this.State         = State;
     this.SurfaceImage  = SurfaceImage;
     this.UpdateTime    = DateTime.Now;
 }
Exemplo n.º 2
0
 public virtual void Check(ValidityState state)
 {
 }
Exemplo n.º 3
0
 public override void Check(ValidityState state)
 {
     state.IsValueMissing = Input.IsRequired && !Input.IsChecked;
 }
Exemplo n.º 4
0
 public Account(string WechatName, string OpenId, string Session_Key, Gender Sex, ValidityState State, Identity Identity, string Logo, DateTime UpdateTime)
 {
     this.WechatName  = WechatName;
     this.OpenId      = OpenId;
     this.UpdateTime  = UpdateTime;
     this.State       = State;
     this.Sex         = Sex;
     this.Logo        = Logo;
     this.Identity    = Identity;
     this.Session_Key = Session_Key;
 }
Exemplo n.º 5
0
 public Account(string Wechat, string WechatName, string OpenId, string Corporation, Gender Sex, string Email, string Phone, string Name, ValidityState State, Identity Identity, string Logo, DateTime UpdateTime)
 {
     this.WechatName  = WechatName;
     this.Wechat      = Wechat;
     this.OpenId      = OpenId;
     this.UpdateTime  = UpdateTime;
     this.State       = State;
     this.Sex         = Sex;
     this.Phone       = Phone;
     this.Name        = Name;
     this.Logo        = Logo;
     this.Identity    = Identity;
     this.Email       = Email;
     this.Corporation = Corporation;
 }
Exemplo n.º 6
0
        public override void Check(ValidityState state)
        {
            var value = Input.Value ?? String.Empty;

            state.IsPatternMismatch = IsInvalidPattern(Input.Pattern, value);
        }
Exemplo n.º 7
0
 public ResBrand(string ParentId, string Name, string Capital, string BrandLogo, ValidityState State, CarSeriesGrade CarGrade, CarBrandType CarBrand, CarBrandCountry BrandCountry)
 {
     this.ParentId     = ParentId;
     this.Name         = Name;
     this.Capital      = Capital;
     this.State        = State;
     this.BrandLogo    = BrandLogo;
     this.SeriesGrade  = CarGrade;
     this.BrandType    = CarBrand;
     this.BrandCountry = BrandCountry;
 }
Exemplo n.º 8
0
 public Corporation(string Name, string Address, string Presentation, string FixPhone, string Image, ValidityState State, DateTime UpdateTime)
 {
     this.Name         = Name;
     this.Address      = Address;
     this.FixPhone     = FixPhone;
     this.Image        = Image;
     this.Presentation = Presentation;
     this.State        = State;
     this.UpdateTime   = UpdateTime;
 }