Ejemplo n.º 1
0
        private void btn_AddCerts_Click(object sender, EventArgs e)
        {
            PresentHolderCertsWithDelegate DelData = new PresentHolderCertsWithDelegate(0, string.Empty, string.Empty
                                                                                        , string.Empty, string.Empty, string.Empty, 0, false, string.Empty, string.Empty, DateTime.MinValue
                                                                                        , string.Empty, DateTime.MinValue, string.Empty, string.Empty, "Delegated", "توكيل", "Holder", SharedParam.CurrentUser.UserID);
            frm_HolderSearch frm = new frm_HolderSearch(CurrentHolderClass, false, DelData, ref HolderCertsList);

            frm.ShowDialog();
            dgvCerts.DataSource = null;
            dgvCerts.DataSource = HolderCertsList;
            dgv_ApplyStyle();
        }
Ejemplo n.º 2
0
 private void btn_AddCerts_Click(object sender, EventArgs e)
 {
     if (CheckDelegationRequiredData())
     {
         PresentHolderCertsWithDelegate DelData = new PresentHolderCertsWithDelegate(0, string.Empty, string.Empty
                                                                                     , string.Empty, string.Empty, string.Empty, 0, true, txt_H_DlgNo.Text, txt_H_DlgName.Text, DateTime.Parse(txt_H_DlgDate.Text)
                                                                                     , txt_H_ApprovedNo.Text, DateTime.Parse(txt_H_ApprovedDate.Text), txt_H_ApprovedOrg.Text, txt_H_Note.Text
                                                                                     , coDelegateType.SelectedValue.ToString(), coDelegateType.Text, "HolderDelagate", SharedParam.CurrentUser.UserID);
         if (object.ReferenceEquals(HolderCertsList, null))
         {
             HolderCertsList = new List <PresentHolderCertsWithDelegate>();
         }
         frm_HolderSearch frm = new frm_HolderSearch(CurrentHolderClass, true, DelData, ref HolderCertsList);
         frm.ShowDialog();
         dgvCerts.DataSource = null;
         dgvCerts.DataSource = HolderCertsList;
         dgv_ApplyStyle();
     }
 }
Ejemplo n.º 3
0
        private void btnAddAgentCerts_Click(object sender, EventArgs e)
        {
            //if (CheckDelegationRequiredData())
            //{
            PresentHolderCertsWithDelegate DelData = new PresentHolderCertsWithDelegate(0, string.Empty, string.Empty
                                                                                        , string.Empty, string.Empty, string.Empty, 0, false, string.Empty, string.Empty, DateTime.MinValue
                                                                                        , string.Empty, DateTime.MinValue, string.Empty, string.Empty, coDelegateType.SelectedValue.ToString()
                                                                                        , string.Empty, "Holder", SharedParam.CurrentUser.UserID);

            if (object.ReferenceEquals(HolderCertsList, null))
            {
                HolderCertsList = new List <PresentHolderCertsWithDelegate>();
            }
            frm_HolderSearch frm = new frm_HolderSearch(CurrentHolderClass, true, DelData, ref HolderCertsList);

            frm.ShowDialog();
            dgvCerts.DataSource = null;
            dgvCerts.DataSource = HolderCertsList;
            dgv_ApplyStyle();
            //}
        }