protected void btnFind_Click(object sender, EventArgs e) { condObj = new WEC_CUSTOM_MODEL_SET(); if(txtWEC_CUSTOM_MODEL_SET_ID.Value !="" ) condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_ID.Value)); if(txtWEC_CUSTOM_MODEL_SET_A_ID.Value !="" ) condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.A_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_A_ID.Value)); if(txtWEC_CUSTOM_MODEL_SET_M_ID.Value !="" ) condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.M_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_M_ID.Value)); try { hidCondition.Value = condObj.ToJson(20); listObj = BLLTable<WEC_CUSTOM_MODEL_SET>.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 WEC_CUSTOM_MODEL_SET(); if(txtWEC_CUSTOM_MODEL_SET_A_ID.Value != "" ) condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.A_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_A_ID.Value)); hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { condObj = new WEC_CUSTOM_MODEL_SET(); if (txtWEC_CUSTOM_MODEL_SET_A_ID.Value != "") { condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.A_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_A_ID.Value)); } hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { condObj = new WEC_CUSTOM_MODEL_SET(); if (txtWEC_CUSTOM_MODEL_SET_ID.Value != "") { condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_ID.Value)); } if (txtWEC_CUSTOM_MODEL_SET_A_ID.Value != "") { condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.A_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_A_ID.Value)); } if (txtWEC_CUSTOM_MODEL_SET_M_ID.Value != "") { condObj.Like(WEC_CUSTOM_MODEL_SET.Attribute.M_ID, Convert.ToDecimal(txtWEC_CUSTOM_MODEL_SET_M_ID.Value)); } try { hidCondition.Value = condObj.ToJson(20); listObj = BLLTable <WEC_CUSTOM_MODEL_SET> .Factory(conn).SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount); repList.DataSource = listObj; repList.DataBind(); } catch (Exception ex) { litWarn.Text = ex.Message; } }