protected void btnFind_Click(object sender, EventArgs e) { condObj = new WEC_C_TYPE(); if(txtID.Value !="" ) condObj.Like_OR(WEC_C_TYPE.Attribute.ID, Convert.ToDecimal(txtID.Value)); if(txtAID.Value !="" ) condObj.Like_OR(WEC_C_TYPE.Attribute.AID, Convert.ToDecimal(txtAID.Value)); if(txtSTATUS.Value !="" ) condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); if(txtADDTIME.Value !="" ) condObj.Like_OR(WEC_C_TYPE.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); if(txtNAME.Value !="" ) condObj.Like_OR(WEC_C_TYPE.Attribute.NAME, Convert.ToString(txtNAME.Value)); if(txtSORT.Value !="" ) condObj.Like_OR(WEC_C_TYPE.Attribute.SORT, Convert.ToInt32(txtSORT.Value)); try { hidCondition.Value = condObj.ToJson(20); listObj = BLLTable<WEC_C_TYPE>.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_C_TYPE(); if(txtID.Value !="" ) condObj.Like(WEC_C_TYPE.Attribute.ID, Convert.ToDecimal(txtID.Value)); if(txtAID.Value !="" ) condObj.Like(WEC_C_TYPE.Attribute.AID, Convert.ToDecimal(txtAID.Value)); if(txtSTATUS.Value !="" ) condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); if(txtADDTIME.Value !="" ) condObj.Like(WEC_C_TYPE.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); if(txtNAME.Value !="" ) condObj.Like(WEC_C_TYPE.Attribute.NAME, Convert.ToString(txtNAME.Value)); if(txtSORT.Value !="" ) condObj.Like(WEC_C_TYPE.Attribute.SORT, Convert.ToInt32(txtSORT.Value)); hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { condObj = new WEC_C_TYPE(); if (txtID.Value != "") { condObj.Like_OR(WEC_C_TYPE.Attribute.ID, Convert.ToDecimal(txtID.Value)); } if (txtAID.Value != "") { condObj.Like_OR(WEC_C_TYPE.Attribute.AID, Convert.ToDecimal(txtAID.Value)); } if (txtSTATUS.Value != "") { condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); } if (txtADDTIME.Value != "") { condObj.Like_OR(WEC_C_TYPE.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); } if (txtNAME.Value != "") { condObj.Like_OR(WEC_C_TYPE.Attribute.NAME, Convert.ToString(txtNAME.Value)); } if (txtSORT.Value != "") { condObj.Like_OR(WEC_C_TYPE.Attribute.SORT, Convert.ToInt32(txtSORT.Value)); } try { hidCondition.Value = condObj.ToJson(20); listObj = BLLTable <WEC_C_TYPE> .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_C_TYPE(); if (txtID.Value != "") { condObj.Like(WEC_C_TYPE.Attribute.ID, Convert.ToDecimal(txtID.Value)); } if (txtAID.Value != "") { condObj.Like(WEC_C_TYPE.Attribute.AID, Convert.ToDecimal(txtAID.Value)); } if (txtSTATUS.Value != "") { condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); } if (txtADDTIME.Value != "") { condObj.Like(WEC_C_TYPE.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); } if (txtNAME.Value != "") { condObj.Like(WEC_C_TYPE.Attribute.NAME, Convert.ToString(txtNAME.Value)); } if (txtSORT.Value != "") { condObj.Like(WEC_C_TYPE.Attribute.SORT, Convert.ToInt32(txtSORT.Value)); } hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }