diff --git a/app/src/main/java/com/bonait/bnframework/common/constant/DataBus.java b/app/src/main/java/com/bonait/bnframework/common/constant/DataBus.java index 9ea109c2..c9ff79e6 100644 --- a/app/src/main/java/com/bonait/bnframework/common/constant/DataBus.java +++ b/app/src/main/java/com/bonait/bnframework/common/constant/DataBus.java @@ -137,6 +137,34 @@ public class DataBus { make.recipes=QueryDB.GetGoodsSreciperecipeList(suborder.recipeID); make.good=QueryDB.GetGoodsId(suborder.goodsID); make.goodsrecipename=QueryDB.GetGoodsRecipeNameId(suborder.recipeID); + + if (!ConfigName.getInstance().versionSelectionEnum.equals("配料吧台")) + { + make.Gt1=false; + make.Gt2=false; + for (ResGoodsRecipe recipe:make.recipes) + { + BPA_SILOS silos = null; + List siloslist = QueryDB.GetSolisByMaterialID(recipe.materialID); + for (BPA_SILOS item : siloslist) { + if(silos==null) + silos = item; + } + + if(silos!=null && silos.num==11) + { + make.Gt1=true; + }else if(silos!=null && silos.num==12) + { + make.Gt2=true; + } + } + }else + { + make.Gt1=false; + make.Gt2=false; + } + make.subOrder=suborder; make.makeStatus= MakeStatus.等待制作; make.makeMs="等待下发物料!"; diff --git a/app/src/main/java/com/bonait/bnframework/common/db/res/ResGoodsMake.java b/app/src/main/java/com/bonait/bnframework/common/db/res/ResGoodsMake.java index 288aba36..f4d9d67b 100644 --- a/app/src/main/java/com/bonait/bnframework/common/db/res/ResGoodsMake.java +++ b/app/src/main/java/com/bonait/bnframework/common/db/res/ResGoodsMake.java @@ -42,6 +42,11 @@ public class ResGoodsMake { * 是否可制作 */ public boolean IsMake; + + public boolean Gt1; + public boolean Gt2; + + public ResGoodsMake() { good=new BPA_GOODS(); @@ -51,6 +56,8 @@ public class ResGoodsMake { makeMs=""; makeProcess=0; IsMake=true; + Gt1=false; + Gt2=false; } } diff --git a/app/src/main/java/com/bonait/bnframework/common/utils/UpdateAppUtils.java b/app/src/main/java/com/bonait/bnframework/common/utils/UpdateAppUtils.java index 81c66a72..b33c6d54 100644 --- a/app/src/main/java/com/bonait/bnframework/common/utils/UpdateAppUtils.java +++ b/app/src/main/java/com/bonait/bnframework/common/utils/UpdateAppUtils.java @@ -74,10 +74,10 @@ public class UpdateAppUtils { private static void doPost(final Context context) { VersionMode mode=new VersionMode(); //大炒 - mode.productCode="1679306986915368960"; - mode.moduleCode="dcdjbbd"; - mode.serverCode="1680766359592243200"; - mode.branchCode="1679308856555737089"; +// mode.productCode="1679306986915368960"; +// mode.moduleCode="dcdjbbd"; +// mode.serverCode="1680766359592243200"; +// mode.branchCode="1679308856555737089"; //小炒网络v版本 // mode.productCode="1679306986915368960"; @@ -90,6 +90,22 @@ public class UpdateAppUtils { // mode.moduleCode="xcdjbbd"; // mode.serverCode="1680766359592243200"; // mode.branchCode="1679308917918404609"; + + if (!ConfigName.getInstance().versionSelectionEnum.equals("配料吧台")) + { + mode.productCode="1679307017135329280"; + mode.moduleCode="ncapp"; + mode.serverCode="1680767784879656960"; + mode.branchCode="1679307481578999809"; + }else + { + mode.productCode="1679307017135329280"; + mode.moduleCode="twbt"; + mode.serverCode="1680767784879656960"; + mode.branchCode="1679309003247325185"; + } + + //调味吧台 String msg= new Json().objectToJson(VersionMode.class, mode); String getNewVersionUrl =ConfigName.getInstance().UpdateVersion; MediaType JSON = MediaType.parse("application/json; charset=utf-8"); diff --git a/app/src/main/java/com/bonait/bnframework/modules/home/adapter/zdqxchid_adapter.java b/app/src/main/java/com/bonait/bnframework/modules/home/adapter/zdqxchid_adapter.java index 970ed934..5abc8d9e 100644 --- a/app/src/main/java/com/bonait/bnframework/modules/home/adapter/zdqxchid_adapter.java +++ b/app/src/main/java/com/bonait/bnframework/modules/home/adapter/zdqxchid_adapter.java @@ -11,6 +11,8 @@ import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.EditText; +import android.widget.LinearLayout; +import android.widget.RelativeLayout; import android.widget.TextView; import androidx.annotation.NonNull; @@ -73,7 +75,7 @@ public class zdqxchid_adapter extends RecyclerView.Adapter + + + android:orientation="vertical" + > + + + + \ No newline at end of file