Beispiel #1
0
        public void insert(int billType, string operDesc)
        {
            int    subSystemID = SystemModule.getInctance().getsystemIDFromModuleID(billType);
            string systemName  = SubSystem.getInctance().getsubSystemNameFromSystemID(subSystemID);
            string moduleName  = SystemModule.getInctance().getModuleNameFromModuleID(billType);

            insert(systemName, moduleName, operDesc);
        }
Beispiel #2
0
        static public SystemModule getInctance()
        {
            if (m_instance == null)
            {
                m_instance = new SystemModule();
            }

            return(m_instance);
        }
Beispiel #3
0
        public int getActionPkey(string moduleName, string actionName)
        {
            int pkey = 0;

            int moduleID = SystemModule.getInctance().getModuleIDFromModuleName(moduleName);

            foreach (KeyValuePair <int, ActionTable> index in m_actionList)
            {
                ActionTable record = new ActionTable();
                record = index.Value;

                if (record.moduleID == moduleID && record.actionName == actionName)
                {
                    pkey = record.pkey;
                }
            }

            return(pkey);
        }