private void but_select_Click(object sender, EventArgs e)
        {
            string selectname = dgv_01.SelectedRows[0].Cells["ca_name"].Value.ToString();
            string srtId      = dgv_01.SelectedRows[0].Cells["id"].Value.ToString();
            string srtCode    = dgv_01.SelectedRows[0].Cells["bar_code"].Value.ToString();
            string complexity = dgv_01.SelectedRows[0].Cells["ca_priority"].Value.ToString();
            string Rfid       = dgv_01.SelectedRows[0].Cells["rfid_retrospect"].Value.ToString();
            HCSCM_set_manager_set_select hcsm = new HCSCM_set_manager_set_select(srtId, selectname, srtCode, complexity, Rfid);

            //获取一个值,指是否在Windows任务栏中显示窗体。
            hcsm.ShowInTaskbar = false;;
            hcsm.ShowDialog();
            this.Close();
        }
Beispiel #2
0
        private void but_cre_set_Click(object sender, EventArgs e)
        {
            if (dgv_01.SelectedRows.Count > 0)
            {
                string selectname = dgv_01.SelectedRows[0].Cells["ca_name"].Value.ToString();
                string srtId      = dgv_01.SelectedRows[0].Cells["id"].Value.ToString();
                string srtCode    = dgv_01.SelectedRows[0].Cells["bar_code"].Value.ToString();
                string urgent     = Sl_type_03.GetKey(Sl_type_03.IndexOfValue(dgv_01.SelectedRows[0].Cells["ca_priority"].Value.ToString())).ToString();
                string Rfid       = dgv_01.SelectedRows[0].Cells["rfid_retrospect"].Value.ToString();

                HCSCM_set_manager_set_select hcsm = new HCSCM_set_manager_set_select(srtId, selectname, srtCode, urgent, Rfid);
                //获取一个值,指是否在Windows任务栏中显示窗体。
                hcsm.ShowInTaskbar = false;;
                hcsm.ShowDialog();
            }
            else
            {
                MessageBox.Show("请选择一行。", "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
        }