This commit is contained in:
2025-10-10 17:40:09 +08:00
parent b8e282f672
commit 7a4cd1d6ea
10 changed files with 263 additions and 180 deletions
@@ -132,6 +132,36 @@ namespace BLL
}
}
/// <summary>
/// 设备下拉框
/// </summary>
/// <param name="dropName">下拉框名字</param>
/// <param name="isSpecial">项目id</param>
/// <param name="isShowPlease">是否显示请选择</param>
public static void InitSpecialEquipmentDropDownList2(DropDownList dropName, string type, bool isShowPlease)
{
dropName.DataValueField = "SpecialEquipmentId";
dropName.DataTextField = "SpecialEquipmentName";
dropName.DataSource = GetSpecialEquipmentList2(type);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
/// <summary>
/// 获取机具设备列表
/// </summary>
/// <returns></returns>
public static List<Model.Base_SpecialEquipment> GetSpecialEquipmentList2(string type)
{
return (from x in Funs.DB.Base_SpecialEquipment
where x.SpecialEquipmentType == type || x.IsSpecial == true
orderby x.SpecialEquipmentCode
select x).ToList();
}
/// <summary>
/// 设备下拉框
/// </summary>