protected void btnFind_Click(object sender, EventArgs e) { condObj = new WEC_CATEBANNER(); if(txtID.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.ID, Convert.ToDecimal(txtID.Value)); if(txtAID.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.AID, Convert.ToDecimal(txtAID.Value)); if(txtPIC_URL.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value)); if(txtOUT_URL.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.OUT_URL, Convert.ToString(txtOUT_URL.Value)); if(txtSORT_ID.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.SORT_ID, Convert.ToInt32(txtSORT_ID.Value)); if(txtSTATUS.Value !="" ) condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); if(txtADDTIME.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { try { condObj = new WEC_CATEBANNER(); if (txtID.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.ID, Convert.ToDecimal(txtID.Value)); } if (txtAID.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.AID, Convert.ToDecimal(txtAID.Value)); } if (txtPIC_URL.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value)); } if (txtOUT_URL.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.OUT_URL, Convert.ToString(txtOUT_URL.Value)); } if (txtSORT_ID.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.SORT_ID, Convert.ToInt32(txtSORT_ID.Value)); } if (txtSTATUS.Value != "") { condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); } if (txtADDTIME.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); } listObj = BLLTable <WEC_CATEBANNER> .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_CATEBANNER(); if (txtID.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.ID, Convert.ToDecimal(txtID.Value)); } if (txtAID.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.AID, Convert.ToDecimal(txtAID.Value)); } if (txtPIC_URL.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value)); } if (txtOUT_URL.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.OUT_URL, Convert.ToString(txtOUT_URL.Value)); } if (txtSORT_ID.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.SORT_ID, Convert.ToInt32(txtSORT_ID.Value)); } if (txtSTATUS.Value != "") { condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); } if (txtADDTIME.Value != "") { condObj.Like(WEC_CATEBANNER.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); } hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { try { condObj = new WEC_CATEBANNER(); if(txtID.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.ID, Convert.ToDecimal(txtID.Value)); if(txtAID.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.AID, Convert.ToDecimal(txtAID.Value)); if(txtPIC_URL.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.PIC_URL, Convert.ToString(txtPIC_URL.Value)); if(txtOUT_URL.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.OUT_URL, Convert.ToString(txtOUT_URL.Value)); if(txtSORT_ID.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.SORT_ID, Convert.ToInt32(txtSORT_ID.Value)); if(txtSTATUS.Value !="" ) condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); if(txtADDTIME.Value !="" ) condObj.Like(WEC_CATEBANNER.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); listObj = BLLTable<WEC_CATEBANNER>.SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount); repCus.DataSource = listObj; repCus.DataBind(); } catch (Exception ex) { litWarn.Text = ex.Message; } aspPager.RecordCount = recount; }