Просмотр исходного кода

增加裸瓷交接、裸瓷撤销(菜单、功能)
裸瓷包装计件保存增加装板数量下拉框
重烧交接重烧接收判断条件

李士越 9 месяцев назад
Родитель
Сommit
eda2788868

+ 2 - 106
res/layout/finished_product_handover_head_view.xml

@@ -4,112 +4,8 @@
     android:layout_height="match_parent"
     android:orientation="vertical" >
 
-    <LinearLayout
-        android:layout_width="fill_parent"
-        android:layout_height="wrap_content"
-        android:orientation="horizontal" >
-
-        <com.jiaju.widget.JustifyTextView
-            android:layout_width="80dp"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="10dp"
-            android:layout_marginTop="10dp"
-            android:text="SAP地址"
-            android:textColor="@color/white"
-            android:textSize="@dimen/textsize_16" />
-
-        <TextView
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_centerVertical="true"
-            android:layout_marginTop="5dp"
-            android:text=":"
-            android:textColor="@color/white"
-            android:textSize="@dimen/textsize_16" />
-
-        <LinearLayout
-            android:layout_width="fill_parent"
-            android:layout_height="wrap_content"
-            android:orientation="vertical" >
-
-            <Spinner
-                android:id="@+id/Spinner01"
-                android:layout_width="fill_parent"
-                android:layout_height="40dp"
-                android:layout_margin="0dip"
-                android:layout_marginRight="10dp"
-                android:gravity="center"
-                android:padding="0dip"
-                 android:spinnerMode="dialog"
-                android:textAlignment="center" >
-            </Spinner>
-        </LinearLayout>
-    </LinearLayout>
-
-    <LinearLayout
-        android:layout_width="fill_parent"
-        android:layout_height="wrap_content"
-        android:orientation="horizontal" >
-
-        <com.jiaju.widget.JustifyTextView
-            android:id="@+id/orderTitle"
-            android:layout_width="80dp"
-            android:layout_height="wrap_content"
-            android:layout_marginLeft="10dp"
-            android:layout_marginTop="10dp"
-            android:text="生产订单"
-            android:textColor="@color/white"
-            android:textSize="@dimen/textsize_16" />
-
-        <TextView
-            android:id="@+id/symbol3"
-            android:layout_width="wrap_content"
-            android:layout_height="wrap_content"
-            android:layout_centerVertical="true"
-            android:layout_marginTop="10dp"
-            android:text=":"
-            android:textColor="@color/white"
-            android:textSize="@dimen/textsize_16" />
-
-        <LinearLayout
-            android:layout_width="fill_parent"
-            android:layout_height="wrap_content"
-            android:layout_marginTop="5dp"
-            android:orientation="vertical" >
-
-            <EditText
-                android:id="@+id/orderEdt"
-                android:layout_width="fill_parent"
-                android:layout_height="wrap_content"
-                android:layout_marginRight="10dp"
-                android:background="@null"
-                android:imeOptions="actionGo"
-                android:singleLine="true"
-                android:text=""
-                android:textColor="@color/white"
-                android:textSize="@dimen/textsize_24" />
-
-            <View
-                android:layout_width="fill_parent"
-                android:layout_height="1dp"
-                android:background="@color/text_gray" />
-
-            <LinearLayout
-                android:layout_width="fill_parent"
-                android:layout_height="wrap_content"
-                android:layout_marginTop="15dp"
-                android:orientation="vertical" >
-
-                <Spinner
-                    android:id="@+id/orderSpinner"
-                    android:layout_width="fill_parent"
-                    android:layout_height="40dp"
-                    android:layout_marginRight="10dp"
-                    android:background="@drawable/spinner_drop_down" >
-                </Spinner>
-            </LinearLayout>
-        </LinearLayout>
-    </LinearLayout>
+  
+ 
 
     <LinearLayout
         android:id="@+id/barcodelay"

+ 50 - 3
res/layout/piece_head_view.xml

