Exemplo n.º 1
0
        /// <summary>
        /// Design
        /// </summary>
        internal void Design()
        {
            EntityFormDesign formVo = Viewer.txtFormCode.Tag as EntityFormDesign;

            if (formVo == null || formVo.Formid <= 0)
            {
                DialogBox.Msg("请保存表单信息。");
                return;
            }
            try
            {
                SuspendLayoutUc();
                using (frmFormDesign frm = new frmFormDesign())
                {
                    frm.FormType = Function.Int(Viewer.FormType);
                    frm.FormId   = formVo.Formid;
                    frm.ShowDialog();
                    if (frm.IsSave || frm.UpdateFlag)
                    {
                        LoadForm(frm.FormId);
                        if (Viewer.txtFormCode.Tag != null)
                        {
                            (Viewer.txtFormCode.Tag as EntityFormDesign).Layout = Viewer.showPanelForm.LayoutXML();
                        }
                    }
                }
            }
            finally
            {
                ResumeLayoutUc();
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Design
        /// </summary>
        internal void Design()
        {
            EntityEmrBasicInfo caseVo = GetCaseVo();

            if (caseVo == null)
            {
                DialogBox.Msg("请选择表单。");
            }
            else
            {
                if (string.IsNullOrEmpty(caseVo.caseCode))
                {
                    DialogBox.Msg("请先保存病历基本信息。");
                    return;
                }
                using (frmFormDesign frm = new frmFormDesign())
                {
                    //frm.FormType = 11;  // 0412.临时
                    frm.FormType = 1;
                    frm.FormId   = Function.Int((Viewer.txtCaseCode.Tag as EntityEmrBasicInfo).formId);
                    frm.ShowDialog();
                }
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// SetUI
 /// </summary>
 /// <param name="child"></param>
 public override void SetUI(frmBase child)
 {
     base.SetUI(child);
     Viewer = (frmFormDesign)child;
     this.gvDataBindingSource = new BindingSource();
 }