Ejemplo n.º 1
0
        //分页
        protected void gd_MoneyGive_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            gd_MoneyGive.PageIndex = e.NewPageIndex;
            List <int> proidlist = new List <int>();

            if (ttb_Work.Text.Trim() != "")
            {
                proidlist = blpro.FindProjectList(ttb_Work.Text.Trim(), Convert.ToInt32(Session["SecrecyLevel"]));
            }
            switch (page)
            {
            case 0:
                gd_MoneyGiveData();
                break;

            case 1:
                List <FundInformation> res = new List <FundInformation>();
                for (int i = 0; i < proidlist.Count; i++)
                {
                    res.AddRange(fund.FindByPO(proidlist[i], "支出", Convert.ToInt32(Session["SecrecyLevel"])));
                }
                gd_MoneyGive.RecordCount = res.Count;
                gd_MoneyGive.DataSource  = res.Skip(gd_MoneyGive.PageIndex * gd_MoneyGive.PageSize).Take(gd_MoneyGive.PageSize).ToList();
                gd_MoneyGive.DataBind();
                break;

            case 2:
                FindByag(proidlist);
                break;
            }
        }
Ejemplo n.º 2
0
        //分页
        protected void Grid_Monograph_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            Grid_Monograph.PageIndex = e.NewPageIndex;
            switch (page)
            {
            case 0:
                InitData();
                break;

            case 1:
                FindByTime();
                break;

            case 2:
                FindByWriter();
                break;

            case 3:
                FindBySort();
                break;

            case 4:
                FindByMonographName();
                break;

            case 5:
                FindByFirstWriterPosition();
                break;

            case 6:
                FindByAgency();
                break;
            }
        }
Ejemplo n.º 3
0
        //分页
        protected void Grid_Pact_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            this.Grid_Pact.PageIndex = e.NewPageIndex;
            //BindData();
            switch (page)
            {
            case 0:
                BindData();
                break;

            case 1:
                FindByPactNum();
                break;

            case 2:
                FindByProject();
                break;

            case 3:
                FindByPactName();
                break;

            case 4:
                FindByPactCompletion();
                break;

            case 5:
                FindByChargePerson();
                break;
            }
        }
    /// <summary>
    /// 数据分页
    /// </summary>
    protected void Grid_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
    {
        ChangeTrackingList <EntitySearcher> changeTrackingList = ViewState["sql"] as ChangeTrackingList <EntitySearcher>;
        GridColumn column = CommonGrid.FindColumn(CommonGrid.SortColumn);

        BindGrid(changeTrackingList, column.SortField, CommonGrid.SortDirection);
    }
Ejemplo n.º 5
0
        protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
        {
            SyncSelectedRowIndexArrayToHiddenField();

            Grid1.PageIndex = e.NewPageIndex;
            BindGrid();
        }
        protected void Grid1_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            SyncSelectedRowIndexArrayToHiddenField();

            Grid1.PageIndex = e.NewPageIndex;

            UpdateSelectedRowIndexArray();
        }
Ejemplo n.º 7
0
    /// <summary>
    /// 数据分页
    /// </summary>
    protected void rolebGrid_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
    {
        this.rolebGrid.PageIndex = e.NewPageIndex;
        ChangeTrackingList <EntitySearcher> changeTrackingList = ViewState["sql"] as ChangeTrackingList <EntitySearcher>;
        GridColumn column = rolebGrid.FindColumn(rolebGrid.SortColumn);

        rolebGrid_Bind(changeTrackingList, column.SortField, rolebGrid.SortDirection);
    }
Ejemplo n.º 8
0
    /// <summary>
    /// 数据分页
    /// </summary>
    protected void grdAttachment_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
    {
        grdAttachment.PageIndex = e.NewPageIndex;
        ChangeTrackingList <EntitySearcher> changeTrackingList = ViewState["attachment"] as ChangeTrackingList <EntitySearcher>;
        GridColumn column = grdAttachment.FindColumn(grdAttachment.SortColumn);

        grdAttachment_Bind(changeTrackingList, column.SortField, grdAttachment.SortDirection);
    }
Ejemplo n.º 9
0
    /// <summary>
    /// 数据分页
    /// </summary>
    protected void grdFollow_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
    {
        this.grdFollow.PageIndex = e.NewPageIndex;
        ChangeTrackingList <EntitySearcher> changeTrackingList = ViewState["follow"] as ChangeTrackingList <EntitySearcher>;
        GridColumn column = grdFollow.FindColumn(grdFollow.SortColumn);

        grdFollow_Bind(changeTrackingList, column.SortField, grdFollow.SortDirection);
    }
