commit by yzf

master
Yang 2 years ago
parent 425a818628
commit 10b60325e1

@ -565,6 +565,8 @@ namespace FactorySystemApi.Controllers
if (restResult != null && restResult.data != null)
{
ExceptionHelper.AddSystemJournal(Request, inParam, restResult);
List<BomModel> bomList = JsonConvert.DeserializeObject<List<BomModel>>(restResult.data.ToString());
@ -668,6 +670,8 @@ namespace FactorySystemApi.Controllers
List<TFS_Material> mateList = new List<TFS_Material>();
List<TFS_ViewMaterial> viewList = new List<TFS_ViewMaterial>();
List<TFS_Formula> formulaList = new List<TFS_Formula>();
string ids1 = "", ids2 = "";//需求变更ids2弃用
string materialCodes = ",";
string testCodes = ",";
@ -807,40 +811,7 @@ namespace FactorySystemApi.Controllers
int.TryParse(material.FType, out int mType);
if (materLevel == 1) ids1 += material.FID + ",";
switch (mType)
{
case (int)Constant.MaterialType.:
material.FTestCode = item.TestNO;
view.FBaseTestCode = item.TestNO;
view.FViewType = 1;
break;
case (int)Constant.MaterialType.:
view.FViewType = (int)Constant.ViewType.;
material.FTestCode = item.TestNO;
view.FBaseTestCode = item.TestNO;
break;
case (int)Constant.MaterialType.:
view.FViewType = material.FName.Contains("香基") ? (int)Constant.ViewType. : (int)Constant.ViewType.;
material.FTestCode = item.TestNO;
view.FBaseTestCode = item.TestNO;
break;
case (int)Constant.MaterialType.:
view.FViewType = (int)Constant.ViewType.;
view.FBaseMaterialCode = material.FCode;
//默认值不同
view.FPurchaseCompany = "kg";
view.FPurchaseCompanyCount = "1";
view.FPurchaseBaseCompanyCount = "1000";
view.FSaleAccountSettingGroup = "15";
view.FStorageTotalShelfLife = "7300";
view.FMRP2ExternalStoragePlace = "1000";
view.FPlanUnlimitedOverDelivery = "";
view.FAccountPriceControl = "V";
view.FAccountPriceDetermine = "2";
view.FAccountAccessType = "1000";
view.FAccountSaleOrderInventory = "1010";
break;
}
mateList.Add(material);
viewList.Add(view);

@ -13,7 +13,7 @@
<add key="ApiAuthSecretKey" value="zhkxfs" />
<!--<add key="ConnectionString" value="server=49.235.68.145,3456;uid=sa;pwd=zhenxuan@2019;database=FactorySystem" />-->
<!--<add key="ConnectionString" value="server=192.168.8.157,12580;uid=tfs;pwd=tfs2022;database=FactorySystem" />-->
<add key="ConnectionString" value="server=192.168.8.157,12580;uid=tfs;pwd=tfs2022;database=FactorySystem" />
<add key="ConnectionString" value="server=192.168.8.156,12580;uid=tfs;pwd=tfs2022;database=FactorySystem" />
<!--<add key="ConnectionString" value="server=120.55.81.57;uid=sa;pwd=1qaz@WSX;database=FactorySystem" />-->
<add key="Sap_UserName" value="mcs_con" />

Loading…
Cancel
Save