Exemple #1
0
        /// <summary>
        /// 新增模版
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsmtAddTem_Click(object sender, EventArgs e)
        {
            HCSRM_custom_template_add HCSRM_custom_template_add = new HCSRM_custom_template_add(0);

            HCSRM_custom_template_add.ShowInTaskbar = false;
            if (HCSRM_custom_template_add.ShowDialog() == DialogResult.OK)
            {
                DataBind();
            }
        }
Exemple #2
0
        /// <summary>
        /// 修改模板
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tsmtUpdateTem_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_add hCSRM_custom_template_add = new HCSRM_custom_template_add(id);

            hCSRM_custom_template_add.ShowInTaskbar = false;

            if (hCSRM_custom_template_add.ShowDialog() == DialogResult.OK)
            {
                DataBind();
            }
        }