Ejemplo n.º 1
0
        private void dgbind(string strGoodsName)
        {
            if (strGoodsName != "货品")
            {
                Hashtable htapp   = (Hashtable)Application["appconf"];
                string    strcons = (string)htapp["cons"];
                StoBusi = new BusiComm.StorageBusi(strcons);
                DataTable dtout = StoBusi.GetGoodsToProvider(strGoodsName);
                if (dtout == null)
                {
                    this.SetErrorMsgPageBydir("查询出错,请重试!");
                    return;
                }
                else
                {
                    dtout.TableName = "货品对应供应商清单";
                    DataTable dtexcel = dtout.Copy();
                    Session["QUERY"] = dtout;
                }

                UcPageView1.MyDataGrid.PageSize = 10;
                DataView dvOut = new DataView(dtout);
                this.UcPageView1.MyDataSource = dvOut;
                this.UcPageView1.BindGrid();
            }
        }