Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #4
0
 public MessageResult GetAllGoodsTypes()
 {
     try
     {
         var list = gtBLL.LoadAllGoodsTypes();
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #8
0
 public MessageResult LoadAllDrpUnitTypes()
 {
     try
     {
         List <UnitTypeInfoModel> list = utBLL.LoadAllDrpUnitTypes();
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #17
0
 public MessageResult LoadAllDrpStoreTypes()
 {
     try
     {
         var list = stBLL.LoadAllDrpStoreTypes();
         return(MessageResult.Success(list));
     }
     catch (Exception ex)
     {
         return(MessageResult.Fail(ex.Message));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }
Exemple #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));
     }
 }