private void fpIssueList_EditModeOff(object sender, EventArgs e) { eColView eActiveCol = (eColView)shtIssueList.ActiveColumnIndex; int ActiveRow = shtIssueList.ActiveRowIndex; NZString ItemCD = new NZString(null, shtIssueList.Cells[ActiveRow, (int)eColView.ITEM_CODE].Value); NZString LotNo = new NZString(null, shtIssueList.Cells[ActiveRow, (int)eColView.LOT_NO].Value); NZString LocCD = new NZString(cboFromLoc, cboFromLoc.SelectedValue); switch (eActiveCol) { case eColView.ITEM_CODE: shtIssueList.Cells[ActiveRow, (int)eColView.ONHAND_QTY].Value = GetOnhandQty(ItemCD, LocCD, LotNo); break; case eColView.LOT_NO: // Load Onhand qty shtIssueList.Cells[ActiveRow, (int)eColView.ONHAND_QTY].Value = GetOnhandQty(ItemCD, LocCD, LotNo); break; } }
private void fpShipList_EditModeOff(object sender, EventArgs e) { eColView eActiveCol = (eColView)shtCustomerOrder.ActiveColumnIndex; int ActiveRow = shtCustomerOrder.ActiveRowIndex; /*NZString ItemCD = new NZString(null, shtCustomerOrder.Cells[ActiveRow, (int)eColView.PART_NO].Value); * NZString LotNo = new NZString(null, shtCustomerOrder.Cells[ActiveRow, (int)eColView.LOT_NO].Value); * NZString PackNo = new NZString(null, shtCustomerOrder.Cells[ActiveRow, (int)eColView.PACK_NO].Value); * * * switch (eActiveCol) * { * case eColView.PART_NO: * // check item cd * //if (ItemCD.StrongValue == m_SelectedDataRow.ITEM_CODE.StrongValue) * //{ * // break; * //} * if (CheckFromSpread_ItemCD(ActiveRow)) * { * // do something if item found * * * * // Load Lot control * LookupDataBIZ bizLookup = new LookupDataBIZ(); * * // Load Onhand qty * * * // re sort spread by item code * //shtCustomerOrder.SortRows((int)eColView.PART_NO, true, true); * } * else * { * shtCustomerOrder.SetActiveCell(ActiveRow, shtCustomerOrder.ActiveColumnIndex); * } * break; * }*/ }