public XRSubjectProperty(ConditionSubjectProperty condition)
        {
            InitializeComponent();
            this.xrLabelCompanyInfoName.Text = BL.Settings.CompanyChineseName;
            this.xrLabelDataName.Text        = "Subjects property table";
            decimal?k = 0;

            if (condition.RespectiveSubject != null)
            {
                IList <Model.AtProperty> list = detailManager.Select(condition.RespectiveSubject);
                this.xrLabel2.Text = DateTime.Now.ToShortDateString();
                if (list != null)
                {
                    foreach (Model.AtProperty at in list)
                    {
                        k += at.ObtainRegular;
                    }
                }
                this.DataSource    = list;
                this.xrLabel3.Text = "Total£º    " + k.ToString();
                this.xrTableCell8.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_Id);
                this.xrTableCell9.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_ToDate, "{0:yyyy-MM-dd}");
                this.xrTableCell10.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_Often);
                this.xrTableCell11.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_RespectiveSubject);

                this.xrTableCell12.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_ObtainRegular);
                this.xrTableCell13.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_DurableMonths);
                this.xrTableCell14.DataBindings.Add("Text", this.DataSource, Model.AtProperty.PRO_Mark);
            }
        }
示例#2
0
 protected override void OnOK()
 {
     if (this.condition == null)
     {
         this.condition = new ConditionSubjectProperty();
     }
     if (this.lookUpEditRespectiveSubject.EditValue != null)
     {
         this.condition.RespectiveSubject = this.lookUpEditRespectiveSubject.EditValue.ToString();
     }
 }