コード例 #1
0
 /// <summary> 双击新增/复制/编辑字典内容
 /// </summary>
 private void dgvDicList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0)
     {
         try
         {
             string dic_id = dgvDicList.Rows[e.RowIndex].Cells["dic_id"].Value.ToString();
             string dic_code = dgvDicList.Rows[e.RowIndex].Cells["dic_code"].Value.ToString();
             string dic_name = dgvDicList.Rows[e.RowIndex].Cells["dic_name"].Value.ToString();
             UCDictionaryAddOrEdit uc = new UCDictionaryAddOrEdit();
             uc.ParentId = dic_id;
             uc.ParentCode = dic_code;
             uc.ParentName = dic_name;
             base.addUserControl(uc, "字典码表-" + dic_name, "UCDictionaryManagerOperator" + dic_code, this.Tag.ToString(), this.Name);
         }
         catch (Exception ex)
         {
             Utility.Log.Log.writeLineToLog("【字典码表】" + ex.Message, "client");
             MessageBoxEx.ShowWarning("操作失败!");
         }
     }
 }
コード例 #2
0
 private void dgvDicList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex >= 0 && editRowIndex < 0)
     {
         object obj = dgvDicList.Rows[e.RowIndex].Cells["is_class"].Value;
         if (obj != null && obj.ToString() == DataSources.EnumYesNo.Yes.ToString("d"))
         {
             string dic_id = dgvDicList.Rows[e.RowIndex].Cells["dic_id"].Value.ToString();
             string dic_code = dgvDicList.Rows[e.RowIndex].Cells["dic_code"].Value.ToString();
             string dic_name = dgvDicList.Rows[e.RowIndex].Cells["dic_name"].Value.ToString();
             UCDictionaryAddOrEdit uc = new UCDictionaryAddOrEdit();
             uc.ParentId = dic_id;
             uc.ParentCode = dic_code;
             uc.ParentName = dic_name;
             base.addUserControl(uc, "字典码表-" + dic_name, "UCDictionaryManagerOperator" + dic_code, this.Tag.ToString(), this.Name);
         }
         else
         {
             UCDictionaryAddOrEdit_EditEvent(null, null);
         }
     }
 }
コード例 #3
0
 private void dgvDicList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         if (e.RowIndex >= 0 && editRowIndex < 0)
         {
             object obj = dgvDicList.Rows[e.RowIndex].Cells["is_class"].Value;
             if (obj != null && obj.ToString() == DataSources.EnumYesNo.Yes.ToString("d"))
             {
                 string dic_id = dgvDicList.Rows[e.RowIndex].Cells["dic_id"].Value.ToString();
                 string dic_code = dgvDicList.Rows[e.RowIndex].Cells["dic_code"].Value.ToString();
                 string dic_name = dgvDicList.Rows[e.RowIndex].Cells["dic_name"].Value.ToString();
                 UCDictionaryAddOrEdit uc = new UCDictionaryAddOrEdit();
                 uc.ParentId = dic_id;
                 uc.ParentCode = dic_code;
                 uc.ParentName = dic_name;
                 base.addUserControl(uc, "字典码表-" + dic_name, "UCDictionaryManagerOperator" + dic_code, this.Tag.ToString(), this.Name);
             }
             else
             {
                 UCDictionaryAddOrEdit_EditEvent(null, null);
             }
         }
     }
     catch (Exception ex)
     {
         Utility.Log.Log.writeLineToLog("【字典码表】" + ex.Message, "client");
         MessageBoxEx.ShowWarning("操作失败!");
     }
 }
コード例 #4
0
        /// <summary> 双击新增/复制/编辑字典内容
        /// </summary>
        private void dgvDicList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex >= 0)
            {
                string dic_id = dgvDicList.Rows[e.RowIndex].Cells["dic_id"].Value.ToString();
                string dic_code = dgvDicList.Rows[e.RowIndex].Cells["dic_code"].Value.ToString();
                string dic_name = dgvDicList.Rows[e.RowIndex].Cells["dic_name"].Value.ToString();
                UCDictionaryAddOrEdit uc = new UCDictionaryAddOrEdit();
                uc.ParentId = dic_id;
                uc.ParentCode = dic_code;
                uc.ParentName = dic_name;                
                base.addUserControl(uc, "字典码表-"+dic_name, "UCDictionaryManagerOperator" + dic_code, this.Tag.ToString(), this.Name);

            }
        }