コード例 #1
0
        /// <summary>
        /// Get data stockout for view
        /// </summary>
        /// <param name="strProjectCode"></param>
        /// <param name="BranchNo"></param>
        /// <returns></returns>
        public ActionResult CTS260_GetStockOutForView(string strProjectCode, int?BranchNo)
        {
            IProjectHandler projh = ServiceContainer.GetService <IProjectHandler>() as IProjectHandler;
            List <dtTbt_ProjectStockoutBranchIntrumentDetailForView> lstBranch;

            if (!CommonUtil.IsNullOrEmpty(strProjectCode) && !CommonUtil.IsNullOrEmpty(BranchNo))
            {
                lstBranch = projh.GetTbt_ProjectStockoutBranchIntrumentDetailForView(strProjectCode, BranchNo);
            }
            else
            {
                lstBranch = new List <dtTbt_ProjectStockoutBranchIntrumentDetailForView>();
            }
            string res = CommonUtil.ConvertToXml <dtTbt_ProjectStockoutBranchIntrumentDetailForView>(lstBranch, "contract\\CTS260_stock", CommonUtil.GRID_EMPTY_TYPE.VIEW);

            return(Json(res));
        }