Example #1
0
        public static XmlNode GetDepartmentsByMode(gjtEmrPatients.WorkMode mode)
        {
            using (gjtEmrPatients.emrPatients pi = new gjtEmrPatients.emrPatients())
            {
                try
                {
                    XmlNode node = pi.GetDepartmentListByMode(mode);
                    if (node.FirstChild.Name == "error")
                    {
                        return(null);
                    }
                    else
                    {
                        return(node);
                    }
                }
                catch (Exception ex)
                {
                    Globals.logAdapter.Record("EX123582274152", ex.Message + ">>" + ex.ToString(), true);

                    return(null);
                }
            }
        }