@@ -96,7 +96,7 @@
         android:layout_marginLeft="10dp"
         android:layout_marginTop="5dp"
         android:orientation="horizontal"
-           android:visibility="gone" > >
+           android:visibility="gone" >
 
         <TextView
             android:layout_width="100dp"
@@ -140,9 +140,10 @@
                         android:layout_width="fill_parent"
                         android:layout_height="1dp"
                         android:background="@color/text_gray" />
-                </LinearLayout>
+                </LinearLayout> 
+                    
             </LinearLayout>
-
+ 
             <Button
                 android:id="@+id/btndelete"
                 android:layout_width="wrap_content"
@@ -154,8 +155,54 @@
                 android:textColor="@color/white"
               android:textSize="20sp" />
         </LinearLayout>
+       
     </LinearLayout>
+ <LinearLayout 
+      android:id="@+id/baozhuang"
+                    android:layout_width="fill_parent"
+                    android:layout_height="wrap_content"
+                    android:layout_marginTop="3dp"
+                    android:orientation="horizontal"
+                      android:visibility="gone"  >
+
+                    <com.jiaju.widget.JustifyTextView 
+                    android:layout_width="70dip"
+                    android:layout_height="wrap_content"
+                    android:layout_gravity="center_vertical"
+                    android:layout_marginLeft="10dip"
+                    android:text="装板数量"
+                    android:textColor="@color/white"
+                    android:textSize="@dimen/textsize_16" />
+
+                    <TextView
+                        android:layout_width="wrap_content"
+                        android:layout_height="wrap_content"
+                        android:layout_gravity="center_vertical"
+                        android:text=":"
+                        android:textColor="@color/white"
+                        android:textSize="@dimen/textsize_16" />
+
+                    <LinearLayout
+                        android:id="@+id/mouldCodeLay"
+                        android:layout_width="fill_parent"
+                        android:layout_height="wrap_content"
+                        android:orientation="vertical" >
+
+                        <Spinner
+                        android:id="@+id/trademarksource"
+                        android:layout_width="fill_parent"
+                        android:layout_height="40dp"
+                        android:layout_marginRight="10dp"
+                        android:background="@drawable/spinner_drop_down" />
 
+                        <View
+                            android:layout_width="wrap_content"
+                            android:layout_height="1dp"
+                            android:layout_marginRight="10dp"
+                            android:layout_marginTop="1dp"
+                            android:background="@color/text_gray" />
+                    </LinearLayout>
+                     </LinearLayout>
     <LinearLayout
         android:id="@+id/llSecurityCode"
         android:layout_width="fill_parent"

+ 5 - 3
src/com/jiaju/activity/CheckCollectModifyActivity.java

