/// <summary>
 /// 给单行赋值
 /// </summary>
 /// <param name="lineDto"></param>
 /// <param name="line"></param>
 /// <param name="lineNum"></param>
 private void SetPrePaymentLine(PrePaymentLineDTO lineDto, UFIDA.U9.Cust.GS.FI.PrePaymentBE.PrePaymentLine line, int lineNum)
 {
     line.LineNum     = lineNum;
     line.SrcPOKey    = lineDto.PurchaseOrder;
     line.PrePayMoney = lineDto.PrePayMoney;
     line.ActualMoeny = lineDto.PrePayMoney;
 }
        /// <summary>
        /// 修改预付款通知单行中的挪出数量
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="lineDto"></param>
        private void UpdatePrePaymentLine(UFIDA.U9.Cust.GS.FI.PrePaymentBE.PrePayment doc, PrePaymentLineDTO lineDto)
        {
            UFIDA.U9.Cust.GS.FI.PrePaymentBE.PrePaymentLine line = UFIDA.U9.Cust.GS.FI.PrePaymentBE.PrePaymentLine.Finder.FindByID(lineDto.ID);
            if (line != null)
            {
                line.SumMoveMoney = line.SumMoveMoney + lineDto.ThisMoveMoney;

                if (line.SrcPO != null)
                {
                    UFIDA.U9.PM.PO.PurchaseOrder poDoc = UFIDA.U9.PM.PO.PurchaseOrder.Finder.FindByID(line.SrcPO.ID);
                    if (poDoc != null)
                    {
                        decimal sumMoveMoney = 0;
                        if (!string.IsNullOrEmpty(poDoc.DescFlexField.PrivateDescSeg6))
                        {
                            sumMoveMoney = decimal.Parse(poDoc.DescFlexField.PrivateDescSeg6);
                        }
                        sumMoveMoney = sumMoveMoney + lineDto.ThisMoveMoney;
                        poDoc.DescFlexField.PrivateDescSeg6 = sumMoveMoney.ToString();
                    }
                }
            }
        }
        /// <summary>
        /// 新增预付款通知单行
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="lineDto"></param>
        private void CreatePrePaymentLine(UFIDA.U9.Cust.GS.FI.PrePaymentBE.PrePayment doc, PrePaymentLineDTO lineDto, int lineNum)
        {
            UFIDA.U9.Cust.GS.FI.PrePaymentBE.PrePaymentLine line = UFIDA.U9.Cust.GS.FI.PrePaymentBE.PrePaymentLine.Create(doc);
            line.LineNum     = lineNum;
            line.SrcPOKey    = lineDto.PurchaseOrder;
            line.PrePayMoney = lineDto.PrePayMoney;
            line.ActualMoeny = lineDto.PrePayMoney;

            line.SrcMoveDocID   = lineDto.SrcMoveDocID;
            line.SrcMoveDocNo   = lineDto.SrcMoveDocNo;
            line.SrcMoveLineID  = lineDto.SrcMoveLineID;
            line.SrcMoveLineNum = lineDto.SrcMoveLineNum;
        }