protected void btnFind_Click(object sender, EventArgs e) { try { condObj = new WEC_MODEL(); if (txtID.Value != "") { condObj.Like(WEC_MODEL.Attribute.ID, Convert.ToDecimal(txtID.Value)); } if (txtTYPE.Value != "") { condObj.TYPE = Convert.ToInt32(txtTYPE.Value); } if (txtPIC_URL.Value != "") { condObj.Like(WEC_MODEL.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value)); } if (txtPATH.Value != "") { condObj.Like(WEC_MODEL.Attribute.PATH, Convert.ToString(txtPATH.Value)); } if (txtADDTIME.Value != "") { condObj.Like(WEC_MODEL.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); } if (txtSTATUS.Value != "") { condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); } if (txtNAME.Value != "") { condObj.Like(WEC_MODEL.Attribute.NAME, Convert.ToString(txtNAME.Value)); } listObj = BLLTable <WEC_MODEL> .SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount); repCus.DataSource = listObj; repCus.DataBind(); } catch (Exception ex) { litWarn.Text = ex.Message; } aspPager.RecordCount = recount; }
protected void btnFind_Click(object sender, EventArgs e) { condObj = new WEC_MODEL(); if(txtID.Value !="" ) condObj.Like(WEC_MODEL.Attribute.ID, Convert.ToDecimal(txtID.Value)); if(txtTYPE.Value !="" ) condObj.TYPE = Convert.ToInt32(txtTYPE.Value); if(txtPIC_URL.Value !="" ) condObj.Like(WEC_MODEL.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value)); if(txtPATH.Value !="" ) condObj.Like(WEC_MODEL.Attribute.PATH, Convert.ToString(txtPATH.Value)); if(txtADDTIME.Value !="" ) condObj.Like(WEC_MODEL.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); if(txtSTATUS.Value !="" ) condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); if(txtNAME.Value !="" ) condObj.Like(WEC_MODEL.Attribute.NAME, Convert.ToString(txtNAME.Value)); hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { condObj = new WEC_MODEL(); if (txtID.Value != "") { condObj.Like(WEC_MODEL.Attribute.ID, Convert.ToDecimal(txtID.Value)); } if (txtTYPE.Value != "") { condObj.TYPE = Convert.ToInt32(txtTYPE.Value); } if (txtPIC_URL.Value != "") { condObj.Like(WEC_MODEL.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value)); } if (txtPATH.Value != "") { condObj.Like(WEC_MODEL.Attribute.PATH, Convert.ToString(txtPATH.Value)); } if (txtADDTIME.Value != "") { condObj.Like(WEC_MODEL.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); } if (txtSTATUS.Value != "") { condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); } if (txtNAME.Value != "") { condObj.Like(WEC_MODEL.Attribute.NAME, Convert.ToString(txtNAME.Value)); } hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { try { condObj = new WEC_MODEL(); if(txtID.Value !="" ) condObj.Like(WEC_MODEL.Attribute.ID, Convert.ToDecimal(txtID.Value)); if(txtTYPE.Value !="" ) condObj.TYPE = Convert.ToInt32(txtTYPE.Value); if(txtPIC_URL.Value !="" ) condObj.Like(WEC_MODEL.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value)); if(txtPATH.Value !="" ) condObj.Like(WEC_MODEL.Attribute.PATH, Convert.ToString(txtPATH.Value)); if(txtADDTIME.Value !="" ) condObj.Like(WEC_MODEL.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); if(txtSTATUS.Value !="" ) condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); if(txtNAME.Value !="" ) condObj.Like(WEC_MODEL.Attribute.NAME, Convert.ToString(txtNAME.Value)); listObj = BLLTable<WEC_MODEL>.SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount); repCus.DataSource = listObj; repCus.DataBind(); } catch (Exception ex) { litWarn.Text = ex.Message; } aspPager.RecordCount = recount; }