Exemplo n.º 1
0
        public NewUser(string conStr, object UserID)
        {
            InitializeComponent();

            SQLCom com = new SQLCom(conStr, "getAnalityc");

            com.AddParam(UserID); com.AddParam(12);
            try
            {
                DataTable t = com.GetResult();
                textBox4.Text = t.Rows[0][0].ToString();
                textBox1.Text = t.Rows[0][3].ToString();
                textBox2.Text = t.Rows[0][1].ToString();
                textBox3.Text = t.Rows[0][2].ToString();
                textBox5.Text = t.Rows[0][5].ToString();
                textBox6.Text = t.Rows[0][6].ToString();
                textBox7.Text = t.Rows[0][7].ToString();
                textBox8.Text = t.Rows[0][8].ToString();
                textBox9.Text = t.Rows[0][9].ToString();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 2
0
        public void Build(string constr, int sqlTask, int SystemID, int IDinSystem)
        {
            this.constr   = constr;
            this.sqlTask  = sqlTask;
            this.SystemID = SystemID; this.IDinSystem = IDinSystem;

            com = new SQLCom(constr, "");
            GetAnalytic();
        }
Exemplo n.º 3
0
        public UserAdmin(string conStr)
        {
            InitializeComponent();

            this.conStr = conStr;

            com = new SQLCom(conStr, "mGetRepRarts");

            try
            {
                GetOfficers();
                GetTasks();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemplo n.º 4
0
        public TaskPropertys(string conStr, int taskID, int wpID)
        {
            InitializeComponent();

            this.taskID = taskID; this.wpID = wpID;
            com         = new SQLCom(conStr, "");

            // Create a repository item which represents an in-place CheckEdit control.
            //RepositoryItemCheckEdit riCheckEdit = new RepositoryItemCheckEdit();
            // Represent check boxes as radio buttons.
            //riCheckEdit.CheckStyle = DevExpress.XtraEditors.Controls.CheckStyles.Radio;
            // Associate the Boolean data type with the created repository item.
            //propertyGridControl1.DefaultEditors.Add(typeof(Boolean), riCheckEdit);

            try
            {
                GetPropertyesByTask();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }