/// <summary> /// Get project data by search condition /// </summary> /// <param name="cond"></param> /// <returns></returns> public ActionResult CMS290_Search(doSearchProjectCondition cond) { ObjectResultData res = new ObjectResultData(); try { CommonUtil c = new CommonUtil(); cond.ContractCode = c.ConvertContractCode(cond.ContractCode, CommonUtil.CONVERT_TYPE.TO_LONG); IProjectHandler hand = ServiceContainer.GetService <IProjectHandler>() as IProjectHandler; List <dtProjectData> list = hand.GetProjectDataForSearch(cond); res.ResultData = CommonUtil.ConvertToXml <dtProjectData>(list, "Common\\CMS290", CommonUtil.GRID_EMPTY_TYPE.SEARCH); } catch (Exception ex) { res.AddErrorMessage(ex); } return(Json(res)); }