public Dictionary <string, string> GetData(int menuId, string FunName) { PublicHelpController pub = new PublicHelpController(); pbxdata.bll.SystemConfigManagerbll systembll = new bll.SystemConfigManagerbll(); string[] temp = systembll.getDataName("productsource"); string[] str = pub.getFiledPermisson(helpcommon.ParmPerportys.GetNumParms(userInfo.User.personaId), menuId, FunName); Dictionary <string, string> lis = new Dictionary <string, string>(); foreach (string t in temp) { if (str.Contains(t)) { if (t == "SourceCode") { lis.Add("SourceCode", "供应商编码"); } if (t == "sourceName") { lis.Add("sourceName", "供应商名称"); } if (t == "sourcePhone") { lis.Add("sourcePhone", "供应商电话"); } if (t == "SourceManage") { lis.Add("SourceManage", "供应商联系人"); } if (t == "SourceLevel") { lis.Add("SourceLevel", "供应商等级"); } if (t == "UserName1") { lis.Add("UserName1", "供应商联系人"); } if (t == "Def2") { lis.Add("Def2", "更新程序路径"); } if (t == "Def3") { lis.Add("Def3", "发货地"); } if (t == "UserId") { lis.Add("UserId", "操作人"); } } } return(lis); }
/// <summary> /// 获取数据源显示字段 /// </summary> /// <param name="FunName"></param> /// <returns></returns> public Dictionary <string, string> GetDataConfig(string FunName, int menuId) { PublicHelpController pub = new PublicHelpController(); pbxdata.bll.SystemConfigManagerbll systembll = new bll.SystemConfigManagerbll(); string[] temp = systembll.getDataName("productsourceConfig"); string[] str = pub.getFiledPermisson(helpcommon.ParmPerportys.GetNumParms(userInfo.User.personaId), menuId, FunName); Dictionary <string, string> lis = new Dictionary <string, string>(); foreach (string t in temp) { if (str.Contains(t)) { if (t == "Id") { lis.Add("Id", "编号"); } if (t == "SourceCode") { lis.Add("SourceCode", "供应商编号"); } if (t == "SourcesAddress") { lis.Add("SourcesAddress", "服务器地址"); } if (t == "UserId") { lis.Add("UserId", "登陆名"); } if (t == "UserPwd") { lis.Add("UserPwd", "密码"); } if (t == "DataSources") { lis.Add("DataSources", "数据库名称"); } if (t == "DataSourcesLevel") { lis.Add("DataSourcesLevel", "数据库等级"); } if (t == "Def3") { lis.Add("DataSourcesLevel", "更新程序启动Ip"); } } } return(lis); }
/// <summary> /// 返回有权限字段数据库名称 中文名称 /// </summary> /// <param name="menuId"></param> /// <param name="FunName"></param> /// <returns></returns> public Dictionary <string, string> GetRenewalLogShowData(int menuId, string FunName) { PublicHelpController pub = new PublicHelpController(); pbxdata.bll.SystemConfigManagerbll systembll = new bll.SystemConfigManagerbll(); string[] temp = systembll.getDataName("errorlog"); string[] str = pub.getFiledPermisson(helpcommon.ParmPerportys.GetNumParms(userInfo.User.personaId), menuId, FunName); Dictionary <string, string> lis = new Dictionary <string, string>(); foreach (string t in temp) { if (str.Contains(t)) { if (t == "Id") { lis.Add("Id", "编号"); } if (t == "ErrorMsg") { lis.Add("ErrorMsg", "错误信息"); } if (t == "errorSrc") { lis.Add("errorSrc", "错误路径"); } if (t == "errorMsgDetails") { lis.Add("errorMsgDetails", "错误详情"); } if (t == "UserId") { lis.Add("UserId", "操作人编号"); } if (t == "errorTime") { lis.Add("errorTime", "日志时间"); } if (t == "operation") { lis.Add("operation", "数据读取日志"); } if (t == "Def2") { lis.Add("Def2", "错误行号"); } if (t == "Def3") { lis.Add("Def3", "供应商编号"); } if (t == "Def4") { lis.Add("Def4", "当前供应商第几次更新"); } } else if (t == "UserName") { lis.Add("UserName", "操作人"); } else if (t == "sourceName") { lis.Add("sourceName", "供应商"); } } return(lis); }