Beispiel #1
0
        protected override void OnOK()
        {
            if (this.condition == null)
            {
                this.condition = new ConditionPropertyDebt();
            }

            this.condition.EndDate   = this.dateEditEndDate.DateTime;
            this.condition.StartDate = this.dateEditStartDate.DateTime;
        }
        public XRPropertyDebt(ConditionPropertyDebt condition)
        {
            InitializeComponent();
            this.xrLabelCompanyInfoName.Text = BL.Settings.CompanyChineseName;
            this.xrLabelDataName.Text        = "Assets and liabilities";
            IList <Model.AtPropertyDebt> list = detailManager.Select(condition.StartDate, condition.EndDate);

            this.xrLabel1.Text = "Date range£º" + DateTime.Now.ToShortDateString();
            this.xrLabel2.Text = "Print date£º" + condition.StartDate.ToShortDateString() + "To" + condition.EndDate.ToShortDateString();


            this.DataSource = list;

            this.xrTableCell6.DataBindings.Add("Text", this.DataSource, Model.AtPropertyDebt.PRO_CategoriesName);
            this.xrTableCell7.DataBindings.Add("Text", this.DataSource, "Subject.AccountingCategory." + Model.AtAccountingCategory.PRO_AccountingCategoryName);
            this.xrTableCell8.DataBindings.Add("Text", this.DataSource, "Subject." + Model.AtAccountSubject.PRO_SubjectName);
            this.xrTableCell9.DataBindings.Add("Text", this.DataSource, Model.AtPropertyDebt.PRO_IsMoney, "{0:0}");
            this.xrTableCell10.DataBindings.Add("Text", this.DataSource, Model.AtPropertyDebt.PRO_AddMoney, "{0:0}");
        }