Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            iInboxClient objService = new iInboxClient();

            try
            {
                CustomProfile profile = CustomProfile.GetProfile();
                GVInbox.DataSource = objService.GetInboxDataByUserID(profile.Personal.UserID, profile.DBConnection._constr);
                GVInbox.DataBind();
            }
            catch { }
            finally { objService.Close(); }
        }
Esempio n. 2
0
        public static string WMSetArchive(string SelectedRec)
        {
            CustomProfile profile      = CustomProfile.GetProfile();
            iInboxClient  InboxService = new iInboxClient();

            try
            {
                InboxService.SetArchive(SelectedRec, profile.DBConnection._constr);
            }
            catch (Exception ex)
            {
                Login.Profile.ErrorHandling(ex, "Inbox", "WMSetArchive");
            }
            finally { InboxService.Close(); }

            return("true");
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            iInboxClient InboxService = new iInboxClient();

            try
            {
                CustomProfile profile = CustomProfile.GetProfile();

                //if (hndLinkValue.Value == "") hndLinkValue.Value = "All";
                GVInboxPOR.DataSource = InboxService.GetInboxDetailBySiteUserID(profile.Personal.UserID, "All", profile.DBConnection._constr).ToList();
                GVInboxPOR.DataBind();

                sqlConn = "Data Source=" + profile.DBConnection._constr[0] + ";Initial Catalog=" + profile.DBConnection._constr[1] + "; User ID=" + profile.DBConnection._constr[3] + "; Password="******";";
                ChartBind();
            }
            catch { }
            finally { InboxService.Close(); }
        }
Esempio n. 4
0
        protected void GVInbox_OnRebind(object sender, EventArgs e)
        {
            CustomProfile profile      = CustomProfile.GetProfile();
            iInboxClient  InboxService = new iInboxClient();

            try
            {
                var SelectedValue = hndLinkValue.Value;
                if (profile.Personal.UserType == "User")
                {
                    if (SelectedValue == "")
                    {
                        GVInbox.DataSource = InboxService.GetUserInbox(profile.Personal.UserID, profile.DBConnection._constr);
                    }
                    else
                    {
                        GVInbox.DataSource = InboxService.GetUserInboxWhere(profile.Personal.UserID, SelectedValue, profile.DBConnection._constr);
                    }
                }
                else
                {
                    if (SelectedValue == "")
                    {
                        GVInbox.DataSource = InboxService.GetInbox(profile.Personal.UserID, profile.DBConnection._constr);
                    }
                    else
                    {
                        GVInbox.DataSource = InboxService.GetInboxWhere(profile.Personal.UserID, SelectedValue, profile.DBConnection._constr);
                    }
                }
            }
            catch (System.Exception ex)
            {
                Login.Profile.ErrorHandling(ex, this, "inbox", "GVInbox_OnRebind");
            }
            finally
            {
                InboxService.Close();
            }
            GVInbox.DataBind();
        }