Example #1
0
        protected void DefaultData()
        {
            //Thread.CurrentThread.CurrentCulture = new CultureInfo("th-TH");
            txtStartDate.Text = DateTime.Today.ToString("dd/MM/yyyy");
            //txtStartDate.Text = DateUtil.dd_MM_yyyy_Now_TH;
            txtEndDate.Text = DateTime.Today.ToString("dd/MM/yyyy");
            //txtEndDate.Text = DateUtil.dd_MM_yyyy_Now_TH;
            btnGenLicense.Visible    = false;
            txtOrder.Text            = string.Empty;
            txtIdCard.Text           = string.Empty;
            txtFirstName.Text        = string.Empty;
            txtLastName.Text         = string.Empty;
            ddlTypePay.SelectedIndex = 0;
            gvSearch.DataSource      = null;
            txtInputMaxrow.Text      = PAGE_SIZE_Key.ToString();

            gvSearch.Visible            = false;
            btnPreviousGvSearch.Visible = false;
            txtNumberGvSearch.Visible   = false;
            lblParaPage.Visible         = false;
            txtTotalPage.Visible        = false;
            btnNextGvSearch.Visible     = false;
            lblHeadInputMaxrow.Visible  = false;
            txtInputMaxrow.Visible      = false;
            btngo.Visible          = false;
            lblHeadTotal.Visible   = false;
            lblTotalrecord.Visible = false;
            lblEndTotal.Visible    = false;
        }
Example #2
0
        protected void defaultData()
        {
            Thread.CurrentThread.CurrentCulture = new CultureInfo("th-TH");

            txtStartExamDate.Text = DateTime.Today.AddDays(1).ToString("dd/MM/yyyy");
            //txtStartExamDate.Text = DateUtil.dd_MM_yyyy_Now_TH;
            txtEndExamDate.Text = DateTime.Today.AddDays(1).ToString("dd/MM/yyyy");
            //txtEndExamDate.Text = DateUtil.dd_MM_yyyy_Now_TH;
            divGv1.Visible   = false;
            divGv2.Visible   = false;
            rowPerpage.Text  = PAGE_SIZE_Key.ToString();
            rowPerpage2.Text = PAGE_SIZE_Key.ToString();

            GetTime("");
            ddlEvent.Enabled       = true;
            ddlEvent.SelectedIndex = 0;
            ddlAsso.Items.Clear();
            ddlPlaceName.Items.Clear();
            txtTestNo.Text = string.Empty;

            if (base.UserRegType.GetEnumValue() != DTO.RegistrationType.Association.GetEnumValue())
            {
                GetLicenseType();
            }
            else
            {
                GetAssociationDefult();
                GetLicenseType();
            }
        }