Ejemplo n.º 1
0
        private void GetValue(long DescriptionID)
        {
            SqlDataReader dr;

            UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();

            df.GetDescription(DescriptionID, out dr);

            if (dr.Read())
            {
                for (int i = 0; i < ddlFieldName.Items.Count; i++)
                {
                    if (ddlFieldName.Items[i].Value == dr["Field_Name"].ToString())
                    {
                        ddlFieldName.SelectedIndex = i;
                    }
                }


                tbFieldDescription.Text = dr["Field_Description"].ToString();
                if (dr["judged"].ToString() == "True")
                {
                    JudgedYes.Checked = true;
                }
                else
                {
                    JudgedNo.Checked = true;
                }
                if (dr["multiline"].ToString() == "True")
                {
                    MultiLineYes.Checked = true;
                }
                else
                {
                    MultiLineNo.Checked = true;
                }

                tbWidth.Text    = dr["Width"].ToString();
                tbHeight.Text   = dr["Height"].ToString();
                tbPosition.Text = dr["Position"].ToString();
                tbExample.Text  = dr["Example"].ToString();
            }
            dr.Close();
            dr = null;
        }
Ejemplo n.º 2
0
        private void GetValue(long DescriptionID)
        {
            SqlDataReader dr;

            UDS.Components.DocumentFlow df = new UDS.Components.DocumentFlow();

            df.GetDescription(DescriptionID,out dr);

            if(dr.Read())
            {
                for(int i=0;i<ddlFieldName.Items.Count;i++)
                {
                    if(ddlFieldName.Items[i].Value  == dr["Field_Name"].ToString())
                        ddlFieldName.SelectedIndex = i;
                }

                tbFieldDescription.Text = dr["Field_Description"].ToString();
                if(dr["judged"].ToString() =="True")
                    JudgedYes.Checked = true;
                else
                    JudgedNo.Checked = true;
                if(dr["multiline"].ToString() =="True")
                    MultiLineYes.Checked = true;
                else
                    MultiLineNo.Checked = true;

                tbWidth.Text	= dr["Width"].ToString();
                tbHeight.Text	= dr["Height"].ToString();
                tbPosition.Text = dr["Position"].ToString();
                tbExample.Text	= dr["Example"].ToString();

            }
            dr.Close();
            dr = null;
        }