コード例 #1
0
        public void SetMode(int p_oid, ChroniGenNHibernate.Enumerated.Chroni.LocationModeEnum p_mode)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Location_setMode) 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_mode > 0)
                    {
                        location.Mode = p_mode;
                        locationCAD.Modify(location);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }
        public void SetManagingOrganization(int p_oid, string p_managingOrganization)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Location_setManagingOrganization) 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 (!string.IsNullOrEmpty(p_managingOrganization))
                    {
                        location.ManagingOrganization = p_managingOrganization;
                        locationCAD.Modify(location);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }