Exemplo n.º 1
0
        private void GetTitle(int id)
        {
            var message = SysMessage.DefaultSelecting;

            BLL.DataCenterBiz biz = new BLL.DataCenterBiz();
            var ls = biz.GetNationalityById(message);
            //BindToDDL(ddlTitleName, ls);

            //**รอข้อมูล Tob 8/3/20556**//
            //string code = ls.FirstOrDefault(w => w.Name == "ไทย").Id;
            //ddlTitleName.SelectedValue = code;
            //**รอข้อมูล Tob 8/3/20556**//
        }
Exemplo n.º 2
0
        private void GetNationalityAfter(string id)
        {
            var biz = new BLL.DataCenterBiz();
            var ls  = biz.GetNationalityById(id);

            if (ls != null)
            {
                ListItem listItem = new ListItem();
                listItem.Value = ls.Id;
                listItem.Text  = ls.Name;

                txtNationalityAfterReg.Text = listItem.ToString();
            }
            else
            {
                txtNationalityAfterReg.Text = "-";
            }
        }
Exemplo n.º 3
0
        private void GetNationalityBefore(string id)
        {
            var biz = new BLL.DataCenterBiz();
            var ls  = biz.GetNationalityById(id);

            if (ls != null)
            {
                ListItem listItem = new ListItem();
                listItem.Value = ls.Id;
                listItem.Text  = ls.Name;

                txtNationalityBeforeReg.Text = listItem.ToString();
            }
            else
            {
                txtNationalityBeforeReg.Text = Resources.propregApproveOfficerOIC_002;
            }
        }