Esempio n. 1
0
 public PipeNeedNoticeItem(string key, PipeNeedNotice needNotice, Digger digger, PipeType pipeType)
     : base(key)
 {
     this.PipeNeedNotice = needNotice;
     this.Digger = digger;
     this.PipeType = pipeType;
 }
Esempio n. 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;
 }
Esempio n. 3
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;
 }
Esempio n. 4
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;
 }
Esempio n. 5
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;
        }
Esempio n. 6
0
        public void CacheLoaded()
        {
            if (this.PipeNeedNotice != null)
                this.PipeNeedNotice = RepositoryFactory.GetRepository<IPipeNeedNoticeRepository, PipeNeedNotice>().FindBy(this.PipeNeedNotice.Key);

            if (this.Digger != null)
                this.Digger = RepositoryFactory.GetRepository<IDiggerRepository, Digger>().FindBy(this.Digger.Key);

            if (this.PipeType != null)
                this.PipeType = RepositoryFactory.GetRepository<IPipeTypeRepository, PipeType>().FindBy(this.PipeType.Key);
        }
Esempio n. 7
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;
        }
Esempio n. 8
0
 public static bool Exist(PipeType model)
 {
     return RepositoryFactory.GetRepository<IPipeTypeRepository, PipeType>().FindBy(model.Code) != null;
 }
Esempio n. 9
0
 public static bool CanDelte(PipeType pipeType)
 {
     return false;
 }
Esempio n. 10
0
        public void CopyTo(PipeType pt)
        {
            if (pt == null)
            {
                throw new ArgumentNullException("pt");
            }

            pt.Name = this.Name;
            pt.ExternalDiameter = this.ExternalDiameter;
            pt.Thickness = this.Thickness;
            pt.SteelLevel = this.SteelLevel;
            pt.Screw = this.Screw;
            pt.AvgWeiht = this.AvgWeiht;
            pt.ConnectorLength = this.ConnectorLength;
            pt.IsCheckThickness = this.IsCheckThickness;
            pt.ThicknessUnit = this.ThicknessUnit;
            pt.ThincknessStandard = this.ThincknessStandard;
            pt.IsCheckAppearance = this.IsCheckAppearance;
            pt.StraightStandard = this.StraightStandard;
            pt.IsCheckUnBlock = this.IsCheckUnBlock;
            pt.UnBlockUnit = this.UnBlockUnit;
            pt.UnBlockStandard = this.UnBlockStandard;
            pt.IsCheckPressure = this.IsCheckPressure;
            pt.PressureDetectUnit = this.PressureDetectUnit;
            pt.PressureDetectStandard = this.PressureDetectStandard;
            pt.PressureHoldUnit = this.PressureHoldUnit;
            pt.PressureHoldStandard = this.PressureHoldStandard;
            pt.IsCheckCloseness = this.IsCheckCloseness;
            pt.MalePStandard = this.MalePStandard;
            pt.FemaleAStandard = this.FemaleAStandard;
            pt.IsCheckCrack = this.IsCheckCrack;
            pt.IsNeedMark = this.IsNeedMark;
            pt.OtherCheckItems = this.OtherCheckItems;
            pt.TotalLength = this.TotalLength;
            pt.TotalWeight = this.TotalWeight;
            pt.TotalCount = this.TotalCount;
            pt.ERPCode = this.ERPCode;
        }
Esempio n. 11
0
 public PipeTypeCount(PipeType pipeType, long count)
 {
     this.PipeType = pipeType;
     this.Count = count;
 }
Esempio n. 12
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;
 }
Esempio n. 13
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;
        }