예제 #1
0
        /// <summary>
        /// 重命名模板
        /// </summary>
        /// <returns></returns>
        public bool RenameMould()
        {
            FrmEmrMouldInfo form = new FrmEmrMouldInfo();

            form.ShowDialog();
            if (form.IsSure)
            {
                _view.CurrentMould.MouldName = form.MouldName;
                _view.CurrentMould.Update();
                return(true);
            }
            return(false);
        }
예제 #2
0
        /// <summary>
        /// 新增模板
        /// </summary>
        public void AddMould()
        {
            FrmEmrMouldInfo form = new FrmEmrMouldInfo();

            form.ShowDialog();
            if (form.IsSure)
            {
                HIS.EMR_BLL.EmrMould mould = new HIS.EMR_BLL.EmrMould();
                mould.MouldClass      = -1;
                mould.MouldCreateDate = XcDate.ServerDateTime;
                mould.MouldCreateDept = (int)_view.currentDept.DeptID;
                mould.MouldCreateEmp  = (int)_view.currentUser.EmployeeID;
                mould.MouldLevel      = _view.CurrentMouldLevel;
                mould.MouldName       = form.MouldName;
                mould.MouldType       = _view.CurrentChiefElement.ElementCode;
                mould.MouldContent    = EMRRecordControlFactory.CreateEMRRecordControl(_view.CurrentChiefElement.ElementCode).GetValue();
                mould.Add();
                _view.CurrentMould = mould;
                LoadMouldData();
            }
        }