This commit is contained in:
2020-07-24 22:12:55 +08:00
parent 3f114a6fca
commit 67a1f974bf
117 changed files with 14258 additions and 2325 deletions

View File

@@ -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)