예제 #1
0
파일: CarsConcise.cs 프로젝트: gpsh/hch.ws
 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;
 }
예제 #2
0
 public virtual void Check(ValidityState state)
 {
 }
예제 #3
0
 public override void Check(ValidityState state)
 {
     state.IsValueMissing = Input.IsRequired && !Input.IsChecked;
 }
예제 #4
0
파일: Account.cs 프로젝트: gpsh/hch.ws
 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;
 }
예제 #5
0
파일: Account.cs 프로젝트: gpsh/hch.ws
 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;
 }
예제 #6
0
        public override void Check(ValidityState state)
        {
            var value = Input.Value ?? String.Empty;

            state.IsPatternMismatch = IsInvalidPattern(Input.Pattern, value);
        }
예제 #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;
 }
예제 #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;
 }