protected void btnFind_Click(object sender, EventArgs e) { condObj = new TF_FIELD_DBTYPE(); if (txtTYPE_ID.Value != "") { condObj.Like(TF_FIELD_DBTYPE.Attribute.TYPE_ID, Convert.ToInt32(txtTYPE_ID.Value)); } if (txtTYPE_NAME.Value != "") { condObj.Like(TF_FIELD_DBTYPE.Attribute.TYPE_NAME, Convert.ToString(txtTYPE_NAME.Value)); } if (txtDB_TYPE.Value != "") { condObj.Like(TF_FIELD_DBTYPE.Attribute.DB_TYPE, Convert.ToString(txtDB_TYPE.Value)); } if (txtCTRL_TYPES.Value != "") { condObj.Like(TF_FIELD_DBTYPE.Attribute.CTRL_TYPES, Convert.ToString(txtCTRL_TYPES.Value)); } hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { condObj = new TF_FIELD_DBTYPE(); if(txtTYPE_ID.Value !="" ) condObj.Like_OR(TF_FIELD_DBTYPE.Attribute.TYPE_ID, Convert.ToInt32(txtTYPE_ID.Value)); if(txtTYPE_NAME.Value !="" ) condObj.Like_OR(TF_FIELD_DBTYPE.Attribute.TYPE_NAME, Convert.ToString(txtTYPE_NAME.Value)); if(txtDB_TYPE.Value !="" ) condObj.Like_OR(TF_FIELD_DBTYPE.Attribute.DB_TYPE, Convert.ToString(txtDB_TYPE.Value)); if(txtCTRL_TYPES.Value !="" ) condObj.Like_OR(TF_FIELD_DBTYPE.Attribute.CTRL_TYPES, Convert.ToString(txtCTRL_TYPES.Value)); try { hidCondition.Value = condObj.ToJson(20); listObj = BLLTable<TF_FIELD_DBTYPE>.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 TF_FIELD_DBTYPE(); if (txtTYPE_ID.Value != "") { condObj.Like_OR(TF_FIELD_DBTYPE.Attribute.TYPE_ID, Convert.ToInt32(txtTYPE_ID.Value)); } if (txtTYPE_NAME.Value != "") { condObj.Like_OR(TF_FIELD_DBTYPE.Attribute.TYPE_NAME, Convert.ToString(txtTYPE_NAME.Value)); } if (txtDB_TYPE.Value != "") { condObj.Like_OR(TF_FIELD_DBTYPE.Attribute.DB_TYPE, Convert.ToString(txtDB_TYPE.Value)); } if (txtCTRL_TYPES.Value != "") { condObj.Like_OR(TF_FIELD_DBTYPE.Attribute.CTRL_TYPES, Convert.ToString(txtCTRL_TYPES.Value)); } try { hidCondition.Value = condObj.ToJson(20); listObj = BLLTable <TF_FIELD_DBTYPE> .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 TF_FIELD_DBTYPE(); if(txtTYPE_ID.Value !="" ) condObj.Like(TF_FIELD_DBTYPE.Attribute.TYPE_ID, Convert.ToInt32(txtTYPE_ID.Value)); if(txtTYPE_NAME.Value !="" ) condObj.Like(TF_FIELD_DBTYPE.Attribute.TYPE_NAME, Convert.ToString(txtTYPE_NAME.Value)); if(txtDB_TYPE.Value !="" ) condObj.Like(TF_FIELD_DBTYPE.Attribute.DB_TYPE, Convert.ToString(txtDB_TYPE.Value)); if(txtCTRL_TYPES.Value !="" ) condObj.Like(TF_FIELD_DBTYPE.Attribute.CTRL_TYPES, Convert.ToString(txtCTRL_TYPES.Value)); hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }