프로젝트 목록에 업데이트 칸 추가 하고 정렬기능에도 추가

This commit is contained in:
chi
2023-09-07 23:03:16 +09:00
parent d3fd0c1468
commit 01e29029c4
8 changed files with 1532 additions and 1331 deletions

View File

@@ -67,6 +67,7 @@ namespace FPJ0000
"Project No",
"검토기한",
"만료일자",
"업데이트",
});
chk검토_CheckedChanged(this.chk검토, null);
@@ -212,7 +213,8 @@ namespace FPJ0000
"dbo.getUserName2(assemblyid,userAssembly) as name_assembly," +
"dbo.getUserName2(epanelid,userhw2) as name_epanel," +
"dbo.getUserName2(softwareid,usersub) as name_software,category," +
"ReqLine,ReqSite,ReqPackage,ReqPlant,pno,kdate,jasmin,sfi,'' AS lasthistoryD" +
"ReqLine,ReqSite,ReqPackage,ReqPlant,pno,kdate,jasmin,sfi,'' AS lasthistoryD," +
"(select max(pdate) from ProjectsHistory where pidx = Projects.idx) as lasthistory_date" +
" FROM Projects";
//string State_Select = " SELECT [idx],[pidx],[gcode],[isdel],[status],[asset],[level],[rev],[process],[part],[pdate],[name],[userManager],[usermain],[usersub],[userhw2],[reqstaff],[costo],[costn],[cnt],[remark_req],[remark_ans],[sdate],[ddate],[edate],[odate],[progress],[memo],[wuid],[wdate],[orderno],[crdue],[import],[path],[userprocess],[bCost],[bFanOut],[div],dbo.getScheduleProgress(idx) as ProgressPrj, dbo.getLastHistory(idx) AS lasthistory, dbo.getWorkWeek(sdate) AS wws, dbo.getWorkWeek(odate) AS wwo, dbo.getWorkWeek(edate) AS wwe, dbo.getWorkWeek(ddate) AS wwd FROM Projects";
string State_where = " WHERE gcode=@gcode and isnull(div,'') <> 'EB' and ";
@@ -765,6 +767,9 @@ namespace FPJ0000
case 12: //만료일자
this.bs.Sort = "ddate desc";
break;
case 13: //업데이트
this.bs.Sort = "lasthistory_date";
break;
default:
this.bs.Sort = "";
break;