20250224
This commit is contained in:
@@ -83,11 +83,11 @@ namespace BLL
|
||||
}
|
||||
|
||||
#region Identifier下拉值加载
|
||||
public static void InitIdentifierDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease)
|
||||
public static void InitIdentifierDropDownList(FineUIPro.DropDownList dropName,string type, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "DisciplinesWBSCode";
|
||||
dropName.DataTextField = "DisciplinesWBSCode";
|
||||
dropName.DataSource = GetDisciplinesWBSCodeList();
|
||||
dropName.DataSource = GetDisciplinesWBSCodeList(type);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
@@ -95,21 +95,22 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
|
||||
public static List<string> GetDisciplinesWBSCodeList()
|
||||
public static List<string> GetDisciplinesWBSCodeList(string type)
|
||||
{
|
||||
return (from x in Funs.DB.Base_QuantityDesctiption
|
||||
join y in Funs.DB.Base_DisciplinesWBS on x.DisciplinesWBSId equals y.DisciplinesWBSId
|
||||
where x.DepartId == type
|
||||
orderby y.DisciplinesWBSCode
|
||||
select y.DisciplinesWBSCode).Distinct().ToList();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Descipline下拉值加载
|
||||
public static void InitDesciplineDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease, string disciplinesWBSCode)
|
||||
public static void InitDesciplineDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease,string type, string disciplinesWBSCode)
|
||||
{
|
||||
dropName.DataValueField = "DisciplinesWBSName";
|
||||
dropName.DataTextField = "DisciplinesWBSName";
|
||||
dropName.DataSource = GetDesciplineList(disciplinesWBSCode);
|
||||
dropName.DataSource = GetDesciplineList(type,disciplinesWBSCode);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
@@ -117,22 +118,22 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
|
||||
public static List<string> GetDesciplineList(string disciplinesWBSCode)
|
||||
public static List<string> GetDesciplineList(string type,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
|
||||
where y.DisciplinesWBSCode == disciplinesWBSCode && x.DepartId == type
|
||||
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)
|
||||
public static void InitQuantityDesctiptionDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease,string type, string disciplinesWBSCode, string disciplinesWBSName)
|
||||
{
|
||||
dropName.DataValueField = "QuantityDesctiption";
|
||||
dropName.DataTextField = "QuantityDesctiption";
|
||||
dropName.DataSource = GetQuantityDesctiptionList(disciplinesWBSCode, disciplinesWBSName);
|
||||
dropName.DataSource = GetQuantityDesctiptionList(type,disciplinesWBSCode, disciplinesWBSName);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
@@ -140,22 +141,22 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
|
||||
public static List<string> GetQuantityDesctiptionList(string disciplinesWBSCode, string disciplinesWBSName)
|
||||
public static List<string> GetQuantityDesctiptionList(string type, 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
|
||||
where x.DepartId == type && 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)
|
||||
public static void InitPlanMHRsUnitDropDownList(FineUIPro.DropDownList dropName, bool isShowPlease,string type, string disciplinesWBSCode, string disciplinesWBSName, string quantityDesctiption)
|
||||
{
|
||||
dropName.DataValueField = "PlanMHRsUnit";
|
||||
dropName.DataTextField = "PlanMHRsUnit";
|
||||
dropName.DataSource = GetPlanMHRsUnitList(disciplinesWBSCode, disciplinesWBSName, quantityDesctiption);
|
||||
dropName.DataSource = GetPlanMHRsUnitList(type,disciplinesWBSCode, disciplinesWBSName, quantityDesctiption);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
@@ -163,11 +164,11 @@ namespace BLL
|
||||
}
|
||||
}
|
||||
|
||||
public static List<string> GetPlanMHRsUnitList(string disciplinesWBSCode, string disciplinesWBSName, string quantityDesctiption)
|
||||
public static List<string> GetPlanMHRsUnitList(string type, 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
|
||||
where x.DepartId == type && y.DisciplinesWBSCode == disciplinesWBSCode && y.DisciplinesWBSName == disciplinesWBSName
|
||||
&& x.QuantityDesctiption == quantityDesctiption
|
||||
orderby x.PlanMHRsUnit
|
||||
select x.PlanMHRsUnit.ToString()).Distinct().ToList();
|
||||
|
||||
@@ -122,6 +122,7 @@ namespace BLL
|
||||
newEProject.StudyWo = eProject.StudyWo;
|
||||
newEProject.CreateDate = eProject.CreateDate;
|
||||
newEProject.CreatePerson = eProject.CreatePerson;
|
||||
newEProject.ProjectControl_RFSU_CloseDate = eProject.ProjectControl_RFSU_CloseDate;
|
||||
|
||||
db.Editor_EProject.InsertOnSubmit(newEProject);
|
||||
db.SubmitChanges();
|
||||
@@ -211,6 +212,7 @@ namespace BLL
|
||||
newEProject.StudyWo = eProject.StudyWo;
|
||||
newEProject.CreateDate = eProject.CreateDate;
|
||||
newEProject.CreatePerson = eProject.CreatePerson;
|
||||
newEProject.ProjectControl_RFSU_CloseDate = eProject.ProjectControl_RFSU_CloseDate;
|
||||
//if (eProject.ProjectControl_JobStatus != "Hold")
|
||||
//{
|
||||
// newEProject.Job_Hold =null;
|
||||
|
||||
@@ -46,6 +46,7 @@ namespace BLL
|
||||
newKeyQuantity.Descipline = keyQuantity.Descipline;
|
||||
newKeyQuantity.QuantityDesctiption = keyQuantity.QuantityDesctiption;
|
||||
newKeyQuantity.PlanMHRsUnit = keyQuantity.PlanMHRsUnit;
|
||||
newKeyQuantity.Type = keyQuantity.Type;
|
||||
Funs.DB.Editor_KeyQuantity.InsertOnSubmit(newKeyQuantity);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
@@ -66,6 +67,7 @@ namespace BLL
|
||||
newKeyQuantity.Descipline = keyQuantity.Descipline;
|
||||
newKeyQuantity.QuantityDesctiption = keyQuantity.QuantityDesctiption;
|
||||
newKeyQuantity.PlanMHRsUnit = keyQuantity.PlanMHRsUnit;
|
||||
newKeyQuantity.Type = keyQuantity.Type;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user