protected override void OnOK() { if (condition == null) { condition = new ConditionI(); } condition.StartCompanyId = this.comboBoxEditStartId.Text.Split(new char[] { ' ' })[0]; condition.EndCompanyId = this.comboBoxEditEndId.Text.Split(new char[] { ' ' })[0]; }
//构造 public Q36(ConditionI condition) { InitializeComponent(); this.xrLabelReportName.Text = Properties.Resources.YSZKYJBQ; this.xrLabelDateRange.Text = string.Format(Properties.Resources.CustomOrSupplierRange, condition.StartCompanyId, condition.EndCompanyId); //System.Collections.Generic.IList<Model.Company> list = this.manager.Select(condition.StartCompanyId, condition.EndCompanyId, global::Helper.CompanyKind.Customer); //if (list == null || list.Count <= 0) // throw new Helper.InvalidValueException(); //this.bindingSource1.DataSource = list; //this.xrLabelAddress.DataBindings.Add("Text", this.DataSource, Model.Company.PROPERTY_COMPANYADDRESS); //this.xrLabelCompanyName.DataBindings.Add("Text", this.DataSource, Model.Company.PROPERTY_COMPANYNAME1); }