Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 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");
     }
 }