Exemple #1
0
        /// <summary>
        /// init rpt
        /// </summary>
        void InitRpt()
        {
            var chaXun      = GetChaXunInfo();
            int recordCount = 0;

            pageIndex = UtilsCommons.GetPadingIndex();

            var items = new EyouSoft.BLL.YlStructure.BHuiYuan().GetHuiYuans(CurrentUserCompanyID, pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();

                paging.UrlParams      = Request.QueryString;
                paging.intPageSize    = pageSize;
                paging.CurrencyPage   = pageIndex;
                paging.intRecordCount = recordCount;
            }
            else
            {
                phEmpty.Visible = true;
                phHeJi.Visible  = false;
            }
        }
Exemple #2
0
        /// <summary>
        /// more
        /// </summary>
        void More()
        {
            int pageSize    = 9;
            int pageIndex   = UtilsCommons.GetPadingIndex("index");
            int recordCount = 0;

            var chaXun = new EyouSoft.Model.YlStructure.MWzZhaoPinGangWeiChaXunInfo();
            var items  = new EyouSoft.BLL.YlStructure.BWz().GetZhaoPinGangWeis(YuMingInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun);

            int pageCount = (int)Math.Ceiling((double)recordCount / (double)pageSize);

            if (pageIndex > pageCount)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", ""));
            }

            StringBuilder s = new StringBuilder();

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    s.AppendFormat("<dl>");
                    s.AppendFormat("<dt>{0}</td>", item.MingCheng);
                    s.AppendFormat("<dd>{0}<dd>", item.XiangXiJieShao);
                    s.AppendFormat("</dl>");
                }
            }

            Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "", s.ToString()));
        }
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            //获取分页参数并强转
            pageIndex = UtilsCommons.GetPadingIndex();

            EyouSoft.Model.YlStructure.MGongSiChaXunInfo searchModel = new EyouSoft.Model.YlStructure.MGongSiChaXunInfo();
            searchModel.GongSiLeiXing = (EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing)Utils.GetInt(Utils.GetQueryStringValue("t"));
            if (Utils.GetInt(Utils.GetQueryStringValue("t")) == 255)
            {
                searchModel.GongSiLeiXing = null;
            }
            searchModel.GongSiMingCheng = Utils.GetQueryStringValue("comName");

            IList <EyouSoft.Model.YlStructure.MGongSiInfo> comps = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetGongSis(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, searchModel);

            if (comps != null && comps.Count > 0)
            {
                listCount = comps.Count;
                this.rptList.DataSource = comps;
                this.rptList.DataBind();
                BindPage();
            }
            else
            {
                this.lblMsg.Text = "没有相关数据!";
                this.ExporPageInfoSelect1.Visible = false;
            }

            //绑定分页
            BindPage();
        }
Exemple #4
0
        /// <summary>
        /// init rpt
        /// </summary>
        void InitRpt()
        {
            pageIndex = UtilsCommons.GetPadingIndex();
            var chaXun = GetChaXunInfo();

            object[] heJi;

            IList <MTradeOrder> list = new EyouSoft.BLL.TourStructure.BTourOrder().GetTourOrderList(chaXun, pageSize, pageIndex, ref recordCount, out heJi);

            if (list != null && list.Count > 0)
            {
                this.rptList.DataSource = list;
                this.rptList.DataBind();
                BindPage();

                ltrHeJi0.Text = recordCount.ToString();
                ltrHeJi1.Text = heJi[0].ToString();
                ltrHeJi2.Text = heJi[1].ToString();
                ltrHeJi3.Text = UtilsCommons.GetMoneyString(heJi[2], ProviderToMoney);
            }
            else
            {
                this.lblMsg.Text = "没有相关数据!";
                this.ExporPageInfoSelect1.Visible = false;
                this.ExporPageInfoSelect2.Visible = false;

                phHeJi.Visible = false;
            }
        }
