提交代码
This commit is contained in:
@@ -66,6 +66,7 @@ namespace BLL
|
||||
newConstructSolution.Edition = constructSolution.Edition;
|
||||
newConstructSolution.SpecialSchemeTypeId = constructSolution.SpecialSchemeTypeId;
|
||||
newConstructSolution.Content = constructSolution.Content;
|
||||
newConstructSolution.System = constructSolution.System;
|
||||
db.Solution_TestRunConstructSolution.InsertOnSubmit(newConstructSolution);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
@@ -88,6 +89,7 @@ namespace BLL
|
||||
newConstructSolution.Edition = constructSolution.Edition;
|
||||
newConstructSolution.SpecialSchemeTypeId = constructSolution.SpecialSchemeTypeId;
|
||||
newConstructSolution.Content = constructSolution.Content;
|
||||
newConstructSolution.System = constructSolution.System;
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
@@ -112,11 +114,15 @@ namespace BLL
|
||||
}
|
||||
else if (state.ToString() == BLL.Const.TestRunConstructSolution_Audit)
|
||||
{
|
||||
return "会签";
|
||||
return "审核";
|
||||
}
|
||||
else if (state.ToString() == BLL.Const.TestRunConstructSolution_Audit2)
|
||||
{
|
||||
return "审批";
|
||||
}
|
||||
else if (state.ToString() == BLL.Const.TestRunConstructSolution_Complete)
|
||||
{
|
||||
return "审批完成";
|
||||
return "发布";
|
||||
}
|
||||
}
|
||||
return "";
|
||||
@@ -127,7 +133,7 @@ namespace BLL
|
||||
/// <returns></returns>
|
||||
public static ListItem[] GetSolutionType()
|
||||
{
|
||||
ListItem[] list = new ListItem[13];
|
||||
ListItem[] list = new ListItem[12];
|
||||
list[0] = new ListItem("01 开车文件编制计划", "01");
|
||||
list[1] = new ListItem("02 单机试车方案", "02");
|
||||
list[2] = new ListItem("03 冲洗吹扫方案", "03");
|
||||
@@ -140,7 +146,7 @@ namespace BLL
|
||||
list[9] = new ListItem("10 性能考核方案", "10");
|
||||
list[10] = new ListItem("11 其他方案(如:真空试验、升温还原、煮炉、预冷、预热等)", "11");
|
||||
list[11] = new ListItem("12 总体试车方案", "12");
|
||||
list[12] = new ListItem("13 方案审查记录", "13");
|
||||
//list[12] = new ListItem("13 方案审查记录", "13");
|
||||
return list;
|
||||
}
|
||||
|
||||
@@ -419,5 +425,48 @@ namespace BLL
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
public static void Init(FineUIPro.DropDownList dropName, string state, bool isShowPlease)
|
||||
{
|
||||
dropName.DataValueField = "Value";
|
||||
dropName.DataTextField = "Text";
|
||||
dropName.DataSource = GetDHandleTypeByState(state);
|
||||
dropName.DataBind();
|
||||
if (isShowPlease)
|
||||
{
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据状态选择下一步办理类型
|
||||
/// </summary>
|
||||
/// <param name="state"></param>
|
||||
/// <returns></returns>
|
||||
public static ListItem[] GetDHandleTypeByState(string state)
|
||||
{
|
||||
if (state == Const.TestRunConstructSolution_Compile || state == Const.TestRunConstructSolution_ReCompile) //无是否同意
|
||||
{
|
||||
ListItem[] lis = new ListItem[1];
|
||||
lis[0] = new ListItem("审核", Const.TestRunConstructSolution_Audit);
|
||||
return lis;
|
||||
}
|
||||
else if (state == Const.TestRunConstructSolution_Audit)//有是否同意
|
||||
{
|
||||
ListItem[] lis = new ListItem[2];
|
||||
lis[0] = new ListItem("审批", Const.TestRunConstructSolution_Audit2);//是 加载
|
||||
lis[1] = new ListItem("重新编制", Const.TestRunConstructSolution_ReCompile);//否加载
|
||||
return lis;
|
||||
}
|
||||
else if (state == Const.TestRunConstructSolution_Audit2)//无是否同意
|
||||
{
|
||||
ListItem[] lis = new ListItem[2];
|
||||
lis[0] = new ListItem("发布", Const.TestRunConstructSolution_Complete);
|
||||
lis[1] = new ListItem("重新编制", Const.TestRunConstructSolution_ReCompile);
|
||||
return lis;
|
||||
}
|
||||
else
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user