/// <summary> /// 查看证书 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CertificateView_Click(object sender, EventArgs e) { int selcount = this.MaterialDgv.SelectedRows.Count; if (selcount == 1) { int index = this.MaterialDgv.CurrentRow.Index; string filestr = this.MaterialDgv.Rows[index].Cells["证书号"].Value.ToString(); if (filestr != string.Empty) { string spoolname = MaterialDgv.CurrentRow.Cells["小票号"].Value.ToString(); QCAttachmentView qcav = new QCAttachmentView(); qcav.namestr = spoolname; qcav.ShowDialog(); } else { MessageBox.Show("暂没有相关证书!", "WARNNING", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return; } } else { //MessageBox.Show("请确定!", "WARNNING", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return; } }
/// <summary> /// �鿴֤�� /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CertificateView_Click(object sender, EventArgs e) { int selcount = this.MaterialDgv.SelectedRows.Count; if( selcount == 1 ) { int index = this.MaterialDgv.CurrentRow.Index; string filestr = this.MaterialDgv.Rows[index].Cells["֤���"].Value.ToString(); if (filestr != string.Empty) { string spoolname = MaterialDgv.CurrentRow.Cells["СƱ��"].Value.ToString(); QCAttachmentView qcav = new QCAttachmentView(); qcav.namestr = spoolname; qcav.ShowDialog(); } else { MessageBox.Show("��û�����֤�飡", "WARNNING", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return; } } else { //MessageBox.Show("��ȷ����", "WARNNING", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); return; } }
/// <summary> /// ˫������ /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OverViewdgv_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (this.Text == "�ӹ�СƱ����" || this.Text == "�ʼ�СƱ����" || this.Text =="��װСƱ����") { string spoolname = OverViewdgv.CurrentRow.Cells["СƱ��"].Value.ToString(); QCAttachmentView qcav = new QCAttachmentView(); qcav.namestr = spoolname; qcav.ShowDialog(); } else { return; } }