@@ -224,6 +224,7 @@ public class CheckCollectModifyActivity extends Activity {
     private List<ProductClassifyInfo> listCheckGrinding = null;// 修磨数据源
     private ProductClassifyAdapter adapterCheckGrinding;// 修磨适配器
     private static String Mout_ReworkProcedureId = "";
+    private static String refireflag = "";
 
     @Override
     protected void onCreate(Bundle savedInstanceState) {
@@ -2977,13 +2978,13 @@ public class CheckCollectModifyActivity extends Activity {
 			    if (activity.listReWorkProcedure != null && activity.listReWorkProcedure.size() > 0) {
 				String GOODSMODELforCheck = activity.GOODSMODELforCheck.substring(0, 2);
 				for (int i = 0; i < activity.listReWorkProcedure.size(); i++) {
-				    if ("CT".equals(GOODSMODELforCheck)) {
+//				    if ("CT".equals(GOODSMODELforCheck)) {
+					if ("1".equals(refireflag)) {
 					if (activity.listReWorkProcedure.get(i).getReworkProcedureName()
 						.contains("重烧接收")) {
 					    position = i;
 					    break;
-					}
-
+					} 
 				    } else {
 					if (activity.listReWorkProcedure.get(i).getReworkProcedureName()
 						.contains("重烧交接")) {
@@ -3638,6 +3639,7 @@ public class CheckCollectModifyActivity extends Activity {
 				JSONObject jsonObject31 = (JSONObject) jsonArray30.get(0);
 				RECYCLINGFLAG = jsonObject31.optString("recyclingFlag");
 				GOODSMODELforCheck = jsonObject31.optString("GOODSMODELforCheck");
+				refireflag=jsonObject31.optString("refireflag");
 				if ((GOODSMODELforCheck == null) || (GOODSMODELforCheck == "")
 					|| (GOODSMODELforCheck == "null")) {
 				    HashMap<String, String> params = new LinkedHashMap<String, String>();

+ 35 - 2
src/com/jiaju/activity/HomeActivity.java

@@ -67,7 +67,7 @@ public class HomeActivity extends Activity {
 	private ProductLineModel securityCodePm;
 	private ProductLineModel finishedProductPm;
 	private ProductLineModel compBreakagetPm;
-
+	private ProductLineModel LCFinishedProduct;//Âă´Ç˝ť˝ÓÄŁżé
 	private ProductLineModel ptsPm;
 	private List<ProductLineModel> productLineList = new ArrayList<ProductLineModel>();
 	private List<ProductLineModel> otherProductLineList = new ArrayList<ProductLineModel>();
@@ -306,6 +306,7 @@ public class HomeActivity extends Activity {
 						List<ProcedureModel> finishedProductList = new ArrayList<ProcedureModel>();
 						List<ProcedureModel> comBreakageList = new ArrayList<ProcedureModel>();
 						List<ProcedureModel> suibianList = new ArrayList<ProcedureModel>();
+						List<ProcedureModel> LCBZList = new ArrayList<ProcedureModel>();
 						for (int i = 0; i < jarray.length(); i++) {
 							JSONObject jo3 = jarray.optJSONObject(i);
 							String functionname = jo3.optString("FUNCTIONNAME");
@@ -931,7 +932,31 @@ public class HomeActivity extends Activity {
 								pm20.setModelType(103);
 								pm20.setProcedureId(103);
 								suibianList.add(pm20);
-							} else {
+							} else if (functionCode.equals("0634")) { //Âă´É˝ť˝Ó
+								LCFinishedProduct = new ProductLineModel();
+								LCFinishedProduct.setProductLineMenuCode(functionCode);
+								LCFinishedProduct.setProductionMenuName("Âă´É˝ť˝Ó");
+								LCFinishedProduct.setProcedureList(null);
+								productLineList.add(LCFinishedProduct);
+							} else if (functionCode.equals("063401")) // Âă´É˝ť˝Ó-˝ť˝Ó
+							{
+								ProcedureModel pm21 = new ProcedureModel();
+								pm21.setProcedureMenuCode(functionCode);
+								pm21.setProcedureMenuName("˝ť˝Ó");
+								pm21.setProcedureModel("00" + 104);
+								pm21.setModelType(103);
+								pm21.setProcedureId(103);
+								LCBZList.add(pm21);
+							}else if (functionCode.equals("063402")) // Âă´É˝ť˝Ó-łˇĎú
+							{
+								ProcedureModel pm22 = new ProcedureModel();
+								pm22.setProcedureMenuCode(functionCode);
+								pm22.setProcedureMenuName("łˇĎú");
+								pm22.setProcedureModel("00" + 104);
+								pm22.setModelType(103);
+								pm22.setProcedureId(103);
+								LCBZList.add(pm22);
+							}else {
 
 								ProductLineModel pm1 = new ProductLineModel();
 								pm1.setProductLineMenuCode(functionCode);
@@ -980,6 +1005,14 @@ public class HomeActivity extends Activity {
 
 							}
 						}
+						if (LCBZList != null && LCBZList.size() > 0) {
+							for (ProductLineModel model : productLineList) {
+								if (model.getProductLineMenuCode().equals("0634")) {
+									model.setProcedureList(LCBZList);
+								}
+
+							}
+						}
 						productLineList.addAll(otherProductLineList);
 
 						if (barcodePrintList != null && barcodePrintList.size() > 0) {

+ 6 - 6
src/com/jiaju/activity/LoginActivity.java

@@ -226,12 +226,12 @@ public class LoginActivity extends Activity implements OnClickListener {
 
     @Override
     protected void onResume() {
-//		if (Build.VERSION.SDK_INT >= 23
-//				&& getApplicationInfo().targetSdkVersion >= 23) {
-//			if (isNeedCheck) {
-//				checkPermissions(needPermissions);
-//			}
-//		}
+		if (Build.VERSION.SDK_INT >= 23
+				&& getApplicationInfo().targetSdkVersion >= 23) {
+			if (isNeedCheck) {
+				checkPermissions(needPermissions);
+			}
+		}
 
 	super.onResume();
 	ServerAddress_ip = preferences.getString("ServerAddress_ip", "");

+ 170 - 11
src/com/jiaju/activity/PieceActivity.java

@@ -9,8 +9,14 @@ import org.json.JSONArray;
 import org.json.JSONException;
 import org.json.JSONObject;
 
+import com.jiaju.activity.DeliveryNoteInquiryActivity.ListAPIRunnable;
+import com.jiaju.adapter.CarBrandSpinnerAdapter;
+import com.jiaju.adapter.OrderSpinnerAdapter;
 import com.jiaju.adapter.PieceListMessageAdapter;
+import com.jiaju.model.CarBrandModel;
+import com.jiaju.model.Order;
 import com.jiaju.model.Piece;
+import com.jiaju.model.ProductClassifyInfo;
 import com.jiaju.net.WebClient;
 import com.jiaju.utils.CommonUtil;
 import com.jiaju.utils.Constants;
@@ -52,6 +58,7 @@ import android.widget.ImageView;
 import android.widget.LinearLayout;
 import android.widget.ListView;
 import android.widget.PopupWindow;
+import android.widget.Spinner;
 import android.widget.TextView;
 import android.widget.TextView.OnEditorActionListener;
 import android.widget.Toast;
@@ -130,11 +137,15 @@ public class PieceActivity extends Activity {
 	private LinearLayout llSecurityLine;
 	private String securityCode;
 	private int functionStatus;
-	private LinearLayout llayBoardCode, view_board_code; // 版码布局
+	private LinearLayout llayBoardCode, view_board_code; // 版码布局 
+	private LinearLayout baozhuang; // 版码布局 
 	private EditText edtBoardCode; // 板码输入框控件
-	private String[] packagProId = { "13", "79", "107" }; // 包装的 页面id
+	private String[] packagProId = { "13", "79", "107" ,"159"}; // 包装的 页面id
 	private boolean ispackagpage = false;
 	public Button btndelete; 
+	private Spinner trademarksource; 
+	private List<CarBrandModel> carBrandList;
+	private CarBrandSpinnerAdapter carBrandAdapter;
 	@Override
 	protected void onCreate(Bundle savedInstanceState) {
 		super.onCreate(savedInstanceState);
@@ -164,6 +175,11 @@ public class PieceActivity extends Activity {
 //	    view_board_code.setVisibility(View.VISIBLE);
 			ispackagpage = true;
 		}
+		if(proId==159) {
+			baozhuang.setVisibility(View.VISIBLE);
+			//获取装板数量
+			getsum();
+		}
 		// functionStatus ==0 普通 ==1绑定 ==2验证
 		switch (collectType) {
 		case 2:// 单点采集
@@ -197,7 +213,7 @@ public class PieceActivity extends Activity {
 			met.findFocus();
 			met.setSelectAllOnFocus(true);
 			break;
-		}
+		} 
 	}
 
 	private void initview() {
@@ -213,7 +229,7 @@ public class PieceActivity extends Activity {
 		llayBoardCode = (LinearLayout) head.findViewById(R.id.llay_board_code);// 板码布局
 		edtBoardCode = (EditText) head.findViewById(R.id.edt_board_code);// 板码输入框
 		btndelete = (Button) head.findViewById(R.id.btndelete);
-
+		trademarksource = (Spinner) head.findViewById(R.id.trademarksource);
 //	view_board_code = (LinearLayout) head.findViewById(R.id.view_board_code);// 板码布局
 		bt2 = (Button) findViewById(R.id.btnsure);
 		backtext = (TextView) findViewById(R.id.back);
@@ -225,6 +241,7 @@ public class PieceActivity extends Activity {
 		parent = (LinearLayout) findViewById(R.id.parentRel);
 		productRecord = (ImageView) findViewById(R.id.search);
 		productRecord.setVisibility(View.VISIBLE);
+		baozhuang = (LinearLayout) head.findViewById(R.id.baozhuang);// 板码布局
 	}
 
 	private void alllistener() {
@@ -336,7 +353,7 @@ public class PieceActivity extends Activity {
 						CustomToast.showToast(getApplicationContext(), "没有可提交的明细信息", 2000);
 						return;
 					}
-					if (collectType == 1 && nodeType == 3) {
+					if (collectType == 1 && nodeType == 3 && proId!=159) {
 						if (plateNum > 0 && piecelist.size() != plateNum) {
 							CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
 							CommonUtil.showBarCodeAlertDialog(0, "未达到装板数量【" + plateNum + "】", PieceActivity.this,
@@ -344,6 +361,28 @@ public class PieceActivity extends Activity {
 							return;
 						}
 					}
+					if (collectType == 1 && nodeType == 3 &&proId==159) {
+						CarBrandModel carbrandModel = (CarBrandModel) trademarksource.getSelectedItem();
+					     
+					String zhuangbanshuliang=carbrandModel.getCarBrandName(); 
+					 
+					int num=Integer.parseInt(zhuangbanshuliang);
+					if( piecelist.size()>num) {
+						CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
+						CommonUtil.showBarCodeAlertDialog(0, "超过装板数量【" + num + "】", PieceActivity.this,
+								barcode, null, null);
+						ProcessDialogUtils.closeProgressDilog();
+						return;
+					}
+					else if( piecelist.size()<num){
+						CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
+						CommonUtil.showBarCodeAlertDialog(0, "未达到装板数量【" + num + "】", PieceActivity.this,
+								barcode, null, null);
+						ProcessDialogUtils.closeProgressDilog();
+					return;
+					}
+					
+					}
 					if (isGlazeChange == 1) {
 						Intent intent = new Intent();
 						intent.setClass(PieceActivity.this, GlazePieceSetActivity.class);
@@ -654,7 +693,7 @@ public class PieceActivity extends Activity {
 					//String etcode = barcode.getText().toString().trim().replaceAll("\\n", "");
 					String etcode = barcode.getText().toString().trim().replaceAll("\\n", "").replaceAll("\n", "");
 					barcode.setText(etcode);
-					if (etcode.substring(0, 4).equals("http")) {
+					if (etcode.length()>=4&&etcode.substring(0, 4).equals("http")) {
 						String[] parts = etcode.split("-", 2);
 						if (parts.length == 2) {
 							etcode = parts[1];
@@ -703,7 +742,7 @@ public class PieceActivity extends Activity {
 				if (arg1 == EditorInfo.IME_ACTION_GO) {
 					// functionStatus ==0 普通 ==1绑定 ==2验证
 					String etcode = barcode.getText().toString().trim().replaceAll("\\n", "").replaceAll("\n", "");
-					if (etcode.substring(0, 4).equals("http")) {
+					if (etcode.length()>=4&&etcode.substring(0, 4).equals("http")) {
 						String[] parts = etcode.split("-", 2);
 						if (parts.length == 2) {
 							etcode = parts[1];
@@ -927,7 +966,7 @@ public class PieceActivity extends Activity {
 									}
 								}
 							}
-							if (collectType == 1 && nodeType == 3) {
+							if (collectType == 1 && nodeType == 3 &&proId!=159) {
 								if (plateNum > 0 && piecelist.size() == plateNum) {
 									CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
 									CommonUtil.showBarCodeAlertDialog(0, "超过装板数量【" + plateNum + "】", PieceActivity.this,
@@ -937,6 +976,28 @@ public class PieceActivity extends Activity {
 									return;
 								}
 							}
+							if (collectType == 1 && nodeType == 3 &&proId==159) {
+								CarBrandModel carbrandModel = (CarBrandModel) trademarksource.getSelectedItem();
+							     
+							String zhuangbanshuliang=carbrandModel.getCarBrandName(); 
+							 
+							int num=Integer.parseInt(zhuangbanshuliang);
+							if( piecelist.size()>num-1) {
+								CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
+								CommonUtil.showBarCodeAlertDialog(0, "超过装板数量【" + num + "】", PieceActivity.this,
+										barcode, null, null);
+								ProcessDialogUtils.closeProgressDilog();
+								return;
+							}
+//							else {
+//								CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
+//								CommonUtil.showBarCodeAlertDialog(0, "未达到装板数量【" + num + "】", PieceActivity.this,
+//										barcode, null, null);
+//								ProcessDialogUtils.closeProgressDilog();
+//							return;
+//							}
+							
+							}
 							ProcessDialogUtils.showProcessDialog(PieceActivity.this);
 							thread = null;
 							thread = new HandlerThread("BarCoderThread", 5);
@@ -985,6 +1046,7 @@ public class PieceActivity extends Activity {
 				}
 				break;
 			// 王英杰 2021年11月22日end。。。。。。。。
+			/**李士越 2025-05校验托盘下有没有产品未交接的*/
 			case 2:
 				try {
 				Bundle b5 = msg.getData();
@@ -1000,6 +1062,35 @@ public class PieceActivity extends Activity {
 					e.printStackTrace();
 				}
 			break;
+			/**李士越2025-05 获取装板数量*/
+			case 3:
+				try {
+				Bundle b6 = msg.getData();
+				String result6 = b6.getString("sumResult");
+				JSONObject jo = new JSONObject(result6);
+					JSONObject jobj = jo.optJSONObject("d");
+					String result3 = jobj.optString("Result");
+					JSONArray resultArray = new JSONArray(result3); 
+					 if(resultArray!=null) {
+						 carBrandList = new ArrayList<CarBrandModel>();
+							for (int i = 0; i < resultArray.length(); i++) {
+								JSONObject resultObj = (JSONObject) resultArray.opt(i);
+								int dictionaryId = resultObj.optInt("DICTIONARYID");
+								String dictionaryValue = resultObj.optString("DICTIONARYVALUE");
+								CarBrandModel carBrandModel = new CarBrandModel();
+								carBrandModel.setCarBrandId(String.valueOf(dictionaryId));
+								carBrandModel.setCarBrandName(dictionaryValue);
+								carBrandList.add(carBrandModel);
+							}
+
+							carBrandAdapter = new CarBrandSpinnerAdapter(PieceActivity.this, carBrandList);
+							trademarksource.setAdapter(carBrandAdapter); 
+					 }
+					 
+				}catch (Exception e) {
+					e.printStackTrace();
+				}
+			break;
 				
 			}
 		}
@@ -2843,7 +2934,7 @@ public class PieceActivity extends Activity {
 							return;
 						}
 					}
-					if (collectType == 1 && nodeType == 3) {
+					if (collectType == 1 && nodeType == 3&&proId!=159) {
 						if (plateNum > 0 && piecelist.size() == plateNum) {
 							CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
 							CommonUtil.showBarCodeAlertDialog(0, "超过装板数量【" + plateNum + "】", PieceActivity.this,
@@ -2936,7 +3027,7 @@ public class PieceActivity extends Activity {
 						CustomToast.showToast(getApplicationContext(), "没有可提交的明细信息", 2000);
 						return true;
 					}
-					if (collectType == 1 && nodeType == 3) {
+					if (collectType == 1 && nodeType == 3&&proId!=159) {
 						if (plateNum > 0 && piecelist.size() != plateNum) {
 							CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
 							CommonUtil.showBarCodeAlertDialog(0, "未达到装板数量【" + plateNum + "】", PieceActivity.this,
@@ -3005,7 +3096,7 @@ public class PieceActivity extends Activity {
 						Toast.makeText(getApplicationContext(), "没有可提交的明细信息", Toast.LENGTH_SHORT).show();
 						return true;
 					}
-					if (collectType == 1 && nodeType == 3) {
+					if (collectType == 1 && nodeType == 3&&proId!=159) {
 						if (plateNum > 0 && piecelist.size() != plateNum) {
 							CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
 							CommonUtil.showBarCodeAlertDialog(0, "未达到装板数量【" + plateNum + "】", PieceActivity.this,
@@ -3013,6 +3104,28 @@ public class PieceActivity extends Activity {
 							return true;
 						}
 					}
+					if (collectType == 1 && nodeType == 3 &&proId==159) {
+						CarBrandModel carbrandModel = (CarBrandModel) trademarksource.getSelectedItem();
+					     
+					String zhuangbanshuliang=carbrandModel.getCarBrandName(); 
+					 
+					int num=Integer.parseInt(zhuangbanshuliang);
+					if( piecelist.size()>num-1) {
+						CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
+						CommonUtil.showBarCodeAlertDialog(0, "超过装板数量【" + num + "】", PieceActivity.this,
+								barcode, null, null);
+						ProcessDialogUtils.closeProgressDilog();
+						return true;
+					}
+//					else {
+//						CommonUtil.setDefault(Notification.DEFAULT_VIBRATE, getApplicationContext());
+//						CommonUtil.showBarCodeAlertDialog(0, "未达到装板数量【" + num + "】", PieceActivity.this,
+//								barcode, null, null);
+//						ProcessDialogUtils.closeProgressDilog();
+//					return true;
+//					}
+					
+					}
 					if (isGlazeChange == 1) {
 						Intent intent = new Intent();
 						intent.setClass(PieceActivity.this, GlazePieceSetActivity.class);
@@ -3108,4 +3221,50 @@ public class PieceActivity extends Activity {
 			}
 		}
 	};
+
+/**获取装板数量*/
+	public void getsum( ) {
+		thread = null;
+		thread = new HandlerThread("SavePieceThread", 5);
+		thread.start();
+		mHandler = new Handler(thread.getLooper());
+		Togetsum getsum=new Togetsum();
+		mHandler.post(getsum);  
+	}
+	private class Togetsum implements Runnable { 
+		public Togetsum() { 
+		} 
+
+		@Override
+		public void run() {
+			try {
+				client = null;
+				client = new WebClient();
+				JSONObject js = new JSONObject();
+				js.put("accountCode", accountCode);
+				js.put("userCode", piece_userCode);
+				js.put("userPassword", userPassword);
+				js.put("sessionKey", sessionKey);
+				js.put("dicType", "TPC030");
+				String result = client.doPost("http://"+ ServerAddress_ip + ":" + ServerAddress_duankou +"/DKService/PDAModuleService/GetDataDictionaryByType", 
+						js.toString(), "application/json");
+				Message m = new Message();
+				m.what = 3; 
+				Bundle b = new Bundle();
+				b.putString("sumResult", result);
+				m.setData(b);
+				handler1.sendMessage(m);
+			} catch (Exception e) {
+				e.printStackTrace();
+				Message m = new Message();
+				Bundle b = new Bundle();
+				b.putString("message", "网络连接异常");
+				m.setData(b);
+				m.what = 1;
+				exceptionHandler.sendMessage(m);
+			}
+		}
+	};
+
+
 }

+ 22 - 0
src/com/jiaju/adapter/ProductLineExpandableListView.java

@@ -51,6 +51,8 @@ import com.jiaju.activity.GroutingWorkNoActivity;
 import com.jiaju.activity.InKilnActivity;
 import com.jiaju.activity.InventoryActivity;
 import com.jiaju.activity.LoadKilnCarActivity;
+import com.jiaju.activity.LuociPriceActivity;
+import com.jiaju.activity.LuociRevokeActivity;
 import com.jiaju.activity.MakeBilletActivity;
 import com.jiaju.activity.MolderMonthlySettlementReportActivity;
 import com.jiaju.activity.MouldAddActivity;
@@ -1556,6 +1558,26 @@ public class ProductLineExpandableListView extends ExpandableListView
 			i.setClass(mContext, ComponentsBreakageScanOkActivity.class);
 			mContext.startActivity(i);
 
+		} else if (procedureMenuCode.equals("063401")) {
+			//裸辞交接
+			Intent i = new Intent();
+			Bundle b = new Bundle();
+			b.putString("procedureName", procedureName);
+			b.putString("title", "交接");
+			i.putExtras(b);
+			i.setClass(mContext, LuociPriceActivity.class);
+			mContext.startActivity(i);
+
+		} else if (procedureMenuCode.equals("063402")) {
+			//裸辞交接-撤销
+			Intent i = new Intent();
+			Bundle b = new Bundle();
+			b.putString("procedureName", procedureName);
+			b.putString("title", "撤销");
+			i.putExtras(b);
+			i.setClass(mContext, LuociRevokeActivity.class);
+			mContext.startActivity(i);
+
 		} else {
 
 			ProcessDialogUtils.showProcessDialog(mContext);

+ 20 - 18
src/com/jiaju/utils/CommonUtil.java

@@ -669,24 +669,26 @@ public class CommonUtil {
 	}
 
 	public static void installApk(String installFilePath, Context context) {
-		File apkfile = new File(installFilePath);
-		if (!apkfile.exists()) {
-			return;
-		}
-		Intent intent = new Intent(Intent.ACTION_VIEW);
-		if (Build.VERSION.SDK_INT >= 24) { // °²×¿°Ë
-			Uri apkUri = FileProvider.getUriForFile(context, context.getPackageName() + ".fileprovider", apkfile);
-			intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
-			intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
-			intent.setDataAndType(apkUri, "application/vnd.android.package-archive");
-		} else {
-			intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
-			intent.setDataAndType(Uri.parse("file://" + apkfile.toString()), "application/vnd.android.package-archive");
-		}
-		context.startActivity(intent);
-		android.os.Process.killProcess(android.os.Process.myPid());
-	}
-
+	    File apkfile = new File(installFilePath);
+	    if (!apkfile.exists()) {
+	        return;
+	    }
+	    Intent intent = new Intent(Intent.ACTION_VIEW);
+	    if (Build.VERSION.SDK_INT >= 24) { // °²×¿7.0¼°ÒÔÉÏ
+	        Uri apkUri = FileProvider.getUriForFile(context, 
+	                context.getPackageName() + ".fileprovider", apkfile);
+	        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+	        intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
+	        intent.setDataAndType(apkUri, "application/vnd.android.package-archive");
+	    } else {
+	        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+	        intent.setDataAndType(Uri.parse("file://" + apkfile.toString()), 
+	                "application/vnd.android.package-archive");
+	    }
+	    context.startActivity(intent);
+	    android.os.Process.killProcess(android.os.Process.myPid());
+	}
+	
 	private static String intToIp(int i) {
 
 		return (i & 0xFF) + "." + ((i >> 8) & 0xFF) + "." + ((i >> 16) & 0xFF) + "." + (i >> 24 & 0xFF);