public ISlideCollection _plus_jp_dongyuandichan_1(string str, int cjbh) { try { var param = Cache_param_zb._param_jp.Where(m => m.cjid == cjbh); var p = new Presentation(); var t = p.Slides; t.RemoveAt(0); foreach (var item in param) { var tp = new Presentation(str); var temp = tp.Slides; #region 格局统计 var page = temp[0]; IAutoShape text1 = (IAutoShape)page.Shapes[0]; text1.TextFrame.Text = string.Format(text1.TextFrame.Text, item.bamc); System.Data.DataTable dt = new System.Data.DataTable(); dt.Columns.Add(Base_Config_Jzgj.项目名称); dt.Columns.Add(Base_Config_Jzgj.业态); dt.Columns.Add(Base_Config_Cjba.本周_备案套数); dt.Columns.Add(Base_Config_Cjba.本周_建面均价); dt.Columns.Add(Base_Config_Rgsj.本周_认购套数); dt.Columns.Add(Base_Config_Rgsj.本周_认购建面均价); dt.Columns.Add(Base_Config_Rgsj.本周_营销动作); if (item.jpxmlb != null && item.jpxmlb.Count > 0) { dt = GET_JPXM_BX(dt, item.jpxmlb); Office_Tables.SetJP_DongYuanDiChan_JPBX_Table(page, dt, 1, null, null); t.AddClone(page); } #endregion } return(t); } catch (Exception) { return(null); } }