Exemple #5
0
        /// <summary>
        /// 初始化列表
        /// </summary>
        void initList()
        {
            EyouSoft.Model.YlStructure.MHangQiChaXunInfo searchModel = new EyouSoft.Model.YlStructure.MHangQiChaXunInfo();
            searchModel.GysName      = Utils.GetQueryStringValue("gongyingshang");
            searchModel.GongSiName   = Utils.GetQueryStringValue("youlun");
            searchModel.XiLieName    = Utils.GetQueryStringValue("xilie");
            searchModel.ChuanZhiName = Utils.GetQueryStringValue("chuanzhi");
            searchModel.RiQi1        = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("riqi1"));
            searchModel.RiQi2        = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("riqi2"));
            searchModel.BianHao      = Utils.GetQueryStringValue("bianhao");
            searchModel.MingCheng    = Utils.GetQueryStringValue("mingcheng");
            searchModel.LeiXing      = Utils.GetEnumValue <EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing>(Utils.GetQueryStringValue("t"), EyouSoft.Model.EnumType.YlStructure.YouLunLeiXing.长江游轮);
            searchModel.XiLieId      = Utils.GetQueryStringValue("txtxilieid");
            pageIndex = UtilsCommons.GetPadingIndex();

            IList <EyouSoft.Model.YlStructure.MHangQiInfo> list = new EyouSoft.BLL.YlStructure.BHangQi().GetHangQis(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, searchModel);;

            if (list != null && list.Count > 0)
            {
                this.repList.DataSource = list;
                this.repList.DataBind();
                BindPage();
            }
            else
            {
                this.repList.EmptyText            = "<tr><td  align=\"center\" colspan=\"15\">暂无数据!</td></tr>";
                this.ExporPageInfoSelect1.Visible = false;
            }
        }
Exemple #6
0
        /// <summary>
        /// init rpt
        /// </summary>
        void InitRpt()
        {
            int recordCount = 0;

            pageIndex = UtilsCommons.GetPadingIndex();
            var chaXun = GetChaXunInfo();

            object[] heJi;

            var items = new EyouSoft.BLL.StatStructure.BYuSuanBiao().GetYuSuanBiaos(CurrentUserCompanyID, pageSize, pageIndex, ref recordCount, chaXun, out heJi);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();

                paging.UrlParams      = Request.QueryString;
                paging.intPageSize    = pageSize;
                paging.CurrencyPage   = pageIndex;
                paging.intRecordCount = recordCount;

                ltrShiShouRenShu.Text = heJi[0].ToString();
                ltrShouRuJinE.Text    = ((decimal)heJi[1]).ToString("F2");
                ltrZhiChuJinE.Text    = ((decimal)heJi[2]).ToString("F2");
                ltrMaoLi.Text         = ((decimal)heJi[1] - (decimal)heJi[2]).ToString("F2");
            }
            else
            {
                phEmpty.Visible = true;
                phHeJi.Visible  = false;
            }
        }
Exemple #7
0
        /// <summary>
        /// init repeater
        /// </summary>
        private void InitRpt()
        {
            pageIndex = UtilsCommons.GetPadingIndex();

            var chaXun = GetChaXunInfo();
            var items  = new EyouSoft.BLL.GysStructure.BGys().GetDiJieShes(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                rptList.DataSource = items;
                rptList.DataBind();

                this.ExporPageInfoSelect1.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                this.ExporPageInfoSelect1.UrlParams      = Request.QueryString;
                this.ExporPageInfoSelect1.intPageSize    = pageSize;
                this.ExporPageInfoSelect1.CurrencyPage   = pageIndex;
                this.ExporPageInfoSelect1.intRecordCount = recordCount;
            }
            else
            {
                this.lbMsg.Visible           = true;
                this.lbMsg.Text              = "<tr class=\"odd\"><td height=\"30px\" colspan=\"11\" align=\"center\">暂无数据!</td></tr>";
                ExporPageInfoSelect1.Visible = false;
            }
        }
