Exemple #1
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 #2
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 #3
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();
            }
        }