internal TokenAuthorizeCheck(CommonParam paramCheck) : base(paramCheck) { }
internal AasApplicationRoleCreate(CommonParam paramCreate) : base(paramCreate) { }
internal PcsEmployeeCheck(CommonParam paramCheck) : base(paramCheck) { }
public AasModuleRoleManager(CommonParam param) : base(param) { }
public AasCredentialDataManager(CommonParam param) : base(param) { }
internal PcsProjectTruncate(CommonParam paramTruncate) : base(paramTruncate) { }
internal AasUserRoleCheck(CommonParam paramCheck) : base(paramCheck) { }
internal ModuleRoleGet(CommonParam paramGet) : base(paramGet) { }
internal AasModuleRoleTruncate(CommonParam paramTruncate) : base(paramTruncate) { }
internal PcsAddressUpdate(CommonParam paramUpdate) : base(paramUpdate) { }
internal AasApplicationRoleLock(CommonParam paramLock) : base(paramLock) { }
/// <summary> /// Changes a Helm synthesizer parameter by percent of the valid range. /// e.g. Set any parameter to the highest setting by setting the percent to 1.0. /// </summary> /// <param name="parameter">The parameter to be changed.</param> /// <param name="newPercent">The percent of range of values to use. 0.0 for lowest, 1.0 for highest.</param> public void SetParameterPercent(CommonParam parameter, float newPercent) { Native.HelmSetParameterPercent(channel, (int)parameter, newPercent); }
/// <summary> /// Gets a Helm synthesizer parameter's percent value of the valid range. /// e.g. If the percent of a parameter is set to 1.0, it's at its max setting. /// </summary> /// <param name="parameter">The parameter to get the value percent of.</param> /// <returns>The current percent value of the parameter passed in.</returns> public float GetParameterPercent(CommonParam parameter) { return(Native.HelmGetParameterPercent(channel, (int)parameter)); }
/// <summary> /// Changes a Helm synthesizer parameter value. /// e.g. Lower the pitch of the oscillator by setting the transpose to -12 semitones. /// </summary> /// <param name="parameter">The parameter to be changed.</param> /// <param name="newValue">The value to change the parameter to.</param> public void SetParameterValue(CommonParam parameter, float newValue) { Native.HelmSetParameterValue(channel, (int)parameter, newValue); }
internal PcsEmployeeTruncate(CommonParam paramTruncate) : base(paramTruncate) { }
public UserRoleManagerGet(CommonParam param) : base(param) { }
//列表页 public ActionResult List() { Comm_Platform_Worker workerModel = Session["worker"] as Comm_Platform_Worker; if (workerModel == null) { redirectTo(); return(null); } string region_code = CommonFunc.SafeGetStringFromObj(workerModel.region_code); string dell_user_name = CommonFunc.SafeGetStringFromObj(workerModel.user_name); string name = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request["names"]).Trim()); string sex = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request["sex"]).Trim()); string birthdateBegin = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request["txtBirthDateBegin"]).Trim()); string birthdateEnd = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request["txtBirthDateEnd"]).Trim()); string id_card_number = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request["idCard"]).Trim()); string address = CommonFunc.FilterSpecialString(CommonFunc.SafeGetStringFromObj(Request["address"]).Trim()); string s = string.Empty; //获取区域代码 if (!string.IsNullOrEmpty(CommonFunc.SafeGetStringFromObj(Request["ddlProvince"]))) { s = CommonFunc.SafeGetStringFromObj(Request["ddlProvince"]); } if (!string.IsNullOrEmpty(CommonFunc.SafeGetStringFromObj(Request["ddlCity"]))) { s = CommonFunc.SafeGetStringFromObj(Request["ddlCity"]); } if (!string.IsNullOrEmpty(CommonFunc.SafeGetStringFromObj(Request["ddlCounty"]))) { s = CommonFunc.SafeGetStringFromObj(Request["ddlCounty"]); } if (!string.IsNullOrEmpty(CommonFunc.SafeGetStringFromObj(Request["ddlStreet"]))) { s = CommonFunc.SafeGetStringFromObj(Request["ddlStreet"]); } if (!string.IsNullOrEmpty(CommonFunc.SafeGetStringFromObj(Request["ddlCommunity"]))) { s = CommonFunc.SafeGetStringFromObj(Request["ddlCommunity"]); } if (s.Length > region_code.Length) { region_code = s; } int pageIndex = CommonFunc.SafeGetIntFromObj(this.Request["pageIndex"], 1); int pageSize = this.Request["pageSize"] == null ? PageSize.GetPageSize : int.Parse(Request["pageSize"]); int totalCount = 0; CommonParam commonParam = new CommonParam() { PageIndex = pageIndex, PageSize = pageSize, TotalCount = totalCount, region_code = region_code, name = name, sex = sex, txtBirthDateBegin = birthdateBegin, txtBirthDateEnd = birthdateEnd, idCard = id_card_number, address = address }; var disease_Comm_Testing_BloodList = disease_Comm_Testing_BMCService.LoadSearchEntities(commonParam); totalCount = commonParam.TotalCount; int PageCount = Convert.ToInt32(Math.Ceiling((double)totalCount / pageSize)); List <Chronic_disease_Comm_Testing_BMC> result = new List <Chronic_disease_Comm_Testing_BMC>(); result.AddRange(disease_Comm_Testing_BloodList); PagerInfo pager = new PagerInfo(); pager.PageIndex = pageIndex; pager.PageSize = pageSize; pager.TotalCount = totalCount; PagerQuery <PagerInfo, List <Chronic_disease_Comm_Testing_BMC> > query = new PagerQuery <PagerInfo, List <Chronic_disease_Comm_Testing_BMC> >(pager, result); ViewData.Model = query; ViewBag.dell_user_name = dell_user_name; ViewBag.PageIndex = pageIndex; ViewBag.PageSize = pageSize; return(View()); }
public AasApplicationManager(CommonParam param) : base(param) { }
internal PcsProjectCheck(CommonParam paramCheck) : base(paramCheck) { }
public ApplicationRoleManagerGet(CommonParam param) : base(param) { }
public void Action(ISkill skill, SkillActionData data, CommonParam param) { skill.RemoveSkillAction(data.Id, param); }
internal AasUserUpdate(CommonParam paramUpdate) : base(paramUpdate) { }
internal PcsEmployeeUpdate(CommonParam paramUpdate) : base(paramUpdate) { }
internal AasCredentialDataCheck(CommonParam paramCheck) : base(paramCheck) { }
internal AasRoleCreate(CommonParam paramCreate) : base(paramCreate) { }
private T ProcessRequest <T>(HttpMethod method, string reqUri, CommonParam param, params string[] headerParams) { T result = default(T); try { if (String.IsNullOrWhiteSpace(this.baseUri)) { LogSystem.Error("Khong co dia chi server AAS"); return(result); } using (var client = new HttpClient()) { client.BaseAddress = new Uri(baseUri); client.DefaultRequestHeaders.Accept.Clear(); if (headerParams != null) { if (headerParams.Length % 2 == 0) { for (int i = 0; i < headerParams.Length;) { client.DefaultRequestHeaders.Add(headerParams[i], headerParams[i + 1]); i = i + 2; } } else { throw new Exception("So luong headerParams phai chan"); } } param = param != null ? param : new CommonParam(); HttpResponseMessage responseMessage = null; if (method == HttpMethod.Get) { responseMessage = client.GetAsync(reqUri).Result; } else if (method == HttpMethod.Post) { responseMessage = client.PostAsJsonAsync(reqUri, "").Result; } if (responseMessage == null || !responseMessage.IsSuccessStatusCode) { string statusCode = responseMessage != null?responseMessage.StatusCode.GetHashCode() + "" : null; throw new Exception(String.Format("Goi api that bai. uri = {0}, StatusCode = {1}", baseUri + reqUri, statusCode)); } string responseData = responseMessage.Content.ReadAsStringAsync().Result; ApiResultObject <T> data = JsonConvert.DeserializeObject <ApiResultObject <T> >(responseData); if (data != null && data.Data != null && data.Success) { result = data.Data; } else { string statusCode = responseMessage != null?responseMessage.StatusCode.GetHashCode() + "" : null; if (data.Param != null && data.Param.Messages != null && data.Param.Messages.Count > 0) { param.Messages.AddRange(data.Param.Messages); } if (data.Param != null && data.Param.BugCodes != null && data.Param.BugCodes.Count > 0) { param.BugCodes.AddRange(data.Param.BugCodes); } throw new Exception(String.Format("Goi api that bai. uri = {0}, StatusCode = {1}", baseUri + reqUri, statusCode)); } } } catch (Exception ex) { LogSystem.Error(ex); result = default(T); } return(result); }
internal AasApplicationCheck(CommonParam paramCheck) : base(paramCheck) { }
internal AasUserRoleTruncate(CommonParam paramTruncate) : base(paramTruncate) { }
public BackendAdapter(CommonParam param) : base(param) { }
internal PcsProjectLock(CommonParam paramLock) : base(paramLock) { }