コード例 #1
0
 private void bindData()
 {
     System.Int32 EditId;
     if (Request.QueryString["id"] == null)
     {
         return;
     }
     else
     {
         EditId = System.Int32.Parse(Request.QueryString["id"].ToString());
         Users m_Users = new Users();
         m_Users.UserId  = EditId;
         m_Users         = m_Users.Get();
         txUserName.Text = m_Users.UserName.ToString();
         txPassword.Text = m_Users.Password.ToString();
         txFullName.Text = m_Users.FullName.ToString();
         txAddress.Text  = m_Users.Address.ToString();
         txEmail.Text    = m_Users.Email.ToString();
         txMobile.Text   = m_Users.Mobile.ToString();
         txGenderId.Text = m_Users.GenderId.ToString();
         DropDownListHelpers.DDL_Bind(ddlUserStatusId, UserStatuss.Static_GetList(), " ... ", m_Users.UserStatusId.ToString());
         DropDownListHelpers.DDL_Bind(ddlUserStatusId, UserTypes.Static_GetList(), " ... ", m_Users.UserTypeId.ToString());
         txDefaultActionId.Text = m_Users.DefaultActionId.ToString();
         txBirthDay.Text        = m_Users.BirthDay.ToString("dd/MM/yyyy");
         txCrDateTime.Text      = m_Users.CrDateTime.ToString("dd/MM/yyyy");
     }
 }
コード例 #2
0
ファイル: Actions.aspx.cs プロジェクト: hieuhan/Database
 protected void Page_Load(object sender, EventArgs e)
 {
     ActUserId = SessionHelpers.GetUserId();
     try
     {
         if (!IsPostBack)
         {
             DropDownListHelpers.DDL_Bind(ddlActionStatusId, ActionStatuss.Static_GetList(), " ... ", "0");
             ShowGrid();
         }
         else if (CustomPaging.ChangePage)
         {
             ShowGrid();
         }
     }
     catch (Exception ex)
     {
         sms.utils.Log.writeLog(ex.ToString(), ((new System.Diagnostics.StackTrace()).GetFrames()[0]).GetMethod().Name);
     }
 }
コード例 #3
0
ファイル: ActionsEdit.aspx.cs プロジェクト: hieuhan/Database
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         ActUserId = SessionHelpers.GetUserId();
         if (!IsPostBack)
         {
             if (Request.QueryString["id"] == null)
             {
                 DropDownListHelpers.DDL_Bind(ddlActionStatusId, ActionStatuss.Static_GetList(), " ... ", "0");
             }
             else
             {
                 bindData();
             }
         }
     }
     catch (Exception ex)
     {
         sms.utils.LogFiles.LogError(((new System.Diagnostics.StackTrace()).GetFrames()[0]).GetMethod().Name + "\t" + ex.ToString());
         JSAlertHelpers.Alert(ex.Message, this);
     }
 }
コード例 #4
0
ファイル: ActionsEdit.aspx.cs プロジェクト: hieuhan/Database
 private void bindData()
 {
     System.Int16 EditId;
     if (Request.QueryString["id"] == null)
     {
         return;
     }
     else
     {
         EditId = System.Int16.Parse(Request.QueryString["id"].ToString());
         Actions m_Actions = new Actions();
         m_Actions.ActionId    = EditId;
         m_Actions             = m_Actions.Get();
         txActionName.Text     = m_Actions.ActionName.ToString();
         txActionDesc.Text     = m_Actions.ActionDesc.ToString();
         txParentActionId.Text = m_Actions.ParentActionId.ToString();
         txUrl.Text            = m_Actions.Url.ToString();
         DropDownListHelpers.DDL_Bind(ddlActionStatusId, ActionStatuss.Static_GetList(), " ... ", m_Actions.ActionStatusId.ToString());
         txDisplay.Text      = m_Actions.Display.ToString();
         txDisplayOrder.Text = m_Actions.DisplayOrder.ToString();
         txTreeOrder.Text    = m_Actions.TreeOrder.ToString();
         txCrDateTime.Text   = m_Actions.CrDateTime.ToString("dd/MM/yyyy");
     }
 }