Exemple #8
0
        /// <summary>
        /// more
        /// </summary>
        void More()
        {
            int pageSize    = 9;
            int pageIndex   = UtilsCommons.GetPadingIndex("index");
            int recordCount = 0;

            var chaXun = new EyouSoft.Model.YlStructure.MWzYuanGongFengCaiChaXunInfo();
            var items  = new EyouSoft.BLL.YlStructure.BWz().GetYuanGongFengCais(YuMingInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun);

            int pageCount = (int)Math.Ceiling((double)recordCount / (double)pageSize);

            if (pageIndex > pageCount)
            {
                Utils.RCWE(UtilsCommons.AjaxReturnJson("0", ""));
            }

            StringBuilder s = new StringBuilder();

            if (items != null && items.Count > 0)
            {
                foreach (var item in items)
                {
                    s.AppendFormat("<li><a href=\"javascript:void(0)\">");
                    s.AppendFormat("<img src=\"{0}\">", ErpFilepath + item.Filepath);
                    s.AppendFormat("<p>{0}</p>", item.MingCheng);
                    s.AppendFormat("</a></li>");
                }
            }

            Utils.RCWE(UtilsCommons.AjaxReturnJson("1", "", s.ToString()));
        }
Exemple #9
0
 /// <summary>
 /// 初始化
 /// </summary>
 private void DataInit()
 {
     //获取分页参数并强转
     pageIndex = UtilsCommons.GetPadingIndex();
     //绑定分页
     BindPage();
 }
Exemple #10
0
        void Rpt_List()
        {
            pageIndex = UtilsCommons.GetPadingIndex();

            var chaXun = new EyouSoft.Model.GysStructure.MXuanYongChaXunInfo();

            chaXun.CountryId    = Utils.GetIntNull(Utils.GetQueryStringValue("ddlCountry"));
            chaXun.ProvinceId   = Utils.GetIntNull(Utils.GetQueryStringValue("ddlProvice"));
            chaXun.CityId       = Utils.GetIntNull(Utils.GetQueryStringValue("ddlCity"));
            chaXun.DistrictId   = Utils.GetIntNull(Utils.GetQueryStringValue("ddlArea"));
            chaXun.JingDianName = Utils.GetQueryStringValue("textfield");

            var items = new EyouSoft.BLL.GysStructure.BGys().GetXuanYongJingDians(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                listCount = items.Count;
                rpt_ScenicList.DataSource = items;
                rpt_ScenicList.DataBind();

                ExporPageInfoSelect1.PageLinkURL    = ExporPageInfoSelect1.PageLinkURL = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                ExporPageInfoSelect1.UrlParams      = Request.QueryString;
                ExporPageInfoSelect1.intPageSize    = pageSize;
                ExporPageInfoSelect1.CurrencyPage   = pageIndex;
                ExporPageInfoSelect1.intRecordCount = recordCount;
            }
            else
            {
                litMsg.Text = "<tr class='old'><td colspan='11' align='center'>没有相关数据</td></tr>";
                ExporPageInfoSelect1.Visible = false;
            }
        }
Exemple #11
0
        /// <summary>
        /// init repeater
        /// </summary>
        void InitRpt()
        {
            int pageSize    = 48;
            int pageIndex   = UtilsCommons.GetPadingIndex();
            int recordCount = 0;

            var chaXun = new EyouSoft.Model.GysStructure.MXuanYongChaXunInfo();

            chaXun.GysName    = Utils.GetQueryStringValue("txtName");
            chaXun.GysLeiXing = (EyouSoft.Model.EnumType.SourceStructure.SourceType?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.SourceStructure.SourceType), Utils.GetQueryStringValue("txtLeiXing"));
            chaXun.ProvinceId = Utils.GetIntNull(Utils.GetQueryStringValue("txtProvinceId"));
            chaXun.CityId     = Utils.GetIntNull(Utils.GetQueryStringValue("txtCityId"));

            var items = new EyouSoft.BLL.GysStructure.BGys().GetXuanYongs(CurrentUserCompanyID, pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();
            }
            else
            {
            }

            paging.UrlParams      = Request.QueryString;
            paging.intPageSize    = pageSize;
            paging.CurrencyPage   = pageIndex;
            paging.intRecordCount = recordCount;

            paging.Visible = paging.intRecordCount > paging.intPageSize;
            //phEmpty.Visible = paging.intRecordCount == 0;
        }
Exemple #12
0
        /// <summary>
        /// 初始化
        /// </summary>
        void DataInit()
        {
            pageIndex = UtilsCommons.GetPadingIndex();
            decimal xmlSum     = 0;
            var     searchInfo = GetSearchInfo();
            var     items      = new EyouSoft.BLL.FinStructure.BFinance().GetDayReceivablesChkLst(pageSize, pageIndex, ref recordCount, ref xmlSum, null, false, this.SiteUserInfo.CompanyId, searchInfo);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();
            }
            BindPage();
        }
Exemple #13
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int pageSize    = 20;
            int pageIndex   = UtilsCommons.GetPadingIndex();
            int recordCount = 0;
            var chaXun      = new EyouSoft.Model.YlStructure.MWzZiXunChaXunInfo();

            chaXun.LeiXing = Utils.GetEnumValue <EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing>(Utils.GetQueryStringValue("t"), EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.长江游轮问题解答);

            if (chaXun.LeiXing == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.长江游轮问题解答 || chaXun.LeiXing == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.长江游轮攻略)
            {
                BangZhu1.LeiXing1 = EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.长江游轮问题解答;
                BangZhu1.LeiXing2 = EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.长江游轮攻略;
            }

            if (chaXun.LeiXing == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.海洋邮轮问题解答 || chaXun.LeiXing == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.海洋邮轮攻略)
            {
                BangZhu1.LeiXing1 = EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.海洋邮轮问题解答;
                BangZhu1.LeiXing2 = EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.海洋邮轮攻略;
            }

            string title = chaXun.LeiXing.Value.ToString();

            if (chaXun.LeiXing == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.长江游轮问题解答 || chaXun.LeiXing == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.海洋邮轮问题解答)
            {
                title = "问题解答";
            }

            if (chaXun.LeiXing == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.长江游轮攻略)
            {
                title = "游轮攻略";
            }

            if (chaXun.LeiXing == EyouSoft.Model.EnumType.YlStructure.WzZiXunLeiXing.海洋邮轮攻略)
            {
                title = "邮轮攻略";
            }

            Title     = title;
            ltr0.Text = title;

            var items = new EyouSoft.BLL.YlStructure.BWz().GetZiXuns(YuMingInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();
                RegisterScript(string.Format("pConfig.pageSize={0};pConfig.pageIndex={1};pConfig.recordCount={2};", pageSize, pageIndex, recordCount));
            }
        }
Exemple #14
0
        /// <summary>
        /// 初始化
        /// </summary>
        void DataInit()
        {
            pageIndex = UtilsCommons.GetPadingIndex();

            var items = new EyouSoft.BLL.CrmStructure.BCrm().GetCrmsPersonal(CurrentUserCompanyID, pageSize, pageIndex, ref recordCount, GetSearchInfo());

            if (items != null && items.Count > 0)
            {
                rptList.DataSource = items;
                rptList.DataBind();
            }

            BindPage();
        }
