hu 5 месяцев назад
Родитель
Сommit
664a216079

+ 1 - 0
src/custom/beans/stockbill/bills/BasicBill.java

@@ -49,6 +49,7 @@ public abstract class BasicBill {
             case "生产入库":
             case "委外入库":
             case "返修入库":
+                return new FXRK(controller, st_stockbillid);
             case "其他入库":
                 return new QTRK(controller, st_stockbillid);
             default: {

+ 32 - 0
src/custom/beans/stockbill/bills/FXRK.java

@@ -0,0 +1,32 @@
+package beans.stockbill.bills;
+
+import common.Controller;
+import common.YosException;
+
+import java.util.ArrayList;
+
+public class FXRK extends BasicBill {
+
+    public FXRK(Controller controller, long st_stockbillid) throws YosException {
+        super(controller, st_stockbillid);
+    }
+
+    @Override
+    public void checkValidate(boolean ischeck) throws YosException {
+        super.checkValidate(ischeck);
+    }
+
+    @Override
+    public ArrayList<String> getCheckSql(boolean ischeck) throws YosException {
+        return super.getCheckSql(ischeck);
+    }
+
+
+    @Override
+    public boolean isInStock(boolean fischeck) {
+        if (fischeck && rb == 1 || !fischeck && rb == 0) {
+            return true;
+        }
+        return false;
+    }
+}