|
|
|
@ -1,12 +1,13 @@ |
|
|
|
|
package com.his.zy.nursestation; |
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.Date; |
|
|
|
|
import java.util.HashMap; |
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
import com.his.mz.ghmanage.model.MzKsjzModel; |
|
|
|
|
import com.his.mz.service.GzzNPCService; |
|
|
|
|
import com.his.util.DateTimeUtils; |
|
|
|
|
import com.his.zy.nursestation.model.NurseStationBedsModel; |
|
|
|
|
import com.his.zy.nursestation.model.NurseStationHandleModel; |
|
|
|
|
import com.util.MainUtil; |
|
|
|
@ -14,6 +15,7 @@ import com.wat.component.DxButtonPanel; |
|
|
|
|
import com.wat.component.DxCheckBox; |
|
|
|
|
import com.wat.component.DxDateTimePick; |
|
|
|
|
import com.wat.component.DxImageList; |
|
|
|
|
import com.wat.component.DxLabel; |
|
|
|
|
import com.wat.component.DxPanelBar; |
|
|
|
|
import com.wat.component.DxPopGridText; |
|
|
|
|
import com.wat.component.DxTreeView; |
|
|
|
@ -57,6 +59,7 @@ public class NurseExecuteOrderContainerForm extends WatWebForm { |
|
|
|
|
private WatWebContainerTab container; |
|
|
|
|
private DxButtonPanel buttonPanel1; |
|
|
|
|
private DxButtonPanel buttonPanel2; |
|
|
|
|
private DxLabel dlJsrqInfo; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public NurseExecuteOrderContainerForm() { |
|
|
|
@ -653,6 +656,31 @@ public class NurseExecuteOrderContainerForm extends WatWebForm { |
|
|
|
|
// NurseExecuteOrderFormInterface selectForm = (NurseExecuteOrderFormInterface)container.getSelectedForm();
|
|
|
|
|
// selectForm.selectOrder(model);
|
|
|
|
|
|
|
|
|
|
//结束日期超范围提示,不打断
|
|
|
|
|
checkJsrq(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 结束日期超范围提示,不打断 |
|
|
|
|
*/ |
|
|
|
|
private void checkJsrq() { |
|
|
|
|
long lDay = jsrqBetweenToday(); |
|
|
|
|
if(lDay > 1l) { |
|
|
|
|
String strMsg = "<font color='red'>注意</font><br>结束日期时间为<font color='blue'> "+lDay+" </font>天后。<br>后续执行时<br><font color='blue'>请再次确认“需执行时间”是否是实际执行时间。</font>"; |
|
|
|
|
System.out.println("<<<<护士执行结束日期超范围提示:>>>>"+MainUtil.getCurUserAccount()+" "+strMsg); |
|
|
|
|
dlg.messageDlg(strMsg); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 结束日期是否超范围 |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
private long jsrqBetweenToday() { |
|
|
|
|
Date dJsrq = DateTimeUtils.getDateFromDateStringWithoutTime(DateTimeUtils.getDateStringWithoutTime(new Date(datetimepicker2.getTime()))); |
|
|
|
|
Date dToday = DateTimeUtils.getDateFromDateStringWithoutTime(DateTimeUtils.getDateStringWithoutTime(DateTimeUtils.getCurrentDate())); |
|
|
|
|
long lDay = DateTimeUtils.compareDateForMillieconds(dJsrq, dToday) / 86400000l; |
|
|
|
|
return lDay; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void setTabHeadShow(String formId,String num) { |
|
|
|
@ -738,5 +766,15 @@ public class NurseExecuteOrderContainerForm extends WatWebForm { |
|
|
|
|
popgrid1Action(actionevent.getActionCommand()); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
datetimepicker2.addActionListener(new ActionListener() { |
|
|
|
|
public void actionPerformed(ActionEvent arg0) { |
|
|
|
|
dlJsrqInfo.setText(""); |
|
|
|
|
long lDay = jsrqBetweenToday(); |
|
|
|
|
if(lDay>= 1l) { |
|
|
|
|
dlJsrqInfo.setText(lDay+" 天后"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|