private void ByDay() { try { double day; if (EMP_ID != "") { day = T_String.DT_GetDays(dt1, dt2, EMP_ID); //txt_h.Text = T_String.Shift_WorkHour(EMP_ID, dt1.Value) + ""; if (day >= 1 && txt_h == "0") { txt_h = "8"; } } else { day = T_String.DT_GetDays(dt1, dt2, EMP_ID); } txt_day = day + ""; //NhuY: 2015/11/27 //txt_hr.Text = T_String.IsNullTo00(day*T_String.IsNullTo00(txt_h.Text)+"").ToString("#,##0.##"); txt_hr = txt_hr = T_String.IsNullTo00(day * 8.0 + "") + ""; // if (T_String.IsNullTo00(txt_h.Text) > T_String.IsNullTo00(txt_hr.Text)) // txt_h.Text = txt_hr.Text; } catch (Exception ex) { }; }