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); }
static public SystemModule getInctance() { if (m_instance == null) { m_instance = new SystemModule(); } return(m_instance); }
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); }