Пример #1
0
        /// <summary>
        /// 通过查询参数返回查询实体
        /// </summary>
        /// <returns>查询实体</returns>
        private Model.StatStructure.MReconciliationSearch GetSearchModel()
        {
            var search = new Model.StatStructure.MReconciliationSearch
            {
                LDateS     = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("LeaveDateS")),
                LDateE     = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("LeaveDateE")),
                RestAmount = Utils.GetDecimalNull(Utils.GetQueryStringValue(CaiWuShaiXuan1.ClientUniqueIDOperatorNumber))
            };

            search.EqualSign = (Model.EnumType.FinStructure.EqualSign?)Utils.GetEnumValueNull(typeof(Model.EnumType.FinStructure.EqualSign), Utils.GetQueryStringValue(CaiWuShaiXuan1.ClientUniqueIDOperator));

            //销售员
            string sellerId   = Utils.GetQueryStringValue(SellsSelect1.SellsIDClient);
            string sellerName = Utils.GetQueryStringValue(SellsSelect1.SellsNameClient);

            this.SellsSelect1.SellsID   = sellerId;
            this.SellsSelect1.SellsName = sellerName;
            int    departId   = Utils.GetInt(Utils.GetQueryStringValue(SelectSection1.SelectIDClient));
            string departName = Utils.GetQueryStringValue(SelectSection1.SelectNameClient);

            SelectSection1.SectionID   = departId.ToString();
            SelectSection1.SectionName = departName;

            search.DeptId     = departId;
            search.SellerId   = sellerId;
            search.SellerName = sellerName;

            return(search);
        }
Пример #2
0
        /// <summary>
        /// 通过查询参数返回查询实体
        /// </summary>
        /// <returns>查询实体</returns>
        private Model.StatStructure.MReconciliationSearch GetSearchModel()
        {
            var search = new Model.StatStructure.MReconciliationSearch
            {
                LDateS     = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("LeaveDateS")),
                LDateE     = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("LeaveDateE")),
                RestAmount = Utils.GetDecimalNull(Utils.GetQueryStringValue("Money")),
                SellerId   = Utils.GetQueryStringValue("sellerId"),
                DeptId     = Utils.GetInt(Utils.GetQueryStringValue("DepartId"))
            };

            search.EqualSign = (Model.EnumType.FinStructure.EqualSign?)Utils.GetEnumValueNull(typeof(Model.EnumType.FinStructure.EqualSign), Utils.GetQueryStringValue("Calculation"));

            return(search);
        }