فهرست منبع

材料出库优化

zthwr 10 ماه پیش
والد
کامیت
4f88757173
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      mmpac/mmpac/src/client/u8c/ui/mmpac/action/ToMaterialOutDialog.java

+ 3 - 2
mmpac/mmpac/src/client/u8c/ui/mmpac/action/ToMaterialOutDialog.java

@@ -623,7 +623,8 @@ public class ToMaterialOutDialog extends UIDialog implements ActionListener,Bill
 			
 			if(null==objbdef6 || "".equals(objbdef6.toString())) {
 				MessageDialog.showErrorDlg(mainpanel, "错误", "请检查换算率不能为空或者MA开头的现存量未查询到!");
-				this.jlcardPanel.setBodyValueAt(null, arg0.getRow(), "bdef8");
+				this.jlcardPanel.setBodyValueAt(false, arg0.getRow(), "bdef4");
+		//		this.jlcardPanel.setBodyValueAt(null, arg0.getRow(), "bdef8");
 				return;
 			}
 			
@@ -1046,7 +1047,7 @@ public class ToMaterialOutDialog extends UIDialog implements ActionListener,Bill
    	public  Object  getHandNum(String pk_corp,String storcode,String cinvbasid,String vbatchcode, String color ,String sizing,String alloy,String standard)throws Exception {
    		StringBuffer sql = new StringBuffer();
 		sql.append("SELECT ");
-		sql.append(" nonhandnum/nonhandastnum as hsl");
+		sql.append(" nonhandnum/NULLIF(nonhandastnum, 0) as hsl");
 		sql.append(" FROM");
 		sql.append(" ic_onhandnum");
 		sql.append(" WHERE");