Ejemplo n.º 1
0
 public SubmittalContract()
 {
     this.projectKey                = null;
     this.specSection               = null;
     this.specSectionPrimaryIndex   = string.Empty;
     this.specSectionSecondaryIndex = string.Empty;
     this.to                            = null;
     this.from                          = null;
     this.totalPages                    = 0;
     this.deliveryMethod                = DeliveryContract.Hand;
     this.otherDeliveryMethod           = string.Empty;
     this.phaseNumber                   = string.Empty;
     this.reimbursable                  = false;
     this.final                         = false;
     this.copyToList                    = new List <CopyToContract>();
     this.dateReceived                  = null;
     this.contractNumber                = string.Empty;
     this.trackingItems                 = new List <TrackingItemContract>();
     this.routingItems                  = new List <RoutingItemContract>();
     this.remarks                       = string.Empty;
     this.action                        = ActionStatusContract.NoExceptionTaken;
     this.status                        = null;
     this.dateToField                   = null;
     this.remainderLocation             = SubmittalRemainderLocationContract.FilingCabinet;
     this.remainderUnderSubmittalNumber = string.Empty;
     this.otherRemainderLocation        = string.Empty;
     this.transmittalRemarks            = string.Empty;
 }
 public ProposalRequestContract()
 {
     this.projectKey          = null;
     this.transmittalDate     = DateTime.MinValue;
     this.totalPages          = 0;
     this.deliveryMethod      = DeliveryContract.Hand;
     this.otherDeliveryMethod = string.Empty;
     this.phaseNumber         = string.Empty;
     this.reimbursable        = false;
     this.final              = false;
     this.copyToList         = new List <CopyToContract>();
     this.transmittalRemarks = string.Empty;
     this.number             = 0;
     this.to          = null;
     this.from        = null;
     this.issueDate   = null;
     this.contractor  = null;
     this.description = string.Empty;
     this.attachment  = string.Empty;
     this.reason      = string.Empty;
     this.initiator   = string.Empty;
     this.cause       = 0;
     this.origin      = 0;
     this.remarks     = string.Empty;
 }
 public RequestForInformationContract()
 {
     this.projectKey = null;
     this.number = 0;
     this.from = null;
     this.totalPages = 0;
     this.deliveryMethod = DeliveryContract.Hand;
     this.phaseNumber = string.Empty;
     this.reimbursable = false;
     this.final = false;
     this.copyToList = new List<CopyToContract>();
     this.dateReceived = null;
     this.dateRequestedBy = null;
     this.contractor = null;
     this.specSection = null;
     this.routingItems = new List<RoutingItemContract>();
     this.question = string.Empty;
     this.description = string.Empty;
     this.contractorProposedSolution = string.Empty;
     this.change = false;
     this.cause = 0;
     this.origin = 0;
     this.status = null;
     this.dateToField = null;
     this.shortAnswer = string.Empty;
     this.longAnswer = string.Empty;
     this.remarks = string.Empty;
 }
Ejemplo n.º 4
0
 public SubmittalContract()
 {
     this.projectKey = null;
     this.specSection = null;
     this.specSectionPrimaryIndex = string.Empty;
     this.specSectionSecondaryIndex = string.Empty;
     this.to = null;
     this.from = null;
     this.totalPages = 0;
     this.deliveryMethod = DeliveryContract.Hand;
     this.otherDeliveryMethod = string.Empty;
     this.phaseNumber = string.Empty;
     this.reimbursable = false;
     this.final = false;
     this.copyToList = new List<CopyToContract>();
     this.dateReceived = null;
     this.contractNumber = string.Empty;
     this.trackingItems = new List<TrackingItemContract>();
     this.routingItems = new List<RoutingItemContract>();
     this.remarks = string.Empty;
     this.action = ActionStatusContract.NoExceptionTaken;
     this.status = null;
     this.dateToField = null;
     this.remainderLocation = SubmittalRemainderLocationContract.FilingCabinet;
     this.remainderUnderSubmittalNumber = string.Empty;
     this.otherRemainderLocation = string.Empty;
 }
