/// <summary> /// 重写父类方法 /// </summary> protected override void OnOK() { if (this.ConditionCuiShou == null) { this.ConditionCuiShou = new ChooseColCuiShou(); } ConditionCuiShou.Employee1 = this.newChooseEmp1.EditValue as Model.Employee; ConditionCuiShou.Employee2 = this.newChooseEmp2.EditValue as Model.Employee; ConditionCuiShou.Customer1 = this.newChooseCustomer1.EditValue as Model.Customer; ConditionCuiShou.Customer2 = this.newChooseCustomer2.EditValue as Model.Customer; if (global::Helper.DateTimeParse.DateTimeEquls(this.dateEditJZ.DateTime, new DateTime())) { this.ConditionCuiShou.YJDate = DateTime.Now; } else { this.ConditionCuiShou.YJDate = this.dateEditJZ.DateTime; } // ConditionCuiShou.Hasother = this.checkEdit1.Checked; }
public ColCuiShou(ChooseColCuiShou conn) : this() { DataSet ds = this.xobillmanager.SelectCuiShou(conn.Customer1, conn.Customer2, conn.Employee1, conn.Employee2, conn.YJDate); if (ds == null || ds.Tables.Count == 0) { throw new global::Helper.InvalidValueException("Ÿo”µ“þ"); } this.DataSource = ds.Tables[0]; this.xrLabelReportName.Text = "Receivables overdue table with reminders"; this.xrTableYSDate.DataBindings.Add("Text", this.DataSource, "YSDate", "{0:yyyy-MM-dd}"); this.xrTableDays.DataBindings.Add("Text", this.DataSource, "CQDays"); this.xrTableInvoiceDate.DataBindings.Add("Text", this.DataSource, "InvoiceDate", "{0:yyyy-MM-dd}"); this.xrTableInvoiceId.DataBindings.Add("Text", this.DataSource, global::Helper.DateTimeParse.GetFormatA(BL.V.SetDataFormat.XSZJXiao.Value)); this.xrTableMayMoney.DataBindings.Add("Text", this.DataSource, "Total", global::Helper.DateTimeParse.GetFormatA(BL.V.SetDataFormat.XSZJXiao.Value)); this.xrTableHasMoney.DataBindings.Add("Text", this.DataSource, "HasMoney", global::Helper.DateTimeParse.GetFormatA(BL.V.SetDataFormat.XSZJXiao.Value));; this.xrTableNoMoney.DataBindings.Add("Text", this.DataSource, "NoHeXiao", global::Helper.DateTimeParse.GetFormatA(BL.V.SetDataFormat.XSZJXiao.Value)); // this.xrTableZheRang1.DataBindings.Add("Text", this.DataSource, "ZheRang", "{0:0}"); this.xrTableSourceName.DataBindings.Add("Text", this.DataSource, "SourceName"); this.xrTableCustomer.DataBindings.Add("Text", this.DataSource, "CusomerName"); }