Parcourir la source

1.调整界面显示大小

2.调整新建配方根据做法自动生成名称
3.自动补水增加关闭时自动延迟
茶饮新(现场)
fyf il y a 11 mois
Parent
révision
846b5c32ad
23 fichiers modifiés avec 259 ajouts et 64 suppressions
  1. +3
    -0
      app/src/main/java/com/bonait/bnframework/business/ConfigData.java
  2. +23
    -8
      app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java
  3. +1
    -0
      app/src/main/java/com/bonait/bnframework/business/MainInit.java
  4. +8
    -0
      app/src/main/java/com/bonait/bnframework/common/constant/ConfigName.java
  5. +2
    -0
      app/src/main/java/com/bonait/bnframework/common/constant/DataBus.java
  6. +2
    -0
      app/src/main/java/com/bonait/bnframework/common/constant/MessageName.java
  7. +17
    -0
      app/src/main/java/com/bonait/bnframework/common/db/QueryDB.java
  8. +3
    -0
      app/src/main/java/com/bonait/bnframework/modules/home/adapter/newpropertyselect_adapter.java
  9. +11
    -0
      app/src/main/java/com/bonait/bnframework/modules/home/adapter/wl_adapter.java
  10. +1
    -0
      app/src/main/java/com/bonait/bnframework/modules/home/fragment/from/fragment/Jcsjgl_wl_fragment.java
  11. +22
    -0
      app/src/main/java/com/bonait/bnframework/modules/home/fragment/from/fragment/JiaoYan_zdbs_fragment.java
  12. +71
    -4
      app/src/main/java/com/bonait/bnframework/modules/home/fragment/mode/add_pf_control.java
  13. +2
    -2
      app/src/main/res/layout/activity_goodpeifang.xml
  14. +40
    -0
      app/src/main/res/layout/datatab/layout/fragment_jiaoyan_zdbs.xml
  15. +2
    -2
      app/src/main/res/layout/datatab/layout/sx_item.xml
  16. +19
    -20
      app/src/main/res/layout/fragment_jiaoyan_lsjy.xml
  17. +2
    -2
      app/src/main/res/layout/fragment_jiaoyan_zdqx.xml
  18. +1
    -1
      app/src/main/res/layout/fragment_make_good.xml
  19. +8
    -5
      app/src/main/res/layout/item/layout/dialog_add_good.xml
  20. +5
    -4
      app/src/main/res/layout/item/layout/dialog_add_makegood.xml
  21. +8
    -8
      app/src/main/res/layout/item/layout/dialog_add_pf.xml
  22. +5
    -5
      app/src/main/res/layout/item/layout/dialog_add_pf_home.xml
  23. +3
    -3
      app/src/main/res/layout/item/layout/item_zsx.xml

+ 3
- 0
app/src/main/java/com/bonait/bnframework/business/ConfigData.java Voir le fichier

@@ -248,6 +248,7 @@ public class ConfigData {
ConfigName.getInstance().GT1_AutomaticHeating = ConfigUtil.read(ConfigName.getInstance().dishesCon, "GT1_AutomaticHeating", ConfigName.getInstance().GT1_AutomaticHeating);
ConfigName.getInstance().GT2_AutomaticHeating = ConfigUtil.read(ConfigName.getInstance().dishesCon, "GT2_AutomaticHeating", ConfigName.getInstance().GT2_AutomaticHeating);
ConfigName.getInstance().AutomaticWaterRefill = ConfigUtil.read(ConfigName.getInstance().dishesCon, "AutomaticWaterRefill", ConfigName.getInstance().AutomaticWaterRefill);
ConfigName.getInstance().AutomaticWaterRefillTime = ConfigUtil.read(ConfigName.getInstance().dishesCon, "AutomaticWaterRefillTime", ConfigName.getInstance().AutomaticWaterRefillTime);

}

@@ -268,6 +269,8 @@ public class ConfigData {
ConfigUtil.write(ConfigName.getInstance().dishesCon,"GT1_AutomaticHeating", ConfigName.getInstance().GT1_AutomaticHeating);
ConfigUtil.write(ConfigName.getInstance().dishesCon,"GT2_AutomaticHeating", ConfigName.getInstance().GT2_AutomaticHeating);
ConfigUtil.write(ConfigName.getInstance().dishesCon,"AutomaticWaterRefill", ConfigName.getInstance().AutomaticWaterRefill);
ConfigUtil.write(ConfigName.getInstance().dishesCon,"AutomaticWaterRefillTime", ConfigName.getInstance().AutomaticWaterRefillTime);


}



