예제 #1
0
파일: System.cs 프로젝트: keithkim/xmlvm
 public static long currentTimeMillis()
 {
     //XMLVM_BEGIN_WRAPPER[java.lang.System: long currentTimeMillis()]
     global::System.DateTime Jan1st1970 = new global::System.DateTime(1970, 1, 1, 0, 0, 0, global::System.DateTimeKind.Utc);
     return (long)(global::System.DateTime.UtcNow - Jan1st1970).TotalMilliseconds;
     //XMLVM_END_WRAPPER[java.lang.System: long currentTimeMillis()]
 }
예제 #2
0
 private static void @__ctorDateTime10(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__class, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int year, int month, int day, int hour, int minute, int second, int millisecond, global::net.sf.jni4net.utils.JniLocalHandle calendar, global::net.sf.jni4net.utils.JniLocalHandle kind)
 {
     // (IIIIIIILsystem/Object;Lsystem/Enum;)V
     // (IIIIIIILSystem/Globalization/Calendar;LSystem/DateTimeKind;)V
     global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
     try {
     global::System.DateTime @__real = new global::System.DateTime(year, month, day, hour, minute, second, millisecond, global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::System.Globalization.Calendar>(@__env, calendar), global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::System.DateTimeKind>(@__env, kind));
     global::net.sf.jni4net.utils.Convertor.InitProxy(@__env, @__obj, @__real);
     }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);}
 }
예제 #3
0
 private static void @__ctorDateTime2(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__class, global::net.sf.jni4net.utils.JniLocalHandle @__obj, int year, int month, int day)
 {
     // (III)V
     // (III)V
     global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
     try {
     global::System.DateTime @__real = new global::System.DateTime(year, month, day);
     global::net.sf.jni4net.utils.Convertor.InitProxy(@__env, @__obj, @__real);
     }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);}
 }
예제 #4
0
 private static void @__ctorDateTime1(global::System.IntPtr @__envp, global::net.sf.jni4net.utils.JniLocalHandle @__class, global::net.sf.jni4net.utils.JniLocalHandle @__obj, long ticks, global::net.sf.jni4net.utils.JniLocalHandle kind)
 {
     // (JLsystem/Enum;)V
     // (JLSystem/DateTimeKind;)V
     global::net.sf.jni4net.jni.JNIEnv @__env = global::net.sf.jni4net.jni.JNIEnv.Wrap(@__envp);
     try {
     global::System.DateTime @__real = new global::System.DateTime(ticks, global::net.sf.jni4net.utils.Convertor.StrongJp2C<global::System.DateTimeKind>(@__env, kind));
     global::net.sf.jni4net.utils.Convertor.InitProxy(@__env, @__obj, @__real);
     }catch (global::System.Exception __ex){@__env.ThrowExisting(__ex);}
 }
예제 #5
0
 /// <summary>
 /// Create a new access_settings object.
 /// </summary>
 /// <param name="access_id">Initial value of the access_id property.</param>
 /// <param name="access_name">Initial value of the access_name property.</param>
 /// <param name="parent_id">Initial value of the parent_id property.</param>
 /// <param name="created_date">Initial value of the created_date property.</param>
 /// <param name="created_by">Initial value of the created_by property.</param>
 /// <param name="updated_date">Initial value of the updated_date property.</param>
 /// <param name="updated_by">Initial value of the updated_by property.</param>
 public static access_settings Createaccess_settings(global::System.Int32 access_id, global::System.String access_name, global::System.Int32 parent_id, global::System.DateTime created_date, global::System.String created_by, global::System.DateTime updated_date, global::System.String updated_by)
 {
     access_settings access_settings = new access_settings();
     access_settings.access_id = access_id;
     access_settings.access_name = access_name;
     access_settings.parent_id = parent_id;
     access_settings.created_date = created_date;
     access_settings.created_by = created_by;
     access_settings.updated_date = updated_date;
     access_settings.updated_by = updated_by;
     return access_settings;
 }
예제 #6
0
 private static void _ActionDate_SetImplementationValue(global::LightSwitchApplication.Action.DetailsClass d, global::System.DateTime v)
 {
     d.ImplementationEntity.ActionDate = global::LightSwitchApplication.Action.DetailsClass.ClearDateTimeKind(v);
 }
예제 #7
0
 partial void OnLastUpdatedChanging(global::System.DateTime value);
