public string GetAppLayoutCode(Guid appId) { string result = "0"; try { AppDataServiceFacade facade = new AppDataServiceFacade(); result = facade.GetAppLayoutCode(appId); } catch (Exception ex) { LogHelper.Error(string.Format("BACSV.GetAppLayoutCode服务异常。appId:{0} ", appId), ex); } return(result); }
public List <BacMenuForMobileDTO> GetAppMenuByNaviCode(Guid appId, Guid userId, string naviCode) { List <BacMenuForMobileDTO> result = new List <BacMenuForMobileDTO>(); try { AppDataServiceFacade facade = new AppDataServiceFacade(); //facade.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); result = facade.GetAppMenuByNaviCodeWithUserId(appId, naviCode, userId); } catch (Exception ex) { LogHelper.Error("BACSV.GetAppMenuByNaviCode异常,异常信息", ex); } return(result ?? new List <BacMenuForMobileDTO>()); }
public bool CheckFunctionExists(Guid appId, string functionCode) { bool isExist = false; try { // CreateTemplateAPKFacade facade = new CreateTemplateAPKFacade(); // facade.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); // isExist = facade.Instance.CheckFunctionExists(appId, functionCode); AppDataServiceFacade facade = new AppDataServiceFacade(); facade.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); isExist = facade.CheckFunctionExists(appId, functionCode); } catch (Exception ex) { LogHelper.Error("BACBP.CheckFunctionExists异常,异常信息", ex); } return(isExist); }
public Dictionary <string, string> GetAppFunctionPeropty(Guid appId, string functionCode) { var result = new Dictionary <string, string>(); if (appId == Guid.Empty || string.IsNullOrWhiteSpace(functionCode)) { return(result); } Jinher.AMP.BAC.ISV.Facade.AppDataServiceFacade facade = new AppDataServiceFacade(); try { facade.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); result = facade.GetAppFunctionPeropty(appId, functionCode); } catch (Exception ex) { LogHelper.Error(string.Format("BACSV.GetAppFunctionPeropty服务异常。appId:{0},functionCode:{1} ", appId, functionCode), ex); } return(result); }
public BacMenuForMobileDTO GetAppSingleMenuInfo(Guid appId, string menuCode) { var result = new BacMenuForMobileDTO(); if (appId == Guid.Empty || string.IsNullOrEmpty(menuCode)) { return(result); } Jinher.AMP.BAC.ISV.Facade.AppDataServiceFacade facade = new AppDataServiceFacade(); try { facade.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); result = facade.GetAppSingleMenuInfo(appId, menuCode); } catch (Exception ex) { LogHelper.Error(string.Format("BACSV.GetAppSingleMenuInfo服务异常。appId:{0},menuCode:{1} ", appId, menuCode), ex); } return(result); }
public List <BacFunctionMenuDTO> GetFunctionUsedInfo(Guid appId, List <string> functionCodes) { var result = new List <BacFunctionMenuDTO>(); if (appId == Guid.Empty || functionCodes == null || !functionCodes.Any()) { return(result); } Jinher.AMP.BAC.ISV.Facade.AppDataServiceFacade facade = new AppDataServiceFacade(); try { facade.ContextDTO = AuthorizeHelper.InitAuthorizeInfo(); result = facade.GetFunctionUsedInfo(appId, functionCodes); } catch (Exception ex) { LogHelper.Error(string.Format("BACSV.GetFunctionUsedInfo服务异常。appId:{0},functionCodes:{1} ", appId, functionCodes), ex); } return(result ?? new List <BacFunctionMenuDTO>()); }