/// <summary> /// SetFuncs2 /// </summary> /// <param name="funcID"></param> private void SetFuncs2(int funcID) { List <EntitySysModule> data = null; if (FuncItems.ContainsKey(funcID.ToString())) { data = FuncItems[funcID.ToString()]; } else { using (ProxyLogin proxy = new ProxyLogin()) { data = proxy.Service.GetAccount(GlobalLogin.objLogin.EmpNo, funcID, 1); FuncItems.Add(funcID.ToString(), data); } } }
/// <summary> /// GetFormFuncButton /// </summary> /// <param name="className"></param> /// <returns></returns> internal List <EntitySysModule> GetFuncButton(string className) { List <EntitySysModule> data = null; if (FuncItems.ContainsKey(className)) { data = FuncItems[className]; } else { using (ProxyLogin proxy = new ProxyLogin()) { data = proxy.Service.GetFormFuncButton(GlobalLogin.objLogin.EmpNo, className); FuncItems.Add(className, data); } } return(data); }