Example #1
0
        private void btnHome_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                if (sFormName == "HomeMember")
                {
                    frmHomeMembership frm = new frmHomeMembership();
                    this.Close();
                    frm.ShowDialog();
                }
                else if (sFormName == "Registration")
                {
                    frmMemberRegistration frm = new frmMemberRegistration(0);
                    this.Close();
                    frm.ShowDialog();
                }
                else if (sFormName == "PostArrear")
                {
                    frmArrearPost16 frm = new frmArrearPost16(0);
                    this.Close();
                    frm.ShowDialog();
                }
                else if (sFormName == "PreArrear")
                {
                    frmArrearPre16 frm = new frmArrearPre16(0);
                    this.Close();
                    frm.ShowDialog();
                }
                else if (sFormName == "Resingation")
                {
                    frmResingation frm = new frmResingation(0);
                    this.Close();
                    frm.ShowDialog();
                }
                else if (sFormName == "Transfer")
                {
                    frmTransfer frm = new frmTransfer(0);
                    this.Close();
                    frm.ShowDialog();
                }
                else if (sFormName == "LEVY")
                {
                    frmLevy frm = new frmLevy(0);
                    this.Close();
                    frm.ShowDialog();
                }

                else if (sFormName == "TDF")
                {
                    frmTDF frm = new frmTDF(0);
                    this.Close();
                    frm.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                ExceptionLogging.SendErrorToText(ex);
            }
        }
Example #2
0
        private void btnResingation_Click(object sender, RoutedEventArgs e)
        {
            frmResingation frm = new frmResingation();

            userPrevilage = new UserPrevilage(this.btnResingation.Tag.ToString());
            if (userPrevilage.Show == true)
            {
                frm.btnSave.IsEnabled = Convert.ToBoolean(userPrevilage.AddNew);
                this.Close();
                frm.ShowDialog();
            }
        }
        public void loadData(frmResingation frm)
        {
            try
            {
                rptViewer.Reset();

                rptViewer.LocalReport.ReportEmbeddedResource = "Nube.Transaction.rptIRCPrint.rdlc";
                string IRCPosition = "";
                if (frm.rbtChariman.IsChecked == true)
                {
                    IRCPosition = frm.rbtChariman.Content as string;
                }
                else if (frm.rbtSecretary.IsChecked == true)
                {
                    IRCPosition = frm.rbtSecretary.Content as string;
                }
                else if (frm.rbtCommitteMember.IsChecked == true)
                {
                    IRCPosition = frm.rbtCommitteMember.Content as string;
                }

                string IRCMsg1, IRCMsg2, IRCMsg3, IRCMsg4, IRCMsg5, IRCMsg6;
                IRCMsg1 = frm.cbxNameOfPerson.Content as string;
                IRCMsg2 = string.Format("{0} {1} grade w.e.f. {2}", frm.cbxPromotedTo.Content, frm.txtIRCPromotedTo.Text, frm.dtpGrade.Text);
                IRCMsg3 = frm.cbxBeforePromotion.Content as string;
                IRCMsg4 = frm.cbxAttached.Content as string;
                IRCMsg5 = frm.cbxHereByConfirm.Content as string;
                IRCMsg6 = frm.cbxFilledBy.Content as string;

                List <ReportParameter> rp = new List <ReportParameter>();
                rp.Add(new ReportParameter("IRCMemberName", frm.txtIRCName.Text));
                rp.Add(new ReportParameter("IRCPosition", IRCPosition));
                rp.Add(new ReportParameter("IRCMembershipNo", frm.txtIRCMemberNo.Text));
                rp.Add(new ReportParameter("IRCBankName", frm.txtIRCBankName.Text));
                rp.Add(new ReportParameter("IRCBankAddress", frm.txtIRCBankAddress.Text));
                rp.Add(new ReportParameter("IRCTelephoneNo", frm.txtIRCTelephoneNo.Text));
                rp.Add(new ReportParameter("IRCMobileNo", frm.txtIRCMobileNo.Text));
                rp.Add(new ReportParameter("IRCFaxNo", frm.txtIRCFax.Text));

                rp.Add(new ReportParameter("DispMessage1", IRCMsg1));
                rp.Add(new ReportParameter("DispMessage2", IRCMsg2));
                rp.Add(new ReportParameter("DispMessage3", IRCMsg3));
                rp.Add(new ReportParameter("DispMessage4", IRCMsg4));
                rp.Add(new ReportParameter("DispMessage5", IRCMsg5));
                rp.Add(new ReportParameter("DispMessage6", IRCMsg6));

                rp.Add(new ReportParameter("BCName", frm.txtBranchCommitteeName.Text));
                rp.Add(new ReportParameter("BCZone", frm.txtBranchCommitteeZone.Text));
                rp.Add(new ReportParameter("BCDate", frm.dtpBranchCommitteeDate.SelectedDate.Value.ToString()));

                rp.Add(new ReportParameter("IRCCBX1", frm.cbxNameOfPerson.IsChecked == true?"1":"0"));
                rp.Add(new ReportParameter("IRCCBX2", frm.cbxPromotedTo.IsChecked == true ? "1" : "0"));
                rp.Add(new ReportParameter("IRCCBX3", frm.cbxBeforePromotion.IsChecked == true ? "1" : "0"));
                rp.Add(new ReportParameter("IRCCBX4", frm.cbxAttached.IsChecked == true ? "1" : "0"));
                rp.Add(new ReportParameter("IRCCBX5", frm.cbxHereByConfirm.IsChecked == true ? "1" : "0"));
                rp.Add(new ReportParameter("IRCCBX6", frm.cbxFilledBy.IsChecked == true ? "1" : "0"));
                rp.Add(new ReportParameter("BCCBX1", frm.cbxBranchCommitteeVerification1.IsChecked == true ? "1" : "0"));
                rptViewer.LocalReport.SetParameters(rp);
                rptViewer.RefreshReport();
            }
            catch (Exception ex) { }
        }
