Пример #1
0
        private void btnQuery_Click(object sender, System.EventArgs e)
        {
            string    strMonth = this.ddlMonth.SelectedItem.Text;
            Hashtable htapp    = (Hashtable)Application["appconf"];
            string    strcons  = (string)htapp["cons"];

            StoBusi = new BusiComm.StorageBusi(strcons);
            try
            {
                DataTable dtout = StoBusi.GetStockPlanQuery(strMonth);
                if (dtout == null)
                {
                    this.SetErrorMsgPageBydir("²éѯ³ö´í£¬ÇëÖØÊÔ£¡");
                    return;
                }
                else
                {
                    dtout.TableName  = "²É¹º¼Æ»®±í";
                    Session["QUERY"] = dtout;
                }

                UcPageView1.MyDataGrid.PageSize = 20;
                DataView dvOut = new DataView(dtout);
                this.UcPageView1.MyDataSource = dvOut;
                this.UcPageView1.BindGrid();
            }
            catch (Exception er)
            {
                this.clog.WriteLine(er);
                this.SetErrorMsgPageBydir("²éѯ´íÎó£¬ÇëÖØÊÔ£¡");
                return;
            }
        }