示例#1
0
 internal TokenAuthorizeCheck(CommonParam paramCheck)
     : base(paramCheck)
 {
 }
 internal AasApplicationRoleCreate(CommonParam paramCreate)
     : base(paramCreate)
 {
 }
示例#3
0
 internal PcsEmployeeCheck(CommonParam paramCheck)
     : base(paramCheck)
 {
 }
示例#4
0
 public AasModuleRoleManager(CommonParam param)
     : base(param)
 {
 }
 public AasCredentialDataManager(CommonParam param)
     : base(param)
 {
 }
示例#6
0
 internal PcsProjectTruncate(CommonParam paramTruncate)
     : base(paramTruncate)
 {
 }
示例#7
0
 internal AasUserRoleCheck(CommonParam paramCheck)
     : base(paramCheck)
 {
 }
示例#8
0
 internal ModuleRoleGet(CommonParam paramGet)
     : base(paramGet)
 {
 }
示例#9
0
 internal AasModuleRoleTruncate(CommonParam paramTruncate)
     : base(paramTruncate)
 {
 }
示例#10
0
 internal PcsAddressUpdate(CommonParam paramUpdate)
     : base(paramUpdate)
 {
 }
示例#11
0
 internal AasApplicationRoleLock(CommonParam paramLock)
     : base(paramLock)
 {
 }
示例#12
0
 /// <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);
 }
示例#13
0
 /// <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));
 }
示例#14
0
 /// <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);
 }
示例#15
0
 internal PcsEmployeeTruncate(CommonParam paramTruncate)
     : base(paramTruncate)
 {
 }
示例#16
0
 public UserRoleManagerGet(CommonParam param)
     : base(param)
 {
 }
示例#17
0
        //列表页
        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());
        }
示例#18
0
 public AasApplicationManager(CommonParam param)
     : base(param)
 {
 }
示例#19
0
 internal PcsProjectCheck(CommonParam paramCheck)
     : base(paramCheck)
 {
 }
 public ApplicationRoleManagerGet(CommonParam param)
     : base(param)
 {
 }
示例#21
0
 public void Action(ISkill skill, SkillActionData data, CommonParam param)
 {
     skill.RemoveSkillAction(data.Id, param);
 }
示例#22
0
 internal AasUserUpdate(CommonParam paramUpdate)
     : base(paramUpdate)
 {
 }
示例#23
0
 internal PcsEmployeeUpdate(CommonParam paramUpdate)
     : base(paramUpdate)
 {
 }
示例#24
0
 internal AasCredentialDataCheck(CommonParam paramCheck)
     : base(paramCheck)
 {
 }
示例#25
0
 internal AasRoleCreate(CommonParam paramCreate)
     : base(paramCreate)
 {
 }
示例#26
0
        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);
        }
示例#27
0
 internal AasApplicationCheck(CommonParam paramCheck)
     : base(paramCheck)
 {
 }
示例#28
0
 internal AasUserRoleTruncate(CommonParam paramTruncate)
     : base(paramTruncate)
 {
 }
示例#29
0
 public BackendAdapter(CommonParam param)
     : base(param)
 {
 }
示例#30
0
 internal PcsProjectLock(CommonParam paramLock)
     : base(paramLock)
 {
 }