Beispiel #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        private void DataInit(string tourNum, string orderCode, string customerName, string salesMan)
        {
            //获取分页参数并强转
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("page"));

            EyouSoft.Model.FinStructure.MReceivableBase seachModel = new EyouSoft.Model.FinStructure.MReceivableBase();
            seachModel.CompanyId = SiteUserInfo.CompanyId;
            seachModel.Customer  = customerName;
            //seachModel.TourCode = tourNum;
            //seachModel.OrderCode = orderCode;
            //seachModel.Salesman = salesMan;
            //IList<EyouSoft.Model.FinStructure.MReceivableInfo> list = new EyouSoft.BLL.FinStructure.BFinance().GetReceivableInfoLst(pageSize, pageIndex, ref recordCount, false, false, seachModel);
            //if (list != null && list.Count > 0)
            //{
            //    this.rptList.DataSource = list;
            //    this.rptList.DataBind();
            //}
            //else {
            //    this.lblMsg.Text = "没有相关数据!";
            //    this.ExporPageInfoSelect1.Visible = false;
            //    this.ExporPageInfoSelect2.Visible = false;
            //}

            //绑定分页
            BindPage();
        }
        /// <summary>
        /// 获取查询参数
        /// </summary>
        /// <returns></returns>
        EyouSoft.Model.FinStructure.MReceivableBase GetSearchInfo()
        {
            var shouKuanStatus = Utils.GetQueryStringValue("txtShouKuanStatus");

            var info = new EyouSoft.Model.FinStructure.MReceivableBase();

            info.CompanyId    = CurrentUserCompanyID;
            info.Customer     = Utils.GetQueryStringValue(txtKeHuDanWei.ClientNameKHMC);
            info.CustomerId   = Utils.GetQueryStringValue(txtKeHuDanWei.ClientNameKHBH);
            info.OrderCode    = Utils.GetQueryStringValue("txtOrderCode");
            info.Salesman     = Utils.GetQueryStringValue(txtXiaoShouYuan.SellsNameClient);
            info.SalesmanId   = Utils.GetQueryStringValue(txtXiaoShouYuan.SellsIDClient);
            info.OperatorId   = Utils.GetQueryStringValue(txtXiaDanRen.SellsIDClient);
            info.OperatorName = Utils.GetQueryStringValue(txtXiaDanRen.SellsNameClient);

            if (shouKuanStatus == "1")
            {
                info.IsClean = true;
            }
            else if (shouKuanStatus == "0")
            {
                info.IsClean = false;
            }

            info.UnReceived     = Utils.GetDecimalNull(Utils.GetQueryStringValue(txtQianKuan.ClientUniqueIDOperatorNumber));
            info.SignUnReceived = (EyouSoft.Model.EnumType.FinStructure.EqualSign?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.FinStructure.EqualSign), Utils.GetQueryStringValue(txtQianKuan.ClientUniqueIDOperator));

            info.UnChecked     = Utils.GetDecimalNull(Utils.GetQueryStringValue(txtYiShouDaiShen.ClientUniqueIDOperatorNumber));
            info.SignUnChecked = (EyouSoft.Model.EnumType.FinStructure.EqualSign?)Utils.GetEnumValueNull(typeof(EyouSoft.Model.EnumType.FinStructure.EqualSign), Utils.GetQueryStringValue(txtYiShouDaiShen.ClientUniqueIDOperator));

            info.SLDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtLSDate"));
            info.LLDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtLEDate"));

            if (Utils.GetQueryStringValue("txtHeTongJinEQueRenStatus") == "1")
            {
                info.HeTongJinEQueRenStatus = true;
            }
            if (Utils.GetQueryStringValue("txtHeTongJinEQueRenStatus") == "0")
            {
                info.HeTongJinEQueRenStatus = false;
            }
            info.ShouKuanRenId   = Utils.GetQueryStringValue(txtShouKuanRen.SellsIDClient);
            info.ShluKuanRenName = Utils.GetQueryStringValue(txtShouKuanRen.SellsNameClient);

            info.ShouKuanSTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtShouKuanSTime"));
            info.ShouKuanETime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("txtShouKuanETime"));

            info.RouteName      = Utils.GetQueryStringValue("txtRouteName");
            info.JiDiaoYuanId   = txtJiDiaoYuan.SellsID = Utils.GetQueryStringValue(txtJiDiaoYuan.SellsIDClient);
            info.JiDiaoYuanName = txtJiDiaoYuan.SellsName = Utils.GetQueryStringValue(txtJiDiaoYuan.SellsNameClient);

            return(info);
        }
        /// <summary>
        /// 绑定控件
        /// </summary>
        private void PageInit()
        {
            pageIndex = Utils.GetInt(Utils.GetQueryStringValue("Page"), 1);

            EyouSoft.Model.FinStructure.MReceivableBase search = new EyouSoft.Model.FinStructure.MReceivableBase();
            search.CompanyId  = SiteUserInfo.CompanyId;
            search.CustomerId = SiteUserInfo.TourCompanyInfo.CompanyId;
            search.Customer   = SiteUserInfo.TourCompanyInfo.CompanyName;
            //search.SalesmanId = SiteUserInfo.UserId;
            search.IsShowDistribution = true;

            search.OrderCode = Utils.GetQueryStringValue("txtOrderCode");
            search.RouteName = Utils.GetQueryStringValue("txtRouteName");

            string jieQingStatus = Utils.GetQueryStringValue("ddlIsClean");

            if (jieQingStatus == "1")
            {
                search.IsClean = true;
            }
            else if (jieQingStatus == "0")
            {
                search.IsClean = false;
            }

            //统计实体
            EyouSoft.Model.FinStructure.MReceivableSum mSum = new EyouSoft.Model.FinStructure.MReceivableSum();

            EyouSoft.BLL.FinStructure.BFinance bFinance = new EyouSoft.BLL.FinStructure.BFinance();
            IList <EyouSoft.Model.FinStructure.MReceivableInfo> list = bFinance.GetReceivableInfoLst(pageSize, pageIndex, ref recordCount, ref mSum, search);

            this.RpFinancial.DataSource = list;
            this.RpFinancial.DataBind();

            //合计
            this.LtTotalReceived.Text   = EyouSoft.Common.UtilsCommons.GetMoneyString(mSum.TotalReceived, this.ProviderToMoney);
            this.LtTotalSumPrice.Text   = EyouSoft.Common.UtilsCommons.GetMoneyString(mSum.TotalSumPrice, this.ProviderToMoney);
            this.LtTotalUnReceived.Text = EyouSoft.Common.UtilsCommons.GetMoneyString(mSum.TotalUnReceived, this.ProviderToMoney);


            BindPage();
        }
