Пример #1
0
        /// <summary>
        /// 通过查询参数返回查询实体
        /// </summary>
        /// <returns>查询实体</returns>
        private Model.StatStructure.MDepartmentSearch GetSearchModel()
        {
            var search = new Model.StatStructure.MDepartmentSearch
            {
                LDateS      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("LeaveDateS")),
                LDateE      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("LeaveDateE")),
                SReviewTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("CheckDateS")),
                EReviewTime = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("CheckDateE")),
                DeptId      = Utils.GetInt(Utils.GetQueryStringValue("DepartId"))
            };

            return(search);
        }
Пример #2
0
        /// <summary>
        /// 通过查询参数返回查询实体
        /// </summary>
        /// <returns>查询实体</returns>
        private Model.StatStructure.MDepartmentSearch GetSearchModel()
        {
            var search = new Model.StatStructure.MDepartmentSearch
            {
                LDateS      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("LeaveDateS")),
                LDateE      = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("LeaveDateE")),
                SReviewTime = Utils.GetDateTime(Utils.GetQueryStringValue("CheckDateS"), Utils.GetFristDayOfMonth()),
                EReviewTime = Utils.GetDateTime(Utils.GetQueryStringValue("CheckDateE"), Utils.GetLastDayOfMonth())
            };

            int    departId   = Utils.GetInt(Utils.GetQueryStringValue(SelectSection1.SelectIDClient));
            string departName = Utils.GetQueryStringValue(SelectSection1.SelectNameClient);

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

            search.DeptId = departId;

            return(search);
        }