add
This commit is contained in:
@@ -8,6 +8,7 @@ using System.Collections.Generic;
|
||||
public class CLUIElementDate : UIEventListener
|
||||
{
|
||||
public bool isSetTime = false;
|
||||
public bool isDateRange = false;
|
||||
public List<EventDelegate> onChange = new List<EventDelegate>();
|
||||
UIInput _input;
|
||||
|
||||
@@ -25,13 +26,13 @@ public class CLUIElementDate : UIEventListener
|
||||
|
||||
public void OnClick ()
|
||||
{
|
||||
if (input != null && !string.IsNullOrEmpty (input.value)) {
|
||||
DateTime d = DateTime.Parse (input.value);
|
||||
// DateTime d = DateTime.ParseExact(input.value, "yyyy-MM-dd", System.Globalization.CultureInfo.CurrentCulture);
|
||||
CLUIFormUtl.showCalender (d.Year, d.Month, (Callback)onGetDate, isSetTime);
|
||||
} else {
|
||||
CLUIFormUtl.showCalender ((Callback)onGetDate, isSetTime);
|
||||
}
|
||||
//if (input != null && !string.IsNullOrEmpty (input.value)) {
|
||||
// DateTime d = DateTime.Parse (input.value);
|
||||
// CLUIFormUtl.showCalender (d.Year, d.Month, (Callback)onGetDate, isSetTime, isDateRange);
|
||||
//} else {
|
||||
// CLUIFormUtl.showCalender ((Callback)onGetDate, isSetTime, isDateRange);
|
||||
//}
|
||||
CLUIFormUtl.showCalender(input.value, (Callback)onGetDate, isSetTime, isDateRange);
|
||||
}
|
||||
|
||||
public void onGetDate (params object[] paras)
|
||||
|
||||
Reference in New Issue
Block a user