예제 #8
0
        public static PublishedPackage CreatePublishedPackage(string ID, string version, long packageSize, decimal price, bool requireLicenseAcceptance, bool isLatestVersion, double versionRating, int versionRatingsCount, int versionDownloadCount, global::System.DateTime created, global::System.DateTime lastUpdated, global::System.DateTime published, double rating, int ratingsCount, int downloadCount)
        {
            PublishedPackage publishedPackage = new PublishedPackage();

            publishedPackage.Id          = ID;
            publishedPackage.Version     = version;
            publishedPackage.PackageSize = packageSize;
            publishedPackage.Price       = price;
            publishedPackage.RequireLicenseAcceptance = requireLicenseAcceptance;
            publishedPackage.IsLatestVersion          = isLatestVersion;
            publishedPackage.VersionRating            = versionRating;
            publishedPackage.VersionRatingsCount      = versionRatingsCount;
            publishedPackage.VersionDownloadCount     = versionDownloadCount;
            publishedPackage.Created       = created;
            publishedPackage.LastUpdated   = lastUpdated;
            publishedPackage.Published     = published;
            publishedPackage.Rating        = rating;
            publishedPackage.RatingsCount  = ratingsCount;
            publishedPackage.DownloadCount = downloadCount;
            return(publishedPackage);
        }
예제 #9
0
        /// <summary>
        /// Create a new Event object.
        /// </summary>
        /// <param name="eventId">Initial value of the EventId property.</param>
        /// <param name="startTime">Initial value of the StartTime property.</param>
        /// <param name="endTime">Initial value of the EndTime property.</param>
        /// <param name="duration">Initial value of the Duration property.</param>
        /// <param name="type">Initial value of the Type property.</param>
        /// <param name="data">Initial value of the Data property.</param>
        public static Event CreateEvent(global::System.Guid eventId, global::System.DateTime startTime, global::System.DateTime endTime, global::System.String duration, global::System.String type, global::System.String data)
        {
            Event @event = new Event();

            @event.EventId   = eventId;
            @event.StartTime = startTime;
            @event.EndTime   = endTime;
            @event.Duration  = duration;
            @event.Type      = type;
            @event.Data      = data;
            return(@event);
        }
예제 #10
0
        /// <summary>
        /// Create a new vspclient object.
        /// </summary>
        /// <param name="id">Initial value of the id property.</param>
        /// <param name="parent_id">Initial value of the parent_id property.</param>
        /// <param name="contactFirstName">Initial value of the ContactFirstName property.</param>
        /// <param name="contactLastName">Initial value of the ContactLastName property.</param>
        /// <param name="businessName">Initial value of the BusinessName property.</param>
        /// <param name="agent_id">Initial value of the agent_id property.</param>
        /// <param name="businessType">Initial value of the businessType property.</param>
        /// <param name="sICcode">Initial value of the SICcode property.</param>
        /// <param name="status">Initial value of the status property.</param>
        /// <param name="effectiveDate">Initial value of the effectiveDate property.</param>
        /// <param name="termDate">Initial value of the termDate property.</param>
        /// <param name="billingType_id">Initial value of the billingType_id property.</param>
        /// <param name="invoiceName">Initial value of the invoiceName property.</param>
        /// <param name="address">Initial value of the address property.</param>
        /// <param name="address2">Initial value of the address2 property.</param>
        /// <param name="city">Initial value of the city property.</param>
        /// <param name="state">Initial value of the state property.</param>
        /// <param name="zip">Initial value of the zip property.</param>
        /// <param name="phone">Initial value of the phone property.</param>
        /// <param name="email">Initial value of the email property.</param>
        /// <param name="phone2">Initial value of the phone2 property.</param>
        /// <param name="fax">Initial value of the fax property.</param>
        /// <param name="comments">Initial value of the comments property.</param>
        /// <param name="webURL">Initial value of the webURL property.</param>
        /// <param name="customField1">Initial value of the customField1 property.</param>
        /// <param name="customField2">Initial value of the customField2 property.</param>
        /// <param name="customField3">Initial value of the customField3 property.</param>
        /// <param name="customFieldNumeric">Initial value of the customFieldNumeric property.</param>
        /// <param name="eft">Initial value of the eft property.</param>
        public static vspclient Createvspclient(global::System.Int32 id, global::System.Int32 parent_id, global::System.String contactFirstName, global::System.String contactLastName, global::System.String businessName, global::System.Int32 agent_id, global::System.String businessType, global::System.String sICcode, global::System.String status, global::System.DateTime effectiveDate, global::System.DateTime termDate, global::System.Int32 billingType_id, global::System.String invoiceName, global::System.String address, global::System.String address2, global::System.String city, global::System.String state, global::System.String zip, global::System.String phone, global::System.String email, global::System.String phone2, global::System.String fax, global::System.String comments, global::System.String webURL, global::System.String customField1, global::System.String customField2, global::System.String customField3, global::System.Int32 customFieldNumeric, global::System.Boolean eft)
        {
            vspclient vspclient = new vspclient();

            vspclient.id                 = id;
            vspclient.parent_id          = parent_id;
            vspclient.ContactFirstName   = contactFirstName;
            vspclient.ContactLastName    = contactLastName;
            vspclient.BusinessName       = businessName;
            vspclient.agent_id           = agent_id;
            vspclient.businessType       = businessType;
            vspclient.SICcode            = sICcode;
            vspclient.status             = status;
            vspclient.effectiveDate      = effectiveDate;
            vspclient.termDate           = termDate;
            vspclient.billingType_id     = billingType_id;
            vspclient.invoiceName        = invoiceName;
            vspclient.address            = address;
            vspclient.address2           = address2;
            vspclient.city               = city;
            vspclient.state              = state;
            vspclient.zip                = zip;
            vspclient.phone              = phone;
            vspclient.email              = email;
            vspclient.phone2             = phone2;
            vspclient.fax                = fax;
            vspclient.comments           = comments;
            vspclient.webURL             = webURL;
            vspclient.customField1       = customField1;
            vspclient.customField2       = customField2;
            vspclient.customField3       = customField3;
            vspclient.customFieldNumeric = customFieldNumeric;
            vspclient.eft                = eft;
            return(vspclient);
        }
