Exemple #1
0
        public AgentUI(long AgentID)
        {
            try
            {
                InitializeComponent();


                var c = Glob.CustomersAndAgents.Agents_Partial.Select_Row_Agent(AgentID);

                AgentIDForUpdateUse = c.ID;

                FirstName_Txt.Text        = c.FIRST_NAME;
                LAST_NAMETxt.Text         = c.LAST_NAME;
                Address_Txt.Text          = c.ADDRESS;
                Mobile_Txt.Text           = c.MOBILE_NO;
                EmailTxt.Text             = c.EMAIL;
                StatusToggle.Checked      = c.STATUS;
                Agent_From_Date_link.Text = c.AGENT_FROM.ToLongDateString();
                ImageR.Image = Glob.CacheData.Glob_Veriables.GetImageFromByteArray(c.PICTURE);



                webcam = new WebCam();
                webcam.InitializeWebCam(ref ImageR);


                Panel_info_Extra.Show();
                // Availibility_Toggle.Show();
                Panel_pictureControls.Hide();
                Edit_Btn.Show();
                Cancel_Edit_btn.Show();
                StatusToggle.Show();

                Main_Info_Panel.Enabled = false;
                SAVE_New_Customer_Btn.Hide();

                ImageR.Region = Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR.Width, ImageR.Height);
                this.Text     = "AGENT " + c.FIRST_NAME.ToUpper() + " ID# " + c.ID.ToString();
            }
            catch (Exception ex)
            {
                this.Close();
                MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Exemple #2
0
        public CompanyUI(long companyid)
        {
            try
            {
                InitializeComponent();


                var rr = WARPRO.Glob.CustomersAndAgents.Glob_mainCompany.Get_CompanyRow(companyid);

                orignalCompanyId = rr.ID;

                StatusToggle.Show();
                Edit_Btn.Show();
                SAVE_New_COmpany_Btn.Hide();
                Cancel_Edit_btn.Show();
                Main_Info_Panel.Enabled = false;
                Panel_info_Extra.Show();

                this.Text = "COMPANY ID - " + rr.ID.ToString();

                StatusToggle.Checked = rr.STATUS;

                CompanyName_Txt.Text = rr.COMPANY_NAME;
                Owner_NAME_Txt.Text  = rr.OWNER_NAME;

                Address_Txt.Text        = rr.ADDRESS;
                Company_Mobile_Txt.Text = rr.COMPANY_MOBILE_NO;
                Extra_Mobile_Txt.Text   = rr.EXTRA_MOBILE_NO;
                Owner_Mobile_Txt.Text   = rr.OWNER_MOBILE_NO;

                EmailTxt.Text        = rr.EMAIL;
                Extra_Email_Txt.Text = rr.EXTRA_EMAIL;

                Extra_Details_Txt.Text = rr.EXTRA_DETAILS;

                Company_From_Date_link.Text = rr.CONNECTION_DATE.ToLongDateString();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Exemple #3
0
        public OurCompanyProfileUI()
        {
            InitializeComponent();

            webcam = new WebCam();
            webcam.InitializeWebCam(ref ImageR);

            var rr = WARPRO.Glob.CustomersAndAgents.Glob_OurCompanyProfile.Get_Select_Row_OurCompanyProfile();



            Edit_Btn.Show();

            Cancel_Edit_btn.Show();
            Main_Info_Panel.Enabled = false;
            Panel_info_Extra.Show();

            //



            CompanyName_Txt.Text = rr.COMPANY_NAME;
            Owner_NAME_Txt.Text  = rr.OWNER_NAME;

            Address_Txt.Text        = rr.ADDRESS;
            Company_Mobile_Txt.Text = rr.COMPANY_MOBILE_NO;
            Extra_Mobile_Txt.Text   = rr.EXTRA_MOBILE_NO;
            Owner_Mobile_Txt.Text   = rr.OWNER_MOBILE_NO;

            EmailTxt.Text        = rr.EMAIL;
            Extra_Email_Txt.Text = rr.EXTRA_EMAIL;

            Extra_Details_Txt.Text = rr.EXTRA_DETAILS;

            Company_From_Date_link.Text = rr.LAST_CHANGE_DATE.ToLongDateString();

            if (rr.IMAGE != null)
            {
                ImageR.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(rr.IMAGE);
            }
        }
Exemple #4
0
        private void passportNo_Txt_TextChanged(object sender, EventArgs e)
        {
            try
            {
                Custmer_Or_Agent_ID_Txt.Text = "";
                Edit_Btn.Hide();
                button1.Hide();
                if (passportNo_Txt.Text.Length >= 1)
                {
                    var cr = WARPRO.Glob.CustomersAndAgents.Glob_Passport.Get_Select_FOrWidgetRowByPassportNo_Passport(passportNo_Txt.Text);
                    if (cr != null)
                    {
                        Custmer_Or_Agent_ID_Txt.Text = cr.CUSTOMER_ID.ToString();
                        Clipboard.SetText(cr.CUSTOMER_ID.ToString());
                        Edit_Btn.Show();
                        button1.Show();
                        WARPRO.Glob.CacheData.Glob_Veriables.Show_NotiFiCation("COPIED", "CUSTOMER ID COPIED SUCCESSFULLY");
                    }
                    else
                    {
                        Clipboard.Clear();
                        Custmer_Or_Agent_ID_Txt.Text = "";
                        Edit_Btn.Hide();
                        button1.Hide();
                    }
                }

                else
                {
                    //WarFramework.WarMessageBox.Show(this, "PLEASE ENTER CUSTOMER ID", "CUSTOMER ID", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Exemple #5
0
        public TicketUI(string Orignalpnr)
        {
            InitializeComponent();
            try
            {
                // Availibility_Toggle.Show();
                ImageR.Region = WARPRO.Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR.Width, ImageR.Height);

                Edit_Btn.Show();
                Cancel_Edit_btn.Show();
                StatusToggle.Show();
                PrintBtn.Show();
                SAVE_NewTicket_Btn.Hide();
                Main_Info_Panel.Enabled = false;
                printpanel.Enabled      = false;



                var rr = WARPRO.Glob.CustomersAndAgents.Glob_Tickets.Get_TicketRow(Orignalpnr);
                //'''''''''
                OrignalPNRForUpdates = rr.PNR;
                orignalCustomerid    = rr.CUSTOMER_ID;

                Custmer_Or_Agent_ID_Txt.Text = rr.CUSTOMER_ID.ToString();
                PNR_Txt.Text              = rr.PNR;
                CarrierAirline_Txt.Text   = rr.CARRIER_AIRLINE;
                Sector_Txt.Text           = rr.SECTOR;
                TravellingDatetime.Value  = rr.TRAVELLING_DATE;
                IssuedFromText.Text       = rr.ISSUED_FROM;
                FaceValueTxt.Text         = rr.FACE_VALUE.ToString();
                PayAbleTxt.Text           = rr.PAYABLE.ToString();
                ProfitTxt.Text            = rr.PROFIT.ToString();
                OkToBoardCheckBox.Checked = rr.OK_TO_BOARD;

                Type_ComboBox.Text      = rr.TYPE;
                DepartureDateTime.Value = rr.DEPARTURE_DATE;

                ReturnDateTime.Hide();
                if (rr.TYPE.ToLower().Contains("one") == true)
                {
                    ReturnDateTime.Hide();
                }

                else if ((rr.TYPE.ToLower().Contains("two") == true) && (rr.RETURN_DATE != null))
                {
                    ReturnDateTime.Show();
                    ReturnDateTime.Value = DateTime.Parse(rr.RETURN_DATE);
                }

                VisaTypeTxt.Text    = rr.VISA_TYPE;
                PaymentTypeTxt.Text = rr.PAYMENT_TYPE;

                StatusToggle.Checked = rr.DEAL_STATUS;

                if (rr.DEAL_STATUS == false)
                {
                    canceledLable.Show();
                }

                TravellingFromPlaceTxt.Text = rr.TRAVELLING_FROM;
                DestinationTxt.Text         = rr.DESTINATION;


                //CustomerInfo
                var cr = WARPRO.Glob.CustomersAndAgents.CustomersAndAgents_class.Select_Row_Customer(rr.CUSTOMER_ID);

                if (cr != null)
                {
                    ImageR.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(cr.PICTURE);

                    Id_info_nameLink.Text     = cr.FIRST_NAME.ToUpper() + " " + cr.LAST_NAME.ToUpper();
                    Id_info_PassportLink.Text = cr.PASSPORT_NO;
                }



                // TransecLoad
                var tt = WARPRO.Glob.Bookings_And_Payments.Glob_Transec.Get_Transec_Row(Orignalpnr.ToString());
                PanelStatus.Show();

                canceledLable.Show();
                transecGroup.Hide();

                StatusToggle.Checked = tt.STATUS;

                if (tt.STATUS == false)
                {
                    canceledLable.Text = "CANCELLED/REFUNDED";
                }
                if (tt.STATUS == true)
                {
                    if (tt.REMAINING > 0)
                    {
                        PayRemainingBtn.Show();
                    }


                    if (tt.REMAINING <= 0)
                    {
                        canceledLable.Text      = "CLEARED";
                        canceledLable.ForeColor = Color.Green;
                    }
                    else if (tt.REMAINING > 0)
                    {
                        canceledLable.Text      = "PENDING RECIEVABLE";
                        canceledLable.ForeColor = Color.DodgerBlue;
                    }
                }
                //



                // OurCompany Info

                compnyProfilepanel.Show();
                var oc = WARPRO.Glob.CustomersAndAgents.Glob_OurCompanyProfile.Get_Select_Row_OurCompanyProfile();

                HeaderCompanyNameTxt.Text = oc.COMPANY_NAME.ToUpper();
                FromBillOurcomp_Txt.Text  = "CONTACT INFO: " + oc.COMPANY_MOBILE_NO.ToString() + " - " + oc.OWNER_MOBILE_NO.ToString() + "ADDRESS- " + oc.ADDRESS;
                if (oc.IMAGE != null)
                {
                    ImageR1.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(oc.IMAGE);
                }
            }
            catch (Exception)
            {
                this.Close();
            }
        }
Exemple #6
0
        public ProtectorUI(long OrignalprotectorId)
        {
            InitializeComponent();
            try
            {
                // Availibility_Toggle.Show();
                ImageR.Region = WARPRO.Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR.Width, ImageR.Height);

                Edit_Btn.Show();
                Cancel_Edit_btn.Show();

                PrintBtn.Show();
                SAVE_NewTicket_Btn.Hide();
                Main_Info_Panel.Enabled = false;
                printpanel.Enabled      = false;


                // TransecLoad
                var tt = WARPRO.Glob.Bookings_And_Payments.Glob_Transec.Get_Transec_Row(OrignalprotectorId.ToString());
                PanelStatus.Show();

                canceledLable.Show();
                transecGroup.Hide();

                StatusToggle.Checked = tt.STATUS;

                if (tt.STATUS == false)
                {
                    canceledLable.Text = "CANCELLED/REFUNDED";
                }
                if (tt.STATUS == true)
                {
                    if (tt.REMAINING > 0)
                    {
                        PayRemainingBtn.Show();
                    }


                    if (tt.REMAINING <= 0)
                    {
                        canceledLable.Text      = "CLEARED";
                        canceledLable.ForeColor = Color.Green;
                    }
                    else if (tt.REMAINING > 0)
                    {
                        canceledLable.Text      = "PENDING RECIEVABLE";
                        canceledLable.ForeColor = Color.DodgerBlue;
                    }
                }
                //



                var rr = WARPRO.Glob.CustomersAndAgents.Glob_Protector.Get_Protector_Row(OrignalprotectorId);
                //'''''''''
                OrignalProtectoriDForUpdates = rr.PROTECTOR_ID;

                orignalCustomerid = rr.CUSTOMER_ID;


                ProtectorId_Txt.Text = "PROTECTOR ID : " + rr.PROTECTOR_ID.ToString();
                ProtectorId_Txt.Show();

                Custmer_Or_Agent_ID_Txt.Text = rr.CUSTOMER_ID.ToString();
                Profession_Txt.Text          = rr.PROFESSION;
                Country_Txt.Text             = rr.COUNTRY;
                ChargesTxt.Text = rr.CHARGES.ToString();

                PayAbleTxt.Text = rr.PAYABLE.ToString();

                PasspoetSendingDateTime.Value   = rr.PASSPORT_SENDING_DATE;
                PassportRecievingDateTime.Value = rr.PASSPORT_RECIEVING_DATE;


                ProfitTxt.Text = rr.PROFIT.ToString();



                //CustomerInfo
                ImageR1.Region = WARPRO.Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR1.Width, ImageR1.Height);
                var cr = WARPRO.Glob.CustomersAndAgents.CustomersAndAgents_class.Select_Row_Customer(rr.CUSTOMER_ID);

                if (cr != null)
                {
                    ImageR.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(cr.PICTURE);

                    Id_info_nameLink.Text     = cr.FIRST_NAME.ToUpper() + " " + cr.LAST_NAME.ToUpper();
                    Id_info_PassportLink.Text = cr.PASSPORT_NO;
                }

                // OurCompany Info

                compnyProfilepanel.Show();
                var oc = WARPRO.Glob.CustomersAndAgents.Glob_OurCompanyProfile.Get_Select_Row_OurCompanyProfile();

                HeaderCompanyNameTxt.Text = oc.COMPANY_NAME.ToUpper();
                FromBillOurcomp_Txt.Text  = "CONTACT INFO: " + oc.COMPANY_MOBILE_NO.ToString() + " - " + oc.OWNER_MOBILE_NO.ToString() + "ADDRESS- " + oc.ADDRESS;
                if (oc.IMAGE != null)
                {
                    ImageR1.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(oc.IMAGE);
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                this.Close();
            }
        }
Exemple #7
0
        public SaudiVisaStampUI(string orignalVisano)
        {
            InitializeComponent();
            try
            {
                // Availibility_Toggle.Show();
                ImageR.Region = WARPRO.Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR.Width, ImageR.Height);

                Edit_Btn.Show();
                Cancel_Edit_btn.Show();

                PrintBtn.Show();
                SAVE_NewTicket_Btn.Hide();
                Main_Info_Panel.Enabled = false;
                printpanel.Enabled      = false;



                // TransecLoad
                var tt = WARPRO.Glob.Bookings_And_Payments.Glob_Transec.Get_Transec_Row(orignalVisano.ToString());
                PanelStatus.Show();

                canceledLable.Show();
                transecGroup.Hide();

                StatusToggle.Checked = tt.STATUS;

                if (tt.STATUS == false)
                {
                    canceledLable.Text = "CANCELLED/REFUNDED";
                }
                if (tt.STATUS == true)
                {
                    if (tt.REMAINING > 0)
                    {
                        PayRemainingBtn.Show();
                    }


                    if (tt.REMAINING <= 0)
                    {
                        canceledLable.Text      = "CLEARED";
                        canceledLable.ForeColor = Color.Green;
                    }
                    else if (tt.REMAINING > 0)
                    {
                        canceledLable.Text      = "PENDING RECIEVABLE";
                        canceledLable.ForeColor = Color.DodgerBlue;
                    }
                }
                //



                var rr = WARPRO.Glob.CustomersAndAgents.Glob_SaudiVisaStamp.Get_SaudiVisaStamp_Row(orignalVisano);
                //'''''''''
                OrignalVisaNoForUpdates = rr.VISA_NO;

                orignalCustomerid = rr.CUSTOMER_ID;


                Custmer_Or_Agent_ID_Txt.Text = rr.CUSTOMER_ID.ToString();
                VisaNo_Txt.Text                 = rr.VISA_NO;
                IoNo_Txt.Text                   = rr.IO_NO;
                ENo_Txt.Text                    = rr.E_NO;
                ENo_Datetime.Value              = rr.E_NO_DATE;
                PasspoetSendingDateTime.Value   = rr.PASSPORT_SENDIND_DATE;
                PassportRecievingDateTime.Value = rr.PASSPORT_RECIEVING_DATE;
                DeliveryDateTime.Value          = rr.DELIVERY_DATE;


                RecievaleAmountTxt.Text = rr.RECIEVABLE_AMOUNT.ToString();
                PayAbleTxt.Text         = rr.PAYABLE_AMONT.ToString();


                PaymentDateTime.Value = rr.PAYMENT_DATE;

                ModeOfPaymentTypeTxt.Text = rr.MODE_OF_PAYMETN;


                //CustomerInfo
                ImageR1.Region = WARPRO.Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR1.Width, ImageR1.Height);
                var cr = WARPRO.Glob.CustomersAndAgents.CustomersAndAgents_class.Select_Row_Customer(rr.CUSTOMER_ID);

                if (cr != null)
                {
                    ImageR.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(cr.PICTURE);

                    Id_info_nameLink.Text     = cr.FIRST_NAME.ToUpper() + " " + cr.LAST_NAME.ToUpper();
                    Id_info_PassportLink.Text = cr.PASSPORT_NO;
                }

                // OurCompany Info

                compnyProfilepanel.Show();
                var oc = WARPRO.Glob.CustomersAndAgents.Glob_OurCompanyProfile.Get_Select_Row_OurCompanyProfile();

                HeaderCompanyNameTxt.Text = oc.COMPANY_NAME.ToUpper();
                FromBillOurcomp_Txt.Text  = "CONTACT INFO: " + oc.COMPANY_MOBILE_NO.ToString() + " - " + oc.OWNER_MOBILE_NO.ToString() + "ADDRESS- " + oc.ADDRESS;
                if (oc.IMAGE != null)
                {
                    ImageR1.Image = WARPRO.Glob.CacheData.Glob_Veriables.GetImageFromByteArray(oc.IMAGE);
                }
            }
            catch (Exception)
            {
                this.Close();
            }
        }
Exemple #8
0
        public CustomerUI(long CustomerID)
        {
            try
            {
                InitializeComponent();


                var c = Glob.CustomersAndAgents.CustomersAndAgents_class.Select_Row_Customer(CustomerID);
                var p = Glob.CustomersAndAgents.Glob_Passport.Get_Select_Row_Passport(CustomerID);

                OrignalCustomerIDForUpdateUse = c.ID;

                //for First Name
                string[] s = c.FIRST_NAME.Split('.');
                MrCombo.Text       = s[0];
                FirstName_Txt.Text = s[1];


                LAST_NAMETxt.Text            = c.LAST_NAME;
                Address_Txt.Text             = c.ADDRESS;
                Mobile1_Txt.Text             = c.MOBILE_NO;
                EmailTxt.Text                = c.EMAIL;
                Details_Txt.Text             = c.DETAILS;
                Customer_From_Date_link.Text = c.CUSTOMER_FROM.ToLongDateString();
                ImageR.Image                 = Glob.CacheData.Glob_Veriables.GetImageFromByteArray(c.PICTURE);
                passportNo_Txt.Text          = c.PASSPORT_NO;
                IsRefferedByCheckBox.Checked = c.IsREFFERED;
                AgentID_Txt.Text             = c.REFFERED_BY.ToString();
                if (c.IsREFFERED == true)
                {
                    AgentID_Txt.Show();
                }



                SrNoTxt.Text               = p.SR_NO;
                Date.Value                 = p.DATE;
                NameTxt.Text               = p.NAME;
                passportNo_Txt.Text        = p.PASSPORT_NO;
                cnicTxt.Text               = p.CNIC_NO;
                DateOfBirthDatetime.Value  = p.DATE_OF_BIRTH;
                DateOfIssueDatetime.Value  = p.DATE_OF_ISSUE;
                DateOfExpiryDatetime.Value = p.DATE_OF_EXPIRY;
                cnicTxt.Text               = cnicTxt.Text;
                Mobile1_Txt.Text           = p.CONTACT_NO_1;
                MobileNo2Txt.Text          = p.CONTACT_NO_2;


                webcam = new WebCam();
                webcam.InitializeWebCam(ref ImageR);


                Panel_info_Extra.Show();
                // Availibility_Toggle.Show();
                Panel_pictureControls.Hide();
                Edit_Btn.Show();
                Cancel_Edit_btn.Show();

                Main_Info_Panel.Enabled = false;
                SAVE_New_Customer_Btn.Hide();

                ImageR.Region = Glob.CacheData.Glob_Veriables.GetRoundRegion(ImageR.Width, ImageR.Height);
                this.Text     = "CUSTOMER " + c.FIRST_NAME.ToUpper() + " ID# " + c.ID.ToString();
            }
            catch (Exception ex)
            {
                this.Close();
            }
        }