diff --git a/BookingJieFeng/BookingJieFeng.csproj.user b/BookingJieFeng/BookingJieFeng.csproj.user index a48b3371..28be9c4c 100644 --- a/BookingJieFeng/BookingJieFeng.csproj.user +++ b/BookingJieFeng/BookingJieFeng.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU FolderProfile true diff --git a/BookingWeb/BookingWeb.csproj.user b/BookingWeb/BookingWeb.csproj.user index 6bc24ada..4edb5e0f 100644 --- a/BookingWeb/BookingWeb.csproj.user +++ b/BookingWeb/BookingWeb.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU true diff --git a/DSWeb/Areas/CommMng/DAL/BasicDataRefDAL.cs b/DSWeb/Areas/CommMng/DAL/BasicDataRefDAL.cs index 83040591..f5201e77 100644 --- a/DSWeb/Areas/CommMng/DAL/BasicDataRefDAL.cs +++ b/DSWeb/Areas/CommMng/DAL/BasicDataRefDAL.cs @@ -421,6 +421,12 @@ namespace DSWeb.Areas.CommMng.DAL { strSql.Append(" and " + strCondition); } + if (lan == "en-us") + { + strSql.Append(" and ISNULL(ESHORTNAME,'')<>'' "); + + } + if (IsEnableCustRange == "1") strSql.Append(" and (SHORTNAME in (SELECT SHORTNAME from info_client_range where USERID='" + userid + "' ) or SHORTNAME not in (SELECT SHORTNAME from info_client_range )) "); diff --git a/DSWeb/Areas/MvcShipping/Controllers/MsCompanysController.cs b/DSWeb/Areas/MvcShipping/Controllers/MsCompanysController.cs index 871e5274..a2bcce07 100644 --- a/DSWeb/Areas/MvcShipping/Controllers/MsCompanysController.cs +++ b/DSWeb/Areas/MvcShipping/Controllers/MsCompanysController.cs @@ -57,7 +57,9 @@ namespace DSWeb.MvcShipping.Controllers public ContentResult GetNoPicDataList(int start, int limit, string sort, string condition) { // - var dataList = MsCompanysDAL.GetNoPicDataList(condition); + string LAN = Convert.ToString(Session["LANGUAGES"]); + + var dataList = MsCompanysDAL.GetNoPicDataList(condition, LAN); var list = dataList.ToList(); var json = JsonConvert.Serialize(new { Success = true, Message = "查询成功", totalCount = dataList.Count, data = list.ToList() }); return new ContentResult() { Content = json }; diff --git a/DSWeb/Areas/MvcShipping/DAL/MsCompanys/MsCompanysDAL.cs b/DSWeb/Areas/MvcShipping/DAL/MsCompanys/MsCompanysDAL.cs index 648540c7..98288d3f 100644 --- a/DSWeb/Areas/MvcShipping/DAL/MsCompanys/MsCompanysDAL.cs +++ b/DSWeb/Areas/MvcShipping/DAL/MsCompanys/MsCompanysDAL.cs @@ -96,7 +96,7 @@ namespace DSWeb.MvcShipping.DAL.MsCompanysDAL return new MsCompanysEntity(); } - static public List GetNoPicDataList(string strCondition) + static public List GetNoPicDataList(string strCondition,string LAN) { // String strSql = "SELECT *,CODENAME + '-' + NAME AS CodeAndName,MODIFIEDUSERNAME=(select top 1 SHOWNAME from [user] where gid=[company].MODIFIEDUSER) FROM [company] "; @@ -105,8 +105,13 @@ namespace DSWeb.MvcShipping.DAL.MsCompanysDAL { strSql += " and " + strCondition; } + if (LAN == "en-us") + { + strSql += " and ISNULL(ENNAME,'')<>'' "; + + } - strSql += " order by [CODENAME],[NAME]"; + strSql += " order by [CODENAME],[NAME]"; return SetNoPicData(strSql); } diff --git a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js index a44f0e34..5eab5a0a 100644 --- a/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js +++ b/DSWeb/Areas/MvcShipping/Viewsjs/MsOpSeae/MsOpSeaeEdit.js @@ -1237,6 +1237,12 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, { name: 'TRADETERM' }); + + var SaleCompanyFIELDNAME = 'NAME'; + if (strLANGUAGES == "en-us") { + SaleCompanyFIELDNAME = 'ENNAME'; + } + this.storeSaleCompany = Ext.create('DsExt.ux.RefTableStore', { model: 'MsCompanysEntity', proxy: { url: '/MvcShipping/MsCompanys/GetNoPicDataList' } @@ -1249,7 +1255,7 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, { forceSelection: true, name: 'SALECORPID', valueField: 'GID', - displayField: 'NAME' + displayField: SaleCompanyFIELDNAME }); this.StoreBSSTATUSREF= Ext.create('Ext.data.Store', { diff --git a/DSWeb/DSWeb.csproj.user b/DSWeb/DSWeb.csproj.user index a8615099..5d714467 100644 --- a/DSWeb/DSWeb.csproj.user +++ b/DSWeb/DSWeb.csproj.user @@ -4,7 +4,7 @@ ShowAllFiles 配置文件1 true - Debug|Any CPU + Release|Any CPU diff --git a/DispatchWeb/DispatchWeb.csproj.user b/DispatchWeb/DispatchWeb.csproj.user index e6a8406a..af17a67a 100644 --- a/DispatchWeb/DispatchWeb.csproj.user +++ b/DispatchWeb/DispatchWeb.csproj.user @@ -1,7 +1,7 @@  - Debug|Any CPU + Release|Any CPU true