protected void btnFind_Click(object sender, EventArgs e) { try { condObj = new WF_INFO(); if (txtWFCID.Value != "") { condObj.Like(WF_INFO.Attribute.WFID, Convert.ToInt32(txtWFCID.Value)); } if (txtWFCNAME.Value != "") { condObj.Like(WF_INFO.Attribute.WFCNAME, Convert.ToString(txtWFCNAME.Value)); } if (txtADDTIME.Value != "") { condObj.Like(WF_INFO.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); } if (txtEDITIME.Value != "") { condObj.Like(WF_INFO.Attribute.EDITIME, Convert.ToDateTime(txtEDITIME.Value)); } if (txtSTATUS.Value != "") { condObj.STATUS = Convert.ToString(txtSTATUS.Value); } if (txtUSE_LIMIT.Value != "") { condObj.USE_LIMIT = Convert.ToString(txtUSE_LIMIT.Value); } if (txtNOTE.Value != "") { condObj.Like(WF_INFO.Attribute.NOTE, Convert.ToString(txtNOTE.Value)); } listObj = BLLTable <WF_INFO> .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 WF_INFO(); if (txtWFCNAME.Value != "") { condObj.Like(WF_INFO.Attribute.WFCNAME, Convert.ToString(txtWFCNAME.Value)); } if (txtSTATUS.Value != "") { condObj.STATUS = Convert.ToString(txtSTATUS.Value); } if (txtUSE_LIMIT.Value != "") { condObj.USE_LIMIT = Convert.ToString(txtUSE_LIMIT.Value); } hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { try { condObj = new WF_INFO(); if(txtWFCID.Value !="" ) condObj.Like(WF_INFO.Attribute.WFID, Convert.ToInt32(txtWFCID.Value)); if(txtWFCNAME.Value !="" ) condObj.Like(WF_INFO.Attribute.WFCNAME, Convert.ToString(txtWFCNAME.Value)); if(txtADDTIME.Value !="" ) condObj.Like(WF_INFO.Attribute.ADDTIME, Convert.ToDateTime(txtADDTIME.Value)); if(txtEDITIME.Value !="" ) condObj.Like(WF_INFO.Attribute.EDITIME, Convert.ToDateTime(txtEDITIME.Value)); if(txtSTATUS.Value !="" ) condObj.STATUS = Convert.ToString(txtSTATUS.Value); if(txtUSE_LIMIT.Value !="" ) condObj.USE_LIMIT = Convert.ToString(txtUSE_LIMIT.Value); if(txtNOTE.Value !="" ) condObj.Like(WF_INFO.Attribute.NOTE, Convert.ToString(txtNOTE.Value)); listObj = BLLTable<WF_INFO>.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 WF_INFO(); if(txtWFCNAME.Value !="" ) condObj.Like(WF_INFO.Attribute.WFCNAME, Convert.ToString(txtWFCNAME.Value)); if(txtSTATUS.Value !="" ) condObj.STATUS = Convert.ToString(txtSTATUS.Value); if(txtUSE_LIMIT.Value !="" ) condObj.USE_LIMIT = Convert.ToString(txtUSE_LIMIT.Value); hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }