/// <summary> /// 获取所有提成比例 /// </summary> /// <returns></returns> public static Dt_commission[] query() { try { return(Dt_commissionDao.FindAll(new EqExpression("Isdeleted", (int)EnmIsdeleted.使用中))); } catch (Exception ex) { Log.Error(ex.Message); MessageHelper.ShowMessage("E999", ex.Message); return(null); } }
/// <summary> /// 查询 /// </summary> /// <param name="obj"></param> /// <returns></returns> public static Dt_commission QueryById(int id) { try { Dt_commission c = Dt_commissionDao.FindFirst(new Order("Id", true), new EqExpression("Isdeleted", (int)EnmIsdeleted.使用中)); return(c); //return true; } catch (Exception ex) { Log.Error(ex.Message); return(null); } }
/// <summary> /// 查询 /// </summary> /// <param name="obj"></param> /// <returns></returns> public static Dt_commission[] Query() { try { Dt_commission[] c = Dt_commissionDao.FindAll(new Order("Name", true), new EqExpression("Isdeleted", (int)EnmIsdeleted.使用中)); return(c); //return true; } catch (Exception ex) { Log.Error(ex.Message); return(null); } }
/// <summary> /// 获取所有提成比例 /// </summary> /// <returns></returns> public static Dt_commission queryById(int salerId) { try { Dt_userratio ur = Dt_userratioDao.FindFirst(new EqExpression("Salerid", salerId)); if (ur != null) { return(Dt_commissionDao.FindFirst(new EqExpression("Id", ur.Ratio))); } else { return(null); } } catch (Exception ex) { Log.Error(ex.Message); MessageHelper.ShowMessage("E999", ex.Message); return(null); } }