private void AddUDM(ConnectionHelper conn, string url)
        {
            XElement req = new XElement("Request",
                new XElement("URL", url));

            conn.CallService("UDMService.ForceRegistry", new Envelope(new FISCA.XStringHolder(req)));
        }
        public static ConnectionHelper GetConnection(string uid)
        {
            if (!Helpers.ContainsKey(uid))
            {
                ConnectionHelper ch = new ConnectionHelper(uid);
                Helpers.Add(uid, ch);
            }

            return Helpers[uid];
        }
        private void AddDesktopModule(ConnectionHelper conn, string url)
        {
            XElement req = new XElement("Request",
                new XElement("Module",
                    new XElement("Field",
                        new XElement("ModuleUrl", url),
                        new XElement("Type", "FiscaAEModule"),
                        new XElement("Memo", "集中安裝"),
                        new XElement("Config",
                            new XElement("Content",
                                new XElement("VersionOption", "Stable"))))));

            conn.CallService("InsertDesktopModule", new Envelope(new FISCA.XStringHolder(req)));
        }
        private void RemoveDesktopModule(ConnectionHelper conn, string xurl)
        {
            XElement req = new XElement("Request",
                new XElement("Module",
                  new XElement("Condition",
                      new XElement("ModuleUrl", xurl))));

            conn.CallService("DeleteDesktopModule", new Envelope(new XHelper(req)));
        }
        private void LoadModuleConfig(ConnectionHelper conn)
        {
            Envelope rsp = conn.CallService("SelectDesktopModule", new Envelope());
            XElement conf = XElement.Parse(rsp.BodyContent.XmlString);

            lock (ModuleConfigs)
            {
                ModuleConfigs[conn.UID] = new ModulesOfSchool(conf, conn.UID);
            }
        }
        private void UpdateUDM(ConnectionHelper conn, string name)
        {
            XElement req = new XElement("Request",
                new XElement("ModuleName", name));

            conn.CallService("UDMService.UpdateModule", new Envelope(new XHelper(req)));
        }