Exemplo n.º 1
0
 private void docAddFileButton_Click(object sender, EventArgs e)
 {
     if (this.typ == "edit")
     {
         var newform = new doceditForm("ویرایش معرفی‌نامه", this.id, "facilities:intro", "", "", this.fold);
         newform.ShowDialog(this);
         if (int.Parse(newform.Text) == 0)
         {
             docLabel.BackColor = Color.Red;
         }
         else
         {
             docLabel.BackColor = Color.YellowGreen;
         }
     }
     else
     {
         addOpenFileDialog.Title    = "معرفی‌نامه";
         addOpenFileDialog.FileName = "*.pdf";
         if (addOpenFileDialog.ShowDialog() == DialogResult.OK)
         {
             foreach (var d in addOpenFileDialog.FileNames)
             {
                 doc.Add(@d);
             }
             docLabel.BackColor = Color.YellowGreen;
         }
         else
         {
             doc.Clear();
             addOpenFileDialog.FileName = "*.pdf";
             docLabel.BackColor         = Color.Red;
         }
     }
 }
        private void attachmetAddFileButton_Click(object sender, EventArgs e)
        {
            var newform = new doceditForm("ویرایش پیوست‌ها", this.id, "LetterAttachment");

            newform.ShowDialog(this);
            if (int.Parse(newform.Text) == 0)
            {
                attachmentLabel.BackColor = Color.Red;
            }
            else
            {
                attachmentLabel.BackColor = Color.LimeGreen;
            }
        }
Exemplo n.º 3
0
        private void editFileButton_Click(object sender, EventArgs e)
        {
            var newform = new doceditForm("ویرایش مدارک رجعت", this.id, "deletion", this.name, this.family, this.fold, this.ddate, this.Text);

            newform.ShowDialog(this);
            if (int.Parse(newform.Text) == 0)
            {
                docLabel.BackColor = Color.Red;
            }
            else
            {
                docLabel.BackColor = Color.YellowGreen;
            }
        }
Exemplo n.º 4
0
        private void reqAddFileButton_Click(object sender, EventArgs e)
        {
            var newform = new doceditForm("ویرایش فرم تقاضا", this.id, "req", nameTextbox.Text, familyTextbox.Text, "");

            newform.ShowDialog(this);
            if (int.Parse(newform.Text) == 0)
            {
                reqLabel.BackColor = Color.Red;
            }
            else
            {
                reqLabel.BackColor = Color.YellowGreen;
            }
        }
Exemplo n.º 5
0
        private void visitDocsButton_Click(object sender, EventArgs e)
        {
            var newform = new doceditForm("مشاهده مدارک ازدواج", this.rId, "MRhelp:marryDoc");

            newform.ShowDialog(this);
        }
        private void visitDocsButton_Click(object sender, EventArgs e)
        {
            var newform = new doceditForm("مشاهده مدارک درمان", this.rId, "HRhelp:healDoc");

            newform.ShowDialog(this);
        }
        private void visitDocsButton_Click(object sender, EventArgs e)
        {
            var newform = new doceditForm("مشاهده مدارک دیگر کمک متفرقه فردی", this.rId, "OIRhelp:otherDoc");

            newform.ShowDialog(this);
        }