private void docButton_Click(object sender, EventArgs e)
        {
            SqlConnection con = new SqlConnection(this.connection);

            con.Open();
            DateTime   dt  = DateTime.Now;
            SqlCommand cmd = new SqlCommand("select setupdate from abandoned, outmember where abandoned.id = outmember.id and abandoneddate = setupdate and supporter_id = outmember.id and abandoned.id = supporter_id and outmember.id = @id", con);

            cmd.Parameters.AddWithValue("@id", this.id);
            using (SqlDataReader reader = cmd.ExecuteReader())
            {
                if (reader.Read())
                {
                    dt = reader.GetDateTime(0);
                }
            }
            con.Close();
            var newform = new observeDocForm("ویرایش مدارک حذف", "deletion", this.id, dt.ToString());

            newform.ShowDialog(this);
        }
Ejemplo n.º 2
0
        private void reqButton_Click(object sender, EventArgs e)
        {
            var newform = new observeDocForm("تقاضا مددجویی متقاضی", "req", this.id);

            newform.ShowDialog(this);
        }
Ejemplo n.º 3
0
        private void healButton_Click(object sender, EventArgs e)
        {
            var newform = new observeDocForm("درمانی", "HRhelp:healDoc", this.id);

            newform.ShowDialog(this);
        }
        private void attachButton_Click(object sender, EventArgs e)
        {
            var newform = new observeDocForm("پیوست‌ها", "LetterAttachment", this.id);

            newform.ShowDialog(this);
        }
        private void healthButton_Click(object sender, EventArgs e)
        {
            var newform = new observeDocForm("سلامت", "health", this.id);

            newform.ShowDialog(this);
        }
        private void orphanButton_Click(object sender, EventArgs e)
        {
            var newform = new observeDocForm("تیمی", "orphan", this.id);

            newform.ShowDialog(this);
        }
        private void studentButton_Click(object sender, EventArgs e)
        {
            var newform = new observeDocForm("دانش‌آموزی", "study", this.id);

            newform.ShowDialog(this);
        }
        private void otherButton_Click(object sender, EventArgs e)
        {
            var newform = new observeDocForm("متفرقه", "other", this.id);

            newform.ShowDialog(this);
        }
        private void homeButton_Click(object sender, EventArgs e)
        {
            var newform = new observeDocForm("مسکن", "house", this.id);

            newform.ShowDialog(this);
        }
        private void marryButton_Click(object sender, EventArgs e)
        {
            var newform = new observeDocForm("ازدواج", "marry", this.id);

            newform.ShowDialog(this);
        }
        private void authButton_Click(object sender, EventArgs e)
        {
            var newform = new observeDocForm("شناسایی", "auth", this.id);

            newform.ShowDialog(this);
        }
Ejemplo n.º 12
0
        private void enterButton_Click(object sender, EventArgs e)
        {
            var newform = new observeDocForm("ورود", "enter", this.id);

            newform.ShowDialog(this);
        }