Example #4
0
        private void dgvDetails_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            try
            {
                //if ((sFormName == "Registration" || sFormName == "LEVY" || sFormName == "TDF" || sFormName == "Resingation" ||
                //    sFormName == "Transfer" || sFormName == "PostArrear" || sFormName == "PreArrear" || sFormName == "HomeMember" ||
                //    sFormName== "Annual Statement") && (dgvDetails.SelectedItem != null))

                if ((dgvDetails.SelectedItem != null))
                {
                    DataRowView drv = (DataRowView)dgvDetails.SelectedItem;
                    dMember_Code = Convert.ToDecimal(drv["MEMBER_CODE"]);
                    if (dMember_Code != 0)
                    {
                        if (sFormName == "Transfer")
                        {
                            frmTransfer frm = new frmTransfer(dMember_Code);
                            frm.Show();
                            this.Hide();
                        }
                        else if (sFormName == "PostArrear")
                        {
                            frmArrearPost16 frm = new frmArrearPost16(dMember_Code, 0);
                            frm.Show();
                            this.Hide();
                        }
                        else if (sFormName == "PreArrear")
                        {
                            frmArrearPre16 frm = new frmArrearPre16(dMember_Code, 0);
                            frm.Show();
                            this.Hide();
                        }
                        else if (sFormName == "Resingation")
                        {
                            frmResingation frm = new frmResingation(dMember_Code);
                            frm.Show();
                            this.Hide();
                        }
                        else if (sFormName == "LEVY")
                        {
                            frmLevy frm = new frmLevy(dMember_Code);
                            frm.Show();
                            this.Close();
                        }

                        else if (sFormName == "TDF")
                        {
                            frmTDF frm = new frmTDF(dMember_Code);
                            frm.Show();
                            this.Close();
                        }
                        else if (sFormName == "Annual Statement")
                        {
                            Reports.frmAnnualStatement frm = new Reports.frmAnnualStatement(dMember_Code);
                            frm.Show();
                            this.Close();
                        }
                        else
                        {
                            frmMemberRegistration frm = new frmMemberRegistration(dMember_Code, false);
                            frm.Show();
                            this.Hide();
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                ExceptionLogging.SendErrorToText(ex);
            }
        }