private void dgv1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (this.dgv1.RowCount == 0)
            {
                return;
            }
            string partid = dgv1.CurrentRow.Cells["part_no"].Value.ToString();
            string dpid   = dgv1.CurrentRow.Cells["discipline"].Value.ToString();

            if (PartParameter.GetPartParaCou(partid, dpid, ProjectId) == 0)
            {
                MessageBox.Show("无此材料的预估记录!");
                return;
            }
            frmParaLog frm = new frmParaLog();

            frm.ProjectId    = ProjectId;
            frm.Part_No      = partid;
            frm.DisciplineId = dpid;
            frm.Show();
        }
        private void dgv1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (this.dgv1.RowCount == 0) return;
            string partid = dgv1.CurrentRow.Cells["part_no"].Value.ToString();
            string dpid = dgv1.CurrentRow.Cells["discipline"].Value.ToString();
            if (PartParameter.GetPartParaCou(partid, dpid, ProjectId) == 0)
            {
                MessageBox.Show("�޴˲��ϵ�Ԥ����¼��");
                return;
            }
            frmParaLog frm = new frmParaLog();

            frm.ProjectId = ProjectId;
            frm.Part_No = partid;
            frm.DisciplineId = dpid;
            frm.Show();
        }