private void DoAddItem(string lotId, string processID, string stepSeq, string productID, int qty, DateTime tkin, DateTime tkout, DateTime toTime, GanttInfo info) { #if DEBUG if (lotId == "FAAA611A5") { } #endif DateTime endOfShiftTime = toTime; GanttBar splitBarA = null; GanttBar splitBarB = null; GanttBar currentBar = null; bool isSplit = false; // Shift Time에 걸쳐 있을 경우 if (tkin < endOfShiftTime && endOfShiftTime <= tkout) { splitBarA = new GanttBar(lotId, processID, stepSeq, productID, tkin, endOfShiftTime, qty, qty, EqpState.NONE); splitBarB = new GanttBar(lotId, processID, stepSeq, productID, endOfShiftTime, tkout, qty, qty, EqpState.NONE); splitBarA.IsShiftSplit = splitBarB.IsShiftSplit = isSplit = true; } else { currentBar = new GanttBar(lotId, processID, stepSeq, productID, tkin, tkout, qty, qty, EqpState.NONE); } if (isSplit == true) { info.AddItem(splitBarA.BarKey, splitBarA); info.AddItem(splitBarB.BarKey, splitBarB); } else { info.AddItem(currentBar.BarKey, currentBar); } }
private void DoAddItem( GanttInfo info, string productId, string processId, string layer, string stepId, string lotId, DateTime startTime, DateTime endTime, int qty, EqpState state, EqpMaster.Eqp eqpInfo, DataRow dispatchingInfo) { string shopID = info.ShopID; string eqpId = info.EqpID; string toolID = info.ToolID; ToolBar currentBar = new ToolBar( shopID, eqpId, productId, processId, layer, toolID, stepId, lotId, startTime, endTime, qty, state, eqpInfo, dispatchingInfo, false ); var barKey = state != EqpState.DOWN ? currentBar.BarKey : "DOWN"; if (barKey != string.Empty) { info.AddItem(barKey, currentBar, this.IsOnlyToolMode); } }