private void Query(bool WindowOpen, string forwarderType) { Mod_SigningScheduleQuery AbMode = new Mod_SigningScheduleQuery(); if (this.ProcessFlag.Value.ToLower().Equals("condition") || WindowOpen) { AbMode = GetPageValue();//取頁面的值 this.ViewState.Add("condition", AbMode); } else { AbMode = (Mod_SigningScheduleQuery)this.ViewState["condition"]; } int totalCount = 0; DataTable dt_result = bllSigningSchedule.GetSigningScheduleInfo(AbMode, pager.CurrentPageIndex, pager.PageSize, out totalCount); this.DataUIBind(dt_result); pager.RecordCount = totalCount; pager.TextAfterPageIndexBox = "/" + pager.PageCount.ToString(); // WriteMessage(0, Message.common_message_trans_complete); }
private Mod_SigningScheduleQuery GetPageValue() { Mod_SigningScheduleQuery pgMode = new Mod_SigningScheduleQuery(); pgMode.DepCode = textBoxDepCode.Text.Trim(); pgMode.DepName = textBoxDepName.Text.Trim(); pgMode.BillTypeCode = this.ddlBillTypeCode.SelectedValuesToString(","); pgMode.BillNo = this.textBoxBillNo.Text.Trim(); pgMode.Status =this.ddlStatus.SelectedValue; pgMode.ApplyDateFrom = this.textBoxApplyDateFrom.Text.Trim(); pgMode.ApplyDateTo = this.textBoxApplyDateTo.Text.Trim(); //pgMode.AuditMan =this.textBoxAuditMan.Text.Trim(); pgMode.ApplyMan = this.textBoxApplyMan.Text.Trim(); pgMode.sqlDep = base.SqlDep; return pgMode; }