Show / Hide Table of Contents

Class ProjectInfoProvider

Implementation of IProjectInfo; create through factory (see remarks)

Inheritance
Object
ProjectInfoProvider
Implements
IProjectInfo2
IProjectInfo
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Entities.Providers
Assembly: SoDataBase.dll
Syntax
public class ProjectInfoProvider : IProjectInfo2, IProjectInfo
Remarks

To create an instance of PersonInfoProvider, use

var info = ClassFactory.Create<IProjectInfo>(pers);

where pers is a Person, to use an already-loaded entity object (that may also contain unsaved data); or where pers is an int that is a personId, which will cause database fetches. The factory methods at the bottom of this class will handle both cases.

If you are in the Cpp world, or otherwise have unsaved data that you would want to use without incurring the overhead of an entity object, instantiate a SimplePersonInfo instead, fully populate it, and pass that to the factory.

Properties

Description

Declaration
public string Description { get; }
Property Value
Type Description
String

EventDate

Declaration
public string EventDate { get; }
Property Value
Type Description
String

HasGuide

Declaration
public bool HasGuide { get; }
Property Value
Type Description
Boolean

InfoText

Declaration
public string InfoText { get; }
Property Value
Type Description
String

Manager

Declaration
public string Manager { get; }
Property Value
Type Description
String

Name

Declaration
public string Name { get; }
Property Value
Type Description
String

NextMileStoneAppointmentId

Declaration
public int NextMileStoneAppointmentId { get; }
Property Value
Type Description
Int32

NextMilestoneDate

Declaration
public DateTime NextMilestoneDate { get; }
Property Value
Type Description
DateTime

Number

Declaration
public string Number { get; }
Property Value
Type Description
String

Project

Declaration
public Project Project { get; }
Property Value
Type Description
Project

ProjectEndDate

Declaration
public DateTime ProjectEndDate { get; }
Property Value
Type Description
DateTime

ProjectId

Declaration
public int ProjectId { get; }
Property Value
Type Description
Int32

PublishEndDate

Declaration
public string PublishEndDate { get; }
Property Value
Type Description
String

PublishStartDate

Declaration
public string PublishStartDate { get; }
Property Value
Type Description
String

Status

Declaration
public string Status { get; }
Property Value
Type Description
String

Type

Declaration
public string Type { get; }
Property Value
Type Description
String

Web

Declaration
public string Web { get; }
Property Value
Type Description
String

WebId

Declaration
public int WebId { get; }
Property Value
Type Description
Int32

Methods

GetUserDefinedDecimal(Int32)

Return a user defined value of type decimal

Declaration
public string GetUserDefinedDecimal(int fieldNo)
Parameters
Type Name Description
Int32 fieldNo

Index of field to retrieve value for

Returns
Type Description
String

String representation of the value of specified field

GetUserDefinedDecimal(String)

Get the decimal udef value based on the prog.id name of the udef field.

Declaration
public double GetUserDefinedDecimal(string progId)
Parameters
Type Name Description
String progId

Program name of udef field

Returns
Type Description
Double

double value of field, or NAN if field not found

GetUserDefinedInt(Int32)

Return a user defined value of type int

Declaration
public string GetUserDefinedInt(int fieldNo)
Parameters
Type Name Description
Int32 fieldNo

Index of field to retrieve value for

Returns
Type Description
String

String representation of the value of specified field

GetUserDefinedInt(String)

Get the int udef value based on the prog.id name of the udef field.

Declaration
public int GetUserDefinedInt(string progId)
Parameters
Type Name Description
String progId

Program name of udef field

Returns
Type Description
Int32

int value of field, or MINVALUE if field not found

GetUserDefinedString(Int32)

Return a user defined value of type string

Declaration
public string GetUserDefinedString(int fieldNo)
Parameters
Type Name Description
Int32 fieldNo

Index of field to retrieve value for

Returns
Type Description
String

Value of specified field

GetUserDefinedString(String)

Get the string udef value based on the prog.id name of the udef field.

Declaration
public string GetUserDefinedString(string progId)
Parameters
Type Name Description
String progId

Program name of udef field

Returns
Type Description
String

string value of field, or NULL if field not found

Implements

IProjectInfo2
IProjectInfo

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top