+ 23
- 8
app/src/main/java/com/bonait/bnframework/business/ExecuteTheRecipe.java Voir le fichier

@@ -20,6 +20,7 @@ import com.bonait.bnframework.common.db.mode.BPA_SILOS;
import com.bonait.bnframework.common.db.res.AlertLogEnum;
import com.bonait.bnframework.common.db.res.ResGoodsMake;
import com.bonait.bnframework.common.db.res.ResGoodsRecipe;
import com.bonait.bnframework.common.db.res.SilosLsjyMode;
import com.bonait.bnframework.common.db.res.UserLogEnum;
import com.bonait.bnframework.common.helper.ByteHelper;
import com.bonait.bnframework.common.helper.DataFormat;
@@ -720,14 +721,14 @@ public class ExecuteTheRecipe {
}
}

if (ConfigName.getInstance().PLC_Address.containsKey("配料次数")) {
BPA_PLCADDRESS plcaddress = ConfigName.getInstance().PLC_Address.get("配料次数");
if (!plcaddress.address.isEmpty() && ConfigName.getInstance().PlcIsConnect) {
ModbusTcpServer.get().ReadInt(plcaddress.address, 1, (data) -> {
MakeGoodCount=data[0] ;
});
}
}
// if (ConfigName.getInstance().PLC_Address.containsKey("配料次数")) {
// BPA_PLCADDRESS plcaddress = ConfigName.getInstance().PLC_Address.get("配料次数");
// if (!plcaddress.address.isEmpty() && ConfigName.getInstance().PlcIsConnect) {
// ModbusTcpServer.get().ReadInt(plcaddress.address, 1, (data) -> {
// MakeGoodCount=data[0] ;
// });
// }
// }
} catch (Exception ex) {
ToastUtils.error("异常信息:" + ex.getMessage());
} finally {
@@ -813,6 +814,20 @@ public class ExecuteTheRecipe {
{
WritePLC("水池进水阀",true,null);
}

if(yw!=null)
{
Object jsf= ReadPLC("水池进水阀");
if(jsf!=null && (boolean)jsf)
{
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
WritePLC("水池进水阀",false,null);
}
}, (int)Math.round((Double.parseDouble(ConfigName.getInstance().AutomaticWaterRefillTime) * 1000)));
}
}
}
}
} catch (Exception ex) {


+ 1
- 0
app/src/main/java/com/bonait/bnframework/business/MainInit.java Voir le fichier

@@ -102,6 +102,7 @@ public class MainInit {
//ConfigData.getInstance().LoadingCloud();//加载云端数据

DataBus.getInstance().GetTodayNoMake();

//设置连接到有线网络
// NetworkUtils.connetEnternet(app);



+ 8
- 0
app/src/main/java/com/bonait/bnframework/common/constant/ConfigName.java Voir le fichier

@@ -412,6 +412,7 @@ public class ConfigName {
add(new Res_PLCADDRESS("排水阀排水时间", "VW244", 1, 1));
add(new Res_PLCADDRESS("循环清洗时间", "VW246", 1, 1));
add(new Res_PLCADDRESS("加热时间", "VW248", 1, 1));
add(new Res_PLCADDRESS("自动补水延迟时间", "VW250", 1, 1));


add(new Res_PLCADDRESS("清洗模式", "M0.4", 1, 1));
@@ -723,6 +724,8 @@ public class ConfigName {
add(new Res_PLCADDRESS("排水阀排水时间", "VW244", 1, 1));
add(new Res_PLCADDRESS("循环清洗时间", "VW246", 1, 1));
add(new Res_PLCADDRESS("加热时间", "VW248", 1, 1));
add(new Res_PLCADDRESS("自动补水延迟时间", "VW250", 1, 1));


add(new Res_PLCADDRESS("清洗模式", "M0.4", 1, 1));
add(new Res_PLCADDRESS("自动清洗开始", "M0.5", 1, 1));
@@ -1069,5 +1072,10 @@ public class ConfigName {
* 是否自动补水(水池)
*/
public Boolean AutomaticWaterRefill=false;

/**
* 自动补水延迟时间
*/
public String AutomaticWaterRefillTime="0.0";
//endregion
}

+ 2
- 0
app/src/main/java/com/bonait/bnframework/common/constant/DataBus.java Voir le fichier

@@ -110,6 +110,8 @@ public class DataBus {
{
AddGoodsMake(item);
}

ExecuteTheRecipe.MakeGoodCount= QueryDB.GetSuOrderTodanCount();
}

/**


+ 2
- 0
app/src/main/java/com/bonait/bnframework/common/constant/MessageName.java Voir le fichier

@@ -28,4 +28,6 @@ public interface MessageName {

String ClickMakeGoodNew="ClickMakeGoodNew";//点击商品

String ClickProperty="ClickProperty";//点击属性

}

+ 17
- 0
app/src/main/java/com/bonait/bnframework/common/db/QueryDB.java Voir le fichier

@@ -1685,6 +1685,23 @@ public class QueryDB {
}
return data;
}

/**
* 获取今日总订单
* @return
*/
public static int GetSuOrderTodanCount() {
String orderby = Desc_Time_Up;//先按排序 创建时间倒序
String where = "isDelete=? and createTime>? and createTime<?";
String[] args = new String[]{"0", new SimpleDateFormat("yyyy-MM-dd").format(new Date()) + " 00:00:00",
new SimpleDateFormat("yyyy-MM-dd").format(new Date()) + " 23:59:59"};
ArrayList<BPA_SUBORDER> data = new ArrayList<>();
ArrayList<Object> obj = Get(BPA_SUBORDER.class, where, args, orderby);
for (Object k : obj) {
data.add((BPA_SUBORDER) k);
}
return data.size();
}
//endregion

//region BPA_ALERTLOG 预警日志表


+ 3
- 0
app/src/main/java/com/bonait/bnframework/modules/home/adapter/newpropertyselect_adapter.java Voir le fichier

@@ -12,8 +12,10 @@ import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.bonait.bnframework.R;
import com.bonait.bnframework.common.constant.MessageName;
import com.bonait.bnframework.common.db.res.ResGoodProperty;
import com.bonait.bnframework.common.db.res.ResMaterilas;
import com.bonait.bnframework.common.message.MessageManager;

import java.util.ArrayList;
import java.util.List;
@@ -61,6 +63,7 @@ public class newpropertyselect_adapter extends RecyclerView.Adapter<RecyclerView
@Override
public void onClick(View view) {
SetSelect(goods);
MessageManager.getInstance().sendMessage(MessageName.ClickProperty,"ClickProperty");
}
});
}


+ 11
- 0
app/src/main/java/com/bonait/bnframework/modules/home/adapter/wl_adapter.java Voir le fichier

@@ -43,6 +43,8 @@ public class wl_adapter extends ArrayAdapter<BPA_MATERIAL> {
//分别获取 image view 和 textview 的实例
TextView name = view.findViewById(R.id.name);
Button button = view.findViewById(R.id.button_item);
Button button_update = view.findViewById(R.id.button_update);

// 设置要显示的图片和文字
name.setText(bpa_material.name);
name.setOnClickListener(new View.OnClickListener() {
@@ -52,12 +54,21 @@ public class wl_adapter extends ArrayAdapter<BPA_MATERIAL> {
}
});

button_update.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if(mListener!=null) mListener.clickListener(view,bpa_material);
}
});

