提交代码
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace BLL
|
||||
{
|
||||
@@ -39,6 +40,7 @@ namespace BLL
|
||||
newGoodsBuy.GetGoodsDate = GoodsBuy.GetGoodsDate;
|
||||
newGoodsBuy.AttachUrl = GoodsBuy.AttachUrl;
|
||||
newGoodsBuy.Remark = GoodsBuy.Remark;
|
||||
newGoodsBuy.UnitCode = GoodsBuy.UnitCode;
|
||||
Funs.DB.DriverGoods_GoodsBuy.InsertOnSubmit(newGoodsBuy);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
@@ -56,11 +58,12 @@ namespace BLL
|
||||
newGoodsBuy.BuyName = GoodsBuy.BuyName;
|
||||
newGoodsBuy.BuyCode = GoodsBuy.BuyCode;
|
||||
//newGoodsBuy.CompileMan = GoodsBuy.CompileMan;
|
||||
newGoodsBuy.ApprovalDate = GoodsBuy.ApprovalDate;
|
||||
//newGoodsBuy.ApprovalDate = GoodsBuy.ApprovalDate;
|
||||
newGoodsBuy.SubmitDate = GoodsBuy.SubmitDate;
|
||||
newGoodsBuy.GetGoodsDate = GoodsBuy.GetGoodsDate;
|
||||
newGoodsBuy.AttachUrl = GoodsBuy.AttachUrl;
|
||||
newGoodsBuy.Remark = GoodsBuy.Remark;
|
||||
newGoodsBuy.UnitCode = GoodsBuy.UnitCode;
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
@@ -82,5 +85,39 @@ namespace BLL
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取类型信息
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static ListItem[] GetBugType()
|
||||
{
|
||||
ListItem[] list = new ListItem[5];
|
||||
list[0] = new ListItem("01 开车临时材料请购单", "01");
|
||||
list[1] = new ListItem("02 润滑油、脂请购单", "02");
|
||||
list[2] = new ListItem("03 化学品消耗清单", "03");
|
||||
list[3] = new ListItem("04 开车垫片请购单", "04");
|
||||
list[4] = new ListItem("05 开车其他物资", "05");
|
||||
return list;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取方案类别
|
||||
/// </summary>
|
||||
/// <param name="state"></param>
|
||||
/// <returns></returns>
|
||||
public static string ConvertBugType(object solutionType)
|
||||
{
|
||||
if (solutionType != null)
|
||||
{
|
||||
ListItem[] list = GetBugType();
|
||||
var item = list.FirstOrDefault(x => x.Value == solutionType.ToString());
|
||||
if (item != null)
|
||||
{
|
||||
return item.Text.Substring(3);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user