コード例 #1
0
        public frmDepartmentBalance()
        {
            InitializeComponent();

            this._systemAccountDetailBL = MasterBLLFactory.GetBLL<ISystemAccountDetailBL>(MasterBLLFactory.SystemAccountDetail);

            this._info = new DepartmentBalance_dtb_Info();

            this.lblHotWaterIncome.Text = "0.00";
            this.lblOrtherIncome.Text = "0.00";
            this.nbxHotIncome.Text = this.lblHotWaterIncome.Text;
            this.nbxOrtherIncome.Text = this.lblHotWaterIncome.Text;
        }
コード例 #2
0
        public DepartmentBalance_dtb_Info DepartmentBalance(DepartmentBalance_dtb_Info query)
        {
            if (query != null)
            {
                try
                {
                    //定餐部收入
                    query.dtb_iSetmealIncome = BookDepartmentIncome(query.startDate.Value, query.endDate.Value);

                    //加菜机收入
                    query.dtb_iStudentPlusIncome = this._IConsumeRecordDA.CanteenPlusIncome(query.startDate.Value, query.endDate.Value);

                    //发卡部收入
                    query.dtb_iCardDepartmentIncome = CardDepartmentIncome(query.startDate.Value, query.endDate.Value);

                    //教师用餐收入
                    query.dtb_iTeacherSetmealIncome = TeacherPayment(query.startDate.Value, query.endDate.Value);

                    //热水部收入
                    query.dtb_iHotWaterIncome = GetHotIncome(query.startDate.Value, query.endDate.Value);

                    //其他收入
                    query.dtb_iOtherIncome = GetOrtherIncome(query.startDate.Value, query.endDate.Value);

                    //医务室收入
                    query.dtb_iMedicalIncome = this._IConsumeRecordDA.MedicalIncome(query.startDate.Value, query.endDate.Value);

                    //定餐部支出
                    query.dtb_iSetmealPay = this._IPayRecordDA.PaymentCount(query.startDate.Value, query.endDate.Value);

                    query.dtb_fUnpayPreCost = TotalUnPayPreCost(query.startDate.Value, query.endDate.Value);
                }
                catch (Exception Ex)
                {

                    throw Ex;
                }
            }

            return query;
        }
コード例 #3
0
        private void btnQuery_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            try
            {
                this._info.startDate = this.rspSearch.RSP_TimeFrom;

                this._info.endDate = this.rspSearch.RSP_TimeTo;

                this._info = this._systemAccountDetailBL.DepartmentBalance(this._info);

                List<DepartmentBalance_dtb_Info> source = new List<DepartmentBalance_dtb_Info>();

                if (_info != null)
                {
                    source.Add(this._info);

                    ShowReport(source);
                }
                else
                {
                    ShowWarningMessage("找不到符合条件的记录。");
                }
            }
            catch (Exception)
            {
                ShowWarningMessage("查询失败,请重试。");
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }