コード例 #1
0
ファイル: AllocationCode.cs プロジェクト: Bosuu/AutotaskNET
        }                                    //end AllocationCode()

        public AllocationCode(net.autotask.webservices.AllocationCode entity) : base(entity)
        {
            this.Active                     = bool.Parse(entity.Active.ToString());
            this.AllocationCodeType         = entity.AllocationCodeType == null ? default(int?) : int.Parse(entity.AllocationCodeType.ToString());
            this.Department                 = entity.Department == null ? default(int?) : int.Parse(entity.Department.ToString());
            this.Description                = entity.Description == null ? default(string) : entity.Description.ToString();
            this.ExternalNumber             = entity.ExternalNumber == null ? default(string) : entity.ExternalNumber.ToString();
            this.GeneralLedgerCode          = entity.GeneralLedgerCode == null ? default(int?) : int.Parse(entity.GeneralLedgerCode.ToString());
            this.IsExcludedFromNewContracts = entity.IsExcludedFromNewContracts == null ? default(bool?) : bool.Parse(entity.IsExcludedFromNewContracts.ToString());
            this.MarkupRate                 = double.Parse(entity.MarkupRate.ToString());
            this.Name          = entity.Name == null ? default(string) : entity.Name.ToString();
            this.Taxable       = entity.Taxable == null ? default(bool?) : bool.Parse(entity.Taxable.ToString());
            this.TaxCategoryID = entity.TaxCategoryID == null ? default(int?) : int.Parse(entity.TaxCategoryID.ToString());
            this.Type          = entity.Type == null ? default(int?) : int.Parse(entity.Type.ToString());
            this.UnitCost      = double.Parse(entity.UnitCost.ToString());
            this.UnitPrice     = double.Parse(entity.UnitPrice.ToString());
            this.UseType       = entity.UseType == null ? default(int?) : int.Parse(entity.UseType.ToString());
        } //end AllocationCode(net.autotask.webservices.AllocationCode entity)
コード例 #2
0
        }                                    //end AllocationCode()

        public AllocationCode(net.autotask.webservices.AllocationCode entity) : base(entity)
        {
        } //end AllocationCode(net.autotask.webservices.AllocationCode entity)