Beispiel #1
0
        protected void Grid1_Sort(object sender, GridSortEventArgs e)
        {
            Grid1.SortDirection = e.SortDirection;
            Grid1.SortColumnIndex = e.ColumnIndex;

            BindGrid();
        }
Beispiel #2
0
    /// <summary>
    /// 数据排序
    /// </summary>
    protected void memberGird_Sort(object sender, FineUI.GridSortEventArgs e)
    {
        ChangeTrackingList <EntitySearcher> changeTrackingList = ViewState["sql"] as ChangeTrackingList <EntitySearcher>;
        GridColumn column = memberGird.FindColumn(memberGird.SortColumn);

        memberGrid_Bind(changeTrackingList, column.SortField, memberGird.SortDirection);
    }
Beispiel #3
0
 /// <summary>
 /// 排序
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Grid1_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     //生成排序关键字
     Sort(e);
     //刷新列表
     LoadData();
 }
    /// <summary>
    /// 数据排序
    /// </summary>
    protected void grdFollow_Sort(object sender, FineUI.GridSortEventArgs e)
    {
        ChangeTrackingList <EntitySearcher> changeTrackingList = ViewState["follow"] as ChangeTrackingList <EntitySearcher>;
        GridColumn column = grdFollow.FindColumn(grdFollow.SortColumn);

        grdFollow_Bind(changeTrackingList, column.SortField, grdFollow.SortDirection);
    }
Beispiel #5
0
        protected void Grid1_Sort(object sender, GridSortEventArgs e)
        {
            Grid1.SortDirection = e.SortDirection;
            Grid1.SortField = e.SortField;

            BindGrid();
        }
        protected void Grid1_Sort(object sender, GridSortEventArgs e)
        {
            SyncSelectedRowIndexArrayToHiddenField();

            Grid1.SortDirection = e.SortDirection;
            Grid1.SortField = e.SortField;
            BindGrid();
        }
Beispiel #7
0
        protected void grid_Sort(object sender, FineUI.GridSortEventArgs e)
        {
            gridMRP.SortDirection = e.SortDirection;
            gridMRP.SortField     = e.SortField;
            string referenceID = gridMPS.DataKeys[gridMPS.SelectedRowIndex][0].ToString();

            this.BindGridMRP(referenceID);
        }
    /// <summary>
    /// 数据排序
    /// </summary>
    protected void Grid_Sort(object sender, FineUI.GridSortEventArgs e)
    {
        ChangeTrackingList <EntitySearcher> changeTrackingList     = ViewState["sql"] as ChangeTrackingList <EntitySearcher>;
        ExtBindingList <FineOffice.Modules.OA_FlowRunProcess> list = runProcessBll.GetList(changeTrackingList).ToBindingList();

        list.Sort(e.SortField, e.SortDirection);
        this.transmitGrid.DataSource = list;
        this.transmitGrid.DataBind();
    }
Beispiel #9
0
        protected void Grid1_Sort(object sender, GridSortEventArgs e)
        {
            Grid1.SortDirection = e.SortDirection;
            Grid1.SortField = e.SortField;
            BindGrid();

            // 默认选中第一个角色
            Grid1.SelectedRowIndex = 0;

            BindGrid2();
        }
Beispiel #10
0
        protected void Grid1_Sort(object sender, GridSortEventArgs e)
        {
            Grid1.SortDirection = e.SortDirection;
            Grid1.SortColumnIndex = e.ColumnIndex;
            BindGrid1();

            // 默认选中第一个职称
            Grid1.SelectedRowIndex = 0;

            BindGrid2();
        }
Beispiel #11
0
        /// <summary>
        /// 生成排序关键字
        /// </summary>
        /// <param name="e"></param>
        public virtual void Sort(FineUI.GridSortEventArgs e)
        {
            //处理排序
            sortList = null;
            sortList = new List <string>();
            //排序列字段名称
            string sortName = "";

            if (e != null && e.SortField.Length > 0)
            {
                //判断是升序还是降序
                if (e.SortDirection != null && e.SortDirection.ToUpper() == "DESC")
                {
                    sortList.Add(e.SortField + " desc");
                }
                else
                {
                    sortList.Add(e.SortField + " asc");
                }
                sortName = e.SortField;
            }
            else
            {
                //使用默认排序——主键列降序排序
                sortList.Add("Id desc");
                sortName = "Id";
            }

            //利用反射的方式给页面控件赋值
            //查找指定名称控件
            var control = MenuInfoBll.GetInstence().FindControl(this.Controls, "SortColumn");

            if (control != null)
            {
                //判断是否是FineUI.HiddenField类型
                var type = control.GetType();
                if (type.FullName == "FineUI.HiddenField")
                {
                    //存储排序列字段名称
                    ((FineUI.HiddenField)control).Text = sortName;
                }
            }
        }
