コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // access master page from nested master page
            Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler;

            // check user permission
            masterPage.checkPermission();

            if (!Page.IsPostBack)
            {
                legacyInvoices.bindData();
            }
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // access master page from nested master page
            Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler;

            // check user permission
            masterPage.checkPermission();

            clientID = SessionHelper.getClientId();
            userID   = SessionHelper.getUserId();
            leadID   = SessionHelper.getLeadId();
            claimID  = SessionHelper.getClaimID();

            if (!Page.IsPostBack)
            {
                bindData();
            }
        }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            // access master page from nested master page
            Protected.ClaimRuler masterPage = Master.Master as Protected.ClaimRuler;

            // check user permission
            masterPage.checkPermission();

            int invoiceID = 0;

            if (!Page.IsPostBack)
            {
                bindData();
            }

            if (int.TryParse(ViewState["InvoiceID"].ToString(), out invoiceID) && invoiceID > 0)
            {
                showToolbarButtons();
            }
        }