1. CR구매현황 화면에서 SID가 없는 데이터는 표시되지 않습니다.
현재조건 : 상태값(진행,완료,완료(보고)) AND SID AND 구매요청수량>0 AND CR값 2. 구매수량 -> 구매요청 으로 글자가 변경되었습니다. (CR구매현황,파트리스트) 3. 파트리스트 글자를 부품목록 으로 변경(프로젝트목록,파트리스트) 4. 부품목록 화면 SID 컬럼 정렬기능 추가
This commit is contained in:
27
SubProject/FPJ0000/dsPRJ.Designer.cs
generated
27
SubProject/FPJ0000/dsPRJ.Designer.cs
generated
@@ -30219,28 +30219,19 @@ WHERE (idx = @idx)";
|
||||
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[4];
|
||||
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[0].Connection = this.Connection;
|
||||
this._commandCollection[0].CommandText = @"SELECT a.gcode, a.pdate, a.status, a.name, a.userManager, a.orderno, a.path, b.idx, b.no, b.Project, b.ItemGroup, b.ItemModel, b.ItemUnit, b.ItemName, b.ItemSid, b.ItemSupply, b.ItemSupplyidx,
|
||||
b.ItemManu, b.Item, b.option1, b.option2, b.option3, b.qty, b.qtyn, b.price, b.amt, b.amtn, b.jago, b.remark, b.memo, b.wuid, b.wdate, b.import, b.qtyjago, b.qtybuy, b.qtyin, b.bbuy, b.bconfirm,
|
||||
a.crdue
|
||||
FROM Projects AS a INNER JOIN
|
||||
ProjectsPart AS b ON a.idx = b.Project
|
||||
WHERE (a.gcode = @gcode) AND (ISNULL(b.qtybuy, 0) > 0) AND (a.status IN ('진행', '완료', '완료(보고)')) AND (ISNULL(b.bCancel, 0) = 0) AND (ISNULL(a.orderno, '') <> '') AND (ISNULL(b.bbuy, 0)
|
||||
= 0 OR
|
||||
ISNULL(b.bconfirm, 0) = 0 OR
|
||||
ISNULL(b.qtybuy, 0) > ISNULL(b.qtyin, 0))
|
||||
ORDER BY ISNULL(b.bbuy, 0), ISNULL(b.bconfirm, 0), ISNULL(a.userManager, ''), ISNULL(b.Project, 0)";
|
||||
this._commandCollection[0].CommandText = @"SELECT gcode, pdate, status, name, userManager, orderno, path, idx, no, Project, ItemGroup, ItemModel, ItemUnit, ItemName, ItemSid, ItemSupply, ItemSupplyidx, ItemManu, Item, option1, option2,
|
||||
option3, qty, qtyn, price, amt, amtn, jago, remark, memo, wuid, wdate, import, qtyjago, qtybuy, qtyin, bbuy, bconfirm, crdue
|
||||
FROM vProjectPartPurchase
|
||||
WHERE (gcode = @gcode)
|
||||
ORDER BY ISNULL(bbuy, 0), ISNULL(bconfirm, 0), ISNULL(userManager, ''), ISNULL(Project, 0)";
|
||||
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[0].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1] = new global::System.Data.SqlClient.SqlCommand();
|
||||
this._commandCollection[1].Connection = this.Connection;
|
||||
this._commandCollection[1].CommandText = @"SELECT a.gcode, a.pdate, a.status, a.name, a.userManager, a.orderno, a.path, b.idx, b.no, b.Project, b.ItemGroup, b.ItemModel, b.ItemUnit, b.ItemName, b.ItemSid, b.ItemSupply, b.ItemSupplyidx,
|
||||
b.ItemManu, b.Item, b.option1, b.option2, b.option3, b.qty, b.qtyn, b.price, b.amt, b.amtn, b.jago, b.remark, b.memo, b.wuid, b.wdate, b.import, b.qtyjago, b.qtybuy, b.qtyin, b.bbuy, b.bconfirm,
|
||||
a.crdue
|
||||
FROM Projects AS a INNER JOIN
|
||||
ProjectsPart AS b ON a.idx = b.Project
|
||||
WHERE (a.gcode = @gcode) AND (b.idx = @idx) AND (ISNULL(b.qtybuy, 0) > 0) AND (a.status IN ('진행', '완료', '완료(보고)')) AND (ISNULL(b.bbuy, 0) = 0 OR
|
||||
ISNULL(b.bconfirm, 0) = 0 OR
|
||||
ISNULL(b.qtybuy, 0) > ISNULL(b.qtyin, 0))";
|
||||
this._commandCollection[1].CommandText = @"SELECT gcode, pdate, status, name, userManager, orderno, path, idx, no, Project, ItemGroup, ItemModel, ItemUnit, ItemName, ItemSid, ItemSupply, ItemSupplyidx, ItemManu, Item, option1, option2,
|
||||
option3, qty, qtyn, price, amt, amtn, jago, remark, memo, wuid, wdate, import, qtyjago, qtybuy, qtyin, bbuy, bconfirm, crdue
|
||||
FROM vProjectPartPurchase
|
||||
WHERE (gcode = @gcode) AND (idx = @idx)";
|
||||
this._commandCollection[1].CommandType = global::System.Data.CommandType.Text;
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@gcode", global::System.Data.SqlDbType.VarChar, 10, global::System.Data.ParameterDirection.Input, 0, 0, "gcode", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
this._commandCollection[1].Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@idx", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "idx", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
|
||||
|
||||
Reference in New Issue
Block a user