Exemplo n.º 1
0
        private void changePFbutton_Click(object sender, EventArgs e)
        {
            FisicalFaceForm PFForm = new FisicalFaceForm();

            int    i     = PhisicalFaceView.SelectedCells[0].RowIndex;
            int    PFid  = int.Parse(PhisicalFaceView.Rows[i].Cells[0].Value.ToString());
            string query = "select PFId, PFFullRussName, PFFullEngName, PFBirthday, PFNumAndSerRussPassport, PFDateGetRussPassport, PFOrgGetRussPassport, PFNumAndSerForeignPassport, PFDateGetForeignPassport, PFDateEndForeignPassport, PFOrgGetForeignPassport, PFBirthPlace, PFPhone, PFMail from PhisicalFace where (PFId = " + PFid + ")";

            SqlDataReader data = Database.executeQuery(query);

            object[] fields = new object[14];
            data.Read();
            data.GetValues(fields);
            data.Close();
            this.Close();

            int    PFId = int.Parse(fields[0].ToString());
            string PFFullRussName = fields[1].ToString(), PFFullEngName = fields[2].ToString(), PFBirthday = fields[3].ToString();
            string PFNumAndSerRussPassport = fields[4].ToString(), PFDateGetRussPassport = fields[5].ToString(), PFOrgGetRussPassport = fields[6].ToString();
            string PFNumAndSerForeignPassport = fields[7].ToString(), PFDateGetForeignPassport = fields[8].ToString(), PFDateEndForeignPassport = fields[9].ToString();
            string PFOrgGetForeignPassport = fields[10].ToString(), PFBirthPlace = fields[11].ToString(), PFPhone = fields[12].ToString(), PFMail = fields[13].ToString();

            PFForm.fillData(PFId, PFFullRussName, PFFullEngName, PFBirthday, PFNumAndSerRussPassport, PFDateGetRussPassport, PFOrgGetRussPassport, PFNumAndSerForeignPassport, PFDateGetForeignPassport, PFDateEndForeignPassport, PFOrgGetForeignPassport, PFBirthPlace, PFPhone, PFMail);
            PFForm.ShowDialog();
        }
Exemplo n.º 2
0
        private void addPFbutton_Click(object sender, EventArgs e)
        {
            FisicalFaceForm fisFaceForm = new FisicalFaceForm();

            fisFaceForm.ShowDialog();
            this.Close();
        }
Exemplo n.º 3
0
        private void changePFbutton_Click(object sender, EventArgs e)
        {
            FisicalFaceForm PFForm = new FisicalFaceForm();

              int i = PhisicalFaceView.SelectedCells[0].RowIndex;
              int PFid = int.Parse(PhisicalFaceView.Rows[i].Cells[0].Value.ToString());
              string query = "select PFId, PFFullRussName, PFFullEngName, PFBirthday, PFNumAndSerRussPassport, PFDateGetRussPassport, PFOrgGetRussPassport, PFNumAndSerForeignPassport, PFDateGetForeignPassport, PFDateEndForeignPassport, PFOrgGetForeignPassport, PFBirthPlace, PFPhone, PFMail from PhisicalFace where (PFId = " + PFid + ")";

              SqlDataReader data = Database.executeQuery(query);
              object[] fields = new object[14];
              data.Read();
              data.GetValues(fields);
              data.Close();
              this.Close();

              int PFId = int.Parse(fields[0].ToString());
              string PFFullRussName = fields[1].ToString(), PFFullEngName = fields[2].ToString(), PFBirthday = fields[3].ToString();
              string PFNumAndSerRussPassport = fields[4].ToString(), PFDateGetRussPassport = fields[5].ToString(), PFOrgGetRussPassport = fields[6].ToString();
              string PFNumAndSerForeignPassport = fields[7].ToString(), PFDateGetForeignPassport = fields[8].ToString(), PFDateEndForeignPassport = fields[9].ToString();
              string PFOrgGetForeignPassport = fields[10].ToString(), PFBirthPlace = fields[11].ToString(), PFPhone = fields[12].ToString(), PFMail = fields[13].ToString();
              PFForm.fillData( PFId, PFFullRussName, PFFullEngName, PFBirthday, PFNumAndSerRussPassport, PFDateGetRussPassport, PFOrgGetRussPassport, PFNumAndSerForeignPassport, PFDateGetForeignPassport, PFDateEndForeignPassport, PFOrgGetForeignPassport, PFBirthPlace, PFPhone, PFMail);
              PFForm.ShowDialog();
        }
Exemplo n.º 4
0
 private void addPFbutton_Click(object sender, EventArgs e)
 {
     FisicalFaceForm fisFaceForm = new FisicalFaceForm();
     fisFaceForm.ShowDialog();
     this.Close();
 }