Exemple #15
0
        protected void PageInit()
        {
            //部门编号
            int?DepartId = Utils.GetIntNull(Utils.GetQueryStringValue("departId"));
            //操作员
            string Operator = Utils.GetQueryStringValue("operator");
            //操作开始时间
            string BeginDate = Utils.GetQueryStringValue("txtBeginDate");
            //操作结束时间
            string EndDate = Utils.GetQueryStringValue("txtEndDate");

            //当前页
            pageIndex = UtilsCommons.GetPadingIndex();
            IList <EyouSoft.Model.ComStructure.MComDepartment> list1 = new EyouSoft.BLL.ComStructure.BComDepartment().GetList(SiteUserInfo.CompanyId);

            this.ddlDepart.DataTextField  = "DepartName";
            this.ddlDepart.DataValueField = "DepartId";
            this.ddlDepart.DataSource     = list1;
            this.ddlDepart.DataBind();
            this.ddlDepart.Items.Insert(0, new ListItem("请选择", "0"));
            IList <EyouSoft.Model.SysStructure.MSysLogHandleInfo> list = null;

            EyouSoft.Model.SysStructure.MSysLogHandleSearch search = new EyouSoft.Model.SysStructure.MSysLogHandleSearch();
            search.DeptId   = DepartId == 0 ? null : DepartId;
            search.Operator = Operator;
            if (BeginDate != "")
            {
                search.SDate = Utils.GetDateTime(BeginDate);
            }
            if (EndDate != "")
            {
                search.EDate = Utils.GetDateTime(EndDate);
            }
            list = new EyouSoft.BLL.SysStructure.BSysLogHandle().GetLogs(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, search);
            this.ddlDepart.SelectedValue = DepartId.ToString();
            this.txtOperator.Value       = Operator;
            this.txtBeginDate.Value      = BeginDate;
            this.txtEndDate.Value        = EndDate;
            if (list != null && list.Count > 0)
            {
                this.repList.DataSource = list;
                this.repList.DataBind();
                BindPage();
            }
            else
            {
                this.repList.EmptyText = "<tr><td colspan=\"6\" align=\"center\">未找到相关记录!</td></tr>";
            }
        }
        /// <summary>
        /// 初始化
        /// </summary>
        void DataInit()
        {
            pageIndex = UtilsCommons.GetPadingIndex();

            var searchInfo = GetSearchInfo();
            var items      = new EyouSoft.BLL.TourStructure.BTourOrder().GetXiaoShouShouKuanList(pageSize, pageIndex, ref recordCount, searchInfo);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();
            }

            BindPage();
        }
Exemple #17
0
        void InitHQ()
        {
            var chaXun    = GetChaXunInfo();
            int pageSize  = 6;
            int pageIndex = UtilsCommons.GetPadingIndex();

            var items = new EyouSoft.BLL.YlStructure.BHangQi().GetHangQis(YuMingInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                rptHQ.DataSource = items;
                rptHQ.DataBind();
            }

            RegisterScript(string.Format("pConfig.pageSize={0};pConfig.pageIndex={1};pConfig.recordCount={2};", pageSize, pageIndex, recordCount));
        }
Exemple #18
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            //获取分页参数并强转
            pageIndex = UtilsCommons.GetPadingIndex();

            string quoteId = Utils.GetQueryStringValue("quoteId");
            string tourId  = Utils.GetQueryStringValue("tourId");

            if (quoteId != "")
            {
                EyouSoft.BLL.TourStructure.BQuote           bll   = new EyouSoft.BLL.TourStructure.BQuote();
                EyouSoft.Model.TourStructure.MTourQuoteInfo model = bll.GetQuoteInfo(quoteId);
                if (model != null)
                {
                    if (model.VisaFileList != null && model.VisaFileList.Count > 0)
                    {
                        this.rptList.DataSource = model.VisaFileList;
                        this.rptList.DataBind();
                    }
                }

                this.ExporPageInfoSelect1.Visible = false;
            }

            if (tourId != "")
            {
                IList <EyouSoft.Model.ComStructure.MComAttach> visaFileList = new EyouSoft.BLL.TourStructure.BTour().GetVisaFileList(tourId, pageSize, pageIndex, ref recordCount);
                if (visaFileList != null && visaFileList.Count > 0)
                {
                    this.rptList.DataSource = visaFileList;
                    this.rptList.DataBind();
                    BindPage();
                    if (visaFileList.Count <= 10)
                    {
                        //绑定分页
                        this.ExporPageInfoSelect1.Visible = false;
                    }
                }
                else
                {
                    this.ExporPageInfoSelect1.Visible = false;
                }
            }
        }
        /// <summary>
        /// 初始化
        /// </summary>
        void DataInit()
        {
            pageIndex = UtilsCommons.GetPadingIndex();

            var chaXun = GetChaXunInfo();
            IList<EyouSoft.Model.TourStructure.MBZInfo> list = new EyouSoft.BLL.TourStructure.BTour().GetPlanBZList(this.SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun, this.SiteUserInfo.DeptId);
            if (list != null && list.Count > 0)
            {
                this.replist.DataSource = list;
                this.replist.DataBind();
                BindPage();
            }
            else
            {
                this.lab_text.Text = "对不起,没有相关数据!";
                this.ExporPageInfoSelect1.Visible = false;
                this.ExporPageInfoSelect2.Visible = false;
            }
        }
