20250116 key Quantity、项目状态修改

This commit is contained in:
2025-01-16 17:02:02 +08:00
parent d02ac75d48
commit 4c28c0514b
10 changed files with 461 additions and 213 deletions
@@ -81,5 +81,97 @@ namespace BLL
return false;
}
}
#region Identifier下拉值加载
public static void InitIdentifierDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
{
dropName.DataValueField = "DisciplinesWBSCode";
dropName.DataTextField = "DisciplinesWBSCode";
dropName.DataSource = GetDisciplinesWBSCodeList();
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
public static List<string> GetDisciplinesWBSCodeList()
{
return (from x in Funs.DB.Base_QuantityDesctiption
join y in Funs.DB.Base_DisciplinesWBS on x.DisciplinesWBSId equals y.DisciplinesWBSId
orderby y.DisciplinesWBSCode
select y.DisciplinesWBSCode).Distinct().ToList();
}
#endregion
#region Descipline下拉值加载
public static void InitDesciplineDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease, string disciplinesWBSCode)
{
dropName.DataValueField = "DisciplinesWBSName";
dropName.DataTextField = "DisciplinesWBSName";
dropName.DataSource = GetDesciplineList(disciplinesWBSCode);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
public static List<string> GetDesciplineList(string disciplinesWBSCode)
{
return (from x in Funs.DB.Base_QuantityDesctiption
join y in Funs.DB.Base_DisciplinesWBS on x.DisciplinesWBSId equals y.DisciplinesWBSId
where y.DisciplinesWBSCode == disciplinesWBSCode
orderby y.DisciplinesWBSName
select y.DisciplinesWBSName).Distinct().ToList();
}
#endregion
#region Quantity Desctiption
public static void InitQuantityDesctiptionDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease, string disciplinesWBSCode, string disciplinesWBSName)
{
dropName.DataValueField = "QuantityDesctiption";
dropName.DataTextField = "QuantityDesctiption";
dropName.DataSource = GetQuantityDesctiptionList(disciplinesWBSCode, disciplinesWBSName);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
public static List<string> GetQuantityDesctiptionList(string disciplinesWBSCode, string disciplinesWBSName)
{
return (from x in Funs.DB.Base_QuantityDesctiption
join y in Funs.DB.Base_DisciplinesWBS on x.DisciplinesWBSId equals y.DisciplinesWBSId
where y.DisciplinesWBSCode == disciplinesWBSCode && y.DisciplinesWBSName == disciplinesWBSName
orderby x.QuantityDesctiption
select x.QuantityDesctiption).Distinct().ToList();
}
#endregion
#region PlanMHRsUnit
public static void InitPlanMHRsUnitDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease, string disciplinesWBSCode, string disciplinesWBSName, string quantityDesctiption)
{
dropName.DataValueField = "PlanMHRsUnit";
dropName.DataTextField = "PlanMHRsUnit";
dropName.DataSource = GetPlanMHRsUnitList(disciplinesWBSCode, disciplinesWBSName, quantityDesctiption);
dropName.DataBind();
if (isShowPlease)
{
Funs.FineUIPleaseSelect(dropName);
}
}
public static List<string> GetPlanMHRsUnitList(string disciplinesWBSCode, string disciplinesWBSName, string quantityDesctiption)
{
return (from x in Funs.DB.Base_QuantityDesctiption
join y in Funs.DB.Base_DisciplinesWBS on x.DisciplinesWBSId equals y.DisciplinesWBSId
where y.DisciplinesWBSCode == disciplinesWBSCode && y.DisciplinesWBSName == disciplinesWBSName
&& x.QuantityDesctiption == quantityDesctiption
orderby x.PlanMHRsUnit
select x.PlanMHRsUnit.ToString()).Distinct().ToList();
}
#endregion
}
}