public RBVHSearchFilter BindSearch(string searchprm) { RBVHSearchFilter SearchKey = new RBVHSearchFilter(); SearchKey.OrderBy = "EmployeeCode"; SearchKey.ColumnsName = "EmployeeCode,FirstName_EN,MiddleName_EN,LastName_EN,DomainId,EmployeeNo"; SearchKey.Page = 1; SearchKey.PageSize = 5000; SearchKey.OrderBy = "EmployeeCode"; SearchKey.OrderDirection = "Desc"; SearchKey.CDate = SystemConfig.CurrentDate; SearchKey.Condition = ""; RBVHEmployeeSearchpara ObjPara = JsonConvert.DeserializeObject <RBVHEmployeeSearchpara>(searchprm, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); if (ObjPara != null) { if (!string.IsNullOrEmpty(ObjPara.EntityId)) { SearchKey.EntityID = int.Parse(ObjPara.EntityId); } if (!string.IsNullOrEmpty(ObjPara.OrgId)) { SearchKey.Condition += " tbl.GroupCode = " + ObjPara.OrgId + " "; } } return(SearchKey); }
public SearchFilter BindSearch(string searchprm) { SearchFilter SearchKey = new SearchFilter(); SearchKey.ColumnsName = "EmployeeID,Bar_Code"; SearchKey.Page = 1; SearchKey.PageSize = 5000; SearchKey.OrderBy = "Work_Date"; SearchKey.OrderDirection = "Desc"; RBVHEmployeeSearchpara ObjPara = JsonConvert.DeserializeObject <RBVHEmployeeSearchpara>(searchprm, new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }); SearchKey.Condition = ""; return(SearchKey); }