コード例 #1
0
ファイル: XRDateProperty.cs プロジェクト: daobataotie/EDERP
        public XRDateProperty(ConditionDateProperty condition)
        {
            InitializeComponent();
            this.xrLabelCompanyInfoName.Text = BL.Settings.CompanyChineseName;
            this.xrLabelDataName.Text        = "日期別財產表";
            decimal?k = 0;
            IList <Model.AtProperty> list = detailManager.Select(condition.StartDate, condition.EndDate);

            this.xrLabel2.Text = "列表日期:" + DateTime.Now.ToShortDateString();
            this.xrLabel1.Text = "日期区间:" + condition.StartDate.ToShortDateString() + "至" + condition.EndDate.ToShortDateString();
            if (list != null)
            {
                foreach (Model.AtProperty at in list)
                {
                    k += at.DepreciationMoney;
                }
            }
            this.DataSource    = list;
            this.xrLabel3.Text = "合計金額:    " + k.ToString();
            this.xrTableCell8.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_Id);
            this.xrTableCell9.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_PropertyName);
            this.xrTableCell10.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_DepreciationSubject);
            this.xrTableCell11.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_DepreciationMoney);

            this.xrTableCell12.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_Mark);
        }
コード例 #2
0
 protected override void OnOK()
 {
     if (this.condition == null)
     {
         this.condition = new ConditionDateProperty();
     }
     this.condition.StartDate = this.dateEditStartDate.DateTime;
     this.condition.EndDate   = this.dateEditEndDate.DateTime;
 }