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