/// <summary> /// 编辑页面下拉树--公司组织机构ID /// </summary> /// <param name="val"></param> /// <param name="NameCn"></param> /// <returns></returns> public static string HtmlDropTrees_Pre_OrganizationID(string val, string NameCn, SoftProjectAreaEntity item) { List<SoftProjectAreaEntity> Items = SoftProjectAreaEntityDomain.Pre_Organizations.Where(p => p.LoginCategoryID == item.LoginCategoryID).ToList(); var tt = new SelectTreeList(Items, "0", "OrganizationName", "Pre_OrganizationID", "ParentPre_OrganizationID", "Pre_OrganizationID", val, true, ""); var str = HtmlHelpers.DropDownForTree(null, "Item.Pre_OrganizationID", tt, ""); return str.ToHtmlString(); }
/// <summary> /// 编辑页面下拉树--工具类型父节点 /// </summary> /// <param name="val"></param> /// <param name="NameCn"></param> /// <returns></returns> public static string HtmlDropTrees_T_ToolCategoryID(string val, string NameCn, SoftProjectAreaEntity item) { //var Pre_Company = HttpContext.Current.Session["LoginInfo"] as SoftProjectAreaEntity; //var Items = SoftProjectAreaEntityDomain.T_ToolCategorys.Where(p => p.Pre_CompanyID == Pre_Company.CompanyID); List<SoftProjectAreaEntity> Items = SoftProjectAreaEntityDomain.T_ToolCategorys; var tt = new SelectTreeList(Items, "0", "ToolCategoryName", "T_ToolCategoryID", "ParentT_ToolCategoryID", "T_ToolCategoryID", val, true, ""); var str = HtmlHelpers.DropDownForTree(null, "Item.T_ToolCategoryID", tt, "==工具类型=="); return str.ToHtmlString(); }
/// <summary> /// 查询下拉树--公司工具类型父节点ID /// </summary> /// <param name="val"></param> /// <param name="NameCn"></param> /// <returns></returns> public static string QueryHtmlDropTrees_ParentT_ToolCategoryID(string val, string NameCn, SoftProjectAreaEntity item) { #region 工具类别 var Pre_Company=HttpContext.Current.Session["LoginInfo"] as SoftProjectAreaEntity; var Items = SoftProjectAreaEntityDomain.T_ToolCategorys.Where(p => p.Pre_CompanyID == Pre_Company.CompanyID); //List<SoftProjectAreaEntity> Items = SoftProjectAreaEntityDomain.T_ToolCategorys; var tt = new SelectTreeList(Items, "0", "ToolCategoryName", "T_ToolCategoryID", "ParentT_ToolCategoryID", "T_ToolCategoryID", val, true, ""); var str = HtmlHelpers.DropDownForTree(null, "ParentT_ToolCategoryID___equal", tt, "==工具类别=="); var strDrop = str.ToString(); #endregion return strDrop; }
/// <summary> /// 查询下拉树--组织机构ID /// </summary> /// <param name="val"></param> /// <param name="NameCn"></param> /// <returns></returns> public static string QueryHtmlDropTrees_Pre_OrganizationID(string val, string NameCn, SoftProjectAreaEntity item) { #region 组织机构 List<SoftProjectAreaEntity> Items = SoftProjectAreaEntityDomain.Pre_Organizations.Where(p => p.LoginCategoryID == item.LoginCategoryID).ToList(); var tt = new SelectTreeList(Items, "0", "OrganizationName", "Pre_OrganizationID", "ParentPre_OrganizationID", "Pre_OrganizationID", val, true, ""); var str = HtmlHelpers.DropDownForTree(null, "Pre_OrganizationID___equal", tt, "==组织机构=="); var strDrop = str.ToString(); #endregion return strDrop; }