protected virtual void RQRequisitionLine_RowUpdating(PXCache sender, PXRowUpdatingEventArgs e)
        {
            RQRequisitionLine    row    = e.Row as RQRequisitionLine;
            RQRequisitionLineExt rowext = row.GetExtension <RQRequisitionLineExt>();

            if (rowext.PreventUpdate == true)
            {
                e.Cancel             = true;
                rowext.PreventUpdate = false;
            }
        }
        protected virtual void EnsureLine(RQRequisition row, RQRequisitionLine line, RQRequisitionLineExt lineext)
        {
            if (row.VendorID == null || row.VendorLocationID == null)
            {
                lineext.UsrPatternCost        = 0;
                lineext.UsrCuryPatternCost    = 0;
                lineext.UsrInitialCost        = 0;
                lineext.UsrCuryInitialCost    = 0;
                lineext.UsrCuryInitialExtCost = 0;
                lineext.UsrInitialExtCost     = 0;
            }
            else
            {
                PXCache   cache   = Base.Bidding.Cache;
                RQBidding bidding = PXSelect <RQBidding,
                                              Where <RQBidding.reqNbr, Equal <Required <RQBidding.reqNbr> >,
                                                     And <RQBidding.lineNbr, Equal <Required <RQBidding.lineNbr> >,
                                                          And <RQBidding.vendorID, Equal <Required <RQBidding.vendorID> >,
                                                               And <RQBidding.vendorLocationID, Equal <Required <RQBidding.vendorLocationID> > > > > > > .Select(Base, line.ReqNbr, line.LineNbr, row.VendorID, row.VendorLocationID);

                if (bidding != null)
                {
                    RQBiddingExt biddingext = bidding.GetExtension <RQBiddingExt>();

                    //Pattern
                    lineext.UsrCuryPatternCost = Tools.ConvertCurrency <RQRequisitionLine.curyInfoID>(Base.Lines.Cache, line, biddingext.UsrPatternCost ?? 0);
                    //Unit Cost
                    line.CuryEstUnitCost = Tools.ConvertCurrency <RQRequisitionLine.curyInfoID>(Base.Lines.Cache, line, bidding.QuoteUnitCost ?? 0);
                    //Ext Cost
                    line.CuryEstExtCost = Tools.ConvertCurrency <RQRequisitionLine.curyInfoID>(Base.Lines.Cache, line, bidding.QuoteExtCost ?? 0);
                    //Initial Cost
                    lineext.UsrCuryInitialCost = Tools.ConvertCurrency <RQRequisitionLine.curyInfoID>(Base.Lines.Cache, line, biddingext.UsrInitialCost ?? 0);
                    //Initial Ext Cost
                    lineext.UsrCuryInitialCost = Tools.ConvertCurrency <RQRequisitionLine.curyInfoID>(Base.Lines.Cache, line, biddingext.UsrInitialExtCost ?? 0);
                }
            }
        }
 public RequisitionLinesMergeResult(bool merged, RQRequisitionLine resultLine)
 {
     Merged     = merged;
     ResultLine = resultLine;
 }