Example #1
0
 public ActionResult GetMDMData(string partNo)
 {
     try
     {
         V_TC_MDM_ALL_BLL mdmBLL = new V_TC_MDM_ALL_BLL();
         V_TC_MDM_ALL     model  = mdmBLL.GetSpecifyMDM(partNo);
         return(Json(new RequestResult(model)));
     }
     catch (Exception ex)
     {
         LogHelper.WriteLog("getMDMData", ex);
         return(Json(new RequestResult(false, ex.Message)));
     }
 }
Example #2
0
        public ActionResult QueryAction(string partNo, string hsCode, string declrName, string element, int currentPage, int pageSize)
        {
            CHubEntities     db        = new CHubEntities();
            V_TC_MDM_ALL_BLL mdmBLL    = new V_TC_MDM_ALL_BLL(db);
            int totalCount             = 0;
            List <V_TC_MDM_ALL> result = mdmBLL.GetTCMDMList(partNo, hsCode, declrName, element, currentPage, pageSize, out totalCount);

            var obj = new
            {
                result     = result,
                totalCount = totalCount
            };

            return(Json(obj));
        }