private void QueryData() { #region try { string SessionIDName = string.Format("{0}_{1}", PAGE_DT_01, PageTimeStamp.Value); ALOModel.MaintainDisRecord BCO = new ALOModel.MaintainDisRecord(ConnectionDB); ArrayList ParameterList = new ArrayList();//20091113 ParameterList.Clear(); ParameterList.Add(s_DIS_NO); ParameterList.Add(s_ITEM); ParameterList.Add(s_PERIOD); DataTable dt = BCO.QueryDisStoreWithImportPOInfo(ParameterList); if (dt != null && dt.Rows.Count > 0) { this.btn_Save.Enabled = true; this.gv_Result.DataSource = dt; this.gv_Result.PageSize = 10; this.gv_Result.PageIndex = 0; this.gv_Result.DataBind(); Session[SessionIDName] = dt; } else { ResultMsgLabel.Text = "查無資料"; } } catch (Exception ex) { ErrorMsgLabel.Text = ex.Message; } #endregion }