button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if(mListener!=null) mListener.clickListener(view,bpa_material);
}
});


return view;
}
}

+ 1
- 0
app/src/main/java/com/bonait/bnframework/modules/home/fragment/from/fragment/Jcsjgl_wl_fragment.java Voir le fichier

@@ -217,6 +217,7 @@ public class Jcsjgl_wl_fragment extends BaseFragment implements MyClickListener
public void clickListener(View v, Object data) {
switch (v.getId()) {
case R.id.name://修改物料名称按钮
case R.id.button_update://修改物料名称按钮
final QMUIDialog.EditTextDialogBuilder builder = new QMUIDialog.EditTextDialogBuilder(context);
builder.setTitle("物料名称")
.setPlaceholder("在此输入物料名称")


+ 22
- 0
app/src/main/java/com/bonait/bnframework/modules/home/fragment/from/fragment/JiaoYan_zdbs_fragment.java Voir le fichier

@@ -8,6 +8,7 @@ import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.bonait.bnframework.R;
@@ -15,6 +16,7 @@ import com.bonait.bnframework.business.ConfigData;
import com.bonait.bnframework.business.ExecuteTheRecipe;
import com.bonait.bnframework.common.base.BaseFragment;
import com.bonait.bnframework.common.constant.ConfigName;
import com.bonait.bnframework.common.utils.ToastUtils;
import com.orhanobut.logger.Logger;
import com.suke.widget.SwitchButton;

@@ -25,6 +27,10 @@ public class JiaoYan_zdbs_fragment extends BaseFragment {

@BindView(R.id.control_switch_zdbs)
SwitchButton control_switch_zdbs;//自动补水
@BindView(R.id.edittext_ycsj)
EditText edittext_ycsj;//自动补水延迟时间
@BindView(R.id.save_time)
Button save_time;//自动补水延迟时间
private Context context;

@Override
@@ -54,6 +60,7 @@ public class JiaoYan_zdbs_fragment extends BaseFragment {
*/
public void Initdata() {
control_switch_zdbs.setChecked(ConfigName.getInstance().AutomaticWaterRefill);
edittext_ycsj.setText(ConfigName.getInstance().AutomaticWaterRefillTime);
control_switch_zdbs.setOnCheckedChangeListener(new SwitchButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(SwitchButton view, boolean isChecked) {
@@ -66,6 +73,21 @@ public class JiaoYan_zdbs_fragment extends BaseFragment {
}
}
});

save_time.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
if(edittext_ycsj.getText().toString().isEmpty())
{
ToastUtils.warning("延迟时间不能为空!");
return;
}
ConfigName.getInstance().AutomaticWaterRefillTime=edittext_ycsj.getText().toString();
ConfigData.getInstance().SavePZ();
ToastUtils.info("保存成功!");

}
});
}