예제 #11
0
        /// <summary>
        /// Create a new candidate object.
        /// </summary>
        /// <param name="id">Initial value of the id property.</param>
        /// <param name="name">Initial value of the name property.</param>
        /// <param name="sur_name">Initial value of the sur_name property.</param>
        /// <param name="position">Initial value of the position property.</param>
        /// <param name="curriculum">Initial value of the curriculum property.</param>
        /// <param name="created_date">Initial value of the created_date property.</param>
        /// <param name="lastupdated_date">Initial value of the lastupdated_date property.</param>
        /// <param name="is_deleted">Initial value of the is_deleted property.</param>
        public static candidate Createcandidate(global::System.Int32 id, global::System.String name, global::System.String sur_name, global::System.String position, global::System.String curriculum, global::System.DateTime created_date, global::System.DateTime lastupdated_date, global::System.Boolean is_deleted)
        {
            candidate candidate = new candidate();

            candidate.id               = id;
            candidate.name             = name;
            candidate.sur_name         = sur_name;
            candidate.position         = position;
            candidate.curriculum       = curriculum;
            candidate.created_date     = created_date;
            candidate.lastupdated_date = lastupdated_date;
            candidate.is_deleted       = is_deleted;
            return(candidate);
        }
 partial void OnAssessmentDateChanging(global::System.DateTime value);
 partial void OnLastActivityDateChanging(global::System.DateTime value);
        public static User CreateUser(global::System.Guid applicationId, global::System.Guid userId, string userName, bool isAnonymous, global::System.DateTime lastActivityDate)
        {
            User user = new User();

            user.ApplicationId    = applicationId;
            user.UserId           = userId;
            user.UserName         = userName;
            user.IsAnonymous      = isAnonymous;
            user.LastActivityDate = lastActivityDate;
            return(user);
        }
예제 #15
0
        /// <summary>
        /// Create a new Weather object.
        /// </summary>
        /// <param name="weatherID">Initial value of the WeatherID property.</param>
        /// <param name="locationID">Initial value of the LocationID property.</param>
        /// <param name="temperature">Initial value of the Temperature property.</param>
        /// <param name="symbol">Initial value of the Symbol property.</param>
        /// <param name="time">Initial value of the Time property.</param>
        public static Weather CreateWeather(global::System.Int32 weatherID, global::System.Int32 locationID, global::System.String temperature, global::System.String symbol, global::System.DateTime time)
        {
            Weather weather = new Weather();

            weather.WeatherID   = weatherID;
            weather.LocationID  = locationID;
            weather.Temperature = temperature;
            weather.Symbol      = symbol;
            weather.Time        = time;
            return(weather);
        }
