public ActionResult CMS260() { string strRealCustomerCode = ""; try { CMS260_ScreenParameter param = GetScreenObject <CMS260_ScreenParameter>(); strRealCustomerCode = param.strRealCustomerCode; } catch { } CommonUtil c = new CommonUtil(); // convert strRealCustomerCode to long format strRealCustomerCode = c.ConvertCustCode(strRealCustomerCode, CommonUtil.CONVERT_TYPE.TO_LONG); List <View_dtCustomerForView> nlst = new List <View_dtCustomerForView>(); try { ICustomerMasterHandler handler = ServiceContainer.GetService <ICustomerMasterHandler>() as ICustomerMasterHandler; List <dtCustomerForView> list = handler.GetCustomerForView(strRealCustomerCode, MiscType.C_CUST_STATUS, MiscType.C_CUST_TYPE, MiscType.C_FINANCIAL_MARKET_TYPE); foreach (dtCustomerForView l in list) { nlst.Add(CommonUtil.CloneObject <dtCustomerForView, View_dtCustomerForView>(l)); } // select language nlst = CommonUtil.ConvertObjectbyLanguage <View_dtCustomerForView, View_dtCustomerForView>(nlst, "CustStatusName"); if (nlst.Count > 0) { ViewBag.CustomerStatus = CommonUtil.TextCodeName(nlst[0].CustStatus, nlst[0].CustStatusName); ViewBag.CustomerCode = c.ConvertCustCode(nlst[0].CustCode, CommonUtil.CONVERT_TYPE.TO_SHORT); //ViewBag.CustomerName_Eng = nlst[0].CustNameEN; //ViewBag.CustomerName_Local = nlst[0].CustNameLC; ViewBag.CustomerName_Eng = nlst[0].CustFullNameEN; ViewBag.CustomerName_Local = nlst[0].CustFullNameLC; } return(View()); } catch (Exception ex) { ObjectResultData res = new ObjectResultData(); res.AddErrorMessage(ex); return(Json(res)); } }