Exemple #1
0
 public AdminController(ApplicationDbContext context, UploadInterface upload,
                        IProductRepository repository, UserManager <IdentityUser> userManager)
 {
     _context     = context;
     _upload      = upload;
     _repository  = repository;
     _userManager = userManager;
 }
 public AdminController(ApplicationDbContext context, UploadInterface upload)
 {
     _upload  = upload;
     _context = context;
 }
Exemple #3
0
 /// <summary>
 /// ��xml�ַ����е�[FILED_NAME]��滻Ϊ����Դ�еĶ�Ӧ��
 /// ����Դ���������PATIENT_ID,VISIT_ID
 /// 2015-11-04
 /// �⺣��
 /// </summary>
 /// <param name="p_dsSoucre"></param>
 public void DoReplace(DataSet p_dsSoucre)
 {
     if (p_dsSoucre == null)
     {
         return;
     }
     else
     {
         if (p_dsSoucre.Tables.Count == 0)
         {
             return;
         }
     }
     string _strXml = GetXML(p_dsSoucre);
     StringBuilder _sbXml = new StringBuilder(_strXml);
     foreach (DataTable _dtSoucr in p_dsSoucre.Tables)
     {
         if (IsTableSource(_dtSoucr))
         {
             _strXml = DoTableReplace(_strXml, _dtSoucr);
         }
         else
         {
             _strXml = DoSimpleReplace(_strXml, _dtSoucr);
         }
     }
     string _strFiledName = m_strObjectName + "_" + m_strPatientId + "_" + m_strVisitId;
     if (EmrInfoManagement.m_bHasFile)
     {
         if (IsUseInterface())
         {
             UploadInterface ui = new UploadInterface();
             ui.CallInterface(_strXml, _strFiledName);
         }
         else
         {
             if (SaveXML(_strXml, _strFiledName, "XmlOutPutPath"))
             {
                 RemoteMessage.SendMessage("FILE_EXPORT_RESULT:".PadRight(50, '.') + "OK");
                 uctlRestoreManage.RemoveRecord(m_strObjectName, m_strPatientId, m_strVisitId);
             }
             else
             {
                 RemoteMessage.SendMessage("FILE_EXPORT_RESULT:".PadRight(50, '.') + "FALSE");
                 uctlRestoreManage.LogFalsePatient(m_strObjectName, m_strPatientId, m_strVisitId);
             }
         }
     }
 }