|
|
@@ -330,12 +330,12 @@ public class BillPresenter extends BaseNetPresenter implements OnSmartHttpListen
|
|
|
break;
|
|
|
case SAVE_AND_SUBMIT:
|
|
|
if (JSONUtil.getBoolean(jsonObject, "success")) {
|
|
|
- if (mId<=0){
|
|
|
+ if (mId <= 0) {
|
|
|
int keyvalue = JSONUtil.getInt(jsonObject, "keyvalue");
|
|
|
String formcode = JSONUtil.getText(jsonObject, "formcode");
|
|
|
judgeApproval(keyvalue, formcode);
|
|
|
iBill.showToast(R.string.save_success);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
judgeApproval(mId, "");
|
|
|
iBill.showToast(R.string.save_success);
|
|
|
}
|
|
|
@@ -591,6 +591,11 @@ public class BillPresenter extends BaseNetPresenter implements OnSmartHttpListen
|
|
|
}
|
|
|
if ((type.equals("D") || type.equals("T")) && TextUtils.isEmpty(defValue)) {
|
|
|
defValue = DateFormatUtil.long2Str(System.currentTimeMillis() + 1000 * 10 * 60, DateFormatUtil.YMD_HMS);
|
|
|
+ if (caption.contains("生日")) {
|
|
|
+ String day = DateFormatUtil.long2Str(System.currentTimeMillis(), DateFormatUtil.YMD);
|
|
|
+ mBillModel.setValue(day);
|
|
|
+ mBillModel.setDisplay(defValue);
|
|
|
+ }
|
|
|
}
|
|
|
mBillModel.setFindFunctionName(findFunctionName);
|
|
|
mBillModel.setCaption(caption);
|