This commit is contained in:
parent
9a4cdcc36a
commit
642bcf36e2
|
|
@ -123,7 +123,8 @@ namespace BLL
|
||||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
var ls = (from x in db.Weld_StockIn
|
var ls = (from x in db.Weld_StockIn
|
||||||
select new {
|
select new
|
||||||
|
{
|
||||||
x.HeartNo,
|
x.HeartNo,
|
||||||
x.Warrantybook
|
x.Warrantybook
|
||||||
}).Distinct().ToList();
|
}).Distinct().ToList();
|
||||||
|
|
@ -149,7 +150,7 @@ namespace BLL
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
x.Warrantybook,
|
x.Warrantybook,
|
||||||
x.HeartNo,
|
HeartNo = x.HeartNo + "," + x.StockInId,
|
||||||
}).Distinct().ToList();
|
}).Distinct().ToList();
|
||||||
ListItem[] lis = new ListItem[ls.Count()];
|
ListItem[] lis = new ListItem[ls.Count()];
|
||||||
for (int i = 0; i < ls.Count(); i++)
|
for (int i = 0; i < ls.Count(); i++)
|
||||||
|
|
|
||||||
|
|
@ -211,7 +211,7 @@ namespace FineUIPro.Web.HJGL.MaterialManage
|
||||||
this.txtWeldType.Text = string.Empty;
|
this.txtWeldType.Text = string.Empty;
|
||||||
if (this.drpWarrantybook.SelectedValue != BLL.Const._Null)
|
if (this.drpWarrantybook.SelectedValue != BLL.Const._Null)
|
||||||
{
|
{
|
||||||
this.txtHeartNo.Text = this.drpWarrantybook.SelectedValue;
|
this.txtHeartNo.Text = this.drpWarrantybook.SelectedValue.Split(',')[0];
|
||||||
Model.Weld_StockIn s = (from x in Funs.DB.Weld_StockIn where x.Warrantybook == this.drpWarrantybook.SelectedItem.Text.Trim() select x).FirstOrDefault();
|
Model.Weld_StockIn s = (from x in Funs.DB.Weld_StockIn where x.Warrantybook == this.drpWarrantybook.SelectedItem.Text.Trim() select x).FirstOrDefault();
|
||||||
if (s != null)
|
if (s != null)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue