示例#1
0
 private void button_Test_Click(object sender, EventArgs e)
 {
     decimal ClinkerPowerConsumption            = EnergyConsumption_V1.GetClinkerPowerConsumption();
     decimal ClinkerCoalConsumption             = EnergyConsumption_V1.GetClinkerCoalConsumption();
     decimal ClinkerEnergyConsumption           = EnergyConsumption_V1.GetClinkerEnergyConsumption(ClinkerPowerConsumption, ClinkerCoalConsumption);
     decimal CementPowerConsumption             = EnergyConsumption_V1.GetCementPowerConsumption(ClinkerPowerConsumption);
     decimal CementCoalConsumption              = EnergyConsumption_V1.GetCementCoalConsumption(ClinkerCoalConsumption);
     decimal CementEnergyConsumption            = EnergyConsumption_V1.GetCementEnergyConsumption(CementPowerConsumption, CementCoalConsumption);
     decimal ClinkerPowerConsumptionComparable  = EnergyConsumption_V1.GetClinkerPowerConsumptionComparable();
     decimal ClinkerCoalConsumptionComparable   = EnergyConsumption_V1.GetClinkerCoalConsumptionComparable();
     decimal ClinkerEnergyConsumptionComparable = EnergyConsumption_V1.GetClinkerEnergyConsumptionComparable(ClinkerPowerConsumptionComparable, ClinkerCoalConsumptionComparable);
     decimal CementPowerConsumptionComparable   = EnergyConsumption_V1.GetCementPowerConsumptionComparable(ClinkerPowerConsumption);
     decimal CementCoalConsumptionComparable    = EnergyConsumption_V1.GetCementCoalConsumptionComparable(CementCoalConsumption);
     decimal CementEnergyConsumptionComparable  = EnergyConsumption_V1.GetCementEnergyConsumptionComparable(CementPowerConsumptionComparable, CementCoalConsumptionComparable);
 }