@Override


+ 71
- 4
app/src/main/java/com/bonait/bnframework/modules/home/fragment/mode/add_pf_control.java Voir le fichier

@@ -1,6 +1,8 @@
package com.bonait.bnframework.modules.home.fragment.mode;

import android.app.Activity;
import android.content.Context;
import android.content.ContextWrapper;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
@@ -10,12 +12,14 @@ import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.bonait.bnframework.R;
import com.bonait.bnframework.common.constant.DataBus;
import com.bonait.bnframework.common.constant.MessageName;
import com.bonait.bnframework.common.db.QueryDB;
import com.bonait.bnframework.common.db.mode.BPA_GOODPROPERTY;
import com.bonait.bnframework.common.db.mode.BPA_GOODS;
@@ -26,6 +30,8 @@ import com.bonait.bnframework.common.db.res.ResGoodProperty;
import com.bonait.bnframework.common.db.res.ResGoodsRecipe;
import com.bonait.bnframework.common.db.res.ResMaterilas;
import com.bonait.bnframework.common.helper.I.MyClickListener;
import com.bonait.bnframework.common.message.MessageLooper;
import com.bonait.bnframework.common.message.MessageManager;
import com.bonait.bnframework.common.utils.ToastUtils;
import com.bonait.bnframework.common.view.MyLayoutManager;
import com.bonait.bnframework.modules.home.adapter.loadinggood_adapter;
@@ -83,17 +89,18 @@ public class add_pf_control extends LinearLayout implements MyClickListener {
*/
public MyClickListener mListener=null;
private View root;
public Context acontext=null;
public add_pf_control(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
root= LayoutInflater.from(context).inflate(R.layout.dialog_add_pf, this);
ButterKnife.bind(this, root);
acontext=context;
Init();
}


public void Init()
{

//初始化界面控件的事件
initEvent();
}
@@ -142,10 +149,15 @@ public class add_pf_control extends LinearLayout implements MyClickListener {
if(i==0)
{
c.isSelect=true;
}else
{
c.isSelect=false;
}
i++;
}
}

edittext.setText(GetSelectName());
}else
{
for(ResGoodProperty item:bpa_goodproperties)
@@ -227,6 +239,15 @@ public class add_pf_control extends LinearLayout implements MyClickListener {
}
}

