//获取行 public static int GetCountguanli(int pageSize) { int rows = YQdal.Get_Rowsguanli(); if (rows % pageSize == 0) { return(rows / pageSize); } return(rows / pageSize + 1); }
//获取行 public static int GetCountlb(int pageSize) { int rows = YQdal.GetRowslb(); if (rows % pageSize == 0) { return(rows / pageSize); } return(rows / pageSize + 1); }
//产品类别 //分页查询 public static PageList Get_chanpinglbAll(int pageIndex, int pageSize) { return(YQdal.Get_chanpinglbAll(pageIndex, pageSize)); }
//修改 public static int Get_jiliangdanweiupdate(measurement m) { return(YQdal.Get_jiliangdanweiupdate(m)); }
//带id查询 public static IQueryable Get_jiliangdanweiByid(int MID) { return(YQdal.Get_jiliangdanweiByid(MID)); }
//计量单位 新增 public static int measurementadd(measurement k) { return(YQdal.measurementadd(k)); }
//删除 public static int Get_jiliangdanweiDel2(int id) { return(YQdal.Get_jiliangdanweiDel2(id)); }
//条件查询 public static IQueryable dtmeasurementQurey(int MID, string MName) { return(YQdal.dtmeasurementQurey(MID, MName)); }
//新增 public static int Get_chanpinlbAdd(productType p) { return(YQdal.Get_chanpinlbAdd(p)); }
//修改带id查询 public static IQueryable Get_chanpinglById(string cpID) { return(YQdal.Get_chanpinglById(cpID)); }
//分页 public static PageList fyqureyAll(int pageIndex, int pageSize) { return(YQdal.fyqureyAll(pageIndex, pageSize)); }
//删除状态 public static int Get_chanpinguanliDel(string cpID, int state) { return(YQdal.Get_chanpinguanliDel(cpID, state)); }
//新增 public static int Get_guanliAdd(productguanli p) { return(YQdal.Get_guanliAdd(p)); }
//库位下拉 public static IQueryable Get_cwxiala() { return(YQdal.Get_cwxiala()); }
//条件查询 public static IQueryable Get_chanpinguanlimohucha(string cpID, string cpName, int PID) { return(YQdal.Get_chanpinguanlimohucha(cpID, cpName, PID)); }
//修改 public static int Get_chanpinglupdate(productguanli p) { return(YQdal.Get_chanpinglupdate(p)); }
//模糊查询 public static IQueryable Get_chanpinlbmohucha(int PID, string PName) { return(YQdal.Get_chanpinlbmohucha(PID, PName)); }
//删除状态 public static int jiliangdanwei_Del(int MID, int state) { return(YQdal.jiliangdanwei_Del(MID, state)); }
//删除状态 public static int Get_chanpinlbDel(int PID, int state) { return(YQdal.Get_chanpinlbDel(PID, state)); }
//修改带id查询 public static IQueryable Get_chanpinlbById(int PID) { return(YQdal.Get_chanpinlbById(PID)); }