public _UnitSummary(UnitSummaryStruct Ustruct) { m_Source = new CTEntitiesQuantityUnitSummary(); this.m_Struct = Ustruct; switch (Ustruct.SummaryType) { case UnitSummaryType.清单: QDSummary(); //清单的汇总 break; case UnitSummaryType.单位工程: UnitSummary(); //单位工程汇总 break; case UnitSummaryType.工料机汇总: QuantityUnitSummary(); //工料机汇总 break; case UnitSummaryType.分解配合比: DecompositionMix(); //分解配合比 break; case UnitSummaryType.分解机械台班: JiXieTaiBan(); //分解机械台班 break; default: break; } }
private void QDSummary() { m_Source = new CTEntitiesQuantityUnitSummary(); DataRow[] rows = m_DataTable.Select(string.Format("QID={0}", m_key)); getSumary(rows); }