public override void Set_FilterInfo(InqFilterInfo info) { this.cbbKeyField.Value = info.WhereKey.KeyField; this.cbbOperator.Value = info.Operator; this.deValue.Value = info.Value; this.cbbAndOr.Value = info.Logic; }
public override void Set_FilterInfo(InqFilterInfo info) { this.cbbKeyField.Value = info.WhereKey.KeyField; this.cbbOperator.Value = info.Operator; this.txtValue.Text = info.Value.ToString(); this.cbbAndOr.Value = info.Logic; }
public override InqFilterInfo Get_FilterInfo() { try { var ds = this.cbbKeyField.DataSource as List <lsttbl_DWColumn>; if (ds == null) { return(null); } var keyField = Lib.NTE(this.cbbKeyField.Value); var item = ds.FirstOrDefault(p => p.KeyField == keyField); var ret = new InqFilterInfo(); ret.HavingKey = new InqSummaryInfo(new InqFieldInfo(item.TblName, item.ColName, item.DataType), "SUM"); ret.Logic = Lib.NTE(this.cbbAndOr.Value); ret.Operator = this.cbbOperator.Text; if (Lib.StringIsDigit(this.txtValue.Text)) { ret.Value = this.txtValue.Text; } else { ret.Value = Lib.GetStringDigit(this.txtValue.Text); } return(ret); } catch { return(null); } }
public override InqFilterInfo Get_FilterInfo() { try { var ds = this.cbbKeyField.DataSource as List<lsttbl_DWColumn>; if (ds == null) return null; var keyField = Lib.NTE(this.cbbKeyField.Value); var item = ds.FirstOrDefault(p => p.KeyField == keyField); var ret = new InqFilterInfo(); ret.WhereKey = new InqFieldInfo(item.TblName, item.ColName, item.DataType); ret.Logic = Lib.NTE(this.cbbAndOr.Value); ret.Operator = this.cbbOperator.Text; ret.Value = this.txtValue.Text; return ret; } catch { return null; } }
public override InqFilterInfo Get_FilterInfo() { try { var ds = this.cbbKeyField.DataSource as List <lsttbl_DWColumn>; if (ds == null) { return(null); } var keyField = Lib.NTE(this.cbbKeyField.Value); var item = ds.FirstOrDefault(p => p.KeyField == keyField); var ret = new InqFilterInfo(); ret.WhereKey = new InqFieldInfo(item.TblName, item.ColName, item.DataType); ret.Logic = Lib.NTE(this.cbbAndOr.Value); ret.Operator = this.cbbOperator.Text; ret.Value = this.deValue.Date.ToString("yyyy/MM/dd"); return(ret); } catch { return(null); } }