예제 #16
0
 partial void OneffectiveDateChanging(global::System.DateTime value);
        /// <summary>
        /// Create a new Instructor object.
        /// </summary>
        /// <param name="personID">Initial value of the PersonID property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="address">Initial value of the Address property.</param>
        /// <param name="hireDate">Initial value of the HireDate property.</param>
        public static Instructor CreateInstructor(global::System.Int32 personID, Name name, Address address, global::System.DateTime hireDate)
        {
            Instructor instructor = new Instructor();

            instructor.PersonID = personID;
            instructor.Name     = StructuralObject.VerifyComplexObjectIsNotNull(name, "Name");
            instructor.Address  = StructuralObject.VerifyComplexObjectIsNotNull(address, "Address");
            instructor.HireDate = hireDate;
            return(instructor);
        }
        /// <summary>
        /// Create a new Watermark object.
        /// </summary>
        /// <param name="gUID">Initial value of the GUID property.</param>
        /// <param name="createdDate">Initial value of the CreatedDate property.</param>
        /// <param name="originalDir">Initial value of the OriginalDir property.</param>
        /// <param name="watermarkDir">Initial value of the WatermarkDir property.</param>
        /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
        public static Watermark CreateWatermark(global::System.Guid gUID, global::System.DateTime createdDate, global::System.String originalDir, global::System.String watermarkDir, global::System.DateTime modifiedDate)
        {
            Watermark watermark = new Watermark();

            watermark.GUID         = gUID;
            watermark.CreatedDate  = createdDate;
            watermark.OriginalDir  = originalDir;
            watermark.WatermarkDir = watermarkDir;
            watermark.ModifiedDate = modifiedDate;
            return(watermark);
        }
예제 #19
0
 partial void Onlastupdated_dateChanging(global::System.DateTime value);
        /// <summary>
        /// Create a new Department object.
        /// </summary>
        /// <param name="departmentID">Initial value of the DepartmentID property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="startDate">Initial value of the StartDate property.</param>
        public static Department CreateDepartment(global::System.Int32 departmentID, global::System.String name, global::System.DateTime startDate)
        {
            Department department = new Department();

            department.DepartmentID = departmentID;
            department.Name         = name;
            department.StartDate    = startDate;
            return(department);
        }
 partial void OnModifiedDateChanging(global::System.DateTime value);
 partial void OnHireDateChanging(global::System.DateTime value);
예제 #23
0
 partial void OnDateInsertChanging(global::System.DateTime value);
예제 #24
0
 partial void OnEndTimeChanging(global::System.DateTime value);
예제 #25
0
        /// <summary>
        /// Create a new Agent object.
        /// </summary>
        /// <param name="agentID">Initial value of the AgentID property.</param>
        /// <param name="nomOriginal">Initial value of the NomOriginal property.</param>
        /// <param name="prenomOriginal">Initial value of the PrenomOriginal property.</param>
        /// <param name="nASOriginal">Initial value of the NASOriginal property.</param>
        /// <param name="dateUpdate">Initial value of the DateUpdate property.</param>
        /// <param name="auteurUpdate">Initial value of the AuteurUpdate property.</param>
        /// <param name="dateInsert">Initial value of the DateInsert property.</param>
        /// <param name="auteurInsert">Initial value of the AuteurInsert property.</param>
        public static Agent CreateAgent(global::System.Int32 agentID, global::System.String nomOriginal, global::System.String prenomOriginal, global::System.String nASOriginal, global::System.DateTime dateUpdate, global::System.Int32 auteurUpdate, global::System.DateTime dateInsert, global::System.Int32 auteurInsert)
        {
            Agent agent = new Agent();

            agent.AgentID        = agentID;
            agent.NomOriginal    = nomOriginal;
            agent.PrenomOriginal = prenomOriginal;
            agent.NASOriginal    = nASOriginal;
            agent.DateUpdate     = dateUpdate;
            agent.AuteurUpdate   = auteurUpdate;
            agent.DateInsert     = dateInsert;
            agent.AuteurInsert   = auteurInsert;
            return(agent);
        }
예제 #26
0
 partial void OnCreatedChanging(global::System.DateTime value);
