Пример #1
0
 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));
     }
 }
Пример #2
0
 public MessageResult CheckIsAddGoods(int gtypeId)
 {
     try
     {
         var list = gtBLL.CheckIsAddGoods(gtypeId);
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #3
0
 public MessageResult ExistName(string gtypeName)
 {
     try
     {
         var list = gtBLL.ExistName(gtypeName);
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #4
0
 public MessageResult GetAllGoodsTypes()
 {
     try
     {
         var list = gtBLL.LoadAllGoodsTypes();
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #5
0
 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));
     }
 }
Пример #6
0
 public MessageResult ExistsStoreType(string storeName)
 {
     try
     {
         var list = stBLL.ExistsStoreType(storeName);
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #7
0
 public MessageResult StoreTypeRecover(int id)
 {
     try
     {
         var result = stBLL.Recover(id);
         return(MessageResult.Success(result));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #8
0
 public MessageResult LoadAllDrpUnitTypes()
 {
     try
     {
         List <UnitTypeInfoModel> list = utBLL.LoadAllDrpUnitTypes();
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #9
0
 public MessageResult UnitDelete(int id)
 {
     try
     {
         var result = unitBLL.Delete(id);
         return(MessageResult.Success(result));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #10
0
 public MessageResult UpdateUnitInfo(UnitInfoModel unitInfo)
 {
     try
     {
         var result = unitBLL.UpdateUnitInfo(unitInfo);
         return(MessageResult.Success(result));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #11
0
 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));
     }
 }
Пример #12
0
 public MessageResult GetUnitInfo(int unitId)
 {
     try
     {
         var result = unitBLL.GetUnitInfo(unitId);
         return(MessageResult.Success(result));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #13
0
 public MessageResult CheckUnitUse(int unitId)
 {
     try
     {
         var result = unitBLL.CheckUnitUse(unitId);
         return(MessageResult.Success(result));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #14
0
 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));
     }
 }
Пример #15
0
 public MessageResult IsAddStores(int typeId)
 {
     try
     {
         var list = stBLL.IsAddStores(typeId);
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #16
0
 public MessageResult GetAllUnitTypes(string typeName)
 {
     try
     {
         var list = utBLL.GetAllUnitTypes(typeName);
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #17
0
 public MessageResult LoadAllDrpStoreTypes()
 {
     try
     {
         var list = stBLL.LoadAllDrpStoreTypes();
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #18
0
 public MessageResult AddUnitType(UnitTypeInfoModel utInfo)
 {
     try
     {
         var list = utBLL.AddUnitType(utInfo);
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #19
0
 public MessageResult UpdateStoreType(StoreTypeInfoModel storeTypeInfo)
 {
     try
     {
         var list = stBLL.UpdateStoreType(storeTypeInfo);
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #20
0
 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));
     }
 }
Пример #21
0
 public MessageResult StoreTypeRecoverList(List <int> ids)
 {
     try
     {
         var result = stBLL.DeleteList(ids);
         return(MessageResult.Success(result));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #22
0
 public MessageResult IsAddUnits(int typeId)
 {
     try
     {
         var result = utBLL.IsAddUnits(typeId);
         return(MessageResult.Success(result));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #23
0
 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));
     }
 }
Пример #24
0
 public MessageResult GetUTypeNameByKeywords(string keywords)
 {
     try
     {
         var result = utBLL.GetUTypeNameByKeywords(keywords);
         return(MessageResult.Success("单位信息", result));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #25
0
 public MessageResult GetGoodsType(int typeId)
 {
     try
     {
         var list = gtBLL.GetGoodsType(typeId);
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #26
0
 public MessageResult UnitLogicDeleteList(List <int> idList)
 {
     try
     {
         var result = unitBLL.LogicDeleteList(idList);
         return(MessageResult.Success(result));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #27
0
 public MessageResult HasChildTypes(int gTypeId)
 {
     try
     {
         var list = gtBLL.HasChildTypes(gTypeId);
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #28
0
 public MessageResult AddStoreInfo(StoreInfoModel storeInfo)
 {
     try
     {
         var list = storeBLL.AddStoreInfo(storeInfo);
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #29
0
 public MessageResult AddGoodsType(GoodsTypeInfoModel gtInfo)
 {
     try
     {
         var list = gtBLL.AddGoodsType(gtInfo);
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Пример #30
0
 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));
     }
 }