/// <summary> /// 获取合同报表的部分字段描述信息 /// </summary> /// <param name="dr">报表所有字段信息</param> /// <param name="fieldsInRpt">选取的报表字段</param> /// <returns>报表信息</returns> public DataRow GetContractDesc(DataRow dr, List <string> fieldsInRpt) { if (fieldsInRpt.Contains("TypeDesc")) { dr["TypeDesc"] = LookupManager.GetContractTypeDesc(SQLUtil.ConvertInt(dr["TypeID"])); } if (fieldsInRpt.Contains("ScopeDesc")) { dr["ScopeDesc"] = LookupManager.GetContractScopeDesc(SQLUtil.ConvertInt(dr["ScopeID"])); } return(dr); }
/// <summary> /// 获取合同报表的部分字段描述信息 /// </summary> /// <param name="dr">报表所有字段信息</param> /// <param name="fieldsInRpt">选取的报表字段</param> /// <returns>报表信息</returns> public DataRow GetContractDesc(DataRow dr, List <string> fieldsInRpt) { if (fieldsInRpt.Contains("TypeDesc")) { dr["TypeDesc"] = LookupManager.GetContractTypeDesc(SQLUtil.ConvertInt(dr["TypeID"])); } if (fieldsInRpt.Contains("ScopeDesc")) { dr["ScopeDesc"] = LookupManager.GetContractScopeDesc(SQLUtil.ConvertInt(dr["ScopeID"])); } if (fieldsInRpt.Contains("SupplierType")) { dr["SupplierType"] = LookupManager.GetSupplierTypeDesc(SQLUtil.ConvertInt(dr["SupplierTypeID"])); } if (fieldsInRpt.Contains("SupplierStatus")) { dr["SupplierStatus"] = SQLUtil.ConvertBoolean(dr["SupplierStatusID"]) ? "启用" : "停用"; } return(dr); }