Exemplo n.º 1
0
        private void showDetail(ProducePlan.pType type)
        {
            switch (type)
            {
            case ProducePlan.pType.deepFatConsume:
                if (dgv_Consume.SelectedRows.Count > 0)
                {
                    FrmEnergyConsumptionQXLr frmEnergyConsumptionQXLr = new FrmEnergyConsumptionQXLr();

                    frmEnergyConsumptionQXLr.DtfId = (long)dgv_Consume.SelectedRows[0].Cells[0].Value;
                    frmEnergyConsumptionQXLr.ENo   = dgv_Consume.SelectedRows[0].Cells[3].Value.ToString();

                    frmEnergyConsumptionQXLr.ShowDialog();
                }
                break;

            case ProducePlan.pType.deepFatConsumeDetail:
                if (dgv_Consume1.SelectedRows.Count > 0)
                {
                    FrmEnergyConsumptionQXLm frmEnergyConsumptionQXLm = new FrmEnergyConsumptionQXLm();

                    frmEnergyConsumptionQXLm.DfcdsId = (long)dgv_Consume1.SelectedRows[0].Cells["id1"].Value;
                    frmEnergyConsumptionQXLm.ENo     = dgv_Consume.SelectedRows[0].Cells[2].Value.ToString();

                    frmEnergyConsumptionQXLm.ShowDialog();
                }
                break;
            }
        }
Exemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            FrmEnergyConsumptionQXLr fecqrform = new FrmEnergyConsumptionQXLr();

            fecqrform.ShowDialog();
        }