예제 #27
0
 /// <summary>
 /// Create a new Person object.
 /// </summary>
 /// <param name="personId">Initial value of the PersonId property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="doB">Initial value of the DoB property.</param>
 /// <param name="genderID">Initial value of the GenderID property.</param>
 public static Person CreatePerson(global::System.Int32 personId, global::System.String firstName, global::System.String lastName, global::System.DateTime doB, global::System.Int32 genderID)
 {
     Person person = new Person();
     person.PersonId = personId;
     person.FirstName = firstName;
     person.LastName = lastName;
     person.DoB = doB;
     person.GenderID = genderID;
     return person;
 }
예제 #28
0
 partial void OnPublishedChanging(global::System.DateTime value);
        /// <summary>
        /// Create a new Magazine object.
        /// </summary>
        /// <param name="mediaId">Initial value of the MediaId property.</param>
        /// <param name="title">Initial value of the Title property.</param>
        /// <param name="publicationDate">Initial value of the PublicationDate property.</param>
        public static Magazine CreateMagazine(global::System.Int32 mediaId, global::System.String title, global::System.DateTime publicationDate)
        {
            Magazine magazine = new Magazine();

            magazine.MediaId         = mediaId;
            magazine.Title           = title;
            magazine.PublicationDate = publicationDate;
            return(magazine);
        }
예제 #30
0
 /// <summary>
 /// Create a new t_GPS_IN object.
 /// </summary>
 /// <param name="id">Initial value of ID.</param>
 /// <param name="iMEI">Initial value of IMEI.</param>
 /// <param name="status">Initial value of Status.</param>
 /// <param name="gPS_fix">Initial value of GPS_fix.</param>
 /// <param name="timestampTracker">Initial value of TimestampTracker.</param>
 /// <param name="longitude">Initial value of longitude.</param>
 /// <param name="latitude">Initial value of latitude.</param>
 /// <param name="altitude">Initial value of altitude.</param>
 /// <param name="speed">Initial value of speed.</param>
 /// <param name="heading">Initial value of heading.</param>
 /// <param name="nr_used_sat">Initial value of nr_used_sat.</param>
 /// <param name="hDOP">Initial value of HDOP.</param>
 /// <param name="timestamp">Initial value of Timestamp.</param>
 /// <param name="processed">Initial value of Processed.</param>
 public static t_GPS_IN Createt_GPS_IN(int id, string iMEI, int status, int gPS_fix, global::System.DateTime timestampTracker, string longitude, string latitude, string altitude, string speed, string heading, int nr_used_sat, string hDOP, global::System.DateTime timestamp, bool processed)
 {
     t_GPS_IN t_GPS_IN = new t_GPS_IN();
     t_GPS_IN.ID = id;
     t_GPS_IN.IMEI = iMEI;
     t_GPS_IN.Status = status;
     t_GPS_IN.GPS_fix = gPS_fix;
     t_GPS_IN.TimestampTracker = timestampTracker;
     t_GPS_IN.longitude = longitude;
     t_GPS_IN.latitude = latitude;
     t_GPS_IN.altitude = altitude;
     t_GPS_IN.speed = speed;
     t_GPS_IN.heading = heading;
     t_GPS_IN.nr_used_sat = nr_used_sat;
     t_GPS_IN.HDOP = hDOP;
     t_GPS_IN.Timestamp = timestamp;
     t_GPS_IN.Processed = processed;
     return t_GPS_IN;
 }
 partial void OnPublicationDateChanging(global::System.DateTime value);
