コード例 #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
ファイル: ReportDetails.cs プロジェクト: dalinhuang/cy-pdcpms
 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
ファイル: CompanyPolicy.cs プロジェクト: dalinhuang/cy-pdcpms
        public static bool CanDelete(DetectionCompany dc)
        {
            if (dc == null) { throw new ArgumentNullException("dc"); }

            if (dc.IsLocked) return false;

            return true;
        }
コード例 #4
0
ファイル: DeliverNotice.cs プロジェクト: dalinhuang/cy-pdcpms
 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
ファイル: TransferTask.cs プロジェクト: dalinhuang/cy-pdcpms
 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
ファイル: AccountSearch.cs プロジェクト: dalinhuang/cy-pdcpms
 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
ファイル: AccountSearch.cs プロジェクト: dalinhuang/cy-pdcpms
 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
ファイル: Pipe.cs プロジェクト: dalinhuang/cy-pdcpms
 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;
        }