private Activity findActivity(@NonNull Context context) {
if (context instanceof Activity) {
return (Activity) context;
} else if (context instanceof ContextWrapper) {
return findActivity(((ContextWrapper) context).getBaseContext());
} else {
return null;
}
}

private void initEvent()
{
@@ -246,6 +267,27 @@ public class add_pf_control extends LinearLayout implements MyClickListener {
}
}
});

Activity activity = findActivity(acontext);
if (activity != null) {
MessageManager.getInstance().registerMessageReceiver(activity, MessageName.ClickProperty, new MessageLooper.OnMessageListener() {
@Override
public void onMessage(Object msg) {
if (msg != null) {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
try {
edittext.setText(GetSelectName());
} catch (Exception e) {

}
}
});
}
}
});
}
}

/**
@@ -305,7 +347,25 @@ public class add_pf_control extends LinearLayout implements MyClickListener {
}
return false;
}

/**
* 获取选中名称
* @return
*/
public String GetSelectName()
{
String names=Good.name+"_";
for(ResGoodProperty item:bpa_goodproperties)
{
for(ResGoodProperty k:item.child)
{
if(k.isSelect)
{
names+=k.name+"_";
}
}
}
return names.substring(0, names.length() - 1);
}

String pfname="";//配方名称集合
String ggids="";//规格id集合
@@ -319,7 +379,7 @@ public class add_pf_control extends LinearLayout implements MyClickListener {
pfname=edittext.getText().toString();
if(pfname.isEmpty())
{
ToastUtils.info("配方名称不能为空!");
ToastUtils.warning("配方名称不能为空!");
return isSuceess;
}

@@ -343,7 +403,14 @@ public class add_pf_control extends LinearLayout implements MyClickListener {
//2.必须选择一个规格
if(DataBus.getInstance().Recipe.size()<=0)
{
ToastUtils.info("配方数据表格不能为空!");
ToastUtils.warning("配方数据表格不能为空!");
return isSuceess;
}

//判断配方是否有相同规格的了
BPA_GOODSRECIPENAME goodsrecipename = QueryDB.GetGoodsRecipeNameDesignId(ggids,Good.id);
if (goodsrecipename != null) {
ToastUtils.warning("已有改做法配方,不能在新增了!");
return isSuceess;
}



+ 2
- 2
app/src/main/res/layout/activity_goodpeifang.xml Voir le fichier

@@ -33,7 +33,7 @@
<Button
android:id="@+id/add_fl"
android:layout_width="100dp"
android:layout_height="26dp"
android:layout_height="30dp"
android:layout_centerInParent="true"
android:layout_marginLeft="20dp"
android:background="@drawable/bg_btn_login_selected"
@@ -61,7 +61,7 @@
<Button
android:id="@+id/add_sp"
android:layout_width="100dp"
android:layout_height="26dp"
android:layout_height="30dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_marginRight="20dp"


+ 40
- 0
app/src/main/res/layout/datatab/layout/fragment_jiaoyan_zdbs.xml Voir le fichier

@@ -38,7 +38,47 @@
android:layout_height="wrap_content"
android:focusable="true"
/>

<TextView
android:layout_marginLeft="@dimen/dp_10"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="关闭补水延迟(s):"
android:textAlignment="center" />

<EditText
android:layout_marginLeft="20dp"
android:id="@+id/edittext_ycsj"
android:layout_width="110dp"
android:layout_height="wrap_content"
android:background="@drawable/input_bj"
android:hint="请输入"
android:inputType="text"
android:digits="0123456789."
android:maxLines="1"
android:padding="3dp"
android:textSize="12dp"
android:text="0.0"/>
</LinearLayout>

<LinearLayout
android:layout_centerInParent="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">


</LinearLayout>
<Button
android:layout_marginLeft="285dp"
android:id="@+id/save_time"
android:layout_width="110dp"
android:layout_height="40dp"
android:layout_alignParentLeft="true"
android:background="@drawable/bg_btn_login_selected"
android:text="保存"
android:textColor="@color/white"
android:textSize="14dp" />

</LinearLayout>
<!-- 物料信息管理 -->


+ 2
- 2
app/src/main/res/layout/datatab/layout/sx_item.xml Voir le fichier

@@ -48,7 +48,7 @@
android:id="@+id/button_item"
android:layout_width="60dp"
android:layout_centerVertical="true"
android:layout_height="20dp"
android:layout_height="30dp"
android:layout_marginLeft="20dp"
android:background="@drawable/button"
android:focusable="false"
@@ -59,7 +59,7 @@
android:id="@+id/button_add"
android:layout_width="80dp"
android:layout_centerVertical="true"
android:layout_height="20dp"
android:layout_height="30dp"
android:layout_marginLeft="100dp"
android:background="@drawable/button1"
android:focusable="false"


+ 19
- 20
app/src/main/res/layout/fragment_jiaoyan_lsjy.xml Voir le fichier

@@ -16,7 +16,7 @@
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
android:layout_weight="1.1">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/Recy_Lsjy"
@@ -40,7 +40,6 @@
android:layout_weight="1">

<LinearLayout
android:layout_marginTop="@dimen/dp_10"
android:layout_centerHorizontal="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
@@ -61,15 +60,15 @@
</LinearLayout>

<LinearLayout
android:layout_marginTop="50dp"
android:layout_marginTop="40dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_marginLeft="@dimen/dp_10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="通道校准:"
android:textSize="20dp"/>
android:text="校准:"
android:textSize="16dp"/>
<LinearLayout
android:layout_marginLeft="@dimen/dp_10"
android:layout_width="wrap_content"
@@ -152,8 +151,8 @@
</LinearLayout>

<ImageView
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="30dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
@@ -183,8 +182,8 @@
</LinearLayout>

<ImageView
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="30dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
@@ -209,8 +208,8 @@
</LinearLayout>

<ImageView
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="30dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
@@ -296,15 +295,15 @@
</LinearLayout>

<LinearLayout
android:layout_marginTop="160dp"
android:layout_marginTop="140dp"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:layout_marginLeft="@dimen/dp_10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="模拟出料:"
android:textSize="20dp"/>
android:text="出料:"
android:textSize="16dp"/>

<LinearLayout
android:layout_marginLeft="@dimen/dp_10"
@@ -325,8 +324,8 @@
</LinearLayout>

<ImageView
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="30dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
@@ -355,8 +354,8 @@
</LinearLayout>

<ImageView
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="30dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"
@@ -398,8 +397,8 @@
</LinearLayout>

<ImageView
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="30dp"
android:layout_width="wrap_content"
android:layout_height="match_parent"


+ 2
- 2
app/src/main/res/layout/fragment_jiaoyan_zdqx.xml Voir le fichier

@@ -15,13 +15,13 @@
android:id="@+id/bt_add_zdqx"
android:layout_width="200dp"
android:layout_height="40dp"
android:layout_marginTop="20dp"
android:layout_marginTop="10dp"
android:background="@drawable/bg_btn_login_selected"
android:text="增加流程"
android:textColor="@color/white"
android:textSize="20dp" />
<androidx.recyclerview.widget.RecyclerView
android:layout_marginTop="80dp"
android:layout_marginTop="60dp"
android:id="@+id/Recy_zdqx"
android:layout_width="wrap_content"
android:layout_height="wrap_content"


+ 1
- 1
app/src/main/res/layout/fragment_make_good.xml Voir le fichier

@@ -99,7 +99,7 @@
android:visibility="gone"/>

<LinearLayout
android:layout_marginLeft="130dp"
android:layout_marginLeft="10dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true">


+ 8
- 5
app/src/main/res/layout/item/layout/dialog_add_good.xml Voir le fichier

@@ -6,7 +6,10 @@
android:background="@color/dialogbj">

<RelativeLayout
android:layout_margin="50dp"
android:layout_marginLeft="50dp"
android:layout_marginRight="50dp"
android:layout_marginTop="10dp"
android:layout_marginBottom="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/common_bg_with_radius_and_border">
@@ -25,7 +28,7 @@

<RelativeLayout
android:layout_marginTop="46dp"
android:layout_marginBottom="50dp"
android:layout_marginBottom="55dp"
android:layout_width="match_parent"
android:layout_height="match_parent">

@@ -147,7 +150,7 @@

<!--物料类型-->
<RelativeLayout
android:layout_marginTop="10dp"
android:layout_marginTop="0dp"
android:layout_width="match_parent"
android:layout_height="match_parent">

@@ -174,8 +177,8 @@
<Button
android:layout_alignParentBottom="true"
android:id="@+id/xinjian"
android:layout_width="120dp"
android:layout_height="35dp"
android:layout_width="200dp"
android:layout_height="40dp"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/dp_10"
android:background="@drawable/bg_btn_login_selected"


+ 5
- 4
app/src/main/res/layout/item/layout/dialog_add_makegood.xml Voir le fichier

@@ -9,7 +9,7 @@
android:layout_centerInParent="true"
android:layout_margin="50dp"
android:layout_width="500dp"
android:layout_height="600dp"
android:layout_height="700dp"
android:background="@drawable/common_bg_with_radius_and_border">

<Button
@@ -75,7 +75,7 @@
android:id="@+id/datatab_makesx"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="40dp"/>
android:layout_marginTop="10dp"/>
</RelativeLayout>

</LinearLayout>
@@ -86,10 +86,11 @@
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_marginLeft="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="订单总数"
android:textSize="19dp"/>
android:text="今日制作"
android:textSize="24dp"/>

<TextView
android:id="@+id/chubeiliang"


+ 8
- 8
app/src/main/res/layout/item/layout/dialog_add_pf.xml Voir le fichier

@@ -7,7 +7,7 @@

<RelativeLayout
android:layout_centerInParent="true"
android:layout_margin="50dp"
android:layout_margin="10dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/common_bg_with_radius_and_border">
@@ -42,7 +42,7 @@

<RelativeLayout
android:layout_marginTop="46dp"
android:layout_marginBottom="50dp"
android:layout_marginBottom="55dp"
android:layout_width="match_parent"
android:layout_height="match_parent">

@@ -86,7 +86,8 @@
<com.qmuiteam.qmui.widget.textview.QMUILinkTextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="配方名称:"/>
android:text="配方名称:"
android:textSize="16dp"/>
<!--账号输入框-->
<EditText
android:id="@+id/edittext"
@@ -98,7 +99,7 @@
android:inputType="text"
android:maxLines="1"
android:padding="3dp"
android:textSize="12dp" />
android:textSize="16dp" />


</LinearLayout>
@@ -111,8 +112,7 @@
<RelativeLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1.5">

android:layout_weight="1">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="300dp">
@@ -236,8 +236,8 @@
<Button
android:layout_alignParentBottom="true"
android:id="@+id/peifang_queren"
android:layout_width="120dp"
android:layout_height="35dp"
android:layout_width="200dp"
android:layout_height="40dp"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/dp_10"
android:background="@drawable/bg_btn_login_selected"


+ 5
- 5
app/src/main/res/layout/item/layout/dialog_add_pf_home.xml Voir le fichier

@@ -7,9 +7,9 @@

<RelativeLayout
android:layout_centerInParent="true"
android:layout_margin="50dp"
android:layout_margin="20dp"
android:layout_width="400dp"
android:layout_height="600dp"
android:layout_height="800dp"
android:background="@drawable/common_bg_with_radius_and_border">

<Button
@@ -36,7 +36,7 @@

<RelativeLayout
android:layout_marginTop="46dp"
android:layout_marginBottom="50dp"
android:layout_marginBottom="55dp"
android:layout_width="match_parent"
android:layout_height="match_parent">

@@ -179,8 +179,8 @@
<Button
android:layout_alignParentBottom="true"
android:id="@+id/xinjianpeifang"
android:layout_width="120dp"
android:layout_height="35dp"
android:layout_width="200dp"
android:layout_height="40dp"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/dp_10"
android:background="@drawable/bg_btn_login_selected"


+ 3
- 3
app/src/main/res/layout/item/layout/item_zsx.xml Voir le fichier

@@ -64,7 +64,7 @@

<RelativeLayout
android:layout_marginBottom="@dimen/dp_10"
android:paddingTop="@dimen/dp_10"
android:paddingTop="5dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="5dp">
@@ -73,7 +73,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:textSize="12dp"
android:textSize="16dp"
android:textColor="@color/light_blue_primary"
android:text="保存"/>
<TextView
@@ -81,7 +81,7 @@
android:layout_marginRight="20dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="12dp"
android:textSize="16dp"
android:layout_alignParentRight="true"
android:textColor="@color/red_primary_dark"
android:text="删除"/>


Chargement…
Annuler
Enregistrer