示例#1
0
 public PipeNeedNotice(string key, string code, DetectionCompany company, Account creator, DateTime dateCreated)
     : base(key)
 {
     this.Code = code;
     this.Company = company;
     this.Creator = creator;
     this.DateCreated = dateCreated;
 }
示例#2
0
 public ReportDetails(string key, DetectionCompany company, PipeType pipeType, Account reporter, DateTime datecreated)
     : base(key)
 {
     this.Company = company;
     this.Reporter = reporter;
     this.DateCreated = datecreated;
     this.PipeType = pipeType;
 }
示例#3
0
        public static bool CanDelete(DetectionCompany dc)
        {
            if (dc == null) { throw new ArgumentNullException("dc"); }

            if (dc.IsLocked) return false;

            return true;
        }
示例#4
0
 public DeliverNotice(int key, DetectionCompany company, Account creator, PipeType pipeType, DateTime dateCreated)
     : base(key)
 {
     this.Company = company;
     this.Creator = creator;
     this.DateCreated = dateCreated;
     this.PipeType = pipeType;
 }
示例#5
0
 public TransferTask(string key, PipeType pipeType, DetectionCompany company, Account creator, DateTime dateCreated, bool isSysTask)
     : base(key)
 {
     this.PipeType = pipeType;
     this.Company = company;
     this.DateCreated = dateCreated;
     this.Creator = creator;
     this.IsSystemTask = isSysTask;
 }
示例#6
0
        public TransferNotice(string key, DetectionCompany company, PipeType pipeType, PipePosition position,Account creator, DateTime dateCreated)
            : base(key)
        {
            this.Company = company;
            this.Creator = creator;
            this.DateCreated = dateCreated;
            this.PipeType = pipeType;
            this.Position = position;

            this.State = TransferNoticeState.Created;
        }
示例#7
0
 public AccountSearch(string name, Gender gender,
     DetectionCompany company, DetectionGroup group,
     int pageindex, int pagesize)
     : this()
 {
     this.Name = name;
     this.Gender = gender;
     this.Company = company;
     this.Group = group;
     this.PagingInfo = new PagingInfo(pageindex, pagesize);
 }
示例#8
0
 public AccountSearch(string name, Gender gender,
     DetectionCompany company, DetectionGroup group,
     PagingInfo pagingInfo)
     : this()
 {
     this.Name = name;
     this.Gender = gender;
     this.Company = company;
     this.Group = group;
     this.PagingInfo = pagingInfo;
 }
示例#9
0
        public OutgoingNotice(string key, DetectionCompany company, PipeType pipeType, Digger digger, Account creator, DateTime dateCreated)
            : base(key)
        {
            this.Company = company;
            this.Digger = digger;
            this.Creator = creator;
            this.DateCreated = dateCreated;
            this.PipeType = pipeType;

            this.State = OutgoingNoticeState.Created;
        }
示例#10
0
 public PipePosition(int key, DetectionCompany company, bool isLocked)
     : base(key)
 {
     this.company = company;
     this.isLocked = isLocked;
 }
示例#11
0
 public void CacheLoaded()
 {
     if (this.Company != null)
         this.company = RepositoryFactory.GetRepository<IDetectionCompanyRepository, DetectionCompany>().FindBy(this.company.Key);
 }
示例#12
0
 public DetectionGroup(string key, DetectionCompany company, DetectionGroupCategory category)
     : base(key)
 {
     this.company = company;
     this.category = category;
 }
示例#13
0
 public Pipe(long key, PipeType type, PipeCategory category, DetectionCompany company, PipeOwner owner, Producer producer,
     Supplier supplier, DeliverNotice notice, DeliverWaggon waggon)
     : base(key)
 {
     this.PipeType = type;
     this.Category = category;
     this.DetectionCompany = company;
     this.Owner = owner;
     this.Producer = producer;
     this.Supplier = supplier;
     this.DeliverNotice = notice;
     this.DeliverWaggon = waggon;
 }
示例#14
0
        public NormalCheckTask(string key, string code, DetectionCompany company, PipeType pipeTye, Digger targetDigger,
            TransferTask transferTask, Account creator, DateTime dateCreated)
            : base(key)
        {
            this.Code = code;
            this.Company = company;
            this.PipeType = pipeTye;
            this.TargetDigger = targetDigger;
            this.TransferTask = transferTask;
            this.Creator = creator;
            this.DateCreated = dateCreated;

            this.CheckPressureType = CheckPressureType.NotGiven;
            this.CheckBodyCrackType = PDCPMS.Model.NormalCheck.CheckBodyCrackType.NotGiven;
        }