/// <summary> /// 职工入院登记 /// </summary> /// <param name="paramc"></param> /// <param name="baseParam"></param> /// <returns></returns> public ApiJsonResultData WorkerHospitalizationRegister(string paramc, HisBaseParam baseParam) { var resultValue = new ApiJsonResultData { Success = true }; try { Logs.LogWrite(new LogParam() { Params = paramc, Msg = JsonConvert.SerializeObject(baseParam) }); var loginData = MedicalInsuranceDll.ConnectAppServer_cxjb(baseParam.Account, baseParam.Pwd); var param = JsonConvert.DeserializeObject <WorKerHospitalizationRegisterParam>(paramc); WorkerHospitalizationRegisterDto resultData; //社保住院号 var medicalInsuranceHospitalizationNo = new byte[1024]; //审批编号 var approvalNumber = new byte[1024]; //年住院次数 var yearHospitalizationNumber = new byte[1024]; //统筹已付金额 var overallPlanningAlreadyAmount = new byte[1024]; //统筹可付金额 var overallPlanningCanAmount = new byte[1024]; //返回状态 var resultState = new byte[1024]; //消息 var msg = new byte[1024]; // param.AdministrativeArea, MedicalInsuranceDll.HospitalizationRegister (param.IdentityMark, param.AfferentSign, param.AdministrativeArea, param.OrganizationCode, param.MedicalCategory, param.AdmissionDate, param.AdmissionMainDiagnosisIcd10, param.DiagnosisIcd10Two, param.DiagnosisIcd10Three, param.AdmissionMainDiagnosis, param.InpatientArea, param.BedNumber, param.HospitalizationNo, param.Operators, medicalInsuranceHospitalizationNo, approvalNumber, yearHospitalizationNumber, overallPlanningAlreadyAmount, overallPlanningCanAmount, resultState, msg ); if (CommonHelp.StrToTransCoding(resultState) != "1") { throw new Exception(CommonHelp.StrToTransCoding(msg)); } resultData = new WorkerHospitalizationRegisterDto() { MedicalInsuranceHospitalizationNo = CommonHelp.StrToTransCoding(medicalInsuranceHospitalizationNo), ApprovalNumber = CommonHelp.StrToTransCoding(approvalNumber), YearHospitalizationNumber = CommonHelp.StrToTransCoding(yearHospitalizationNumber), OverallPlanningAlreadyAmount = CommonHelp.StrToTransCoding(overallPlanningAlreadyAmount), OverallPlanningCanAmount = CommonHelp.StrToTransCoding(overallPlanningCanAmount), }; var resultStr = JsonConvert.SerializeObject(resultData); Logs.LogWriteData(new LogWriteDataParam() { JoinJson = JsonConvert.SerializeObject(resultData), ReturnJson = resultStr, OperatorId = baseParam.OperatorId }); resultValue.Data = resultStr; } catch (Exception e) { resultValue.Success = false; resultValue.Message = e.Message; } return(resultValue); }