protected void btnFind_Click(object sender, EventArgs e) { condObj = new Ec_entityname(); if(txtTabid.Value !="" ) condObj.Like_OR(Ec_entityname.Attribute.Tabid, Convert.ToInt32(txtTabid.Value)); if(txtModulename.Value !="" ) condObj.Like_OR(Ec_entityname.Attribute.Modulename, Convert.ToString(txtModulename.Value)); if(txtTablename.Value !="" ) condObj.Like_OR(Ec_entityname.Attribute.Tablename, Convert.ToString(txtTablename.Value)); if(txtFieldname.Value !="" ) condObj.Like_OR(Ec_entityname.Attribute.Fieldname, Convert.ToString(txtFieldname.Value)); if(txtEntityidfield.Value !="" ) condObj.Like_OR(Ec_entityname.Attribute.Entityidfield, Convert.ToString(txtEntityidfield.Value)); if(txtRemarks.Value !="" ) condObj.Like_OR(Ec_entityname.Attribute.Remarks, Convert.ToString(txtRemarks.Value)); try { hidCondition.Value = condObj.ToJson(20); listObj = BLLTable<Ec_entityname>.Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount); repList.DataSource = listObj; repList.DataBind(); } catch (Exception ex) { litWarn.Text = ex.Message; } }
protected void btnFind_Click(object sender, EventArgs e) { condObj = new Ec_entityname(); if(txtTabid.Value !="" ) condObj.Like(Ec_entityname.Attribute.Tabid, Convert.ToInt32(txtTabid.Value)); if(txtModulename.Value !="" ) condObj.Like(Ec_entityname.Attribute.Modulename, Convert.ToString(txtModulename.Value)); if(txtTablename.Value !="" ) condObj.Like(Ec_entityname.Attribute.Tablename, Convert.ToString(txtTablename.Value)); if(txtFieldname.Value !="" ) condObj.Like(Ec_entityname.Attribute.Fieldname, Convert.ToString(txtFieldname.Value)); if(txtEntityidfield.Value !="" ) condObj.Like(Ec_entityname.Attribute.Entityidfield, Convert.ToString(txtEntityidfield.Value)); if(txtRemarks.Value !="" ) condObj.Like(Ec_entityname.Attribute.Remarks, Convert.ToString(txtRemarks.Value)); hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { condObj = new Ec_entityname(); if (txtTabid.Value != "") { condObj.Like_OR(Ec_entityname.Attribute.Tabid, Convert.ToInt32(txtTabid.Value)); } if (txtModulename.Value != "") { condObj.Like_OR(Ec_entityname.Attribute.Modulename, Convert.ToString(txtModulename.Value)); } if (txtTablename.Value != "") { condObj.Like_OR(Ec_entityname.Attribute.Tablename, Convert.ToString(txtTablename.Value)); } if (txtFieldname.Value != "") { condObj.Like_OR(Ec_entityname.Attribute.Fieldname, Convert.ToString(txtFieldname.Value)); } if (txtEntityidfield.Value != "") { condObj.Like_OR(Ec_entityname.Attribute.Entityidfield, Convert.ToString(txtEntityidfield.Value)); } if (txtRemarks.Value != "") { condObj.Like_OR(Ec_entityname.Attribute.Remarks, Convert.ToString(txtRemarks.Value)); } try { hidCondition.Value = condObj.ToJson(20); listObj = BLLTable <Ec_entityname> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount); repList.DataSource = listObj; repList.DataBind(); } catch (Exception ex) { litWarn.Text = ex.Message; } }
protected void btnFind_Click(object sender, EventArgs e) { condObj = new Ec_entityname(); if (txtTabid.Value != "") { condObj.Like(Ec_entityname.Attribute.Tabid, Convert.ToInt32(txtTabid.Value)); } if (txtModulename.Value != "") { condObj.Like(Ec_entityname.Attribute.Modulename, Convert.ToString(txtModulename.Value)); } if (txtTablename.Value != "") { condObj.Like(Ec_entityname.Attribute.Tablename, Convert.ToString(txtTablename.Value)); } if (txtFieldname.Value != "") { condObj.Like(Ec_entityname.Attribute.Fieldname, Convert.ToString(txtFieldname.Value)); } if (txtEntityidfield.Value != "") { condObj.Like(Ec_entityname.Attribute.Entityidfield, Convert.ToString(txtEntityidfield.Value)); } if (txtRemarks.Value != "") { condObj.Like(Ec_entityname.Attribute.Remarks, Convert.ToString(txtRemarks.Value)); } hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }