/// <summary> /// 查询按钮的处理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnQuery_Click(object sender, EventArgs e) { B_ReceiveEdit l_BusReceiveEdit = null; if (!VerifyQueryField()) { ValidateUtility.ShowMsgBox(this.Page, FS.ADIM.OA.BLL.Common.Utility.MessageType.VbCritical, "表单验证失败"); return; } l_BusReceiveEdit = new B_ReceiveEdit(); l_BusReceiveEdit.ProcessName = ProcessTemplate; //收文号-从 l_BusReceiveEdit.ReceiveNoFrom = txtQueryDocNoFrom.Text.TrimEnd(); //收文号-到 l_BusReceiveEdit.ReceiveNoTo = txtQueryDocNoTo.Text.TrimEnd(); //文件标题 l_BusReceiveEdit.DocumentTitle = txtQueryDocTitle.Text.TrimEnd(); //收文日期-从 if (ValidateUtility.IsDateTime(txtQueryRecDateFrom.Text.TrimEnd())) { l_BusReceiveEdit.ReceiveDateFrom = txtQueryRecDateFrom.ValDate; } //收文日期-到 if (ValidateUtility.IsDateTime(txtQueryRecDateTo.Text.TrimEnd())) { l_BusReceiveEdit.ReceiveDateTo = txtQueryRecDateTo.ValDate; } //来文单位 l_BusReceiveEdit.ReceiveUnit = txtQueryRecUnit.Text.TrimEnd(); //收文年份 l_BusReceiveEdit.ReceiveYear = ddlQueryRecYear.Text.TrimEnd(); //状态 if (ddlQueryStatus.SelectedItem != null) { l_BusReceiveEdit.Status = ddlQueryStatus.SelectedItem.Text; } l_BusReceiveEdit.Start = this.gdvList.PageIndex * this.gdvList.PageSize; l_BusReceiveEdit.End = this.gdvList.PageIndex * this.gdvList.PageSize + this.gdvList.PageSize; l_BusReceiveEdit.Sort = null; this.gdvList.DataSource = l_BusReceiveEdit.QueryRegisterInfo(l_BusReceiveEdit); this.gdvList.RecordCount = l_BusReceiveEdit.RowCount; this.gdvList.DataBind(); }
private void LoadRegisterList() { B_ReceiveEdit l_BusReceiveEdit = null; //if (String.IsNullOrEmpty(SubTemplateName)) //{ // return; //} l_BusReceiveEdit = new B_ReceiveEdit(); l_BusReceiveEdit.ProcessName = SubTemplateName; //收文号-从 l_BusReceiveEdit.ReceiveNoFrom = FormsMethod.Filter(txtQueryDocNoFrom.Text.TrimEnd()); //收文号-到 l_BusReceiveEdit.ReceiveNoTo = FormsMethod.Filter(txtQueryDocNoTo.Text.TrimEnd()); //文件标题 l_BusReceiveEdit.DocumentTitle = FormsMethod.Filter(txtQueryDocTitle.Text.TrimEnd()); //收文日期-从 l_BusReceiveEdit.ReceiveDateFrom = txtQueryRecDateFrom.ValDate; //收文日期-到 l_BusReceiveEdit.ReceiveDateTo = txtQueryRecDateTo.ValDate; //来文单位 l_BusReceiveEdit.ReceiveUnit = FormsMethod.Filter(txtQueryRecUnit.Text.TrimEnd()); //收文年份 l_BusReceiveEdit.ReceiveYear = ddlQueryRecYear.Text.TrimEnd(); //状态 if (ddlQueryStatus.SelectedItem != null) { l_BusReceiveEdit.Status = ddlQueryStatus.SelectedItem.Text; } l_BusReceiveEdit.Start = gvRegisterList.PageIndex * gvRegisterList.PageSize; l_BusReceiveEdit.End = gvRegisterList.PageIndex * gvRegisterList.PageSize + gvRegisterList.PageSize; l_BusReceiveEdit.Sort = SortExpression; this.gvRegisterList.DataSource = l_BusReceiveEdit.QueryRegisterInfo(l_BusReceiveEdit); this.gvRegisterList.RecordCount = l_BusReceiveEdit.RowCount; this.gvRegisterList.DataBind(); }
/// <summary> /// 查询按钮的处理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnQuery_Click(object sender, EventArgs e) { B_ReceiveEdit l_BusReceiveEdit = null; if (!VerifyQueryField()) { ValidateUtility.ShowMsgBox(this.Page, FS.ADIM.OA.BLL.Common.Utility.MessageType.VbCritical, "表单验证失败"); return; } l_BusReceiveEdit = new B_ReceiveEdit(); l_BusReceiveEdit.ProcessName = ProcessTemplate; //收文号-从 l_BusReceiveEdit.ReceiveNoFrom = txtQueryDocNoFrom.Text.TrimEnd(); //收文号-到 l_BusReceiveEdit.ReceiveNoTo = txtQueryDocNoTo.Text.TrimEnd(); //文件标题 l_BusReceiveEdit.DocumentTitle = txtQueryDocTitle.Text.TrimEnd(); //收文日期-从 if (ValidateUtility.IsDateTime(txtQueryRecDateFrom.Text.TrimEnd())) { l_BusReceiveEdit.ReceiveDateFrom = txtQueryRecDateFrom.ValDate; } //收文日期-到 if (ValidateUtility.IsDateTime(txtQueryRecDateTo.Text.TrimEnd())) { l_BusReceiveEdit.ReceiveDateTo = txtQueryRecDateTo.ValDate; } //来文单位 l_BusReceiveEdit.ReceiveUnit = txtQueryRecUnit.Text.TrimEnd(); //收文年份 l_BusReceiveEdit.ReceiveYear = ddlQueryRecYear.Text.TrimEnd(); //状态 if (ddlQueryStatus.SelectedItem != null) { l_BusReceiveEdit.Status = ddlQueryStatus.SelectedItem.Text; } l_BusReceiveEdit.Start = this.gdvList.PageIndex * this.gdvList.PageSize; l_BusReceiveEdit.End = this.gdvList.PageIndex * this.gdvList.PageSize + this.gdvList.PageSize; l_BusReceiveEdit.Sort = null; this.gdvList.DataSource = l_BusReceiveEdit.QueryRegisterInfo(l_BusReceiveEdit); this.gdvList.RecordCount = l_BusReceiveEdit.RowCount; this.gdvList.DataBind(); }
private void LoadRegisterList() { B_ReceiveEdit l_BusReceiveEdit = null; //if (String.IsNullOrEmpty(SubTemplateName)) //{ // return; //} l_BusReceiveEdit = new B_ReceiveEdit(); l_BusReceiveEdit.ProcessName = SubTemplateName; //收文号-从 l_BusReceiveEdit.ReceiveNoFrom = FormsMethod.Filter(txtQueryDocNoFrom.Text.TrimEnd()); //收文号-到 l_BusReceiveEdit.ReceiveNoTo = FormsMethod.Filter(txtQueryDocNoTo.Text.TrimEnd()); //文件标题 l_BusReceiveEdit.DocumentTitle = FormsMethod.Filter(txtQueryDocTitle.Text.TrimEnd()); //收文日期-从 l_BusReceiveEdit.ReceiveDateFrom = txtQueryRecDateFrom.ValDate; //收文日期-到 l_BusReceiveEdit.ReceiveDateTo = txtQueryRecDateTo.ValDate; //来文单位 l_BusReceiveEdit.ReceiveUnit =FormsMethod.Filter(txtQueryRecUnit.Text.TrimEnd()); //收文年份 l_BusReceiveEdit.ReceiveYear = ddlQueryRecYear.Text.TrimEnd(); //状态 if (ddlQueryStatus.SelectedItem != null) { l_BusReceiveEdit.Status = ddlQueryStatus.SelectedItem.Text; } l_BusReceiveEdit.Start = gvRegisterList.PageIndex * gvRegisterList.PageSize; l_BusReceiveEdit.End = gvRegisterList.PageIndex * gvRegisterList.PageSize + gvRegisterList.PageSize; l_BusReceiveEdit.Sort = SortExpression; this.gvRegisterList.DataSource = l_BusReceiveEdit.QueryRegisterInfo(l_BusReceiveEdit); this.gvRegisterList.RecordCount = l_BusReceiveEdit.RowCount; this.gvRegisterList.DataBind(); }