Ejemplo n.º 1
0
        protected override void OnAddClick(EventArgs e)
        {
            if (Is_public && !TmoComm.login_docInfo.doc_function_list.Contains("funSaveInterveneLib"))
            {
                DXMessageBox.ShowError("无法操作,您没有相关权限!", this);
                return;
            }

            UCInterveneLibEditor ucInterveneLibEditor = new UCInterveneLibEditor();

            ucInterveneLibEditor.DbOperaType = DBOperateType.Add;
            ucInterveneLibEditor.Is_Public   = Is_public;
            ucInterveneLibEditor.Title       = "新建健康干预库";
            if (ucInterveneLibEditor.ShowDialog() == DialogResult.OK)
            {
                DXMessageBox.Show("新建健康干预库成功!", true);
                GetData();
            }
            ucInterveneLibEditor.Dispose();
        }
Ejemplo n.º 2
0
        protected override void OnEditClick(DataRow selectedRow)
        {
            if (Is_public && !TmoComm.login_docInfo.doc_function_list.Contains("funSaveInterveneLib"))
            {
                DXMessageBox.ShowError("无法操作,您没有相关权限!", this);
                return;
            }

            UCInterveneLibEditor ucInterveneLibEditor = new UCInterveneLibEditor();

            ucInterveneLibEditor.DbOperaType     = DBOperateType.Update;
            ucInterveneLibEditor.Is_Public       = Is_public;
            ucInterveneLibEditor.Title           = "修改健康干预库";
            ucInterveneLibEditor.PrimaryKeyValue = selectedRow[PrimaryKey].ToString();
            if (ucInterveneLibEditor.ShowDialog() == DialogResult.OK)
            {
                DXMessageBox.Show("修改健康干预库成功!", true);
                GetData();
            }
            ucInterveneLibEditor.Dispose();
        }