/// <summary> /// 取得商品儲區擷轉明細 /// </summary> private DataTable Get_Data(string s_Page_Load) { #region 傳入參數 ArrayList ParameterList = new ArrayList();//20091118 if (s_Page_Load == "IS_PAGE_LOAD") { ParameterList.Clear(); ParameterList.Add(GetValueSetParameter(sTransDate, "date", false)); ParameterList.Add(GetValueSetParameter(sStAcceptDate, "date", false)); ParameterList.Add(GetValueSetParameter(sRootNo, "int", false)); ParameterList.Add(GetValueSetParameter(sIsOverDue, "int", false)); ParameterList.Add(GetValueSetParameter(sTransNoBegin, "string", false)); ParameterList.Add(GetValueSetParameter(sTransNoEnd, "string", false)); ParameterList.Add(Session["UID"].ToString()); ParameterList.Add(GetValueSetParameter("9999", "int", false)); } else if (s_Page_Load == "NOT_PAGE_LOAD") { ParameterList.Clear(); ParameterList.Add(GetValueSetParameter(this.slp_TRANS_DATE.Text, "date", false)); ParameterList.Add(GetValueSetParameter(this.slp_ST_ACCEPT_DATE.Text, "date", false)); ParameterList.Add(GetValueSetParameter(this.SLP_RootNo1.Text.Trim(), "int", false)); ParameterList.Add(GetValueSetParameter(this.slp_IS_OVERDUE.SelectedValue, "int", false)); ParameterList.Add(GetValueSetParameter(this.txt_TRANS_NO_B.Text, "string", false)); ParameterList.Add(GetValueSetParameter(this.txt_TRANS_NO_E.Text, "string", false)); ParameterList.Add(Session["UID"].ToString()); ParameterList.Add(GetValueSetParameter(this.TextBoxRowCountLimit.Text.Trim(), "int", false)); } #endregion #region 取得資料 DataTable dt_Return = new DataTable(); BCO.QueryCRMCommon bco = new BCO.QueryCRMCommon(ConntionDB); dt_Return = bco.QueryDisNo(ParameterList); #endregion #region 資料與GridView繫結 //抓取本頁初次登記的時間 string SessionIDName = "QueryDisNo_POP_" + this.PageTimeStamp.Value; Session["SessionID"] = SessionIDName; Session[SessionIDName] = dt_Return; this.gv_TransDisNo.DataSource = dt_Return; this.gv_TransDisNo.PageSize = (this.TextBoxPagesize.Text == string.Empty) ? 10 : (int.Parse(this.TextBoxPagesize.Text) <= 0) ? 10 : int.Parse(this.TextBoxPagesize.Text); this.gv_TransDisNo.PageIndex = 0; this.gv_TransDisNo.DataBind(); #endregion return dt_Return; }