Ejemplo n.º 1
0
        private DataTable SeachGoods()
        {
            DataTable dtout   = new DataTable();
            Hashtable htapp   = (Hashtable)Application["appconf"];
            string    strcons = (string)htapp["cons"];

            StoBusi = new BusiComm.StorageBusi(strcons);
            try
            {
                string strGoodType = this.ddlGoodType.SelectedValue;
                string strGoodName = this.txtGoodName.Text.Trim();
                if (strGoodType == "全部")
                {
                    strGoodType = "";
                }
                if (!(strGoodType == "" && strGoodName == ""))
                {
                    dtout = StoBusi.ChartSeachGoods(strGoodType, strGoodName);
                }
                return(dtout);
            }
            catch (Exception er)
            {
                this.clog.WriteLine(er);
                this.SetErrorMsgPageBy2dir("查询错误,请重试!");
                return(dtout);
            }
        }