Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!ExtNet.IsAjaxRequest)
     {
         // init data
         var objType = CatalogController.GetByName("cat_SchedulerType", "TaskTimeSheet");
         if (objType != null)
         {
             hdfSchedulerType.Text = objType.Id.ToString();
         }
         hdfMonth.Text = DateTime.Now.Month.ToString();
         hdfYear.Text  = DateTime.Now.Year.ToString();
         cbxMonth.SetValue(DateTime.Now.Month);
         spnYear.SetValue(DateTime.Now.Year);
         hdfChoseMonth.Text = DateTime.Now.Month.ToString();
         hdfChoseYear.Text  = DateTime.Now.Year.ToString();
         cboChoseMonth.SetValue(DateTime.Now.Month);
         sfChoseYear.SetValue(DateTime.Now.Year);
         hdfDataType.Text = ((int)SalaryConfigDataType.DynamicValue).ToString();
     }
 }