示例#2
0
        public static IEnumerable <Model_DataItem> GetReportData(string organizationId, string datetime)
        {
            DataTable             m_ProcessValueTable = DayConsumptionReportService.GetDataFromBalanceTable(datetime, datetime, organizationId);
            List <Model_DataItem> DataItems           = new List <Model_DataItem>();

            ///////////////////////////工序电量、电耗以及产量///////////////////////
            if (m_ProcessValueTable != null)
            {
                foreach (DataRow m_RowItem in m_ProcessValueTable.Rows)
                {
                    Model_DataItem m_DataItem = new Model_DataItem();
                    m_DataItem.ID    = m_RowItem["DictionaryKey"].ToString();
                    m_DataItem.Value = ((decimal)m_RowItem["Value"]).ToString("#0.00");
                    DataItems.Add(m_DataItem);
                }
            }
            ////////////////////////初始化综合能耗计算参数/////////////////
            DataTable m_ClinkerComprehensiveDataTable = DayConsumptionReportService.GetClinkerComprehensiveData(datetime, datetime, organizationId);

            Standard_GB16780_2012.Parameters_ComprehensiveData  m_Parameters_ComprehensiveData  = DayConsumptionReportService.SetComprehensiveDataParameters(organizationId, datetime);
            Standard_GB16780_2012.Function_EnergyConsumption_V1 m_Function_EnergyConsumption_V1 = new Standard_GB16780_2012.Function_EnergyConsumption_V1();
            ///////////////////////////熟料综合电耗、煤耗、能耗///////////////////////////


            m_Function_EnergyConsumption_V1.LoadComprehensiveData(m_ClinkerComprehensiveDataTable, m_Parameters_ComprehensiveData, "VariableId", "Value");

            decimal        m_ClinkerPowerConsumption     = m_Function_EnergyConsumption_V1.GetClinkerPowerConsumption();
            decimal        m_ClinkerCoalConsumption      = m_Function_EnergyConsumption_V1.GetClinkerCoalConsumption();
            decimal        m_ClinkerEnergyConsumption    = m_Function_EnergyConsumption_V1.GetClinkerEnergyConsumption(m_ClinkerPowerConsumption, m_ClinkerCoalConsumption);
            Model_DataItem m_ClinkerPowerConsumptionItem = new Model_DataItem();

            m_ClinkerPowerConsumptionItem.ID    = "zc_nxjc_byc_byf_clinker_ElectricityConsumption_Comprehensive";
            m_ClinkerPowerConsumptionItem.Value = m_ClinkerPowerConsumption.ToString("#0.00");
            DataItems.Add(m_ClinkerPowerConsumptionItem);
            Model_DataItem m_ClinkerCoalConsumptionItem = new Model_DataItem();

            m_ClinkerCoalConsumptionItem.ID    = "zc_nxjc_byc_byf_clinker_CoalConsumption_Comprehensive";
            m_ClinkerCoalConsumptionItem.Value = m_ClinkerCoalConsumption.ToString("#0.00");
            DataItems.Add(m_ClinkerCoalConsumptionItem);
            Model_DataItem m_ClinkerEnergyConsumptionItem = new Model_DataItem();

            m_ClinkerEnergyConsumptionItem.ID    = "zc_nxjc_byc_byf_clinker_EnergyConsumption_Comprehensive";
            m_ClinkerEnergyConsumptionItem.Value = m_ClinkerEnergyConsumption.ToString("#0.00");
            DataItems.Add(m_ClinkerEnergyConsumptionItem);
            ///////////////////////////水泥磨综合电耗、煤耗、能耗///////////////////////////
            DataTable m_CementComprehensiveDataTable = DayConsumptionReportService.GetCementComprehensiveData(datetime, datetime, organizationId);

            //m_Function_EnergyConsumption_V1.ClearPropertiesList();

            m_Function_EnergyConsumption_V1.LoadComprehensiveData(m_CementComprehensiveDataTable, m_Parameters_ComprehensiveData, "VariableId", "Value");

            decimal        m_CementPowerConsumption     = m_Function_EnergyConsumption_V1.GetCementPowerConsumption(m_ClinkerPowerConsumption);
            decimal        m_CementCoalConsumption      = m_Function_EnergyConsumption_V1.GetCementCoalConsumption(m_ClinkerCoalConsumption);
            decimal        m_CementEnergyConsumption    = m_Function_EnergyConsumption_V1.GetCementEnergyConsumption(m_CementPowerConsumption, m_CementCoalConsumption);
            Model_DataItem m_CementPowerConsumptionItem = new Model_DataItem();

            m_CementPowerConsumptionItem.ID    = "zc_nxjc_byc_byf_cementmill_ElectricityConsumption_Comprehensive";
            m_CementPowerConsumptionItem.Value = m_CementPowerConsumption.ToString("#0.00");
            DataItems.Add(m_CementPowerConsumptionItem);
            Model_DataItem m_CementCoalConsumptionItem = new Model_DataItem();

            m_CementCoalConsumptionItem.ID    = "zc_nxjc_byc_byf_cementmill_CoalConsumption_Comprehensive";
            m_CementCoalConsumptionItem.Value = m_CementCoalConsumption.ToString("#0.00");
            DataItems.Add(m_CementCoalConsumptionItem);
            Model_DataItem m_CementEnergyConsumptionItem = new Model_DataItem();

            m_CementEnergyConsumptionItem.ID    = "zc_nxjc_byc_byf_cementmill_EnergyConsumption_Comprehensive";
            m_CementEnergyConsumptionItem.Value = m_CementEnergyConsumption.ToString("#0.00");
            DataItems.Add(m_CementEnergyConsumptionItem);
            return(DataItems);
        }
        public static IEnumerable<Model_DataItem> GetReportData(string organizationId, string datetime)
        {
            DataTable m_ProcessValueTable = DayConsumptionReportService.GetDataFromBalanceTable(datetime, datetime, organizationId);
            List<Model_DataItem> DataItems = new List<Model_DataItem>();
            ///////////////////////////工序电量、电耗以及产量///////////////////////
            if (m_ProcessValueTable != null)
            {
                foreach (DataRow m_RowItem in m_ProcessValueTable.Rows)
                {
                    Model_DataItem m_DataItem = new Model_DataItem();
                    m_DataItem.ID = m_RowItem["DictionaryKey"].ToString();
                    m_DataItem.Value = ((decimal)m_RowItem["Value"]).ToString("#0.00");
                    DataItems.Add(m_DataItem);
                }
            }
            ////////////////////////初始化综合能耗计算参数/////////////////
            DataTable m_ClinkerComprehensiveDataTable = DayConsumptionReportService.GetClinkerComprehensiveData(datetime, datetime, organizationId);
            Standard_GB16780_2012.Parameters_ComprehensiveData m_Parameters_ComprehensiveData = DayConsumptionReportService.SetComprehensiveDataParameters(organizationId, datetime);
            Standard_GB16780_2012.Function_EnergyConsumption_V1 m_Function_EnergyConsumption_V1 = new Standard_GB16780_2012.Function_EnergyConsumption_V1();
            ///////////////////////////熟料综合电耗、煤耗、能耗///////////////////////////

            m_Function_EnergyConsumption_V1.LoadComprehensiveData(m_ClinkerComprehensiveDataTable, m_Parameters_ComprehensiveData, "VariableId", "Value");

            decimal m_ClinkerPowerConsumption = m_Function_EnergyConsumption_V1.GetClinkerPowerConsumption();
            decimal m_ClinkerCoalConsumption = m_Function_EnergyConsumption_V1.GetClinkerCoalConsumption();
            decimal m_ClinkerEnergyConsumption = m_Function_EnergyConsumption_V1.GetClinkerEnergyConsumption(m_ClinkerPowerConsumption, m_ClinkerCoalConsumption);
            Model_DataItem m_ClinkerPowerConsumptionItem = new Model_DataItem();
            m_ClinkerPowerConsumptionItem.ID = "zc_nxjc_byc_byf_clinker_ElectricityConsumption_Comprehensive";
            m_ClinkerPowerConsumptionItem.Value = m_ClinkerPowerConsumption.ToString("#0.00");
            DataItems.Add(m_ClinkerPowerConsumptionItem);
            Model_DataItem m_ClinkerCoalConsumptionItem = new Model_DataItem();
            m_ClinkerCoalConsumptionItem.ID = "zc_nxjc_byc_byf_clinker_CoalConsumption_Comprehensive";
            m_ClinkerCoalConsumptionItem.Value = m_ClinkerCoalConsumption.ToString("#0.00");
            DataItems.Add(m_ClinkerCoalConsumptionItem);
            Model_DataItem m_ClinkerEnergyConsumptionItem = new Model_DataItem();
            m_ClinkerEnergyConsumptionItem.ID = "zc_nxjc_byc_byf_clinker_EnergyConsumption_Comprehensive";
            m_ClinkerEnergyConsumptionItem.Value = m_ClinkerEnergyConsumption.ToString("#0.00");
            DataItems.Add(m_ClinkerEnergyConsumptionItem);
            ///////////////////////////水泥磨综合电耗、煤耗、能耗///////////////////////////
            DataTable m_CementComprehensiveDataTable = DayConsumptionReportService.GetCementComprehensiveData(datetime, datetime, organizationId);
            //m_Function_EnergyConsumption_V1.ClearPropertiesList();

            m_Function_EnergyConsumption_V1.LoadComprehensiveData(m_CementComprehensiveDataTable, m_Parameters_ComprehensiveData, "VariableId", "Value");

            decimal m_CementPowerConsumption = m_Function_EnergyConsumption_V1.GetCementPowerConsumption(m_ClinkerPowerConsumption);
            decimal m_CementCoalConsumption = m_Function_EnergyConsumption_V1.GetCementCoalConsumption(m_ClinkerCoalConsumption);
            decimal m_CementEnergyConsumption = m_Function_EnergyConsumption_V1.GetCementEnergyConsumption(m_CementPowerConsumption, m_CementCoalConsumption);
            Model_DataItem m_CementPowerConsumptionItem = new Model_DataItem();
            m_CementPowerConsumptionItem.ID = "zc_nxjc_byc_byf_cementmill_ElectricityConsumption_Comprehensive";
            m_CementPowerConsumptionItem.Value = m_CementPowerConsumption.ToString("#0.00");
            DataItems.Add(m_CementPowerConsumptionItem);
            Model_DataItem m_CementCoalConsumptionItem = new Model_DataItem();
            m_CementCoalConsumptionItem.ID = "zc_nxjc_byc_byf_cementmill_CoalConsumption_Comprehensive";
            m_CementCoalConsumptionItem.Value = m_CementCoalConsumption.ToString("#0.00");
            DataItems.Add(m_CementCoalConsumptionItem);
            Model_DataItem m_CementEnergyConsumptionItem = new Model_DataItem();
            m_CementEnergyConsumptionItem.ID = "zc_nxjc_byc_byf_cementmill_EnergyConsumption_Comprehensive";
            m_CementEnergyConsumptionItem.Value = m_CementEnergyConsumption.ToString("#0.00");
            DataItems.Add(m_CementEnergyConsumptionItem);
            return DataItems;
        }