protected void btnFind_Click(object sender, EventArgs e) { condObj = new WEC_A_VOTE(); if(txtID.Value != "" ) condObj.Like(WEC_A_VOTE.Attribute.ID, Convert.ToDecimal(txtID.Value)); if(txtAID.Value != "" ) condObj.Like(WEC_A_VOTE.Attribute.AID, Convert.ToDecimal(txtAID.Value)); if(txtSTATUS.Value != "" ) condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); if(txtADDTIME.Value != "" ) condObj.Like(WEC_A_VOTE.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); if(txtKEYWORD.Value != "" ) condObj.Like(WEC_A_VOTE.Attribute.KEYWORD, Convert.ToString(txtKEYWORD.Value)); if(txtTITLE.Value != "" ) condObj.Like(WEC_A_VOTE.Attribute.TITLE, Convert.ToString(txtTITLE.Value)); if(txtPICURL.Value != "" ) condObj.Like(WEC_A_VOTE.Attribute.PICURL, Convert.ToString(txtPICURL.Value)); if(txtINSTRUCTION.Value != "" ) condObj.Like(WEC_A_VOTE.Attribute.INSTRUCTION, Convert.ToString(txtINSTRUCTION.Value)); if(txtPIC_SHOW.Value != "" ) condObj.PIC_SHOW = Convert.ToInt32(txtPIC_SHOW.Value); if(txtIS_RADIO.Value != "" ) condObj.IS_RADIO = Convert.ToInt32(txtIS_RADIO.Value); if(txtSELECT_NUM.Value != "" ) condObj.Like(WEC_A_VOTE.Attribute.SELECT_NUM, Convert.ToInt32(txtSELECT_NUM.Value)); if(txtTIME.Value != "" ) condObj.Like(WEC_A_VOTE.Attribute.TIME, Convert.ToString(txtTIME.Value)); if(txtRESULT.Value != "" ) condObj.Like(WEC_A_VOTE.Attribute.RESULT, Convert.ToInt32(txtRESULT.Value)); if(txtSHARE.Value != "" ) condObj.SHARE = Convert.ToInt32(txtSHARE.Value); if(txtKIND.Value != "" ) condObj.KIND = Convert.ToInt32(txtKIND.Value); hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { try { condObj = new WEC_A_VOTE(); if(txtID.Value !="" ) condObj.Like(WEC_A_VOTE.Attribute.ID, Convert.ToDecimal(txtID.Value)); if(txtAID.Value !="" ) condObj.Like(WEC_A_VOTE.Attribute.AID, Convert.ToDecimal(txtAID.Value)); if(txtSTATUS.Value !="" ) condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); if(txtADDTIME.Value !="" ) condObj.Like(WEC_A_VOTE.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); if(txtKEYWORD.Value !="" ) condObj.Like(WEC_A_VOTE.Attribute.KEYWORD, Convert.ToString(txtKEYWORD.Value)); if(txtTITLE.Value !="" ) condObj.Like(WEC_A_VOTE.Attribute.TITLE, Convert.ToString(txtTITLE.Value)); if(txtPICURL.Value !="" ) condObj.Like(WEC_A_VOTE.Attribute.PICURL, Convert.ToString(txtPICURL.Value)); if(txtINSTRUCTION.Value !="" ) condObj.Like(WEC_A_VOTE.Attribute.INSTRUCTION, Convert.ToString(txtINSTRUCTION.Value)); if(txtPIC_SHOW.Value !="" ) condObj.PIC_SHOW = Convert.ToInt32(txtPIC_SHOW.Value); if(txtIS_RADIO.Value !="" ) condObj.IS_RADIO = Convert.ToInt32(txtIS_RADIO.Value); if(txtSELECT_NUM.Value !="" ) condObj.Like(WEC_A_VOTE.Attribute.SELECT_NUM, Convert.ToInt32(txtSELECT_NUM.Value)); if(txtTIME.Value !="" ) condObj.Like(WEC_A_VOTE.Attribute.TIME, Convert.ToString(txtTIME.Value)); if(txtRESULT.Value !="" ) condObj.Like(WEC_A_VOTE.Attribute.RESULT, Convert.ToInt32(txtRESULT.Value)); if(txtSHARE.Value !="" ) condObj.SHARE = Convert.ToInt32(txtSHARE.Value); if(txtKIND.Value !="" ) condObj.KIND = Convert.ToInt32(txtKIND.Value); listObj = BLLTable<WEC_A_VOTE>.Factory(conn).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) { try { condObj = new WEC_A_VOTE(); if (txtID.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.ID, Convert.ToDecimal(txtID.Value)); } if (txtAID.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.AID, Convert.ToDecimal(txtAID.Value)); } if (txtSTATUS.Value != "") { condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); } if (txtADDTIME.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); } if (txtKEYWORD.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.KEYWORD, Convert.ToString(txtKEYWORD.Value)); } if (txtTITLE.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.TITLE, Convert.ToString(txtTITLE.Value)); } if (txtPICURL.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.PICURL, Convert.ToString(txtPICURL.Value)); } if (txtINSTRUCTION.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.INSTRUCTION, Convert.ToString(txtINSTRUCTION.Value)); } if (txtPIC_SHOW.Value != "") { condObj.PIC_SHOW = Convert.ToInt32(txtPIC_SHOW.Value); } if (txtIS_RADIO.Value != "") { condObj.IS_RADIO = Convert.ToInt32(txtIS_RADIO.Value); } if (txtSELECT_NUM.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.SELECT_NUM, Convert.ToInt32(txtSELECT_NUM.Value)); } if (txtTIME.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.TIME, Convert.ToString(txtTIME.Value)); } if (txtRESULT.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.RESULT, Convert.ToInt32(txtRESULT.Value)); } if (txtSHARE.Value != "") { condObj.SHARE = Convert.ToInt32(txtSHARE.Value); } if (txtKIND.Value != "") { condObj.KIND = Convert.ToInt32(txtKIND.Value); } listObj = BLLTable <WEC_A_VOTE> .Factory(conn).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_A_VOTE(); if (txtID.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.ID, Convert.ToDecimal(txtID.Value)); } if (txtAID.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.AID, Convert.ToDecimal(txtAID.Value)); } if (txtSTATUS.Value != "") { condObj.STATUS = Convert.ToInt32(txtSTATUS.Value); } if (txtADDTIME.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); } if (txtKEYWORD.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.KEYWORD, Convert.ToString(txtKEYWORD.Value)); } if (txtTITLE.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.TITLE, Convert.ToString(txtTITLE.Value)); } if (txtPICURL.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.PICURL, Convert.ToString(txtPICURL.Value)); } if (txtINSTRUCTION.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.INSTRUCTION, Convert.ToString(txtINSTRUCTION.Value)); } if (txtPIC_SHOW.Value != "") { condObj.PIC_SHOW = Convert.ToInt32(txtPIC_SHOW.Value); } if (txtIS_RADIO.Value != "") { condObj.IS_RADIO = Convert.ToInt32(txtIS_RADIO.Value); } if (txtSELECT_NUM.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.SELECT_NUM, Convert.ToInt32(txtSELECT_NUM.Value)); } if (txtTIME.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.TIME, Convert.ToString(txtTIME.Value)); } if (txtRESULT.Value != "") { condObj.Like(WEC_A_VOTE.Attribute.RESULT, Convert.ToInt32(txtRESULT.Value)); } if (txtSHARE.Value != "") { condObj.SHARE = Convert.ToInt32(txtSHARE.Value); } if (txtKIND.Value != "") { condObj.KIND = Convert.ToInt32(txtKIND.Value); } hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }