Пример #1
0
        private void btnQuery_Click(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                List<DeductionBalance_Info> _objList = new List<DeductionBalance_Info>();

                DeductionBalance_Info dbInfo = new DeductionBalance_Info();

                DateTime StartTime = this.rspSearch.RSP_TimeFrom;
                DateTime EndTime = this.rspSearch.RSP_TimeTo;

                if (!String.IsNullOrEmpty(this.rspSearch.RSP_StudentID))
                {
                    dbInfo.StudentID = this.rspSearch.RSP_StudentID;
                }

                if (!String.IsNullOrEmpty(this.rspSearch.RSP_ChaName))
                {
                    dbInfo.ChaName = this.rspSearch.RSP_ChaName;
                }

                if (this.rspSearch.RSP_CardID > 0)
                {
                    dbInfo.CardNo = this.rspSearch.RSP_CardID;
                }

                if (this.rspSearch.RSP_ClassID != Guid.Empty)
                {
                    dbInfo.ClassID = this.rspSearch.RSP_ClassID;
                }

                dbInfo.FromTime = StartTime;
                dbInfo.ToTime = EndTime.AddDays(1);

                _objList = _idbBL.SearchRecords(dbInfo);

                if (_objList != null && _objList.Count > 0)
                {
                    _objList = _objList.OrderBy(p => p.ucp_iCardNo).OrderBy(p => p.csm_cClassName).ToList();

                    ShowReport(_objList);
                }
                else
                {
                    ShowWarningMessage("找不到符合条件的记录。");
                }

            }
            catch
            {

            }

            this.Cursor = Cursors.Default;
        }
Пример #2
0
 public Model.General.ReturnValueInfo UpdateRecord(DeductionBalance_Info infoObject)
 {
     throw new NotImplementedException();
 }