Exemple #20
0
        /// <summary>
        /// init rpt
        /// </summary>
        void InitRpt()
        {
            var chaXun      = GetChaXunInfo();
            int pageSize    = 40;
            int pageIndex   = UtilsCommons.GetPadingIndex();
            int recordCount = 0;
            var items       = new EyouSoft.BLL.YlStructure.BHangQi().GetHangQis(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();

                paging.UrlParams      = Request.QueryString;
                paging.intPageSize    = pageSize;
                paging.CurrencyPage   = pageIndex;
                paging.intRecordCount = recordCount;
            }
        }
Exemple #21
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            pageIndex    = UtilsCommons.GetPadingIndex();
            PringPageJSD = new EyouSoft.BLL.ComStructure.BComSetting().GetPrintUri(SiteUserInfo.CompanyId, EyouSoft.Model.EnumType.ComStructure.PrintTemplateType.结算单);

            #region 查询实体
            MChaXianShenPiChaXunInfo queryModel = new MChaXianShenPiChaXunInfo();
            //线路名称
            queryModel.RouteName = Utils.InputText(Utils.GetQueryStringValue("txt_lineName"));
            //申请人
            queryModel.ShenQingRenId   = SellsSelect1.SellsID = Utils.GetQueryStringValue(SellsSelect1.SellsIDClient);
            queryModel.ShenQingRenName = SellsSelect1.SellsName = Utils.GetQueryStringValue(SellsSelect1.SellsNameClient);
            queryModel.CompanyId       = CurrentUserCompanyID;
            queryModel.CrmName         = Utils.GetQueryStringValue(CustomerUnitSelect1.ClientNameKHMC);
            queryModel.CrmId           = Utils.GetQueryStringValue(CustomerUnitSelect1.ClientNameKHBH);
            queryModel.SShenQingTime   = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("ApplyTimeS"));
            queryModel.EShenQingTime   = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("ApplyTimeE"));
            queryModel.Status          = (EyouSoft.Model.EnumType.FinStructure.TransfiniteStatus?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.FinStructure.TransfiniteStatus), Utils.GetQueryStringValue("txtStatus"));

            queryModel.ShenPiRenId   = this.txtShenPiRen.SellsID = Utils.GetQueryStringValue(txtShenPiRen.SellsIDClient);
            queryModel.ShenPiRenName = this.txtShenPiRen.SellsName = Utils.GetQueryStringValue(txtShenPiRen.SellsNameClient);
            queryModel.ShenPiSTime   = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtShenPiSTime"));
            queryModel.ShenPiETime   = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtShenPiETime"));

            #endregion

            SellsSelect1.SetTitle         = "选用 申请人";
            CustomerUnitSelect1.ThisTitle = "客户单位";
            IList <MTransfinite> ls = new BFinance().GetTransfiniteLst(
                pageSize,
                pageIndex,
                ref recordCount,
                queryModel);
            if (ls != null && ls.Count > 0)
            {
                pan_msg.Visible     = false;
                rpt_list.DataSource = ls;
                rpt_list.DataBind();
                //绑定分页
                BindPage();
            }
        }
