|
|
@ -10,7 +10,7 @@ import java.util.Map;
|
|
|
|
public class C_StudentUploadFinishedProduct {
|
|
|
|
public class C_StudentUploadFinishedProduct {
|
|
|
|
|
|
|
|
|
|
|
|
File finishedProduct;
|
|
|
|
File finishedProduct;
|
|
|
|
String gaduationDesignId;
|
|
|
|
String graduationDesignId;
|
|
|
|
|
|
|
|
|
|
|
|
static String file_type = "finished_product";
|
|
|
|
static String file_type = "finished_product";
|
|
|
|
public void uploadOpeningReport() throws Exception{
|
|
|
|
public void uploadOpeningReport() throws Exception{
|
|
|
@ -20,13 +20,13 @@ public class C_StudentUploadFinishedProduct {
|
|
|
|
uploadFile.addOptions("file",this.getFinishedProduct());
|
|
|
|
uploadFile.addOptions("file",this.getFinishedProduct());
|
|
|
|
uploadFile.addOptions("file_type",file_type);
|
|
|
|
uploadFile.addOptions("file_type",file_type);
|
|
|
|
Map<String, String>limits = new HashMap<>();
|
|
|
|
Map<String, String>limits = new HashMap<>();
|
|
|
|
limits.put("id",this.getGaduationDesignId());
|
|
|
|
limits.put("id",this.getGraduationDesignId());
|
|
|
|
uploadFile.addOptions("limits",limits);
|
|
|
|
uploadFile.addOptions("limits",limits);
|
|
|
|
uploadFile.execute(null);
|
|
|
|
uploadFile.execute(null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
protected boolean check() {
|
|
|
|
protected boolean check() {
|
|
|
|
if(this.getFinishedProduct()==null||this.getGaduationDesignId()==null)
|
|
|
|
if(this.getFinishedProduct()==null||this.getGraduationDesignId()==null)
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -37,12 +37,12 @@ public class C_StudentUploadFinishedProduct {
|
|
|
|
public void setFinishedProduct(File finishedProduct) {
|
|
|
|
public void setFinishedProduct(File finishedProduct) {
|
|
|
|
this.finishedProduct = finishedProduct;
|
|
|
|
this.finishedProduct = finishedProduct;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public String getGaduationDesignId() {
|
|
|
|
public String getGraduationDesignId() {
|
|
|
|
return gaduationDesignId;
|
|
|
|
return graduationDesignId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setGaduationDesignId(String gaduationDesignId) {
|
|
|
|
public void setGraduationDesignId(String graduationDesignId) {
|
|
|
|
this.gaduationDesignId = gaduationDesignId;
|
|
|
|
this.graduationDesignId = graduationDesignId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|