Ejemplo n.º 1
0
        /// <summary>
        /// PopupForm
        /// </summary>
        /// <param name="vo"></param>
        void PopupForm(EntityEventDisplay vo)
        {
            if (vo == null)
            {
                vo       = new EntityEventDisplay();
                vo.isNew = true;
            }
            vo.eventId      = Viewer.EventId;
            vo.owerDeptCode = this.OwerDeptCode;
            vo.pubRoleId    = this.PubRoleId;
            frmEventEdit frm = new frmEventEdit(vo);

            frm.Text = Viewer.Text;

            using (ProxyAdverseEvent proxy = new ProxyAdverseEvent())
            {
                if (Function.Int(vo.rptId) > 0)
                {
                    string RoleEdit = proxy.Service.GetEventRoleEdit(GlobalLogin.objLogin.EmpNo);
                    string RoleDel  = proxy.Service.GetEventRoleDel(GlobalLogin.objLogin.EmpNo);
                    frm.blbiSave.Enabled = false;
                    if (RoleEdit != string.Empty || RoleDel != string.Empty)
                    {
                        frm.blbiSave.Enabled = true;
                    }
                }
            }

            frm.ShowDialog();
            if (frm.IsSave)
            {
                this.Query();
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// EditEvent
        /// </summary>
        internal void EditEvent()
        {
            EntityEventDisplay vo = GetRowObject();

            if (vo != null)
            {
                this.PopupForm(vo);
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 构造
 /// </summary>
 public frmEventEdit(EntityEventDisplay _EventDisplayVo)
 {
     InitializeComponent();
     if (!DesignMode)
     {
         this.defaultLookAndFeel.LookAndFeel.SkinName = GlobalLogin.SkinName;
         DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle(GlobalLogin.SkinName);
         ((ctlEventEdit)Controller).EventDisplayVo = _EventDisplayVo;
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// Print
        /// </summary>
        internal void Print()
        {
            EntityEventDisplay vo = GetRowObject();

            if (vo != null && Function.Dec(vo.rptId) > 0)
            {
                frmPrintDocumentSimple frm = new frmPrintDocumentSimple(GetXR(Function.Dec(vo.rptId)));
                frm.ShowDialog();
            }
        }
Ejemplo n.º 5
0
        /// <summary>
        /// RowCellStyle
        /// </summary>
        /// <param name="e"></param>
        internal void RowCellStyle(DevExpress.XtraGrid.Views.Grid.GridView gv, DevExpress.XtraGrid.Views.Grid.RowCellStyleEventArgs e)
        {
            if (e.Column == gv.FocusedColumn && e.RowHandle == gv.FocusedRowHandle)
            {
                e.Appearance.BackColor  = Color.FromArgb(251, 165, 8);
                e.Appearance.BackColor2 = Color.White;
            }
            else
            {
                if (GetFieldValueStr(gv, e.RowHandle, EntityEventDisplay.Columns.reportType) == "跟踪报告")
                {
                    e.Appearance.ForeColor = Color.Crimson;
                }
                else if (Viewer.EventId == "19" || Viewer.EventId == "20" || Viewer.EventId == "21")
                {
                    e.Appearance.ForeColor = Color.FromArgb(0, 0, 0);
                }
                else
                {
                    e.Appearance.ForeColor = Color.FromArgb(0, 92, 156);
                }
            }

            int hand = e.RowHandle;

            if (hand < 0)
            {
                return;
            }
            EntityEventDisplay vo = gv.GetRow(hand) as EntityEventDisplay;

            //护理安全表单审核
            if (vo.HLQM != "" && (Viewer.EventId == "19" || Viewer.EventId == "20" || Viewer.EventId == "21"))
            {
                e.Appearance.ForeColor = Color.Green;
            }
            else if (vo.XZQM != "" && (Viewer.EventId == "19" || Viewer.EventId == "20" || Viewer.EventId == "21"))
            {
                e.Appearance.ForeColor = Color.Purple;
            }
            else if (vo.HCQM != "" && (Viewer.EventId == "19" || Viewer.EventId == "20" || Viewer.EventId == "21"))
            {
                e.Appearance.ForeColor = Color.FromArgb(0, 0, 156);
            }

            gv.Invalidate();
        }
Ejemplo n.º 6
0
        /// <summary>
        /// DelEvent
        /// </summary>
        internal void DelEvent()
        {
            EntityEventDisplay vo = GetRowObject();

            if (vo != null && Function.Dec(vo.rptId) > 0)
            {
                if (DialogBox.Msg("确定是否删除当前记录??", MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    using (ProxyAdverseEvent proxy = new ProxyAdverseEvent())
                    {
                        if (proxy.Service.DelEvent(Function.Dec(vo.rptId)) > 0)
                        {
                            DialogBox.Msg("删除不良事件记录成功!");
                            this.Query();
                        }
                        else
                        {
                            DialogBox.Msg("删除不良事件记录失败。");
                        }
                    }
                }
            }
        }
Ejemplo n.º 7
0
        /// <summary>
        /// PopupForm
        /// </summary>
        /// <param name="vo"></param>
        void PopupForm(EntityEventDisplay vo)
        {
            if (vo == null)
            {
                vo       = new EntityEventDisplay();
                vo.isNew = true;
            }
            //vo.eventId = Viewer.EventId;
            frmEventEdit frm = new frmEventEdit(vo);

            switch (vo.eventId)
            {
            case "11":
                Viewer.Text = "医疗安全不良事件";
                break;

            case "12":
                Viewer.Text = "医疗器械不良事件";
                break;

            case "13":
                Viewer.Text = "药品不良事件";
                break;

            case "14":
                Viewer.Text = "护理不良事件";
                break;

            case "15":
                Viewer.Text = "输血不良事件记录";
                break;

            case "16":
                Viewer.Text = "输血不良事件回报";
                break;

            case "17":
                Viewer.Text = "职业暴露登记";
                break;

            case "18":
                Viewer.Text = "护理质量异常指标监测报告";
                break;

            case "19":
                Viewer.Text = "护理安全(不良)事件(新)";
                break;

            case "20":
                Viewer.Text = "护理皮肤损害安全(不良)事件";
                break;

            case "21":
                Viewer.Text = "护理皮肤损害(院外)事件";
                break;

            default:
                break;
            }

            frm.Text = Viewer.Text;

            frm.ShowDialog();
            if (frm.IsSave)
            {
                this.Query();
            }
        }