Browse Source

移位增加同一仓库卡控

master
JiangPeng 2 years ago
parent
commit
89787a4ad8
  1. 4
      .idea/gradle.xml
  2. 12
      .idea/runConfigurations.xml
  3. 6
      app/src/main/java/com/icssoft/icspda/activity/TransferWarehouseActivity.java

4
.idea/gradle.xml

@ -4,7 +4,7 @@
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="PLATFORM" />
<option name="testRunner" value="GRADLE" />
<option name="disableWrapperSourceDistributionNotification" value="true" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
@ -14,8 +14,6 @@
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>

12
.idea/runConfigurations.xml

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
<option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
</set>
</option>
</component>
</project>

6
app/src/main/java/com/icssoft/icspda/activity/TransferWarehouseActivity.java

@ -414,6 +414,12 @@ public class TransferWarehouseActivity extends AppCompatActivity {
handler.sendEmptyMessage(3);
return;
}
if (!WhDataList.get(0).getWarehouseCode().equals(lot.getWarehouseCode())){
ErrorMsg = "移位操作只能在同一仓库内进行!";
handler.sendEmptyMessage(3);
return;
}
//给主表增加一条数据
Data row = new Data();
row.setCount(count++);

Loading…
Cancel
Save