Ejemplo n.º 10
0
        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Grid1_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            if (grid != null)
            {
                grid.PageIndex = e.NewPageIndex;

                //LoadData();
            }
        }
Ejemplo n.º 11
0
    /// <summary>
    /// 数据分页
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void formGrid_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
    {
        SyncSelectedRowIndexArrayToHiddenField();

        formGrid.PageIndex = e.NewPageIndex;
        ChangeTrackingList <EntitySearcher> changeTrackingList = ViewState["sql"] as ChangeTrackingList <EntitySearcher>;
        GridColumn column = formGrid.FindColumn(formGrid.SortColumn);

        formGrid_Bind(changeTrackingList, column.SortField, formGrid.SortDirection);

        UpdateSelectedRowIndexArray();
    }
Ejemplo n.º 12
0
        protected void GridEduExperience_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            GridEduExperience.PageIndex = e.NewPageIndex;
            switch (page)
            {
            case 0:
                BindData();
                break;

            case 1:
                SelectByID();
                break;
            }
        }
Ejemplo n.º 13
0
        //分页
        protected void Grid_Award_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            Grid_Award.PageIndex = e.NewPageIndex;
            switch (page)
            {
            case 0:
                InitData();
                break;

            case 1:
                FindByName();
                break;

            case 2:
                FindByLevel();
                break;

            case 3:
                FindByTime();
                break;

            case 4:
                FindByUnit();
                break;

            case 5:
                FindByAwardName();
                break;

            case 6:
                FindByAwardUnit();
                break;

            case 7:
                FindByAwardPeople();
                break;

            case 8:
                FindByAwardForm();
                break;

            case 9:
                FindBySecrecy();
                break;

            case 10:
                FindByMember();
                break;
            }
        }
Ejemplo n.º 14
0
 protected void grid_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
 {
     FineUI.Grid grid = (FineUI.Grid)sender;
     if (grid.ID == "gridMPS")
     {
         gridMPS.PageIndex = e.NewPageIndex;
         this.BindGridMPS();
     }
     if (grid.ID == "gridMRP")
     {
         gridMRP.PageIndex = e.NewPageIndex;
         string referenceID = gridMPS.DataKeys[gridMPS.SelectedRowIndex][0].ToString();
         this.BindGridMRP(referenceID);
     }
 }
Ejemplo n.º 15
0
        //分页
        protected void Grid_Contract_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            this.Grid_Contract.PageIndex = e.NewPageIndex;
            //BindData();
            switch (page)
            {
            case 0:
                BindData();
                break;

            case 1:
                FindByContractHeadLine();
                break;
            }
        }
Ejemplo n.º 16
0
        //分页
        protected void Grid_ReportInfo_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            Grid_ReportInfo.PageIndex = e.NewPageIndex;
            //BindReport();
            switch (page)
            {
            case 0:
                BindReport();
                break;

            case 1:
                FindByAgency();
                break;
            }
        }
Ejemplo n.º 17
0
        //分页
        protected void Grid_LibraryRecord_Pact_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            this.Grid_LibraryRecord_Pact.PageIndex = e.NewPageIndex;
            //BindData();
            switch (page)
            {
            case 0:
                BindData();
                break;

            case 1:
                check();
                break;
            }
        }
Ejemplo n.º 18
0
        protected void Grid_Lectures_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            Grid_Lectures.PageIndex = e.NewPageIndex;
            //BindData();
            switch (page)
            {
            case 0:
                BindData();
                break;

            case 1:
                FindByAgency();
                break;
            }
        }
Ejemplo n.º 19
0
        //分页
        protected void Grid_UnitInspect_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            Grid_UnitInspect.PageIndex = e.NewPageIndex;
            switch (page)
            {
            case 0:
                InitData();
                break;

            case 1:
                FindByYear();
                break;

            case 2:
                FindByWorkPlace();
                break;
            }
        }
Ejemplo n.º 20
0
        protected void Grid_Platform_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            this.Grid_Platform.PageIndex = e.NewPageIndex;
            switch (page)
            {
            case 0:
                BindData();
                break;

            case 1:
                FindByPlatformName();
                break;

            case 2:
                FindByPlatformType();
                break;
            }
        }
Ejemplo n.º 21
0
        protected void People_Info_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            Grid_Equipment.PageIndex = e.NewPageIndex;
            switch (page)
            {
            case 0:
                InitData();
                break;

            case 1:
                FindByEquipmentName();
                break;

            case 2:
                FindByPurchase();
                break;

            case 3:
                FindByPurchaseTime();
                break;

            case 4:
                FindByPrice();
                break;

            case 5:
                FindByUsePerson();
                break;

            case 6:
                FindByAgencyID();
                break;

            case 7:
                FindByEquipNum();
                break;

            case 8:
                FindByAgencyName();
                break;
            }
        }
