public DataTable dts;
public String strField = "";
public DataTable dtbody;
public DataTable dthead;
public DataTable dttask;
public DataTable dtdetails; //明细
public DataTable dtBodys;//自定义表体数据
public Dictionary<string, double> dicbodyqty = new Dictionary<string, double>(); //明细数量
public Dictionary<string, string> diccabrcode = new Dictionary<string, string>(); //明细扫描条码
public List<string> strList = new List<string>(); //定义表体数据集合,用于赋值时判断(下方列表标题)
public List<string> deList = new List<string>(); //定义选中数据主键
public List<TableViewRow> detList = new List<TableViewRow>(); //定义删除表体集合
public int numdata = 0;
#region 表头数据
string strsql2 = "select * from GridViewConfig WHERE (localeid = 'zh-cn') AND (FormID = '采购入库') AND (FormType = 'details') AND (isShow = 1) order by [Index] desc";
DataTable dt = new System.Data.DataTable();
try
{
NJ.UTO.WMS.DataAccess.StockOutDA.GetU8ASNOrderBody(dtHead.Rows[0]["poid"].ToString(), NJ.UTO.WMS.Client.GlobalCom.DBConnectionStr,
out dsBody, out ErrStr);
DataTable dtBody = new DataTable();
dtBody = dsBody.Tables[0];
Dictionary<string, object> data = new Dictionary<string, object>();
foreach (DataRow datarow in dtBodys.Rows)
{
data.Add(datarow["ColumnID"].ToString(), dtHead.Rows[0][datarow["ColumnID"].ToString()].ToString());
PopListGroup plGroup = new PopListGroup();
popList1.Groups.Add(plGroup);
popList1.Title = "存货信息";
foreach (DataRow dr in dt.Rows)
{
PopListItem popItem = new PopListItem(dr["cinvcode"].ToString(), dr["cinvname"].ToString());
plGroup.Items.Add(popItem);
}