private void but_new_Click(object sender, EventArgs e)
        {
            HCSCM_plasticenvelop_program_new hcsm = new HCSCM_plasticenvelop_program_new(null, arrayDR);

            //获取一个值,指是否在Windows任务栏中显示窗体。
            hcsm.ShowInTaskbar = false;
            hcsm.ShowDialog();
            loaddata();
            if (dgv_01.Rows.Count > 0)
            {
                dgv_01.CurrentRow = dgv_01.Rows[dgv_01.RowCount - 1];
            }
        }
        private void but_edit_Click(object sender, EventArgs e)
        {
            if (this.dgv_01.SelectedRows.Count <= 0)
            {
                MessageBox.Show(PromptMessageXmlHelper.Instance.GetPromptMessage("choicechange", EnumPromptMessage.warning, new string[] { "修改的", "塑封程序" }), "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            int        selectedIndex = dgv_01.Rows.IndexOf(dgv_01.SelectedRows[0]);
            SortedList slindata      = new SortedList();

            try
            {
                slindata.Add("id", dgv_01.SelectedRows[0].Cells["id"].Value);
                slindata.Add("bar_code", dgv_01.SelectedRows[0].Cells["bar_code"].Value);
                slindata.Add("pr_name", dgv_01.SelectedRows[0].Cells["pr_name"].Value);
                slindata.Add("p_type", dgv_01.SelectedRows[0].Cells["p_type"].Value);
                slindata.Add("run_time", dgv_01.SelectedRows[0].Cells["run_time"].Value);
                slindata.Add("run_temp", dgv_01.SelectedRows[0].Cells["run_temp"].Value);
                slindata.Add("run_speed", dgv_01.SelectedRows[0].Cells["run_speed"].Value);
                slindata.Add("run_stress", dgv_01.SelectedRows[0].Cells["run_stress"].Value);
                slindata.Add("ca_remarks", dgv_01.SelectedRows[0].Cells["ca_remarks"].Value);

                HCSCM_plasticenvelop_program_new hcsm = new HCSCM_plasticenvelop_program_new(slindata, arrayDR);
                //获取一个值,指是否在Windows任务栏中显示窗体。
                hcsm.ShowInTaskbar = false;
                hcsm.ShowDialog();
                loaddata();
                if (dgv_01.Rows.Count > selectedIndex)
                {
                    dgv_01.CurrentRow = dgv_01.Rows[selectedIndex];
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(PromptMessageXmlHelper.Instance.GetPromptMessage("unknowerror", EnumPromptMessage.warning, new string[] { ex.Message }), "错误信息", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
        }