protected void btnFind_Click(object sender, EventArgs e) { condObj = new SYS_TEMPUSER(); if(txtID.Value !="" ) condObj.Like(SYS_TEMPUSER.Attribute.ID, Convert.ToDecimal(txtID.Value)); if(txtNAME.Value !="" ) condObj.Like(SYS_TEMPUSER.Attribute.NAME, Convert.ToString(txtNAME.Value)); if(txtCONAME.Value !="" ) condObj.Like(SYS_TEMPUSER.Attribute.CONAME, Convert.ToString(txtCONAME.Value)); if(txtPHONE.Value !="" ) condObj.Like(SYS_TEMPUSER.Attribute.PHONE, Convert.ToString(txtPHONE.Value)); if(txtIP.Value !="" ) condObj.Like(SYS_TEMPUSER.Attribute.IP, Convert.ToString(txtIP.Value)); if(txtADDTIME.Value !="" ) condObj.Like(SYS_TEMPUSER.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); if(txtLOGINNAME.Value !="" ) condObj.Like(SYS_TEMPUSER.Attribute.LOGINNAME, Convert.ToString(txtLOGINNAME.Value)); if(txtPWD.Value !="" ) condObj.Like(SYS_TEMPUSER.Attribute.PWD, Convert.ToString(txtPWD.Value)); if(txtUSER_ID.Value !="" ) condObj.Like(SYS_TEMPUSER.Attribute.USER_ID, Convert.ToDecimal(txtUSER_ID.Value)); hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { condObj = new SYS_TEMPUSER(); if(txtID.Value !="" ) condObj.Like_OR(SYS_TEMPUSER.Attribute.ID, Convert.ToDecimal(txtID.Value)); if(txtNAME.Value !="" ) condObj.Like_OR(SYS_TEMPUSER.Attribute.NAME, Convert.ToString(txtNAME.Value)); if(txtCONAME.Value !="" ) condObj.Like_OR(SYS_TEMPUSER.Attribute.CONAME, Convert.ToString(txtCONAME.Value)); if(txtPHONE.Value !="" ) condObj.Like_OR(SYS_TEMPUSER.Attribute.PHONE, Convert.ToString(txtPHONE.Value)); if(txtIP.Value !="" ) condObj.Like_OR(SYS_TEMPUSER.Attribute.IP, Convert.ToString(txtIP.Value)); if(txtADDTIME.Value !="" ) condObj.Like_OR(SYS_TEMPUSER.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); if(txtLOGINNAME.Value !="" ) condObj.Like_OR(SYS_TEMPUSER.Attribute.LOGINNAME, Convert.ToString(txtLOGINNAME.Value)); if(txtPWD.Value !="" ) condObj.Like_OR(SYS_TEMPUSER.Attribute.PWD, Convert.ToString(txtPWD.Value)); if(txtUSER_ID.Value !="" ) condObj.Like_OR(SYS_TEMPUSER.Attribute.USER_ID, Convert.ToDecimal(txtUSER_ID.Value)); try { hidCondition.Value = condObj.ToJson(20); listObj = BLLTable<SYS_TEMPUSER>.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 SYS_TEMPUSER(); if (txtID.Value != "") { condObj.Like_OR(SYS_TEMPUSER.Attribute.ID, Convert.ToDecimal(txtID.Value)); } if (txtNAME.Value != "") { condObj.Like_OR(SYS_TEMPUSER.Attribute.NAME, Convert.ToString(txtNAME.Value)); } if (txtCONAME.Value != "") { condObj.Like_OR(SYS_TEMPUSER.Attribute.CONAME, Convert.ToString(txtCONAME.Value)); } if (txtPHONE.Value != "") { condObj.Like_OR(SYS_TEMPUSER.Attribute.PHONE, Convert.ToString(txtPHONE.Value)); } if (txtIP.Value != "") { condObj.Like_OR(SYS_TEMPUSER.Attribute.IP, Convert.ToString(txtIP.Value)); } if (txtADDTIME.Value != "") { condObj.Like_OR(SYS_TEMPUSER.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); } if (txtLOGINNAME.Value != "") { condObj.Like_OR(SYS_TEMPUSER.Attribute.LOGINNAME, Convert.ToString(txtLOGINNAME.Value)); } if (txtPWD.Value != "") { condObj.Like_OR(SYS_TEMPUSER.Attribute.PWD, Convert.ToString(txtPWD.Value)); } if (txtUSER_ID.Value != "") { condObj.Like_OR(SYS_TEMPUSER.Attribute.USER_ID, Convert.ToDecimal(txtUSER_ID.Value)); } try { hidCondition.Value = condObj.ToJson(20); listObj = BLLTable <SYS_TEMPUSER> .SelectByPage(valObj, condObj, aspPager.PageSize, 1, ref recount); repList.DataSource = listObj; repList.DataBind(); } catch (Exception ex) { litWarn.Text = ex.Message; } }