Beispiel #12
0
 /// <summary>
 /// 数据排序
 /// </summary>
 protected void contractGrid_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     Data_Bind();
 }
Beispiel #13
0
 protected void Grid1_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     Grid1.SortDirection   = e.SortDirection;
     Grid1.SortColumnIndex = e.ColumnIndex;
     bindEvaluatedToGrid();
 }
Beispiel #14
0
 /// <summary>
 /// 触发排序事件
 /// </summary>
 /// <param name="e">事件参数</param>
 protected virtual void OnSort(GridSortEventArgs e)
 {
     EventHandler<GridSortEventArgs> handler = Events[_sortHandlerKey] as EventHandler<GridSortEventArgs>;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Beispiel #15
0
 protected void Grid1_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     this.Grid1.SortDirection = e.SortDirection;
     this.Grid1.SortField     = e.SortField;
     this.LoadModules();
 }
Beispiel #16
0
 protected void gridRoomList_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     gridRoomList.SortDirection   = e.SortDirection;
     gridRoomList.SortColumnIndex = e.ColumnIndex;
     BindingGrid();
 }
 protected void Grid1_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     Grid1.SortDirection = e.SortDirection;
     Grid1.SortField     = e.SortField;
     BindData();
 }
    /// <summary>
    /// 数据排序
    /// </summary>
    protected void grdAttachment_Sort(object sender, FineUI.GridSortEventArgs e)
    {
        ChangeTrackingList <EntitySearcher> changeTrackingList = ViewState["attachment"] as ChangeTrackingList <EntitySearcher>;

        grdAttachment_Bind(changeTrackingList, e.SortField, e.SortDirection);
    }
 /// <summary>
 /// 数据排序
 /// </summary>
 protected void traderGrid_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     traderDataBind();
 }
 protected void GridFunctionPages_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     GridFunctionPages.SortDirection   = e.SortDirection;
     GridFunctionPages.SortColumnIndex = e.ColumnIndex;
     BindFunctionPagesGrid();
 }
 protected void Grid3_Sort(object sender, GridSortEventArgs e)
 {
     Grid3.SortField = e.SortField;
     Grid3.SortDirection = e.SortDirection;
     BindUserGrid();
 }
Beispiel #22
0
 /// <summary>
 /// 数据排序
 /// </summary>
 protected void attachmentGrid_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     attachmentGrid_Bind();
 }
 /// <summary>
 /// 排序
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void BlacklistGrid_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     BlacklistGrid.SortDirection   = e.SortDirection;
     BlacklistGrid.SortColumnIndex = e.ColumnIndex;
     BindGrid();
 }
 /// <summary>
 /// 排序
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void LibraryGrid_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     LibraryGrid.SortDirection   = e.SortDirection;
     LibraryGrid.SortColumnIndex = e.ColumnIndex;
     BindGrid();
 }
Beispiel #25
0
 /// <summary>
 /// 数据排序
 /// </summary>
 protected void fileGrid_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     fileDataBind();
 }
Beispiel #26
0
 protected void Grid2_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     this.Grid2.SortDirection = e.SortDirection;
     this.Grid2.SortField     = e.SortField;
     this.BindGrid();
 }
 /// <summary>
 /// 排序
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void NoticeGrid_Sort(object sender, FineUI.GridSortEventArgs e)
 {
     NoticeGrid.SortDirection   = e.SortDirection;
     NoticeGrid.SortColumnIndex = e.ColumnIndex;
     BindGrid();
 }
    /// <summary>
    /// 数据排序
    /// </summary>
    protected void rolebGrid_Sort(object sender, FineUI.GridSortEventArgs e)
    {
        ChangeTrackingList <EntitySearcher> changeTrackingList = ViewState["sql"] as ChangeTrackingList <EntitySearcher>;

        rolebGrid_Bind(changeTrackingList, e.SortField, e.SortDirection);
    }
Beispiel #29
0
 protected void grdData_Sort(object sender, FineUI.GridSortEventArgs e)
 {
 }