|  | @@ -4614,202 +4614,296 @@ namespace OASystem.API.Controllers
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                          decimal insidePayTotal = _EnterExitCosts.InsidePay;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        string row1_1 = "";
 | 
	
		
			
				|  |  | -                        if (_EnterExitCosts.Visa > 0)
 | 
	
		
			
				|  |  | +                        //境内费用(其他费用)
 | 
	
		
			
				|  |  | +                        if (_EnterExitCosts.ChoiceOne == 1)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  | -                            //insidePayTotal += _EnterExitCosts.Visa;
 | 
	
		
			
				|  |  | -                            row1_1 = $"签证费: {_EnterExitCosts.Visa.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | -                            if (!string.IsNullOrEmpty(_EnterExitCosts.VisaRemark))
 | 
	
		
			
				|  |  | +                            string row1_1 = "";
 | 
	
		
			
				|  |  | +                            if (_EnterExitCosts.Visa > 0)
 | 
	
		
			
				|  |  |                              {
 | 
	
		
			
				|  |  | -                                row1_1 += $"\t签证费用描述: : {_EnterExitCosts.VisaRemark} 人民币/人";
 | 
	
		
			
				|  |  | +                                //insidePayTotal += _EnterExitCosts.Visa;
 | 
	
		
			
				|  |  | +                                row1_1 = $"签证费: {_EnterExitCosts.Visa.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | +                                if (!string.IsNullOrEmpty(_EnterExitCosts.VisaRemark))
 | 
	
		
			
				|  |  | +                                {
 | 
	
		
			
				|  |  | +                                    row1_1 += $"\t签证费用描述: : {_EnterExitCosts.VisaRemark} 人民币/人";
 | 
	
		
			
				|  |  | +                                }
 | 
	
		
			
				|  |  |                              }
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        string row1_2 = "";
 | 
	
		
			
				|  |  | -                        if (_EnterExitCosts.YiMiao > 0)
 | 
	
		
			
				|  |  | -                        {
 | 
	
		
			
				|  |  | -                            //insidePayTotal += _EnterExitCosts.YiMiao;
 | 
	
		
			
				|  |  | -                            row1_2 += $"疫苗费:{_EnterExitCosts.YiMiao.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | +                            string row1_2 = "";
 | 
	
		
			
				|  |  | +                            if (_EnterExitCosts.YiMiao > 0)
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  | +                                //insidePayTotal += _EnterExitCosts.YiMiao;
 | 
	
		
			
				|  |  | +                                row1_2 += $"疫苗费:{_EnterExitCosts.YiMiao.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                            if (_EnterExitCosts.HeSuan > 0)
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  | +                                //insidePayTotal += _EnterExitCosts.HeSuan;
 | 
	
		
			
				|  |  | +                                row1_2 += $"核酸检测费:{_EnterExitCosts.HeSuan.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                            if (_EnterExitCosts.Service > 0)
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  | +                                //insidePayTotal += _EnterExitCosts.Service;
 | 
	
		
			
				|  |  | +                                row1_2 += $"服务费:{_EnterExitCosts.Service.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                            string row1_3 = "";
 | 
	
		
			
				|  |  | +                            if (_EnterExitCosts.Safe > 0)
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  | +                                //insidePayTotal += _EnterExitCosts.Safe;
 | 
	
		
			
				|  |  | +                                row1_3 += $"保险费:{_EnterExitCosts.Safe.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                            if (_EnterExitCosts.Ticket > 0)
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  | +                                //insidePayTotal += _EnterExitCosts.Ticket;
 | 
	
		
			
				|  |  | +                                row1_3 += $"参展门票:{_EnterExitCosts.Ticket.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                            string row1 = "";
 | 
	
		
			
				|  |  | +                            if (!string.IsNullOrEmpty(row1_1)) row1 += $"{row1_1}\r\n";
 | 
	
		
			
				|  |  | +                            if (!string.IsNullOrEmpty(row1_2)) row1 += $"{row1_2}\r\n";
 | 
	
		
			
				|  |  | +                            if (!string.IsNullOrEmpty(row1_3)) row1 += $"{row1_3}";
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                            dic.Add("InsidePay", insidePayTotal.ToString("#0.00"));
 | 
	
		
			
				|  |  | +                            dic.Add("Row1Str", row1);
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -                        if (_EnterExitCosts.HeSuan > 0)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                        //经济舱
 | 
	
		
			
				|  |  | +                        if (_EnterExitCosts.SumJJC == 1)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  | -                            //insidePayTotal += _EnterExitCosts.HeSuan;
 | 
	
		
			
				|  |  | -                            row1_2 += $"核酸检测费:{_EnterExitCosts.HeSuan.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | +                            dic.Add("OutsideJJ", _EnterExitCosts.OutsideJJPay.ToString("#0.00"));
 | 
	
		
			
				|  |  | +                            dic.Add("AirJJ", _EnterExitCosts.AirJJ.ToString("#0.00"));
 | 
	
		
			
				|  |  | +                            
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -                        if (_EnterExitCosts.Service > 0)
 | 
	
		
			
				|  |  | +                        //公务舱
 | 
	
		
			
				|  |  | +                        if (_EnterExitCosts.SumGWC == 1)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  | -                            //insidePayTotal += _EnterExitCosts.Service;
 | 
	
		
			
				|  |  | -                            row1_2 += $"服务费:{_EnterExitCosts.Service.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | +                            dic.Add("OutsaideGW", _EnterExitCosts.OutsaideGWPay.ToString("#0.00"));
 | 
	
		
			
				|  |  | +                            dic.Add("AirGW", _EnterExitCosts.AirGW.ToString("#0.00"));
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        string row1_3 = "";
 | 
	
		
			
				|  |  | -                        if (_EnterExitCosts.Safe > 0)
 | 
	
		
			
				|  |  | +                        if (_EnterExitCosts.SumGWC == 1 || _EnterExitCosts.SumJJC == 1)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  | -                            //insidePayTotal += _EnterExitCosts.Safe;
 | 
	
		
			
				|  |  | -                            row1_3 += $"保险费:{_EnterExitCosts.Safe.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | -                        if (_EnterExitCosts.Ticket > 0)
 | 
	
		
			
				|  |  | -                        {
 | 
	
		
			
				|  |  | -                            //insidePayTotal += _EnterExitCosts.Ticket;
 | 
	
		
			
				|  |  | -                            row1_3 += $"参展门票:{_EnterExitCosts.Ticket.ToString("#0.00")} 人民币/人";
 | 
	
		
			
				|  |  | +                            if (_EnterExitCosts.CityTranffic != 0)
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  | +                                dic.Add("CityTranffic", _EnterExitCosts.CityTranffic.ToString("#0.00"));
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -                        string row1 = "";
 | 
	
		
			
				|  |  | -                        if (!string.IsNullOrEmpty(row1_1)) row1 += $"{row1_1}\r\n";
 | 
	
		
			
				|  |  | -                        if (!string.IsNullOrEmpty(row1_2)) row1 += $"{row1_2}\r\n";
 | 
	
		
			
				|  |  | -                        if (!string.IsNullOrEmpty(row1_3)) row1 += $"{row1_3}";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +                        NodeCollection allTables = doc.GetChildNodes(NodeType.Table, true);
 | 
	
		
			
				|  |  | +                        Aspose.Words.Tables.Table table1 = allTables[0] as Aspose.Words.Tables.Table;
 | 
	
		
			
				|  |  | +                        int table1Row = 0,
 | 
	
		
			
				|  |  | +                            table2Row = 0,
 | 
	
		
			
				|  |  | +                            table3Row = 0,
 | 
	
		
			
				|  |  | +                            table4Row = 0;
 | 
	
		
			
				|  |  | +                        //住宿费
 | 
	
		
			
				|  |  | +                        if (_EnterExitCosts.ChoiceThree == 1)
 | 
	
		
			
				|  |  | +                        {
 | 
	
		
			
				|  |  | +                            dic.Add("SubZS", stayFeeTotal.ToString("#0.00"));
 | 
	
		
			
				|  |  | +                            table1Row = dac1.Count;
 | 
	
		
			
				|  |  | +                            #region 填充word表格内容
 | 
	
		
			
				|  |  | +                            for (int i = 0; i < dac1.Count; i++)
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        dic.Add("InsidePay", insidePayTotal.ToString("#0.00"));
 | 
	
		
			
				|  |  | -                        dic.Add("Row1Str", row1);
 | 
	
		
			
				|  |  | +                                Grp_DayAndCost dac = dac1[i];
 | 
	
		
			
				|  |  | +                                if (dac == null) continue;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        dic.Add("OutsideJJ", _EnterExitCosts.OutsideJJPay.ToString("#0.00"));
 | 
	
		
			
				|  |  | -                        dic.Add("OutsaideGW", _EnterExitCosts.OutsaideGWPay.ToString("#0.00"));
 | 
	
		
			
				|  |  | -                        dic.Add("AirJJ", _EnterExitCosts.AirJJ.ToString("#0.00"));
 | 
	
		
			
				|  |  | -                        dic.Add("AirGW", _EnterExitCosts.AirGW.ToString("#0.00"));
 | 
	
		
			
				|  |  | -                        dic.Add("CityTranffic", _EnterExitCosts.CityTranffic.ToString("#0.00"));
 | 
	
		
			
				|  |  | -                        dic.Add("SubZS", stayFeeTotal.ToString("#0.00"));
 | 
	
		
			
				|  |  | -                        dic.Add("SubHS", mealsFeeTotal.ToString("#0.00"));
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(0, i, 0, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("第" + dac.Days.ToString() + "晚:");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        string miscellaneousFeeTotalStr = miscellaneousFeeTotal.ToString("#0.00");
 | 
	
		
			
				|  |  | -                        dic.Add("SubGZF", miscellaneousFeeTotalStr);
 | 
	
		
			
				|  |  | -                        //dic.Add("SubPX", tainFeeTotal.ToString("#0.00"));
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(0, i, 1, 0);
 | 
	
		
			
				|  |  | +                                //builder.Write(placeData.Find(it => it.Id == dac.NationalTravelFeeId)?.Country ?? "Unknown");
 | 
	
		
			
				|  |  | +                                //builder.Write(dac.Place == null ? "" : dac.Place);
 | 
	
		
			
				|  |  | +                                builder.Write(GetEnterExitCostExportCity(placeData, dac.NationalTravelFeeId));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        decimal subJJC = insidePayTotal + stayFeeTotal + mealsFeeTotal + miscellaneousFeeTotal + tainFeeTotal + _EnterExitCosts.OutsideJJPay;
 | 
	
		
			
				|  |  | -                        decimal subGWC = insidePayTotal + stayFeeTotal + mealsFeeTotal + miscellaneousFeeTotal + tainFeeTotal + _EnterExitCosts.OutsaideGWPay;
 | 
	
		
			
				|  |  | -                        dic.Add("SubJJC", subJJC.ToString("#0.00"));
 | 
	
		
			
				|  |  | -                        dic.Add("SubGWC", subGWC.ToString("#0.00"));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        #region 填充word模板书签内容
 | 
	
		
			
				|  |  | -                        foreach (var key in dic.Keys)
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(0, i, 2, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("费用标准:");
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                                string curr = "";
 | 
	
		
			
				|  |  | +                                var currData = _CurrDatas.Where(it => it.Id == dac.Currency).FirstOrDefault();
 | 
	
		
			
				|  |  | +                                if (currData != null)
 | 
	
		
			
				|  |  | +                                {
 | 
	
		
			
				|  |  | +                                    curr = currData.Name;
 | 
	
		
			
				|  |  | +                                }
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(0, i, 3, 0);
 | 
	
		
			
				|  |  | +                                builder.Write(dac.Cost.ToString("#0.00") + curr);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(0, i, 4, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("费用小计:");
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(0, i, 5, 0);
 | 
	
		
			
				|  |  | +                                builder.Write(dac.SubTotal.ToString("#0.00") + "CNY");
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                            
 | 
	
		
			
				|  |  | +                            #endregion
 | 
	
		
			
				|  |  | +                        }else dic.Add("SubZS","0.00");
 | 
	
		
			
				|  |  | +                        //删除多余行
 | 
	
		
			
				|  |  | +                        while (table1.Rows.Count > table1Row)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  | -                            builder.MoveToBookmark(key);
 | 
	
		
			
				|  |  | -                            builder.Write(dic[key]);
 | 
	
		
			
				|  |  | +                            table1.Rows.RemoveAt(table1Row);
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        #endregion
 | 
	
		
			
				|  |  | +                        //伙食费
 | 
	
		
			
				|  |  | +                        Aspose.Words.Tables.Table table2 = allTables[1] as Aspose.Words.Tables.Table;
 | 
	
		
			
				|  |  | +                        if (_EnterExitCosts.ChoiceFour == 1)
 | 
	
		
			
				|  |  | +                        {
 | 
	
		
			
				|  |  | +                            dic.Add("SubHS", mealsFeeTotal.ToString("#0.00"));
 | 
	
		
			
				|  |  | +                            table2Row = dac2.Count;
 | 
	
		
			
				|  |  | +                            #region 填充word表格内容
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        #region 填充word表格内容
 | 
	
		
			
				|  |  | +                            for (int i = 0; i < dac2.Count; i++)
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        ////获读取指定表格方法二
 | 
	
		
			
				|  |  | -                        NodeCollection allTables = doc.GetChildNodes(NodeType.Table, true);
 | 
	
		
			
				|  |  | -                        Aspose.Words.Tables.Table table1 = allTables[0] as Aspose.Words.Tables.Table;
 | 
	
		
			
				|  |  | -                        for (int i = 0; i < dac1.Count; i++)
 | 
	
		
			
				|  |  | -                        {
 | 
	
		
			
				|  |  | +                                Grp_DayAndCost dac = dac2[i];
 | 
	
		
			
				|  |  | +                                if (dac == null) continue;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            Grp_DayAndCost dac = dac1[i];
 | 
	
		
			
				|  |  | -                            if (dac == null) continue;
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(1, i, 0, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("第" + dac.Days.ToString() + "天:");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(0, i, 0, 0);
 | 
	
		
			
				|  |  | -                            builder.Write("第" + dac.Days.ToString() + "晚:");
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(1, i, 1, 0);
 | 
	
		
			
				|  |  | +                                builder.Write(GetEnterExitCostExportCity(placeData, dac.NationalTravelFeeId));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(0, i, 1, 0);
 | 
	
		
			
				|  |  | -                            //builder.Write(placeData.Find(it => it.Id == dac.NationalTravelFeeId)?.Country ?? "Unknown");
 | 
	
		
			
				|  |  | -                            //builder.Write(dac.Place == null ? "" : dac.Place);
 | 
	
		
			
				|  |  | -                            builder.Write(GetEnterExitCostExportCity(placeData, dac.NationalTravelFeeId));
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(1, i, 2, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("费用标准:");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +                                string curr = "";
 | 
	
		
			
				|  |  | +                                var currData = _CurrDatas.Where(it => it.Id == dac.Currency).FirstOrDefault();
 | 
	
		
			
				|  |  | +                                if (currData != null)
 | 
	
		
			
				|  |  | +                                {
 | 
	
		
			
				|  |  | +                                    curr = currData.Name;
 | 
	
		
			
				|  |  | +                                }
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(1, i, 3, 0);
 | 
	
		
			
				|  |  | +                                builder.Write(dac.Cost.ToString("#0.00") + curr);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(0, i, 2, 0);
 | 
	
		
			
				|  |  | -                            builder.Write("费用标准:");
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(1, i, 4, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("费用小计:");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            string curr = "";
 | 
	
		
			
				|  |  | -                            var currData = _CurrDatas.Where(it => it.Id == dac.Currency).FirstOrDefault();
 | 
	
		
			
				|  |  | -                            if (currData != null)
 | 
	
		
			
				|  |  | -                            {
 | 
	
		
			
				|  |  | -                                curr = currData.Name;
 | 
	
		
			
				|  |  | -                            }
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(0, i, 3, 0);
 | 
	
		
			
				|  |  | -                            builder.Write(dac.Cost.ToString("#0.00") + curr);
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(1, i, 5, 0);
 | 
	
		
			
				|  |  | +                                builder.Write(dac.SubTotal.ToString("#0.00") + "CNY");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(0, i, 4, 0);
 | 
	
		
			
				|  |  | -                            builder.Write("费用小计:");
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(0, i, 5, 0);
 | 
	
		
			
				|  |  | -                            builder.Write(dac.SubTotal.ToString("#0.00") + "CNY");
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | +                            #endregion
 | 
	
		
			
				|  |  | +                        }else dic.Add("SubHS","0.00");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                          //删除多余行
 | 
	
		
			
				|  |  | -                        while (table1.Rows.Count > dac1.Count)
 | 
	
		
			
				|  |  | +                        while (table2.Rows.Count > table2Row)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  | -                            table1.Rows.RemoveAt(dac1.Count);
 | 
	
		
			
				|  |  | +                            table2.Rows.RemoveAt(table2Row);
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        Aspose.Words.Tables.Table table2 = allTables[1] as Aspose.Words.Tables.Table;
 | 
	
		
			
				|  |  | -                        for (int i = 0; i < dac2.Count; i++)
 | 
	
		
			
				|  |  | +                        //公杂费
 | 
	
		
			
				|  |  | +                        Aspose.Words.Tables.Table table3 = allTables[2] as Aspose.Words.Tables.Table;
 | 
	
		
			
				|  |  | +                        if (_EnterExitCosts.ChoiceFive == 1)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  | +                            dic.Add("SubGZF", miscellaneousFeeTotal.ToString("#0.00"));
 | 
	
		
			
				|  |  | +                            table3Row = dac3.Count;
 | 
	
		
			
				|  |  | +                            #region 填充word表格内容
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            Grp_DayAndCost dac = dac2[i];
 | 
	
		
			
				|  |  | -                            if (dac == null) continue;
 | 
	
		
			
				|  |  | +                            for (int i = 0; i < dac3.Count; i++)
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  | +                                Grp_DayAndCost dac = dac3[i];
 | 
	
		
			
				|  |  | +                                if (dac == null) continue;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(1, i, 0, 0);
 | 
	
		
			
				|  |  | -                            builder.Write("第" + dac.Days.ToString() + "天:");
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(2, i, 0, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("第" + dac.Days.ToString() + "天:");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(1, i, 1, 0);
 | 
	
		
			
				|  |  | -                            builder.Write(GetEnterExitCostExportCity(placeData, dac.NationalTravelFeeId));
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(2, i, 1, 0);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(1, i, 2, 0);
 | 
	
		
			
				|  |  | -                            builder.Write("费用标准:");
 | 
	
		
			
				|  |  | +                                builder.Write(GetEnterExitCostExportCity(placeData, dac.NationalTravelFeeId));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            string curr = "";
 | 
	
		
			
				|  |  | -                            var currData = _CurrDatas.Where(it => it.Id == dac.Currency).FirstOrDefault();
 | 
	
		
			
				|  |  | -                            if (currData != null)
 | 
	
		
			
				|  |  | -                            {
 | 
	
		
			
				|  |  | -                                curr = currData.Name;
 | 
	
		
			
				|  |  | -                            }
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(1, i, 3, 0);
 | 
	
		
			
				|  |  | -                            builder.Write(dac.Cost.ToString("#0.00") + curr);
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(2, i, 2, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("费用标准:");
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                                string curr = "";
 | 
	
		
			
				|  |  | +                                var currData = _CurrDatas.Where(it => it.Id == dac.Currency).FirstOrDefault();
 | 
	
		
			
				|  |  | +                                if (currData != null)
 | 
	
		
			
				|  |  | +                                {
 | 
	
		
			
				|  |  | +                                    curr = currData.Name;
 | 
	
		
			
				|  |  | +                                }
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(2, i, 3, 0);
 | 
	
		
			
				|  |  | +                                builder.Write(dac.Cost.ToString("#0.00") + curr);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(1, i, 4, 0);
 | 
	
		
			
				|  |  | -                            builder.Write("费用小计:");
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(2, i, 4, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("费用小计:");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(1, i, 5, 0);
 | 
	
		
			
				|  |  | -                            builder.Write(dac.SubTotal.ToString("#0.00") + "CNY");
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(2, i, 5, 0);
 | 
	
		
			
				|  |  | +                                builder.Write(dac.SubTotal.ToString("#0.00") + "CNY");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        }
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                            //删除多余行
 | 
	
		
			
				|  |  | +                            while (table3.Rows.Count > table3Row)
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  | +                                table3.Rows.RemoveAt(table3Row);
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                            #endregion
 | 
	
		
			
				|  |  | +                        }else dic.Add("SubGZF", "0.00");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                          //删除多余行
 | 
	
		
			
				|  |  | -                        while (table2.Rows.Count > dac2.Count)
 | 
	
		
			
				|  |  | +                        while (table3.Rows.Count > table4Row)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  | -                            table2.Rows.RemoveAt(dac2.Count);
 | 
	
		
			
				|  |  | +                            table3.Rows.RemoveAt(table4Row);
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                        Aspose.Words.Tables.Table table3 = allTables[2] as Aspose.Words.Tables.Table;
 | 
	
		
			
				|  |  | -                        for (int i = 0; i < dac3.Count; i++)
 | 
	
		
			
				|  |  | +                        //培训费
 | 
	
		
			
				|  |  | +                        Aspose.Words.Tables.Table table4 = allTables[3] as Aspose.Words.Tables.Table;
 | 
	
		
			
				|  |  | +                        if (_EnterExitCosts.ChoiceSix == 1)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  | +                            dic.Add("SubPX", tainFeeTotal.ToString("#0.00"));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            Grp_DayAndCost dac = dac3[i];
 | 
	
		
			
				|  |  | -                            if (dac == null) continue;
 | 
	
		
			
				|  |  | +                            table4Row = dac4.Count;
 | 
	
		
			
				|  |  | +                            #region 填充word表格内容
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(2, i, 0, 0);
 | 
	
		
			
				|  |  | -                            builder.Write("第" + dac.Days.ToString() + "天:");
 | 
	
		
			
				|  |  | +                            for (int i = 0; i < dac4.Count; i++)
 | 
	
		
			
				|  |  | +                            {
 | 
	
		
			
				|  |  | +                                Grp_DayAndCost dac = dac4[i];
 | 
	
		
			
				|  |  | +                                if (dac == null) continue;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(2, i, 1, 0);
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(3, i, 0, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("第" + dac.Days.ToString() + "天:");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.Write(GetEnterExitCostExportCity(placeData, dac.NationalTravelFeeId));
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(3, i, 1, 0);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(2, i, 2, 0);
 | 
	
		
			
				|  |  | -                            builder.Write("费用标准:");
 | 
	
		
			
				|  |  | +                                builder.Write(GetEnterExitCostExportCity(placeData, dac.NationalTravelFeeId));
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            string curr = "";
 | 
	
		
			
				|  |  | -                            var currData = _CurrDatas.Where(it => it.Id == dac.Currency).FirstOrDefault();
 | 
	
		
			
				|  |  | -                            if (currData != null)
 | 
	
		
			
				|  |  | -                            {
 | 
	
		
			
				|  |  | -                                curr = currData.Name;
 | 
	
		
			
				|  |  | -                            }
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(2, i, 3, 0);
 | 
	
		
			
				|  |  | -                            builder.Write(dac.Cost.ToString("#0.00") + curr);
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(3, i, 2, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("费用标准:");
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                                string curr = "";
 | 
	
		
			
				|  |  | +                                var currData = _CurrDatas.Where(it => it.Id == dac.Currency).FirstOrDefault();
 | 
	
		
			
				|  |  | +                                if (currData != null)
 | 
	
		
			
				|  |  | +                                {
 | 
	
		
			
				|  |  | +                                    curr = currData.Name;
 | 
	
		
			
				|  |  | +                                }
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(3, i, 3, 0);
 | 
	
		
			
				|  |  | +                                builder.Write(dac.Cost.ToString("#0.00") + curr);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(2, i, 4, 0);
 | 
	
		
			
				|  |  | -                            builder.Write("费用小计:");
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(3, i, 4, 0);
 | 
	
		
			
				|  |  | +                                builder.Write("费用小计:");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                            builder.MoveToCell(2, i, 5, 0);
 | 
	
		
			
				|  |  | -                            builder.Write(dac.SubTotal.ToString("#0.00") + "CNY");
 | 
	
		
			
				|  |  | +                                builder.MoveToCell(3, i, 5, 0);
 | 
	
		
			
				|  |  | +                                builder.Write(dac.SubTotal.ToString("#0.00") + "CNY");
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                            
 | 
	
		
			
				|  |  | +                            #endregion
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +                        else dic.Add("SubPX","0.00");
 | 
	
		
			
				|  |  |                          //删除多余行
 | 
	
		
			
				|  |  | -                        while (table3.Rows.Count > dac3.Count)
 | 
	
		
			
				|  |  | +                        while (table4.Rows.Count > table4Row)
 | 
	
		
			
				|  |  | +                        {
 | 
	
		
			
				|  |  | +                            table4.Rows.RemoveAt(table4Row);
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                        decimal subJJC = insidePayTotal + stayFeeTotal + mealsFeeTotal + miscellaneousFeeTotal + tainFeeTotal + _EnterExitCosts.OutsideJJPay;
 | 
	
		
			
				|  |  | +                        dic.Add("SubJJC", subJJC.ToString("#0.00"));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                        decimal subGWC = insidePayTotal + stayFeeTotal + mealsFeeTotal + miscellaneousFeeTotal + tainFeeTotal + _EnterExitCosts.OutsaideGWPay;
 | 
	
		
			
				|  |  | +                        dic.Add("SubGWC", subGWC.ToString("#0.00"));
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                        #region 填充word模板书签内容
 | 
	
		
			
				|  |  | +                        foreach (var key in dic.Keys)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  | -                            table3.Rows.RemoveAt(dac3.Count);
 | 
	
		
			
				|  |  | +                            builder.MoveToBookmark(key);
 | 
	
		
			
				|  |  | +                            builder.Write(dic[key]);
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                          #endregion
 |