protected void btnFind_Click(object sender, EventArgs e) { try { condObj = new HR_CHECKWORKDEVICE(); if(txtDeviceID.Value !="" ) condObj.Like(HR_CHECKWORKDEVICE.Attribute.DeviceID, Convert.ToString(txtDeviceID.Value)); if(txtORG_ID.Value !="" ) condObj.Like(HR_CHECKWORKDEVICE.Attribute.ORG_ID, Convert.ToString(txtORG_ID.Value)); if(txtUSE_FLAG.Value !="" ) condObj.USE_FLAG = Convert.ToString(txtUSE_FLAG.Value); listObj = BLLTable<HR_CHECKWORKDEVICE>.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 HR_CHECKWORKDEVICE(); if (txtDeviceID.Value != "") { condObj.Like(HR_CHECKWORKDEVICE.Attribute.DeviceID, Convert.ToString(txtDeviceID.Value)); } if (txtDeviceName.Value != "") { condObj.Like(HR_CHECKWORKDEVICE.Attribute.DeviceName, Convert.ToString(txtDeviceName.Value)); } if (!string.IsNullOrEmpty(wucSelORG1.ORG_ID) && !string.IsNullOrEmpty(wucSelORG1.ORG_NAME)) { condObj.ORG_ID = wucSelORG1.ORG_ID; } if (txtUSE_FLAG.Value != "") { condObj.USE_FLAG = Convert.ToString(txtUSE_FLAG.Value); } hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { condObj = new HR_CHECKWORKDEVICE(); if(txtDeviceID.Value !="" ) condObj.Like(HR_CHECKWORKDEVICE.Attribute.DeviceID, Convert.ToString(txtDeviceID.Value)); if (txtDeviceName.Value != "") condObj.Like(HR_CHECKWORKDEVICE.Attribute.DeviceName, Convert.ToString(txtDeviceName.Value)); if (!string.IsNullOrEmpty(wucSelORG1.ORG_ID) && !string.IsNullOrEmpty(wucSelORG1.ORG_NAME)) condObj.ORG_ID = wucSelORG1.ORG_ID; if(txtUSE_FLAG.Value !="" ) condObj.USE_FLAG = Convert.ToString(txtUSE_FLAG.Value); hidCondition.Value = condObj.ToJson(20); BindList(condObj, 1); }
protected void btnFind_Click(object sender, EventArgs e) { try { condObj = new HR_CHECKWORKDEVICE(); if (txtDeviceID.Value != "") { condObj.Like(HR_CHECKWORKDEVICE.Attribute.DeviceID, Convert.ToString(txtDeviceID.Value)); } if (txtORG_ID.Value != "") { condObj.Like(HR_CHECKWORKDEVICE.Attribute.ORG_ID, Convert.ToString(txtORG_ID.Value)); } if (txtUSE_FLAG.Value != "") { condObj.USE_FLAG = Convert.ToString(txtUSE_FLAG.Value); } listObj = BLLTable <HR_CHECKWORKDEVICE> .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; }