Exemple #22
0
        /// <summary>
        /// 初始化列表
        /// </summary>
        protected void PageInit()
        {
            EyouSoft.Model.YlStructure.MXiLieChaXunInfo searCh = new EyouSoft.Model.YlStructure.MXiLieChaXunInfo();
            searCh.GongSiMingCheng = Utils.GetQueryStringValue("name");
            searCh.XiLieMingCheng  = Utils.GetQueryStringValue("xilie");
            pageIndex = UtilsCommons.GetPadingIndex();
            IList <EyouSoft.Model.YlStructure.MXiLieInfo> list = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetXiLies(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, searCh);;

            if (list != null && list.Count > 0)
            {
                this.repList.DataSource = list;
                this.repList.DataBind();
                BindPage();
            }
            else
            {
                this.repList.EmptyText            = "<tr><td  align=\"center\" colspan=\"6\">暂无数据!</td></tr>";
                this.ExporPageInfoSelect1.Visible = false;
            }
        }
Exemple #23
0
        void initPage()
        {
            int recordCount = 0;

            pageIndex = UtilsCommons.GetPadingIndex();
            var list = new EyouSoft.BLL.YlStructure.BHuiYuan().GetDianPings(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, new EyouSoft.Model.YlStructure.MWzDianPingChaXunInfo()
            {
            });

            if (list != null && list.Count > 0)
            {
                rptlist.DataSource = list;
                rptlist.DataBind();
                phEmpty.Visible       = false;
                paging.UrlParams      = Request.QueryString;
                paging.intPageSize    = pageSize;
                paging.CurrencyPage   = pageIndex;
                paging.intRecordCount = recordCount;
            }
        }
Exemple #24
0
        void InitRpt()
        {
            int pageSize    = 12;
            int pageIndex   = UtilsCommons.GetPadingIndex();
            int recordCount = 0;

            var chaXun = new EyouSoft.Model.YlStructure.MGongSiChaXunInfo();

            chaXun.GongSiLeiXing = LeiXing;

            var items = new EyouSoft.BLL.YlStructure.BJiChuXinXi().GetGongSis(YuMingInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();

                RegisterScript(string.Format("pConfig.pageSize={0};pConfig.pageIndex={1};pConfig.recordCount={2};", pageSize, pageIndex, recordCount));
            }
        }
Exemple #25
0
        /// <summary>
        /// 初始化
        /// </summary>
        void DataInit()
        {
            pageIndex = UtilsCommons.GetPadingIndex();

            EyouSoft.Model.EnumType.CrmStructure.CrmType crmType = EyouSoft.Model.EnumType.CrmStructure.CrmType.行客户;
            if (Menu2Type == Menu2.客户管理_单位直客)
            {
                crmType = EyouSoft.Model.EnumType.CrmStructure.CrmType.单位直客;
            }

            var items = new EyouSoft.BLL.CrmStructure.BCrm().GetCrms(CurrentUserCompanyID, pageSize, pageIndex, ref recordCount, crmType, GetSearchInfo());

            if (items != null && items.Count > 0)
            {
                rptList.DataSource = items;
                rptList.DataBind();
            }

            BindPage();
        }
Exemple #26
0
        /// <summary>
        /// 初始化
        /// </summary>
        void InitRpt()
        {
            pageIndex = UtilsCommons.GetPadingIndex();
            var chaXun = GetChaXunInfo();

            object[] heJi;
            var      items = new EyouSoft.BLL.GysStructure.BGys().GetJiaoYiMingXis(SiteUserInfo.CompanyId, GysId, pageSize, pageIndex, ref recordCount, chaXun, out heJi);

            if (items != null && items.Count > 0)
            {
                rptList.DataSource = items;
                rptList.DataBind();

                if (items[0].AnPaiLeiXing == EyouSoft.Model.EnumType.PlanStructure.PlanProject.国内游轮 || items[0].AnPaiLeiXing == EyouSoft.Model.EnumType.PlanStructure.PlanProject.涉外游轮)
                {
                    ltrShuLiangHeJi.Text = ((decimal)heJi[1]).ToString("F2");
                }
                else
                {
                    ltrShuLiangHeJi.Text = heJi[0].ToString();
                }
                ltrJinEHeJi.Text         = UtilsCommons.GetMoneyString(heJi[2], ProviderToMoney);
                ltrWeiZhiFuJinEHeJi.Text = UtilsCommons.GetMoneyString((decimal)heJi[2] - (decimal)heJi[3], ProviderToMoney);

                phEmpty.Visible = false;
                phHeJi.Visible  = true;

                paging.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                paging.UrlParams      = Request.QueryString;
                paging.intPageSize    = pageSize;
                paging.CurrencyPage   = pageIndex;
                paging.intRecordCount = recordCount;
            }
            else
            {
                paging.Visible  = false;
                phEmpty.Visible = true;
                phHeJi.Visible  = false;
            }
        }
