|
|
@@ -5,6 +5,8 @@ import com.bonait.bnframework.common.db.mode.BPA_GOODSRECIPE; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_MATERIAL; |
|
|
|
import com.bonait.bnframework.common.db.mode.BPA_SILOS; |
|
|
|
import com.bonait.bnframework.common.utils.ToastUtils; |
|
|
|
import com.bonait.bnframework.modules.home.fragment.mode.LocationStatus; |
|
|
|
import com.bonait.bnframework.modules.home.fragment.mode.MyStatus; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.HashMap; |
|
|
@@ -359,4 +361,80 @@ public class ExecuteTheRecipe { |
|
|
|
} |
|
|
|
//endregion |
|
|
|
|
|
|
|
//region 主页按钮 |
|
|
|
|
|
|
|
/** |
|
|
|
* 点击清洗按钮 |
|
|
|
* @param data |
|
|
|
*/ |
|
|
|
public static void Write_PLC_Clean(MyStatus data) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
if(data==MyStatus.Start) |
|
|
|
{ |
|
|
|
ToastUtils.info("点击启动搅拌清洗按钮"); |
|
|
|
|
|
|
|
}else if(data==MyStatus.Paused) |
|
|
|
{ |
|
|
|
ToastUtils.info("点击暂停清洗按钮"); |
|
|
|
|
|
|
|
}else if(data==MyStatus.Stop) |
|
|
|
{ |
|
|
|
ToastUtils.info("点击停止清洗按钮"); |
|
|
|
} |
|
|
|
}catch (Exception ex) |
|
|
|
{ |
|
|
|
ToastUtils.error("异常信息:" + ex.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 点击清洗按钮 |
|
|
|
* @param data |
|
|
|
*/ |
|
|
|
public static void Write_PLC_Location(LocationStatus data) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
if(data==LocationStatus.InLocation) |
|
|
|
{ |
|
|
|
ToastUtils.info("点击炒菜位按钮"); |
|
|
|
|
|
|
|
}else if(data==LocationStatus.OutLocation) |
|
|
|
{ |
|
|
|
ToastUtils.info("点击出菜位按钮"); |
|
|
|
|
|
|
|
}else if(data==LocationStatus.PourWaterLocation) |
|
|
|
{ |
|
|
|
ToastUtils.info("点击倒水位按钮"); |
|
|
|
} |
|
|
|
}catch (Exception ex) |
|
|
|
{ |
|
|
|
ToastUtils.error("异常信息:" + ex.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 点击摇欠按钮 |
|
|
|
* @param data |
|
|
|
*/ |
|
|
|
public static void Write_PLC_YaoQian(MyStatus data) |
|
|
|
{ |
|
|
|
try |
|
|
|
{ |
|
|
|
if(data==MyStatus.Start) |
|
|
|
{ |
|
|
|
ToastUtils.info("点击摇浅按钮"); |
|
|
|
|
|
|
|
}else if(data==MyStatus.Stop) |
|
|
|
{ |
|
|
|
ToastUtils.info("点击停摇按钮"); |
|
|
|
} |
|
|
|
}catch (Exception ex) |
|
|
|
{ |
|
|
|
ToastUtils.error("异常信息:" + ex.getMessage()); |
|
|
|
} |
|
|
|
} |
|
|
|
//endregion |
|
|
|
} |