|
|
@ -49,7 +49,7 @@ namespace SCP.WarehouseData |
|
|
|
public void BindData() |
|
|
|
{ |
|
|
|
var _entity = new V_TB_RECEIVE(); |
|
|
|
_entity.RecvBillNum=txtReceiveBill.Text;//单据号
|
|
|
|
_entity.RecvBillNum = txtReceiveBill.Text;//单据号
|
|
|
|
_entity.ErpRecvBillNum = txtErpBill.Text;//ERP单据号
|
|
|
|
if (!string.IsNullOrEmpty(ddl.SelectedValue)) |
|
|
|
{ |
|
|
@ -103,9 +103,9 @@ namespace SCP.WarehouseData |
|
|
|
{ |
|
|
|
if (ret.State == ReturnStatus.Succeed) |
|
|
|
{ |
|
|
|
Grid_V_TB_RECEIVE.RecordCount =ret.Result.Count(); |
|
|
|
var _list= SortAndPage(ret.Result, Grid_V_TB_RECEIVE); |
|
|
|
Grid_V_TB_RECEIVE.DataSource =_list; |
|
|
|
Grid_V_TB_RECEIVE.RecordCount = ret.Result.Count(); |
|
|
|
var _list = SortAndPage(ret.Result, Grid_V_TB_RECEIVE); |
|
|
|
Grid_V_TB_RECEIVE.DataSource = _list; |
|
|
|
Grid_V_TB_RECEIVE.DataBind(); |
|
|
|
} |
|
|
|
}); |
|
|
@ -202,7 +202,7 @@ namespace SCP.WarehouseData |
|
|
|
if (selections.Contains(i)) |
|
|
|
{ |
|
|
|
object[] rowDataKeys = Grid_V_TB_RECEIVE.DataKeys[i]; |
|
|
|
_ls.Add(rowDataKeys[1] as string); |
|
|
|
_ls.Add(rowDataKeys[1] as string); |
|
|
|
} |
|
|
|
} |
|
|
|
var ret = SCP_RECIVECE_CONTROLLER.Save_TB_RECEIVE_STATE(_ls, ReceiveState.Check, strUserName, CurrentUser.UsedDomain); |
|
|
@ -265,22 +265,22 @@ namespace SCP.WarehouseData |
|
|
|
|
|
|
|
protected void Grid_V_TB_RECEIVE_RowDataBound(object sender, GridRowEventArgs e) |
|
|
|
{ |
|
|
|
//object[] rowDataKeys = Grid_V_TB_RECEIVE.DataKeys[e.RowIndex];
|
|
|
|
//string _recNum = rowDataKeys[2].ToString();
|
|
|
|
// StringBuilder _buffer = new StringBuilder();
|
|
|
|
// System.Web.UI.WebControls.Label _content = (System.Web.UI.WebControls.Label)Grid_V_TB_RECEIVE.Rows[e.RowIndex].FindControl("RowGrid1");
|
|
|
|
// if (_content != null)
|
|
|
|
// {
|
|
|
|
// _buffer.Append("<table><tr><td>订单行</td><td>零件号</td><td>零件名称</td><td>数量</td><td>单位</td></tr>");
|
|
|
|
// var _list = JsonConvert.DeserializeObject<List<V_TB_RECEIVE_DETAIL>>(_recNum);
|
|
|
|
// _list.ForEach(p =>
|
|
|
|
// {
|
|
|
|
// _buffer.AppendFormat("<tr><td>{0}</td><td>{1}</td><td>{2}</td><td>{3}</td><td>{4}</td></tr>"
|
|
|
|
// , p.PoLine, p.PartCode, p.PartDesc1, p.Qty, p.PoUnit);
|
|
|
|
// });
|
|
|
|
// _buffer.Append("</talbe>");
|
|
|
|
// _content.Text = _buffer.ToString();
|
|
|
|
// }
|
|
|
|
//object[] rowDataKeys = Grid_V_TB_RECEIVE.DataKeys[e.RowIndex];
|
|
|
|
//string _recNum = rowDataKeys[2].ToString();
|
|
|
|
// StringBuilder _buffer = new StringBuilder();
|
|
|
|
// System.Web.UI.WebControls.Label _content = (System.Web.UI.WebControls.Label)Grid_V_TB_RECEIVE.Rows[e.RowIndex].FindControl("RowGrid1");
|
|
|
|
// if (_content != null)
|
|
|
|
// {
|
|
|
|
// _buffer.Append("<table><tr><td>订单行</td><td>零件号</td><td>零件名称</td><td>数量</td><td>单位</td></tr>");
|
|
|
|
// var _list = JsonConvert.DeserializeObject<List<V_TB_RECEIVE_DETAIL>>(_recNum);
|
|
|
|
// _list.ForEach(p =>
|
|
|
|
// {
|
|
|
|
// _buffer.AppendFormat("<tr><td>{0}</td><td>{1}</td><td>{2}</td><td>{3}</td><td>{4}</td></tr>"
|
|
|
|
// , p.PoLine, p.PartCode, p.PartDesc1, p.Qty, p.PoUnit);
|
|
|
|
// });
|
|
|
|
// _buffer.Append("</talbe>");
|
|
|
|
// _content.Text = _buffer.ToString();
|
|
|
|
// }
|
|
|
|
} |
|
|
|
} |
|
|
|
} |