Beispiel #4
0
        /// <summary>
        /// 销售中心销售收款列表
        /// </summary>
        /// <param name="pageSize">每页显示的条数</param>
        /// <param name="pageIndex">当前页</param>
        /// <param name="recordCount">总记录数</param>
        /// <param name="mSearch">查询条件实体类</param>
        /// <returns></returns>
        public IList <EyouSoft.Model.FinStructure.MReceivableInfo> GetXiaoShouShouKuanList(int pageSize
                                                                                           , int pageIndex
                                                                                           , ref int recordCount
                                                                                           , EyouSoft.Model.FinStructure.MReceivableBase mSearch)
        {
            EyouSoft.IDAL.FinStructure.IFinance _dal = EyouSoft.Component.Factory.ComponentFactory.CreateDAL <EyouSoft.IDAL.FinStructure.IFinance>();
            bool _isOnlySelf;

            if (mSearch == null || string.IsNullOrEmpty(mSearch.CompanyId))
            {
                throw new System.Exception("bll error:查询实体为null或string.IsNullOrEmpty(查询实体.CompanyId)==true。");
            }

            if (mSearch == null || string.IsNullOrEmpty(mSearch.CompanyId) || pageSize <= 0 || pageIndex <= 0)
            {
                return(null);
            }
            string xmlSum = string.Empty;//统计字段,这里不用统计

            return(_dal.GetReceivableInfoLst(pageSize, pageIndex, ref recordCount, ref xmlSum, mSearch, this.LoginUserId, this.GetDataPrivs(EyouSoft.Model.EnumType.PrivsStructure.Menu2.销售中心_销售收款, out _isOnlySelf)));
        }