|
|
@@ -288,6 +288,13 @@ public class DoubleFryingpanFragment extends BaseFragment { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(fry.IngredientsLocs[2]>0){ |
|
|
|
if( !YJDeviceHelper.getInstance().MainMaterialLocVerify(fry.IngredientsLocs[2])){ |
|
|
|
DialogHelper.showError(getActivity(),"主料位置 "+fry.IngredientsLocs[2] +"未检测到有物料!",AlertDialogButton.OK,null); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//辅料验证 |
|
|
|
if(fry.AccessoriesLocs[0]>0){ |
|
|
|
if( !YJDeviceHelper.getInstance().AccessoriesLocVerify(fry.AccessoriesLocs[0])){ |
|
|
@@ -356,6 +363,7 @@ public class DoubleFryingpanFragment extends BaseFragment { |
|
|
|
|
|
|
|
ParSetInit(R.id.location_selection_1,new String[] {"0", "1", "2", "3", "4","5","6"}); |
|
|
|
ParSetInit(R.id.location_selection_2,new String[] {"0", "1", "2", "3", "4","5","6"}); |
|
|
|
ParSetInit(R.id.location_selection_3,new String[] {"0", "1", "2", "3", "4","5","6"}); |
|
|
|
ParSetInit(R.id.accessories_selection_1,new String[] {"0", "1", "2", "3", "4","5","6"}); |
|
|
|
ParSetInit(R.id.accessories_selection_2,new String[] {"0", "1", "2", "3", "4","5","6"}); |
|
|
|
} |
|
|
@@ -562,6 +570,9 @@ public class DoubleFryingpanFragment extends BaseFragment { |
|
|
|
else if (R.id.location_selection_2==id) { |
|
|
|
fry.IngredientsLocs[1]=Integer.parseInt(adapterView.getItemAtPosition(i).toString());; |
|
|
|
} |
|
|
|
else if (R.id.location_selection_3==id) { |
|
|
|
fry.IngredientsLocs[2]=Integer.parseInt(adapterView.getItemAtPosition(i).toString());; |
|
|
|
} |
|
|
|
else if (R.id.accessories_selection_1==id) { |
|
|
|
fry.AccessoriesLocs[0]=Integer.parseInt(adapterView.getItemAtPosition(i).toString());; |
|
|
|
} |
|
|
|