Example #1
0
        private void Button1_Click(object sender, System.EventArgs e)
        {
            Hashtable htapp   = (Hashtable)Application["appconf"];
            string    strcons = (string)htapp["cons"];

            StoBusi = new BusiComm.StorageBusi(strcons);

            DataTable dt = StoBusi.GetGoodsBySelect(this.txtProviderID.Text.Trim(), this.txtQueryGoodsCode.Text.Trim(), this.txtQueryGoodsName.Text.Trim());

            this.TableConvert(dt, "cnvcStockUnit", "ComputationUnit");
            this.DataGrid1.DataSource = dt;
            this.DataGrid1.DataBind();
            this.ClientScript.RegisterStartupScript(this.GetType(), "show", "<script lanaguage=javascript>ShowHide('1','block');</script>");
        }