日期:2014-05-16 浏览次数:20477 次
protected void dxBtnNew_Son_Click(object sender, EventArgs e)
{
//获取“商品gridview(dxGDStockItem)”被点击数据
List<object> lSelectValues = dxGDStockItem.GetSelectedFieldValues("Id");
if (lSelectValues.Count == 0)
{
Page.ClientScript.RegisterStartupScript(this.GetType(), "MyScriptNew", "<script>alert('亲,请选中数据!');</script>");
return;
}
else
{
List<object> ItemOuterId = dxGDStockItem.GetSelectedFieldValues("ItemOuterId");
List<object> SimpleName = dxGDStockItem.GetSelectedFieldValues("SimpleName");
List<object> SkuOuterId = dxGDStockItem.GetSelectedFieldValues("SkuOuterId");
List<object> SkuName = dxGDStockItem.GetSelectedFieldValues("SkuName");
List<object> Qty = dxGDStockItem.GetSelectedFieldValues("Qty");
List<object> TransitQty = dxGDStockItem.GetSelectedFieldValues("TransitQty");
List<object> PackageQty = dxGDStockItem.GetSelectedFieldValues("PackageQty");
List<object> InStockQty = dxGDStockItem.GetSelectedFieldValues("InStockQty");
//定义datatable
DataTable DetailTable = new DataTable();