/// <summary> /// 初使化 /// </summary> private void DataInit() { //初使化条件 pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"), 1); //获取查询省份 province = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetQueryStringValue("province")); //获取查询城市 city = EyouSoft.Common.Utils.GetInt(EyouSoft.Common.Utils.GetQueryStringValue("city")); //获取查询名称 unionName = EyouSoft.Common.Utils.GetQueryStringValue("unionName"); //初始化List IList <EyouSoft.Model.CompanyStructure.CompanySupplier> list = null; //分页获取数据 list = csBll.GetList(pageSize, pageIndex, ref recordCount, EyouSoft.Model.EnumType.CompanyStructure.SupplierType.地接, province, city, unionName, this.CurrentUserCompanyID); //获取记录条数 len = list.Count; //绑定数据 this.rptList.DataSource = list; this.rptList.DataBind(); //设置分页 BindPage(); EyouSoft.Model.CompanyStructure.MSupplierSearchInfo searchModel = new EyouSoft.Model.CompanyStructure.MSupplierSearchInfo(); if (city != 0) { searchModel.CityId = city; } if (province != 0) { searchModel.ProvinceId = province; } searchModel.Name = unionName; this.lblAllCount.Text = new EyouSoft.BLL.CompanyStructure.CompanySupplier().GetTimesGYSSummary(SiteUserInfo.CompanyID, EyouSoft.Model.EnumType.CompanyStructure.SupplierType.地接, searchModel).ToString(); this.ucProvince1.ProvinceId = province; this.ucCity1.CityId = city; this.ucCity1.ProvinceId = province; }
/// <summary> /// 获取供应商列表交易次数合计 /// </summary> /// <param name="companyId">公司编号(专线)</param> /// <param name="type">供应商类型</param> /// <param name="searchInfo">查询信息</param> /// <returns></returns> public int GetTimesGYSSummary(int companyId, EyouSoft.Model.EnumType.CompanyStructure.SupplierType type, EyouSoft.Model.CompanyStructure.MSupplierSearchInfo searchInfo) { if (companyId < 1) { return(0); } return(Dal.GetTimesGYSSummary(companyId, type, searchInfo)); }