public async Task <ObjectResultModule> LeaguerInfoById([FromBody] LeaguerInfoById PageLeaguer) { if (!Commons.CheckSecret(PageLeaguer.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var values = await _LeaguerService.LeaguerInfoById(PageLeaguer.Id); var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; this.ObjectResultModule.Object = values; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "LeaguerInfoById", OperContent = JsonHelper.ToJson(PageLeaguer), OperType = "LeaguerInfoById", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> CorporateIncomeTotalPage([FromBody] CorporateIncomeTotalIn CorporateIncomeTotalInfo) { if (!Commons.CheckSecret(CorporateIncomeTotalInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; DateTime StartTime = new DateTime(); DateTime EndTime = new DateTime(); if (!string.IsNullOrEmpty(CorporateIncomeTotalInfo.StartTime)) { StartTime = DateTime.Parse(CorporateIncomeTotalInfo.StartTime); if (string.IsNullOrEmpty(CorporateIncomeTotalInfo.EndTime)) { CorporateIncomeTotalInfo.EndTime = DateTime.Now.ToString("yyyy-MM-dd"); } } if (!string.IsNullOrEmpty(CorporateIncomeTotalInfo.EndTime)) { EndTime = DateTime.Parse(CorporateIncomeTotalInfo.EndTime); } if (!string.IsNullOrEmpty(CorporateIncomeTotalInfo.StartTime)) { CorporateIncomeTotalInfo.AndAlso(t => t.CreatedOn >= StartTime); CorporateIncomeTotalInfo.AndAlso(t => t.CreatedOn < EndTime.AddDays(+1)); } CorporateIncomeTotalInfo.AndAlso(t => t.IsDelete == false); var values = await _corporateIncomeTotalService.CorporateIncomeTotalPage(CorporateIncomeTotalInfo); if (values.Items.Count() == 0) { this.ObjectResultModule.StatusCode = 204; this.ObjectResultModule.Message = "NoContent"; this.ObjectResultModule.Object = ""; } else { this.ObjectResultModule.Object = new CorporateIncomeTotalOut(values, CorporateIncomeTotalInfo); this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "CorporateIncomeTotalPage", OperContent = JsonHelper.ToJson(CorporateIncomeTotalInfo), OperType = "CorporateIncomeTotalPage", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> YaeherRoleModuleList([FromBody] YaeherRoleModuleIn YaeherRoleModuleInfo) { if (!Commons.CheckSecret(YaeherRoleModuleInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; YaeherRoleModuleInfo.AndAlso(a => a.IsDelete == false); var values = await _yaeherRoleModuleService.YaeherRoleModuleList(YaeherRoleModuleInfo); YaeherModuleIn yaeherModuleIn = new YaeherModuleIn(); yaeherModuleIn.AndAlso(a => a.IsDelete == false && a.Enabled == true); var ModuleList = await _yaeherModuleService.YaeherModule(yaeherModuleIn); var RoleAndModuleList = from Modules in ModuleList join RoleAndModule in values on Modules.Id equals RoleAndModule.ModuleId select new { Modules.Id, Modules.ParentId, Modules.Names, Modules.LinkUrls, Modules.Areas, Modules.Controllers, Modules.Actionss, Modules.Icons, Modules.Codes, Modules.OrderSort, Modules.Description, Modules.IsMenu, RoleAndModule.RoleId }; if (RoleAndModuleList.Count() == 0) { this.ObjectResultModule.StatusCode = 204; this.ObjectResultModule.Message = "NoContent"; this.ObjectResultModule.Object = ""; } else { YaeherRoleModuleJSon yaeherRoleModuleJSon = new YaeherRoleModuleJSon(); foreach (var RoleModuls in RoleAndModuleList) { yaeherRoleModuleJSon.ModuleId += RoleModuls.Id + ","; yaeherRoleModuleJSon.RoleId = RoleModuls.RoleId; } this.ObjectResultModule.Object = yaeherRoleModuleJSon; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "YaeherRoleModuleList", OperContent = JsonHelper.ToJson(YaeherRoleModuleInfo), OperType = "YaeherRoleModuleList", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(ObjectResultModule); }
public async Task <ObjectResultModule> YaeherPatientDoctorList([FromBody] YaeherPatientDoctorIn PatientDoctorList) { if (!Commons.CheckSecret(PatientDoctorList.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; //Logger.Info(JsonHelper.ToJson(PatientDoctorList)); PatientDoctorList.AndAlso(t => !t.IsDelete); if (!string.IsNullOrEmpty(PatientDoctorList.DoctorName)) { PatientDoctorList.AndAlso(t => t.DoctorName.Contains(PatientDoctorList.DoctorName)); } if (PatientDoctorList.doctorid > 0) { PatientDoctorList.AndAlso(t => t.DoctorID == PatientDoctorList.doctorid); } if (PatientDoctorList.createdby > 0) { PatientDoctorList.AndAlso(t => t.CreatedBy == PatientDoctorList.createdby); } if (!string.IsNullOrEmpty(PatientDoctorList.DoctorName)) { PatientDoctorList.AndAlso(t => t.DoctorName.Contains(PatientDoctorList.DoctorName)); } var value = await _PatientDoctorService.YaeherPatientDoctorList(PatientDoctorList); if (value.Count == 0) { this.ObjectResultModule.StatusCode = 204; this.ObjectResultModule.Message = "NoContent"; this.ObjectResultModule.Object = ""; } else { this.ObjectResultModule.Object = value; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "YaeherPatientDoctorList", OperContent = JsonHelper.ToJson(PatientDoctorList), OperType = "YaeherPatientDoctorList", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> DeleteLable([FromBody] LableManageIn LableManageInfo) { if (!Commons.CheckSecret(LableManageInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var query = await _lableManageService.LableManageByID(LableManageInfo.Id); DoctorRelationIn doctorRelationIn = new DoctorRelationIn(); doctorRelationIn.AndAlso(a => a.IsDelete == false); doctorRelationIn.AndAlso(a => a.LableID == LableManageInfo.Id); var doctorLabelList = await _doctorRelationService.DoctorClinicRelationList(doctorRelationIn); if (doctorLabelList.Count() > 0) { this.ObjectResultModule.StatusCode = 100; this.ObjectResultModule.Message = "该标签绑定医生或者科室,不可删除!"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } if (query != null) { query.DeleteBy = userid; query.DeleteTime = DateTime.Now; query.IsDelete = true; var res = await _lableManageService.DeleteLableManage(query); this.ObjectResultModule.Object = res; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.StatusCode = 200; } else { this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Message = "NotFound"; this.ObjectResultModule.Object = ""; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "DeleteLable", OperContent = JsonHelper.ToJson(LableManageInfo), OperType = "DeleteLable", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> DeleteYaeherRole([FromBody] YaeherRole YaeherRoleInfo) { if (!Commons.CheckSecret(YaeherRoleInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var query = await _yaeherRoleService.YaeherRoleByID(YaeherRoleInfo.Id); YaeherUserRoleIn yaeherUserRoleIn = new YaeherUserRoleIn(); yaeherUserRoleIn.AndAlso(a => a.IsDelete == false); yaeherUserRoleIn.AndAlso(a => a.RoleID == YaeherRoleInfo.Id); var RoleUserList = await _yaeherUserRoleService.YaeherUserRoleList(yaeherUserRoleIn); if (RoleUserList.Count() > 0) { this.ObjectResultModule.Message = "用户使用角色不可删除!"; this.ObjectResultModule.StatusCode = 100; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } if (query != null) { query.DeleteBy = userid; query.DeleteTime = DateTime.Now; query.IsDelete = true; var res = await _yaeherRoleService.DeleteYaeherRole(query); this.ObjectResultModule.Object = res; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.StatusCode = 200; } else { this.ObjectResultModule.Message = "NotFound"; this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Object = ""; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "DeleteYaeherRole", OperContent = JsonHelper.ToJson(YaeherRoleInfo), OperType = "DeleteYaeherRole", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> QualityControlManage([FromBody] QualityControlManageIn input) { if (!Commons.CheckSecret(input.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var query = await _QualityControlManageService.QualityControlManageByID(input.Id); if (query != null) { if (input.ReplyState == "treated" && query.ReplyState == "untreated") { query.QualityLevel = input.QualityLevel; query.RepayIllnessDescription = input.RepayIllnessDescription; query.ModifyOn = DateTime.Now; query.ModifyBy = userid; query.ReplyState = "treated"; } else if (input.ReplyState == "back" && query.ReplyState == "untreated") { query.ModifyOn = DateTime.Now; query.ModifyBy = userid; query.ReplyState = "back"; } var res = await _QualityControlManageService.UpdateQualityControlManage(query); this.ObjectResultModule.Object = res; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.StatusCode = 200; } else { this.ObjectResultModule.Message = "NotFound"; this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Object = ""; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "QualityControlManage", OperContent = JsonHelper.ToJson(input), OperType = "QualityControlManage", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> CreateOrderEarlyWarning([FromBody] OrderEarlyWarning input) { if (!Commons.CheckSecret(input.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var create = new OrderEarlyWarning() { ConsultNumber = input.ConsultNumber, ConsultID = input.ConsultID, OrderID = input.OrderID, OrderNumber = input.OrderNumber, ConsultantID = input.ConsultantID, ConsultantName = input.ConsultantName, PatientID = input.PatientID, PatientName = input.PatientName, DoctorID = input.DoctorID, DoctorName = input.DoctorName, RemindState = input.RemindState, RemindDescription = input.RemindDescription, CreatedBy = userid, CreatedOn = DateTime.Now }; var res = await _OrderEarlyWarningService.CreateOrderEarlyWarning(create); if (res.Id > 0) { this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.Object = res; } else { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 400; this.ObjectResultModule.Message = "error!"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "CreateOrderEarlyWarning", OperContent = JsonHelper.ToJson(input), OperType = "CreateOrderEarlyWarning", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> UpdateCorporateIncomeDetails([FromBody] CorporateIncomeDetails CorporateIncomeDetailsInfo) { if (!Commons.CheckSecret(CorporateIncomeDetailsInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var UpdateCorporateIncomeDetails = await _corporateIncomeDetailsService.CorporateIncomeDetailsByID(CorporateIncomeDetailsInfo.Id); if (UpdateCorporateIncomeDetails != null) { UpdateCorporateIncomeDetails.ConsultNumber = CorporateIncomeDetailsInfo.ConsultNumber; UpdateCorporateIncomeDetails.ConsultID = CorporateIncomeDetailsInfo.ConsultID; UpdateCorporateIncomeDetails.ConsultantID = CorporateIncomeDetailsInfo.ConsultantID; UpdateCorporateIncomeDetails.ConsultantName = CorporateIncomeDetailsInfo.ConsultantName; UpdateCorporateIncomeDetails.PatientID = CorporateIncomeDetailsInfo.PatientID; UpdateCorporateIncomeDetails.PatientName = CorporateIncomeDetailsInfo.PatientName; UpdateCorporateIncomeDetails.DoctorID = CorporateIncomeDetailsInfo.DoctorID; UpdateCorporateIncomeDetails.DoctorName = CorporateIncomeDetailsInfo.DoctorName; UpdateCorporateIncomeDetails.OrderNumber = CorporateIncomeDetailsInfo.OrderNumber; UpdateCorporateIncomeDetails.OrderCurrency = CorporateIncomeDetailsInfo.OrderCurrency; UpdateCorporateIncomeDetails.OrderMoney = CorporateIncomeDetailsInfo.OrderMoney; UpdateCorporateIncomeDetails.ProportionMoney = CorporateIncomeDetailsInfo.ProportionMoney; UpdateCorporateIncomeDetails.ModifyOn = DateTime.Now; UpdateCorporateIncomeDetails.ModifyBy = userid; var result = await _corporateIncomeDetailsService.UpdateCorporateIncomeDetails(UpdateCorporateIncomeDetails); this.ObjectResultModule.Object = result; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } else { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Message = "NotFound"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "UpdateCorporateIncomeDetails", OperContent = JsonHelper.ToJson(CorporateIncomeDetailsInfo), OperType = "UpdateCorporateIncomeDetails", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(ObjectResultModule); }
public async Task <ObjectResultModule> CreateCorporateIncomeDetails([FromBody] CorporateIncomeDetails CorporateIncomeDetailsInfo) { if (!Commons.CheckSecret(CorporateIncomeDetailsInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var CreateCorporateIncomeDetails = new CorporateIncomeDetails() { ConsultNumber = CorporateIncomeDetailsInfo.ConsultNumber, ConsultID = CorporateIncomeDetailsInfo.ConsultID, ConsultantID = CorporateIncomeDetailsInfo.ConsultantID, ConsultantName = CorporateIncomeDetailsInfo.ConsultantName, PatientID = CorporateIncomeDetailsInfo.PatientID, PatientName = CorporateIncomeDetailsInfo.PatientName, DoctorID = CorporateIncomeDetailsInfo.DoctorID, DoctorName = CorporateIncomeDetailsInfo.DoctorName, OrderNumber = CorporateIncomeDetailsInfo.OrderNumber, OrderCurrency = CorporateIncomeDetailsInfo.OrderCurrency, OrderMoney = CorporateIncomeDetailsInfo.OrderMoney, ProportionMoney = CorporateIncomeDetailsInfo.ProportionMoney, CreatedBy = userid, CreatedOn = DateTime.Now }; var result = await _corporateIncomeDetailsService.CreateCorporateIncomeDetails(CreateCorporateIncomeDetails); if (result.Id > 0) { this.ObjectResultModule.Object = result; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } else { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 400; this.ObjectResultModule.Message = "error!"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "CreateCorporateIncomeDetails", OperContent = JsonHelper.ToJson(CorporateIncomeDetailsInfo), OperType = "CreateCorporateIncomeDetails", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(ObjectResultModule); }
public async Task <ObjectResultModule> UpdateOrderEarlyWarning([FromBody] OrderEarlyWarning input) { if (!Commons.CheckSecret(input.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var query = await _OrderEarlyWarningService.OrderEarlyWarningByID(input.Id); if (query != null) { query.ConsultNumber = input.ConsultNumber; query.ConsultID = input.ConsultID; query.OrderID = input.OrderID; query.OrderNumber = input.OrderNumber; query.ConsultantID = input.ConsultantID; query.ConsultantName = input.ConsultantName; query.PatientID = input.PatientID; query.PatientName = input.PatientName; query.DoctorID = input.DoctorID; query.DoctorName = input.DoctorName; query.RemindState = input.RemindState; query.RemindDescription = input.RemindDescription; query.ModifyOn = DateTime.Now; query.ModifyBy = userid; var res = await _OrderEarlyWarningService.UpdateOrderEarlyWarning(query); this.ObjectResultModule.Object = res; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.StatusCode = 200; } else { this.ObjectResultModule.Message = "NotFound"; this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Object = ""; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "UpdateOrderEarlyWarning", OperContent = JsonHelper.ToJson(input), OperType = "UpdateOrderEarlyWarning", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> DoctorIncomePage([FromBody] DoctorIncomeIn DoctorIncomeInPage) { if (!Commons.CheckSecret(DoctorIncomeInPage.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var usermanager = JsonHelper.FromJson <UserMemory>(_IabpSession.GetUserData()); // 判断当角色为医生角色时 if ((!usermanager.IsAdmin && usermanager.IsDoctor) || usermanager.MobileRoleName == "doctor") { if (DoctorIncomeInPage.Platform == "PC") { DoctorIncomeInPage.AndAlso(t => t.DoctorID == usermanager.DoctorID); } else if (DoctorIncomeInPage.Platform == "Mobile") { var doctor = await _yaeherDoctorService.YaeherDoctorByUserID(userid); DoctorIncomeInPage.AndAlso(t => t.DoctorID == doctor.Id); } } else { if (!string.IsNullOrEmpty(DoctorIncomeInPage.DoctorName)) { DoctorIncomeInPage.AndAlso(t => t.DoctorName.Contains(DoctorIncomeInPage.DoctorName)); } } DoctorIncomeInPage.AndAlso(t => !t.IsDelete); var values = await _DoctorIncomeService.DoctorIncomePage(DoctorIncomeInPage); this.ObjectResultModule.Object = new DoctorIncomeOut(values, DoctorIncomeInPage); this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.StatusCode = 200; #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "DoctorIncomePage", OperContent = JsonHelper.ToJson(DoctorIncomeInPage), OperType = "DoctorIncomePage", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> UpdateYaeherModule([FromBody] Yaeher.YaeherAuth.Dto.YaeherModuleNode YaeherModuleInfo) { if (!Commons.CheckSecret(YaeherModuleInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var UpdateYaeherModule = await _yaeherModuleService.YaeherModuleByID(YaeherModuleInfo.Id); if (UpdateYaeherModule != null) { UpdateYaeherModule.ParentId = YaeherModuleInfo.ParentId; UpdateYaeherModule.Names = YaeherModuleInfo.Names; UpdateYaeherModule.LinkUrls = YaeherModuleInfo.LinkUrls; UpdateYaeherModule.Areas = YaeherModuleInfo.Areas; UpdateYaeherModule.Controllers = YaeherModuleInfo.Controllers; UpdateYaeherModule.Actionss = YaeherModuleInfo.Actionss; UpdateYaeherModule.Icons = YaeherModuleInfo.Icons; UpdateYaeherModule.Codes = YaeherModuleInfo.Codes; UpdateYaeherModule.OrderSort = YaeherModuleInfo.OrderSort; UpdateYaeherModule.Description = YaeherModuleInfo.Description; UpdateYaeherModule.IsMenu = YaeherModuleInfo.IsMenu; UpdateYaeherModule.Enabled = YaeherModuleInfo.Enabled; UpdateYaeherModule.ModifyOn = DateTime.Now; UpdateYaeherModule.ModifyBy = userid; var result = await _yaeherModuleService.UpdateYaeherModule(UpdateYaeherModule); this.ObjectResultModule.Object = result; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } else { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Message = "NotFound"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "UpdateYaeherModule", OperContent = JsonHelper.ToJson(YaeherModuleInfo), OperType = "UpdateYaeherModule", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(ObjectResultModule); }
public async Task <ObjectResultModule> CreateIncomeDetails([FromBody] IncomeDetails input) { if (!Commons.CheckSecret(input.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var create = new IncomeDetails() { DoctorName = input.DoctorName, DoctorID = input.DoctorID, ConsultID = input.ConsultID, ConsultNumber = input.ConsultNumber, ConsultJSON = input.ConsultJSON, OrderNumber = input.OrderNumber, OrderCurrency = input.OrderCurrency, OrderMoney = input.OrderMoney, ProportionMoney = input.ProportionMoney, CreatedBy = userid, CreatedOn = DateTime.Now }; var res = await _IncomeDetailsService.CreateIncomeDetails(create); if (res.Id > 0) { this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.Object = res; } else { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 400; this.ObjectResultModule.Message = "error!"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "CreateIncomeDetails", OperContent = JsonHelper.ToJson(input), OperType = "CreateIncomeDetails", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> YaeherUserRoleByUserID([FromBody] YaeherUserRoleIn YaeherUserRoleInfo) { if (!Commons.CheckSecret(YaeherUserRoleInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var values = await _yaeherUserRoleService.YaeherUserRoleList(YaeherUserRoleInfo); YaeherRoleIn yaeherRoleIn = new YaeherRoleIn(); yaeherRoleIn.AndAlso(a => a.IsDelete == false); var RoleList = await _yaeherRoleService.YaeherRoleList(yaeherRoleIn); var UserRoleList = from Role in RoleList join UserAndRole in values on Role.Id equals UserAndRole.RoleID select new { Role.Id, Role.RoleName, Role.Description, UserAndRole.UserID }; if (UserRoleList.Count() == 0) { this.ObjectResultModule.StatusCode = 204; this.ObjectResultModule.Message = "NoContent"; this.ObjectResultModule.Object = ""; } else { YaeherUserRoleJSON yaeherUserRoleJSON = new YaeherUserRoleJSON(); foreach (var UserRoles in UserRoleList) { yaeherUserRoleJSON.RoleID += UserRoles.Id + ","; yaeherUserRoleJSON.UserID = UserRoles.UserID; } this.ObjectResultModule.Object = yaeherUserRoleJSON; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "YaeherUserRoleByUserID", OperContent = JsonHelper.ToJson(YaeherUserRoleInfo), OperType = "YaeherUserRoleByUserID", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(ObjectResultModule); }
public async Task <ObjectResultModule> UpdateIncomeDetails([FromBody] IncomeDetails input) { if (!Commons.CheckSecret(input.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var query = await _IncomeDetailsService.IncomeDetailsByID(input.Id); if (query != null) { query.DoctorName = input.DoctorName; query.DoctorID = input.DoctorID; query.ConsultID = input.ConsultID; query.ConsultNumber = input.ConsultNumber; query.ConsultJSON = input.ConsultJSON; query.OrderNumber = input.OrderNumber; query.OrderCurrency = input.OrderCurrency; query.OrderMoney = input.OrderMoney; query.ProportionMoney = input.ProportionMoney; query.ModifyOn = DateTime.Now; query.ModifyBy = userid; var res = await _IncomeDetailsService.UpdateIncomeDetails(query); this.ObjectResultModule.Object = res; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.StatusCode = 200; } else { this.ObjectResultModule.Message = "NotFound"; this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Object = ""; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "UpdateIncomeDetails", OperContent = JsonHelper.ToJson(input), OperType = "UpdateIncomeDetails", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <YaeherOperList> CreateYaeherOperList(YaeherOperList YaeherOperListInfo) { try { return(new YaeherOperList()); //YaeherOperListInfo.Id = await _repository.InsertAndGetIdAsync(YaeherOperListInfo); //return YaeherOperListInfo; } catch (Exception ex) { return(new YaeherOperList()); } }
public async Task <ObjectResultModule> CreateShareDoctor([FromBody] ShareDoctor input) { if (!Commons.CheckSecret(input.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var create = new ShareDoctor() { PatientID = input.PatientID, PatientName = input.PatientName, PatientJSON = input.PatientJSON, DoctorID = input.DoctorID, DoctorJSON = input.DoctorJSON, DoctorName = input.DoctorName, CreatedBy = userid, CreatedOn = DateTime.Now }; var res = await _ShareDoctorService.CreateShareDoctor(create); if (res.Id > 0) { this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.Object = res; } else { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 400; this.ObjectResultModule.Message = "error!"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "CreateShareDoctor", OperContent = JsonHelper.ToJson(input), OperType = "CreateShareDoctor", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> CreateYaeherPatientCollection([FromBody] YaeherPatientCollection input) { if (!Commons.CheckSecret(input.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var create = new YaeherPatientCollection() { UserID = input.UserID, Opentype = input.Opentype, CollectionType = input.CollectionType, CollectionUrl = input.CollectionUrl, CollectionJSON = input.CollectionJSON, CreatedBy = userid, CreatedOn = DateTime.Now }; var res = await _PatientCollectionService.CreateYaeherPatientCollection(create); if (res.Id > 0) { this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.Object = res; } else { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 400; this.ObjectResultModule.Message = "error!"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "CreateYaeherPatientCollection", OperContent = JsonHelper.ToJson(input), OperType = "CreateYaeherPatientCollection", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> UpdateShareDoctor([FromBody] ShareDoctor input) { if (!Commons.CheckSecret(input.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var query = await _ShareDoctorService.ShareDoctorByID(input.Id); if (query != null) { query.PatientID = input.PatientID; query.PatientName = input.PatientName; query.PatientJSON = input.PatientJSON; query.DoctorID = input.DoctorID; query.DoctorJSON = input.DoctorJSON; query.DoctorName = input.DoctorName; query.ModifyOn = DateTime.Now; query.ModifyBy = userid; var res = await _ShareDoctorService.UpdateShareDoctor(query); this.ObjectResultModule.Message = "success"; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Object = res; } else { this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Message = "NotFound"; this.ObjectResultModule.Object = ""; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "UpdateShareDoctor", OperContent = JsonHelper.ToJson(input), OperType = "UpdateShareDoctor", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> LableByName([FromBody] LableManageIn LableManageInfo) { if (!Commons.CheckSecret(LableManageInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; if (!string.IsNullOrEmpty(LableManageInfo.LableName)) { LableManageInfo.AndAlso(t => t.LableName == LableManageInfo.LableName); } if (LableManageInfo.Id > 0) { LableManageInfo.AndAlso(t => t.Id == LableManageInfo.Id); } LableManageInfo.AndAlso(t => !t.IsDelete); var values = await _lableManageService.LableManageByName(LableManageInfo); if (values == null) { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Message = "NotFound"; } else { this.ObjectResultModule.Object = values; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "LableByName", OperContent = JsonHelper.ToJson(LableManageInfo), OperType = "LableByName", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(ObjectResultModule); }
public async Task <ObjectResultModule> UpdateLable([FromBody] LableManage LableManageInfo) { if (!Commons.CheckSecret(LableManageInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var UpdateLable = await _lableManageService.LableManageByID(LableManageInfo.Id); if (UpdateLable != null) { UpdateLable.LableName = LableManageInfo.LableName; UpdateLable.LableRemark = LableManageInfo.LableRemark; UpdateLable.CreatedBy = LableManageInfo.CreatedBy; UpdateLable.CreatedOn = LableManageInfo.CreatedOn; UpdateLable.OrderSort = LableManageInfo.OrderSort; UpdateLable.ModifyOn = DateTime.Now; UpdateLable.ModifyBy = userid; var result = await _lableManageService.UpdateLableManage(UpdateLable); this.ObjectResultModule.Object = result; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } else { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Message = "NotFound"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "UpdateLable", OperContent = JsonHelper.ToJson(LableManageInfo), OperType = "UpdateLable", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(ObjectResultModule); }
public async Task <ObjectResultModule> CreateCorporateIncomeTotal([FromBody] CorporateIncomeTotal CorporateIncomeTotalInfo) { if (!Commons.CheckSecret(CorporateIncomeTotalInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var CreateCorporateIncomeTotal = new CorporateIncomeTotal() { IncomeType = CorporateIncomeTotalInfo.IncomeType, IncomeTotal = CorporateIncomeTotalInfo.IncomeTotal, CreatedBy = userid, CreatedOn = DateTime.Now, }; var result = await _corporateIncomeTotalService.CreateCorporateIncomeTotal(CreateCorporateIncomeTotal); if (result.Id > 0) { this.ObjectResultModule.Object = result; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } else { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 400; this.ObjectResultModule.Message = "error!"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "CreateCorporateIncomeTotal", OperContent = JsonHelper.ToJson(CorporateIncomeTotalInfo), OperType = "CreateCorporateIncomeTotal", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(ObjectResultModule); }
public async Task <ObjectResultModule> IncomeDetailsList([FromBody] IncomeDetailsIn IncomeDetailsInList) { if (!Commons.CheckSecret(IncomeDetailsInList.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; IncomeDetailsInList.AndAlso(t => !t.IsDelete); if (!string.IsNullOrEmpty(IncomeDetailsInList.DoctorName)) { IncomeDetailsInList.AndAlso(t => t.DoctorName.Contains(IncomeDetailsInList.DoctorName)); } var values = await _IncomeDetailsService.IncomeDetailsList(IncomeDetailsInList); if (values.Count() == 0) { this.ObjectResultModule.StatusCode = 204; this.ObjectResultModule.Message = "NoContent"; this.ObjectResultModule.Object = ""; } else { this.ObjectResultModule.Object = values; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.StatusCode = 200; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "IncomeDetailsList", OperContent = JsonHelper.ToJson(IncomeDetailsInList), OperType = "IncomeDetailsList", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> LeaguerInfoPage([FromBody] LeaguerInfo PageLeaguer) { if (!Commons.CheckSecret(PageLeaguer.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; PageLeaguer.AndAlso(t => !t.IsDelete && t.CreatedBy == userid); if (!string.IsNullOrEmpty(PageLeaguer.Name)) { PageLeaguer.AndAlso(t => t.LeaguerName.Contains(PageLeaguer.Name)); } var values = await _LeaguerService.LeaguerInfoPage(PageLeaguer); if (values.Items.Count() == 0) { this.ObjectResultModule.StatusCode = 204; this.ObjectResultModule.Message = "NoContent"; this.ObjectResultModule.Object = ""; } else { this.ObjectResultModule.Object = new LeaguerInfoOutPage(values, PageLeaguer); this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "LeaguerInfoPage", OperContent = JsonHelper.ToJson(PageLeaguer), OperType = "LeaguerInfoPage", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> YaeherPatientCollectionPage([FromBody] YaeherPatientCollectionIn PagePatientCollection) { if (!Commons.CheckSecret(PagePatientCollection.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; PagePatientCollection.AndAlso(t => !t.IsDelete); if (!string.IsNullOrEmpty(PagePatientCollection.Opentype)) { PagePatientCollection.AndAlso(t => t.Opentype == PagePatientCollection.Opentype); } var values = await _PatientCollectionService.YaeherPatientCollectionPage(PagePatientCollection); if (values.Items.Count() == 0) { this.ObjectResultModule.StatusCode = 204; this.ObjectResultModule.Message = "NoContent"; this.ObjectResultModule.Object = ""; } else { this.ObjectResultModule.Object = new YaeherPatientCollectionOut(values, PagePatientCollection); this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "YaeherPatientCollectionPage", OperContent = JsonHelper.ToJson(PagePatientCollection), OperType = "YaeherPatientCollectionPage", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> DeleteOrderEarlyWarning([FromBody] OrderEarlyWarning input) { if (!Commons.CheckSecret(input.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var query = await _OrderEarlyWarningService.OrderEarlyWarningByID(input.Id); if (query != null) { query.DeleteBy = userid; query.DeleteTime = DateTime.Now; query.IsDelete = true; var res = await _OrderEarlyWarningService.DeleteOrderEarlyWarning(query); this.ObjectResultModule.Object = res; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.StatusCode = 200; } else { this.ObjectResultModule.Message = "NotFound"; this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Object = ""; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "DeleteOrderEarlyWarning", OperContent = JsonHelper.ToJson(input), OperType = "DeleteOrderEarlyWarning", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }
public async Task <ObjectResultModule> UpdateCorporateIncomeTotal([FromBody] CorporateIncomeTotal CorporateIncomeTotalInfo) { if (!Commons.CheckSecret(CorporateIncomeTotalInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var UpdateCorporateIncomeTotal = await _corporateIncomeTotalService.CorporateIncomeTotalByID(CorporateIncomeTotalInfo.Id); if (UpdateCorporateIncomeTotal != null) { UpdateCorporateIncomeTotal.IncomeType = CorporateIncomeTotalInfo.IncomeType; UpdateCorporateIncomeTotal.IncomeTotal = CorporateIncomeTotalInfo.IncomeTotal; UpdateCorporateIncomeTotal.ModifyOn = DateTime.Now; UpdateCorporateIncomeTotal.ModifyBy = userid; var result = await _corporateIncomeTotalService.UpdateCorporateIncomeTotal(UpdateCorporateIncomeTotal); this.ObjectResultModule.Object = result; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } else { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 404; this.ObjectResultModule.Message = "NotFound"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "UpdateCorporateIncomeTotal", OperContent = JsonHelper.ToJson(CorporateIncomeTotalInfo), OperType = "UpdateCorporateIncomeTotal", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(ObjectResultModule); }
public async Task <ObjectResultModule> LableClinicList([FromBody] LableManageIn LableManageInfo) { if (!Commons.CheckSecret(LableManageInfo.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; var LableManagemanage = new LabelClinicManageIn() { ClinicID = LableManageInfo.ClinicID }; var values = await _lableManageService.LableClinicManageInList(LableManagemanage); if (values.Count == 0) { this.ObjectResultModule.Object = ""; this.ObjectResultModule.StatusCode = 204; this.ObjectResultModule.Message = "NoContent"; } else { this.ObjectResultModule.Object = values; this.ObjectResultModule.StatusCode = 200; this.ObjectResultModule.Message = "success"; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "LableClinicList", OperContent = JsonHelper.ToJson(LableManageInfo), OperType = "LableClinicList", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(ObjectResultModule); }
public async Task <ObjectResultModule> OrderEarlyWarningList([FromBody] OrderEarlyWarningIn OrderEarlyWarningInList) { if (!Commons.CheckSecret(OrderEarlyWarningInList.Secret)) { this.ObjectResultModule.StatusCode = 422; this.ObjectResultModule.Message = "Wrong Secret"; this.ObjectResultModule.Object = ""; return(this.ObjectResultModule); } var userid = _IabpSession.UserId > 0 ? (int)_IabpSession.UserId : 0; OrderEarlyWarningInList.AndAlso(t => !t.IsDelete); var value = await _OrderEarlyWarningService.OrderEarlyWarningList(OrderEarlyWarningInList); if (value.Count() == 0) { this.ObjectResultModule.StatusCode = 204; this.ObjectResultModule.Message = "NoContent"; this.ObjectResultModule.Object = ""; } else { this.ObjectResultModule.Object = value; this.ObjectResultModule.Message = "sucess"; this.ObjectResultModule.StatusCode = 200; } #region 操作日志 var CreateYaeherOperList = new YaeherOperList() { OperExplain = "OrderEarlyWarningList", OperContent = JsonHelper.ToJson(OrderEarlyWarningInList), OperType = "OrderEarlyWarningList", CreatedBy = userid, CreatedOn = DateTime.Now }; var resultLog = await _yaeherOperListService.CreateYaeherOperList(CreateYaeherOperList); #endregion return(this.ObjectResultModule); }