public MessageResult GetUnitList(PageInfo pageInfo) { try { var result = unitBLL.GetUnitList(pageInfo.KeyId, pageInfo.KeyWord, pageInfo.IsShowDel, pageInfo.StartIndex, pageInfo.PageSize); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult CheckIsAddGoods(int gtypeId) { try { var list = gtBLL.CheckIsAddGoods(gtypeId); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult ExistName(string gtypeName) { try { var list = gtBLL.ExistName(gtypeName); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult GetAllGoodsTypes() { try { var list = gtBLL.LoadAllGoodsTypes(); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult LoadAllGoodsTypeList(string keywords, bool blShow) { try { var list = gtBLL.LoadAllGoodsTypeList(keywords, blShow); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult ExistsStoreType(string storeName) { try { var list = stBLL.ExistsStoreType(storeName); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult StoreTypeRecover(int id) { try { var result = stBLL.Recover(id); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult LoadAllDrpUnitTypes() { try { List <UnitTypeInfoModel> list = utBLL.LoadAllDrpUnitTypes(); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult UnitDelete(int id) { try { var result = unitBLL.Delete(id); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult UpdateUnitInfo(UnitInfoModel unitInfo) { try { var result = unitBLL.UpdateUnitInfo(unitInfo); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult ExistUnit(string unitName, int uTypeId) { try { var result = unitBLL.ExistUnit(unitName, uTypeId); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult GetUnitInfo(int unitId) { try { var result = unitBLL.GetUnitInfo(unitId); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult CheckUnitUse(int unitId) { try { var result = unitBLL.CheckUnitUse(unitId); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult GetUnitList(ReqQueryInfo reqQueryInfo) { try { var result = unitBLL.GetUnitList(reqQueryInfo.KeyID, reqQueryInfo.Name, reqQueryInfo.KeyWords); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult IsAddStores(int typeId) { try { var list = stBLL.IsAddStores(typeId); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult GetAllUnitTypes(string typeName) { try { var list = utBLL.GetAllUnitTypes(typeName); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult LoadAllDrpStoreTypes() { try { var list = stBLL.LoadAllDrpStoreTypes(); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult AddUnitType(UnitTypeInfoModel utInfo) { try { var list = utBLL.AddUnitType(utInfo); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult UpdateStoreType(StoreTypeInfoModel storeTypeInfo) { try { var list = stBLL.UpdateStoreType(storeTypeInfo); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult UpdateUnitType(UnitTypeInfoModelApi utInfo) { try { var list = utBLL.UpdateUnitType(utInfo.TypeInfoModel, utInfo.OldName); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult StoreTypeRecoverList(List <int> ids) { try { var result = stBLL.DeleteList(ids); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult IsAddUnits(int typeId) { try { var result = utBLL.IsAddUnits(typeId); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult GoodsList(PageInfo pageInfo) { try { PageModel <ViewGoodsInfoModel> list = goodsBLL.LoadGoodsList(pageInfo.KeyId, pageInfo.KeyWord, pageInfo.IsStopped, pageInfo.IsShowDel, pageInfo.StartIndex, pageInfo.PageSize); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult GetUTypeNameByKeywords(string keywords) { try { var result = utBLL.GetUTypeNameByKeywords(keywords); return(MessageResult.Success("单位信息", result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult GetGoodsType(int typeId) { try { var list = gtBLL.GetGoodsType(typeId); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult UnitLogicDeleteList(List <int> idList) { try { var result = unitBLL.LogicDeleteList(idList); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult HasChildTypes(int gTypeId) { try { var list = gtBLL.HasChildTypes(gTypeId); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult AddStoreInfo(StoreInfoModel storeInfo) { try { var list = storeBLL.AddStoreInfo(storeInfo); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult AddGoodsType(GoodsTypeInfoModel gtInfo) { try { var list = gtBLL.AddGoodsType(gtInfo); return(MessageResult.Success(list)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }
public MessageResult UpdatePerchaseInfo(PerchaseInStoreInfoApi perchaseInStoreInfoApi) { try { var result = perchaseInStoreBLL.UpdatePerchaseInfo(perchaseInStoreInfoApi.perchaseInStoreInfoModel, perchaseInStoreInfoApi.viewPerGoodsInfoModels); return(MessageResult.Success(result)); } catch (Exception ex) { return(MessageResult.Fail(ex.Message)); } }