示例#1
0
 private void btSave_Click(object sender, EventArgs e)
 {
     if (CheckInpatRegInfo())
     {
         _zyInpatRegist.PatId       = (int)_patient.PatList.PatID;
         _zyInpatRegist.PatListId   = _patient.PatList.PatListID;
         _zyInpatRegist.Reg_Content = XmlOperate.ComposeXmlText("ZyInpatRegContent", this);
         _zyInpatRegist.Reg_Emp     = (int)_user.EmployeeID;
         _zyInpatRegist.Reg_Date    = XcDate.ServerDateTime;
         _zyInpatRegist.Save();
         MessageBox.Show("保存成功!", "提示");
     }
 }
示例#2
0
        private void btPrint_Click(object sender, EventArgs e)
        {
            if (CheckInpatRegInfo())
            {
                GridppReport report = new GridppReport();
                report.LoadFromFile(Constant.ApplicationDirectory + "\\report\\门诊医生住院证.grf");

                XmlOperate.PrintXmlText(XmlOperate.ComposeXmlText("ZyInpatRegContent", this), "ZyInpatRegContent", report);
                report.ParameterByName("编号").AsString = _zyInpatRegist.RegId.ToString();

                report.PrintPreview(false);
            }
        }