示例#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();
        }
示例#2
0
        private void addPFbutton_Click(object sender, EventArgs e)
        {
            FisicalFaceForm fisFaceForm = new FisicalFaceForm();

            fisFaceForm.ShowDialog();
            this.Close();
        }
示例#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();
        }
示例#4
0
 private void AddPhisFace_Click(object sender, EventArgs e)
 {
     FisicalFaceForm fisicFaceForm = new FisicalFaceForm();
     fisicFaceForm.Show();
 }
示例#5
0
 private void addPFbutton_Click(object sender, EventArgs e)
 {
     FisicalFaceForm fisFaceForm = new FisicalFaceForm();
     fisFaceForm.ShowDialog();
     this.Close();
 }
示例#6
0
        private void AddPhisFace_Click(object sender, EventArgs e)
        {
            FisicalFaceForm fisicFaceForm = new FisicalFaceForm();

            fisicFaceForm.Show();
        }