示例#1
0
        private void LoadObjectStatusDetail()
        {
            try
            {
                using (DataStuff sn = new DataStuff())
                {
                    DataTable dt = sn.GetObjectStatusDetail(AliasName, ObjectName);

                    if (dt.Rows.Count > 0)
                    {
                        foreach (DataRow row in dt.Rows)
                        {
                            tObjectStatus.Text      = row["ObjectStatusDesc"].ToString();
                            tLastStatusDate.Text    = row["HistoryDate"].ToString();
                            tResponsiblePerson.Text = row["UserName"].ToString();
                            tComment.Text           = row["Comment"].ToString();
                            tPartOfProject.Text     = row["ProjectName"].ToString();
                        }
                    }
                    else
                    {
                        tResponsiblePerson.Text = UserName;
                    }
                }

                OriginalStatus = tObjectStatus.Text;
            }

            catch
            {
                throw;
            }
        }
示例#2
0
        private void ViewObjectStatus_Load(object sender, EventArgs e)
        {
            try
            {
                gbCheckoutStatus.Text = "Status for " + ObjectName + " on " + AliasName;

                using (DataStuff sn = new DataStuff())
                {
                    DataTable dt = sn.GetObjectStatusDetail(AliasName, ObjectName);

                    if (dt.Rows.Count > 0)
                    {
                        foreach (DataRow row in dt.Rows)
                        {
                            tCurrentStatus.Text     = row["ObjectStatusDesc"].ToString();
                            tLastStatusDate.Text    = row["HistoryDate"].ToString();
                            tResponsiblePerson.Text = row["UserName"].ToString();
                            tComment.Text           = row["Comment"].ToString();
                            tPartOfProject.Text     = row["ProjectName"].ToString();
                        }
                    }
                }
            }

            catch
            {
                throw;
            }
        }
示例#3
0
        private void LoadObjectStatusDetail()
        {
            try
            {
                using (DataStuff sn = new DataStuff())
                {
                    DataTable dt = sn.GetObjectStatusDetail(AliasName, ObjectName);

                    if (dt.Rows.Count > 0)
                    {
                        foreach (DataRow row in dt.Rows)
                        {
                            tCurrentStatus.Text             = row["ObjectStatusDesc"].ToString();
                            tLastStatusDate.Text            = row["HistoryDate"].ToString();
                            tPreviousResponsiblePerson.Text = row["UserName"].ToString();
                            tPreviousComment.Text           = row["Comment"].ToString();
                            tPartOfProject.Text             = row["ProjectName"].ToString();
                            ObjectVersion = Convert.ToInt32(row["ObjectVersion"].ToString());
                        }
                    }
                    else
                    {
                        tCurrentStatus.Text             = "No previous status";
                        tLastStatusDate.Text            = "";
                        tPreviousResponsiblePerson.Text = "";
                        tPreviousComment.Text           = "";
                        tPartOfProject.Text             = "";
                        ObjectVersion = 0;
                    }
                }

                tResponsiblePerson.Text = UserName;
                OriginalStatus          = tCurrentStatus.Text;
            }

            catch
            {
                throw;
            }
        }