예제 #32
0
 /// <summary>
 /// Create a new menu object.
 /// </summary>
 /// <param name="menu_id">Initial value of the menu_id property.</param>
 /// <param name="menu_name">Initial value of the menu_name property.</param>
 /// <param name="menu_page">Initial value of the menu_page property.</param>
 /// <param name="parent_id">Initial value of the parent_id property.</param>
 /// <param name="icon">Initial value of the icon property.</param>
 /// <param name="created_date">Initial value of the created_date property.</param>
 /// <param name="created_by">Initial value of the created_by property.</param>
 /// <param name="updated_date">Initial value of the updated_date property.</param>
 /// <param name="updated_by">Initial value of the updated_by property.</param>
 public static menu Createmenu(global::System.Int32 menu_id, global::System.String menu_name, global::System.String menu_page, global::System.Int32 parent_id, global::System.String icon, global::System.DateTime created_date, global::System.String created_by, global::System.DateTime updated_date, global::System.String updated_by)
 {
     menu menu = new menu();
     menu.menu_id = menu_id;
     menu.menu_name = menu_name;
     menu.menu_page = menu_page;
     menu.parent_id = parent_id;
     menu.icon = icon;
     menu.created_date = created_date;
     menu.created_by = created_by;
     menu.updated_date = updated_date;
     menu.updated_by = updated_by;
     return menu;
 }
 partial void OnEnrollmentDateChanging(global::System.DateTime value);
        /// <summary>
        /// Create a new Admin object.
        /// </summary>
        /// <param name="personID">Initial value of the PersonID property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="address">Initial value of the Address property.</param>
        /// <param name="adminDate">Initial value of the AdminDate property.</param>
        public static Admin CreateAdmin(global::System.Int32 personID, Name name, Address address, global::System.DateTime adminDate)
        {
            Admin admin = new Admin();

            admin.PersonID  = personID;
            admin.Name      = StructuralObject.VerifyComplexObjectIsNotNull(name, "Name");
            admin.Address   = StructuralObject.VerifyComplexObjectIsNotNull(address, "Address");
            admin.AdminDate = adminDate;
            return(admin);
        }
 partial void OnAdminDateChanging(global::System.DateTime value);
예제 #36
0
/// <summary>
/// Initialize the template
/// </summary>
public virtual void Initialize()
{
    if ((this.Errors.HasErrors == false))
    {
bool DayValueAcquired = false;
if (this.Session.ContainsKey("Day"))
{
    if ((typeof(int).IsAssignableFrom(this.Session["Day"].GetType()) == false))
    {
        this.Error("The type \'System.Int32\' of the parameter \'Day\' did not match the type of the data" +
                " passed to the template.");
    }
    else
    {
        this._DayField = ((int)(this.Session["Day"]));
        DayValueAcquired = true;
    }
}
if ((DayValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Day");
    if ((data != null))
    {
        if ((typeof(int).IsAssignableFrom(data.GetType()) == false))
        {
            this.Error("The type \'System.Int32\' of the parameter \'Day\' did not match the type of the data" +
                    " passed to the template.");
        }
        else
        {
            this._DayField = ((int)(data));
        }
    }
}
bool PlayersValueAcquired = false;
if (this.Session.ContainsKey("Players"))
{
    if ((typeof(global::System.Collections.Generic.IEnumerable<DiscoVotefinder.MainClass.Player>).IsAssignableFrom(this.Session["Players"].GetType()) == false))
    {
        this.Error("The type \'System.Collections.Generic.IEnumerable<DiscoVotefinder.MainClass.Player" +
                ">\' of the parameter \'Players\' did not match the type of the data passed to the t" +
                "emplate.");
    }
    else
    {
        this._PlayersField = ((global::System.Collections.Generic.IEnumerable<DiscoVotefinder.MainClass.Player>)(this.Session["Players"]));
        PlayersValueAcquired = true;
    }
}
if ((PlayersValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Players");
    if ((data != null))
    {
        if ((typeof(global::System.Collections.Generic.IEnumerable<DiscoVotefinder.MainClass.Player>).IsAssignableFrom(data.GetType()) == false))
        {
            this.Error("The type \'System.Collections.Generic.IEnumerable<DiscoVotefinder.MainClass.Player" +
                    ">\' of the parameter \'Players\' did not match the type of the data passed to the t" +
                    "emplate.");
        }
        else
        {
            this._PlayersField = ((global::System.Collections.Generic.IEnumerable<DiscoVotefinder.MainClass.Player>)(data));
        }
    }
}
bool MotdValueAcquired = false;
if (this.Session.ContainsKey("Motd"))
{
    if ((typeof(string).IsAssignableFrom(this.Session["Motd"].GetType()) == false))
    {
        this.Error("The type \'System.String\' of the parameter \'Motd\' did not match the type of the da" +
                "ta passed to the template.");
    }
    else
    {
        this._MotdField = ((string)(this.Session["Motd"]));
        MotdValueAcquired = true;
    }
}
if ((MotdValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Motd");
    if ((data != null))
    {
        if ((typeof(string).IsAssignableFrom(data.GetType()) == false))
        {
            this.Error("The type \'System.String\' of the parameter \'Motd\' did not match the type of the da" +
                    "ta passed to the template.");
        }
        else
        {
            this._MotdField = ((string)(data));
        }
    }
}
bool DeadlineValueAcquired = false;
if (this.Session.ContainsKey("Deadline"))
{
    if ((typeof(global::System.DateTime).IsAssignableFrom(this.Session["Deadline"].GetType()) == false))
    {
        this.Error("The type \'System.DateTime\' of the parameter \'Deadline\' did not match the type of " +
                "the data passed to the template.");
    }
    else
    {
        this._DeadlineField = ((global::System.DateTime)(this.Session["Deadline"]));
        DeadlineValueAcquired = true;
    }
}
if ((DeadlineValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Deadline");
    if ((data != null))
    {
        if ((typeof(global::System.DateTime).IsAssignableFrom(data.GetType()) == false))
        {
            this.Error("The type \'System.DateTime\' of the parameter \'Deadline\' did not match the type of " +
                    "the data passed to the template.");
        }
        else
        {
            this._DeadlineField = ((global::System.DateTime)(data));
        }
    }
}
bool TopicValueAcquired = false;
if (this.Session.ContainsKey("Topic"))
{
    if ((typeof(int).IsAssignableFrom(this.Session["Topic"].GetType()) == false))
    {
        this.Error("The type \'System.Int32\' of the parameter \'Topic\' did not match the type of the da" +
                "ta passed to the template.");
    }
    else
    {
        this._TopicField = ((int)(this.Session["Topic"]));
        TopicValueAcquired = true;
    }
}
if ((TopicValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Topic");
    if ((data != null))
    {
        if ((typeof(int).IsAssignableFrom(data.GetType()) == false))
        {
            this.Error("The type \'System.Int32\' of the parameter \'Topic\' did not match the type of the da" +
                    "ta passed to the template.");
        }
        else
        {
            this._TopicField = ((int)(data));
        }
    }
}


    }
}
        /// <summary>
        /// Create a new BusinessStudent object.
        /// </summary>
        /// <param name="personID">Initial value of the PersonID property.</param>
        /// <param name="name">Initial value of the Name property.</param>
        /// <param name="address">Initial value of the Address property.</param>
        /// <param name="enrollmentDate">Initial value of the EnrollmentDate property.</param>
        public static BusinessStudent CreateBusinessStudent(global::System.Int32 personID, Name name, Address address, global::System.DateTime enrollmentDate)
        {
            BusinessStudent businessStudent = new BusinessStudent();

            businessStudent.PersonID       = personID;
            businessStudent.Name           = StructuralObject.VerifyComplexObjectIsNotNull(name, "Name");
            businessStudent.Address        = StructuralObject.VerifyComplexObjectIsNotNull(address, "Address");
            businessStudent.EnrollmentDate = enrollmentDate;
            return(businessStudent);
        }
예제 #38
0
public override bool inDaylightTime(global::java.util.Date n1){
//XMLVM_BEGIN_WRAPPER[java.util.SimpleTimeZone: boolean inDaylightTime(java.util.Date)]
    global::System.DateTime epoch = new global::System.DateTime(1970, 1, 1, 0, 0, 0, global::System.DateTimeKind.Utc);
    epoch.AddMilliseconds(n1.getTime());
    return global::System.TimeZoneInfo.Local.IsDaylightSavingTime(epoch);
//XMLVM_END_WRAPPER[java.util.SimpleTimeZone: boolean inDaylightTime(java.util.Date)]
}
예제 #39
0
        /// <summary>
        /// Create a new VADM_CallStats object.
        /// </summary>
        /// <param name="seqnr">Initial value of the seqnr property.</param>
        /// <param name="calltime">Initial value of the calltime property.</param>
        /// <param name="calledNumber">Initial value of the CalledNumber property.</param>
        /// <param name="callerid">Initial value of the callerid property.</param>
        public static VADM_CallStats CreateVADM_CallStats(global::System.Int32 seqnr, global::System.DateTime calltime, global::System.String calledNumber, global::System.String callerid)
        {
            VADM_CallStats vADM_CallStats = new VADM_CallStats();

            vADM_CallStats.seqnr        = seqnr;
            vADM_CallStats.calltime     = calltime;
            vADM_CallStats.CalledNumber = calledNumber;
            vADM_CallStats.callerid     = callerid;
            return(vADM_CallStats);
        }