Ejemplo n.º 5
0
 public RequestForInformationContract()
 {
     this.projectKey                 = null;
     this.number                     = 0;
     this.from                       = null;
     this.totalPages                 = 0;
     this.deliveryMethod             = DeliveryContract.Hand;
     this.phaseNumber                = string.Empty;
     this.reimbursable               = false;
     this.final                      = false;
     this.copyToList                 = new List <CopyToContract>();
     this.dateReceived               = null;
     this.dateRequestedBy            = null;
     this.contractor                 = null;
     this.specSection                = null;
     this.routingItems               = new List <RoutingItemContract>();
     this.question                   = string.Empty;
     this.description                = string.Empty;
     this.contractorProposedSolution = string.Empty;
     this.change                     = false;
     this.cause                      = 0;
     this.origin                     = 0;
     this.status                     = null;
     this.dateToField                = null;
     this.shortAnswer                = string.Empty;
     this.longAnswer                 = string.Empty;
     this.remarks                    = string.Empty;
 }
Ejemplo n.º 6
0
 protected TransmittalContract()
 {
     this.projectKey = null;
     this.transmittalDate = DateTime.Now;
     this.totalPages = 1;
     this.deliveryMethod = DeliveryContract.None;
     this.otherDeliveryMethod = string.Empty;
     this.phaseNumber = string.Empty;
     this.reimbursable = false;
     this.final = false;
     this.copyToList = new List<CopyToContract>();
     this.transmittalRemarks = string.Empty;
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Проверяет, что игрок выбрал доступный контракт
        /// </summary>
        private bool AllowChooseContract(Client player, DeliveryContract contract)
        {
            var workLevel = WorkInfoManager.GetWorkInfo(player, WorkType.Pilot).Level;

            if (_farmContracts.Contains(contract.Type) && !LevelEnough(player, workLevel, 2) ||
                _militaryContracts.Contains(contract.Type) && !LevelEnough(player, workLevel, 3) ||
                ClanFarmContracts.Contains(contract.Type) && !ClanRankEnough(player, workLevel, 3, ClanRank.Low) ||
                ClanMilitaryContracts.Contains(contract.Type) && !ClanRankEnough(player, workLevel, 4, ClanRank.Middle))
            {
                return(false);
            }
            return(true);
        }
Ejemplo n.º 8
0
 protected TransmittalContract()
 {
     this.projectKey          = null;
     this.transmittalDate     = DateTime.Now;
     this.totalPages          = 1;
     this.deliveryMethod      = DeliveryContract.None;
     this.otherDeliveryMethod = string.Empty;
     this.phaseNumber         = string.Empty;
     this.reimbursable        = false;
     this.final              = false;
     this.copyToList         = new List <CopyToContract>();
     this.transmittalRemarks = string.Empty;
 }
Ejemplo n.º 9
0
        /// <summary>
        /// Возвращает репутацию клана за выполненный контракт
        /// </summary>
        private static int GetClanReputation(DeliveryContract contract)
        {
            var reputation = 0;

            if (PilotMenuHandler.ClanFarmContracts.Contains(contract.Type))
            {
                reputation = 5;
            }
            if (PilotMenuHandler.ClanMilitaryContracts.Contains(contract.Type))
            {
                reputation = 10;
            }
            return(reputation);
        }
Ejemplo n.º 10
0
    public Contract GetContractForShop()
    {
        Contract c;
        if(isDelivery)
        {
            c = new DeliveryContract();
        }
        else
        {
            c = new SupplyContract();
        }
        c.Crate = new Crate();
        int numFeatures = RandomEx.RandomIndexWeighted(sizeWeights) + 1;
        for(int i = 0; i < numFeatures; i++)
        {
            c.Crate.Features.Add(CrateFeature.RandomNonWild());
        }

        c.Quantity = Random.Range(1,20)*50;

        return c;
    }