Ejemplo n.º 22
0
        protected void Grid_AchieveApply_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            try
            {
                Grid_AchieveApply.PageIndex = e.NewPageIndex;
                switch (page)
                {
                case 0:
                    InitData();
                    break;

                case 1:
                    FindByAchievementNmae();
                    break;

                case 2:
                    FindByPeople();
                    break;

                case 3:
                    FindByTime();
                    break;

                case 4:
                    FindByUnit();
                    break;

                case 5:
                    FindBySecrecyLevel();
                    break;

                case 6:
                    FindByMember();
                    break;
                }
            }
            catch (Exception ex)
            {
                pm.SaveError(ex, this.Request);
            }
        }
Ejemplo n.º 23
0
        //分页
        protected void Grid_MeetingName_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            this.Grid_MeetingName.PageIndex = e.NewPageIndex;
            switch (page)
            {
            case 0:
                BindData();
                break;

            case 1:
                FindByYear();
                break;

            case 2:
                FindByUserName();
                break;

            case 3:
                FindByUserAndYear();
                break;
            }
        }
Ejemplo n.º 24
0
        protected void People_Info_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            Grid_Files.PageIndex = e.NewPageIndex;
            switch (page)
            {
            case 0:
                InitData();
                break;

            case 1:
                FindByAgency();
                break;

            case 2:
                FindBySort();
                break;

            case 3:
                FindByAS();
                break;
            }
        }
Ejemplo n.º 25
0
        //分页
        protected void Grid_Patent_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            Grid_Patent.PageIndex = e.NewPageIndex;
            switch (page)
            {
            case 0:
                InitData();
                break;

            case 1:
                FindByAgency();
                break;

            case 2:
                FindByPatentForm();;
                break;

            case 3:
                FindByApplicationTime();
                break;

            case 4:
                FindByAccreditTime();
                break;

            case 5:
                FindByPeople();
                break;

            case 6:
                FindByMember();
                break;

            case 7:
                FindBySecrecyLevel();
                break;
            }
        }
Ejemplo n.º 26
0
        protected void Grid_NAReporting_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
        {
            Grid_NAReporting.PageIndex = e.NewPageIndex;
            //BindData();
            switch (page)
            {
            case 0:
                BindData();
                break;

            case 1:
                FindBuRNHeadLine();
                break;

            case 2:
                FindByReportTime();
                break;

            case 3:
                FindByReportPeople();
                break;
            }
        }
 protected void grdDepartment_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
 {
     grdDepartment.PageIndex = e.NewPageIndex;
 }
Ejemplo n.º 28
0
 /// <summary>
 /// 触发页索引改变事件
 /// </summary>
 /// <param name="e">事件参数</param>
 protected virtual void OnPageIndexChange(GridPageEventArgs e)
 {
     EventHandler<GridPageEventArgs> handler = Events[_pageIndexChangeHandlerKey] as EventHandler<GridPageEventArgs>;
     if (handler != null)
     {
         handler(this, e);
     }
 }
Ejemplo n.º 29
0
 protected void Grid2_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
 {
     this.Grid2.PageIndex = e.NewPageIndex;
     this.BindGrid();
 }
Ejemplo n.º 30
0
 protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
 {
     Grid1.PageIndex = e.NewPageIndex;
     BindGrid();
 }
Ejemplo n.º 31
0
 /// <summary>
 /// 数据分页
 /// </summary>
 protected void attachmentGrid_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
 {
     attachmentGrid_Bind();
 }
 /// <summary>
 /// 页面切换
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void LibraryGrid_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
 {
     LibraryGrid.PageIndex = e.NewPageIndex;
 }
Ejemplo n.º 33
0
 protected void Grid1_PageIndexChange(object sender, FineUI.GridPageEventArgs e)
 {
     Grid1.PageIndex = e.NewPageIndex;
 }
Ejemplo n.º 34
0
 protected void Grid2_PageIndexChange(object sender, GridPageEventArgs e)
 {
     Grid2.PageIndex = e.NewPageIndex;
     Grid2_databind();
 }
Ejemplo n.º 35
0
 protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
 {
     SyncSelectedRowIndexArrayToHiddenField(hfSelectedIDS1, Grid1);
     Grid1.PageIndex = e.NewPageIndex;
     //Grid1.DataBind();
     databind();
 }