Exemplo n.º 1
0
        private static System.Tuple <string, string> GetDllVersion(NameSpace amm)
        {
            amm.Application = "ModuleData.RegisterModule";
            var registerTable = (RegisterModule)DllManager.CreateIstance(amm, null);

            if (registerTable != null)
            {
                return(new System.Tuple <string, string>(amm.Library, registerTable.DllVersion.ToString()));
            }
            return(null);
        }
Exemplo n.º 2
0
        private static bool RegisterModule(NameSpace nspace)
        {
            nspace.Application = "ModuleData.RegisterModule";
            RegisterModule registerTable = (RegisterModule)DllManager.CreateIstance(nspace, null);

            if (registerTable != null)
            {
                if (SerialManager.IsActivate(registerTable.Application(), registerTable.Module()))
                {
                    bool bOk = registerTable.CreateTable(GlobalInfo.DBaseInfo.dbManager.DB_Connection, GlobalInfo.UserInfo.userType);
                    if (bOk)
                    {
                        registerTable.RegisterCountersAndCodes();
                    }
                }
                else
                {
                    return(false);
                }
            }
            return(true);
        }