Exemplo n.º 1
0
        private void toolStripButtonSaveReg_Click(object sender, EventArgs e)
        {
            PatientInfo pInfo = this.propertyGridPatientInfo.SelectedObject as PatientInfo;

            if (pInfo == null)
            {
                return;
            }
            if (MessageBox.Show("确定保存当前入院登记信息吗?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) != DialogResult.OK)
            {
                return;
            }

            int  _zyh    = -1;
            Guid _nhGuid = Guid.Empty;

            try
            {
                _zyh = HisCom.NewPatientRegister(pInfo);
                if (pInfo.NhInfo != null)
                {
                    _nhGuid = HisCom.NewNhRegister(pInfo);
                }

                MessageBox.Show("入院登记成功\r\n住院号:" + _zyh.ToString());
            }
            catch (System.Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     //int zyh = hisObj.InpatientRegister(this.propertyGrid1.SelectedObject as PatientInfo);
     try
     {
         Guid nhRegCode = hisObj.NewNhRegister(this.propertyGrid1.SelectedObject as PatientInfo);
     }
     catch (System.Exception ex)
     {
         Console.WriteLine(ex.Message);
     }
 }