示例#1
0
        public void SetNote(int p_oid, string p_note)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Reclamation_setNote) ENABLED START*/

            // Write here your custom code...

            ReclamationCAD reclamationCAD = new ReclamationCAD();
            ReclamationCEN reclamationCEN = new ReclamationCEN(reclamationCAD);

            if (p_oid > 0)
            {
                ReclamationEN reclamation = reclamationCEN.ReadOID(p_oid);

                if (reclamation != null)
                {
                    if (!string.IsNullOrEmpty(p_note))
                    {
                        reclamation.Note = p_note;
                        reclamationCAD.Modify(reclamation);
                    }
                }
            }

            /*PROTECTED REGION END*/
        }
        public void SetResolved(int p_oid, bool p_resolved)
        {
            /*PROTECTED REGION ID(ChroniGenNHibernate.CEN.Chroni_Reclamation_setResolved) ENABLED START*/

            // Write here your custom code...

            ReclamationCAD reclamationCAD = new ReclamationCAD();
            ReclamationCEN reclamationCEN = new ReclamationCEN(reclamationCAD);

            if (p_oid > 0)
            {
                ReclamationEN reclamation = reclamationCEN.ReadOID(p_oid);

                if (reclamation != null)
                {
                    reclamation.Resolved = p_resolved;
                    reclamationCAD.Modify(reclamation);
                }
            }

            /*PROTECTED REGION END*/
        }