private void 图片ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (Forms.BaseDataManage.Form_Photo frm = new Forms.BaseDataManage.Form_Photo(16, record.Id))
     {
         frm.ShowDialog();
     }
 }
Beispiel #2
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex < 0 || e.ColumnIndex < 0)
     {
         return;
     }
     if (_purchaseUnit == null)
     {
         return;
     }
     Forms.BaseDataManage.Form_Photo frm = new Forms.BaseDataManage.Form_Photo(6, this._purchaseUnit.Id);
     frm.ShowDialog();
 }
Beispiel #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     using (Forms.BaseDataManage.Form_Photo frm = new Forms.BaseDataManage.Form_Photo(17, this.entity.Id))
     {
         if (this.FSE == FormStatusEnum.Edit)
         {
             SetControls.SetControlReadonly(frm, false);
             frm.ShowDialog();
         }
         else if (this.FSE == FormStatusEnum.New)
         {
             MessageBox.Show("请在\"品种质量档案维护\"版块内进行上传图片");
             return;
         }
         else
         {
             SetControls.SetControlReadonly(frm, true);
             frm.ShowDialog();
         }
     }
 }