Example #1
0
        public void Login(string organizationCode)
        {
            var hospitalData = _systemManageRepository.QueryHospitalOrganizationGrade(organizationCode);

            if (hospitalData == null)
            {
                throw new Exception("当前医院无等级信息,请设置");
            }
            if (string.IsNullOrWhiteSpace(hospitalData.MedicalInsuranceAccount))
            {
                throw new Exception("当前医院未设置,医保账户,请设置!!!");
            }
            var result =
                MedicalInsuranceDll.ConnectAppServer_cxjb(hospitalData.MedicalInsuranceAccount,
                                                          hospitalData.MedicalInsurancePwd);

            if (result != 1)
            {
                XmlHelp.DeSerializerModel(new IniXmlDto(), true);
            }
        }
Example #2
0
        public ActionResult SubmitForm(OrganizeEntity organizeEntity, string keyValue)
        {
            organizeEntity.F_CategoryId = "Department";
            try
            { //医保账户认证
                var result =
                    MedicalInsuranceDll.ConnectAppServer_cxjb(organizeEntity.F_MedicalInsuranceAccount,
                                                              organizeEntity.F_MedicalInsurancePwd);
                if (result != 1)
                {
                    XmlHelp.DeSerializerModel(new IniXmlDto(), true);
                }
            }
            catch (Exception e)
            {
                return(Error(e.Message));
            }

            organizeApp.SubmitForm(organizeEntity, keyValue);
            return(Success("操作成功。"));
        }