본문 바로가기
반응형

분류 전체보기4830

쿼리 퀴즈문제 --명구선배님 [퀴즈] 출판업 출고테이블이 있습니다. 출고 및 반품 처리시 입력된 거래처 와 품목코드에 해당하는 가장 최근 날짜에 입력된 출고율을 그대로 이번 출고 반품 처리시에도 적용하기 위해서 세부내역 첫번째 컬럼 아이템코드에 아이템코드를 입력하고 키다운시 출고율을 가져와야 합니다. 이때 쿼리는 얼케 짤까? 테이블 t_sale_deliverysub 컬럼 gubun , itemcode , custcode , outrate , condate 기본조회 select outrate from t_sale_deliverysub where gubun='01' and custcode='?????' and itemcode='?????' 내일아침까지 가장 최적화된 쿼리를 짜보세용 아마 위에 예시가 이경우만이 아니라 많은.. 2008. 11. 20.
ultrawebgrid의 예외처리에러 When batching, the command's UpdatedRowSource property value of UpdateRowSource.FirstReturnedRecord or UpdateRowSource.Both is invalid 예외발생상황 When batching, the command's UpdatedRowSource property value of UpdateRowSource.FirstReturnedRecord or UpdateRowSource.Both is invalid 배치 업데이트를 수행하기 위해 추가적으로 설정해야 할 작업은 추가/수정/삭제 커맨드의 UpdateRowSource 속성의 값을 None 혹은 OutputParameters 로 설정해야 한다는 것이다. UpdateRowSource 속성은 추가/수정/삭제의 업데이트 결과를 어떻게 받아올 것인가를 지정하는 속성으로써 UpdateRowSource 열거 타입인 None, OutputParameter, FirstReturnedRecord, Both 중 하나의 값으로.. 2008. 11. 20.
2개씩 홀수, 짝수로 가로 뽑아서 세로로 세울때 2005에서만 가능함 명구선배님 쿼리 with h_gub_rule1CTE (rownum , plusname , scode , sname) AS ( select row_number() over(order by gub_scode) as rownum , a.gub_scode + '@' + b.sd_name as plusname , a.gub_scode as scode , b.sd_name as sname from h_gub_rule as a left outer join h_sudang as b on a.gub_gubun = b.sd_gubun and a.gub_scode = b.sd_code WHERE a.gub_gubun ='01' and a.gub_month ='200811' and {fn substrin.. 2008. 11. 20.
Want DropDownList in Column to 'always' display in grid 컬럼의 속성을 dropdownlist으로 하면 드랍다운으로 나온다. 하지만 클릭시에만 드랍다운로드 된다. 컬럼Type을 버튼으로 설정을하고 아래 코드를 하면 col.CellButtonDisplay = CellButtonDisplay.Always; 라고 설정을하면 항상 버튼으로 나온다. 하지만 드랍다운의 경우는 블가능하다고 한다. http://forums.infragistics.com/forums/p/9187/35771.aspx#35771 여러 문제가 있단다. 그래서 webcombo나 templatecolumn을 하란다. 블로그에서 게시된 글 The WebGrid doesn't allow you to do this by default. When dealing with a web application, pe.. 2008. 11. 18.
반응형