Пример #1
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();
            }
        }
Пример #2
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit()
        {
            //获取分页参数并强转
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"), 1);
            #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"));
            #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();
            }
            ExporPageInfoSelect1.Visible = ls != null && ls.Count > 0 && recordCount > pageSize;


            //绑定分页
            BindPage();
        }