/// <summary> /// 根据计划信息自动生成施工进度 /// </summary> /// <param name="ProjGuid"></param> /// <param name="ConstructYear"></param> /// <param name="ConstructMonth"></param> public static void CstrctScheduleByPlan(string ProjGuid, string ConstructYear, string ConstructMonth) { DataSet DataPlan = IMCBaseInfo.GetCstrctPlanByProjGuid(ProjGuid); DataSet DataSchedule = IMCBaseInfo.GetCstrctScheduleByProjGuid(ProjGuid); if (DataPlan != null && DataPlan.Tables[0].Rows.Count > 0) { for (int i = 0; i < DataPlan.Tables[0].Rows.Count; i++) { string planguid = DataPlan.Tables[0].Rows[i]["Guid"].ToString(); if (planguid != "") { DataRow[] rows = DataSchedule.Tables[0].Select("ItemsPlanGuid='" + planguid + "' and ConstructMonth='" + ConstructMonth + "'"); if (rows.Length == 0) { IMCBaseInfo.CstrctScheduleByPlan(ProjGuid, planguid, ConstructYear, ConstructMonth);//planguid 概算明细主键 } } } } }