Exemplo n.º 1
0
 public void clearAndDisableLineForm(TextBox txtBox, Label label, DateTimeControl date, Button btn)
 {
     label.Visible = false;
     date.Visible  = false;
     date.ClearSelection();
     txtBox.Visible    = false;
     txtBox.Text       = "";
     btn.Visible       = false;
     enviarBTN.Visible = true;
 }
Exemplo n.º 2
0
        /// <summary>
        /// 更改时间控件
        /// </summary>
        /// <param name="dt"></param>

        protected void SetTimChangeControl(DateTime dt)
        {
            dateTimeStartSubmit.ClearSelection();
            dateTimeEndSubmit.ClearSelection();
            dateTimeStartScore.ClearSelection();
            dateTimeEndScore.ClearSelection();
            dateTimeStartPublic.ClearSelection();
            dateTimeEndPublic.ClearSelection();


            dateTimeStartSubmit.SelectedDate = dt;
            dateTimeEndSubmit.SelectedDate   = dt.AddDays(7);
            dateTimeStartScore.SelectedDate  = dt.AddDays(8);
            dateTimeEndScore.SelectedDate    = dt.AddDays(15);
            dateTimeStartPublic.SelectedDate = dt.AddDays(16);
            dateTimeEndPublic.SelectedDate   = dt.AddDays(23);
        }
Exemplo n.º 3
0
 /// <summary>
 /// 清除
 /// </summary>
 /// <param name="dtc"></param>
 private void ClearDateTime(DateTimeControl dtc)
 {
     dtc.ClearSelection();
 }