/// <summary> /// 双击打开修改 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void rvgCustomFile_CellDoubleClick(object sender, GridViewCellEventArgs e) { if (this.rvgCustomFile.SelectedRows.Count <= 0) { MessageBox.Show(PromptMessageXmlHelper.Instance.GetPromptMessage("customtemplatenotselect", EnumPromptMessage.warning), "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } int id = Convert.ToInt32(this.rvgCustomFile.CurrentRow.Cells["id"].Value); HCSRM_custom_template_report_add hCSRM_custom_template_report_add = new HCSRM_custom_template_report_add(0, id, this); //hCSRM_custom_template_report_add.ShowInTaskbar = false; hCSRM_custom_template_report_add.Show(); }
/// <summary> /// 根据模版新建报表 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tsmtAddTemReport_Click(object sender, EventArgs e) { if (this.rtvCustomTemplate.SelectedNode.Name == "-1") { return; } if (this.rtvCustomTemplate.SelectedNodes.Count <= 0) { MessageBox.Show(PromptMessageXmlHelper.Instance.GetPromptMessage("customtemplatenotselect", EnumPromptMessage.warning), "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information); return; } int id = Convert.ToInt32(this.rtvCustomTemplate.SelectedNode.Name); HCSRM_custom_template_report_add hCSRM_custom_template_report_add = new HCSRM_custom_template_report_add(id, 0, this); hCSRM_custom_template_report_add.ShowInTaskbar = false; hCSRM_custom_template_report_add.ShowDialog(); }