//获取实体 public cloud_workpersonnel QueryObject(cloud_workpersonnel model) { IList <cloud_workpersonnel> list = cloud_workpersonneldal.getcloud_workpersonnelList(model); if (list.Count > 0) { return(list[0]); } else { return(null); } }
//查询List public IList <cloud_workpersonnel> getcloud_workpersonnelList(cloud_workpersonnel model) { IList <cloud_workpersonnel> list = new List <cloud_workpersonnel>(); try { list = cloud_workpersonneldal.getcloud_workpersonnelList(model); } catch { list = null; } return(list); }
/// <summary> /// 返回总条数 /// </summary> /// <param name="model"></param> /// <returns></returns> public int GetDirectorCount(cloud_workpersonnel model) { return(cloud_workpersonneldal.GetDirectorCount(model)); #region 缓存用法 //int totalItems = 0; //object obj = CacheHelper.GetCache("cloud_workpersonnelBLL_GetRecordCount"); //key一定要设置的有规律不重复类名+方法名 //if (obj != null) //{ // totalItems = (int)obj; //} //else //{ // totalItems = cloud_workpersonneldal.GetRecordCount(model); // CacheHelper.SetCacheAbsolute("cloud_workpersonnelBLL_GetRecordCount", totalItems);//写入服务器缓存 //} //return totalItems; #endregion }
public DataTable GetDirectorOrderList(cloud_workpersonnel model) { return(cloud_workpersonneldal.GetDirectorOrderList(model)); #region 缓存用法 //DataTable dt = null; //object obj = CacheHelper.GetCache("cloud_workpersonnelBLL_getPageList"); //key一定要设置的有规律不重复类名+方法名 //if (obj != null) //{ // dt = (DataTable)obj; //} //else //{ // dt = cloud_workpersonneldal.getPageList(model); // CacheHelper.SetCacheAbsolute("cloud_workpersonnelBLL_getPageList", dt);//写入服务器缓存 //} //return dt; #endregion }
/// <summary> /// 售后回退工单更改工单信息 /// </summary> /// <param name="model"></param> /// <returns></returns> public bool UpdateOrderState(cloud_workpersonnel model) { return(cloud_workpersonneldal.UpdateOrderState(model)); }
/// <summary> /// 新增 /// </summary> /// <param name="model"></param> /// <returns></returns> public bool Insert(cloud_workpersonnel model) { return(cloud_workpersonneldal.Insert(model)); }
/// <summary> /// CRM分配订单 /// </summary> /// <param name="model"></param> /// <returns></returns> public bool CRMInsertwork(cloud_workpersonnel model) { return(cloud_workpersonneldal.CRMInsertwork(model)); }