コード例 #1
0
        public void SetType(int p_oid, ChroniGenNHibernate.Enumerated.Chroni.LocationTypeEnum p_type)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Location_setType) ENABLED START*/

            // Write here your custom code...

            LocationCAD locationCAD = new LocationCAD();
            LocationCEN locationCEN = new LocationCEN(locationCAD);

            if (p_oid > 0)
            {
                LocationEN location = locationCEN.ReadOID(p_oid);

                if (location != null)
                {
                    if (p_type > 0)
                    {
                        location.Type = p_type;
                        locationCAD.Modify(location);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }
コード例 #2
0
        public void Modify(int p_Location_OID, ChroniGenNHibernate.Enumerated.Chroni.LocationStatusEnum p_status, string p_name, string p_description, ChroniGenNHibernate.Enumerated.Chroni.LocationModeEnum p_mode, ChroniGenNHibernate.Enumerated.Chroni.LocationTypeEnum p_type, string p_address, ChroniGenNHibernate.Enumerated.Chroni.LocationPhysicalTypeEnum p_physicalType, string p_managingOrganization, string p_phone, string p_email, string p_postalCode)
        {
            LocationEN locationEN = null;

            //Initialized LocationEN
            locationEN                      = new LocationEN();
            locationEN.Identifier           = p_Location_OID;
            locationEN.Status               = p_status;
            locationEN.Name                 = p_name;
            locationEN.Description          = p_description;
            locationEN.Mode                 = p_mode;
            locationEN.Type                 = p_type;
            locationEN.Address              = p_address;
            locationEN.PhysicalType         = p_physicalType;
            locationEN.ManagingOrganization = p_managingOrganization;
            locationEN.Phone                = p_phone;
            locationEN.Email                = p_email;
            locationEN.PostalCode           = p_postalCode;
            //Call to LocationCAD

            _ILocationCAD.Modify(locationEN);
        }
コード例 #3
0
        private void init(int identifier
                          , ChroniGenNHibernate.Enumerated.Chroni.LocationStatusEnum status, string name, string description, ChroniGenNHibernate.Enumerated.Chroni.LocationModeEnum mode, ChroniGenNHibernate.Enumerated.Chroni.LocationTypeEnum type, string address, ChroniGenNHibernate.Enumerated.Chroni.LocationPhysicalTypeEnum physicalType, string managingOrganization, ChroniGenNHibernate.EN.Chroni.PositionEN position, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.PractitionerEN> practitioner, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.PatientEN> patient, string phone, string email, string postalCode, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.ScheduleEN> schedule)
        {
            this.Identifier = identifier;


            this.Status = status;

            this.Name = name;

            this.Description = description;

            this.Mode = mode;

            this.Type = type;

            this.Address = address;

            this.PhysicalType = physicalType;

            this.ManagingOrganization = managingOrganization;

            this.Position = position;

            this.Practitioner = practitioner;

            this.Patient = patient;

            this.Phone = phone;

            this.Email = email;

            this.PostalCode = postalCode;

            this.Schedule = schedule;
        }
コード例 #4
0
        public int New_(ChroniGenNHibernate.Enumerated.Chroni.LocationStatusEnum p_status, string p_name, string p_description, ChroniGenNHibernate.Enumerated.Chroni.LocationModeEnum p_mode, ChroniGenNHibernate.Enumerated.Chroni.LocationTypeEnum p_type, string p_address, ChroniGenNHibernate.Enumerated.Chroni.LocationPhysicalTypeEnum p_physicalType, string p_managingOrganization, string p_phone, string p_email, string p_postalCode)
        {
            LocationEN locationEN = null;
            int        oid;

            //Initialized LocationEN
            locationEN        = new LocationEN();
            locationEN.Status = p_status;

            locationEN.Name = p_name;

            locationEN.Description = p_description;

            locationEN.Mode = p_mode;

            locationEN.Type = p_type;

            locationEN.Address = p_address;

            locationEN.PhysicalType = p_physicalType;

            locationEN.ManagingOrganization = p_managingOrganization;

            locationEN.Phone = p_phone;

            locationEN.Email = p_email;

            locationEN.PostalCode = p_postalCode;

            //Call to LocationCAD

            oid = _ILocationCAD.New_(locationEN);
            return(oid);
        }
コード例 #5
0
 public LocationEN(int identifier, ChroniGenNHibernate.Enumerated.Chroni.LocationStatusEnum status, string name, string description, ChroniGenNHibernate.Enumerated.Chroni.LocationModeEnum mode, ChroniGenNHibernate.Enumerated.Chroni.LocationTypeEnum type, string address, ChroniGenNHibernate.Enumerated.Chroni.LocationPhysicalTypeEnum physicalType, string managingOrganization, ChroniGenNHibernate.EN.Chroni.PositionEN position, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.PractitionerEN> practitioner, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.PatientEN> patient, string phone, string email, string postalCode, System.Collections.Generic.IList <ChroniGenNHibernate.EN.Chroni.ScheduleEN> schedule
                   )
 {
     this.init(Identifier, status, name, description, mode, type, address, physicalType, managingOrganization, position, practitioner, patient, phone, email, postalCode, schedule);
 }