Exemple #27
0
        /// <summary>
        /// init repeater
        /// </summary>
        void InitRpt()
        {
            string gysLeiXing = Utils.GetQueryStringValue("type");
            var    chaXun     = GetChaXunInfo();

            pageIndex = UtilsCommons.GetPadingIndex();
            var items = new EyouSoft.BLL.GysStructure.BGys().GetXuanYongs(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                listCount          = items.Count;
                RepList.DataSource = items;
                RepList.DataBind();

                BindPage(Utils.GetQueryStringValue("urltype"));
            }
            else
            {
                NodataMsg = "<tr class='old'><td colspan='11' align='center'>没有相关数据</td></tr>";
                ExporPageInfoSelect1.Visible = false;
            }
        }
Exemple #28
0
        /// <summary>
        /// init repeater
        /// </summary>
        void InitRpt()
        {
            pageIndex = UtilsCommons.GetPadingIndex();
            var chaXun = GetChaXunInfo();
            var items  = new EyouSoft.BLL.GysStructure.BGys().GetQiTas(SiteUserInfo.CompanyId, pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                rptList.DataSource = items;
                rptList.DataBind();

                this.ExporPageInfoSelect2.PageLinkURL    = Request.ServerVariables["SCRIPT_NAME"].ToString() + "?";
                this.ExporPageInfoSelect2.UrlParams      = Request.QueryString;
                this.ExporPageInfoSelect2.intPageSize    = pageSize;
                this.ExporPageInfoSelect2.CurrencyPage   = pageIndex;
                this.ExporPageInfoSelect2.intRecordCount = recordCount;
            }
            else
            {
                NodataMsg = "<tr class='old'><td colspan='10' align='center'>没有相关数据</td></tr>";
                ExporPageInfoSelect2.Visible = false;
            }
        }
Exemple #29
0
        /// <summary>
        /// init rpt
        /// </summary>
        void InitRpt()
        {
            int recordCount = 0;
            var chaXun      = GetChaXunInfo();

            pageIndex = UtilsCommons.GetPadingIndex();
            var items = new EyouSoft.BLL.YlStructure.BWz().GetWZYiJianFanKui(pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();

                paging.UrlParams      = Request.QueryString;
                paging.intPageSize    = pageSize;
                paging.CurrencyPage   = pageIndex;
                paging.intRecordCount = recordCount;
            }
            else
            {
                phEmpty.Visible = true;
            }
        }
Exemple #30
0
        /// <summary>
        /// init repeater
        /// </summary>
        void InitRpt()
        {
            int pageSize    = 20;
            int recordCount = 0;
            int pageIndex   = UtilsCommons.GetPadingIndex();

            var chaXun = GetChaXunInfo();

            var items = new EyouSoft.BLL.FinStructure.BDaiShou().GetDaiShous(CurrentUserCompanyID, pageSize, pageIndex, ref recordCount, chaXun);

            if (items != null && items.Count > 0)
            {
                rpt.DataSource = items;
                rpt.DataBind();
            }

            paging.UrlParams      = Request.QueryString;
            paging.intPageSize    = pageSize;
            paging.CurrencyPage   = pageIndex;
            paging.intRecordCount = recordCount;

            paging.Visible  = paging.intRecordCount > paging.intPageSize;
            phEmpty.Visible = paging.intRecordCount == 0;
        }