[FrontednWebApi] 調整昇位圖卡片排序
This commit is contained in:
		
							parent
							
								
									569deab3f7
								
							
						
					
					
						commit
						4606f1bdc0
					
				@ -71,7 +71,7 @@ namespace Backend.Controllers
 | 
			
		||||
            var showview = backendRepository.GetAllAsync<string>($@"select ap.ShowView from userinfo us
 | 
			
		||||
            left join role_auth ra on ra.role_guid = us.role_guid
 | 
			
		||||
            left join auth_page ap on ap.AuthCode = ra.AuthCode
 | 
			
		||||
            where us.userinfo_guid = '{myUserInfo.Userinfo_guid}'");
 | 
			
		||||
            where us.userinfo_guid = '{myUserInfo.Userinfo_guid}' and ap.ShowView is not null");
 | 
			
		||||
            myUserInfo.ShowView = showview.Result;
 | 
			
		||||
 | 
			
		||||
            ViewBag.myUserInfo = myUserInfo;
 | 
			
		||||
 | 
			
		||||
@ -251,7 +251,7 @@ namespace FrontendWebApi.ApiControllers
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 設備列表
 | 
			
		||||
        /// 系統監控內頁 - 設備列表
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        /// <param name="fd">floor_tag: null->總覽</param>
 | 
			
		||||
        /// <returns></returns>
 | 
			
		||||
@ -270,7 +270,7 @@ namespace FrontendWebApi.ApiControllers
 | 
			
		||||
            else if (string.IsNullOrEmpty(fd.building_tag))
 | 
			
		||||
            {
 | 
			
		||||
                apiResult.Code = "0002";
 | 
			
		||||
                apiResult.Msg = "必須選擇東別";
 | 
			
		||||
                apiResult.Msg = "必須選擇棟別";
 | 
			
		||||
                return BadRequest(apiResult);
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
@ -294,7 +294,8 @@ namespace FrontendWebApi.ApiControllers
 | 
			
		||||
                                   from device d
 | 
			
		||||
                                   left join device_kind dk on d.device_building_tag = dk.device_building_tag and d.device_system_tag = dk.device_system_tag
 | 
			
		||||
			                                   and d.device_name_tag = dk.device_name_tag
 | 
			
		||||
                                   where d.deleted = 0 and d.device_name_tag = @sub_system_tag and d.device_building_tag = @building_tag and d.device_floor_tag = @floor_tag";
 | 
			
		||||
                                   where d.deleted = 0 and d.device_name_tag = @sub_system_tag and d.device_building_tag = @building_tag and d.device_floor_tag = @floor_tag
 | 
			
		||||
                                   order by  d.device_number";
 | 
			
		||||
                    var dlParam = new { @sub_system_tag = fd.sub_system_tag, @building_tag = fd.building_tag, @floor_tag = f.full_name };
 | 
			
		||||
                    dl = await backendRepository.GetAllAsync<DeviceLists>(sqlString, dlParam);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user